@nulink_network/nulink-ts-app
v0.0.1
Published
Communicate with nulink network from browser.
Downloads
2
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: 0xa24DE231995c29Bd2A5c0f307e48E62F75250531
# 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.