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