diff --git a/scripts/deploy-contracts.js b/scripts/deploy-contracts.js index 4c27cc85..d9d10d78 100644 --- a/scripts/deploy-contracts.js +++ b/scripts/deploy-contracts.js @@ -885,6 +885,23 @@ async function main() { } } + // Batcher + if (logging) console.info("Deploying BatchPayment"); + const BatchPayments = await ethers.getContractFactory( + "BatchPayments", + owner + ); + + const deployBatchPayments = await BatchPayments.connect(owner).deploy(options) + await deployBatchPayments.deployTransaction.wait(); + if (show_verify) { + console.log("\tRun the following to verify on etherscan"); + console.log("\tnpx hardhat verify --network " + networkName + " " + deployBatchPayments.address) + } + addresses.BatchPayments = deployBatchPayments.address; + if (sleepAmount > 0) await sleep(sleepAmount) + + //DF contracts if (shouldDeployDF) { //DFRewards diff --git a/scripts/deploy_batchpayments.js b/scripts/deploy_batchpayments.js new file mode 100644 index 00000000..a1e57cf6 --- /dev/null +++ b/scripts/deploy_batchpayments.js @@ -0,0 +1,104 @@ +// We require the Hardhat Runtime Environment explicitly here. This is optional +// but useful for running the script in a standalone fashion through `node