1.1.9 • Published 2 years ago

@axor-dao/governance v1.1.9

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

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

  1. Compile source code of project axor-governance-contracts
npm run compile
  1. Config .env
ALCHEMY_KEY=
SEPOLIA_ETHERSCAN_API_KEY=
PRIVATE_KEY=<your-private-key>
ARB_SCAN_API_KEY=
  1. Config arbitrum testnet network at hardhat.config.ts

  2. Run tasks to deploy

npx hardhat deploy:phase-1

npx hardhat deploy:phase-2

npx hardhat deploy:phase-3
  1. After deploy, can get list address at file ./tasks/deployed/Contract

  2. Verify contract Use these files to verify contracts Update file ./verify-phase-1.sh Update file ./verify-phase-2.sh

Flatten contracts :

  1. Install depencency tool for flatten contract
sudo npm install -g sol-merger
  1. 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

1.3.7

2 years ago

1.2.8

2 years ago

1.3.6

2 years ago

1.2.7

2 years ago

1.3.5

2 years ago

1.2.6

2 years ago

1.3.4

2 years ago

1.3.3

2 years ago

1.3.2

2 years ago

1.3.1

2 years ago

1.3.0

2 years ago

1.3.10

2 years ago

1.3.13

2 years ago

1.3.14

1 year ago

1.3.11

2 years ago

1.3.12

2 years ago

1.3.15

1 year ago

1.3.9

2 years ago

1.3.8

2 years ago

1.2.9

2 years ago

1.2.12

2 years ago

1.2.13

2 years ago

1.2.10

2 years ago

1.2.11

2 years ago

1.2.14

2 years ago

1.2.15

2 years ago

1.2.5

2 years ago

1.2.4

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.2.0

2 years ago

1.1.9

2 years ago

1.1.8

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.2.1

2 years ago

1.1.5

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago