This developer library is for interacting with Set Protocol V1 smart contracts and is no longer being written to. We do not currently have a SDK available for Set Protocol V2. Refer to our V2 developer portal here for information.
setprotocol.js
is a library for interacting with Set Protocol V1 smart contracts.
This library enables you to create, issue, redeem, and create and fill issuance orders for Sets.
Take a look at our V1 developer portal for the fastest way to get up and running.
Note: This is Alpha software, and is subject to non-backwards compatible changes.
$ yarn add setprotocol.js@^1.2.8
$ npm i --save setprotocol.js@^1.2.8
For the most up to date steps on how to initialize and use setProtocol.js
, please refer to our installation guide.
Start testrpc
and setup dependencies:
yarn chain
Wait until the dependency migration complete
message appears before interacting with the contracts.
In a new terminal window, run:
yarn test:watch
Do not use Node version 10+ as it may have issues during npm install
or yarn install
with the sha3
package. Use nvm install 9.11.1 && nvm use 9.11.1
for now.
Occasionally, you may need to run yarn run chain --reset
or just re-run yarn chain
to make sure that you have up to date contracts after running yarn install
with an update to the set-protocol-contracts
package.