ChainSafe / chainbridge-celo

GNU Lesser General Public License v3.0
3 stars 2 forks source link

Contract deployment scripts #88

Open P1sar opened 3 years ago

P1sar commented 3 years ago

To run E2E tests for chainbridge-celo nodes with pre-deployed bridge contracts and elections should be run in same environment. Currently we use image "chainsafe/chainbridge-bootstrapped-celo" as bootstrapped nodes. This image was build be hands and includes celo nodes with deployed there chainbridge smart contracts. Deployment done with https://github.com/ChainSafe/chainbridge-celo/blob/main/e2e/deploy.go.
We should provide some workflow that build this image automatically when smart contracts being updated.

Implementation details

  1. I think we should build contracts with celo-abigen on any update (version, push to master?) and store them on dockerhub as image (or AWS S3)
  2. Run chainsafe/chainbridge-celo-blockchain image 3 times as 3 nodes of same chain
  3. Installing chainbridge-celo as CLI tool and make deploy with generated (from step 1)
  4. Make dumps of each running node with deployed scripts
  5. TODO ...

Testing details

Check that all is working

Acceptance Criteria

Script deploys contracts for celo-blockchain