JSPM

  • Created
  • Published
  • Downloads 17803
  • Score
    100M100P100Q153807F
  • License MIT

TypeScript SDK for the Celo Dice Roll MiniApp

Package Exports

  • celo-dice-roll-sdk
  • celo-dice-roll-sdk/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (celo-dice-roll-sdk) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

celo-dice-roll-sdk

TypeScript SDK for reading the Celo Dice Roll contract from Celo mainnet.

import { CeloDiceRollClient } from "celo-dice-roll-sdk";

const client = new CeloDiceRollClient({
  contractAddress: "0x943DfC4aFe76B2042031556516799ba03396B3F3",
});

const totalRolls = await client.getTotalRolls();