@axor-dao/governance
v1.3.15
Published
axor governance smart contracts
Downloads
670
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
Flatten contracts :
- Install depencency tool for flatten contract
sudo npm install -g sol-merger
- Run script flatten all smart contracts
node flatten.js
sol-merger
has some bug not merged interface. So we need fix it manual when compile flattened file at Remix