Skip to content

Deployment & Migration guide

Quinten De Swaef edited this page Jul 30, 2018 · 3 revisions

Deploying new Contracts

npm i -g truffle
truffle migrate --network test --reset

Validate the code on etherscan

npm run build-contracts

https://(kovan.)?etherscan.io/verifyContract2

Updating state of the new FundRequestContract

newFundRequestAddress.setClaimSignerAddress(azraelSigner)
newFundRequestAddress.updateCaller(azraelExecutor, true)
newFundRequestAddress.addPrecondition(whitelistPrecondition) (address per env can be found in the README.md)

Update the addresses of the newly deployed contracts

  • platform
  • azrael
  • admin
  • README.md

Restart the backend application

  • platform
  • azrael
  • admin

Migrate the existing tokens to the new contract

for each token
    oldFundRequestContract.migrateTokens(token, newFundRequestAddress.address)