@flooz/gen-f-sdk
v0.0.41
Published
Flooz GEN-F SDK
Downloads
15
Keywords
Readme
GEN F SDK
Minimalist SDK to interact with the GEN F contracts.
Documentation
Getting Started
Prerequirement
Install the package using yarn
yarn add @flooz/gen-f-sdk
Import the SDK
const { sdk } = require('@flooz/gen-f-sdk');
ES6 or TypeScript
import { sdk } from '@flooz/gen-f-sdk';
Defining the Provider
- Import the package & define the provider
import { JsonRpcProvider } from '@ethersproject/providers';
cosnt provider: JsonRpcProvider = FloozProviders[ChainId.RINKEBY_TESTNET]
signer = provider.getSigner('0x...')
Initialize the SDK
const genF = new GenF(await provider.getNetwork());
Deploying the SDK
yarn build
npm publish --access public