diff --git a/migrations/4_solution_submitter.js b/migrations/4_solution_submitter.js new file mode 100644 index 000000000..b11843345 --- /dev/null +++ b/migrations/4_solution_submitter.js @@ -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) + } +} diff --git a/networks.json b/networks.json index 12acf3d73..a73d6e973 100644 --- a/networks.json +++ b/networks.json @@ -58,5 +58,12 @@ "address": "0xA18c8F9Ae6c18d177Aa369C64fa4a6956146e1A5", "transactionHash": "0xb77ad5c1a273826f8882be1919ec31c122d4710ac46ab2973d3b69138833c4b8" } + }, + "SolutionSubmitter": { + "1": { + "links": {}, + "address": "0xA1c956d7C3D8Ea7fd7E3757062e4aC563F07e68a", + "transactionHash": "0x071caa3075e6cc259b0c59e67e3a9439f7c295b518c609f1b8c55be00b44d6bb" + } } }