Skip to content

Commit

Permalink
feat: Add script to deploy new controller (#47)
Browse files Browse the repository at this point in the history
* feat: Add script to deploy new controller

* chore: EOL

* chore: Add default network

* chore: Add default rpc url for deploy

* chore: Remove default network

* chore: Rename fixture
  • Loading branch information
fzavalia authored Mar 16, 2023
1 parent a2194d9 commit dc66de7
Show file tree
Hide file tree
Showing 8 changed files with 458 additions and 16 deletions.
3 changes: 3 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ETHERSCAN_KEY="some-key"
RPC_URL="http://some-rpc-url.org"
NETWORK="GOERLI"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ cache
coverage
coverage.json
.vscode
.env
12 changes: 12 additions & 0 deletions hardhat.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ require('babel-polyfill')
require('decentraland-contract-plugins/dist/src/mana/tasks/load-mana')
require('@nomiclabs/hardhat-truffle5')
require('solidity-coverage')
require('@nomiclabs/hardhat-etherscan')

require('dotenv').config()

/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
Expand All @@ -16,4 +19,13 @@ module.exports = {
},
},
},
networks: {
deploy: {
url: process.env.RPC_URL || 'http://some-rpc-url.org',
timeout: 600000,
},
},
etherscan: {
apiKey: process.env.ETHERSCAN_KEY,
},
}
Loading

0 comments on commit dc66de7

Please sign in to comment.