There is a deployment
folder that contains deployment information per network. You can utilize already deployed contracts or redeploy them. For clean deploy just delete the deployment file.
For proper functioning contracts must be deployed in particular order. Firstly aggregator
contract must be deployed, after that any or both(depends on which auctioneer you need to use) of teller contracts can be deployed, now auctioneer contracts can be deployed.
After you set required env variables, use next command:
npm run deploy:aggregator
Depends on which auctioneer type you need Fixed-Expiry
or Fixed-Term
, same type of teller must be deployed. Also you need to specify ADDRESS_BENEFICIARY
environment variable, see details in .env.template
.
npm run deploy:fixed_expiry_teller
npm run deploy:fixed_term_sda
npm run deploy:fixed_expiry_fpa
npm run deploy:fixed_expiry_ofpa
npm run deploy:fixed_expiry_osda
npm run deploy:fixed_expiry_sda
npm run deploy:fixed_term_fpa
npm run deploy:fixed_term_ofpa
npm run deploy:fixed_term_osda
npm run deploy:fixed_term_sda
To clone repo itself, run the following command:
git clone https://github.com/ambrosus/airdao-bond.git
Then you have to initialize submodules running the following command:
git submodule init
To pull lates changes from submodule:
git submodule update --remote