Skip to content

Commit

Permalink
setup: introduce new env variable to distinguish between C1 and A1 & …
Browse files Browse the repository at this point in the history
…include addresses in the Proxy.json
  • Loading branch information
bartfish committed Jun 2, 2023
1 parent 142d711 commit bdb4a93
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions server/config/default.ts
Expand Up @@ -19,5 +19,6 @@ export default {
mainnet: getEnv("MAINNET") || "FALSE",
cacheIntervalMs: 1800000, // update cache every hour
allowedAddressesCSV: "./files/allowed_addresses.csv",
milkomedaDeployment: getEnv("MILKOMEDA_DEPLOYMENT") || MilkomedaDeployment.C1
},
} as ConfigType;
6 changes: 6 additions & 0 deletions server/contract/Proxy.json
Expand Up @@ -34,6 +34,12 @@
}
],
"networks": {
"200202": {
"address": "0x000000000000000000000000000000000000bbbb"
},
"2002": {
"address": "0x000000000000000000000000000000000000bbbb"
},
"200101": {
"address": "0x319f10d19e21188ecF58b9a146Ab0b2bfC894648"
},
Expand Down
1 change: 1 addition & 0 deletions server/src/index.ts
Expand Up @@ -149,6 +149,7 @@ contract
console.log(`process.env.CONTRACT_HOST is ${process.env.CONTRACT_HOST}`);
console.log(`process.env.PORT is ${process.env.PORT}`);
console.log(`process.env.BRIDGE_CONTRACT_CHAIN_ID is ${process.env.BRIDGE_CONTRACT_CHAIN_ID}`);
console.log(`process.env.MILKOMEDA_DEPLOYMENT is ${process.env.MILKOMEDA_DEPLOYMENT}`);
console.log("--------------------------------");

cacheManager
Expand Down
6 changes: 6 additions & 0 deletions server/types/globals/index.d.ts
Expand Up @@ -11,7 +11,13 @@ interface ConfigType {
mainnet: string;
cacheIntervalMs: number;
allowedAddressesCSV: string;
milkomedaDeployment: MilkomedaDeployment
};
}

enum MilkomedaDeployment {
A1 = "A1",
C1 = "C1"
}

declare module "copy-webpack-plugin";

0 comments on commit bdb4a93

Please sign in to comment.