Skip to content

Commit

Permalink
Add some contracts that are not in Storage
Browse files Browse the repository at this point in the history
  • Loading branch information
0xJohnnyGault committed Mar 14, 2024
1 parent 133014c commit ac6bc08
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 2 additions & 0 deletions public/deployments/mainnet.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ const deployment = {
contracts: {}, // will merge in contracts.json
dashboard: [], // will merge in dashboard.json
pandasia: "0x5746c7210f668e2aFc7D572C39Ff2f61a1FA593B",
MinipoolStreamliner: "0x8C05D78066431C3b11bBFB6f3546fD3F1396115C",
OonodzHardwareProvider: "0xfE6ca6cD383d1e213f5d1015dD0BB35275E8Fe3E",
};

async function deploymentFn() {
Expand Down
11 changes: 10 additions & 1 deletion public/js/gogopool.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ class GoGoPool {
storage = this.required(),
multicall3 = this.required(),
pandasia = this.required(),
OonodzHardwareProvider,
MinipoolStreamliner,
EOALabels = {},
transforms = [],
dashboard = [],
Expand All @@ -73,6 +75,8 @@ class GoGoPool {
transforms,
dashboard,
pandasia,
OonodzHardwareProvider,
MinipoolStreamliner,
});
this.minipoolsData = [];
this.dashboardData = [];
Expand All @@ -85,7 +89,9 @@ class GoGoPool {
getContracts() {
const data = [];
for (const c in this.contracts) {
data.push({ name: c, address: this.contracts[c].address });
if (this.contracts[c].address) {
data.push({ name: c, address: this.contracts[c].address });
}
}
data.push({ name: "Multicall3", address: this.multicall3 });
return data;
Expand Down Expand Up @@ -158,6 +164,9 @@ class GoGoPool {
// if we have a pandasia contract, set the address
this.contracts["Pandasia"].address = this.pandasia;
}
this.contracts["MinipoolStreamliner"].address = this.MinipoolStreamliner;
this.contracts["OonodzHardwareProvider"].address = this.OonodzHardwareProvider;

console.log(this.contracts);
this.isLoaded = true;
}
Expand Down

0 comments on commit ac6bc08

Please sign in to comment.