Skip to content

Commit

Permalink
Upload DappRegistry ABI to S3 during deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
delaaxe committed Nov 15, 2022
1 parent 1429781 commit e985fa3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
3 changes: 2 additions & 1 deletion deployment/1_setup_test_environment.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ async function deployENSRegistry(owner, domain) {
}

async function main() {
const { configurator, deploymentAccount } = await deployManager.getProps();
const { configurator, deploymentAccount, abiUploader } = await deployManager.getProps();
const { config } = configurator;

if (config.ENS.deployOwnRegistry) {
Expand All @@ -53,6 +53,7 @@ async function main() {
const DappRegistryWrapper = await DappRegistry.new(0);
console.log("Deployed local DappRegistry at ", DappRegistryWrapper.address);
configurator.updateDappRegistry(DappRegistryWrapper.address);
await abiUploader.upload(DappRegistryWrapper, "contracts");
}

if (config.defi.uniswap.deployOwn) {
Expand Down
11 changes: 11 additions & 0 deletions truffle-config.base.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,17 @@ module.exports = {
gasPrice: _gasPrice
},

hydrogen: {
provider: () => new AWSWalletProvider(
`https://goerli.infura.io/v3/${process.env.INFURA_KEY}`,
"argent-smartcontracts-hydrogen",
"backend/deploy.key"
),
network_id: 5, // goerli
gas: _gasLimit,
gasPrice: _gasPrice
},

staging: {
provider: () => new AWSWalletProvider(
`https://mainnet.infura.io/v3/${process.env.INFURA_KEY}`,
Expand Down

0 comments on commit e985fa3

Please sign in to comment.