Skip to content

Commit

Permalink
feat: configs updated for new public node suggested endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
maaasyn committed May 9, 2024
1 parent d3b7b41 commit f902a26
Showing 1 changed file with 91 additions and 92 deletions.
183 changes: 91 additions & 92 deletions pm2.config.js
Original file line number Diff line number Diff line change
@@ -1,95 +1,94 @@
module.exports = {
apps: [
{
name: 'l2-micro-service',
script: 'target/release/l2-micro-service',
env: {
ARBITRUM_SEPOLIA_RPC_URL:'https://arbitrum-sepolia.publicnode.com',
ARBITRUM_MAINNET_RPC_URL:'https://arbitrum-one.publicnode.com',
DB_URL:'postgresql://postgres:password@localhost:5432/l2indexer',
}
apps: [
{
name: "l2-micro-service",
script: "target/release/l2-micro-service",
env: {
ARBITRUM_SEPOLIA_RPC_URL: "https://arbitrum-sepolia-rpc.publicnode.com",
ARBITRUM_MAINNET_RPC_URL: "https://arbitrum-one-rpc.publicnode.com",
DB_URL: "postgresql://postgres:password@localhost:5432/l2indexer",
},
// {
// name: 'monitor-arbitrum-sepolia',
// script: 'target/release/monitor-events',
// env: {
// CHAIN_TYPE: 'sepolia',
// CHAIN_NAME: 'arbitrum',
// RPC_URL: 'https://ethereum-sepolia.publicnode.com',
// DB_URL:'postgresql://postgres:password@localhost:5432/l2indexer',
// }
// },
// {
// name: 'monitor-base-sepolia',
// script: 'target/release/monitor-events',
// env: {
// CHAIN_TYPE: 'sepolia',
// CHAIN_NAME: 'base',
// RPC_URL: 'https://ethereum-sepolia.publicnode.com',
// DB_URL:'postgresql://postgres:password@localhost:5432/l2indexer',
// }
// },
{
name: 'monitor-optimism-sepolia',
script: 'target/release/monitor-events',
env: {
CHAIN_TYPE: 'sepolia',
CHAIN_NAME: 'optimism',
RPC_URL: 'https://ethereum-sepolia.publicnode.com',
DB_URL:'postgresql://postgres:password@localhost:5432/l2indexer',
}
},
// {
// name: 'monitor-arbitrum-sepolia',
// script: 'target/release/monitor-events',
// env: {
// CHAIN_TYPE: 'sepolia',
// CHAIN_NAME: 'arbitrum',
// RPC_URL: 'https://ethereum-sepolia-rpc.publicnode.com',
// DB_URL:'postgresql://postgres:password@localhost:5432/l2indexer',
// }
// },
// {
// name: 'monitor-base-sepolia',
// script: 'target/release/monitor-events',
// env: {
// CHAIN_TYPE: 'sepolia',
// CHAIN_NAME: 'base',
// RPC_URL: 'https://ethereum-sepolia-rpc.publicnode.com',
// DB_URL:'postgresql://postgres:password@localhost:5432/l2indexer',
// }
// },
{
name: "monitor-optimism-sepolia",
script: "target/release/monitor-events",
env: {
CHAIN_TYPE: "sepolia",
CHAIN_NAME: "optimism",
RPC_URL: "https://ethereum-sepolia-rpc.publicnode.com",
DB_URL: "postgresql://postgres:password@localhost:5432/l2indexer",
},
// TODO: Zora docs haven't update sepolia `L2OutputOracle` address
// {
// name: 'monitor-zora-sepolia',
// script: 'target/release/monitor-events',
// env: {
// CHAIN_TYPE: 'sepolia',
// CHAIN_NAME: 'zora',
// RPC_URL: 'https://ethereum-sepolia.publicnode.com'
// }
// },
// {
// name: 'monitor-base-mainnet',
// script: 'target/release/monitor-events',
// env: {
// CHAIN_TYPE: 'mainnet',
// CHAIN_NAME: 'base',
// RPC_URL: 'https://ethereum.publicnode.com',
// DB_URL:'postgresql://postgres:password@localhost:5432/l2indexer',
// }
// },
// {
// name: 'monitor-optimism-mainnet',
// script: 'target/release/monitor-events',
// env: {
// CHAIN_TYPE: 'mainnet',
// CHAIN_NAME: 'optimism',
// RPC_URL: 'https://ethereum.publicnode.com',
// DB_URL:'postgresql://postgres:password@localhost:5432/l2indexer',
// }
// },
// {
// name: 'monitor-zora-mainnet',
// script: 'target/release/monitor-events',
// env: {
// CHAIN_TYPE: 'mainnet',
// CHAIN_NAME: 'zora',
// RPC_URL: 'https://ethereum.publicnode.com',
// DB_URL:'postgresql://postgres:password@localhost:5432/l2indexer',
// }
// },
// {
// name: 'monitor-arbitrum-mainnet',
// script: 'target/release/monitor-events',
// env: {
// CHAIN_TYPE: 'mainnet',
// CHAIN_NAME: 'arbitrum',
// RPC_URL: 'https://ethereum.publicnode.com',
// DB_URL:'postgresql://postgres:password@localhost:5432/l2indexer',
// }
// }
]
};
},
// TODO: Zora docs haven't update sepolia `L2OutputOracle` address
// {
// name: 'monitor-zora-sepolia',
// script: 'target/release/monitor-events',
// env: {
// CHAIN_TYPE: 'sepolia',
// CHAIN_NAME: 'zora',
// RPC_URL: 'https://ethereum-sepolia-rpc.publicnode.com'
// }
// },

// {
// name: 'monitor-base-mainnet',
// script: 'target/release/monitor-events',
// env: {
// CHAIN_TYPE: 'mainnet',
// CHAIN_NAME: 'base',
// RPC_URL: 'https://ethereum-rpc.publicnode.com',
// DB_URL:'postgresql://postgres:password@localhost:5432/l2indexer',
// }
// },
// {
// name: 'monitor-optimism-mainnet',
// script: 'target/release/monitor-events',
// env: {
// CHAIN_TYPE: 'mainnet',
// CHAIN_NAME: 'optimism',
// RPC_URL: 'https://ethereum-rpc.publicnode.com',
// DB_URL:'postgresql://postgres:password@localhost:5432/l2indexer',
// }
// },
// {
// name: 'monitor-zora-mainnet',
// script: 'target/release/monitor-events',
// env: {
// CHAIN_TYPE: 'mainnet',
// CHAIN_NAME: 'zora',
// RPC_URL: 'https://ethereum-rpc.publicnode.com',
// DB_URL:'postgresql://postgres:password@localhost:5432/l2indexer',
// }
// },
// {
// name: 'monitor-arbitrum-mainnet',
// script: 'target/release/monitor-events',
// env: {
// CHAIN_TYPE: 'mainnet',
// CHAIN_NAME: 'arbitrum',
// RPC_URL: 'https://ethereum-rpc.publicnode.com',
// DB_URL:'postgresql://postgres:password@localhost:5432/l2indexer',
// }
// }
],
};

0 comments on commit f902a26

Please sign in to comment.