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
npm i
to install packagesnpx hardhat test
npm i
to install packagesnpx prettier --write 'contracts/**/*.sol'
- 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
npx hardhat verify {CONTRACT_ADDRESS} --network {NETWORK}
- find full list of supported networks in
hardhat.config.js