Skip to content
This repository was archived by the owner on Feb 20, 2026. It is now read-only.
This repository was archived by the owner on Feb 20, 2026. It is now read-only.

Add deploy to ci-canary #19

@pi0neerpat

Description

@pi0neerpat

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions