chore: sync submodule state (parent ref update)
Made-with: Cursor
This commit is contained in:
@@ -121,6 +121,33 @@ export const bridgeConfig = {
|
||||
baseFee: 10,
|
||||
feeRecipient: process.env.BNB_FEE_RECIPIENT || ''
|
||||
},
|
||||
{
|
||||
chainId: 100,
|
||||
chainName: 'Gnosis Chain',
|
||||
enabled: true,
|
||||
minFinalityBlocks: 12,
|
||||
timeoutSeconds: 1800,
|
||||
baseFee: 10,
|
||||
feeRecipient: process.env.GNOSIS_FEE_RECIPIENT || ''
|
||||
},
|
||||
{
|
||||
chainId: 42220,
|
||||
chainName: 'Celo',
|
||||
enabled: true,
|
||||
minFinalityBlocks: 1,
|
||||
timeoutSeconds: 1800,
|
||||
baseFee: 10,
|
||||
feeRecipient: process.env.CELO_FEE_RECIPIENT || ''
|
||||
},
|
||||
{
|
||||
chainId: 1111,
|
||||
chainName: 'Wemix',
|
||||
enabled: true,
|
||||
minFinalityBlocks: 1,
|
||||
timeoutSeconds: 1800,
|
||||
baseFee: 10,
|
||||
feeRecipient: process.env.WEMIX_FEE_RECIPIENT || ''
|
||||
},
|
||||
{
|
||||
chainId: 0,
|
||||
chainName: 'XRPL',
|
||||
@@ -138,7 +165,7 @@ export const bridgeConfig = {
|
||||
address: '0x0000000000000000000000000000000000000000', // Native ETH
|
||||
minAmount: '1000000000000000', // 0.001 ETH
|
||||
maxAmount: '100000000000000000000', // 100 ETH
|
||||
allowedDestinations: [137, 10, 8453, 42161, 43114, 56, 0], // All destinations
|
||||
allowedDestinations: [137, 10, 8453, 42161, 43114, 56, 100, 42220, 1111, 0], // All destinations
|
||||
riskLevel: 0,
|
||||
bridgeFeeBps: 0
|
||||
},
|
||||
@@ -146,7 +173,7 @@ export const bridgeConfig = {
|
||||
address: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2', // WETH
|
||||
minAmount: '1000000000000000',
|
||||
maxAmount: '100000000000000000000',
|
||||
allowedDestinations: [137, 10, 8453, 42161, 43114, 56],
|
||||
allowedDestinations: [137, 10, 8453, 42161, 43114, 56, 100, 42220, 1111],
|
||||
riskLevel: 0,
|
||||
bridgeFeeBps: 5 // 0.05%
|
||||
}
|
||||
|
||||
@@ -45,5 +45,5 @@ privacy-enabled=false
|
||||
|
||||
# Native Accounts
|
||||
|
||||
max-peers=25
|
||||
max-peers=32
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ metrics-push-enabled=false
|
||||
logging="WARN"
|
||||
|
||||
permissions-nodes-config-file-enabled=true
|
||||
permissions-nodes-config-file="/var/lib/besu/permissions/permissioned-nodes.json"
|
||||
permissions-nodes-config-file="/var/lib/besu/permissions/permissions-nodes.toml"
|
||||
permissions-accounts-config-file-enabled=true
|
||||
permissions-accounts-config-file="/permissions/permissions-accounts.toml"
|
||||
|
||||
@@ -46,12 +46,12 @@ static-nodes-file="/var/lib/besu/static-nodes.json"
|
||||
|
||||
# Discovery - DISABLED to prevent connection to Ethereum mainnet
|
||||
# This node reports chainID 0x1 to MetaMask for wallet compatibility, but must stay on ChainID 138
|
||||
# Disabling discovery ensures the node only connects via static-nodes.json and permissioned-nodes.json
|
||||
# Disabling discovery ensures the node only connects via static-nodes.json and permissions-nodes.toml
|
||||
discovery-enabled=false
|
||||
|
||||
privacy-enabled=false
|
||||
|
||||
# Gas Configuration
|
||||
|
||||
max-peers=25
|
||||
max-peers=32
|
||||
|
||||
|
||||
@@ -30,8 +30,10 @@ metrics-push-enabled=false
|
||||
logging="WARN"
|
||||
|
||||
permissions-nodes-config-file-enabled=true
|
||||
permissions-nodes-config-file="/var/lib/besu/permissions/permissioned-nodes.json"
|
||||
permissions-accounts-config-file-enabled=false
|
||||
permissions-nodes-config-file="/var/lib/besu/permissions/permissions-nodes.toml"
|
||||
# Require address on allowlist (permissions-accounts.toml); only listed address can send txs.
|
||||
permissions-accounts-config-file-enabled=true
|
||||
permissions-accounts-config-file="/permissions/permissions-accounts.toml"
|
||||
|
||||
# Transaction Pool Configuration
|
||||
tx-pool-max-size=8192
|
||||
@@ -51,7 +53,7 @@ privacy-enabled=false
|
||||
# Gas Configuration
|
||||
|
||||
|
||||
max-peers=25
|
||||
max-peers=32
|
||||
|
||||
# RPC Timeout Configuration (increased for large deployments)
|
||||
rpc-http-timeout=120
|
||||
|
||||
@@ -34,7 +34,7 @@ metrics-push-enabled=false
|
||||
logging="WARN"
|
||||
|
||||
permissions-nodes-config-file-enabled=true
|
||||
permissions-nodes-config-file="/var/lib/besu/permissions/permissioned-nodes.json"
|
||||
permissions-nodes-config-file="/var/lib/besu/permissions/permissions-nodes.toml"
|
||||
permissions-accounts-config-file-enabled=true
|
||||
permissions-accounts-config-file="/permissions/permissions-accounts.toml"
|
||||
|
||||
@@ -46,12 +46,12 @@ static-nodes-file="/var/lib/besu/static-nodes.json"
|
||||
|
||||
# Discovery - DISABLED to prevent connection to Ethereum mainnet
|
||||
# This node reports chainID 0x1 to MetaMask for wallet compatibility, but must stay on ChainID 138
|
||||
# Disabling discovery ensures the node only connects via static-nodes.json and permissioned-nodes.json
|
||||
# Disabling discovery ensures the node only connects via static-nodes.json and permissions-nodes.toml
|
||||
discovery-enabled=false
|
||||
|
||||
privacy-enabled=false
|
||||
|
||||
# Gas Configuration
|
||||
|
||||
max-peers=25
|
||||
max-peers=32
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ metrics-push-enabled=false
|
||||
logging="WARN"
|
||||
|
||||
permissions-nodes-config-file-enabled=true
|
||||
permissions-nodes-config-file="/var/lib/besu/permissions/permissioned-nodes.json"
|
||||
permissions-nodes-config-file="/var/lib/besu/permissions/permissions-nodes.toml"
|
||||
permissions-accounts-config-file-enabled=true
|
||||
permissions-accounts-config-file="/permissions/permissions-accounts.toml"
|
||||
|
||||
@@ -46,12 +46,12 @@ static-nodes-file="/var/lib/besu/static-nodes.json"
|
||||
|
||||
# Discovery - DISABLED to prevent connection to Ethereum mainnet
|
||||
# This node reports chainID 0x1 to MetaMask for wallet compatibility, but must stay on ChainID 138
|
||||
# Disabling discovery ensures the node only connects via static-nodes.json and permissioned-nodes.json
|
||||
# Disabling discovery ensures the node only connects via static-nodes.json and permissions-nodes.toml
|
||||
discovery-enabled=false
|
||||
|
||||
privacy-enabled=false
|
||||
|
||||
# Gas Configuration
|
||||
|
||||
max-peers=25
|
||||
max-peers=32
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ metrics-push-enabled=false
|
||||
logging="WARN"
|
||||
|
||||
permissions-nodes-config-file-enabled=true
|
||||
permissions-nodes-config-file="/var/lib/besu/permissions/permissioned-nodes.json"
|
||||
permissions-nodes-config-file="/var/lib/besu/permissions/permissions-nodes.toml"
|
||||
permissions-accounts-config-file-enabled=true
|
||||
permissions-accounts-config-file="/permissions/permissions-accounts.toml"
|
||||
|
||||
@@ -49,5 +49,5 @@ privacy-enabled=false
|
||||
# Gas Configuration
|
||||
|
||||
|
||||
max-peers=25
|
||||
max-peers=32
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
# Besu Configuration for Public RPC Nodes
|
||||
# Besu Configuration for Public RPC Nodes (e.g. VMID 2201 besu-rpc-public-1)
|
||||
# Read-only: account permissioning enabled with empty allowlist so no account
|
||||
# can submit transactions; contract deployment and eth_sendRawTransaction are blocked.
|
||||
data-path="/data/besu"
|
||||
genesis-file="/genesis/genesis.json"
|
||||
|
||||
@@ -13,7 +15,8 @@ sync-mode="FULL"
|
||||
rpc-http-enabled=true
|
||||
rpc-http-host="0.0.0.0"
|
||||
rpc-http-port=8545
|
||||
rpc-http-api=["ETH","NET","WEB3"]
|
||||
# TRACE required for Blockscout internal txs and block rewards (trace_block, trace_replayBlockTransactions)
|
||||
rpc-http-api=["ETH","NET","WEB3","TRACE"]
|
||||
rpc-http-cors-origins=["*"]
|
||||
|
||||
rpc-ws-enabled=false
|
||||
@@ -27,7 +30,9 @@ logging="WARN"
|
||||
|
||||
permissions-nodes-config-file-enabled=true
|
||||
permissions-nodes-config-file="/permissions/permissions-nodes.toml"
|
||||
permissions-accounts-config-file-enabled=false
|
||||
# Empty allowlist = no account can send transactions; no contract deployment via this RPC.
|
||||
permissions-accounts-config-file-enabled=true
|
||||
permissions-accounts-config-file="/permissions/permissions-accounts-public.toml"
|
||||
|
||||
# Transaction Pool
|
||||
|
||||
@@ -44,5 +49,5 @@ privacy-enabled=false
|
||||
# Gas Configuration
|
||||
|
||||
|
||||
max-peers=25
|
||||
max-peers=32
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ metrics-push-enabled=false
|
||||
logging="WARN"
|
||||
|
||||
permissions-nodes-config-file-enabled=true
|
||||
permissions-nodes-config-file="/var/lib/besu/permissions/permissioned-nodes.json"
|
||||
permissions-nodes-config-file="/var/lib/besu/permissions/permissions-nodes.toml"
|
||||
permissions-accounts-config-file-enabled=true
|
||||
permissions-accounts-config-file="/permissions/permissions-accounts.toml"
|
||||
|
||||
@@ -46,12 +46,12 @@ static-nodes-file="/var/lib/besu/static-nodes.json"
|
||||
|
||||
# Discovery - DISABLED to prevent connection to Ethereum mainnet
|
||||
# This node reports chainID 0x1 to MetaMask for wallet compatibility, but must stay on ChainID 138
|
||||
# Disabling discovery ensures the node only connects via static-nodes.json and permissioned-nodes.json
|
||||
# Disabling discovery ensures the node only connects via static-nodes.json and permissions-nodes.toml
|
||||
discovery-enabled=false
|
||||
|
||||
privacy-enabled=false
|
||||
|
||||
# Gas Configuration
|
||||
|
||||
max-peers=25
|
||||
max-peers=32
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ metrics-push-enabled=false
|
||||
logging="WARN"
|
||||
|
||||
permissions-nodes-config-file-enabled=true
|
||||
permissions-nodes-config-file="/var/lib/besu/permissions/permissioned-nodes.json"
|
||||
permissions-nodes-config-file="/var/lib/besu/permissions/permissions-nodes.toml"
|
||||
permissions-accounts-config-file-enabled=true
|
||||
permissions-accounts-config-file="/permissions/permissions-accounts.toml"
|
||||
|
||||
@@ -46,12 +46,12 @@ static-nodes-file="/var/lib/besu/static-nodes.json"
|
||||
|
||||
# Discovery - DISABLED to prevent connection to Ethereum mainnet
|
||||
# This node reports chainID 0x1 to MetaMask for wallet compatibility, but must stay on ChainID 138
|
||||
# Disabling discovery ensures the node only connects via static-nodes.json and permissioned-nodes.json
|
||||
# Disabling discovery ensures the node only connects via static-nodes.json and permissions-nodes.toml
|
||||
discovery-enabled=false
|
||||
|
||||
privacy-enabled=false
|
||||
|
||||
# Gas Configuration
|
||||
|
||||
max-peers=25
|
||||
max-peers=32
|
||||
|
||||
|
||||
@@ -46,5 +46,5 @@ privacy-enabled=false
|
||||
|
||||
# Native Accounts
|
||||
|
||||
max-peers=25
|
||||
max-peers=32
|
||||
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
"berlinBlock": 0,
|
||||
"londonBlock": 0,
|
||||
"istanbulBlock": 0,
|
||||
"shanghaiTime": 0,
|
||||
"cancunTime": 0,
|
||||
"ibft2": {
|
||||
"blockperiodseconds": 2,
|
||||
"epochlength": 30000,
|
||||
|
||||
50
config/infura-rpc-urls.conf
Normal file
50
config/infura-rpc-urls.conf
Normal file
@@ -0,0 +1,50 @@
|
||||
# Infura RPC URLs Reference
|
||||
# Set INFURA_PROJECT_ID and optionally INFURA_PROJECT_SECRET in .env.
|
||||
# Scripts build URLs from these (see scripts/lib/infura.sh); when INFURA_PROJECT_SECRET is set, Basic Auth is used.
|
||||
# This file lists path suffixes only; replace <INFURA_PROJECT_ID> with your project ID for reference.
|
||||
# Never commit .env with real keys. See smom-dbis-138/.env.example for INFURA_PROJECT_ID / INFURA_PROJECT_SECRET.
|
||||
|
||||
# EVM Chains (host path = line value before .infura.io)
|
||||
ETHEREUM_MAINNET=mainnet
|
||||
ETHEREUM_SEPOLIA=sepolia
|
||||
LINEA_MAINNET=linea-mainnet
|
||||
POLYGON_MAINNET=polygon-mainnet
|
||||
POLYGON_AMOY=polygon-amoy
|
||||
BASE_MAINNET=base-mainnet
|
||||
BASE_SEPOLIA=base-sepolia
|
||||
BLAST_MAINNET=blast-mainnet
|
||||
OPTIMISM_MAINNET=optimism-mainnet
|
||||
OPTIMISM_SEPOLIA=optimism-sepolia
|
||||
ARBITRUM_MAINNET=arbitrum-mainnet
|
||||
ARBITRUM_SEPOLIA=arbitrum-sepolia
|
||||
PALM_MAINNET=palm-mainnet
|
||||
AVALANCHE_MAINNET=avalanche-mainnet
|
||||
AVALANCHE_FUJI=avalanche-fuji
|
||||
CELO_MAINNET=celo-mainnet
|
||||
ZKSYNC_MAINNET=zksync-mainnet
|
||||
BSC_MAINNET=bsc-mainnet
|
||||
BSC_TESTNET=bsc-testnet
|
||||
HEMI_MAINNET=hemi-mainnet
|
||||
MANTLE_MAINNET=mantle-mainnet
|
||||
MEGAETH_MAINNET=megaeth-mainnet
|
||||
MONAD_MAINNET=monad-mainnet
|
||||
OPBNB_MAINNET=opbnb-mainnet
|
||||
OPBNB_TESTNET=opbnb-testnet
|
||||
SCROLL_MAINNET=scroll-mainnet
|
||||
SEI_MAINNET=sei-mainnet
|
||||
SWELLCHAIN_MAINNET=swellchain-mainnet
|
||||
UNICHAIN_MAINNET=unichain-mainnet
|
||||
|
||||
# Testnets (optional; match official Infura/MetaMask endpoint list)
|
||||
CELO_SEPOLIA=celo-sepolia
|
||||
LINEA_SEPOLIA=linea-sepolia
|
||||
SCROLL_SEPOLIA=scroll-sepolia
|
||||
BLAST_SEPOLIA=blast-sepolia
|
||||
ETHEREUM_HOODI=hoodi
|
||||
ZKSYNC_SEPOLIA=zksync-sepolia
|
||||
|
||||
# Starknet (different API; not EVM JSON-RPC)
|
||||
STARKNET_MAINNET=starknet-mainnet
|
||||
|
||||
# Full URL pattern: https://[PROJECT_ID:PROJECT_SECRET@]<host_path>.infura.io/v3/<PROJECT_ID>
|
||||
# Official list: MetaMask Developer dashboard / Infura docs. See docs/deployment/INFURA_ENDPOINTS_REFERENCE.md.
|
||||
4
config/permissions-accounts-public.toml
Normal file
4
config/permissions-accounts-public.toml
Normal file
@@ -0,0 +1,4 @@
|
||||
# Account permissioning for Public RPC (VMID 2201 besu-rpc-public-1)
|
||||
# Empty allowlist: no account can submit transactions. No contract deployment
|
||||
# from this node; eth_sendTransaction / eth_sendRawTransaction are blocked.
|
||||
accounts-allowlist=[]
|
||||
@@ -1,15 +1,7 @@
|
||||
# Account Permissioning Configuration
|
||||
# Lists accounts that are allowed to send transactions
|
||||
|
||||
# Account permissioning for Core RPC (VMID 2101) and Permissioned RPCs
|
||||
# Only addresses listed here can submit transactions (deploy contracts, send txs).
|
||||
# Used by: config-rpc-core.toml (2101), config-rpc-perm.toml (permissioned RPCs).
|
||||
accounts-allowlist=[
|
||||
# Oracle accounts (EOA addresses)
|
||||
# Example: "0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb"
|
||||
|
||||
# Admin accounts (EOA addresses)
|
||||
# Example: "0x0000000000000000000000000000000000000001"
|
||||
"0x4A666F96fC8764181194447A7dFdb7d471b301C8"
|
||||
]
|
||||
|
||||
# If accounts-allowlist is empty, all accounts are allowed (for development)
|
||||
# For production, populate with actual account addresses
|
||||
# Note: RPC nodes should use account permissioning to restrict write access
|
||||
|
||||
|
||||
Reference in New Issue
Block a user