@fangorn-network/sdk 0.1.6 → 0.2.1

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 (46) hide show
  1. package/README.md +1 -1
  2. package/lib/cli/cli.js +85 -46
  3. package/lib/cli/index.js +1 -1
  4. package/lib/cli/sell.d.ts +2 -2
  5. package/lib/cli/sell.js +14 -8
  6. package/lib/cli/stage.d.ts +21 -3
  7. package/lib/cli/stage.js +110 -24
  8. package/lib/config.d.ts +481 -155
  9. package/lib/config.js +14 -4
  10. package/lib/contracts/data-registry/abi.d.ts +41 -0
  11. package/lib/contracts/data-registry/abi.js +46 -0
  12. package/lib/contracts/data-registry/index.d.ts +45 -3
  13. package/lib/contracts/data-registry/index.js +69 -14
  14. package/lib/contracts/data-registry/mmr.d.ts +9 -2
  15. package/lib/contracts/data-registry/mmr.js +6 -2
  16. package/lib/contracts/index.d.ts +2 -2
  17. package/lib/contracts/index.js +2 -2
  18. package/lib/contracts/write.d.ts +17 -2
  19. package/lib/contracts/write.js +63 -7
  20. package/lib/crypto/encryption.js +3 -0
  21. package/lib/crypto/paid.d.ts +1 -1
  22. package/lib/crypto/paid.js +4 -1
  23. package/lib/engine/index.d.ts +9 -2
  24. package/lib/engine/index.js +33 -17
  25. package/lib/engine/records.d.ts +9 -1
  26. package/lib/engine/records.js +32 -6
  27. package/lib/erc8004.d.ts +1 -1
  28. package/lib/erc8004.js +12 -5
  29. package/lib/fangorn.d.ts +11 -1
  30. package/lib/fangorn.js +26 -16
  31. package/lib/feed.d.ts +23 -2
  32. package/lib/feed.js +43 -6
  33. package/lib/index.d.ts +3 -3
  34. package/lib/index.js +4 -4
  35. package/lib/providers/storage/index.js +1 -1
  36. package/lib/providers/storage/pinata.js +14 -6
  37. package/lib/providers/storage/signed-url.d.ts +1 -1
  38. package/lib/providers/storage/signed-url.js +23 -9
  39. package/lib/providers/storage/types.d.ts +9 -1
  40. package/lib/providers/storage/types.js +54 -1
  41. package/lib/providers/storage/utils.d.ts +3 -1
  42. package/lib/providers/storage/utils.js +3 -3
  43. package/lib/test/mem-registry.d.ts +3 -3
  44. package/lib/test/mem-registry.js +7 -5
  45. package/lib/test/testbed.d.ts +5230 -5230
  46. package/package.json +6 -3
package/lib/config.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as viem_chains0 from "viem/chains";
2
- import * as viem5838 from "viem";
2
+ import * as viem0 from "viem";
3
3
  import { Chain, Hex } from "viem";
4
4
 
5
5
  //#region src/config.d.ts
