@aromedia/contracts-sdk 0.2.0

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.
Files changed (51) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +121 -0
  3. package/dist/chains.cjs +67 -0
  4. package/dist/chains.cjs.map +1 -0
  5. package/dist/chains.d.cts +826 -0
  6. package/dist/chains.d.ts +826 -0
  7. package/dist/chains.js +23 -0
  8. package/dist/chains.js.map +1 -0
  9. package/dist/chunk-7I5N3BGV.js +271 -0
  10. package/dist/chunk-7I5N3BGV.js.map +1 -0
  11. package/dist/chunk-BYPGUFYV.js +50 -0
  12. package/dist/chunk-BYPGUFYV.js.map +1 -0
  13. package/dist/chunk-FWZ7XKFC.js +91 -0
  14. package/dist/chunk-FWZ7XKFC.js.map +1 -0
  15. package/dist/chunk-J6YVU3VA.js +35 -0
  16. package/dist/chunk-J6YVU3VA.js.map +1 -0
  17. package/dist/chunk-TZQHQLNY.js +7213 -0
  18. package/dist/chunk-TZQHQLNY.js.map +1 -0
  19. package/dist/generated/abis.cjs +7244 -0
  20. package/dist/generated/abis.cjs.map +1 -0
  21. package/dist/generated/abis.d.cts +11005 -0
  22. package/dist/generated/abis.d.ts +11005 -0
  23. package/dist/generated/abis.js +21 -0
  24. package/dist/generated/abis.js.map +1 -0
  25. package/dist/generated/addresses.cjs +119 -0
  26. package/dist/generated/addresses.cjs.map +1 -0
  27. package/dist/generated/addresses.d.cts +18 -0
  28. package/dist/generated/addresses.d.ts +18 -0
  29. package/dist/generated/addresses.js +15 -0
  30. package/dist/generated/addresses.js.map +1 -0
  31. package/dist/hooks/index.cjs +2005 -0
  32. package/dist/hooks/index.cjs.map +1 -0
  33. package/dist/hooks/index.d.cts +63 -0
  34. package/dist/hooks/index.d.ts +63 -0
  35. package/dist/hooks/index.js +218 -0
  36. package/dist/hooks/index.js.map +1 -0
  37. package/dist/index.cjs +7884 -0
  38. package/dist/index.cjs.map +1 -0
  39. package/dist/index.d.cts +42 -0
  40. package/dist/index.d.ts +42 -0
  41. package/dist/index.js +258 -0
  42. package/dist/index.js.map +1 -0
  43. package/dist/onboarding-BHpAJaNW.d.cts +302 -0
  44. package/dist/onboarding-DxL_LpM3.d.ts +302 -0
  45. package/dist/workflows/index.cjs +1988 -0
  46. package/dist/workflows/index.cjs.map +1 -0
  47. package/dist/workflows/index.d.cts +72 -0
  48. package/dist/workflows/index.d.ts +72 -0
  49. package/dist/workflows/index.js +25 -0
  50. package/dist/workflows/index.js.map +1 -0
  51. package/package.json +120 -0
