Skip to content

Post deployment checklist

Aalavandhan edited this page Nov 5, 2021 · 11 revisions

Verification

Verify smart contract code on the chain's etherscan explorer. Check if the contract implementations match the desired versions. Addresses can be found in the sdk folder.

Satellite chain:

  • XCAmple
  • XCAmpleController
  • ProxyAdmin
  • Gateway contracts

Base chain:

  • Token vault
  • Gateway contracts

State examination

Examine the contract state variables through the script

 # clone the repo
 nvm use
 yarn install
 yarn compile

 # check hardhat.config.js for network names
 yarn hardhat info:ampl:setup \
  --networks "[\"prodEthereumBaseChain\", \"INSERT_NETWORK_NAME_HERE\"]"

Checklist

  • Verify the "owner" of the ProxyAdmin, XCAmpleController, XCAmple points to the Bridge DAO.
  • Verify the whitelisted gateways on XCAmpleController point to the appropriate gateway contracts (and no in correct addresses are whitelisted)
  • Verify the gateway contracts on the satellite chain point to the correct XCAmpleController and XCAmple addresses.
  • Examine the RebaseRelayer transactions to check if the liquidity pools have been synced
  • Verify the whitelisted gateways on TokenVault on the base chain point to the appropriate gateway contracts (and no in correct addresses are whitelisted)
  • Verify the gateway contracts on the base chain point to the correct Monetary policy and AMPL ERC-20 addresses.

Governance leavers

  • Proxy admin owner can upgrade the XCAmpleController and XCAmple contracts. (will be relinquished when safe)
  • XCAmpleController owner can add/remove gateways and update reference to RebaseRelayer (orchestrator)
  • RebaseRelayer owner can add remove transactions to/from the batch
  • XCAmple owner can update to a new XCAmpleController
Clone this wiki locally