99
1010ChainEnv = Literal ["base-sepolia" , "base" ]
1111
12+ TESTNET_CHAINS = [
13+ ChainConfig (chain_id = 84532 , rpc_url = "https://base-sepolia.g.alchemy.com/v2" ), # baseSepolia,
14+ # ChainConfig(chain_id=11_155_111, rpc_url="https://eth-sepolia.g.alchemy.com/v2"), # sepolia
15+ # ChainConfig(chain_id=80_002, rpc_url="https://polygon-amoy.g.alchemy.com/v2"), # polygonAmoy
16+ # ChainConfig(chain_id=421_614, rpc_url="https://arb-sepolia.g.alchemy.com/v2"), # arbitrumSepolia
17+ # ChainConfig(chain_id=56, rpc_url="https://bnb-testnet.g.alchemy.com/v2"), # bscTestnet
18+ ]
19+
20+ MAINNET_CHAINS = [
21+ ChainConfig (chain_id = 8453 , rpc_url = "https://base.g.alchemy.com/v2" ), # base
22+ # ChainConfig(chain_id=1, rpc_url="https://eth-mainnet.g.alchemy.com/v2"), # mainnet
23+ # ChainConfig(chain_id=137, rpc_url="https://polygon-mainnet.g.alchemy.com/v2"), # polygon
24+ # ChainConfig(chain_id=42_161, rpc_url="https://arb-mainnet.g.alchemy.com/v2"), # arbitrum
25+ # ChainConfig(chain_id=56, rpc_url="https://bnb-mainnet.g.alchemy.com/v2"), # bsc
26+ ]
27+
1228class ACPContractConfig :
1329 def __init__ (
1430 self ,
@@ -49,6 +65,7 @@ def __init__(
4965 alchemy_policy_id = "186aaa4a-5f57-4156-83fb-e456365a8820" ,
5066 acp_api_url = "https://acpx.virtuals.gg/api" ,
5167 abi = ACP_ABI ,
68+ chains = TESTNET_CHAINS ,
5269)
5370
5471
@@ -65,6 +82,7 @@ def __init__(
6582 x402_config = X402Config (
6683 url = "https://dev-acp-x402.virtuals.io" ,
6784 ),
85+ chains = TESTNET_CHAINS ,
6886)
6987
7088
@@ -78,6 +96,7 @@ def __init__(
7896 alchemy_policy_id = "186aaa4a-5f57-4156-83fb-e456365a8820" ,
7997 acp_api_url = "https://acpx.virtuals.gg/api" ,
8098 abi = ACP_V2_ABI ,
99+ chains = TESTNET_CHAINS ,
81100)
82101
83102
@@ -93,7 +112,8 @@ def __init__(
93112 abi = ACP_V2_ABI ,
94113 x402_config = X402Config (
95114 url = "https://dev-acp-x402.virtuals.io" ,
96- )
115+ ),
116+ chains = TESTNET_CHAINS ,
97117)
98118
99119
@@ -107,6 +127,7 @@ def __init__(
107127 alchemy_policy_id = "186aaa4a-5f57-4156-83fb-e456365a8820" ,
108128 acp_api_url = "https://acpx.virtuals.io/api" ,
109129 abi = ACP_ABI ,
130+ chains = MAINNET_CHAINS ,
110131)
111132
112133
@@ -123,6 +144,7 @@ def __init__(
123144 x402_config = X402Config (
124145 url = "https://acp-x402.virtuals.io" ,
125146 ),
147+ chains = MAINNET_CHAINS ,
126148)
127149
128150
@@ -137,6 +159,7 @@ def __init__(
137159 alchemy_policy_id = "186aaa4a-5f57-4156-83fb-e456365a8820" ,
138160 acp_api_url = "https://acpx.virtuals.io/api" ,
139161 abi = ACP_V2_ABI ,
162+ chains = MAINNET_CHAINS ,
140163)
141164
142165
@@ -153,6 +176,7 @@ def __init__(
153176 x402_config = X402Config (
154177 url = "https://acp-x402.virtuals.io" ,
155178 ),
179+ chains = MAINNET_CHAINS ,
156180)
157181
158182
0 commit comments