Skip to content

Commit

Permalink
deployed on rinkeby
Browse files Browse the repository at this point in the history
  • Loading branch information
Aodhgan committed May 6, 2021
1 parent 7c4375a commit c4db6d9
Show file tree
Hide file tree
Showing 7 changed files with 626 additions and 913 deletions.
12 changes: 6 additions & 6 deletions deploy/deploy.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const chalk = require('chalk');
const { getChainId } = require('hardhat');
const { factoryDeploy } = require('@pooltogether/pooltogether-proxy-factory-package')
const { factoryDeploy } = require('@pooltogether/pooltogether-proxy-factory-package');
const { cyan } = require('chalk');



Expand All @@ -22,22 +23,21 @@ module.exports = async (hardhat) => {
const { getNamedAccounts, deployments, ethers } = hardhat
const { deploy } = deployments
let { deployer, podsRegistry } = await getNamedAccounts()



if(!podsRegistry){
cyan(`No pods registry found in namedAccounts`)
podsRegistry = ethers.constants.AddressZero
}

dim(`Deploying contract from ${deployer}`)

const podsUpkeepDeployResult = await deploy('PodsUpkeep', {
args: [podsRegistry, deployer, 0],
args: [podsRegistry, deployer, 10, 20],
from: deployer,
skipIfAlreadyDeployed: false
})
green(`Deployed podsUpkeepDeployResult: ${podsUpkeepDeployResult.address}`)



// do we want to add the governance prize pools and transfer ownership in here

}
1 change: 1 addition & 0 deletions deployments/rinkeby/.chainId
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
4
515 changes: 515 additions & 0 deletions deployments/rinkeby/PodsUpkeep.json

Large diffs are not rendered by default.

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions hardhat.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ require('hardhat-dependency-compiler')
// require('hardhat-gas-reporter')
require('hardhat-abi-exporter')

require('hardhat-ethernal')

const networks = require('./hardhat.networks')

/**
Expand Down Expand Up @@ -54,7 +52,7 @@ module.exports = {
4: "0x72c9aA4c753fc36cbF3d1fF6fEc0bC44ad41D7f2"
},
podsRegistry: {
4: ""
4: "0xB917f266424B803F389c79B86609710247a0370f"
}

},
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"@nomiclabs/hardhat-waffle": "^2.0.1",
"@openzeppelin/contracts": "^3.4.0",
"@pooltogether/pooltogether-contracts": "^3.3.0",
"@pooltogether/pooltogether-generic-registry": "^1.0.7",
"@pooltogether/pooltogether-generic-registry": "^1.0.8",
"@pooltogether/pooltogether-proxy-factory-package": "^1.0.0-beta.19",
"chai": "^4.3.0",
"chalk": "^4.1.0",
Expand All @@ -34,7 +34,6 @@
"hardhat-dependency-compiler": "^1.1.1",
"hardhat-deploy": "^0.7.0-beta.45",
"hardhat-deploy-ethers": "^0.3.0-beta.7",
"hardhat-ethernal": "^0.2.3",
"hardhat-gas-reporter": "^1.0.4",
"mocha-junit-reporter": "^2.0.0",
"solhint": "^3.3.3",
Expand Down

0 comments on commit c4db6d9

Please sign in to comment.