Skip to content

Eshanchik/test-deploys

Repository files navigation

Redeploy dev/test

You must make sure that you have all of the following before starting:

  1. Fund Master Private Key
  2. Network Master Private Key
  3. Two Multisig Owner Private Keys
  4. All Required Repositories are Ready:
    • ambrosus-ops
    • ambrosus-node-contracts
  5. Deployment Environment is Set Up

Steps to Redeploy

1. Destroy Terraform Workspace

  • Destroy apollo-pools workspace and then delete {env} workspace.

2. Recreate Terraform Workspace

  • Run terraform plan and create the workspace again.

3. Deploy Chainspec

4. Deploy Base Apollo Node and Parity Cluster

  1. Run common playbook.
  2. Run deploy parity and apollo playbook.

5. Deploy Contracts

  • Run the playbook deploy_contracts in the ambrosus-ops repository:

    ansible-playbook -i environments/{env} deploy_contracts.yml

6. Whitelist and Onboard Apollo Node

  • 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
    
    ...

7. View MULTIPLEXER_CONTRACT_ADDRESS

  • Use the command:

    cat /tmp/contracts/contracts.env
  • Run the deploy_multisig_contract in the ambrosus-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.

8. View MULTIPLEXER_CONTRACT_ADDRESS and MULTISIG_CONTRACT_ADDRESS

  • Use the command:

    cat /tmp/contracts/contracts.env
  • Run update_contracts in the ambrosus-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).

9. Deploy All Apps

  • Deploy all apps and wait for them to synchronize.

10. Deploy AIRDAO Contract

11. Post-Deployment Activities

11.1 Deploy Bridge Config

11.2 Update Explorer-v2 Config

11.3 Refill Staking Address

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages