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.
Clone this wiki locally