You must make sure that you have all of the following before starting:
- Fund Master Private Key
- Network Master Private Key
- Two Multisig Owner Private Keys
- All Required Repositories are Ready:
ambrosus-ops
ambrosus-node-contracts
- Deployment Environment is Set Up
- Destroy
apollo-pools
workspace and then delete{env}
workspace.
- Run
terraform plan
and create the workspace again.
- Go to Chainspecs Actions and deploy.
- Run common playbook.
- Run deploy parity and apollo playbook.
-
Run the playbook
deploy_contracts
in theambrosus-ops
repository:ansible-playbook -i environments/{env} deploy_contracts.yml
-
In the
ambrosus-node-contracts
repository:6.1 Whitelist
Create and run
whitelist-{env}.sh
(replace{apollo_addres}
with the Apollo address of the node):#!/bin/bash export WEB3_NODEPRIVATEKEY= export WEB3_RPC=https://network.ambrosus-{env}.io yarn task whitelist add {apollo_addres} APOLLO 250000 yarn task whitelist add {apollo_addres} APOLLO 250000 ...
6.2 Onboard
Create and run
onboard-{env}.sh
(replace{apollo_private_key}
with the Apollo private key of the node):#!/bin/bash export WEB3_RPC=https://network.ambrosus-{env}.io export WEB3_NODEPRIVATEKEY={apollo_private_key} yarn task onboard APOLLO 250000 export WEB3_NODEPRIVATEKEY={apollo_private_key} yarn task onboard APOLLO 250000 ...
-
Use the command:
cat /tmp/contracts/contracts.env
-
Run the
deploy_multisig_contract
in theambrosus-ops
repository:ansible-playbook -i environments/{env} deploy_multisig_contract.yml
Very Important: After that, in Metamask, select the desired network and clear the transaction history for the fund master wallet and the two multisig owners. Also, from the fund master account, send 1000~ AMB to each of the two multisig owners.
-
Use the command:
cat /tmp/contracts/contracts.env
-
Run
update_contracts
in theambrosus-ops
repository:ansible-playbook -i environments/{env} update_contracts.yml
Very Important: You will need to confirm the transaction during the contract update. To do this, go to the multisig site and connect under one of the multisig owners in Metamask (depending on which multisig you entered during update_contracts
).
- Deploy all apps and wait for them to synchronize.
- Follow the documentation to deploy the AIRDAO contract.
11.1 Deploy Bridge Config
- If needed, go to Bridge Actions.
11.2 Update Explorer-v2 Config
- Go to Explorer Config Actions.
11.3 Refill Staking Address