celo-arcade-sdk
v0.1.1
Published
Standalone SDK for integrating with the Celo Arcade contract and MiniPay-friendly app defaults.
Downloads
1,271
Maintainers
Readme
Celo Arcade SDK
Standalone SDK derived from the celo-arcade project for integrating with the Celo Arcade contract and its default token configuration.
Install
npm install celo-arcade-sdkUse
import {
CONTRACT_ABI,
DEFAULT_ARCADE_CONFIG,
DEFAULT_STABLE_TOKEN,
ENTRY_FEE,
formatTokenUnits,
} from 'celo-arcade-sdk'
console.log(DEFAULT_ARCADE_CONFIG.contractAddress)
console.log(DEFAULT_STABLE_TOKEN.symbol)
console.log(formatTokenUnits(ENTRY_FEE, DEFAULT_STABLE_TOKEN.decimals))
console.log(CONTRACT_ABI.length)Local Build
npm install
npm test
npm run build