Splits SDK
Developer tools for integrating with the 0xSplits contracts and subgraph data
Packages
Package | Description |
---|---|
splits-sdk | Core package for integrating with 0xSplits |
splits-sdk-react | A wrapper of splits-sdk with helpful React Hooks |
Testing
Run tests with yarn test
Local development
Build the packages
From the root directory:
yarn install
lerna run build
Update versions and prepare for npm publish
From the root directory:
lerna version --no-private
Publish to npm
From each package directory that you want to publish:
npm publish
If you want to publish an alpha/beta version, apply the appropriate tag:
npm publish --tag beta