0.1.7 • Published 9 months ago

@betswirl/wagmi-provider v0.1.7

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

@betswirl/wagmi-provider

A provider allowing to use @betswirl/sdk-core through a Wagmi client.

Installation

pnpm i @betswirl/wagmi-provider

Usage

import { createConfig } from "@wagmi/core";
import { initWagmiBetSwirlClient} from "@betswirl/wagmi-provider";

  /* Init the client */
  const wagmiConfig = createConfig(...)

  const wagmiBetSwirlClient = initWagmiBetSwirlClient(wagmiConfig, {
    chainId: 137,
    affiliate: "0x...",
    gasPriceType: GAS_PRICE_TYPE.FAST,
    ...
  });

  /* Use the client */
  const casinoGames = await wagmiBetSwirlClient.getCasinoGames(false, 137);
  ...
  wagmiBetSwirlClient.playDice(77, ...)
  ...

Example

0.1.7

9 months ago

0.1.6

9 months ago

0.1.5

9 months ago

0.1.4

10 months ago

0.1.4-beta.1

10 months ago

0.1.4-beta.0

10 months ago

0.1.3

10 months ago

0.1.3-beta.3

10 months ago

0.1.3-beta.1

10 months ago

0.1.3-beta.0

10 months ago

0.1.2

10 months ago

0.1.2-beta.3

10 months ago

0.1.2-beta.2

10 months ago

0.1.2-beta.1

10 months ago

0.1.2-beta.0

10 months ago

0.1.0

10 months ago

0.0.9

10 months ago

0.0.8

11 months ago

0.0.7

12 months ago

0.0.6

12 months ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago

0.0.1-beta-21

1 year ago