@zerodev/sdk 4.7.5 → 4.7.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/kernel-zerodev/constants.js +7 -0
- package/dist/cjs/kernel-zerodev/constants.js.map +1 -1
- package/dist/cjs/kernel-zerodev/utils/custom-chains.d.ts +203 -0
- package/dist/cjs/kernel-zerodev/utils/custom-chains.js +150 -1
- package/dist/cjs/kernel-zerodev/utils/custom-chains.js.map +1 -1
- package/dist/esm/kernel-zerodev/constants.js +7 -0
- package/dist/esm/kernel-zerodev/constants.js.map +1 -1
- package/dist/esm/kernel-zerodev/utils/custom-chains.d.ts +203 -0
- package/dist/esm/kernel-zerodev/utils/custom-chains.js +149 -0
- package/dist/esm/kernel-zerodev/utils/custom-chains.js.map +1 -1
- package/dist/types/kernel-zerodev/constants.d.ts.map +1 -1
- package/dist/types/kernel-zerodev/utils/custom-chains.d.ts +203 -0
- package/dist/types/kernel-zerodev/utils/custom-chains.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/kernel-zerodev/constants.ts +7 -0
- package/src/kernel-zerodev/utils/custom-chains.ts +156 -0
|
@@ -82,5 +82,12 @@ exports.CHAIN_ID_TO_NODE = {
|
|
|
82
82
|
3776: 'https://rpc.startale.com/astar-zkevm',
|
|
83
83
|
122: 'https://rpc.fuse.io',
|
|
84
84
|
42170: 'https://nova.arbitrum.io/rpc',
|
|
85
|
+
94204209: 'https://rpc.polygon-blackberry.gelato.digital',
|
|
86
|
+
88153591557: 'https://rpc.arb-blueberry.gelato.digital',
|
|
87
|
+
123420111: 'https://rpc.opcelestia-raspberry.gelato.digital',
|
|
88
|
+
6038361: 'https://rpc.startale.com/zkyoto',
|
|
89
|
+
666666666: 'https://rpc.degen.tips',
|
|
90
|
+
7560: 'https://cyber.alt.technology',
|
|
91
|
+
111557560: 'https://cyber-testnet.alt.technology',
|
|
85
92
|
};
|
|
86
93
|
//# sourceMappingURL=constants.js.map
|
|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C,sBAAc,EAAE;IAC5D,GAAG,EAAE,iEAAiE;IACtE,KAAK,EAAE,uCAAuC;IAC9C,OAAO,EAAE,oCAAoC;IAC7C,KAAK,EACH,gGAAgG;IAClG,MAAM,EAAE,yCAAyC,sBAAc,EAAE;IACjE,QAAQ,EAAE,yCAAyC,sBAAc,EAAE;IAEnE,KAAK,EAAE,qCAAqC,sBAAc,EAAE;IAC5D,KAAK,EAAE,uCAAuC,sBAAc,EAAE;IAC9D,SAAS,EAAE,qEAAqE;IAChF,KAAK,EAAE,sBAAsB;IAC7B,IAAI,EAAE,sCAAsC;IAC5C,GAAG,EAAE,qBAAqB;IAC1B,KAAK,EAAE,8BAA8B;IACrC,QAAQ,EAAE,+CAA+C;IACzD,WAAW,EAAE,0CAA0C;IACvD,SAAS,EAAE,iDAAiD;IAC5D,OAAO,EAAE,iCAAiC;IAC1C,SAAS,EAAE,wBAAwB;IACnC,IAAI,EAAE,8BAA8B;IACpC,SAAS,EAAE,sCAAsC;CAClD,CAAC","sourcesContent":["import { parseUnits, type Hex } from \"viem\";\nimport type { IGasTokenAddresses } from \"./paymaster/types.js\";\nimport { polygon } from \"viem/chains\";\n\nexport const DEFAULT_SEND_TX_MAX_RETRIES = 3;\nexport const DEFAULT_SEND_TX_RETRY_INTERVAL_MS = 60000; // 1 minutes\nexport const BUNDLER_URL =\n \"https://meta-aa-provider.onrender.com/api/v1/bundler\";\nexport const PAYMASTER_URL =\n \"https://meta-aa-provider.onrender.com/api/v1/paymaster\";\nexport const ENTRYPOINT_ADDRESS: Hex =\n \"0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789\";\nexport const MULTISEND_ADDR: Hex = \"0x8ae01fcf7c655655ff2c6ef907b8b4718ab4e17c\";\nexport const BACKEND_URL = \"https://backend-vikp.onrender.com\";\nexport const API_URL = \"https://prod-api.zerodev.app\";\nexport const ECDSA_VALIDATOR_ADDRESS =\n \"0xd9AB5096a832b9ce79914329DAEE236f8Eea0390\";\nexport const KERNEL_FACTORY_ADDRESS =\n \"0x5de4839a76cf55d0c90e2061ef4386d962E15ae3\";\nexport const KERNEL_IMPL_ADDRESS = \"0x0DA6a956B9488eD4dd761E59f52FDc6c8068E6B5\";\nexport const KILL_SWITCH_VALIDATOR_ADDRESS =\n \"0x7393A7dA58CCfFb78f52adb09705BE6E20F704BC\";\nexport const KILL_SWITCH_ACTION = \"0x3f38e479304c7F18F988269a1bDa7d646bd48243\";\nexport const DUMMY_ECDSA_SIG =\n \"0xfffffffffffffffffffffffffffffff0000000000000000000000000000000007aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa1c\";\nexport const ERC165_SESSION_KEY_VALIDATOR_ADDRESS =\n \"0xe149290800De29D4b0BF9dB82c508255D81902E6\";\nexport const TOKEN_ACTION = \"0x2087C7FfD0d0DAE80a00EE74325aBF3449e0eaf1\";\nexport const SESSION_KEY_VALIDATOR_ADDRESS =\n \"0x5C06CE2b673fD5E6e56076e40DD46aB67f5a72A5\";\nexport const RECOVERY_VALIDATOR_ADDRESS =\n \"0xaFA369cA3432e62ACe6bd77B2886F2D588c68dA8\";\nexport const RECOVERY_ACTION = \"0x2f65dB8039fe5CAEE0a8680D2879deB800F31Ae1\";\nexport const oneAddress = \"0x0000000000000000000000000000000000000001\";\n\nexport const gasTokenChainAddresses: IGasTokenAddresses = {\n USDC: {\n 1: \"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48\",\n // 5: \"0x2f3A40A3db8a7e3D09B0adfEfbCe4f6F81927557\",\n 137: \"0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174\",\n // 80001: \"\",\n // 420: \"0x7F5c764cBc14f9669B88837ca1490cCa17c31607\",\n 42161: \"0xFF970A61A04b1cA14834A43f5dE4533eBDDB5CC8\",\n // 421613: \"\",\n 43114: \"0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E\",\n // 43113: \"\",\n // 56: \"\",\n // 97: \"\"\n },\n PEPE: {\n 1: \"0x6982508145454Ce325dDbE47a25d4ec3d2311933\",\n },\n};\n\nexport const ERC20_APPROVAL_AMOUNT: { [key: string]: bigint } = {\n // ETH\n [gasTokenChainAddresses[\"USDC\"][1]]: parseUnits(\"100\", 6),\n\n // Goerli\n [gasTokenChainAddresses[\"USDC\"][5]]: parseUnits(\"100\", 6),\n\n // Polygon\n [gasTokenChainAddresses[\"USDC\"][137]]: parseUnits(\"10\", 6),\n\n // Arbitrum\n [gasTokenChainAddresses[\"USDC\"][42161]]: parseUnits(\"10\", 6),\n\n // Avalanche\n [gasTokenChainAddresses[\"USDC\"][43114]]: parseUnits(\"10\", 6),\n\n // ETH\n [gasTokenChainAddresses[\"PEPE\"][1]]: parseUnits(\"50000000\", 18),\n\n \"0x3870419Ba2BBf0127060bCB37f69A1b1C090992B\": parseUnits(\"100\", 18),\n};\n\nexport const minPriorityFeePerBidDefaults = new Map<number, bigint>([\n [polygon.id, 30_000_000_000n],\n]);\n\nexport const INFURA_API_KEY = \"f36f7f706a58477884ce6fe89165666c\";\nexport const CHAIN_ID_TO_NODE: { [key: number]: string } = {\n 1: `https://mainnet.infura.io/v3/${INFURA_API_KEY}`,\n 5: `https://goerli.infura.io/v3/${INFURA_API_KEY}`,\n 11155111:\n \"https://fittest-ultra-aura.ethereum-sepolia.quiknode.pro/3893d01b1dd411fdfa9b6dd372dd2b4f69fcf1ea/\",\n 137: `https://polygon-mainnet.infura.io/v3/${INFURA_API_KEY}`,\n 80001: `https://polygon-mumbai.infura.io/v3/${INFURA_API_KEY}`,\n 80002: `https://polygon-amoy.infura.io/v3/${INFURA_API_KEY}`,\n 10: `https://optimism-mainnet.infura.io/v3/${INFURA_API_KEY}`,\n 420: `https://optimism-goerli.infura.io/v3/${INFURA_API_KEY}`,\n 42161: `https://arbitrum-mainnet.infura.io/v3/${INFURA_API_KEY}`,\n // 42161: 'https://evocative-stylish-dinghy.arbitrum-mainnet.discover.quiknode.pro/80b526d14fa9fd9a8b0db1e65554acaf00c6a1ab/',\n 421613: `https://arbitrum-goerli.infura.io/v3/${INFURA_API_KEY}`,\n 43114: `https://avalanche-mainnet.infura.io/v3/${INFURA_API_KEY}`,\n 43113: `https://avalanche-fuji.infura.io/v3/${INFURA_API_KEY}`,\n 1313161554: `https://aurora-mainnet.infura.io/v3/${INFURA_API_KEY}`,\n 1313161555: `https://aurora-testnet.infura.io/v3/${INFURA_API_KEY}`,\n 56: \"https://neat-greatest-layer.bsc.quiknode.pro/9405a499ceee314e5f2f68c9d47518d3537fce6a/\",\n 8453: \"https://twilight-red-tree.base-mainnet.quiknode.pro/dc6eb27bf0f917df215922488dd97f4de7d9b08e/\",\n 84531:\n \"https://icy-long-mountain.base-goerli.quiknode.pro/5b80d93e97cc9412a63c10a30841869abbef9596/\",\n 100: \"https://thrilling-fluent-film.xdai.quiknode.pro/305955cffb9868cdd95b5e3dc9775f20678ad9ac/\",\n 10200: \"https://nd-810-853-201.p2pify.com/e828b09f0d43591de96c297b3f36fffd\",\n 59144: `https://linea-mainnet.infura.io/v3/${INFURA_API_KEY}`,\n 59140: `https://linea-goerli.infura.io/v3/${INFURA_API_KEY}`,\n 204: \"https://opbnb.rpc.thirdweb.com/eed98c1f30120c0508f17c1f01d3102b\",\n 42069: \"https://rpc.op-testnet.gelato.digital\",\n 1261120: \"https://rpc.zkatana.gelato.digital\",\n 84532:\n \"https://floral-old-feather.base-sepolia.quiknode.pro/4c3b4295d0c174410872b1e461a91cc33c7969a9/\",\n 421614: `https://arbitrum-sepolia.infura.io/v3/${INFURA_API_KEY}`,\n 11155420: `https://optimism-sepolia.infura.io/v3/${INFURA_API_KEY}`,\n // 5611: 'opBnb-testnet',\n 42220: `https://celo-mainnet.infura.io/v3/${INFURA_API_KEY}`,\n 44787: `https://celo-alfajores.infura.io/v3/${INFURA_API_KEY}`,\n 168587773: 'https://168587773.rpc.thirdweb.com/eed98c1f30120c0508f17c1f01d3102b',\n 81457: 'https://rpc.blast.io',\n 3776: 'https://rpc.startale.com/astar-zkevm',\n 122: 'https://rpc.fuse.io',\n 42170: 'https://nova.arbitrum.io/rpc',\n 94204209: 'https://rpc.polygon-blackberry.gelato.digital',\n 88153591557: 'https://rpc.arb-blueberry.gelato.digital',\n 123420111: 'https://rpc.opcelestia-raspberry.gelato.digital',\n 6038361: 'https://rpc.startale.com/zkyoto',\n 666666666: 'https://rpc.degen.tips',\n 7560: 'https://cyber.alt.technology',\n 111557560: 'https://cyber-testnet.alt.technology',\n};\n"]}
|
|
@@ -124,3 +124,206 @@ export declare const arbitrumNova: {
|
|
|
124
124
|
formatters: import("viem").Formatters | undefined;
|
|
125
125
|
serializers: import("viem").Serializers<import("viem").Formatters> | undefined;
|
|
126
126
|
};
|
|
127
|
+
export declare const arbitrumBlueberry: {
|
|
128
|
+
id: number;
|
|
129
|
+
name: string;
|
|
130
|
+
network: string;
|
|
131
|
+
nativeCurrency: {
|
|
132
|
+
decimals: number;
|
|
133
|
+
name: string;
|
|
134
|
+
symbol: string;
|
|
135
|
+
};
|
|
136
|
+
rpcUrls: {
|
|
137
|
+
default: {
|
|
138
|
+
http: string[];
|
|
139
|
+
};
|
|
140
|
+
public: {
|
|
141
|
+
http: string[];
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
blockExplorers: {
|
|
145
|
+
default: {
|
|
146
|
+
name: string;
|
|
147
|
+
url: string;
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
testnet: true;
|
|
151
|
+
} & {
|
|
152
|
+
formatters: import("viem").Formatters | undefined;
|
|
153
|
+
serializers: import("viem").Serializers<import("viem").Formatters> | undefined;
|
|
154
|
+
};
|
|
155
|
+
export declare const opCelestiaRaspberry: {
|
|
156
|
+
id: number;
|
|
157
|
+
name: string;
|
|
158
|
+
network: string;
|
|
159
|
+
nativeCurrency: {
|
|
160
|
+
decimals: number;
|
|
161
|
+
name: string;
|
|
162
|
+
symbol: string;
|
|
163
|
+
};
|
|
164
|
+
rpcUrls: {
|
|
165
|
+
default: {
|
|
166
|
+
http: string[];
|
|
167
|
+
};
|
|
168
|
+
public: {
|
|
169
|
+
http: string[];
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
blockExplorers: {
|
|
173
|
+
default: {
|
|
174
|
+
name: string;
|
|
175
|
+
url: string;
|
|
176
|
+
};
|
|
177
|
+
};
|
|
178
|
+
testnet: true;
|
|
179
|
+
} & {
|
|
180
|
+
formatters: import("viem").Formatters | undefined;
|
|
181
|
+
serializers: import("viem").Serializers<import("viem").Formatters> | undefined;
|
|
182
|
+
};
|
|
183
|
+
export declare const polygonBlackberry: {
|
|
184
|
+
id: number;
|
|
185
|
+
name: string;
|
|
186
|
+
network: string;
|
|
187
|
+
nativeCurrency: {
|
|
188
|
+
decimals: number;
|
|
189
|
+
name: string;
|
|
190
|
+
symbol: string;
|
|
191
|
+
};
|
|
192
|
+
rpcUrls: {
|
|
193
|
+
default: {
|
|
194
|
+
http: string[];
|
|
195
|
+
};
|
|
196
|
+
public: {
|
|
197
|
+
http: string[];
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
blockExplorers: {
|
|
201
|
+
default: {
|
|
202
|
+
name: string;
|
|
203
|
+
url: string;
|
|
204
|
+
};
|
|
205
|
+
};
|
|
206
|
+
testnet: true;
|
|
207
|
+
} & {
|
|
208
|
+
formatters: import("viem").Formatters | undefined;
|
|
209
|
+
serializers: import("viem").Serializers<import("viem").Formatters> | undefined;
|
|
210
|
+
};
|
|
211
|
+
export declare const cyberMainnet: {
|
|
212
|
+
id: number;
|
|
213
|
+
name: string;
|
|
214
|
+
network: string;
|
|
215
|
+
nativeCurrency: {
|
|
216
|
+
name: string;
|
|
217
|
+
symbol: string;
|
|
218
|
+
decimals: number;
|
|
219
|
+
};
|
|
220
|
+
rpcUrls: {
|
|
221
|
+
default: {
|
|
222
|
+
http: string[];
|
|
223
|
+
};
|
|
224
|
+
public: {
|
|
225
|
+
http: string[];
|
|
226
|
+
};
|
|
227
|
+
};
|
|
228
|
+
blockExplorers: {
|
|
229
|
+
default: {
|
|
230
|
+
name: string;
|
|
231
|
+
url: string;
|
|
232
|
+
};
|
|
233
|
+
};
|
|
234
|
+
testnet: false;
|
|
235
|
+
} & {
|
|
236
|
+
formatters: import("viem").Formatters | undefined;
|
|
237
|
+
serializers: import("viem").Serializers<import("viem").Formatters> | undefined;
|
|
238
|
+
};
|
|
239
|
+
export declare const cyberTestnet: {
|
|
240
|
+
id: number;
|
|
241
|
+
name: string;
|
|
242
|
+
network: string;
|
|
243
|
+
nativeCurrency: {
|
|
244
|
+
name: string;
|
|
245
|
+
symbol: string;
|
|
246
|
+
decimals: number;
|
|
247
|
+
};
|
|
248
|
+
rpcUrls: {
|
|
249
|
+
default: {
|
|
250
|
+
http: string[];
|
|
251
|
+
};
|
|
252
|
+
public: {
|
|
253
|
+
http: string[];
|
|
254
|
+
};
|
|
255
|
+
};
|
|
256
|
+
blockExplorers: {
|
|
257
|
+
default: {
|
|
258
|
+
name: string;
|
|
259
|
+
url: string;
|
|
260
|
+
};
|
|
261
|
+
};
|
|
262
|
+
testnet: true;
|
|
263
|
+
} & {
|
|
264
|
+
formatters: import("viem").Formatters | undefined;
|
|
265
|
+
serializers: import("viem").Serializers<import("viem").Formatters> | undefined;
|
|
266
|
+
};
|
|
267
|
+
export declare const astarZkyoto: {
|
|
268
|
+
id: number;
|
|
269
|
+
name: string;
|
|
270
|
+
network: string;
|
|
271
|
+
nativeCurrency: {
|
|
272
|
+
name: string;
|
|
273
|
+
symbol: string;
|
|
274
|
+
decimals: number;
|
|
275
|
+
};
|
|
276
|
+
rpcUrls: {
|
|
277
|
+
default: {
|
|
278
|
+
http: string[];
|
|
279
|
+
};
|
|
280
|
+
public: {
|
|
281
|
+
http: string[];
|
|
282
|
+
};
|
|
283
|
+
};
|
|
284
|
+
blockExplorers: {
|
|
285
|
+
default: {
|
|
286
|
+
name: string;
|
|
287
|
+
url: string;
|
|
288
|
+
};
|
|
289
|
+
};
|
|
290
|
+
contracts: {
|
|
291
|
+
multicall3: {
|
|
292
|
+
address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
293
|
+
blockCreated: number;
|
|
294
|
+
};
|
|
295
|
+
};
|
|
296
|
+
testnet: true;
|
|
297
|
+
} & {
|
|
298
|
+
formatters: import("viem").Formatters | undefined;
|
|
299
|
+
serializers: import("viem").Serializers<import("viem").Formatters> | undefined;
|
|
300
|
+
};
|
|
301
|
+
export declare const degen: {
|
|
302
|
+
id: number;
|
|
303
|
+
name: string;
|
|
304
|
+
nativeCurrency: {
|
|
305
|
+
decimals: number;
|
|
306
|
+
name: string;
|
|
307
|
+
symbol: string;
|
|
308
|
+
};
|
|
309
|
+
network: string;
|
|
310
|
+
rpcUrls: {
|
|
311
|
+
default: {
|
|
312
|
+
http: string[];
|
|
313
|
+
webSocket: string[];
|
|
314
|
+
};
|
|
315
|
+
public: {
|
|
316
|
+
http: string[];
|
|
317
|
+
webSocket: string[];
|
|
318
|
+
};
|
|
319
|
+
};
|
|
320
|
+
blockExplorers: {
|
|
321
|
+
default: {
|
|
322
|
+
name: string;
|
|
323
|
+
url: string;
|
|
324
|
+
};
|
|
325
|
+
};
|
|
326
|
+
} & {
|
|
327
|
+
formatters: import("viem").Formatters | undefined;
|
|
328
|
+
serializers: import("viem").Serializers<import("viem").Formatters> | undefined;
|
|
329
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.arbitrumNova = exports.astarZkEVM = exports.astarZKatana = exports.gelatoOPTestnet = void 0;
|
|
3
|
+
exports.degen = exports.astarZkyoto = exports.cyberTestnet = exports.cyberMainnet = exports.polygonBlackberry = exports.opCelestiaRaspberry = exports.arbitrumBlueberry = exports.arbitrumNova = exports.astarZkEVM = exports.astarZKatana = exports.gelatoOPTestnet = void 0;
|
|
4
4
|
const viem_1 = require("viem");
|
|
5
5
|
exports.gelatoOPTestnet = (0, viem_1.defineChain)({
|
|
6
6
|
id: 42069,
|
|
@@ -108,4 +108,153 @@ exports.arbitrumNova = (0, viem_1.defineChain)({
|
|
|
108
108
|
},
|
|
109
109
|
testnet: false,
|
|
110
110
|
});
|
|
111
|
+
exports.arbitrumBlueberry = (0, viem_1.defineChain)({
|
|
112
|
+
id: 88153591557,
|
|
113
|
+
name: 'Arbitrum Blueberry',
|
|
114
|
+
network: 'arbitrum-blueberry',
|
|
115
|
+
nativeCurrency: {
|
|
116
|
+
decimals: 18,
|
|
117
|
+
name: 'Ether',
|
|
118
|
+
symbol: 'ETH',
|
|
119
|
+
},
|
|
120
|
+
rpcUrls: {
|
|
121
|
+
default: { http: ['https://rpc.arb-blueberry.gelato.digital'] },
|
|
122
|
+
public: { http: ['https://rpc.arb-blueberry.gelato.digital'] },
|
|
123
|
+
},
|
|
124
|
+
blockExplorers: {
|
|
125
|
+
default: { name: 'Gelatoscout', url: 'https://arb-blueberry.gelatoscout.com' },
|
|
126
|
+
},
|
|
127
|
+
testnet: true,
|
|
128
|
+
});
|
|
129
|
+
exports.opCelestiaRaspberry = (0, viem_1.defineChain)({
|
|
130
|
+
id: 123420111,
|
|
131
|
+
name: 'OP Celestia Raspberry',
|
|
132
|
+
network: 'op-celestia-raspberry',
|
|
133
|
+
nativeCurrency: {
|
|
134
|
+
decimals: 18,
|
|
135
|
+
name: 'Ether',
|
|
136
|
+
symbol: 'ETH',
|
|
137
|
+
},
|
|
138
|
+
rpcUrls: {
|
|
139
|
+
default: { http: ['https://rpc.opcelestia-raspberry.gelato.digital'] },
|
|
140
|
+
public: { http: ['https://rpc.opcelestia-raspberry.gelato.digital'] },
|
|
141
|
+
},
|
|
142
|
+
blockExplorers: {
|
|
143
|
+
default: { name: 'Gelatoscout', url: 'https://opcelestia-raspberry.gelatoscout.com' },
|
|
144
|
+
},
|
|
145
|
+
testnet: true,
|
|
146
|
+
});
|
|
147
|
+
exports.polygonBlackberry = (0, viem_1.defineChain)({
|
|
148
|
+
id: 94204209,
|
|
149
|
+
name: 'Polygon Blackberry',
|
|
150
|
+
network: 'polybon-blackberry',
|
|
151
|
+
nativeCurrency: {
|
|
152
|
+
decimals: 18,
|
|
153
|
+
name: 'Ether',
|
|
154
|
+
symbol: 'ETH',
|
|
155
|
+
},
|
|
156
|
+
rpcUrls: {
|
|
157
|
+
default: { http: ['https://rpc.polygon-blackberry.gelato.digital'] },
|
|
158
|
+
public: { http: ['https://rpc.polygon-blackberry.gelato.digital'] },
|
|
159
|
+
},
|
|
160
|
+
blockExplorers: {
|
|
161
|
+
default: { name: 'Gelatoscout', url: 'https://polygon-blackberry.gelatoscout.com' },
|
|
162
|
+
},
|
|
163
|
+
testnet: true,
|
|
164
|
+
});
|
|
165
|
+
exports.cyberMainnet = (0, viem_1.defineChain)({
|
|
166
|
+
id: 7560,
|
|
167
|
+
name: 'Cyber Mainnet',
|
|
168
|
+
network: 'cyber-mainnet',
|
|
169
|
+
nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },
|
|
170
|
+
rpcUrls: {
|
|
171
|
+
default: {
|
|
172
|
+
http: ['https://cyber.alt.technology/'],
|
|
173
|
+
},
|
|
174
|
+
public: {
|
|
175
|
+
http: ['https://cyber.alt.technology/'],
|
|
176
|
+
},
|
|
177
|
+
},
|
|
178
|
+
blockExplorers: {
|
|
179
|
+
default: {
|
|
180
|
+
name: 'Cyber Mainnet Explorer',
|
|
181
|
+
url: 'https://cyber-explorer.alt.technology/',
|
|
182
|
+
},
|
|
183
|
+
},
|
|
184
|
+
testnet: false,
|
|
185
|
+
});
|
|
186
|
+
exports.cyberTestnet = (0, viem_1.defineChain)({
|
|
187
|
+
id: 111557560,
|
|
188
|
+
name: 'Cyber Testnet',
|
|
189
|
+
network: 'cyber-testnet',
|
|
190
|
+
nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },
|
|
191
|
+
rpcUrls: {
|
|
192
|
+
default: {
|
|
193
|
+
http: ['https://cyber-testnet.alt.technology'],
|
|
194
|
+
},
|
|
195
|
+
public: {
|
|
196
|
+
http: ['https://cyber-testnet.alt.technology'],
|
|
197
|
+
},
|
|
198
|
+
},
|
|
199
|
+
blockExplorers: {
|
|
200
|
+
default: {
|
|
201
|
+
name: 'Cyber Testnet Explorer',
|
|
202
|
+
url: 'https://cyber-testnet-explorer.alt.technology/',
|
|
203
|
+
},
|
|
204
|
+
},
|
|
205
|
+
testnet: true,
|
|
206
|
+
});
|
|
207
|
+
exports.astarZkyoto = (0, viem_1.defineChain)({
|
|
208
|
+
id: 6038361,
|
|
209
|
+
name: 'Astar zkEVM Testnet zKyoto',
|
|
210
|
+
network: 'zKyoto',
|
|
211
|
+
nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },
|
|
212
|
+
rpcUrls: {
|
|
213
|
+
default: {
|
|
214
|
+
http: ['https://rpc.startale.com/zkyoto'],
|
|
215
|
+
},
|
|
216
|
+
public: {
|
|
217
|
+
http: ['https://rpc.startale.com/zkyoto'],
|
|
218
|
+
},
|
|
219
|
+
},
|
|
220
|
+
blockExplorers: {
|
|
221
|
+
default: {
|
|
222
|
+
name: 'zKyoto Explorer',
|
|
223
|
+
url: 'https://zkyoto.explorer.startale.com',
|
|
224
|
+
},
|
|
225
|
+
},
|
|
226
|
+
contracts: {
|
|
227
|
+
multicall3: {
|
|
228
|
+
address: '0xca11bde05977b3631167028862be2a173976ca11',
|
|
229
|
+
blockCreated: 196153,
|
|
230
|
+
},
|
|
231
|
+
},
|
|
232
|
+
testnet: true,
|
|
233
|
+
});
|
|
234
|
+
exports.degen = (0, viem_1.defineChain)({
|
|
235
|
+
id: 666666666,
|
|
236
|
+
name: 'Degen',
|
|
237
|
+
nativeCurrency: {
|
|
238
|
+
decimals: 18,
|
|
239
|
+
name: 'Degen',
|
|
240
|
+
symbol: 'DEGEN',
|
|
241
|
+
},
|
|
242
|
+
network: 'degen',
|
|
243
|
+
rpcUrls: {
|
|
244
|
+
default: {
|
|
245
|
+
http: ['https://rpc.degen.tips'],
|
|
246
|
+
webSocket: ['wss://rpc.degen.tips'],
|
|
247
|
+
},
|
|
248
|
+
public: {
|
|
249
|
+
http: ['https://rpc.degen.tips'],
|
|
250
|
+
webSocket: ['wss://rpc.degen.tips'],
|
|
251
|
+
},
|
|
252
|
+
},
|
|
253
|
+
blockExplorers: {
|
|
254
|
+
default: {
|
|
255
|
+
name: 'Degen Chain Explorer',
|
|
256
|
+
url: 'https://explorer.degen.tips'
|
|
257
|
+
},
|
|
258
|
+
},
|
|
259
|
+
});
|
|
111
260
|
//# sourceMappingURL=custom-chains.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-chains.js","sourceRoot":"","sources":["../../../../src/kernel-zerodev/utils/custom-chains.ts"],"names":[],"mappings":";;;AAAA,+BAAmC;AAEtB,QAAA,eAAe,GAAG,IAAA,kBAAW,EAAC;IACzC,EAAE,EAAE,KAAK;IACT,IAAI,EAAE,kBAAkB;IACxB,OAAO,EAAE,iBAAiB;IAC1B,cAAc,EAAE;QACd,QAAQ,EAAE,EAAE;QACZ,IAAI,EAAE,OAAO;QACb,MAAM,EAAE,KAAK;KACd;IACD,OAAO,EAAE;QACP,OAAO,EAAE;YACP,IAAI,EAAE,CAAC,uCAAuC,CAAC;YAC/C,SAAS,EAAE,EAAE;SACd;QACD,MAAM,EAAE;YACN,IAAI,EAAE,CAAC,uCAAuC,CAAC;YAC/C,SAAS,EAAE,EAAE;SACd;KACF;IACD,cAAc,EAAE;QACd,OAAO,EAAE;YACP,IAAI,EAAE,UAAU;YAChB,GAAG,EAAE,8CAA8C;SACpD;KACF;CACF,CAAC,CAAC;AAEU,QAAA,YAAY,GAAG,IAAA,kBAAW,EAAC;IACtC,EAAE,EAAE,OAAO;IACX,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,cAAc;IACvB,cAAc,EAAE;QACd,QAAQ,EAAE,EAAE;QACZ,IAAI,EAAE,OAAO;QACb,MAAM,EAAE,KAAK;KACd;IACD,OAAO,EAAE;QACP,OAAO,EAAE;YACP,IAA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ACA;IACD,cAAc,EAAE;QACd,OAAO,EAAE;YACP,IAAI,EAAE,UAAU;YAChB,GAAG,EAAE,0BAA0B;SAChC;KACF;IACD,SAAS,EAAE;QACT,UAAU,EAAE;YACV,OAAO,EAAE,4CAA4C;YACrD,YAAY,EAAE,OAAO;SACtB;KACF;IACD,OAAO,EAAE,KAAK;CACf,CAAC,CAAA","sourcesContent":["import { defineChain } from \"viem\";\n\nexport const gelatoOPTestnet = defineChain({\n id: 42069,\n name: \"Gelato OPTestnet\",\n network: \"gelatoOPTestnet\",\n nativeCurrency: {\n decimals: 18,\n name: \"Ether\",\n symbol: \"ETH\",\n },\n rpcUrls: {\n default: {\n http: [\"https://rpc.op-testnet.gelato.digital\"],\n webSocket: [],\n },\n public: {\n http: [\"https://rpc.op-testnet.gelato.digital\"],\n webSocket: [],\n },\n },\n blockExplorers: {\n default: {\n name: \"Explorer\",\n url: \"https://blockscout.op-testnet.gelato.digital\",\n },\n },\n});\n\nexport const astarZKatana = defineChain({\n id: 1261120,\n name: \"Astar zKatana\",\n network: \"astarZKatana\",\n nativeCurrency: {\n decimals: 18,\n name: \"Ether\",\n symbol: \"ETH\",\n },\n rpcUrls: {\n default: {\n http: [\"https://rpc.zkatana.gelato.digital\"],\n webSocket: [\"https://ws.zkatana.gelato.digital\"],\n },\n public: {\n http: [\"https://rpc.zkatana.gelato.digital\"],\n webSocket: [\"https://ws.zkatana.gelato.digital\"],\n },\n },\n blockExplorers: {\n default: {\n name: \"Explorer\",\n url: \"https://zkatana.blockscout.com\",\n },\n },\n});\n\nexport const astarZkEVM = defineChain({\n id: 3_776,\n name: 'Astar zkEVM',\n network: 'AstarZkEVM',\n nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },\n rpcUrls: {\n default: {\n http: ['https://rpc.startale.com/astar-zkevm'],\n },\n public: {\n http: ['https://rpc.startale.com/astar-zkevm'],\n },\n },\n blockExplorers: {\n default: {\n name: 'Astar zkEVM Explorer',\n url: 'https://astar-zkevm.explorer.startale.com',\n },\n },\n contracts: {\n multicall3: {\n address: '0x36eabf148272BA81A5225C6a3637972F0EE17771',\n blockCreated: 93528,\n },\n },\n testnet: false,\n})\n\nexport const arbitrumNova = defineChain({\n id: 42_170,\n name: 'Arbitrum Nova',\n network: \"arbitrumNova\",\n nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },\n rpcUrls: {\n default: {\n http: ['https://nova.arbitrum.io/rpc'],\n },\n public: {\n http: ['https://nova.arbitrum.io/rpc'],\n },\n },\n blockExplorers: {\n default: {\n name: 'Arbiscan',\n url: 'https://nova.arbiscan.io',\n },\n },\n contracts: {\n multicall3: {\n address: '0xca11bde05977b3631167028862be2a173976ca11',\n blockCreated: 1746963,\n },\n },\n testnet: false,\n})\n"]}
|
|
1
|
+
{"version":3,"file":"custom-chains.js","sourceRoot":"","sources":["../../../../src/kernel-zerodev/utils/custom-chains.ts"],"names":[],"mappings":";;;AAAA,+BAAmC;AAEtB,QAAA,eAAe,GAAG,IAAA,kBAAW,EAAC;IACzC,EAAE,EAAE,KAAK;IACT,IAAI,EAAE,kBAAkB;IACxB,OAAO,EAAE,iBAAiB;IAC1B,cAAc,EAAE;QACd,QAAQ,EAAE,EAAE;QACZ,IAAI,EAAE,OAAO;QACb,MAAM,EAAE,KAAK;KACd;IACD,OAAO,EAAE;QACP,OAAO,EAAE;YACP,IAAI,EAAE,CAAC,uCAAuC,CAAC;YAC/C,SAAS,EAAE,EAAE;SACd;QACD,MAAM,EAAE;YACN,IAAI,EAAE,CAAC,uCAAuC,CAAC;YAC/C,SAAS,EAAE,EAAE;SACd;KACF;IACD,cAAc,EAAE;QACd,OAAO,EAAE;YACP,IAAI,EAAE,UAAU;YAChB,GAAG,EAAE,8CAA8C;SACpD;KACF;CACF,CAAC,CAAC;AAEU,QAAA,YAAY,GAAG,IAAA,kBAAW,EAAC;IACtC,EAAE,EAAE,OAAO;IACX,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,cAAc;IACvB,cAAc,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AAI,EAAE,CAAC,wBAAwB,CAAC;YAChC,SAAS,EAAE,CAAC,sBAAsB,CAAC;SACpC;QACD,MAAM,EAAE;YACN,IAAI,EAAE,CAAC,wBAAwB,CAAC;YAChC,SAAS,EAAE,CAAC,sBAAsB,CAAC;SACpC;KACF;IACD,cAAc,EAAE;QACd,OAAO,EAAE;YACP,IAAI,EAAE,sBAAsB;YAC5B,GAAG,EAAE,6BAA6B;SACnC;KACF;CACF,CAAC,CAAA","sourcesContent":["import { defineChain } from \"viem\";\n\nexport const gelatoOPTestnet = defineChain({\n id: 42069,\n name: \"Gelato OPTestnet\",\n network: \"gelatoOPTestnet\",\n nativeCurrency: {\n decimals: 18,\n name: \"Ether\",\n symbol: \"ETH\",\n },\n rpcUrls: {\n default: {\n http: [\"https://rpc.op-testnet.gelato.digital\"],\n webSocket: [],\n },\n public: {\n http: [\"https://rpc.op-testnet.gelato.digital\"],\n webSocket: [],\n },\n },\n blockExplorers: {\n default: {\n name: \"Explorer\",\n url: \"https://blockscout.op-testnet.gelato.digital\",\n },\n },\n});\n\nexport const astarZKatana = defineChain({\n id: 1261120,\n name: \"Astar zKatana\",\n network: \"astarZKatana\",\n nativeCurrency: {\n decimals: 18,\n name: \"Ether\",\n symbol: \"ETH\",\n },\n rpcUrls: {\n default: {\n http: [\"https://rpc.zkatana.gelato.digital\"],\n webSocket: [\"https://ws.zkatana.gelato.digital\"],\n },\n public: {\n http: [\"https://rpc.zkatana.gelato.digital\"],\n webSocket: [\"https://ws.zkatana.gelato.digital\"],\n },\n },\n blockExplorers: {\n default: {\n name: \"Explorer\",\n url: \"https://zkatana.blockscout.com\",\n },\n },\n});\n\nexport const astarZkEVM = defineChain({\n id: 3_776,\n name: 'Astar zkEVM',\n network: 'AstarZkEVM',\n nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },\n rpcUrls: {\n default: {\n http: ['https://rpc.startale.com/astar-zkevm'],\n },\n public: {\n http: ['https://rpc.startale.com/astar-zkevm'],\n },\n },\n blockExplorers: {\n default: {\n name: 'Astar zkEVM Explorer',\n url: 'https://astar-zkevm.explorer.startale.com',\n },\n },\n contracts: {\n multicall3: {\n address: '0x36eabf148272BA81A5225C6a3637972F0EE17771',\n blockCreated: 93528,\n },\n },\n testnet: false,\n})\n\nexport const arbitrumNova = defineChain({\n id: 42_170,\n name: 'Arbitrum Nova',\n network: \"arbitrumNova\",\n nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },\n rpcUrls: {\n default: {\n http: ['https://nova.arbitrum.io/rpc'],\n },\n public: {\n http: ['https://nova.arbitrum.io/rpc'],\n },\n },\n blockExplorers: {\n default: {\n name: 'Arbiscan',\n url: 'https://nova.arbiscan.io',\n },\n },\n contracts: {\n multicall3: {\n address: '0xca11bde05977b3631167028862be2a173976ca11',\n blockCreated: 1746963,\n },\n },\n testnet: false,\n})\n\nexport const arbitrumBlueberry = defineChain({\n id: 88_153_591_557,\n name: 'Arbitrum Blueberry',\n network: 'arbitrum-blueberry',\n nativeCurrency: {\n decimals: 18,\n name: 'Ether',\n symbol: 'ETH',\n },\n rpcUrls: {\n default: { http: ['https://rpc.arb-blueberry.gelato.digital'] },\n public: { http: ['https://rpc.arb-blueberry.gelato.digital'] },\n },\n blockExplorers: {\n default: { name: 'Gelatoscout', url: 'https://arb-blueberry.gelatoscout.com' },\n },\n testnet: true,\n})\n\nexport const opCelestiaRaspberry = defineChain({\n id: 123_420_111,\n name: 'OP Celestia Raspberry',\n network: 'op-celestia-raspberry',\n nativeCurrency: {\n decimals: 18,\n name: 'Ether',\n symbol: 'ETH',\n },\n rpcUrls: {\n default: { http: ['https://rpc.opcelestia-raspberry.gelato.digital'] },\n public: { http: ['https://rpc.opcelestia-raspberry.gelato.digital'] },\n },\n blockExplorers: {\n default: { name: 'Gelatoscout', url: 'https://opcelestia-raspberry.gelatoscout.com' },\n },\n testnet: true,\n})\n\nexport const polygonBlackberry = defineChain({\n id: 94_204_209,\n name: 'Polygon Blackberry',\n network: 'polybon-blackberry',\n nativeCurrency: {\n decimals: 18,\n name: 'Ether',\n symbol: 'ETH',\n },\n rpcUrls: {\n default: { http: ['https://rpc.polygon-blackberry.gelato.digital'] },\n public: { http: ['https://rpc.polygon-blackberry.gelato.digital'] },\n },\n blockExplorers: {\n default: { name: 'Gelatoscout', url: 'https://polygon-blackberry.gelatoscout.com' },\n },\n testnet: true,\n})\n\nexport const cyberMainnet = defineChain({\n id: 7560,\n name: 'Cyber Mainnet',\n network: 'cyber-mainnet',\n nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },\n rpcUrls: {\n default: {\n http: ['https://cyber.alt.technology/'],\n },\n public: {\n http: ['https://cyber.alt.technology/'],\n },\n },\n blockExplorers: {\n default: {\n name: 'Cyber Mainnet Explorer',\n url: 'https://cyber-explorer.alt.technology/',\n },\n },\n testnet: false,\n})\n\nexport const cyberTestnet = defineChain({\n id: 111_557_560,\n name: 'Cyber Testnet',\n network: 'cyber-testnet',\n nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },\n rpcUrls: {\n default: {\n http: ['https://cyber-testnet.alt.technology'],\n },\n public: {\n http: ['https://cyber-testnet.alt.technology'],\n },\n },\n blockExplorers: {\n default: {\n name: 'Cyber Testnet Explorer',\n url: 'https://cyber-testnet-explorer.alt.technology/',\n },\n },\n testnet: true,\n})\n\nexport const astarZkyoto = defineChain({\n id: 6_038_361,\n name: 'Astar zkEVM Testnet zKyoto',\n network: 'zKyoto',\n nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },\n rpcUrls: {\n default: {\n http: ['https://rpc.startale.com/zkyoto'],\n },\n public: {\n http: ['https://rpc.startale.com/zkyoto'],\n },\n },\n blockExplorers: {\n default: {\n name: 'zKyoto Explorer',\n url: 'https://zkyoto.explorer.startale.com',\n },\n },\n contracts: {\n multicall3: {\n address: '0xca11bde05977b3631167028862be2a173976ca11',\n blockCreated: 196153,\n },\n },\n testnet: true,\n})\n\nexport const degen = defineChain({\n id: 666666666,\n name: 'Degen',\n nativeCurrency: {\n decimals: 18,\n name: 'Degen',\n symbol: 'DEGEN',\n },\n network: 'degen',\n rpcUrls: {\n default: {\n http: ['https://rpc.degen.tips'],\n webSocket: ['wss://rpc.degen.tips'],\n },\n public: {\n http: ['https://rpc.degen.tips'],\n webSocket: ['wss://rpc.degen.tips'],\n },\n },\n blockExplorers: {\n default: {\n name: 'Degen Chain Explorer',\n url: 'https://explorer.degen.tips'\n },\n },\n})\n"]}
|
|
@@ -79,5 +79,12 @@ export const CHAIN_ID_TO_NODE = {
|
|
|
79
79
|
3776: 'https://rpc.startale.com/astar-zkevm',
|
|
80
80
|
122: 'https://rpc.fuse.io',
|
|
81
81
|
42170: 'https://nova.arbitrum.io/rpc',
|
|
82
|
+
94204209: 'https://rpc.polygon-blackberry.gelato.digital',
|
|
83
|
+
88153591557: 'https://rpc.arb-blueberry.gelato.digital',
|
|
84
|
+
123420111: 'https://rpc.opcelestia-raspberry.gelato.digital',
|
|
85
|
+
6038361: 'https://rpc.startale.com/zkyoto',
|
|
86
|
+
666666666: 'https://rpc.degen.tips',
|
|
87
|
+
7560: 'https://cyber.alt.technology',
|
|
88
|
+
111557560: 'https://cyber-testnet.alt.technology',
|
|
82
89
|
};
|
|
83
90
|
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/kernel-zerodev/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAY,MAAM,MAAM,CAAC;AAE5C,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAEtC,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC;AAC7C,MAAM,CAAC,MAAM,iCAAiC,GAAG,KAAK,CAAC;AACvD,MAAM,CAAC,MAAM,WAAW,GACtB,sDAAsD,CAAC;AACzD,MAAM,CAAC,MAAM,aAAa,GACxB,wDAAwD,CAAC;AAC3D,MAAM,CAAC,MAAM,kB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IAC5F,IAAI,EAAE,+FAA+F;IACrG,KAAK,EACH,8FAA8F;IAChG,GAAG,EAAE,2FAA2F;IAChG,KAAK,EAAE,oEAAoE;IAC3E,KAAK,EAAE,sCAAsC,cAAc,EAAE;IAC7D,KAAK,EAAE,qCAAqC,cAAc,EAAE;IAC5D,GAAG,EAAE,iEAAiE;IACtE,KAAK,EAAE,uCAAuC;IAC9C,OAAO,EAAE,oCAAoC;IAC7C,KAAK,EACH,gGAAgG;IAClG,MAAM,EAAE,yCAAyC,cAAc,EAAE;IACjE,QAAQ,EAAE,yCAAyC,cAAc,EAAE;IAEnE,KAAK,EAAE,qCAAqC,cAAc,EAAE;IAC5D,KAAK,EAAE,uCAAuC,cAAc,EAAE;IAC9D,SAAS,EAAE,qEAAqE;IAChF,KAAK,EAAE,sBAAsB;IAC7B,IAAI,EAAE,sCAAsC;IAC5C,GAAG,EAAE,qBAAqB;IAC1B,KAAK,EAAE,8BAA8B;IACrC,QAAQ,EAAE,+CAA+C;IACzD,WAAW,EAAE,0CAA0C;IACvD,SAAS,EAAE,iDAAiD;IAC5D,OAAO,EAAE,iCAAiC;IAC1C,SAAS,EAAE,wBAAwB;IACnC,IAAI,EAAE,8BAA8B;IACpC,SAAS,EAAE,sCAAsC;CAClD,CAAC","sourcesContent":["import { parseUnits, type Hex } from \"viem\";\nimport type { IGasTokenAddresses } from \"./paymaster/types.js\";\nimport { polygon } from \"viem/chains\";\n\nexport const DEFAULT_SEND_TX_MAX_RETRIES = 3;\nexport const DEFAULT_SEND_TX_RETRY_INTERVAL_MS = 60000; // 1 minutes\nexport const BUNDLER_URL =\n \"https://meta-aa-provider.onrender.com/api/v1/bundler\";\nexport const PAYMASTER_URL =\n \"https://meta-aa-provider.onrender.com/api/v1/paymaster\";\nexport const ENTRYPOINT_ADDRESS: Hex =\n \"0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789\";\nexport const MULTISEND_ADDR: Hex = \"0x8ae01fcf7c655655ff2c6ef907b8b4718ab4e17c\";\nexport const BACKEND_URL = \"https://backend-vikp.onrender.com\";\nexport const API_URL = \"https://prod-api.zerodev.app\";\nexport const ECDSA_VALIDATOR_ADDRESS =\n \"0xd9AB5096a832b9ce79914329DAEE236f8Eea0390\";\nexport const KERNEL_FACTORY_ADDRESS =\n \"0x5de4839a76cf55d0c90e2061ef4386d962E15ae3\";\nexport const KERNEL_IMPL_ADDRESS = \"0x0DA6a956B9488eD4dd761E59f52FDc6c8068E6B5\";\nexport const KILL_SWITCH_VALIDATOR_ADDRESS =\n \"0x7393A7dA58CCfFb78f52adb09705BE6E20F704BC\";\nexport const KILL_SWITCH_ACTION = \"0x3f38e479304c7F18F988269a1bDa7d646bd48243\";\nexport const DUMMY_ECDSA_SIG =\n \"0xfffffffffffffffffffffffffffffff0000000000000000000000000000000007aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa1c\";\nexport const ERC165_SESSION_KEY_VALIDATOR_ADDRESS =\n \"0xe149290800De29D4b0BF9dB82c508255D81902E6\";\nexport const TOKEN_ACTION = \"0x2087C7FfD0d0DAE80a00EE74325aBF3449e0eaf1\";\nexport const SESSION_KEY_VALIDATOR_ADDRESS =\n \"0x5C06CE2b673fD5E6e56076e40DD46aB67f5a72A5\";\nexport const RECOVERY_VALIDATOR_ADDRESS =\n \"0xaFA369cA3432e62ACe6bd77B2886F2D588c68dA8\";\nexport const RECOVERY_ACTION = \"0x2f65dB8039fe5CAEE0a8680D2879deB800F31Ae1\";\nexport const oneAddress = \"0x0000000000000000000000000000000000000001\";\n\nexport const gasTokenChainAddresses: IGasTokenAddresses = {\n USDC: {\n 1: \"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48\",\n // 5: \"0x2f3A40A3db8a7e3D09B0adfEfbCe4f6F81927557\",\n 137: \"0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174\",\n // 80001: \"\",\n // 420: \"0x7F5c764cBc14f9669B88837ca1490cCa17c31607\",\n 42161: \"0xFF970A61A04b1cA14834A43f5dE4533eBDDB5CC8\",\n // 421613: \"\",\n 43114: \"0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E\",\n // 43113: \"\",\n // 56: \"\",\n // 97: \"\"\n },\n PEPE: {\n 1: \"0x6982508145454Ce325dDbE47a25d4ec3d2311933\",\n },\n};\n\nexport const ERC20_APPROVAL_AMOUNT: { [key: string]: bigint } = {\n // ETH\n [gasTokenChainAddresses[\"USDC\"][1]]: parseUnits(\"100\", 6),\n\n // Goerli\n [gasTokenChainAddresses[\"USDC\"][5]]: parseUnits(\"100\", 6),\n\n // Polygon\n [gasTokenChainAddresses[\"USDC\"][137]]: parseUnits(\"10\", 6),\n\n // Arbitrum\n [gasTokenChainAddresses[\"USDC\"][42161]]: parseUnits(\"10\", 6),\n\n // Avalanche\n [gasTokenChainAddresses[\"USDC\"][43114]]: parseUnits(\"10\", 6),\n\n // ETH\n [gasTokenChainAddresses[\"PEPE\"][1]]: parseUnits(\"50000000\", 18),\n\n \"0x3870419Ba2BBf0127060bCB37f69A1b1C090992B\": parseUnits(\"100\", 18),\n};\n\nexport const minPriorityFeePerBidDefaults = new Map<number, bigint>([\n [polygon.id, 30_000_000_000n],\n]);\n\nexport const INFURA_API_KEY = \"f36f7f706a58477884ce6fe89165666c\";\nexport const CHAIN_ID_TO_NODE: { [key: number]: string } = {\n 1: `https://mainnet.infura.io/v3/${INFURA_API_KEY}`,\n 5: `https://goerli.infura.io/v3/${INFURA_API_KEY}`,\n 11155111:\n \"https://fittest-ultra-aura.ethereum-sepolia.quiknode.pro/3893d01b1dd411fdfa9b6dd372dd2b4f69fcf1ea/\",\n 137: `https://polygon-mainnet.infura.io/v3/${INFURA_API_KEY}`,\n 80001: `https://polygon-mumbai.infura.io/v3/${INFURA_API_KEY}`,\n 80002: `https://polygon-amoy.infura.io/v3/${INFURA_API_KEY}`,\n 10: `https://optimism-mainnet.infura.io/v3/${INFURA_API_KEY}`,\n 420: `https://optimism-goerli.infura.io/v3/${INFURA_API_KEY}`,\n 42161: `https://arbitrum-mainnet.infura.io/v3/${INFURA_API_KEY}`,\n // 42161: 'https://evocative-stylish-dinghy.arbitrum-mainnet.discover.quiknode.pro/80b526d14fa9fd9a8b0db1e65554acaf00c6a1ab/',\n 421613: `https://arbitrum-goerli.infura.io/v3/${INFURA_API_KEY}`,\n 43114: `https://avalanche-mainnet.infura.io/v3/${INFURA_API_KEY}`,\n 43113: `https://avalanche-fuji.infura.io/v3/${INFURA_API_KEY}`,\n 1313161554: `https://aurora-mainnet.infura.io/v3/${INFURA_API_KEY}`,\n 1313161555: `https://aurora-testnet.infura.io/v3/${INFURA_API_KEY}`,\n 56: \"https://neat-greatest-layer.bsc.quiknode.pro/9405a499ceee314e5f2f68c9d47518d3537fce6a/\",\n 8453: \"https://twilight-red-tree.base-mainnet.quiknode.pro/dc6eb27bf0f917df215922488dd97f4de7d9b08e/\",\n 84531:\n \"https://icy-long-mountain.base-goerli.quiknode.pro/5b80d93e97cc9412a63c10a30841869abbef9596/\",\n 100: \"https://thrilling-fluent-film.xdai.quiknode.pro/305955cffb9868cdd95b5e3dc9775f20678ad9ac/\",\n 10200: \"https://nd-810-853-201.p2pify.com/e828b09f0d43591de96c297b3f36fffd\",\n 59144: `https://linea-mainnet.infura.io/v3/${INFURA_API_KEY}`,\n 59140: `https://linea-goerli.infura.io/v3/${INFURA_API_KEY}`,\n 204: \"https://opbnb.rpc.thirdweb.com/eed98c1f30120c0508f17c1f01d3102b\",\n 42069: \"https://rpc.op-testnet.gelato.digital\",\n 1261120: \"https://rpc.zkatana.gelato.digital\",\n 84532:\n \"https://floral-old-feather.base-sepolia.quiknode.pro/4c3b4295d0c174410872b1e461a91cc33c7969a9/\",\n 421614: `https://arbitrum-sepolia.infura.io/v3/${INFURA_API_KEY}`,\n 11155420: `https://optimism-sepolia.infura.io/v3/${INFURA_API_KEY}`,\n // 5611: 'opBnb-testnet',\n 42220: `https://celo-mainnet.infura.io/v3/${INFURA_API_KEY}`,\n 44787: `https://celo-alfajores.infura.io/v3/${INFURA_API_KEY}`,\n 168587773: 'https://168587773.rpc.thirdweb.com/eed98c1f30120c0508f17c1f01d3102b',\n 81457: 'https://rpc.blast.io',\n 3776: 'https://rpc.startale.com/astar-zkevm',\n 122: 'https://rpc.fuse.io',\n 42170: 'https://nova.arbitrum.io/rpc',\n 94204209: 'https://rpc.polygon-blackberry.gelato.digital',\n 88153591557: 'https://rpc.arb-blueberry.gelato.digital',\n 123420111: 'https://rpc.opcelestia-raspberry.gelato.digital',\n 6038361: 'https://rpc.startale.com/zkyoto',\n 666666666: 'https://rpc.degen.tips',\n 7560: 'https://cyber.alt.technology',\n 111557560: 'https://cyber-testnet.alt.technology',\n};\n"]}
|