Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add deploy to ci-canary #19

Open
8 tasks
pi0neerpat opened this issue Jan 25, 2022 · 0 comments
Open
8 tasks

Add deploy to ci-canary #19

pi0neerpat opened this issue Jan 25, 2022 · 0 comments
Assignees

Comments

@pi0neerpat
Copy link
Member

Recipe for minimum viable contract deployment continuous integration

Setup

  • Add INFURA_API_KEY, PRIVATE_KEY, NETWORK_NAME=mumbai to the repo github secrets
  • Remove DEFAULT_TOKEN in favor of the hardhat config file
  • Update .template.env with these changes

Deploy script

  • Use the appropriate network config based on the value of process.env.NETWORK_NAME
  • After deploy is complete, read the following values from the contract. They should not be pulled from process.env.
acceptedTokenContract,
forwarderAddress,
adminAddress

Update ci-canary

  • Run the deploy command on mumbai
  • Append the deploy output w/ date+time to a file and commit to the repo. Eg:
// deployments.js
# Deployed Fri Jan 07 2022 15:51:33 GMT-0500 (Eastern Standard Time)

acceptedTokenContract 0xabc123
forwarderAddress 0xabc123
adminAddress 0xabc123
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants