DecentSDK
🌈
Getting Started npm i
to install packages- copy
.env.example
to.env
and add your variables npx hardhat run scripts/deployDCNTSDK.ts --network optimism_testnet
to deploy the DecentSDK
Testing
npm i
to install packagesnpx hardhat test
Prettying
npm i
to install packagesnpx prettier --write 'contracts/**/*.sol'
Adding a new SDK Module
- add contracts to
/contracts
folder - add interfaces to
/interfaces
folder - write deploy function in
core/index.js
- create an example interface to the sdk in
scripts/deploy{YOUR_CONTRACT_NAME}.ts
- test by running
npx hardhat run scripts/{YOUR_CONTRACT_NAME}.ts --network optimism_testnet
Verifying
npx hardhat verify {CONTRACT_ADDRESS} --network {NETWORK}
- find full list of supported networks in
hardhat.config.js