@@ -0,0 +1,826 @@
1
+ import * as abitype from 'abitype';
2
+ import * as viem_chains from 'viem/chains';
3
+ export { base, baseSepolia, hardhat, mainnet, sepolia } from 'viem/chains';
4
+ import * as viem from 'viem';
5
+ import { Chain } from 'viem';
6
+ import { AroChainId } from './generated/addresses.js';
7
+ import './generated/abis.js';
8
+
9
+ /**
10
+ * Chains the SDK has first-class support for. Re-exported from viem to keep
11
+ * the consumer's chain instance identical to ours — this matters because
12
+ * wagmi keys its provider registry by chain object identity.
13
+ */
14
+ declare const aroChains: {
15
+ readonly mainnet: {
16
+ blockExplorers: {
17
+ readonly default: {
18
+ readonly name: "Etherscan";
19
+ readonly url: "https://etherscan.io";
20
+ readonly apiUrl: "https://api.etherscan.io/api";
21
+ };
22
+ };
23
+ blockTime: 12000;
24
+ contracts: {
25
+ readonly ensUniversalResolver: {
26
+ readonly address: "0xeeeeeeee14d718c2b47d9923deab1335e144eeee";
27
+ readonly blockCreated: 23085558;
28
+ };
29
+ readonly multicall3: {
30
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
31
+ readonly blockCreated: 14353601;
32
+ };
33
+ };
34
+ ensTlds?: readonly string[] | undefined;
35
+ id: 1;
36
+ name: "Ethereum";
37
+ nativeCurrency: {
38
+ readonly name: "Ether";
39
+ readonly symbol: "ETH";
40
+ readonly decimals: 18;
41
+ };
42
+ experimental_preconfirmationTime?: number | undefined | undefined;
43
+ rpcUrls: {
44
+ readonly default: {
45
+ readonly http: readonly ["https://eth.merkle.io"];
46
+ };
47
+ };
48
+ sourceId?: number | undefined | undefined;
49
+ testnet?: boolean | undefined | undefined;
50
+ custom?: Record<string, unknown> | undefined;
51
+ extendSchema?: Record<string, unknown> | undefined;
52
+ fees?: viem.ChainFees<undefined> | undefined;
53
+ formatters?: undefined;
54
+ prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
55
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
56
+ }) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
57
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
58
+ }) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
59
+ runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
60
+ }] | undefined;
61
+ serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
62
+ verifyHash?: ((client: viem.Client, parameters: viem.VerifyHashActionParameters) => Promise<viem.VerifyHashActionReturnType>) | undefined;
63
+ };
64
+ readonly sepolia: {
65
+ blockExplorers: {
66
+ readonly default: {
67
+ readonly name: "Etherscan";
68
+ readonly url: "https://sepolia.etherscan.io";
69
+ readonly apiUrl: "https://api-sepolia.etherscan.io/api";
70
+ };
71
+ };
72
+ blockTime?: number | undefined | undefined;
73
+ contracts: {
74
+ readonly multicall3: {
75
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
76
+ readonly blockCreated: 751532;
77
+ };
78
+ readonly ensUniversalResolver: {
79
+ readonly address: "0xeeeeeeee14d718c2b47d9923deab1335e144eeee";
80
+ readonly blockCreated: 8928790;
81
+ };
82
+ };
83
+ ensTlds?: readonly string[] | undefined;
84
+ id: 11155111;
85
+ name: "Sepolia";
86
+ nativeCurrency: {
87
+ readonly name: "Sepolia Ether";
88
+ readonly symbol: "ETH";
89
+ readonly decimals: 18;
90
+ };
91
+ experimental_preconfirmationTime?: number | undefined | undefined;
92
+ rpcUrls: {
93
+ readonly default: {
94
+ readonly http: readonly ["https://11155111.rpc.thirdweb.com"];
95
+ };
96
+ };
97
+ sourceId?: number | undefined | undefined;
98
+ testnet: true;
99
+ custom?: Record<string, unknown> | undefined;
100
+ extendSchema?: Record<string, unknown> | undefined;
101
+ fees?: viem.ChainFees<undefined> | undefined;
102
+ formatters?: undefined;
103
+ prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
104
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
105
+ }) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
106
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
107
+ }) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
108
+ runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
109
+ }] | undefined;
110
+ serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
111
+ verifyHash?: ((client: viem.Client, parameters: viem.VerifyHashActionParameters) => Promise<viem.VerifyHashActionReturnType>) | undefined;
112
+ };
113
+ readonly base: {
114
+ blockExplorers: {
115
+ readonly default: {
116
+ readonly name: "Basescan";
117
+ readonly url: "https://basescan.org";
118
+ readonly apiUrl: "https://api.basescan.org/api";
119
+ };
120
+ };
121
+ blockTime: 2000;
122
+ contracts: {
123
+ readonly disputeGameFactory: {
124
+ readonly 1: {
125
+ readonly address: "0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e";
126
+ };
127
+ };
128
+ readonly l2OutputOracle: {
129
+ readonly 1: {
130
+ readonly address: "0x56315b90c40730925ec5485cf004d835058518A0";
131
+ };
132
+ };
133
+ readonly multicall3: {
134
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
135
+ readonly blockCreated: 5022;
136
+ };
137
+ readonly portal: {
138
+ readonly 1: {
139
+ readonly address: "0x49048044D57e1C92A77f79988d21Fa8fAF74E97e";
140
+ readonly blockCreated: 17482143;
141
+ };
142
+ };
143
+ readonly l1StandardBridge: {
144
+ readonly 1: {
145
+ readonly address: "0x3154Cf16ccdb4C6d922629664174b904d80F2C35";
146
+ readonly blockCreated: 17482143;
147
+ };
148
+ };
149
+ readonly gasPriceOracle: {
150
+ readonly address: "0x420000000000000000000000000000000000000F";
151
+ };
152
+ readonly l1Block: {
153
+ readonly address: "0x4200000000000000000000000000000000000015";
154
+ };
155
+ readonly l2CrossDomainMessenger: {
156
+ readonly address: "0x4200000000000000000000000000000000000007";
157
+ };
158
+ readonly l2Erc721Bridge: {
159
+ readonly address: "0x4200000000000000000000000000000000000014";
160
+ };
161
+ readonly l2StandardBridge: {
162
+ readonly address: "0x4200000000000000000000000000000000000010";
163
+ };
164
+ readonly l2ToL1MessagePasser: {
165
+ readonly address: "0x4200000000000000000000000000000000000016";
166
+ };
167
+ };
168
+ ensTlds?: readonly string[] | undefined;
169
+ id: 8453;
170
+ name: "Base";
171
+ nativeCurrency: {
172
+ readonly name: "Ether";
173
+ readonly symbol: "ETH";
174
+ readonly decimals: 18;
175
+ };
176
+ experimental_preconfirmationTime?: number | undefined | undefined;
177
+ rpcUrls: {
178
+ readonly default: {
179
+ readonly http: readonly ["https://mainnet.base.org"];
180
+ };
181
+ };
182
+ sourceId: 1;
183
+ testnet?: boolean | undefined | undefined;
184
+ custom?: Record<string, unknown> | undefined;
185
+ extendSchema?: Record<string, unknown> | undefined;
186
+ fees?: viem.ChainFees<undefined> | undefined;
187
+ formatters: {
188
+ readonly block: {
189
+ exclude: [] | undefined;
190
+ format: (args: viem_chains.OpStackRpcBlock, action?: string | undefined) => {
191
+ baseFeePerGas: bigint | null;
192
+ blobGasUsed: bigint;
193
+ difficulty: bigint;
194
+ excessBlobGas: bigint;
195
+ extraData: viem.Hex;
196
+ gasLimit: bigint;
197
+ gasUsed: bigint;
198
+ hash: `0x${string}` | null;
199
+ logsBloom: `0x${string}` | null;
200
+ miner: abitype.Address;
201
+ mixHash: viem.Hash;
202
+ nonce: `0x${string}` | null;
203
+ number: bigint | null;
204
+ parentBeaconBlockRoot?: `0x${string}` | undefined;
205
+ parentHash: viem.Hash;
206
+ receiptsRoot: viem.Hex;
207
+ sealFields: viem.Hex[];
208
+ sha3Uncles: viem.Hash;
209
+ size: bigint;
210
+ stateRoot: viem.Hash;
211
+ timestamp: bigint;
212
+ totalDifficulty: bigint | null;
213
+ transactions: `0x${string}`[] | viem_chains.OpStackTransaction<boolean>[];
214
+ transactionsRoot: viem.Hash;
215
+ uncles: viem.Hash[];
216
+ withdrawals?: viem.Withdrawal[] | undefined | undefined;
217
+ withdrawalsRoot?: `0x${string}` | undefined;
218
+ } & {};
219
+ type: "block";
220
+ };
221
+ readonly transaction: {
222
+ exclude: [] | undefined;
223
+ format: (args: viem_chains.OpStackRpcTransaction, action?: string | undefined) => ({
224
+ blockHash: `0x${string}` | null;
225
+ blockNumber: bigint | null;
226
+ blockTimestamp?: bigint | undefined;
227
+ from: abitype.Address;
228
+ gas: bigint;
229
+ hash: viem.Hash;
230
+ input: viem.Hex;
231
+ nonce: number;
232
+ r: viem.Hex;
233
+ s: viem.Hex;
234
+ to: abitype.Address | null;
235
+ transactionIndex: number | null;
236
+ typeHex: viem.Hex | null;
237
+ v: bigint;
238
+ value: bigint;
239
+ yParity: number;
240
+ gasPrice?: undefined | undefined;
241
+ maxFeePerBlobGas?: undefined | undefined;
242
+ maxFeePerGas: bigint;
243
+ maxPriorityFeePerGas: bigint;
244
+ isSystemTx?: boolean;
245
+ mint?: bigint | undefined | undefined;
246
+ sourceHash: viem.Hex;
247
+ type: "deposit";
248
+ } | {
249
+ r: viem.Hex;
250
+ s: viem.Hex;
251
+ v: bigint;
252
+ to: abitype.Address | null;
253
+ from: abitype.Address;
254
+ gas: bigint;
255
+ nonce: number;
256
+ value: bigint;
257
+ blockHash: `0x${string}` | null;
258
+ blockNumber: bigint | null;
259
+ blockTimestamp?: bigint | undefined;
260
+ hash: viem.Hash;
261
+ input: viem.Hex;
262
+ transactionIndex: number | null;
263
+ typeHex: viem.Hex | null;
264
+ accessList?: undefined | undefined;
265
+ authorizationList?: undefined | undefined;
266
+ blobVersionedHashes?: undefined | undefined;
267
+ chainId?: number | undefined;
268
+ yParity?: undefined | undefined;
269
+ type: "legacy";
270
+ gasPrice: bigint;
271
+ maxFeePerBlobGas?: undefined | undefined;
272
+ maxFeePerGas?: undefined | undefined;
273
+ maxPriorityFeePerGas?: undefined | undefined;
274
+ isSystemTx?: undefined | undefined;
275
+ mint?: undefined | undefined;
276
+ sourceHash?: undefined | undefined;
277
+ } | {
278
+ blockHash: `0x${string}` | null;
279
+ blockNumber: bigint | null;
280
+ blockTimestamp?: bigint | undefined;
281
+ from: abitype.Address;
282
+ gas: bigint;
283
+ hash: viem.Hash;
284
+ input: viem.Hex;
285
+ nonce: number;
286
+ r: viem.Hex;
287
+ s: viem.Hex;
288
+ to: abitype.Address | null;
289
+ transactionIndex: number | null;
290
+ typeHex: viem.Hex | null;
291
+ v: bigint;
292
+ value: bigint;
293
+ yParity: number;
294
+ accessList: viem.AccessList;
295
+ authorizationList?: undefined | undefined;
296
+ blobVersionedHashes?: undefined | undefined;
297
+ chainId: number;
298
+ type: "eip2930";
299
+ gasPrice: bigint;
300
+ maxFeePerBlobGas?: undefined | undefined;
301
+ maxFeePerGas?: undefined | undefined;
302
+ maxPriorityFeePerGas?: undefined | undefined;
303
+ isSystemTx?: undefined | undefined;
304
+ mint?: undefined | undefined;
305
+ sourceHash?: undefined | undefined;
306
+ } | {
307
+ blockHash: `0x${string}` | null;
308
+ blockNumber: bigint | null;
309
+ blockTimestamp?: bigint | undefined;
310
+ from: abitype.Address;
311
+ gas: bigint;
312
+ hash: viem.Hash;
313
+ input: viem.Hex;
314
+ nonce: number;
315
+ r: viem.Hex;
316
+ s: viem.Hex;
317
+ to: abitype.Address | null;
318
+ transactionIndex: number | null;
319
+ typeHex: viem.Hex | null;
320
+ v: bigint;
321
+ value: bigint;
322
+ yParity: number;
323
+ accessList: viem.AccessList;
324
+ authorizationList?: undefined | undefined;
325
+ blobVersionedHashes?: undefined | undefined;
326
+ chainId: number;
327
+ type: "eip1559";
328
+ gasPrice?: undefined | undefined;
329
+ maxFeePerBlobGas?: undefined | undefined;
330
+ maxFeePerGas: bigint;
331
+ maxPriorityFeePerGas: bigint;
332
+ isSystemTx?: undefined | undefined;
333
+ mint?: undefined | undefined;
334
+ sourceHash?: undefined | undefined;
335
+ } | {
336
+ blockHash: `0x${string}` | null;
337
+ blockNumber: bigint | null;
338
+ blockTimestamp?: bigint | undefined;
339
+ from: abitype.Address;
340
+ gas: bigint;
341
+ hash: viem.Hash;
342
+ input: viem.Hex;
343
+ nonce: number;
344
+ r: viem.Hex;
345
+ s: viem.Hex;
346
+ to: abitype.Address | null;
347
+ transactionIndex: number | null;
348
+ typeHex: viem.Hex | null;
349
+ v: bigint;
350
+ value: bigint;
351
+ yParity: number;
352
+ accessList: viem.AccessList;
353
+ authorizationList?: undefined | undefined;
354
+ blobVersionedHashes: readonly viem.Hex[];
355
+ chainId: number;
356
+ type: "eip4844";
357
+ gasPrice?: undefined | undefined;
358
+ maxFeePerBlobGas: bigint;
359
+ maxFeePerGas: bigint;
360
+ maxPriorityFeePerGas: bigint;
361
+ isSystemTx?: undefined | undefined;
362
+ mint?: undefined | undefined;
363
+ sourceHash?: undefined | undefined;
364
+ } | {
365
+ blockHash: `0x${string}` | null;
366
+ blockNumber: bigint | null;
367
+ blockTimestamp?: bigint | undefined;
368
+ from: abitype.Address;
369
+ gas: bigint;
370
+ hash: viem.Hash;
371
+ input: viem.Hex;
372
+ nonce: number;
373
+ r: viem.Hex;
374
+ s: viem.Hex;
375
+ to: abitype.Address | null;
376
+ transactionIndex: number | null;
377
+ typeHex: viem.Hex | null;
378
+ v: bigint;
379
+ value: bigint;
380
+ yParity: number;
381
+ accessList: viem.AccessList;
382
+ authorizationList: viem.SignedAuthorizationList;
383
+ blobVersionedHashes?: undefined | undefined;
384
+ chainId: number;
385
+ type: "eip7702";
386
+ gasPrice?: undefined | undefined;
387
+ maxFeePerBlobGas?: undefined | undefined;
388
+ maxFeePerGas: bigint;
389
+ maxPriorityFeePerGas: bigint;
390
+ isSystemTx?: undefined | undefined;
391
+ mint?: undefined | undefined;
392
+ sourceHash?: undefined | undefined;
393
+ }) & {};
394
+ type: "transaction";
395
+ };
396
+ readonly transactionReceipt: {
397
+ exclude: [] | undefined;
398
+ format: (args: viem_chains.OpStackRpcTransactionReceipt, action?: string | undefined) => {
399
+ blobGasPrice?: bigint | undefined;
400
+ blobGasUsed?: bigint | undefined;
401
+ blockHash: viem.Hash;
402
+ blockNumber: bigint;
403
+ blockTimestamp?: bigint | undefined;
404
+ contractAddress: abitype.Address | null | undefined;
405
+ cumulativeGasUsed: bigint;
406
+ effectiveGasPrice: bigint;
407
+ from: abitype.Address;
408
+ gasUsed: bigint;
409
+ logs: viem.Log<bigint, number, false>[];
410
+ logsBloom: viem.Hex;
411
+ root?: `0x${string}` | undefined;
412
+ status: "success" | "reverted";
413
+ to: abitype.Address | null;
414
+ transactionHash: viem.Hash;
415
+ transactionIndex: number;
416
+ type: viem.TransactionType;
417
+ l1GasPrice: bigint | null;
418
+ l1GasUsed: bigint | null;
419
+ l1Fee: bigint | null;
420
+ l1FeeScalar: number | null;
421
+ } & {};
422
+ type: "transactionReceipt";
423
+ };
424
+ };
425
+ prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
426
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
427
+ }) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
428
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
429
+ }) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
430
+ runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
431
+ }] | undefined;
432
+ serializers: {
433
+ readonly transaction: typeof viem_chains.serializeTransactionOpStack;
434
+ };
435
+ verifyHash?: ((client: viem.Client, parameters: viem.VerifyHashActionParameters) => Promise<viem.VerifyHashActionReturnType>) | undefined;
436
+ };
437
+ readonly baseSepolia: {
438
+ blockExplorers: {
439
+ readonly default: {
440
+ readonly name: "Basescan";
441
+ readonly url: "https://sepolia.basescan.org";
442
+ readonly apiUrl: "https://api-sepolia.basescan.org/api";
443
+ };
444
+ };
445
+ blockTime: 2000;
446
+ contracts: {
447
+ readonly disputeGameFactory: {
448
+ readonly 11155111: {
449
+ readonly address: "0xd6E6dBf4F7EA0ac412fD8b65ED297e64BB7a06E1";
450
+ };
451
+ };
452
+ readonly l2OutputOracle: {
453
+ readonly 11155111: {
454
+ readonly address: "0x84457ca9D0163FbC4bbfe4Dfbb20ba46e48DF254";
455
+ };
456
+ };
457
+ readonly portal: {
458
+ readonly 11155111: {
459
+ readonly address: "0x49f53e41452c74589e85ca1677426ba426459e85";
460
+ readonly blockCreated: 4446677;
461
+ };
462
+ };
463
+ readonly l1StandardBridge: {
464
+ readonly 11155111: {
465
+ readonly address: "0xfd0Bf71F60660E2f608ed56e1659C450eB113120";
466
+ readonly blockCreated: 4446677;
467
+ };
468
+ };
469
+ readonly multicall3: {
470
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
471
+ readonly blockCreated: 1059647;
472
+ };
473
+ readonly gasPriceOracle: {
474
+ readonly address: "0x420000000000000000000000000000000000000F";
475
+ };
476
+ readonly l1Block: {
477
+ readonly address: "0x4200000000000000000000000000000000000015";
478
+ };
479
+ readonly l2CrossDomainMessenger: {
480
+ readonly address: "0x4200000000000000000000000000000000000007";
481
+ };
482
+ readonly l2Erc721Bridge: {
483
+ readonly address: "0x4200000000000000000000000000000000000014";
484
+ };
485
+ readonly l2StandardBridge: {
486
+ readonly address: "0x4200000000000000000000000000000000000010";
487
+ };
488
+ readonly l2ToL1MessagePasser: {
489
+ readonly address: "0x4200000000000000000000000000000000000016";
490
+ };
491
+ };
492
+ ensTlds?: readonly string[] | undefined;
493
+ id: 84532;
494
+ name: "Base Sepolia";
495
+ nativeCurrency: {
496
+ readonly name: "Sepolia Ether";
497
+ readonly symbol: "ETH";
498
+ readonly decimals: 18;
499
+ };
500
+ experimental_preconfirmationTime?: number | undefined | undefined;
501
+ rpcUrls: {
502
+ readonly default: {
503
+ readonly http: readonly ["https://sepolia.base.org"];
504
+ };
505
+ };
506
+ sourceId: 11155111;
507
+ testnet: true;
508
+ custom?: Record<string, unknown> | undefined;
509
+ extendSchema?: Record<string, unknown> | undefined;
510
+ fees?: viem.ChainFees<undefined> | undefined;
511
+ formatters: {
512
+ readonly block: {
513
+ exclude: [] | undefined;
514
+ format: (args: viem_chains.OpStackRpcBlock, action?: string | undefined) => {
515
+ baseFeePerGas: bigint | null;
516
+ blobGasUsed: bigint;
517
+ difficulty: bigint;
518
+ excessBlobGas: bigint;
519
+ extraData: viem.Hex;
520
+ gasLimit: bigint;
521
+ gasUsed: bigint;
522
+ hash: `0x${string}` | null;
523
+ logsBloom: `0x${string}` | null;
524
+ miner: abitype.Address;
525
+ mixHash: viem.Hash;
526
+ nonce: `0x${string}` | null;
527
+ number: bigint | null;
528
+ parentBeaconBlockRoot?: `0x${string}` | undefined;
529
+ parentHash: viem.Hash;
530
+ receiptsRoot: viem.Hex;
531
+ sealFields: viem.Hex[];
532
+ sha3Uncles: viem.Hash;
533
+ size: bigint;
534
+ stateRoot: viem.Hash;
535
+ timestamp: bigint;
536
+ totalDifficulty: bigint | null;
537
+ transactions: `0x${string}`[] | viem_chains.OpStackTransaction<boolean>[];
538
+ transactionsRoot: viem.Hash;
539
+ uncles: viem.Hash[];
540
+ withdrawals?: viem.Withdrawal[] | undefined | undefined;
541
+ withdrawalsRoot?: `0x${string}` | undefined;
542
+ } & {};
543
+ type: "block";
544
+ };
545
+ readonly transaction: {
546
+ exclude: [] | undefined;
547
+ format: (args: viem_chains.OpStackRpcTransaction, action?: string | undefined) => ({
548
+ blockHash: `0x${string}` | null;
549
+ blockNumber: bigint | null;
550
+ blockTimestamp?: bigint | undefined;
551
+ from: abitype.Address;
552
+ gas: bigint;
553
+ hash: viem.Hash;
554
+ input: viem.Hex;
555
+ nonce: number;
556
+ r: viem.Hex;
557
+ s: viem.Hex;
558
+ to: abitype.Address | null;
559
+ transactionIndex: number | null;
560
+ typeHex: viem.Hex | null;
561
+ v: bigint;
562
+ value: bigint;
563
+ yParity: number;
564
+ gasPrice?: undefined | undefined;
565
+ maxFeePerBlobGas?: undefined | undefined;
566
+ maxFeePerGas: bigint;
567
+ maxPriorityFeePerGas: bigint;
568
+ isSystemTx?: boolean;
569
+ mint?: bigint | undefined | undefined;
570
+ sourceHash: viem.Hex;
571
+ type: "deposit";
572
+ } | {
573
+ r: viem.Hex;
574
+ s: viem.Hex;
575
+ v: bigint;
576
+ to: abitype.Address | null;
577
+ from: abitype.Address;
578
+ gas: bigint;
579
+ nonce: number;
580
+ value: bigint;
581
+ blockHash: `0x${string}` | null;
582
+ blockNumber: bigint | null;
583
+ blockTimestamp?: bigint | undefined;
584
+ hash: viem.Hash;
585
+ input: viem.Hex;
586
+ transactionIndex: number | null;
587
+ typeHex: viem.Hex | null;
588
+ accessList?: undefined | undefined;
589
+ authorizationList?: undefined | undefined;
590
+ blobVersionedHashes?: undefined | undefined;
591
+ chainId?: number | undefined;
592
+ yParity?: undefined | undefined;
593
+ type: "legacy";
594
+ gasPrice: bigint;
595
+ maxFeePerBlobGas?: undefined | undefined;
596
+ maxFeePerGas?: undefined | undefined;
597
+ maxPriorityFeePerGas?: undefined | undefined;
598
+ isSystemTx?: undefined | undefined;
599
+ mint?: undefined | undefined;
600
+ sourceHash?: undefined | undefined;
601
+ } | {
602
+ blockHash: `0x${string}` | null;
603
+ blockNumber: bigint | null;
604
+ blockTimestamp?: bigint | undefined;
605
+ from: abitype.Address;
606
+ gas: bigint;
607
+ hash: viem.Hash;
608
+ input: viem.Hex;
609
+ nonce: number;
610
+ r: viem.Hex;
611
+ s: viem.Hex;
612
+ to: abitype.Address | null;
613
+ transactionIndex: number | null;
614
+ typeHex: viem.Hex | null;
615
+ v: bigint;
616
+ value: bigint;
617
+ yParity: number;
618
+ accessList: viem.AccessList;
619
+ authorizationList?: undefined | undefined;
620
+ blobVersionedHashes?: undefined | undefined;
621
+ chainId: number;
622
+ type: "eip2930";
623
+ gasPrice: bigint;
624
+ maxFeePerBlobGas?: undefined | undefined;
625
+ maxFeePerGas?: undefined | undefined;
626
+ maxPriorityFeePerGas?: undefined | undefined;
627
+ isSystemTx?: undefined | undefined;
628
+ mint?: undefined | undefined;
629
+ sourceHash?: undefined | undefined;
630
+ } | {
631
+ blockHash: `0x${string}` | null;
632
+ blockNumber: bigint | null;
633
+ blockTimestamp?: bigint | undefined;
634
+ from: abitype.Address;
635
+ gas: bigint;
636
+ hash: viem.Hash;
637
+ input: viem.Hex;
638
+ nonce: number;
639
+ r: viem.Hex;
640
+ s: viem.Hex;
641
+ to: abitype.Address | null;
642
+ transactionIndex: number | null;
643
+ typeHex: viem.Hex | null;
644
+ v: bigint;
645
+ value: bigint;
646
+ yParity: number;
647
+ accessList: viem.AccessList;
648
+ authorizationList?: undefined | undefined;
649
+ blobVersionedHashes?: undefined | undefined;
650
+ chainId: number;
651
+ type: "eip1559";
652
+ gasPrice?: undefined | undefined;
653
+ maxFeePerBlobGas?: undefined | undefined;
654
+ maxFeePerGas: bigint;
655
+ maxPriorityFeePerGas: bigint;
656
+ isSystemTx?: undefined | undefined;
657
+ mint?: undefined | undefined;
658
+ sourceHash?: undefined | undefined;
659
+ } | {
660
+ blockHash: `0x${string}` | null;
661
+ blockNumber: bigint | null;
662
+ blockTimestamp?: bigint | undefined;
663
+ from: abitype.Address;
664
+ gas: bigint;
665
+ hash: viem.Hash;
666
+ input: viem.Hex;
667
+ nonce: number;
668
+ r: viem.Hex;
669
+ s: viem.Hex;
670
+ to: abitype.Address | null;
671
+ transactionIndex: number | null;
672
+ typeHex: viem.Hex | null;
673
+ v: bigint;
674
+ value: bigint;
675
+ yParity: number;
676
+ accessList: viem.AccessList;
677
+ authorizationList?: undefined | undefined;
678
+ blobVersionedHashes: readonly viem.Hex[];
679
+ chainId: number;
680
+ type: "eip4844";
681
+ gasPrice?: undefined | undefined;
682
+ maxFeePerBlobGas: bigint;
683
+ maxFeePerGas: bigint;
684
+ maxPriorityFeePerGas: bigint;
685
+ isSystemTx?: undefined | undefined;
686
+ mint?: undefined | undefined;
687
+ sourceHash?: undefined | undefined;
688
+ } | {
689
+ blockHash: `0x${string}` | null;
690
+ blockNumber: bigint | null;
691
+ blockTimestamp?: bigint | undefined;
692
+ from: abitype.Address;
693
+ gas: bigint;
694
+ hash: viem.Hash;
695
+ input: viem.Hex;
696
+ nonce: number;
697
+ r: viem.Hex;
698
+ s: viem.Hex;
699
+ to: abitype.Address | null;
700
+ transactionIndex: number | null;
701
+ typeHex: viem.Hex | null;
702
+ v: bigint;
703
+ value: bigint;
704
+ yParity: number;
705
+ accessList: viem.AccessList;
706
+ authorizationList: viem.SignedAuthorizationList;
707
+ blobVersionedHashes?: undefined | undefined;
708
+ chainId: number;
709
+ type: "eip7702";
710
+ gasPrice?: undefined | undefined;
711
+ maxFeePerBlobGas?: undefined | undefined;
712
+ maxFeePerGas: bigint;
713
+ maxPriorityFeePerGas: bigint;
714
+ isSystemTx?: undefined | undefined;
715
+ mint?: undefined | undefined;
716
+ sourceHash?: undefined | undefined;
717
+ }) & {};
718
+ type: "transaction";
719
+ };
720
+ readonly transactionReceipt: {
721
+ exclude: [] | undefined;
722
+ format: (args: viem_chains.OpStackRpcTransactionReceipt, action?: string | undefined) => {
723
+ blobGasPrice?: bigint | undefined;
724
+ blobGasUsed?: bigint | undefined;
725
+ blockHash: viem.Hash;
726
+ blockNumber: bigint;
727
+ blockTimestamp?: bigint | undefined;
728
+ contractAddress: abitype.Address | null | undefined;
729
+ cumulativeGasUsed: bigint;
730
+ effectiveGasPrice: bigint;
731
+ from: abitype.Address;
732
+ gasUsed: bigint;
733
+ logs: viem.Log<bigint, number, false>[];
734
+ logsBloom: viem.Hex;
735
+ root?: `0x${string}` | undefined;
736
+ status: "success" | "reverted";
737
+ to: abitype.Address | null;
738
+ transactionHash: viem.Hash;
739
+ transactionIndex: number;
740
+ type: viem.TransactionType;
741
+ l1GasPrice: bigint | null;
742
+ l1GasUsed: bigint | null;
743
+ l1Fee: bigint | null;
744
+ l1FeeScalar: number | null;
745
+ } & {};
746
+ type: "transactionReceipt";
747
+ };
748
+ };
749
+ prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
750
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
751
+ }) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
752
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
753
+ }) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
754
+ runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
755
+ }] | undefined;
756
+ serializers: {
757
+ readonly transaction: typeof viem_chains.serializeTransactionOpStack;
758
+ };
759
+ verifyHash?: ((client: viem.Client, parameters: viem.VerifyHashActionParameters) => Promise<viem.VerifyHashActionReturnType>) | undefined;
760
+ readonly network: "base-sepolia";
761
+ };
762
+ readonly hardhat: {
763
+ blockExplorers?: {
764
+ [key: string]: {
765
+ name: string;
766
+ url: string;
767
+ apiUrl?: string | undefined;
768
+ };
769
+ default: {
770
+ name: string;
771
+ url: string;
772
+ apiUrl?: string | undefined;
773
+ };
774
+ } | undefined | undefined;
775
+ blockTime?: number | undefined | undefined;
776
+ contracts?: {
777
+ [x: string]: viem.ChainContract | {
778
+ [sourceId: number]: viem.ChainContract | undefined;
779
+ } | undefined;
780
+ ensRegistry?: viem.ChainContract | undefined;
781
+ ensUniversalResolver?: viem.ChainContract | undefined;
782
+ multicall3?: viem.ChainContract | undefined;
783
+ erc6492Verifier?: viem.ChainContract | undefined;
784
+ } | undefined;
785
+ ensTlds?: readonly string[] | undefined;
786
+ id: 31337;
787
+ name: "Hardhat";
788
+ nativeCurrency: {
789
+ readonly decimals: 18;
790
+ readonly name: "Ether";
791
+ readonly symbol: "ETH";
792
+ };
793
+ experimental_preconfirmationTime?: number | undefined | undefined;
794
+ rpcUrls: {
795
+ readonly default: {
796
+ readonly http: readonly ["http://127.0.0.1:8545"];
797
+ };
798
+ };
799
+ sourceId?: number | undefined | undefined;
800
+ testnet?: boolean | undefined | undefined;
801
+ custom?: Record<string, unknown> | undefined;
802
+ extendSchema?: Record<string, unknown> | undefined;
803
+ fees?: viem.ChainFees<undefined> | undefined;
804
+ formatters?: undefined;
805
+ prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
806
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
807
+ }) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
808
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
809
+ }) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
810
+ runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
811
+ }] | undefined;
812
+ serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
813
+ verifyHash?: ((client: viem.Client, parameters: viem.VerifyHashActionParameters) => Promise<viem.VerifyHashActionReturnType>) | undefined;
814
+ };
815
+ };
816
+ type AroChainLabel = keyof typeof aroChains;
817
+ /** Map from chainId → viem chain. */
818
+ declare const chainById: Record<AroChainId, Chain>;
819
+ /**
820
+ * The chain we treat as the production deployment target. Sepolia today;
821
+ * flip to `base` or `mainnet` once the contracts are deployed there.
822
+ */
823
+ declare const DEFAULT_CHAIN: Chain;
824
+ declare function getChain(chainId: AroChainId): Chain;
825
+
826
+ export { type AroChainLabel, DEFAULT_CHAIN, aroChains, chainById, getChain };