Initial capay platform scaffold
这个提交包含在:
17
x402/facilitator/.env
普通文件
17
x402/facilitator/.env
普通文件
@@ -0,0 +1,17 @@
|
||||
PORT=4020
|
||||
HOST=https://pay.capay.hao.work
|
||||
LOG_LEVEL=info
|
||||
|
||||
FACILITATOR_JWT_SECRET=replace-with-strong-secret
|
||||
PAYMENT_HMAC_SECRET=replace-with-strong-secret
|
||||
|
||||
# Alchemy Ethereum RPC
|
||||
ETHEREUM_RPC_URL=https://eth-mainnet.g.alchemy.com/v2/P9kZiHB6Q7CLrBlMsUN3n
|
||||
|
||||
# Optional BSC RPC if needed
|
||||
BSC_RPC_URL=https://bsc-dataseed.binance.org
|
||||
|
||||
# Solana RPC (optional)
|
||||
SOLANA_RPC_URL=https://api.mainnet-beta.solana.com
|
||||
|
||||
REDIS_URL=redis://127.0.0.1:6379
|
||||
21
x402/facilitator/networks.json
普通文件
21
x402/facilitator/networks.json
普通文件
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"evm": {
|
||||
"ethereum": {
|
||||
"chainId": 1,
|
||||
"rpcEnv": "ETHEREUM_RPC_URL",
|
||||
"explorer": "https://etherscan.io/tx/"
|
||||
},
|
||||
"bsc": {
|
||||
"chainId": 56,
|
||||
"rpcEnv": "BSC_RPC_URL",
|
||||
"explorer": "https://bscscan.com/tx/"
|
||||
}
|
||||
},
|
||||
"svm": {
|
||||
"solana": {
|
||||
"cluster": "mainnet-beta",
|
||||
"rpcEnv": "SOLANA_RPC_URL",
|
||||
"explorer": "https://solscan.io/tx/"
|
||||
}
|
||||
}
|
||||
}
|
||||
21
x402/facilitator/tokens.json
普通文件
21
x402/facilitator/tokens.json
普通文件
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"evm": {
|
||||
"ethereum": {
|
||||
"USDC": { "address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", "decimals": 6 },
|
||||
"USDT": { "address": "0xdAC17F958D2ee523a2206206994597C13D831ec7", "decimals": 6 },
|
||||
"ETH": { "native": true, "decimals": 18 }
|
||||
},
|
||||
"bsc": {
|
||||
"USDC": { "address": "0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d", "decimals": 18 },
|
||||
"USDT": { "address": "0x55d398326f99059fF775485246999027B3197955", "decimals": 18 },
|
||||
"BNB": { "native": true, "decimals": 18 }
|
||||
}
|
||||
},
|
||||
"svm": {
|
||||
"solana": {
|
||||
"USDC": { "mint": "EPjFWdd5AufqSSqeM2qE1z3vY2Z9K5xkqkQ3yqC4wR5Z", "decimals": 6 },
|
||||
"USDT": { "mint": "Es9vMFrzaCERzmxEtpmJieE5s3bD4ZjbFj9a2yq6VQ8G", "decimals": 6 },
|
||||
"SOL": { "native": true, "decimals": 9 }
|
||||
}
|
||||
}
|
||||
}
|
||||
在新工单中引用
屏蔽一个用户