@fangorn-network/sdk 2026.3.11

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 (71) hide show
  1. package/LICENSE.md +20 -0
  2. package/README.md +276 -0
  3. package/lib/builders/a2aCardBuilder.d.ts +28 -0
  4. package/lib/builders/a2aCardBuilder.js +104 -0
  5. package/lib/cli/cli.d.ts +2 -0
  6. package/lib/cli/cli.js +500 -0
  7. package/lib/cli/index.d.ts +738 -0
  8. package/lib/cli/index.js +36 -0
  9. package/lib/cli/registry.d.ts +29 -0
  10. package/lib/cli/registry.js +53 -0
  11. package/lib/config.d.ts +761 -0
  12. package/lib/config.js +46 -0
  13. package/lib/deployContract.d.ts +23 -0
  14. package/lib/deployContract.js +78 -0
  15. package/lib/fangorn.d.ts +59 -0
  16. package/lib/fangorn.js +145 -0
  17. package/lib/index.d.ts +9 -0
  18. package/lib/index.js +11 -0
  19. package/lib/interface/datasource-registry/abi.d.ts +97 -0
  20. package/lib/interface/datasource-registry/abi.js +110 -0
  21. package/lib/interface/datasource-registry/dataSourceRegistry.d.ts +24 -0
  22. package/lib/interface/datasource-registry/dataSourceRegistry.js +81 -0
  23. package/lib/interface/index.d.ts +3 -0
  24. package/lib/interface/index.js +4 -0
  25. package/lib/interface/manifest.d.ts +7 -0
  26. package/lib/interface/manifest.js +10 -0
  27. package/lib/interface/settlement-tracker/abi.d.ts +26 -0
  28. package/lib/interface/settlement-tracker/abi.js +88 -0
  29. package/lib/interface/settlement-tracker/settlementTracker.d.ts +32 -0
  30. package/lib/interface/settlement-tracker/settlementTracker.js +64 -0
  31. package/lib/modules/encryption/actions.d.ts +4 -0
  32. package/lib/modules/encryption/actions.js +18 -0
  33. package/lib/modules/encryption/aes.d.ts +10 -0
  34. package/lib/modules/encryption/aes.js +51 -0
  35. package/lib/modules/encryption/index.d.ts +27 -0
  36. package/lib/modules/encryption/index.js +3 -0
  37. package/lib/modules/encryption/lit.d.ts +36 -0
  38. package/lib/modules/encryption/lit.js +156 -0
  39. package/lib/modules/encryption/rand.d.ts +5 -0
  40. package/lib/modules/encryption/rand.js +16 -0
  41. package/lib/modules/encryption/types.d.ts +55 -0
  42. package/lib/modules/encryption/types.js +1 -0
  43. package/lib/modules/gadgets/acc/gadgets.d.ts +7 -0
  44. package/lib/modules/gadgets/acc/gadgets.js +10 -0
  45. package/lib/modules/gadgets/acc.d.ts +15 -0
  46. package/lib/modules/gadgets/acc.js +24 -0
  47. package/lib/modules/gadgets/builder.d.ts +1 -0
  48. package/lib/modules/gadgets/builder.js +1 -0
  49. package/lib/modules/gadgets/index.d.ts +2 -0
  50. package/lib/modules/gadgets/index.js +1 -0
  51. package/lib/modules/gadgets/payment.d.ts +23 -0
  52. package/lib/modules/gadgets/payment.js +88 -0
  53. package/lib/modules/gadgets/types.d.ts +15 -0
  54. package/lib/modules/gadgets/types.js +1 -0
  55. package/lib/providers/storage/index.d.ts +10 -0
  56. package/lib/providers/storage/index.js +3 -0
  57. package/lib/providers/storage/pinata/index.d.ts +12 -0
  58. package/lib/providers/storage/pinata/index.js +26 -0
  59. package/lib/providers/storage/s3/index.d.ts +1 -0
  60. package/lib/providers/storage/s3/index.js +1 -0
  61. package/lib/test/index.d.ts +7 -0
  62. package/lib/test/index.js +25 -0
  63. package/lib/test/test-gadget.d.ts +7 -0
  64. package/lib/test/test-gadget.js +10 -0
  65. package/lib/test/testbed.d.ts +43 -0
  66. package/lib/test/testbed.js +174 -0
  67. package/lib/types/index.d.ts +43 -0
  68. package/lib/types/index.js +12 -0
  69. package/lib/utils/index.d.ts +12 -0
  70. package/lib/utils/index.js +43 -0
  71. package/package.json +83 -0
