merge: chore/cleanup-remove-bloat-and-secrets into main
This commit is contained in:
commit
bde2f3a97d
1173 changed files with 437609 additions and 0 deletions
93
docker/x402-rs/config.yaml
Normal file
93
docker/x402-rs/config.yaml
Normal file
|
|
@ -0,0 +1,93 @@
|
|||
# x402-rs Facilitator Configuration
|
||||
# ==================================
|
||||
|
||||
server:
|
||||
host: "0.0.0.0"
|
||||
port: 8090
|
||||
log_level: "info"
|
||||
rate_limit:
|
||||
enabled: true
|
||||
requests_per_second: 100
|
||||
burst_size: 50
|
||||
|
||||
chains:
|
||||
ethereum:
|
||||
chain_id: 1
|
||||
rpc_url: "${ETH_RPC_URL:-https://eth.llamarpc.com}"
|
||||
native_token: "ETH"
|
||||
tokens:
|
||||
USDC:
|
||||
address: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
|
||||
decimals: 6
|
||||
USDT:
|
||||
address: "0xdAC17F958D2ee523a2206206994597C13D831ec7"
|
||||
decimals: 6
|
||||
DAI:
|
||||
address: "0x6B175474E89094C44Da98b954EedeAC495271d0F"
|
||||
decimals: 18
|
||||
base:
|
||||
chain_id: 8453
|
||||
rpc_url: "${BASE_RPC_URL:-https://base.llamarpc.com}"
|
||||
native_token: "ETH"
|
||||
tokens:
|
||||
USDC:
|
||||
address: "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"
|
||||
decimals: 6
|
||||
bsc:
|
||||
chain_id: 56
|
||||
rpc_url: "${BSC_RPC_URL:-https://bsc-dataseed.binance.org}"
|
||||
native_token: "BNB"
|
||||
tokens:
|
||||
USDC:
|
||||
address: "0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d"
|
||||
decimals: 18
|
||||
USDT:
|
||||
address: "0x55d398326f99059fF775485246999027B3197955"
|
||||
decimals: 18
|
||||
arbitrum:
|
||||
chain_id: 42161
|
||||
rpc_url: "${ARBITRUM_RPC_URL:-https://arb1.arbitrum.io/rpc}"
|
||||
native_token: "ETH"
|
||||
tokens:
|
||||
USDC:
|
||||
address: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831"
|
||||
decimals: 6
|
||||
optimism:
|
||||
chain_id: 10
|
||||
rpc_url: "${OPTIMISM_RPC_URL:-https://mainnet.optimism.io}"
|
||||
native_token: "ETH"
|
||||
tokens:
|
||||
USDC:
|
||||
address: "0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85"
|
||||
decimals: 6
|
||||
polygon:
|
||||
chain_id: 137
|
||||
rpc_url: "${POLYGON_RPC_URL:-https://polygon-rpc.com}"
|
||||
native_token: "POL"
|
||||
tokens:
|
||||
USDC:
|
||||
address: "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359"
|
||||
decimals: 6
|
||||
|
||||
payment:
|
||||
recipient: "${X402_EVM_PAY_TO:-0x1E3AC01d0fdb976179790BDD02823196A92705C9}"
|
||||
settlement_mode: "instant"
|
||||
max_verify_age_seconds: 300
|
||||
min_confirmations:
|
||||
ethereum: 12
|
||||
base: 1
|
||||
bsc: 10
|
||||
arbitrum: 1
|
||||
optimism: 1
|
||||
polygon: 10
|
||||
|
||||
verification:
|
||||
eip712:
|
||||
enabled: true
|
||||
verify_signature: true
|
||||
check_expiry: true
|
||||
onchain:
|
||||
enabled: true
|
||||
check_receipt: true
|
||||
decode_transfer_events: true
|
||||
strict_amount: true
|
||||
58
docker/x402-rs/docker-compose.yml
Normal file
58
docker/x402-rs/docker-compose.yml
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
# x402-rs Self-Hosted Facilitator — Docker Compose
|
||||
# ===============================================
|
||||
# Production-grade Rust x402 facilitator for multi-chain payment verification.
|
||||
#
|
||||
# Networks supported: Base, Ethereum, BSC, Arbitrum, Optimism, Polygon, Avalanche, Fantom, Gnosis
|
||||
# Tokens supported: USDC, USDT, DAI, WETH, ETH, native coins
|
||||
#
|
||||
# Start: docker compose -f docker/x402-rs/docker-compose.yml up -d
|
||||
# Stop: docker compose -f docker/x402-rs/docker-compose.yml down
|
||||
# Logs: docker compose -f docker/x402-rs/docker-compose.yml logs -f
|
||||
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
x402-rs:
|
||||
image: ghcr.io/x402-protocol/x402-rs:latest
|
||||
container_name: x402-rs
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "8090:8090"
|
||||
environment:
|
||||
# Server
|
||||
X402_HOST: "0.0.0.0"
|
||||
X402_PORT: "8090"
|
||||
X402_LOG_LEVEL: "info"
|
||||
|
||||
# Chain RPCs (required for on-chain verification)
|
||||
ETH_RPC_URL: "${ETH_RPC_URL:-https://eth.llamarpc.com}"
|
||||
BASE_RPC_URL: "${BASE_RPC_URL:-https://base.llamarpc.com}"
|
||||
BSC_RPC_URL: "${BSC_RPC_URL:-https://bsc-dataseed.binance.org}"
|
||||
ARBITRUM_RPC_URL: "${ARBITRUM_RPC_URL:-https://arb1.arbitrum.io/rpc}"
|
||||
OPTIMISM_RPC_URL: "${OPTIMISM_RPC_URL:-https://mainnet.optimism.io}"
|
||||
POLYGON_RPC_URL: "${POLYGON_RPC_URL:-https://polygon-rpc.com}"
|
||||
|
||||
# Payment configuration
|
||||
X402_PAY_TO_ADDRESS: "${X402_EVM_PAY_TO:-0x1E3AC01d0fdb976179790BDD02823196A92705C9}"
|
||||
X402_SUPPORTED_TOKENS: "USDC,USDT,DAI,WETH"
|
||||
X402_SUPPORTED_CHAINS: "ethereum,base,bsc,arbitrum,optimism,polygon"
|
||||
|
||||
# Settlement
|
||||
X402_SETTLEMENT_MODE: "instant"
|
||||
X402_MAX_VERIFY_AGE_SECONDS: "300"
|
||||
|
||||
volumes:
|
||||
- ./config.yaml:/app/config.yaml:ro
|
||||
networks:
|
||||
- rmi-network
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:8090/health"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 10s
|
||||
|
||||
networks:
|
||||
rmi-network:
|
||||
external: true
|
||||
name: rmi-network
|
||||
Loading…
Add table
Add a link
Reference in a new issue