Skip to content

Commit

Permalink
additions for optimism sepolia and arbitrum sepolia
Browse files Browse the repository at this point in the history
  • Loading branch information
chuckbergeron committed Nov 23, 2023
1 parent 344e4b6 commit 2439fef
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .envrc.example
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ export OPTIMISM_MAINNET_RPC_URL=''
export ETHEREUM_GOERLI_RPC_URL=''
export OPTIMISM_GOERLI_RPC_URL=''

export ARBITRUM_SEPOLIA_RPC_URL=''
export OPTIMISM_SEPOLIA_RPC_URL=''

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"@ethersproject/bignumber": "^5.5.0",
"@ethersproject/contracts": "^5.5.0",
"@ethersproject/providers": "^5.5.3",
"@generationsoftware/pt-v5-utils-js": "1.0.2",
"@generationsoftware/pt-v5-utils-js": "1.0.5",
"@oclif/core": "^2.8.5",
"@oclif/plugin-help": "^5",
"@oclif/plugin-plugins": "^3.0.1",
Expand Down Expand Up @@ -79,4 +79,4 @@
"oclif"
],
"types": "dist/index.d.ts"
}
}
2 changes: 2 additions & 0 deletions src/lib/utils/getProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ const providers: Providers = {
// testnets
5: new JsonRpcProvider(process.env.ETHEREUM_GOERLI_RPC_URL),
420: new JsonRpcProvider(process.env.OPTIMISM_GOERLI_RPC_URL),
421614: new JsonRpcProvider(process.env.ARBITRUM_SEPOLIA_RPC_URL),
11155420: new JsonRpcProvider(process.env.OPTIMISM_SEPOLIA_RPC_URL),
}

export const getProvider = (chainId: string): JsonRpcProvider => {
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -409,10 +409,10 @@
resolved "https://registry.yarnpkg.com/@gar/promisify/-/promisify-1.1.3.tgz#555193ab2e3bb3b6adc3d551c9c030d9e860daf6"
integrity sha512-k2Ty1JcVojjJFwrg/ThKi2ujJ7XNLYaFGNB/bWT9wGR+oSMJHMa5w+CUq6p/pVrKeNNgA7pCqEcjSnHVoqJQFw==

"@generationsoftware/[email protected].2":
version "1.0.2"
resolved "https://registry.yarnpkg.com/@generationsoftware/pt-v5-utils-js/-/pt-v5-utils-js-1.0.2.tgz#8ff660ff625d1534d50ab04e0206813bfd8d31e9"
integrity sha512-wr1Xn+OQ158V8I9dHwzCQLiPcZrcCFwHxuG2bwurvC9Z5v22AQsO1bqzur0yyn+kQCP+9FB41jWxG9yTKqJV6Q==
"@generationsoftware/[email protected].5":
version "1.0.5"
resolved "https://registry.yarnpkg.com/@generationsoftware/pt-v5-utils-js/-/pt-v5-utils-js-1.0.5.tgz#72d80e99ec3787d72a26a023525785291102caf9"
integrity sha512-4hsu6oafFUXA4Ap5SoNtLD+eVPp2MLIgkx6tIURQ32W9RdGfsqD1ikkft3tbzLesHZUk+Zy1Fjj1V15SJm8cnQ==
dependencies:
"@pooltogether/contract-list-schema" "^0.1.4"
"@types/lodash" "^4.14.195"
Expand Down

0 comments on commit 2439fef

Please sign in to comment.