Skip to content

Commit

Permalink
🐛 Remove blockpi rpc
Browse files Browse the repository at this point in the history
  • Loading branch information
KONFeature committed Nov 12, 2024
1 parent 0067aa8 commit ddd61cc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 37 deletions.
13 changes: 4 additions & 9 deletions packages/erpc/erpc-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ const blockpiArbSepoliaUpstream = buildEvmUpstream({
rateLimitBudget: blockPiRateLimits.id,
ignoreMethods: pimlicoSpecificMethods,
});
const blockpiArbUpstream = buildEvmUpstream({
const _blockpiArbUpstream = buildEvmUpstream({
id: "blockpi-arb",
endpoint: `https://arbitrum.blockpi.network/v1/rpc/${envVariable("BLOCKPI_API_KEY_ARB")}`,
rateLimitBudget: blockPiRateLimits.id,
Expand All @@ -168,7 +168,7 @@ const pimlicoUpstream = buildPimlicoUpstream({
const ponderProject: ProjectConfig = buildProject({
id: "ponder-rpc",
networks,
upstreams: [alchemyUpstream, blockpiArbUpstream],
upstreams: [alchemyUpstream],
auth: {
strategies: [
buildSecretAuthStrategy({
Expand All @@ -184,7 +184,7 @@ const ponderProject: ProjectConfig = buildProject({
const ponderDevProject: ProjectConfig = buildProject({
id: "ponder-dev-rpc",
networks,
upstreams: [alchemyUpstream, blockpiArbSepoliaUpstream],
upstreams: [alchemyUpstream],
auth: {
strategies: [
buildSecretAuthStrategy({
Expand All @@ -201,12 +201,7 @@ const ponderDevProject: ProjectConfig = buildProject({
const nexusProject: ProjectConfig = buildProject({
id: "nexus-rpc",
networks,
upstreams: [
alchemyUpstream,
pimlicoUpstream,
blockpiArbSepoliaUpstream,
blockpiArbUpstream,
],
upstreams: [alchemyUpstream, pimlicoUpstream],
cors: {
allowedOrigins: ["*"],
allowedMethods: ["GET", "POST", "OPTIONS"],
Expand Down
36 changes: 8 additions & 28 deletions packages/erpc/erpc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ database:
projects:
- rateLimitBudget: ""
id: ponder-rpc
networks: &var4
networks: &var3
- failsafe: &var1
timeout:
duration: 30s
Expand Down Expand Up @@ -88,13 +88,13 @@ projects:
architecture: evm
rateLimitBudget: ""
upstreams:
- &var5
- &var4
id: alchemy
endpoint: evm+alchemy://${ALCHEMY_API_KEY}
type: evm+alchemy
rateLimitBudget: alchemy-rate-limit
vendorName: Alchemy
ignoreMethods: &var3
ignoreMethods: &var5
- eth_estimateUserOperationGas
- eth_getUserOperationByHash
- eth_getUserOperationReceipt
Expand All @@ -104,15 +104,6 @@ projects:
- pimlico_*
allowMethods: []
autoIgnoreUnsupportedMethods: true
- &var7
id: blockpi-arb
endpoint: https://arbitrum.blockpi.network/v1/rpc/${BLOCKPI_API_KEY_ARB}
rateLimitBudget: block-pi-rate-limit
type: evm
vendorName: Generic Evm
ignoreMethods: *var3
allowMethods: []
autoIgnoreUnsupportedMethods: true
auth:
strategies:
- allowMethods:
Expand All @@ -124,18 +115,9 @@ projects:
value: ${PONDER_RPC_SECRET}
- rateLimitBudget: ""
id: ponder-dev-rpc
networks: *var4
networks: *var3
upstreams:
- *var5
- &var6
id: blockpi-arbSepolia
endpoint: https://arbitrum-sepolia.blockpi.network/v1/rpc/${BLOCKPI_API_KEY_ARB_SEPOLIA}
rateLimitBudget: block-pi-rate-limit
type: evm
vendorName: Generic Evm
ignoreMethods: *var3
allowMethods: []
autoIgnoreUnsupportedMethods: true
- *var4
auth:
strategies:
- allowMethods:
Expand All @@ -147,20 +129,18 @@ projects:
value: ${PONDER_RPC_SECRET}
- rateLimitBudget: ""
id: nexus-rpc
networks: *var4
networks: *var3
upstreams:
- *var5
- *var4
- id: pimlico
endpoint: evm+pimlico://${PIMLICO_API_KEY}
rateLimitBudget: pimlico-rate-limit
type: evm+pimlico
vendorName: Pimlico
ignoreMethods:
- "*"
allowMethods: *var3
allowMethods: *var5
autoIgnoreUnsupportedMethods: true
- *var6
- *var7
cors:
allowedOrigins:
- "*"
Expand Down

0 comments on commit ddd61cc

Please sign in to comment.