Skip to content

Commit e9c3e1e

Browse files
ZuhwaZuhwa
andauthored
Config base fare with chain id (#186)
Co-authored-by: Zuhwa <zuhwa@virtuals.io>
1 parent 39d2575 commit e9c3e1e

1 file changed

Lines changed: 9 additions & 15 deletions

File tree

src/configs/acpConfigs.ts

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,7 @@ const TESTNET_CHAINS = [
3737
bscTestnet,
3838
];
3939

40-
const MAINNET_CHAINS = [
41-
base,
42-
mainnet,
43-
polygon,
44-
arbitrum,
45-
bsc,
46-
];
40+
const MAINNET_CHAINS = [base, mainnet, polygon, arbitrum, bsc];
4741

4842
const DEFAULT_RETRY_CONFIG = {
4943
intervalMs: 200,
@@ -74,7 +68,7 @@ class AcpContractConfig {
7468
const baseSepoliaAcpConfig = new AcpContractConfig(
7569
baseSepolia,
7670
"0x8Db6B1c839Fc8f6bd35777E194677B67b4D51928",
77-
new Fare("0x036CbD53842c5426634e7929541eC2318f3dCF7e", 6),
71+
new Fare("0x036CbD53842c5426634e7929541eC2318f3dCF7e", 6, baseSepolia.id),
7872
"https://alchemy-proxy.virtuals.io/api/proxy/rpc",
7973
"https://acpx.virtuals.gg",
8074
ACP_ABI,
@@ -88,7 +82,7 @@ const baseSepoliaAcpConfig = new AcpContractConfig(
8882
const baseSepoliaAcpX402Config = new AcpContractConfig(
8983
baseSepolia,
9084
"0x8Db6B1c839Fc8f6bd35777E194677B67b4D51928",
91-
new Fare("0x036CbD53842c5426634e7929541eC2318f3dCF7e", 6),
85+
new Fare("0x036CbD53842c5426634e7929541eC2318f3dCF7e", 6, baseSepolia.id),
9286
"https://alchemy-proxy.virtuals.io/api/proxy/rpc",
9387
"https://acpx.virtuals.gg",
9488
ACP_ABI,
@@ -104,7 +98,7 @@ const baseSepoliaAcpX402Config = new AcpContractConfig(
10498
const baseSepoliaAcpConfigV2 = new AcpContractConfig(
10599
baseSepolia,
106100
"0xdf54E6Ed6cD1d0632d973ADECf96597b7e87893c",
107-
new Fare("0x036CbD53842c5426634e7929541eC2318f3dCF7e", 6),
101+
new Fare("0x036CbD53842c5426634e7929541eC2318f3dCF7e", 6, baseSepolia.id),
108102
"https://alchemy-proxy.virtuals.io/api/proxy/rpc",
109103
"https://acpx.virtuals.gg",
110104
ACP_V2_ABI,
@@ -118,7 +112,7 @@ const baseSepoliaAcpConfigV2 = new AcpContractConfig(
118112
const baseSepoliaAcpX402ConfigV2 = new AcpContractConfig(
119113
baseSepolia,
120114
"0xdf54E6Ed6cD1d0632d973ADECf96597b7e87893c",
121-
new Fare("0x036CbD53842c5426634e7929541eC2318f3dCF7e", 6),
115+
new Fare("0x036CbD53842c5426634e7929541eC2318f3dCF7e", 6, baseSepolia.id),
122116
"https://alchemy-proxy.virtuals.io/api/proxy/rpc",
123117
"https://acpx.virtuals.gg",
124118
ACP_V2_ABI,
@@ -134,7 +128,7 @@ const baseSepoliaAcpX402ConfigV2 = new AcpContractConfig(
134128
const baseAcpConfig = new AcpContractConfig(
135129
base,
136130
"0x6a1FE26D54ab0d3E1e3168f2e0c0cDa5cC0A0A4A",
137-
new Fare("0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", 6),
131+
new Fare("0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", 6, base.id),
138132
"https://alchemy-proxy-prod.virtuals.io/api/proxy/rpc",
139133
"https://acpx.virtuals.io",
140134
ACP_ABI,
@@ -148,7 +142,7 @@ const baseAcpConfig = new AcpContractConfig(
148142
const baseAcpX402Config = new AcpContractConfig(
149143
base,
150144
"0x6a1FE26D54ab0d3E1e3168f2e0c0cDa5cC0A0A4A",
151-
new Fare("0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", 6),
145+
new Fare("0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", 6, base.id),
152146
"https://alchemy-proxy-prod.virtuals.io/api/proxy/rpc",
153147
"https://acpx.virtuals.io",
154148
ACP_ABI,
@@ -164,7 +158,7 @@ const baseAcpX402Config = new AcpContractConfig(
164158
const baseAcpConfigV2 = new AcpContractConfig(
165159
base,
166160
"0xa6C9BA866992cfD7fd6460ba912bfa405adA9df0",
167-
new Fare("0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", 6),
161+
new Fare("0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", 6, base.id),
168162
"https://alchemy-proxy-prod.virtuals.io/api/proxy/rpc",
169163
"https://acpx.virtuals.io",
170164
ACP_V2_ABI,
@@ -178,7 +172,7 @@ const baseAcpConfigV2 = new AcpContractConfig(
178172
const baseAcpX402ConfigV2 = new AcpContractConfig(
179173
base,
180174
"0xa6C9BA866992cfD7fd6460ba912bfa405adA9df0",
181-
new Fare("0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", 6),
175+
new Fare("0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", 6, base.id),
182176
"https://alchemy-proxy-prod.virtuals.io/api/proxy/rpc",
183177
"https://acpx.virtuals.io",
184178
ACP_V2_ABI,

0 commit comments

Comments
 (0)