Skip to content

Commit

Permalink
Save deployed addresses to @casimir/env
Browse files Browse the repository at this point in the history
  • Loading branch information
shanejearley committed Sep 15, 2023
1 parent 2159ca6 commit a143e35
Show file tree
Hide file tree
Showing 10 changed files with 1,457 additions and 30 deletions.
1 change: 1 addition & 0 deletions common/env/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
9 changes: 9 additions & 0 deletions common/env/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "@casimir/env",
"private": "true",
"main": "src/index.ts",
"scripts": {
"build": "echo '@casimir/env build not specified. Disregard this warning and any listed errors above if @casimir/env is not needed for the current project build.' && exit 0",
"test": "echo \"Error: no test specified\" && exit 1"
}
}
30 changes: 30 additions & 0 deletions common/env/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
const ETHEREUM_CONTRACT_ADDRESSES = {
TESTNET: {
FunctionsOracleFactory: '0xfA2D8643D87E625004bcA263Bcd2002255fDD4BB',
FunctionsOracle: '0xF89a8DDFdb39C6BB3125bBeA3BB356B40A99b46f',
FunctionsBillingRegistry: '0x6310Cc8288aE5f70E914363c72F7d2e1D1C8533d',
CasimirPoolBeacon: '0x98A6f99c1bD042b4B1B5C03755805a7FFac902e1',
CasimirRegistryBeacon: '0x3FB35C4de1a1AeA102B192d28391227C93305cA5',
CasimirUpkeepBeacon: '0x12CCBd11A592Bc7ad0405c15c90c8419b390E814',
CasimirManager: '0x813aA99639F77A275b5bD5E12904cCd48826C19F',
CasimirRegistry: '0x97d5b6F9801D2CdCB492e567b1246a837Cd8d2D4',
CasimirUpkeep: '0x1A4f46e5209b71C11aeb6776fD161B80174B2a63',
CasimirViews: '0xc9F69bD5F43153FB485cBF1DB907EE1eb28c9B29'
}
}

enum ETHEREUM_FORK_URL {
MAINNET = 'https://mainnet.infura.io/v3/46a379ac6895489f812f33beb726b03b',
TESTNET = 'https://goerli.infura.io/v3/46a379ac6895489f812f33beb726b03b'
}

enum ETHEREUM_NETWORK_NAME {
MAINNET = 'mainnet',
TESTNET = 'goerli'
}
enum ETHEREUM_NETWORK_URL {
MAINNET = 'https://mainnet.infura.io/v3/46a379ac6895489f812f33beb726b03b',
TESTNET = 'https://goerli.infura.io/v3/46a379ac6895489f812f33beb726b03b'
}

export { ETHEREUM_CONTRACT_ADDRESSES, ETHEREUM_FORK_URL, ETHEREUM_NETWORK_NAME, ETHEREUM_NETWORK_URL }
19 changes: 19 additions & 0 deletions common/env/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"compilerOptions": {
"target": "ESNext",
"strict": true,
"preserveConstEnums": true,
"noEmit": true,
"sourceMap": false,
"module": "CommonJS",
"moduleResolution": "node",
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"isolatedModules": true,
"resolveJsonModule": true
},
"include": [
"./src/*"
]
}
Loading

0 comments on commit a143e35

Please sign in to comment.