0.0.1 • Published 1 year ago

@nulink_network/nulink-ts-app v0.0.1

Weekly downloads
-
License
GPL-3.0-only
Repository
github
Last release
1 year ago

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.

after compile need copy the core/nucypher-core-wasm-bin to the build main/src/core and module/src/core folder

0.0.1

1 year ago