@axor-dao/governance
v1.2.5
Published
axor governance smart contracts
Downloads
106
Readme
Prepare
- use Nodejs 18
npm i
npm run compile
Run Test
Test safety module
npx hardhat test test/safety-module/*.ts
Test liquidity module
npx hardhat test test/liquidity-module/wind-down-borrowing-pool.spec.ts
Deploy
- Compile source code of project axor-governance-contracts
npm run compile
- Config .env
ALCHEMY_KEY=
SEPOLIA_ETHERSCAN_API_KEY=
PRIVATE_KEY=<your-private-key>
ARB_SCAN_API_KEY=
Config arbitrum testnet network at
hardhat.config.ts
Run tasks to deploy
npx hardhat deploy:phase-1
npx hardhat deploy:phase-2
npx hardhat deploy:phase-3
After deploy, can get list address at file
./tasks/deployed/Contract
Verify contract Use these files to verify contracts Update file ./verify-phase-1.sh Update file ./verify-phase-2.sh