Skip to content

Commit

Permalink
Merge pull request #30 from Arrow-air/brasslion/feature/mainnet-network
Browse files Browse the repository at this point in the history
Add mainnet deployment
  • Loading branch information
BrassLion authored Mar 31, 2022
2 parents 7b476cb + b6aa384 commit 69293c2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ npx hardhat test
npx hardhat deploy --network rinkeby --tags Deployment
```

Deploying to mainnet is possible by subsituting all `--network rinkeby` arguments with `--network mainnet`.

## Upgrading

Upgrading contracts that are owned by a multisig should be proposed using [Defender](https://docs.openzeppelin.com/defender/guide-upgrades)
Expand Down Expand Up @@ -88,6 +90,14 @@ npx hardhat deploy --network rinkeby --tags Upgrade

## Deployments

## Mainnet

| Contract | Address |
| ------------------- | ------------------------------------------ |
| Gnosis Safe | 0x03b5Dc2CE78a7bEe9F66DD619b291595a2E166BB |
| ArrowToken | 0x736609D310B5F925531B5ad895925CB0586F6241 |
| ArrowVestingFactory | 0xe774395857A91f7158FB0a79385c4C9F7975B848 |

### Rinkeby

| Contract | Address |
Expand Down
7 changes: 7 additions & 0 deletions hardhat.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,14 @@ module.exports = {
},
},

defaultNetwork: "hardhat",

networks: {
hardhat: {},
mainnet: {
url: `https://mainnet.infura.io/v3/${process.env.INFURA_PROJECT_ID}`,
accounts: (process.env.DEPLOYMENT_PRIVATE_KEY === undefined) ? [] : [`${process.env.DEPLOYMENT_PRIVATE_KEY}`]
},
rinkeby: {
url: `https://rinkeby.infura.io/v3/${process.env.INFURA_PROJECT_ID}`,
accounts: (process.env.DEPLOYMENT_PRIVATE_KEY === undefined) ? [] : [`${process.env.DEPLOYMENT_PRIVATE_KEY}`]
Expand Down

0 comments on commit 69293c2

Please sign in to comment.