Skip to content

Commit

Permalink
🚑️ Remove tenderly free rpc endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
KONFeature committed Dec 18, 2024
1 parent ac10522 commit 2e87d9e
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 20 deletions.
Binary file modified bun.lockb
Binary file not shown.
2 changes: 2 additions & 0 deletions infra/erpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ export const erpcService = new SstService("Erpc", {
ERPC_LOG_LEVEL: "warn",
ERPC_DATABASE_URL: dbUrl,
},
// Link the service to the deployed database
link: [database],
// SSM secrets
ssm: {
// RPCs
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"@pulumi/pulumi": "^3.142.0",
"@types/aws-lambda": "8.10.146",
"@types/node": "^22.10.1",
"sst": "3.3.44",
"sst": "3.4.18",
"typescript": "^5.7.2"
},
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion packages/erpc/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ RUN cd /temp/dev && bun install --production
RUN cd /temp/dev && bun build --outfile ./erpc.js --minify --target node --external "@erpc-cloud/*" src/index.ts

# Final image
FROM ghcr.io/erpc/erpc:main AS FINAL
FROM ghcr.io/erpc/erpc:main AS final

# Copy the bundled config
COPY --from=bundler ./temp/dev/erpc.js /root/erpc.js
Expand Down
2 changes: 1 addition & 1 deletion packages/erpc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"devDependencies": {
"@biomejs/biome": "1.9.4",
"viem": "^2.21.54",
"sst": "3.3.29",
"sst": "3.4.18",
"typescript": "^5.7.2"
},
"dependencies": {
Expand Down
17 changes: 2 additions & 15 deletions packages/erpc/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import {
envioUpstream,
llamaFreeUpstreamArb,
pimlicoUpstream,
tenderlyFreeUpstreamArbSepolia,
} from "./upstreams";

/**
Expand All @@ -37,7 +36,6 @@ export default initErpcConfig({
enabled: true,
listenV6: false,
},
blablou: "test",
})
.addRateLimiters({
alchemy: alchemyRateRules,
Expand All @@ -60,7 +58,6 @@ export default initErpcConfig({
pimlico: pimlicoUpstream,
drpc: drpcUpstream,
llamaFree: llamaFreeUpstreamArb,
tenderlyFree: tenderlyFreeUpstreamArbSepolia,
})
// Add our ponder prod project
.addProject(({ store: { upstreams, networks } }) => ({
Expand All @@ -87,12 +84,7 @@ export default initErpcConfig({
.addProject(({ store: { upstreams, networks } }) => ({
id: "ponder-dev-rpc",
networks: [networks.arbitrumSepolia],
upstreams: [
upstreams.alchemy,
upstreams.envio,
upstreams.drpc,
upstreams.tenderlyFree,
],
upstreams: [upstreams.alchemy, upstreams.envio, upstreams.drpc],
auth: {
strategies: [
{
Expand All @@ -108,12 +100,7 @@ export default initErpcConfig({
.addProject(({ store: { upstreams, networks } }) => ({
id: "nexus-rpc",
networks: [networks.arbitrum, networks.arbitrumSepolia],
upstreams: [
upstreams.alchemy,
upstreams.drpc,
upstreams.llamaFree,
upstreams.tenderlyFree,
],
upstreams: [upstreams.alchemy, upstreams.drpc, upstreams.llamaFree],
auth: {
strategies: [
{
Expand Down
3 changes: 1 addition & 2 deletions packages/erpc/src/upstreams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ if (!process.env.DRPC_API_KEY) {
*/
const erc4337Methods = [
"eth_estimateUserOperationGas",
"eth_getUserOperationByHash",
"eth_getUserOperationReceipt",
"eth_getUserOperation*",
"eth_sendUserOperation",
"eth_supportedEntryPoints",
"pm_*",
Expand Down

0 comments on commit 2e87d9e

Please sign in to comment.