Skip to content

Commit

Permalink
preparing prod deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
ginesdt committed Nov 30, 2023
1 parent 8e8608a commit 1a4e484
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 12 deletions.
2 changes: 1 addition & 1 deletion migrations/1_initial_migration.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var Migrations = artifacts.require("Migrations");

module.exports = function(deployer, network, accounts) {
deployer.deploy(Migrations, {gas: 500000, from: accounts[0]});
deployer.deploy(Migrations, {gas: 5000000, from: accounts[0]});
};
4 changes: 2 additions & 2 deletions migrations/2_streamtide_contracts.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ module.exports = async(deployer, network, accounts) => {
}

await status.step(async () => {
const streamtide = await deployer.deploy(Streamtide, Object.assign(opts, {gas: 2000000}));
const streamtide = await deployer.deploy(Streamtide, Object.assign(opts, {gas: 20000000}));
return {[sk.streamtideAddr]: streamtide.address};
});

await status.step(async () => {
const streamtideAddr = status.getValue(sk.streamtideAddr);

linkBytecode(StreamtideForwarder, forwarderTargetPlaceholder, streamtideAddr);
const streamtideForwarder = await deployer.deploy(StreamtideForwarder, Object.assign(opts, {gas: 500000}));
const streamtideForwarder = await deployer.deploy(StreamtideForwarder, Object.assign(opts, {gas: 5000000}));
return {[sk.streamtideForwarderAddr]: streamtideForwarder.address};
});

Expand Down
2 changes: 1 addition & 1 deletion migrations/3_add_admins.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ module.exports = async(deployer, network, accounts) => {

for (const admin of parameters.admins) {
console.log ("Adding admin: " + admin);
await streamtideFwd.addAdmin(admin, Object.assign(opts, {gas: 500000}));
await streamtideFwd.addAdmin(admin, Object.assign(opts, {gas: 5000000}));
}
}
5 changes: 2 additions & 3 deletions src/streamtide/shared/smart_contracts_prod.cljs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
(ns streamtide.shared.smart-contracts-prod)

(def smart-contracts
{})
(def smart-contracts
{:migrations {:name "Migrations" :address "0x5f5391A0ec248BBC7906242Ec9D10394158Fd70b"} :streamtide {:name "MVPCLR" :address "0x89Cf0c5f93189642911412D2d49E4b872689F44e"} :streamtide-fwd {:name "MutableForwarder" :address "0x6Db2844F211580ae950Ed10635AA12409Ee816De" :forwards-to :streamtide}})
13 changes: 8 additions & 5 deletions truffle.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,11 @@ let parameters = {
"0x0A0A8610F57fE41EC26D5163d1Eb986cE598dc5F"]
},
"prod" : {
multiSig: "TBD",
admins: []
multiSig: "0xf7190fa8c89F7c57ff77b8Bc0Da85e9a2daF70Ad",
admins: [
"0xf7190fa8c89F7c57ff77b8Bc0Da85e9a2daF70Ad",
"0xb078844477A5420cB627C1961B30ED33E0126973",
"0x0A0A8610F57fE41EC26D5163d1Eb986cE598dc5F"]
}
};

Expand Down Expand Up @@ -63,10 +66,10 @@ module.exports = {
skipDryRun: true
},
"alchemy-arbitrum-mainnet": {
provider: () => new HDWalletProvider(process.env.ARBITRUM_PRIV_KEY, "https://arb-goerli.g.alchemy.com/v2/" + process.env.ALCHEMY_API_KEY),
provider: () => new HDWalletProvider(process.env.ARBITRUM_PRIV_KEY, "https://arb-mainnet.g.alchemy.com/v2/" + process.env.ALCHEMY_API_KEY),
network_id: 42161,
gas: 6e6,
gasPrice: 1e9,
gas: 6e7,
gasPrice: 3e8,
skipDryRun: true
}
},
Expand Down

0 comments on commit 1a4e484

Please sign in to comment.