@@ -0,0 +1,738 @@
1
+ import "./cli.js";
2
+ import * as viem_chains9 from "viem/chains";
3
+ import * as viem173 from "viem";
4
+
5
+ //#region src/cli/index.d.ts
6
+ declare const getChain: (chainStr: string) => {
7
+ blockExplorers: {
8
+ readonly default: {
9
+ readonly name: "Arbiscan";
10
+ readonly url: "https://sepolia.arbiscan.io";
11
+ readonly apiUrl: "https://api-sepolia.arbiscan.io/api";
12
+ };
13
+ };
14
+ blockTime: 250;
15
+ contracts: {
16
+ readonly multicall3: {
17
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
18
+ readonly blockCreated: 81930;
19
+ };
20
+ };
21
+ ensTlds?: readonly string[] | undefined;
22
+ id: 421614;
23
+ name: "Arbitrum Sepolia";
24
+ nativeCurrency: {
25
+ readonly name: "Arbitrum Sepolia Ether";
26
+ readonly symbol: "ETH";
27
+ readonly decimals: 18;
28
+ };
29
+ experimental_preconfirmationTime?: number | undefined | undefined;
30
+ rpcUrls: {
31
+ readonly default: {
32
+ readonly http: readonly ["https://sepolia-rollup.arbitrum.io/rpc"];
33
+ };
34
+ };
35
+ sourceId?: number | undefined | undefined;
36
+ testnet: true;
37
+ custom?: Record<string, unknown> | undefined;
38
+ extendSchema?: Record<string, unknown> | undefined;
39
+ fees?: viem173.ChainFees<undefined> | undefined;
40
+ formatters?: undefined;
41
+ prepareTransactionRequest?: ((args: viem173.PrepareTransactionRequestParameters, options: {
42
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
43
+ }) => Promise<viem173.PrepareTransactionRequestParameters>) | [fn: ((args: viem173.PrepareTransactionRequestParameters, options: {
44
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
45
+ }) => Promise<viem173.PrepareTransactionRequestParameters>) | undefined, options: {
46
+ runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
47
+ }] | undefined;
48
+ serializers?: viem173.ChainSerializers<undefined, viem173.TransactionSerializable> | undefined;
49
+ verifyHash?: ((client: viem173.Client, parameters: viem173.VerifyHashActionParameters) => Promise<viem173.VerifyHashActionReturnType>) | undefined;
50
+ } | {
51
+ blockExplorers: {
52
+ readonly default: {
53
+ readonly name: "Basescan";
54
+ readonly url: "https://sepolia.basescan.org";
55
+ readonly apiUrl: "https://api-sepolia.basescan.org/api";
56
+ };
57
+ };
58
+ blockTime: 2000;
59
+ contracts: {
60
+ readonly disputeGameFactory: {
61
+ readonly 11155111: {
62
+ readonly address: "0xd6E6dBf4F7EA0ac412fD8b65ED297e64BB7a06E1";
63
+ };
64
+ };
65
+ readonly l2OutputOracle: {
66
+ readonly 11155111: {
67
+ readonly address: "0x84457ca9D0163FbC4bbfe4Dfbb20ba46e48DF254";
68
+ };
69
+ };
70
+ readonly portal: {
71
+ readonly 11155111: {
72
+ readonly address: "0x49f53e41452c74589e85ca1677426ba426459e85";
73
+ readonly blockCreated: 4446677;
74
+ };
75
+ };
76
+ readonly l1StandardBridge: {
77
+ readonly 11155111: {
78
+ readonly address: "0xfd0Bf71F60660E2f608ed56e1659C450eB113120";
79
+ readonly blockCreated: 4446677;
80
+ };
81
+ };
82
+ readonly multicall3: {
83
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
84
+ readonly blockCreated: 1059647;
85
+ };
86
+ readonly gasPriceOracle: {
87
+ readonly address: "0x420000000000000000000000000000000000000F";
88
+ };
89
+ readonly l1Block: {
90
+ readonly address: "0x4200000000000000000000000000000000000015";
91
+ };
92
+ readonly l2CrossDomainMessenger: {
93
+ readonly address: "0x4200000000000000000000000000000000000007";
94
+ };
95
+ readonly l2Erc721Bridge: {
96
+ readonly address: "0x4200000000000000000000000000000000000014";
97
+ };
98
+ readonly l2StandardBridge: {
99
+ readonly address: "0x4200000000000000000000000000000000000010";
100
+ };
101
+ readonly l2ToL1MessagePasser: {
102
+ readonly address: "0x4200000000000000000000000000000000000016";
103
+ };
104
+ };
105
+ ensTlds?: readonly string[] | undefined;
106
+ id: 84532;
107
+ name: "Base Sepolia";
108
+ nativeCurrency: {
109
+ readonly name: "Sepolia Ether";
110
+ readonly symbol: "ETH";
111
+ readonly decimals: 18;
112
+ };
113
+ experimental_preconfirmationTime?: number | undefined | undefined;
114
+ rpcUrls: {
115
+ readonly default: {
116
+ readonly http: readonly ["https://sepolia.base.org"];
117
+ };
118
+ };
119
+ sourceId: 11155111;
120
+ testnet: true;
121
+ custom?: Record<string, unknown> | undefined;
122
+ extendSchema?: Record<string, unknown> | undefined;
123
+ fees?: viem173.ChainFees<undefined> | undefined;
124
+ formatters: {
125
+ readonly block: {
126
+ exclude: [] | undefined;
127
+ format: (args: viem_chains9.OpStackRpcBlock, action?: string | undefined) => {
128
+ baseFeePerGas: bigint | null;
129
+ blobGasUsed: bigint;
130
+ difficulty: bigint;
131
+ excessBlobGas: bigint;
132
+ extraData: viem173.Hex;
133
+ gasLimit: bigint;
134
+ gasUsed: bigint;
135
+ hash: `0x${string}` | null;
136
+ logsBloom: `0x${string}` | null;
137
+ miner: viem173.Address;
138
+ mixHash: viem173.Hash;
139
+ nonce: `0x${string}` | null;
140
+ number: bigint | null;
141
+ parentBeaconBlockRoot?: `0x${string}` | undefined;
142
+ parentHash: viem173.Hash;
143
+ receiptsRoot: viem173.Hex;
144
+ sealFields: viem173.Hex[];
145
+ sha3Uncles: viem173.Hash;
146
+ size: bigint;
147
+ stateRoot: viem173.Hash;
148
+ timestamp: bigint;
149
+ totalDifficulty: bigint | null;
150
+ transactions: `0x${string}`[] | viem_chains9.OpStackTransaction<boolean>[];
151
+ transactionsRoot: viem173.Hash;
152
+ uncles: viem173.Hash[];
153
+ withdrawals?: viem173.Withdrawal[] | undefined | undefined;
154
+ withdrawalsRoot?: `0x${string}` | undefined;
155
+ } & {};
156
+ type: "block";
157
+ };
158
+ readonly transaction: {
159
+ exclude: [] | undefined;
160
+ format: (args: viem_chains9.OpStackRpcTransaction, action?: string | undefined) => ({
161
+ blockHash: `0x${string}` | null;
162
+ blockNumber: bigint | null;
163
+ from: viem173.Address;
164
+ gas: bigint;
165
+ hash: viem173.Hash;
166
+ input: viem173.Hex;
167
+ nonce: number;
168
+ r: viem173.Hex;
169
+ s: viem173.Hex;
170
+ to: viem173.Address | null;
171
+ transactionIndex: number | null;
172
+ typeHex: viem173.Hex | null;
173
+ v: bigint;
174
+ value: bigint;
175
+ yParity: number;
176
+ gasPrice?: undefined | undefined;
177
+ maxFeePerBlobGas?: undefined | undefined;
178
+ maxFeePerGas: bigint;
179
+ maxPriorityFeePerGas: bigint;
180
+ isSystemTx?: boolean;
181
+ mint?: bigint | undefined | undefined;
182
+ sourceHash: viem173.Hex;
183
+ type: "deposit";
184
+ } | {
185
+ r: viem173.Hex;
186
+ s: viem173.Hex;
187
+ v: bigint;
188
+ to: viem173.Address | null;
189
+ from: viem173.Address;
190
+ gas: bigint;
191
+ nonce: number;
192
+ value: bigint;
193
+ blockHash: `0x${string}` | null;
194
+ blockNumber: bigint | null;
195
+ hash: viem173.Hash;
196
+ input: viem173.Hex;
197
+ transactionIndex: number | null;
198
+ typeHex: viem173.Hex | null;
199
+ accessList?: undefined | undefined;
200
+ authorizationList?: undefined | undefined;
201
+ blobVersionedHashes?: undefined | undefined;
202
+ chainId?: number | undefined;
203
+ yParity?: undefined | undefined;
204
+ type: "legacy";
205
+ gasPrice: bigint;
206
+ maxFeePerBlobGas?: undefined | undefined;
207
+ maxFeePerGas?: undefined | undefined;
208
+ maxPriorityFeePerGas?: undefined | undefined;
209
+ isSystemTx?: undefined | undefined;
210
+ mint?: undefined | undefined;
211
+ sourceHash?: undefined | undefined;
212
+ } | {
213
+ blockHash: `0x${string}` | null;
214
+ blockNumber: bigint | null;
215
+ from: viem173.Address;
216
+ gas: bigint;
217
+ hash: viem173.Hash;
218
+ input: viem173.Hex;
219
+ nonce: number;
220
+ r: viem173.Hex;
221
+ s: viem173.Hex;
222
+ to: viem173.Address | null;
223
+ transactionIndex: number | null;
224
+ typeHex: viem173.Hex | null;
225
+ v: bigint;
226
+ value: bigint;
227
+ yParity: number;
228
+ accessList: viem173.AccessList;
229
+ authorizationList?: undefined | undefined;
230
+ blobVersionedHashes?: undefined | undefined;
231
+ chainId: number;
232
+ type: "eip2930";
233
+ gasPrice: bigint;
234
+ maxFeePerBlobGas?: undefined | undefined;
235
+ maxFeePerGas?: undefined | undefined;
236
+ maxPriorityFeePerGas?: undefined | undefined;
237
+ isSystemTx?: undefined | undefined;
238
+ mint?: undefined | undefined;
239
+ sourceHash?: undefined | undefined;
240
+ } | {
241
+ blockHash: `0x${string}` | null;
242
+ blockNumber: bigint | null;
243
+ from: viem173.Address;
244
+ gas: bigint;
245
+ hash: viem173.Hash;
246
+ input: viem173.Hex;
247
+ nonce: number;
248
+ r: viem173.Hex;
249
+ s: viem173.Hex;
250
+ to: viem173.Address | null;
251
+ transactionIndex: number | null;
252
+ typeHex: viem173.Hex | null;
253
+ v: bigint;
254
+ value: bigint;
255
+ yParity: number;
256
+ accessList: viem173.AccessList;
257
+ authorizationList?: undefined | undefined;
258
+ blobVersionedHashes?: undefined | undefined;
259
+ chainId: number;
260
+ type: "eip1559";
261
+ gasPrice?: undefined | undefined;
262
+ maxFeePerBlobGas?: undefined | undefined;
263
+ maxFeePerGas: bigint;
264
+ maxPriorityFeePerGas: bigint;
265
+ isSystemTx?: undefined | undefined;
266
+ mint?: undefined | undefined;
267
+ sourceHash?: undefined | undefined;
268
+ } | {
269
+ blockHash: `0x${string}` | null;
270
+ blockNumber: bigint | null;
271
+ from: viem173.Address;
272
+ gas: bigint;
273
+ hash: viem173.Hash;
274
+ input: viem173.Hex;
275
+ nonce: number;
276
+ r: viem173.Hex;
277
+ s: viem173.Hex;
278
+ to: viem173.Address | null;
279
+ transactionIndex: number | null;
280
+ typeHex: viem173.Hex | null;
281
+ v: bigint;
282
+ value: bigint;
283
+ yParity: number;
284
+ accessList: viem173.AccessList;
285
+ authorizationList?: undefined | undefined;
286
+ blobVersionedHashes: readonly viem173.Hex[];
287
+ chainId: number;
288
+ type: "eip4844";
289
+ gasPrice?: undefined | undefined;
290
+ maxFeePerBlobGas: bigint;
291
+ maxFeePerGas: bigint;
292
+ maxPriorityFeePerGas: bigint;
293
+ isSystemTx?: undefined | undefined;
294
+ mint?: undefined | undefined;
295
+ sourceHash?: undefined | undefined;
296
+ } | {
297
+ blockHash: `0x${string}` | null;
298
+ blockNumber: bigint | null;
299
+ from: viem173.Address;
300
+ gas: bigint;
301
+ hash: viem173.Hash;
302
+ input: viem173.Hex;
303
+ nonce: number;
304
+ r: viem173.Hex;
305
+ s: viem173.Hex;
306
+ to: viem173.Address | null;
307
+ transactionIndex: number | null;
308
+ typeHex: viem173.Hex | null;
309
+ v: bigint;
310
+ value: bigint;
311
+ yParity: number;
312
+ accessList: viem173.AccessList;
313
+ authorizationList: viem173.SignedAuthorizationList;
314
+ blobVersionedHashes?: undefined | undefined;
315
+ chainId: number;
316
+ type: "eip7702";
317
+ gasPrice?: undefined | undefined;
318
+ maxFeePerBlobGas?: undefined | undefined;
319
+ maxFeePerGas: bigint;
320
+ maxPriorityFeePerGas: bigint;
321
+ isSystemTx?: undefined | undefined;
322
+ mint?: undefined | undefined;
323
+ sourceHash?: undefined | undefined;
324
+ }) & {};
325
+ type: "transaction";
326
+ };
327
+ readonly transactionReceipt: {
328
+ exclude: [] | undefined;
329
+ format: (args: viem_chains9.OpStackRpcTransactionReceipt, action?: string | undefined) => {
330
+ blobGasPrice?: bigint | undefined;
331
+ blobGasUsed?: bigint | undefined;
332
+ blockHash: viem173.Hash;
333
+ blockNumber: bigint;
334
+ blockTimestamp?: bigint | undefined;
335
+ contractAddress: viem173.Address | null | undefined;
336
+ cumulativeGasUsed: bigint;
337
+ effectiveGasPrice: bigint;
338
+ from: viem173.Address;
339
+ gasUsed: bigint;
340
+ logs: viem173.Log<bigint, number, false>[];
341
+ logsBloom: viem173.Hex;
342
+ root?: `0x${string}` | undefined;
343
+ status: "success" | "reverted";
344
+ to: viem173.Address | null;
345
+ transactionHash: viem173.Hash;
346
+ transactionIndex: number;
347
+ type: viem173.TransactionType;
348
+ l1GasPrice: bigint | null;
349
+ l1GasUsed: bigint | null;
350
+ l1Fee: bigint | null;
351
+ l1FeeScalar: number | null;
352
+ } & {};
353
+ type: "transactionReceipt";
354
+ };
355
+ };
356
+ prepareTransactionRequest?: ((args: viem173.PrepareTransactionRequestParameters, options: {
357
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
358
+ }) => Promise<viem173.PrepareTransactionRequestParameters>) | [fn: ((args: viem173.PrepareTransactionRequestParameters, options: {
359
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
360
+ }) => Promise<viem173.PrepareTransactionRequestParameters>) | undefined, options: {
361
+ runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
362
+ }] | undefined;
363
+ serializers: {
364
+ readonly transaction: typeof viem_chains9.serializeTransactionOpStack;
365
+ };
366
+ verifyHash?: ((client: viem173.Client, parameters: viem173.VerifyHashActionParameters) => Promise<viem173.VerifyHashActionReturnType>) | undefined;
367
+ readonly network: "base-sepolia";
368
+ };
369
+ declare const handleCancel: (value: unknown) => void;
370
+ declare const selectChain: () => Promise<{
371
+ blockExplorers: {
372
+ readonly default: {
373
+ readonly name: "Arbiscan";
374
+ readonly url: "https://sepolia.arbiscan.io";
375
+ readonly apiUrl: "https://api-sepolia.arbiscan.io/api";
376
+ };
377
+ };
378
+ blockTime: 250;
379
+ contracts: {
380
+ readonly multicall3: {
381
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
382
+ readonly blockCreated: 81930;
383
+ };
384
+ };
385
+ ensTlds?: readonly string[] | undefined;
386
+ id: 421614;
387
+ name: "Arbitrum Sepolia";
388
+ nativeCurrency: {
389
+ readonly name: "Arbitrum Sepolia Ether";
390
+ readonly symbol: "ETH";
391
+ readonly decimals: 18;
392
+ };
393
+ experimental_preconfirmationTime?: number | undefined | undefined;
394
+ rpcUrls: {
395
+ readonly default: {
396
+ readonly http: readonly ["https://sepolia-rollup.arbitrum.io/rpc"];
397
+ };
398
+ };
399
+ sourceId?: number | undefined | undefined;
400
+ testnet: true;
401
+ custom?: Record<string, unknown> | undefined;
402
+ extendSchema?: Record<string, unknown> | undefined;
403
+ fees?: viem173.ChainFees<undefined> | undefined;
404
+ formatters?: undefined;
405
+ prepareTransactionRequest?: ((args: viem173.PrepareTransactionRequestParameters, options: {
406
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
407
+ }) => Promise<viem173.PrepareTransactionRequestParameters>) | [fn: ((args: viem173.PrepareTransactionRequestParameters, options: {
408
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
409
+ }) => Promise<viem173.PrepareTransactionRequestParameters>) | undefined, options: {
410
+ runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
411
+ }] | undefined;
412
+ serializers?: viem173.ChainSerializers<undefined, viem173.TransactionSerializable> | undefined;
413
+ verifyHash?: ((client: viem173.Client, parameters: viem173.VerifyHashActionParameters) => Promise<viem173.VerifyHashActionReturnType>) | undefined;
414
+ } | {
415
+ blockExplorers: {
416
+ readonly default: {
417
+ readonly name: "Basescan";
418
+ readonly url: "https://sepolia.basescan.org";
419
+ readonly apiUrl: "https://api-sepolia.basescan.org/api";
420
+ };
421
+ };
422
+ blockTime: 2000;
423
+ contracts: {
424
+ readonly disputeGameFactory: {
425
+ readonly 11155111: {
426
+ readonly address: "0xd6E6dBf4F7EA0ac412fD8b65ED297e64BB7a06E1";
427
+ };
428
+ };
429
+ readonly l2OutputOracle: {
430
+ readonly 11155111: {
431
+ readonly address: "0x84457ca9D0163FbC4bbfe4Dfbb20ba46e48DF254";
432
+ };
433
+ };
434
+ readonly portal: {
435
+ readonly 11155111: {
436
+ readonly address: "0x49f53e41452c74589e85ca1677426ba426459e85";
437
+ readonly blockCreated: 4446677;
438
+ };
439
+ };
440
+ readonly l1StandardBridge: {
441
+ readonly 11155111: {
442
+ readonly address: "0xfd0Bf71F60660E2f608ed56e1659C450eB113120";
443
+ readonly blockCreated: 4446677;
444
+ };
445
+ };
446
+ readonly multicall3: {
447
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
448
+ readonly blockCreated: 1059647;
449
+ };
450
+ readonly gasPriceOracle: {
451
+ readonly address: "0x420000000000000000000000000000000000000F";
452
+ };
453
+ readonly l1Block: {
454
+ readonly address: "0x4200000000000000000000000000000000000015";
455
+ };
456
+ readonly l2CrossDomainMessenger: {
457
+ readonly address: "0x4200000000000000000000000000000000000007";
458
+ };
459
+ readonly l2Erc721Bridge: {
460
+ readonly address: "0x4200000000000000000000000000000000000014";
461
+ };
462
+ readonly l2StandardBridge: {
463
+ readonly address: "0x4200000000000000000000000000000000000010";
464
+ };
465
+ readonly l2ToL1MessagePasser: {
466
+ readonly address: "0x4200000000000000000000000000000000000016";
467
+ };
468
+ };
469
+ ensTlds?: readonly string[] | undefined;
470
+ id: 84532;
471
+ name: "Base Sepolia";
472
+ nativeCurrency: {
473
+ readonly name: "Sepolia Ether";
474
+ readonly symbol: "ETH";
475
+ readonly decimals: 18;
476
+ };
477
+ experimental_preconfirmationTime?: number | undefined | undefined;
478
+ rpcUrls: {
479
+ readonly default: {
480
+ readonly http: readonly ["https://sepolia.base.org"];
481
+ };
482
+ };
483
+ sourceId: 11155111;
484
+ testnet: true;
485
+ custom?: Record<string, unknown> | undefined;
486
+ extendSchema?: Record<string, unknown> | undefined;
487
+ fees?: viem173.ChainFees<undefined> | undefined;
488
+ formatters: {
489
+ readonly block: {
490
+ exclude: [] | undefined;
491
+ format: (args: viem_chains9.OpStackRpcBlock, action?: string | undefined) => {
492
+ baseFeePerGas: bigint | null;
493
+ blobGasUsed: bigint;
494
+ difficulty: bigint;
495
+ excessBlobGas: bigint;
496
+ extraData: viem173.Hex;
497
+ gasLimit: bigint;
498
+ gasUsed: bigint;
499
+ hash: `0x${string}` | null;
500
+ logsBloom: `0x${string}` | null;
501
+ miner: viem173.Address;
502
+ mixHash: viem173.Hash;
503
+ nonce: `0x${string}` | null;
504
+ number: bigint | null;
505
+ parentBeaconBlockRoot?: `0x${string}` | undefined;
506
+ parentHash: viem173.Hash;
507
+ receiptsRoot: viem173.Hex;
508
+ sealFields: viem173.Hex[];
509
+ sha3Uncles: viem173.Hash;
510
+ size: bigint;
511
+ stateRoot: viem173.Hash;
512
+ timestamp: bigint;
513
+ totalDifficulty: bigint | null;
514
+ transactions: `0x${string}`[] | viem_chains9.OpStackTransaction<boolean>[];
515
+ transactionsRoot: viem173.Hash;
516
+ uncles: viem173.Hash[];
517
+ withdrawals?: viem173.Withdrawal[] | undefined | undefined;
518
+ withdrawalsRoot?: `0x${string}` | undefined;
519
+ } & {};
520
+ type: "block";
521
+ };
522
+ readonly transaction: {
523
+ exclude: [] | undefined;
524
+ format: (args: viem_chains9.OpStackRpcTransaction, action?: string | undefined) => ({
525
+ blockHash: `0x${string}` | null;
526
+ blockNumber: bigint | null;
527
+ from: viem173.Address;
528
+ gas: bigint;
529
+ hash: viem173.Hash;
530
+ input: viem173.Hex;
531
+ nonce: number;
532
+ r: viem173.Hex;
533
+ s: viem173.Hex;
534
+ to: viem173.Address | null;
535
+ transactionIndex: number | null;
536
+ typeHex: viem173.Hex | null;
537
+ v: bigint;
538
+ value: bigint;
539
+ yParity: number;
540
+ gasPrice?: undefined | undefined;
541
+ maxFeePerBlobGas?: undefined | undefined;
542
+ maxFeePerGas: bigint;
543
+ maxPriorityFeePerGas: bigint;
544
+ isSystemTx?: boolean;
545
+ mint?: bigint | undefined | undefined;
546
+ sourceHash: viem173.Hex;
547
+ type: "deposit";
548
+ } | {
549
+ r: viem173.Hex;
550
+ s: viem173.Hex;
551
+ v: bigint;
552
+ to: viem173.Address | null;
553
+ from: viem173.Address;
554
+ gas: bigint;
555
+ nonce: number;
556
+ value: bigint;
557
+ blockHash: `0x${string}` | null;
558
+ blockNumber: bigint | null;
559
+ hash: viem173.Hash;
560
+ input: viem173.Hex;
561
+ transactionIndex: number | null;
562
+ typeHex: viem173.Hex | null;
563
+ accessList?: undefined | undefined;
564
+ authorizationList?: undefined | undefined;
565
+ blobVersionedHashes?: undefined | undefined;
566
+ chainId?: number | undefined;
567
+ yParity?: undefined | undefined;
568
+ type: "legacy";
569
+ gasPrice: bigint;
570
+ maxFeePerBlobGas?: undefined | undefined;
571
+ maxFeePerGas?: undefined | undefined;
572
+ maxPriorityFeePerGas?: undefined | undefined;
573
+ isSystemTx?: undefined | undefined;
574
+ mint?: undefined | undefined;
575
+ sourceHash?: undefined | undefined;
576
+ } | {
577
+ blockHash: `0x${string}` | null;
578
+ blockNumber: bigint | null;
579
+ from: viem173.Address;
580
+ gas: bigint;
581
+ hash: viem173.Hash;
582
+ input: viem173.Hex;
583
+ nonce: number;
584
+ r: viem173.Hex;
585
+ s: viem173.Hex;
586
+ to: viem173.Address | null;
587
+ transactionIndex: number | null;
588
+ typeHex: viem173.Hex | null;
589
+ v: bigint;
590
+ value: bigint;
591
+ yParity: number;
592
+ accessList: viem173.AccessList;
593
+ authorizationList?: undefined | undefined;
594
+ blobVersionedHashes?: undefined | undefined;
595
+ chainId: number;
596
+ type: "eip2930";
597
+ gasPrice: bigint;
598
+ maxFeePerBlobGas?: undefined | undefined;
599
+ maxFeePerGas?: undefined | undefined;
600
+ maxPriorityFeePerGas?: undefined | undefined;
601
+ isSystemTx?: undefined | undefined;
602
+ mint?: undefined | undefined;
603
+ sourceHash?: undefined | undefined;
604
+ } | {
605
+ blockHash: `0x${string}` | null;
606
+ blockNumber: bigint | null;
607
+ from: viem173.Address;
608
+ gas: bigint;
609
+ hash: viem173.Hash;
610
+ input: viem173.Hex;
611
+ nonce: number;
612
+ r: viem173.Hex;
613
+ s: viem173.Hex;
614
+ to: viem173.Address | null;
615
+ transactionIndex: number | null;
616
+ typeHex: viem173.Hex | null;
617
+ v: bigint;
618
+ value: bigint;
619
+ yParity: number;
620
+ accessList: viem173.AccessList;
621
+ authorizationList?: undefined | undefined;
622
+ blobVersionedHashes?: undefined | undefined;
623
+ chainId: number;
624
+ type: "eip1559";
625
+ gasPrice?: undefined | undefined;
626
+ maxFeePerBlobGas?: undefined | undefined;
627
+ maxFeePerGas: bigint;
628
+ maxPriorityFeePerGas: bigint;
629
+ isSystemTx?: undefined | undefined;
630
+ mint?: undefined | undefined;
631
+ sourceHash?: undefined | undefined;
632
+ } | {
633
+ blockHash: `0x${string}` | null;
634
+ blockNumber: bigint | null;
635
+ from: viem173.Address;
636
+ gas: bigint;
637
+ hash: viem173.Hash;
638
+ input: viem173.Hex;
639
+ nonce: number;
640
+ r: viem173.Hex;
641
+ s: viem173.Hex;
642
+ to: viem173.Address | null;
643
+ transactionIndex: number | null;
644
+ typeHex: viem173.Hex | null;
645
+ v: bigint;
646
+ value: bigint;
647
+ yParity: number;
648
+ accessList: viem173.AccessList;
649
+ authorizationList?: undefined | undefined;
650
+ blobVersionedHashes: readonly viem173.Hex[];
651
+ chainId: number;
652
+ type: "eip4844";
653
+ gasPrice?: undefined | undefined;
654
+ maxFeePerBlobGas: bigint;
655
+ maxFeePerGas: bigint;
656
+ maxPriorityFeePerGas: bigint;
657
+ isSystemTx?: undefined | undefined;
658
+ mint?: undefined | undefined;
659
+ sourceHash?: undefined | undefined;
660
+ } | {
661
+ blockHash: `0x${string}` | null;
662
+ blockNumber: bigint | null;
663
+ from: viem173.Address;
664
+ gas: bigint;
665
+ hash: viem173.Hash;
666
+ input: viem173.Hex;
667
+ nonce: number;
668
+ r: viem173.Hex;
669
+ s: viem173.Hex;
670
+ to: viem173.Address | null;
671
+ transactionIndex: number | null;
672
+ typeHex: viem173.Hex | null;
673
+ v: bigint;
674
+ value: bigint;
675
+ yParity: number;
676
+ accessList: viem173.AccessList;
677
+ authorizationList: viem173.SignedAuthorizationList;
678
+ blobVersionedHashes?: undefined | undefined;
679
+ chainId: number;
680
+ type: "eip7702";
681
+ gasPrice?: undefined | undefined;
682
+ maxFeePerBlobGas?: undefined | undefined;
683
+ maxFeePerGas: bigint;
684
+ maxPriorityFeePerGas: bigint;
685
+ isSystemTx?: undefined | undefined;
686
+ mint?: undefined | undefined;
687
+ sourceHash?: undefined | undefined;
688
+ }) & {};
689
+ type: "transaction";
690
+ };
691
+ readonly transactionReceipt: {
692
+ exclude: [] | undefined;
693
+ format: (args: viem_chains9.OpStackRpcTransactionReceipt, action?: string | undefined) => {
694
+ blobGasPrice?: bigint | undefined;
695
+ blobGasUsed?: bigint | undefined;
696
+ blockHash: viem173.Hash;
697
+ blockNumber: bigint;
698
+ blockTimestamp?: bigint | undefined;
699
+ contractAddress: viem173.Address | null | undefined;
700
+ cumulativeGasUsed: bigint;
701
+ effectiveGasPrice: bigint;
702
+ from: viem173.Address;
703
+ gasUsed: bigint;
704
+ logs: viem173.Log<bigint, number, false>[];
705
+ logsBloom: viem173.Hex;
706
+ root?: `0x${string}` | undefined;
707
+ status: "success" | "reverted";
708
+ to: viem173.Address | null;
709
+ transactionHash: viem173.Hash;
710
+ transactionIndex: number;
711
+ type: viem173.TransactionType;
712
+ l1GasPrice: bigint | null;
713
+ l1GasUsed: bigint | null;
714
+ l1Fee: bigint | null;
715
+ l1FeeScalar: number | null;
716
+ } & {};
717
+ type: "transactionReceipt";
718
+ };
719
+ };
720
+ prepareTransactionRequest?: ((args: viem173.PrepareTransactionRequestParameters, options: {
721
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
722
+ }) => Promise<viem173.PrepareTransactionRequestParameters>) | [fn: ((args: viem173.PrepareTransactionRequestParameters, options: {
723
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
724
+ }) => Promise<viem173.PrepareTransactionRequestParameters>) | undefined, options: {
725
+ runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
726
+ }] | undefined;
727
+ serializers: {
728
+ readonly transaction: typeof viem_chains9.serializeTransactionOpStack;
729
+ };
730
+ verifyHash?: ((client: viem173.Client, parameters: viem173.VerifyHashActionParameters) => Promise<viem173.VerifyHashActionReturnType>) | undefined;
731
+ readonly network: "base-sepolia";
732
+ }>;
733
+ declare function parseGadgetArg(raw: string): {
734
+ type: string;
735
+ args: string[];
736
+ };
737
+ //#endregion
738
+ export { getChain, handleCancel, parseGadgetArg, selectChain };