@@ -99,7 +99,7 @@ declare const BaseSepoliaConfig: {
99
99
  testnet: true;
100
100
  custom?: Record<string, unknown> | undefined;
101
101
  extendSchema?: Record<string, unknown> | undefined;
102
- fees?: viem5838.ChainFees<undefined> | undefined;
102
+ fees?: viem0.ChainFees<undefined> | undefined;
103
103
  formatters: {
104
104
  readonly block: {
105
105
  exclude: [] | undefined;
@@ -108,28 +108,28 @@ declare const BaseSepoliaConfig: {
108
108
  blobGasUsed: bigint;
109
109
  difficulty: bigint;
110
110
  excessBlobGas: bigint;
111
- extraData: viem5838.Hex;
111
+ extraData: viem0.Hex;
112
112
  gasLimit: bigint;
113
113
  gasUsed: bigint;
114
114
  hash: `0x${string}` | null;
115
115
  logsBloom: `0x${string}` | null;
116
- miner: viem5838.Address;
117
- mixHash: viem5838.Hash;
116
+ miner: viem0.Address;
117
+ mixHash: viem0.Hash;
118
118
  nonce: `0x${string}` | null;
119
119
  number: bigint | null;
120
120
  parentBeaconBlockRoot?: `0x${string}` | undefined;
121
- parentHash: viem5838.Hash;
122
- receiptsRoot: viem5838.Hex;
123
- sealFields: viem5838.Hex[];
124
- sha3Uncles: viem5838.Hash;
121
+ parentHash: viem0.Hash;
122
+ receiptsRoot: viem0.Hex;
123
+ sealFields: viem0.Hex[];
124
+ sha3Uncles: viem0.Hash;
125
125
  size: bigint;
126
- stateRoot: viem5838.Hash;
126
+ stateRoot: viem0.Hash;
127
127
  timestamp: bigint;
128
128
  totalDifficulty: bigint | null;
129
129
  transactions: `0x${string}`[] | viem_chains0.OpStackTransaction<boolean>[];
130
- transactionsRoot: viem5838.Hash;
131
- uncles: viem5838.Hash[];
132
- withdrawals?: viem5838.Withdrawal[] | undefined | undefined;
130
+ transactionsRoot: viem0.Hash;
131
+ uncles: viem0.Hash[];
132
+ withdrawals?: viem0.Withdrawal[] | undefined | undefined;
133
133
  withdrawalsRoot?: `0x${string}` | undefined;
134
134
  } & {};
135
135
  type: "block";
@@ -139,16 +139,16 @@ declare const BaseSepoliaConfig: {
139
139
  format: (args: viem_chains0.OpStackRpcTransaction, action?: string | undefined) => ({
140
140
  blockHash: `0x${string}` | null;
141
141
  blockNumber: bigint | null;
142
- from: viem5838.Address;
142
+ from: viem0.Address;
143
143
  gas: bigint;
144
- hash: viem5838.Hash;
145
- input: viem5838.Hex;
144
+ hash: viem0.Hash;
145
+ input: viem0.Hex;
146
146
  nonce: number;
147
- r: viem5838.Hex;
148
- s: viem5838.Hex;
149
- to: viem5838.Address | null;
147
+ r: viem0.Hex;
148
+ s: viem0.Hex;
149
+ to: viem0.Address | null;
150
150
  transactionIndex: number | null;
151
- typeHex: viem5838.Hex | null;
151
+ typeHex: viem0.Hex | null;
152
152
  v: bigint;
153
153
  value: bigint;
154
154
  yParity: number;
@@ -158,23 +158,23 @@ declare const BaseSepoliaConfig: {
158
158
  maxPriorityFeePerGas: bigint;
159
159
  isSystemTx?: boolean;
160
160
  mint?: bigint | undefined | undefined;
161
- sourceHash: viem5838.Hex;
161
+ sourceHash: viem0.Hex;
162
162
  type: "deposit";
163
163
  } | {
164
- r: viem5838.Hex;
165
- s: viem5838.Hex;
164
+ r: viem0.Hex;
165
+ s: viem0.Hex;
166
166
  v: bigint;
167
- to: viem5838.Address | null;
168
- from: viem5838.Address;
167
+ to: viem0.Address | null;
168
+ from: viem0.Address;
169
169
  gas: bigint;
170
170
  nonce: number;
171
171
  value: bigint;
172
172
  blockHash: `0x${string}` | null;
173
173
  blockNumber: bigint | null;
174
- hash: viem5838.Hash;
175
- input: viem5838.Hex;
174
+ hash: viem0.Hash;
175
+ input: viem0.Hex;
176
176
  transactionIndex: number | null;
177
- typeHex: viem5838.Hex | null;
177
+ typeHex: viem0.Hex | null;
178
178
  accessList?: undefined | undefined;
179
179
  authorizationList?: undefined | undefined;
180
180
  blobVersionedHashes?: undefined | undefined;
@@ -191,20 +191,20 @@ declare const BaseSepoliaConfig: {
191
191
  } | {
192
192
  blockHash: `0x${string}` | null;
193
193
  blockNumber: bigint | null;
194
- from: viem5838.Address;
194
+ from: viem0.Address;
195
195
  gas: bigint;
196
- hash: viem5838.Hash;
197
- input: viem5838.Hex;
196
+ hash: viem0.Hash;
197
+ input: viem0.Hex;
198
198
  nonce: number;
199
- r: viem5838.Hex;
200
- s: viem5838.Hex;
201
- to: viem5838.Address | null;
199
+ r: viem0.Hex;
200
+ s: viem0.Hex;
201
+ to: viem0.Address | null;
202
202
  transactionIndex: number | null;
203
- typeHex: viem5838.Hex | null;
203
+ typeHex: viem0.Hex | null;
204
204
  v: bigint;
205
205
  value: bigint;
206
206
  yParity: number;
207
- accessList: viem5838.AccessList;
207
+ accessList: viem0.AccessList;
208
208
  authorizationList?: undefined | undefined;
209
209
  blobVersionedHashes?: undefined | undefined;
210
210
  chainId: number;
@@ -219,20 +219,20 @@ declare const BaseSepoliaConfig: {
219
219
  } | {
220
220
  blockHash: `0x${string}` | null;
221
221
  blockNumber: bigint | null;
222
- from: viem5838.Address;
222
+ from: viem0.Address;
223
223
  gas: bigint;
224
- hash: viem5838.Hash;
225
- input: viem5838.Hex;
224
+ hash: viem0.Hash;
225
+ input: viem0.Hex;
226
226
  nonce: number;
227
- r: viem5838.Hex;
228
- s: viem5838.Hex;
229
- to: viem5838.Address | null;
227
+ r: viem0.Hex;
228
+ s: viem0.Hex;
229
+ to: viem0.Address | null;
230
230
  transactionIndex: number | null;
231
- typeHex: viem5838.Hex | null;
231
+ typeHex: viem0.Hex | null;
232
232
  v: bigint;
233
233
  value: bigint;
234
234
  yParity: number;
235
- accessList: viem5838.AccessList;
235
+ accessList: viem0.AccessList;
236
236
  authorizationList?: undefined | undefined;
237
237
  blobVersionedHashes?: undefined | undefined;
238
238
  chainId: number;
@@ -247,22 +247,22 @@ declare const BaseSepoliaConfig: {
247
247
  } | {
248
248
  blockHash: `0x${string}` | null;
249
249
  blockNumber: bigint | null;
250
- from: viem5838.Address;
250
+ from: viem0.Address;
251
251
  gas: bigint;
252
- hash: viem5838.Hash;
253
- input: viem5838.Hex;
252
+ hash: viem0.Hash;
253
+ input: viem0.Hex;
254
254
  nonce: number;
255
- r: viem5838.Hex;
256
- s: viem5838.Hex;
257
- to: viem5838.Address | null;
255
+ r: viem0.Hex;
256
+ s: viem0.Hex;
257
+ to: viem0.Address | null;
258
258
  transactionIndex: number | null;
259
- typeHex: viem5838.Hex | null;
259
+ typeHex: viem0.Hex | null;
260
260
  v: bigint;
261
261
  value: bigint;
262
262
  yParity: number;
263
- accessList: viem5838.AccessList;
263
+ accessList: viem0.AccessList;
264
264
  authorizationList?: undefined | undefined;
265
- blobVersionedHashes: readonly viem5838.Hex[];
265
+ blobVersionedHashes: readonly viem0.Hex[];
266
266
  chainId: number;
267
267
  type: "eip4844";
268
268
  gasPrice?: undefined | undefined;
@@ -275,21 +275,21 @@ declare const BaseSepoliaConfig: {
275
275
  } | {
276
276
  blockHash: `0x${string}` | null;
277
277
  blockNumber: bigint | null;
278
- from: viem5838.Address;
278
+ from: viem0.Address;
279
279
  gas: bigint;
280
- hash: viem5838.Hash;
281
- input: viem5838.Hex;
280
+ hash: viem0.Hash;
281
+ input: viem0.Hex;
282
282
  nonce: number;
283
- r: viem5838.Hex;
284
- s: viem5838.Hex;
285
- to: viem5838.Address | null;
283
+ r: viem0.Hex;
284
+ s: viem0.Hex;
285
+ to: viem0.Address | null;
286
286
  transactionIndex: number | null;
287
- typeHex: viem5838.Hex | null;
287
+ typeHex: viem0.Hex | null;
288
288
  v: bigint;
289
289
  value: bigint;
290
290
  yParity: number;
291
- accessList: viem5838.AccessList;
292
- authorizationList: viem5838.SignedAuthorizationList;
291
+ accessList: viem0.AccessList;
292
+ authorizationList: viem0.SignedAuthorizationList;
293
293
  blobVersionedHashes?: undefined | undefined;
294
294
  chainId: number;
295
295
  type: "eip7702";
@@ -308,22 +308,22 @@ declare const BaseSepoliaConfig: {
308
308
  format: (args: viem_chains0.OpStackRpcTransactionReceipt, action?: string | undefined) => {
309
309
  blobGasPrice?: bigint | undefined;
310
310
  blobGasUsed?: bigint | undefined;
311
- blockHash: viem5838.Hash;
311
+ blockHash: viem0.Hash;
312
312
  blockNumber: bigint;
313
313
  blockTimestamp?: bigint | undefined;
314
- contractAddress: viem5838.Address | null | undefined;
314
+ contractAddress: viem0.Address | null | undefined;
315
315
  cumulativeGasUsed: bigint;
316
316
  effectiveGasPrice: bigint;
317
- from: viem5838.Address;
317
+ from: viem0.Address;
318
318
  gasUsed: bigint;
319
- logs: viem5838.Log<bigint, number, false>[];
320
- logsBloom: viem5838.Hex;
319
+ logs: viem0.Log<bigint, number, false>[];
320
+ logsBloom: viem0.Hex;
321
321
  root?: `0x${string}` | undefined;
322
322
  status: "success" | "reverted";
323
- to: viem5838.Address | null;
324
- transactionHash: viem5838.Hash;
323
+ to: viem0.Address | null;
324
+ transactionHash: viem0.Hash;
325
325
  transactionIndex: number;
326
- type: viem5838.TransactionType;
326
+ type: viem0.TransactionType;
327
327
  l1GasPrice: bigint | null;
328
328
  l1GasUsed: bigint | null;
329
329
  l1Fee: bigint | null;
@@ -332,17 +332,17 @@ declare const BaseSepoliaConfig: {
332
332
  type: "transactionReceipt";
333
333
  };
334
334
  };
335
- prepareTransactionRequest?: ((args: viem5838.PrepareTransactionRequestParameters, options: {
335
+ prepareTransactionRequest?: ((args: viem0.PrepareTransactionRequestParameters, options: {
336
336
  phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
337
- }) => Promise<viem5838.PrepareTransactionRequestParameters>) | [fn: ((args: viem5838.PrepareTransactionRequestParameters, options: {
337
+ }) => Promise<viem0.PrepareTransactionRequestParameters>) | [fn: ((args: viem0.PrepareTransactionRequestParameters, options: {
338
338
  phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
339
- }) => Promise<viem5838.PrepareTransactionRequestParameters>) | undefined, options: {
339
+ }) => Promise<viem0.PrepareTransactionRequestParameters>) | undefined, options: {
340
340
  runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
341
341
  }] | undefined;
342
342
  serializers: {
343
343
  readonly transaction: typeof viem_chains0.serializeTransactionOpStack;
344
344
  };
345
- verifyHash?: ((client: viem5838.Client, parameters: viem5838.VerifyHashActionParameters) => Promise<viem5838.VerifyHashActionReturnType>) | undefined;
345
+ verifyHash?: ((client: viem0.Client, parameters: viem0.VerifyHashActionParameters) => Promise<viem0.VerifyHashActionReturnType>) | undefined;
346
346
  readonly network: "base-sepolia";
347
347
  };
348
348
  rpcUrl: string;
@@ -389,17 +389,17 @@ declare const ArbitrumSepoliaConfig: {
389
389
  testnet: true;
390
390
  custom?: Record<string, unknown> | undefined;
391
391
  extendSchema?: Record<string, unknown> | undefined;
392
- fees?: viem5838.ChainFees<undefined> | undefined;
392
+ fees?: viem0.ChainFees<undefined> | undefined;
393
393
  formatters?: undefined;
394
- prepareTransactionRequest?: ((args: viem5838.PrepareTransactionRequestParameters, options: {
394
+ prepareTransactionRequest?: ((args: viem0.PrepareTransactionRequestParameters, options: {
395
395
  phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
396
- }) => Promise<viem5838.PrepareTransactionRequestParameters>) | [fn: ((args: viem5838.PrepareTransactionRequestParameters, options: {
396
+ }) => Promise<viem0.PrepareTransactionRequestParameters>) | [fn: ((args: viem0.PrepareTransactionRequestParameters, options: {
397
397
  phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
398
- }) => Promise<viem5838.PrepareTransactionRequestParameters>) | undefined, options: {
398
+ }) => Promise<viem0.PrepareTransactionRequestParameters>) | undefined, options: {
399
399
  runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
400
400
  }] | undefined;
401
- serializers?: viem5838.ChainSerializers<undefined, viem5838.TransactionSerializable> | undefined;
402
- verifyHash?: ((client: viem5838.Client, parameters: viem5838.VerifyHashActionParameters) => Promise<viem5838.VerifyHashActionReturnType>) | undefined;
401
+ serializers?: viem0.ChainSerializers<undefined, viem0.TransactionSerializable> | undefined;
402
+ verifyHash?: ((client: viem0.Client, parameters: viem0.VerifyHashActionParameters) => Promise<viem0.VerifyHashActionReturnType>) | undefined;
403
403
  };
404
404
  rpcUrl: string;
405
405
  caip2: number;
@@ -408,6 +408,332 @@ declare const ArbitrumSepoliaConfig: {
408
408
  signedUrlWorker: string;
409
409
  keyServer: string;
410
410
  };
411
+ declare const BaseConfig: {
412
+ dataRegistryContractAddress: "0x543D559Cf7583FE7003d4A19E26BF3A4DB75fbC8";
413
+ fromBlock: bigint;
414
+ chain: {
415
+ blockExplorers: {
416
+ readonly default: {
417
+ readonly name: "Basescan";
418
+ readonly url: "https://basescan.org";
419
+ readonly apiUrl: "https://api.basescan.org/api";
420
+ };
421
+ };
422
+ blockTime: 2000;
423
+ contracts: {
424
+ readonly disputeGameFactory: {
425
+ readonly 1: {
426
+ readonly address: "0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e";
427
+ };
428
+ };
429
+ readonly l2OutputOracle: {
430
+ readonly 1: {
431
+ readonly address: "0x56315b90c40730925ec5485cf004d835058518A0";
432
+ };
433
+ };
434
+ readonly multicall3: {
435
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
436
+ readonly blockCreated: 5022;
437
+ };
438
+ readonly portal: {
439
+ readonly 1: {
440
+ readonly address: "0x49048044D57e1C92A77f79988d21Fa8fAF74E97e";
441
+ readonly blockCreated: 17482143;
442
+ };
443
+ };
444
+ readonly l1StandardBridge: {
445
+ readonly 1: {
446
+ readonly address: "0x3154Cf16ccdb4C6d922629664174b904d80F2C35";
447
+ readonly blockCreated: 17482143;
448
+ };
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: 8453;
471
+ name: "Base";
472
+ nativeCurrency: {
473
+ readonly name: "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://mainnet.base.org"];
481
+ };
482
+ };
483
+ sourceId: 1;
484
+ testnet?: boolean | undefined | undefined;
485
+ custom?: Record<string, unknown> | undefined;
486
+ extendSchema?: Record<string, unknown> | undefined;
487
+ fees?: viem0.ChainFees<undefined> | undefined;
488
+ formatters: {
489
+ readonly block: {
490
+ exclude: [] | undefined;
491
+ format: (args: viem_chains0.OpStackRpcBlock, action?: string | undefined) => {
492
+ baseFeePerGas: bigint | null;
493
+ blobGasUsed: bigint;
494
+ difficulty: bigint;
495
+ excessBlobGas: bigint;
496
+ extraData: viem0.Hex;
497
+ gasLimit: bigint;
498
+ gasUsed: bigint;
499
+ hash: `0x${string}` | null;
500
+ logsBloom: `0x${string}` | null;
501
+ miner: viem0.Address;
502
+ mixHash: viem0.Hash;
503
+ nonce: `0x${string}` | null;
504
+ number: bigint | null;
505
+ parentBeaconBlockRoot?: `0x${string}` | undefined;
506
+ parentHash: viem0.Hash;
507
+ receiptsRoot: viem0.Hex;
508
+ sealFields: viem0.Hex[];
509
+ sha3Uncles: viem0.Hash;
510
+ size: bigint;
511
+ stateRoot: viem0.Hash;
512
+ timestamp: bigint;
513
+ totalDifficulty: bigint | null;
514
+ transactions: `0x${string}`[] | viem_chains0.OpStackTransaction<boolean>[];
515
+ transactionsRoot: viem0.Hash;
516
+ uncles: viem0.Hash[];
517
+ withdrawals?: viem0.Withdrawal[] | undefined | undefined;
518
+ withdrawalsRoot?: `0x${string}` | undefined;
519
+ } & {};
520
+ type: "block";
521
+ };
522
+ readonly transaction: {
523
+ exclude: [] | undefined;
524
+ format: (args: viem_chains0.OpStackRpcTransaction, action?: string | undefined) => ({
525
+ blockHash: `0x${string}` | null;
526
+ blockNumber: bigint | null;
527
+ from: viem0.Address;
528
+ gas: bigint;
529
+ hash: viem0.Hash;
530
+ input: viem0.Hex;
531
+ nonce: number;
532
+ r: viem0.Hex;
533
+ s: viem0.Hex;
534
+ to: viem0.Address | null;
535
+ transactionIndex: number | null;
536
+ typeHex: viem0.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: viem0.Hex;
547
+ type: "deposit";
548
+ } | {
549
+ r: viem0.Hex;
550
+ s: viem0.Hex;
551
+ v: bigint;
552
+ to: viem0.Address | null;
553
+ from: viem0.Address;
554
+ gas: bigint;
555
+ nonce: number;
556
+ value: bigint;
557
+ blockHash: `0x${string}` | null;
558
+ blockNumber: bigint | null;
559
+ hash: viem0.Hash;
560
+ input: viem0.Hex;
561
+ transactionIndex: number | null;
562
+ typeHex: viem0.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: viem0.Address;
580
+ gas: bigint;
581
+ hash: viem0.Hash;
582
+ input: viem0.Hex;
583
+ nonce: number;
584
+ r: viem0.Hex;
585
+ s: viem0.Hex;
586
+ to: viem0.Address | null;
587
+ transactionIndex: number | null;
588
+ typeHex: viem0.Hex | null;
589
+ v: bigint;
590
+ value: bigint;
591
+ yParity: number;
592
+ accessList: viem0.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: viem0.Address;
608
+ gas: bigint;
609
+ hash: viem0.Hash;
610
+ input: viem0.Hex;
611
+ nonce: number;
612
+ r: viem0.Hex;
613
+ s: viem0.Hex;
614
+ to: viem0.Address | null;
615
+ transactionIndex: number | null;
616
+ typeHex: viem0.Hex | null;
617
+ v: bigint;
618
+ value: bigint;
619
+ yParity: number;
620
+ accessList: viem0.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: viem0.Address;
636
+ gas: bigint;
637
+ hash: viem0.Hash;
638
+ input: viem0.Hex;
639
+ nonce: number;
640
+ r: viem0.Hex;
641
+ s: viem0.Hex;
642
+ to: viem0.Address | null;
643
+ transactionIndex: number | null;
644
+ typeHex: viem0.Hex | null;
645
+ v: bigint;
646
+ value: bigint;
647
+ yParity: number;
648
+ accessList: viem0.AccessList;
649
+ authorizationList?: undefined | undefined;
650
+ blobVersionedHashes: readonly viem0.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: viem0.Address;
664
+ gas: bigint;
665
+ hash: viem0.Hash;
666
+ input: viem0.Hex;
667
+ nonce: number;
668
+ r: viem0.Hex;
669
+ s: viem0.Hex;
670
+ to: viem0.Address | null;
671
+ transactionIndex: number | null;
672
+ typeHex: viem0.Hex | null;
673
+ v: bigint;
674
+ value: bigint;
675
+ yParity: number;
676
+ accessList: viem0.AccessList;
677
+ authorizationList: viem0.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_chains0.OpStackRpcTransactionReceipt, action?: string | undefined) => {
694
+ blobGasPrice?: bigint | undefined;
695
+ blobGasUsed?: bigint | undefined;
696
+ blockHash: viem0.Hash;
697
+ blockNumber: bigint;
698
+ blockTimestamp?: bigint | undefined;
699
+ contractAddress: viem0.Address | null | undefined;
700
+ cumulativeGasUsed: bigint;
701
+ effectiveGasPrice: bigint;
702
+ from: viem0.Address;
703
+ gasUsed: bigint;
704
+ logs: viem0.Log<bigint, number, false>[];
705
+ logsBloom: viem0.Hex;
706
+ root?: `0x${string}` | undefined;
707
+ status: "success" | "reverted";
708
+ to: viem0.Address | null;
709
+ transactionHash: viem0.Hash;
710
+ transactionIndex: number;
711
+ type: viem0.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: viem0.PrepareTransactionRequestParameters, options: {
721
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
722
+ }) => Promise<viem0.PrepareTransactionRequestParameters>) | [fn: ((args: viem0.PrepareTransactionRequestParameters, options: {
723
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
724
+ }) => Promise<viem0.PrepareTransactionRequestParameters>) | undefined, options: {
725
+ runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
726
+ }] | undefined;
727
+ serializers: {
728
+ readonly transaction: typeof viem_chains0.serializeTransactionOpStack;
729
+ };
730
+ verifyHash?: ((client: viem0.Client, parameters: viem0.VerifyHashActionParameters) => Promise<viem0.VerifyHashActionReturnType>) | undefined;
731
+ };
732
+ rpcUrl: string;
733
+ caip2: number;
734
+ ipfsGateway: string;
735
+ logWindow: bigint;
736
+ };
411
737
  /**
412
738
  * The default network: what `Fangorn.create` uses without a `config`, and the CLI
413
739
  * without `CHAIN_NAME`. Base Sepolia; Arbitrum Sepolia runs the same contracts.
@@ -489,7 +815,7 @@ declare const FangornConfig: {
489
815
  testnet: true;
490
816
  custom?: Record<string, unknown> | undefined;
491
817
  extendSchema?: Record<string, unknown> | undefined;
492
- fees?: viem5838.ChainFees<undefined> | undefined;
818
+ fees?: viem0.ChainFees<undefined> | undefined;
493
819
  formatters: {
494
820
  readonly block: {
495
821
  exclude: [] | undefined;
@@ -498,28 +824,28 @@ declare const FangornConfig: {
498
824
  blobGasUsed: bigint;
499
825
  difficulty: bigint;
500
826
  excessBlobGas: bigint;
501
- extraData: viem5838.Hex;
827
+ extraData: viem0.Hex;
502
828
  gasLimit: bigint;
503
829
  gasUsed: bigint;
504
830
  hash: `0x${string}` | null;
505
831
  logsBloom: `0x${string}` | null;
506
- miner: viem5838.Address;
507
- mixHash: viem5838.Hash;
832
+ miner: viem0.Address;
833
+ mixHash: viem0.Hash;
508
834
  nonce: `0x${string}` | null;
509
835
  number: bigint | null;
510
836
  parentBeaconBlockRoot?: `0x${string}` | undefined;
511
- parentHash: viem5838.Hash;
512
- receiptsRoot: viem5838.Hex;
513
- sealFields: viem5838.Hex[];
514
- sha3Uncles: viem5838.Hash;
837
+ parentHash: viem0.Hash;
838
+ receiptsRoot: viem0.Hex;
839
+ sealFields: viem0.Hex[];
840
+ sha3Uncles: viem0.Hash;
515
841
  size: bigint;
516
- stateRoot: viem5838.Hash;
842
+ stateRoot: viem0.Hash;
517
843
  timestamp: bigint;
518
844
  totalDifficulty: bigint | null;
519
845
  transactions: `0x${string}`[] | viem_chains0.OpStackTransaction<boolean>[];
520
- transactionsRoot: viem5838.Hash;
521
- uncles: viem5838.Hash[];
522
- withdrawals?: viem5838.Withdrawal[] | undefined | undefined;
846
+ transactionsRoot: viem0.Hash;
847
+ uncles: viem0.Hash[];
848
+ withdrawals?: viem0.Withdrawal[] | undefined | undefined;
523
849
  withdrawalsRoot?: `0x${string}` | undefined;
524
850
  } & {};
525
851
  type: "block";
@@ -529,16 +855,16 @@ declare const FangornConfig: {
529
855
  format: (args: viem_chains0.OpStackRpcTransaction, action?: string | undefined) => ({
530
856
  blockHash: `0x${string}` | null;
531
857
  blockNumber: bigint | null;
532
- from: viem5838.Address;
858
+ from: viem0.Address;
533
859
  gas: bigint;
534
- hash: viem5838.Hash;
535
- input: viem5838.Hex;
860
+ hash: viem0.Hash;
861
+ input: viem0.Hex;
536
862
  nonce: number;
537
- r: viem5838.Hex;
538
- s: viem5838.Hex;
539
- to: viem5838.Address | null;
863
+ r: viem0.Hex;
864
+ s: viem0.Hex;
865
+ to: viem0.Address | null;
540
866
  transactionIndex: number | null;
541
- typeHex: viem5838.Hex | null;
867
+ typeHex: viem0.Hex | null;
542
868
  v: bigint;
543
869
  value: bigint;
544
870
  yParity: number;
@@ -548,23 +874,23 @@ declare const FangornConfig: {
548
874
  maxPriorityFeePerGas: bigint;
549
875
  isSystemTx?: boolean;
550
876
  mint?: bigint | undefined | undefined;
551
- sourceHash: viem5838.Hex;
877
+ sourceHash: viem0.Hex;
552
878
  type: "deposit";
553
879
  } | {
554
- r: viem5838.Hex;
555
- s: viem5838.Hex;
880
+ r: viem0.Hex;
881
+ s: viem0.Hex;
556
882
  v: bigint;
557
- to: viem5838.Address | null;
558
- from: viem5838.Address;
883
+ to: viem0.Address | null;
884
+ from: viem0.Address;
559
885
  gas: bigint;
560
886
  nonce: number;
561
887
  value: bigint;
562
888
  blockHash: `0x${string}` | null;
563
889
  blockNumber: bigint | null;
564
- hash: viem5838.Hash;
565
- input: viem5838.Hex;
890
+ hash: viem0.Hash;
891
+ input: viem0.Hex;
566
892
  transactionIndex: number | null;
567
- typeHex: viem5838.Hex | null;
893
+ typeHex: viem0.Hex | null;
568
894
  accessList?: undefined | undefined;
569
895
  authorizationList?: undefined | undefined;
570
896
  blobVersionedHashes?: undefined | undefined;
@@ -581,20 +907,20 @@ declare const FangornConfig: {
581
907
  } | {
582
908
  blockHash: `0x${string}` | null;
583
909
  blockNumber: bigint | null;
584
- from: viem5838.Address;
910
+ from: viem0.Address;
585
911
  gas: bigint;
586
- hash: viem5838.Hash;
587
- input: viem5838.Hex;
912
+ hash: viem0.Hash;
913
+ input: viem0.Hex;
588
914
  nonce: number;
589
- r: viem5838.Hex;
590
- s: viem5838.Hex;
591
- to: viem5838.Address | null;
915
+ r: viem0.Hex;
916
+ s: viem0.Hex;
917
+ to: viem0.Address | null;
592
918
  transactionIndex: number | null;
593
- typeHex: viem5838.Hex | null;
919
+ typeHex: viem0.Hex | null;
594
920
  v: bigint;
595
921
  value: bigint;
596
922
  yParity: number;
597
- accessList: viem5838.AccessList;
923
+ accessList: viem0.AccessList;
598
924
  authorizationList?: undefined | undefined;
599
925
  blobVersionedHashes?: undefined | undefined;
600
926
  chainId: number;
@@ -609,20 +935,20 @@ declare const FangornConfig: {
609
935
  } | {
610
936
  blockHash: `0x${string}` | null;
611
937
  blockNumber: bigint | null;
612
- from: viem5838.Address;
938
+ from: viem0.Address;
613
939
  gas: bigint;
614
- hash: viem5838.Hash;
615
- input: viem5838.Hex;
940
+ hash: viem0.Hash;
941
+ input: viem0.Hex;
616
942
  nonce: number;
617
- r: viem5838.Hex;
618
- s: viem5838.Hex;
619
- to: viem5838.Address | null;
943
+ r: viem0.Hex;
944
+ s: viem0.Hex;
945
+ to: viem0.Address | null;
620
946
  transactionIndex: number | null;
621
- typeHex: viem5838.Hex | null;
947
+ typeHex: viem0.Hex | null;
622
948
  v: bigint;
623
949
  value: bigint;
624
950
  yParity: number;
625
- accessList: viem5838.AccessList;
951
+ accessList: viem0.AccessList;
626
952
  authorizationList?: undefined | undefined;
627
953
  blobVersionedHashes?: undefined | undefined;
628
954
  chainId: number;
@@ -637,22 +963,22 @@ declare const FangornConfig: {
637
963
  } | {
638
964
  blockHash: `0x${string}` | null;
639
965
  blockNumber: bigint | null;
640
- from: viem5838.Address;
966
+ from: viem0.Address;
641
967
  gas: bigint;
642
- hash: viem5838.Hash;
643
- input: viem5838.Hex;
968
+ hash: viem0.Hash;
969
+ input: viem0.Hex;
644
970
  nonce: number;
645
- r: viem5838.Hex;
646
- s: viem5838.Hex;
647
- to: viem5838.Address | null;
971
+ r: viem0.Hex;
972
+ s: viem0.Hex;
973
+ to: viem0.Address | null;
648
974
  transactionIndex: number | null;
649
- typeHex: viem5838.Hex | null;
975
+ typeHex: viem0.Hex | null;
650
976
  v: bigint;
651
977
  value: bigint;
652
978
  yParity: number;
653
- accessList: viem5838.AccessList;
979
+ accessList: viem0.AccessList;
654
980
  authorizationList?: undefined | undefined;
655
- blobVersionedHashes: readonly viem5838.Hex[];
981
+ blobVersionedHashes: readonly viem0.Hex[];
656
982
  chainId: number;
657
983
  type: "eip4844";
658
984
  gasPrice?: undefined | undefined;
@@ -665,21 +991,21 @@ declare const FangornConfig: {
665
991
  } | {
666
992
  blockHash: `0x${string}` | null;
667
993
  blockNumber: bigint | null;
668
- from: viem5838.Address;
994
+ from: viem0.Address;
669
995
  gas: bigint;
670
- hash: viem5838.Hash;
671
- input: viem5838.Hex;
996
+ hash: viem0.Hash;
997
+ input: viem0.Hex;
672
998
  nonce: number;
673
- r: viem5838.Hex;
674
- s: viem5838.Hex;
675
- to: viem5838.Address | null;
999
+ r: viem0.Hex;
1000
+ s: viem0.Hex;
1001
+ to: viem0.Address | null;
676
1002
  transactionIndex: number | null;
677
- typeHex: viem5838.Hex | null;
1003
+ typeHex: viem0.Hex | null;
678
1004
  v: bigint;
679
1005
  value: bigint;
680
1006
  yParity: number;
681
- accessList: viem5838.AccessList;
682
- authorizationList: viem5838.SignedAuthorizationList;
1007
+ accessList: viem0.AccessList;
1008
+ authorizationList: viem0.SignedAuthorizationList;
683
1009
  blobVersionedHashes?: undefined | undefined;
684
1010
  chainId: number;
685
1011
  type: "eip7702";
@@ -698,22 +1024,22 @@ declare const FangornConfig: {
698
1024
  format: (args: viem_chains0.OpStackRpcTransactionReceipt, action?: string | undefined) => {
699
1025
  blobGasPrice?: bigint | undefined;
700
1026
  blobGasUsed?: bigint | undefined;
701
- blockHash: viem5838.Hash;
1027
+ blockHash: viem0.Hash;
702
1028
  blockNumber: bigint;
703
1029
  blockTimestamp?: bigint | undefined;
704
- contractAddress: viem5838.Address | null | undefined;
1030
+ contractAddress: viem0.Address | null | undefined;
705
1031
  cumulativeGasUsed: bigint;
706
1032
  effectiveGasPrice: bigint;
707
- from: viem5838.Address;
1033
+ from: viem0.Address;
708
1034
  gasUsed: bigint;
709
- logs: viem5838.Log<bigint, number, false>[];
710
- logsBloom: viem5838.Hex;
1035
+ logs: viem0.Log<bigint, number, false>[];
1036
+ logsBloom: viem0.Hex;
711
1037
  root?: `0x${string}` | undefined;
712
1038
  status: "success" | "reverted";
713
- to: viem5838.Address | null;
714
- transactionHash: viem5838.Hash;
1039
+ to: viem0.Address | null;
1040
+ transactionHash: viem0.Hash;
715
1041
  transactionIndex: number;
716
- type: viem5838.TransactionType;
1042
+ type: viem0.TransactionType;
717
1043
  l1GasPrice: bigint | null;
718
1044
  l1GasUsed: bigint | null;
719
1045
  l1Fee: bigint | null;
@@ -722,17 +1048,17 @@ declare const FangornConfig: {
722
1048
  type: "transactionReceipt";
723
1049
  };
724
1050
  };
725
- prepareTransactionRequest?: ((args: viem5838.PrepareTransactionRequestParameters, options: {
1051
+ prepareTransactionRequest?: ((args: viem0.PrepareTransactionRequestParameters, options: {
726
1052
  phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
727
- }) => Promise<viem5838.PrepareTransactionRequestParameters>) | [fn: ((args: viem5838.PrepareTransactionRequestParameters, options: {
1053
+ }) => Promise<viem0.PrepareTransactionRequestParameters>) | [fn: ((args: viem0.PrepareTransactionRequestParameters, options: {
728
1054
  phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
729
- }) => Promise<viem5838.PrepareTransactionRequestParameters>) | undefined, options: {
1055
+ }) => Promise<viem0.PrepareTransactionRequestParameters>) | undefined, options: {
730
1056
  runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
731
1057
  }] | undefined;
732
1058
  serializers: {
733
1059
  readonly transaction: typeof viem_chains0.serializeTransactionOpStack;
734
1060
  };
735
- verifyHash?: ((client: viem5838.Client, parameters: viem5838.VerifyHashActionParameters) => Promise<viem5838.VerifyHashActionReturnType>) | undefined;
1061
+ verifyHash?: ((client: viem0.Client, parameters: viem0.VerifyHashActionParameters) => Promise<viem0.VerifyHashActionReturnType>) | undefined;
736
1062
  readonly network: "base-sepolia";
737
1063
  };
738
1064
  rpcUrl: string;
@@ -747,9 +1073,9 @@ declare const FangornConfig: {
747
1073
  */
748
1074
  declare const SupportedNetworks: Record<string, NetworkConfig>;
749
1075
  /**
750
- * Get a network's deployment by name ("baseSepolia" or "arbitrumSepolia").
1076
+ * Get a network's deployment by name ("baseSepolia", "arbitrumSepolia" or "base").
751
1077
  * @returns The corresponding config if it is supported, otherwise an error
752
1078
  */
753
1079
  declare function getNetwork(name: string): NetworkConfig;
754
1080
  //#endregion
755
- export { ArbitrumSepoliaConfig, BaseSepoliaConfig, FangornConfig, NetworkConfig, SupportedNetworks, getNetwork as default, nonBlank };
1081
+ export { ArbitrumSepoliaConfig, BaseConfig, BaseSepoliaConfig, FangornConfig, NetworkConfig, SupportedNetworks, getNetwork as default, nonBlank };