Skip to content

Commit

Permalink
TEMP: hardcode mumbai deployment for now
Browse files Browse the repository at this point in the history
  • Loading branch information
datadanne committed Sep 7, 2023
1 parent 52f682e commit 18590c8
Showing 1 changed file with 22 additions and 5 deletions.
27 changes: 22 additions & 5 deletions garage/src/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,14 @@ export const secondaryChain = secondaryChainEnvMapping[environment];

const blockExplorerChainMapping = {
[DeploymentEnvironment.DEVELOPMENT]:
mainChainEnvMapping[DeploymentEnvironment.STAGING].blockExplorers.etherscan.url,
mainChainEnvMapping[DeploymentEnvironment.STAGING].blockExplorers.etherscan
.url,
[DeploymentEnvironment.STAGING]:
mainChainEnvMapping[DeploymentEnvironment.STAGING].blockExplorers.etherscan.url,
[DeploymentEnvironment.PRODUCTION]:
mainChainEnvMapping[DeploymentEnvironment.PRODUCTION].blockExplorers.etherscan
mainChainEnvMapping[DeploymentEnvironment.STAGING].blockExplorers.etherscan
.url,
[DeploymentEnvironment.PRODUCTION]:
mainChainEnvMapping[DeploymentEnvironment.PRODUCTION].blockExplorers
.etherscan.url,
};

export const blockExplorerBaseUrl = blockExplorerChainMapping[environment];
Expand All @@ -65,4 +67,19 @@ const deploymentEnvMapping = {
[DeploymentEnvironment.PRODUCTION]: deployments.ethereum,
};

export const deployment = deploymentEnvMapping[environment];
const defaultDevMbDeployment = {
missionContractAddress: "0x0165878A594ca255338adfa4d48449f69242Eb8F",
missionsTable: "missions_31337_2",
missionContributionsTable: "mission_contributions_31337_3",
};

const polygonDevMbDeployment = {
missionContractAddress: "0xB169B0bED3e4cA014dC329318935E0Dcf50e14b6",
missionsTable: "missions_80001_7223",
missionContributionsTable: "mission_contributions_80001_7224",
};

export const deployment = {
...deploymentEnvMapping[environment],
...polygonDevMbDeployment,
};

0 comments on commit 18590c8

Please sign in to comment.