Skip to content

Commit

Permalink
[Easy] Deploy SolutionSubmitter contract (#1051)
Browse files Browse the repository at this point in the history
This PR adds a migration script and deployment info for the SolutionSubmission wrapper contract. Since the GasToken only makes sense on mainnet

Verified on etherscan: https://etherscan.io/address/0xA1c956d7C3D8Ea7fd7E3757062e4aC563F07e68a#code
  • Loading branch information
fleupold authored Nov 20, 2020
1 parent 793d876 commit 17f9ba6
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
15 changes: 15 additions & 0 deletions migrations/4_solution_submitter.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
const BatchExchange = artifacts.require("BatchExchange.sol")
const SolutionSubmitter = artifacts.require("SolutionSubmitter.sol")

const GAS_TOKEN_ADDRESS = "0x0000000000004946c0e9F43F4Dee607b0eF1fA1c"
const GAS_TOKEN_USAGE_THRESHOLD = 60000000000

module.exports = async function (deployer, network) {
if (network === "mainnet") {
const exchange = await BatchExchange.deployed()
await deployer.deploy(SolutionSubmitter, exchange.address, GAS_TOKEN_ADDRESS, GAS_TOKEN_USAGE_THRESHOLD)
} else {
// eslint-disable-next-line no-console
console.log("Not deploying SolutionSubmitter on network: ", network)
}
}
7 changes: 7 additions & 0 deletions networks.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,12 @@
"address": "0xA18c8F9Ae6c18d177Aa369C64fa4a6956146e1A5",
"transactionHash": "0xb77ad5c1a273826f8882be1919ec31c122d4710ac46ab2973d3b69138833c4b8"
}
},
"SolutionSubmitter": {
"1": {
"links": {},
"address": "0xA1c956d7C3D8Ea7fd7E3757062e4aC563F07e68a",
"transactionHash": "0x071caa3075e6cc259b0c59e67e3a9439f7c295b518c609f1b8c55be00b44d6bb"
}
}
}

0 comments on commit 17f9ba6

Please sign in to comment.