From 18590c81b15e5c66432c941d7ce9882e4bd3e31a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20=C3=96hrlund?= Date: Mon, 4 Sep 2023 23:32:59 -0700 Subject: [PATCH] TEMP: hardcode mumbai deployment for now --- garage/src/env.ts | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/garage/src/env.ts b/garage/src/env.ts index 67b83a68..63a1fd12 100644 --- a/garage/src/env.ts +++ b/garage/src/env.ts @@ -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]; @@ -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, +};