@nulink_network/nulink-ts
v0.1.37
Published
Communicate with nulink network from browser.
Downloads
6
Readme
nulink-ts
Communicate with nulink network from browser.
Disclaimer
This is a work in progress
- SDK does not support policy revocation.
- We expect breaking changes.
Supported networks
nulink-ts
is available on the following networks:
- horus
Usage
Run with:
1. Rename .env.example to .env
2. Modify config:
// The create policy contract address. In the NuLink testnet, you can use the address: 0x0226c885973d5f6AaF830EbADd5830d55FE1Bf3D
# contract for testing domain envrionment V7
REACT_APP_BSC_TESTNET_CONTRACT_SUBSCRIPTMANAGER_ADDRESS=xxxxx
3. yarn install
4. yarn test
5. yarn build
Development
Install git hooks
npx husky install
Generate contract typings
yarn typechain
Prepare a new release
yarn run prepare-release
Examples
See ./test
directory for usage examples.
See ./examples
directory for examples of browser integration.
See ./examples/api-example.ts
for an abridged API example.