@fangorn-network/sdk 2026.10.28 → 2026.11.3

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 (68) hide show
  1. package/README.md +37 -653
  2. package/lib/cli/cli.js +46 -357
  3. package/lib/cli/index.d.ts +1 -4
  4. package/lib/cli/index.js +2 -20
  5. package/lib/cli/sell.d.ts +28 -0
  6. package/lib/cli/sell.js +95 -0
  7. package/lib/config.d.ts +163 -226
  8. package/lib/config.js +8 -35
  9. package/lib/contracts/data-registry/abi.d.ts +206 -6
  10. package/lib/contracts/data-registry/abi.js +415 -186
  11. package/lib/contracts/data-registry/index.d.ts +126 -2
  12. package/lib/contracts/data-registry/index.js +174 -1
  13. package/lib/contracts/index.d.ts +4 -7
  14. package/lib/contracts/index.js +4 -7
  15. package/lib/contracts/logs.d.ts +1 -1
  16. package/lib/contracts/logs.js +1 -1
  17. package/lib/contracts/{membership-registry → settlement-registry}/abi.d.ts +288 -637
  18. package/lib/contracts/settlement-registry/abi.js +947 -0
  19. package/lib/contracts/settlement-registry/index.d.ts +141 -0
  20. package/lib/contracts/settlement-registry/index.js +209 -0
  21. package/lib/crypto/aes.d.ts +2 -2
  22. package/lib/crypto/aes.js +4 -4
  23. package/lib/crypto/encryption.d.ts +8 -109
  24. package/lib/crypto/encryption.js +16 -114
  25. package/lib/crypto/paid.d.ts +104 -0
  26. package/lib/crypto/paid.js +147 -0
  27. package/lib/engine/index.d.ts +23 -12
  28. package/lib/engine/index.js +68 -29
  29. package/lib/engine/records.d.ts +4 -7
  30. package/lib/engine/records.js +6 -6
  31. package/lib/engine/test-helpers.d.ts +2 -3
  32. package/lib/engine/test-helpers.js +7 -5
  33. package/lib/erc8004.js +7 -10
  34. package/lib/fangorn.d.ts +65 -96
  35. package/lib/fangorn.js +110 -168
  36. package/lib/feed.d.ts +7 -8
  37. package/lib/feed.js +7 -8
  38. package/lib/index.d.ts +10 -13
  39. package/lib/index.js +10 -13
  40. package/lib/providers/storage/signed-url.d.ts +2 -10
  41. package/lib/providers/storage/signed-url.js +5 -15
  42. package/lib/providers/storage/types.d.ts +1 -1
  43. package/lib/providers/storage/utils.js +5 -3
  44. package/lib/test/key-server.d.ts +12 -0
  45. package/lib/test/key-server.js +30 -0
  46. package/lib/test/mem-registry.d.ts +14 -19
  47. package/lib/test/mem-registry.js +44 -37
  48. package/lib/test/sdk-suite.d.ts +1 -4
  49. package/lib/test/sdk-suite.js +16 -87
  50. package/lib/test/testbed.d.ts +35 -45
  51. package/lib/test/testbed.js +29 -56
  52. package/lib/types/index.d.ts +6 -11
  53. package/package.json +2 -5
  54. package/lib/contracts/app-registry/abi.d.ts +0 -1306
  55. package/lib/contracts/app-registry/abi.js +0 -1493
  56. package/lib/contracts/app-registry/index.d.ts +0 -200
  57. package/lib/contracts/app-registry/index.js +0 -325
  58. package/lib/contracts/membership-registry/abi.js +0 -1333
  59. package/lib/contracts/membership-registry/index.d.ts +0 -79
  60. package/lib/contracts/membership-registry/index.js +0 -104
  61. package/lib/contracts/types.d.ts +0 -8
  62. package/lib/contracts/types.js +0 -10
  63. package/lib/harness/examples/hackmd/build-markdown-graph.d.ts +0 -1
  64. package/lib/harness/examples/hackmd/build-markdown-graph.js +0 -17
  65. package/lib/harness/index.d.ts +0 -58
  66. package/lib/harness/index.js +0 -73
  67. package/lib/registry.d.ts +0 -118
  68. package/lib/registry.js +0 -184
package/lib/config.d.ts CHANGED
@@ -1,25 +1,19 @@
1
- import * as viem5828 from "viem";
2
- import { Chain, Hex } from "viem";
3
1
  import * as viem_chains0 from "viem/chains";
4
- import * as abitype9 from "abitype";
2
+ import * as viem5827 from "viem";
3
+ import { Chain, Hex } from "viem";
4
+ import * as abitype10 from "abitype";
5
5
 
6
6
  //#region src/config.d.ts
7
7
  /**
8
- * Derive an app id from a human-readable name (keccak256(hex(name)).
9
- */
10
- declare function appId(name: string): Hex;
11
- /**
12
- * Blank input means "not set", never an app called "". Returns the trimmed value,
8
+ * Blank input means "not set", never a value of "". Returns the trimmed value,
13
9
  * or undefined when it is missing or only whitespace, so it can sit on the left of
14
10
  * a `??` fallback. `??` on the raw value would let "" through: it is not nullish.
15
11
  */
16
12
  declare function nonBlank(value: string | undefined): string | undefined;
17
- declare function toAppId(nameOrId: string): Hex;
18
- interface AppConfig {
13
+ interface NetworkConfig {
19
14
  dataRegistryContractAddress: Hex;
20
- appRegistryContractAddress: Hex;
21
- membershipRegistryContractAddress: Hex;
22
- appRegistryFromBlock: bigint;
15
+ settlementRegistryContractAddress?: Hex;
16
+ fromBlock: bigint;
23
17
  chain: Chain;
24
18
  rpcUrl: string;
25
19
  caip2: number;
@@ -27,66 +21,10 @@ interface AppConfig {
27
21
  logWindow?: bigint;
28
22
  signedUrlWorker?: string;
29
23
  }
30
- declare const ArbitrumSepoliaConfig: {
31
- dataRegistryContractAddress: "0x72B5f83526F3893aF9f1eE0f32A27218EA09f8aE";
32
- appRegistryContractAddress: "0x55e6209ea1833ceD900989a3b3b22466934E04A5";
33
- membershipRegistryContractAddress: "0xDF17030Cd65435C86eb043F31DDACa99E819E347";
34
- appRegistryFromBlock: bigint;
35
- chain: {
36
- blockExplorers: {
37
- readonly default: {
38
- readonly name: "Arbiscan";
39
- readonly url: "https://sepolia.arbiscan.io";
40
- readonly apiUrl: "https://api-sepolia.arbiscan.io/api";
41
- };
42
- };
43
- blockTime: 250;
44
- contracts: {
45
- readonly multicall3: {
46
- readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
47
- readonly blockCreated: 81930;
48
- };
49
- };
50
- ensTlds?: readonly string[] | undefined;
51
- id: 421614;
52
- name: "Arbitrum Sepolia";
53
- nativeCurrency: {
54
- readonly name: "Arbitrum Sepolia Ether";
55
- readonly symbol: "ETH";
56
- readonly decimals: 18;
57
- };
58
- experimental_preconfirmationTime?: number | undefined | undefined;
59
- rpcUrls: {
60
- readonly default: {
61
- readonly http: readonly ["https://sepolia-rollup.arbitrum.io/rpc"];
62
- };
63
- };
64
- sourceId?: number | undefined | undefined;
65
- testnet: true;
66
- custom?: Record<string, unknown> | undefined;
67
- extendSchema?: Record<string, unknown> | undefined;
68
- fees?: viem5828.ChainFees<undefined> | undefined;
69
- formatters?: undefined;
70
- prepareTransactionRequest?: ((args: viem5828.PrepareTransactionRequestParameters, options: {
71
- phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
72
- }) => Promise<viem5828.PrepareTransactionRequestParameters>) | [fn: ((args: viem5828.PrepareTransactionRequestParameters, options: {
73
- phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
74
- }) => Promise<viem5828.PrepareTransactionRequestParameters>) | undefined, options: {
75
- runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
76
- }] | undefined;
77
- serializers?: viem5828.ChainSerializers<undefined, viem5828.TransactionSerializable> | undefined;
78
- verifyHash?: ((client: viem5828.Client, parameters: viem5828.VerifyHashActionParameters) => Promise<viem5828.VerifyHashActionReturnType>) | undefined;
79
- };
80
- rpcUrl: string;
81
- caip2: number;
82
- ipfsGateway: string;
83
- logWindow: bigint;
84
- };
85
24
  declare const BaseSepoliaConfig: {
86
- dataRegistryContractAddress: "0x7a34882568f1b22FC4C4944113B1E4Ca4cF6900f";
87
- appRegistryContractAddress: "0x6E07C2c7393963242899e5Fb0eb1B6B787927E81";
88
- membershipRegistryContractAddress: "0x9De2C2A6261927f91b246C73e7ca86824a357FA6";
89
- appRegistryFromBlock: bigint;
25
+ dataRegistryContractAddress: "0x0F3eb0E62CF610dbaC6B3aD4Bf4cE38Ab50EBCC5";
26
+ settlementRegistryContractAddress: "0x61A5A195B54F57ada786Ba6689CdB04553cf7fBc";
27
+ fromBlock: bigint;
90
28
  chain: {
91
29
  blockExplorers: {
92
30
  readonly default: {
@@ -160,7 +98,7 @@ declare const BaseSepoliaConfig: {
160
98
  testnet: true;
161
99
  custom?: Record<string, unknown> | undefined;
162
100
  extendSchema?: Record<string, unknown> | undefined;
163
- fees?: viem5828.ChainFees<undefined> | undefined;
101
+ fees?: viem5827.ChainFees<undefined> | undefined;
164
102
  formatters: {
165
103
  readonly block: {
166
104
  exclude: [] | undefined;
@@ -169,28 +107,28 @@ declare const BaseSepoliaConfig: {
169
107
  blobGasUsed: bigint;
170
108
  difficulty: bigint;
171
109
  excessBlobGas: bigint;
172
- extraData: viem5828.Hex;
110
+ extraData: viem5827.Hex;
173
111
  gasLimit: bigint;
174
112
  gasUsed: bigint;
175
113
  hash: `0x${string}` | null;
176
114
  logsBloom: `0x${string}` | null;
177
- miner: abitype9.Address;
178
- mixHash: viem5828.Hash;
115
+ miner: abitype10.Address;
116
+ mixHash: viem5827.Hash;
179
117
  nonce: `0x${string}` | null;
180
118
  number: bigint | null;
181
119
  parentBeaconBlockRoot?: `0x${string}` | undefined;
182
- parentHash: viem5828.Hash;
183
- receiptsRoot: viem5828.Hex;
184
- sealFields: viem5828.Hex[];
185
- sha3Uncles: viem5828.Hash;
120
+ parentHash: viem5827.Hash;
121
+ receiptsRoot: viem5827.Hex;
122
+ sealFields: viem5827.Hex[];
123
+ sha3Uncles: viem5827.Hash;
186
124
  size: bigint;
187
- stateRoot: viem5828.Hash;
125
+ stateRoot: viem5827.Hash;
188
126
  timestamp: bigint;
189
127
  totalDifficulty: bigint | null;
190
128
  transactions: `0x${string}`[] | viem_chains0.OpStackTransaction<boolean>[];
191
- transactionsRoot: viem5828.Hash;
192
- uncles: viem5828.Hash[];
193
- withdrawals?: viem5828.Withdrawal[] | undefined | undefined;
129
+ transactionsRoot: viem5827.Hash;
130
+ uncles: viem5827.Hash[];
131
+ withdrawals?: viem5827.Withdrawal[] | undefined | undefined;
194
132
  withdrawalsRoot?: `0x${string}` | undefined;
195
133
  } & {};
196
134
  type: "block";
@@ -200,16 +138,16 @@ declare const BaseSepoliaConfig: {
200
138
  format: (args: viem_chains0.OpStackRpcTransaction, action?: string | undefined) => ({
201
139
  blockHash: `0x${string}` | null;
202
140
  blockNumber: bigint | null;
203
- from: abitype9.Address;
141
+ from: abitype10.Address;
204
142
  gas: bigint;
205
- hash: viem5828.Hash;
206
- input: viem5828.Hex;
143
+ hash: viem5827.Hash;
144
+ input: viem5827.Hex;
207
145
  nonce: number;
208
- r: viem5828.Hex;
209
- s: viem5828.Hex;
210
- to: abitype9.Address | null;
146
+ r: viem5827.Hex;
147
+ s: viem5827.Hex;
148
+ to: abitype10.Address | null;
211
149
  transactionIndex: number | null;
212
- typeHex: viem5828.Hex | null;
150
+ typeHex: viem5827.Hex | null;
213
151
  v: bigint;
214
152
  value: bigint;
215
153
  yParity: number;
@@ -219,23 +157,23 @@ declare const BaseSepoliaConfig: {
219
157
  maxPriorityFeePerGas: bigint;
220
158
  isSystemTx?: boolean;
221
159
  mint?: bigint | undefined | undefined;
222
- sourceHash: viem5828.Hex;
160
+ sourceHash: viem5827.Hex;
223
161
  type: "deposit";
224
162
  } | {
225
- r: viem5828.Hex;
226
- s: viem5828.Hex;
163
+ r: viem5827.Hex;
164
+ s: viem5827.Hex;
227
165
  v: bigint;
228
- to: abitype9.Address | null;
229
- from: abitype9.Address;
166
+ to: abitype10.Address | null;
167
+ from: abitype10.Address;
230
168
  gas: bigint;
231
169
  nonce: number;
232
170
  value: bigint;
233
171
  blockHash: `0x${string}` | null;
234
172
  blockNumber: bigint | null;
235
- hash: viem5828.Hash;
236
- input: viem5828.Hex;
173
+ hash: viem5827.Hash;
174
+ input: viem5827.Hex;
237
175
  transactionIndex: number | null;
238
- typeHex: viem5828.Hex | null;
176
+ typeHex: viem5827.Hex | null;
239
177
  accessList?: undefined | undefined;
240
178
  authorizationList?: undefined | undefined;
241
179
  blobVersionedHashes?: undefined | undefined;
@@ -252,20 +190,20 @@ declare const BaseSepoliaConfig: {
252
190
  } | {
253
191
  blockHash: `0x${string}` | null;
254
192
  blockNumber: bigint | null;
255
- from: abitype9.Address;
193
+ from: abitype10.Address;
256
194
  gas: bigint;
257
- hash: viem5828.Hash;
258
- input: viem5828.Hex;
195
+ hash: viem5827.Hash;
196
+ input: viem5827.Hex;
259
197
  nonce: number;
260
- r: viem5828.Hex;
261
- s: viem5828.Hex;
262
- to: abitype9.Address | null;
198
+ r: viem5827.Hex;
199
+ s: viem5827.Hex;
200
+ to: abitype10.Address | null;
263
201
  transactionIndex: number | null;
264
- typeHex: viem5828.Hex | null;
202
+ typeHex: viem5827.Hex | null;
265
203
  v: bigint;
266
204
  value: bigint;
267
205
  yParity: number;
268
- accessList: viem5828.AccessList;
206
+ accessList: viem5827.AccessList;
269
207
  authorizationList?: undefined | undefined;
270
208
  blobVersionedHashes?: undefined | undefined;
271
209
  chainId: number;
@@ -280,20 +218,20 @@ declare const BaseSepoliaConfig: {
280
218
  } | {
281
219
  blockHash: `0x${string}` | null;
282
220
  blockNumber: bigint | null;
283
- from: abitype9.Address;
221
+ from: abitype10.Address;
284
222
  gas: bigint;
285
- hash: viem5828.Hash;
286
- input: viem5828.Hex;
223
+ hash: viem5827.Hash;
224
+ input: viem5827.Hex;
287
225
  nonce: number;
288
- r: viem5828.Hex;
289
- s: viem5828.Hex;
290
- to: abitype9.Address | null;
226
+ r: viem5827.Hex;
227
+ s: viem5827.Hex;
228
+ to: abitype10.Address | null;
291
229
  transactionIndex: number | null;
292
- typeHex: viem5828.Hex | null;
230
+ typeHex: viem5827.Hex | null;
293
231
  v: bigint;
294
232
  value: bigint;
295
233
  yParity: number;
296
- accessList: viem5828.AccessList;
234
+ accessList: viem5827.AccessList;
297
235
  authorizationList?: undefined | undefined;
298
236
  blobVersionedHashes?: undefined | undefined;
299
237
  chainId: number;
@@ -308,22 +246,22 @@ declare const BaseSepoliaConfig: {
308
246
  } | {
309
247
  blockHash: `0x${string}` | null;
310
248
  blockNumber: bigint | null;
311
- from: abitype9.Address;
249
+ from: abitype10.Address;
312
250
  gas: bigint;
313
- hash: viem5828.Hash;
314
- input: viem5828.Hex;
251
+ hash: viem5827.Hash;
252
+ input: viem5827.Hex;
315
253
  nonce: number;
316
- r: viem5828.Hex;
317
- s: viem5828.Hex;
318
- to: abitype9.Address | null;
254
+ r: viem5827.Hex;
255
+ s: viem5827.Hex;
256
+ to: abitype10.Address | null;
319
257
  transactionIndex: number | null;
320
- typeHex: viem5828.Hex | null;
258
+ typeHex: viem5827.Hex | null;
321
259
  v: bigint;
322
260
  value: bigint;
323
261
  yParity: number;
324
- accessList: viem5828.AccessList;
262
+ accessList: viem5827.AccessList;
325
263
  authorizationList?: undefined | undefined;
326
- blobVersionedHashes: readonly viem5828.Hex[];
264
+ blobVersionedHashes: readonly viem5827.Hex[];
327
265
  chainId: number;
328
266
  type: "eip4844";
329
267
  gasPrice?: undefined | undefined;
@@ -336,21 +274,21 @@ declare const BaseSepoliaConfig: {
336
274
  } | {
337
275
  blockHash: `0x${string}` | null;
338
276
  blockNumber: bigint | null;
339
- from: abitype9.Address;
277
+ from: abitype10.Address;
340
278
  gas: bigint;
341
- hash: viem5828.Hash;
342
- input: viem5828.Hex;
279
+ hash: viem5827.Hash;
280
+ input: viem5827.Hex;
343
281
  nonce: number;
344
- r: viem5828.Hex;
345
- s: viem5828.Hex;
346
- to: abitype9.Address | null;
282
+ r: viem5827.Hex;
283
+ s: viem5827.Hex;
284
+ to: abitype10.Address | null;
347
285
  transactionIndex: number | null;
348
- typeHex: viem5828.Hex | null;
286
+ typeHex: viem5827.Hex | null;
349
287
  v: bigint;
350
288
  value: bigint;
351
289
  yParity: number;
352
- accessList: viem5828.AccessList;
353
- authorizationList: viem5828.SignedAuthorizationList;
290
+ accessList: viem5827.AccessList;
291
+ authorizationList: viem5827.SignedAuthorizationList;
354
292
  blobVersionedHashes?: undefined | undefined;
355
293
  chainId: number;
356
294
  type: "eip7702";
@@ -369,22 +307,22 @@ declare const BaseSepoliaConfig: {
369
307
  format: (args: viem_chains0.OpStackRpcTransactionReceipt, action?: string | undefined) => {
370
308
  blobGasPrice?: bigint | undefined;
371
309
  blobGasUsed?: bigint | undefined;
372
- blockHash: viem5828.Hash;
310
+ blockHash: viem5827.Hash;
373
311
  blockNumber: bigint;
374
312
  blockTimestamp?: bigint | undefined;
375
- contractAddress: abitype9.Address | null | undefined;
313
+ contractAddress: abitype10.Address | null | undefined;
376
314
  cumulativeGasUsed: bigint;
377
315
  effectiveGasPrice: bigint;
378
- from: abitype9.Address;
316
+ from: abitype10.Address;
379
317
  gasUsed: bigint;
380
- logs: viem5828.Log<bigint, number, false>[];
381
- logsBloom: viem5828.Hex;
318
+ logs: viem5827.Log<bigint, number, false>[];
319
+ logsBloom: viem5827.Hex;
382
320
  root?: `0x${string}` | undefined;
383
321
  status: "success" | "reverted";
384
- to: abitype9.Address | null;
385
- transactionHash: viem5828.Hash;
322
+ to: abitype10.Address | null;
323
+ transactionHash: viem5827.Hash;
386
324
  transactionIndex: number;
387
- type: viem5828.TransactionType;
325
+ type: viem5827.TransactionType;
388
326
  l1GasPrice: bigint | null;
389
327
  l1GasUsed: bigint | null;
390
328
  l1Fee: bigint | null;
@@ -393,17 +331,17 @@ declare const BaseSepoliaConfig: {
393
331
  type: "transactionReceipt";
394
332
  };
395
333
  };
396
- prepareTransactionRequest?: ((args: viem5828.PrepareTransactionRequestParameters, options: {
334
+ prepareTransactionRequest?: ((args: viem5827.PrepareTransactionRequestParameters, options: {
397
335
  phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
398
- }) => Promise<viem5828.PrepareTransactionRequestParameters>) | [fn: ((args: viem5828.PrepareTransactionRequestParameters, options: {
336
+ }) => Promise<viem5827.PrepareTransactionRequestParameters>) | [fn: ((args: viem5827.PrepareTransactionRequestParameters, options: {
399
337
  phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
400
- }) => Promise<viem5828.PrepareTransactionRequestParameters>) | undefined, options: {
338
+ }) => Promise<viem5827.PrepareTransactionRequestParameters>) | undefined, options: {
401
339
  runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
402
340
  }] | undefined;
403
341
  serializers: {
404
342
  readonly transaction: typeof viem_chains0.serializeTransactionOpStack;
405
343
  };
406
- verifyHash?: ((client: viem5828.Client, parameters: viem5828.VerifyHashActionParameters) => Promise<viem5828.VerifyHashActionReturnType>) | undefined;
344
+ verifyHash?: ((client: viem5827.Client, parameters: viem5827.VerifyHashActionParameters) => Promise<viem5827.VerifyHashActionReturnType>) | undefined;
407
345
  readonly network: "base-sepolia";
408
346
  };
409
347
  rpcUrl: string;
@@ -418,10 +356,9 @@ declare const BaseSepoliaConfig: {
418
356
  * built from.
419
357
  */
420
358
  declare const FangornConfig: {
421
- dataRegistryContractAddress: "0x7a34882568f1b22FC4C4944113B1E4Ca4cF6900f";
422
- appRegistryContractAddress: "0x6E07C2c7393963242899e5Fb0eb1B6B787927E81";
423
- membershipRegistryContractAddress: "0x9De2C2A6261927f91b246C73e7ca86824a357FA6";
424
- appRegistryFromBlock: bigint;
359
+ dataRegistryContractAddress: "0x0F3eb0E62CF610dbaC6B3aD4Bf4cE38Ab50EBCC5";
360
+ settlementRegistryContractAddress: "0x61A5A195B54F57ada786Ba6689CdB04553cf7fBc";
361
+ fromBlock: bigint;
425
362
  chain: {
426
363
  blockExplorers: {
427
364
  readonly default: {
@@ -495,7 +432,7 @@ declare const FangornConfig: {
495
432
  testnet: true;
496
433
  custom?: Record<string, unknown> | undefined;
497
434
  extendSchema?: Record<string, unknown> | undefined;
498
- fees?: viem5828.ChainFees<undefined> | undefined;
435
+ fees?: viem5827.ChainFees<undefined> | undefined;
499
436
  formatters: {
500
437
  readonly block: {
501
438
  exclude: [] | undefined;
@@ -504,28 +441,28 @@ declare const FangornConfig: {
504
441
  blobGasUsed: bigint;
505
442
  difficulty: bigint;
506
443
  excessBlobGas: bigint;
507
- extraData: viem5828.Hex;
444
+ extraData: viem5827.Hex;
508
445
  gasLimit: bigint;
509
446
  gasUsed: bigint;
510
447
  hash: `0x${string}` | null;
511
448
  logsBloom: `0x${string}` | null;
512
- miner: abitype9.Address;
513
- mixHash: viem5828.Hash;
449
+ miner: abitype10.Address;
450
+ mixHash: viem5827.Hash;
514
451
  nonce: `0x${string}` | null;
515
452
  number: bigint | null;
516
453
  parentBeaconBlockRoot?: `0x${string}` | undefined;
517
- parentHash: viem5828.Hash;
518
- receiptsRoot: viem5828.Hex;
519
- sealFields: viem5828.Hex[];
520
- sha3Uncles: viem5828.Hash;
454
+ parentHash: viem5827.Hash;
455
+ receiptsRoot: viem5827.Hex;
456
+ sealFields: viem5827.Hex[];
457
+ sha3Uncles: viem5827.Hash;
521
458
  size: bigint;
522
- stateRoot: viem5828.Hash;
459
+ stateRoot: viem5827.Hash;
523
460
  timestamp: bigint;
524
461
  totalDifficulty: bigint | null;
525
462
  transactions: `0x${string}`[] | viem_chains0.OpStackTransaction<boolean>[];
526
- transactionsRoot: viem5828.Hash;
527
- uncles: viem5828.Hash[];
528
- withdrawals?: viem5828.Withdrawal[] | undefined | undefined;
463
+ transactionsRoot: viem5827.Hash;
464
+ uncles: viem5827.Hash[];
465
+ withdrawals?: viem5827.Withdrawal[] | undefined | undefined;
529
466
  withdrawalsRoot?: `0x${string}` | undefined;
530
467
  } & {};
531
468
  type: "block";
@@ -535,16 +472,16 @@ declare const FangornConfig: {
535
472
  format: (args: viem_chains0.OpStackRpcTransaction, action?: string | undefined) => ({
536
473
  blockHash: `0x${string}` | null;
537
474
  blockNumber: bigint | null;
538
- from: abitype9.Address;
475
+ from: abitype10.Address;
539
476
  gas: bigint;
540
- hash: viem5828.Hash;
541
- input: viem5828.Hex;
477
+ hash: viem5827.Hash;
478
+ input: viem5827.Hex;
542
479
  nonce: number;
543
- r: viem5828.Hex;
544
- s: viem5828.Hex;
545
- to: abitype9.Address | null;
480
+ r: viem5827.Hex;
481
+ s: viem5827.Hex;
482
+ to: abitype10.Address | null;
546
483
  transactionIndex: number | null;
547
- typeHex: viem5828.Hex | null;
484
+ typeHex: viem5827.Hex | null;
548
485
  v: bigint;
549
486
  value: bigint;
550
487
  yParity: number;
@@ -554,23 +491,23 @@ declare const FangornConfig: {
554
491
  maxPriorityFeePerGas: bigint;
555
492
  isSystemTx?: boolean;
556
493
  mint?: bigint | undefined | undefined;
557
- sourceHash: viem5828.Hex;
494
+ sourceHash: viem5827.Hex;
558
495
  type: "deposit";
559
496
  } | {
560
- r: viem5828.Hex;
561
- s: viem5828.Hex;
497
+ r: viem5827.Hex;
498
+ s: viem5827.Hex;
562
499
  v: bigint;
563
- to: abitype9.Address | null;
564
- from: abitype9.Address;
500
+ to: abitype10.Address | null;
501
+ from: abitype10.Address;
565
502
  gas: bigint;
566
503
  nonce: number;
567
504
  value: bigint;
568
505
  blockHash: `0x${string}` | null;
569
506
  blockNumber: bigint | null;
570
- hash: viem5828.Hash;
571
- input: viem5828.Hex;
507
+ hash: viem5827.Hash;
508
+ input: viem5827.Hex;
572
509
  transactionIndex: number | null;
573
- typeHex: viem5828.Hex | null;
510
+ typeHex: viem5827.Hex | null;
574
511
  accessList?: undefined | undefined;
575
512
  authorizationList?: undefined | undefined;
576
513
  blobVersionedHashes?: undefined | undefined;
@@ -587,20 +524,20 @@ declare const FangornConfig: {
587
524
  } | {
588
525
  blockHash: `0x${string}` | null;
589
526
  blockNumber: bigint | null;
590
- from: abitype9.Address;
527
+ from: abitype10.Address;
591
528
  gas: bigint;
592
- hash: viem5828.Hash;
593
- input: viem5828.Hex;
529
+ hash: viem5827.Hash;
530
+ input: viem5827.Hex;
594
531
  nonce: number;
595
- r: viem5828.Hex;
596
- s: viem5828.Hex;
597
- to: abitype9.Address | null;
532
+ r: viem5827.Hex;
533
+ s: viem5827.Hex;
534
+ to: abitype10.Address | null;
598
535
  transactionIndex: number | null;
599
- typeHex: viem5828.Hex | null;
536
+ typeHex: viem5827.Hex | null;
600
537
  v: bigint;
601
538
  value: bigint;
602
539
  yParity: number;
603
- accessList: viem5828.AccessList;
540
+ accessList: viem5827.AccessList;
604
541
  authorizationList?: undefined | undefined;
605
542
  blobVersionedHashes?: undefined | undefined;
606
543
  chainId: number;
@@ -615,20 +552,20 @@ declare const FangornConfig: {
615
552
  } | {
616
553
  blockHash: `0x${string}` | null;
617
554
  blockNumber: bigint | null;
618
- from: abitype9.Address;
555
+ from: abitype10.Address;
619
556
  gas: bigint;
620
- hash: viem5828.Hash;
621
- input: viem5828.Hex;
557
+ hash: viem5827.Hash;
558
+ input: viem5827.Hex;
622
559
  nonce: number;
623
- r: viem5828.Hex;
624
- s: viem5828.Hex;
625
- to: abitype9.Address | null;
560
+ r: viem5827.Hex;
561
+ s: viem5827.Hex;
562
+ to: abitype10.Address | null;
626
563
  transactionIndex: number | null;
627
- typeHex: viem5828.Hex | null;
564
+ typeHex: viem5827.Hex | null;
628
565
  v: bigint;
629
566
  value: bigint;
630
567
  yParity: number;
631
- accessList: viem5828.AccessList;
568
+ accessList: viem5827.AccessList;
632
569
  authorizationList?: undefined | undefined;
633
570
  blobVersionedHashes?: undefined | undefined;
634
571
  chainId: number;
@@ -643,22 +580,22 @@ declare const FangornConfig: {
643
580
  } | {
644
581
  blockHash: `0x${string}` | null;
645
582
  blockNumber: bigint | null;
646
- from: abitype9.Address;
583
+ from: abitype10.Address;
647
584
  gas: bigint;
648
- hash: viem5828.Hash;
649
- input: viem5828.Hex;
585
+ hash: viem5827.Hash;
586
+ input: viem5827.Hex;
650
587
  nonce: number;
651
- r: viem5828.Hex;
652
- s: viem5828.Hex;
653
- to: abitype9.Address | null;
588
+ r: viem5827.Hex;
589
+ s: viem5827.Hex;
590
+ to: abitype10.Address | null;
654
591
  transactionIndex: number | null;
655
- typeHex: viem5828.Hex | null;
592
+ typeHex: viem5827.Hex | null;
656
593
  v: bigint;
657
594
  value: bigint;
658
595
  yParity: number;
659
- accessList: viem5828.AccessList;
596
+ accessList: viem5827.AccessList;
660
597
  authorizationList?: undefined | undefined;
661
- blobVersionedHashes: readonly viem5828.Hex[];
598
+ blobVersionedHashes: readonly viem5827.Hex[];
662
599
  chainId: number;
663
600
  type: "eip4844";
664
601
  gasPrice?: undefined | undefined;
@@ -671,21 +608,21 @@ declare const FangornConfig: {
671
608
  } | {
672
609
  blockHash: `0x${string}` | null;
673
610
  blockNumber: bigint | null;
674
- from: abitype9.Address;
611
+ from: abitype10.Address;
675
612
  gas: bigint;
676
- hash: viem5828.Hash;
677
- input: viem5828.Hex;
613
+ hash: viem5827.Hash;
614
+ input: viem5827.Hex;
678
615
  nonce: number;
679
- r: viem5828.Hex;
680
- s: viem5828.Hex;
681
- to: abitype9.Address | null;
616
+ r: viem5827.Hex;
617
+ s: viem5827.Hex;
618
+ to: abitype10.Address | null;
682
619
  transactionIndex: number | null;
683
- typeHex: viem5828.Hex | null;
620
+ typeHex: viem5827.Hex | null;
684
621
  v: bigint;
685
622
  value: bigint;
686
623
  yParity: number;
687
- accessList: viem5828.AccessList;
688
- authorizationList: viem5828.SignedAuthorizationList;
624
+ accessList: viem5827.AccessList;
625
+ authorizationList: viem5827.SignedAuthorizationList;
689
626
  blobVersionedHashes?: undefined | undefined;
690
627
  chainId: number;
691
628
  type: "eip7702";
@@ -704,22 +641,22 @@ declare const FangornConfig: {
704
641
  format: (args: viem_chains0.OpStackRpcTransactionReceipt, action?: string | undefined) => {
705
642
  blobGasPrice?: bigint | undefined;
706
643
  blobGasUsed?: bigint | undefined;
707
- blockHash: viem5828.Hash;
644
+ blockHash: viem5827.Hash;
708
645
  blockNumber: bigint;
709
646
  blockTimestamp?: bigint | undefined;
710
- contractAddress: abitype9.Address | null | undefined;
647
+ contractAddress: abitype10.Address | null | undefined;
711
648
  cumulativeGasUsed: bigint;
712
649
  effectiveGasPrice: bigint;
713
- from: abitype9.Address;
650
+ from: abitype10.Address;
714
651
  gasUsed: bigint;
715
- logs: viem5828.Log<bigint, number, false>[];
716
- logsBloom: viem5828.Hex;
652
+ logs: viem5827.Log<bigint, number, false>[];
653
+ logsBloom: viem5827.Hex;
717
654
  root?: `0x${string}` | undefined;
718
655
  status: "success" | "reverted";
719
- to: abitype9.Address | null;
720
- transactionHash: viem5828.Hash;
656
+ to: abitype10.Address | null;
657
+ transactionHash: viem5827.Hash;
721
658
  transactionIndex: number;
722
- type: viem5828.TransactionType;
659
+ type: viem5827.TransactionType;
723
660
  l1GasPrice: bigint | null;
724
661
  l1GasUsed: bigint | null;
725
662
  l1Fee: bigint | null;
@@ -728,17 +665,17 @@ declare const FangornConfig: {
728
665
  type: "transactionReceipt";
729
666
  };
730
667
  };
731
- prepareTransactionRequest?: ((args: viem5828.PrepareTransactionRequestParameters, options: {
668
+ prepareTransactionRequest?: ((args: viem5827.PrepareTransactionRequestParameters, options: {
732
669
  phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
733
- }) => Promise<viem5828.PrepareTransactionRequestParameters>) | [fn: ((args: viem5828.PrepareTransactionRequestParameters, options: {
670
+ }) => Promise<viem5827.PrepareTransactionRequestParameters>) | [fn: ((args: viem5827.PrepareTransactionRequestParameters, options: {
734
671
  phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
735
- }) => Promise<viem5828.PrepareTransactionRequestParameters>) | undefined, options: {
672
+ }) => Promise<viem5827.PrepareTransactionRequestParameters>) | undefined, options: {
736
673
  runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
737
674
  }] | undefined;
738
675
  serializers: {
739
676
  readonly transaction: typeof viem_chains0.serializeTransactionOpStack;
740
677
  };
741
- verifyHash?: ((client: viem5828.Client, parameters: viem5828.VerifyHashActionParameters) => Promise<viem5828.VerifyHashActionReturnType>) | undefined;
678
+ verifyHash?: ((client: viem5827.Client, parameters: viem5827.VerifyHashActionParameters) => Promise<viem5827.VerifyHashActionReturnType>) | undefined;
742
679
  readonly network: "base-sepolia";
743
680
  };
744
681
  rpcUrl: string;
@@ -750,11 +687,11 @@ declare const FangornConfig: {
750
687
  /**
751
688
  * The networks supported by Fangorn, by the name `CHAIN_NAME` takes.
752
689
  */
753
- declare const SupportedNetworks: Record<string, AppConfig>;
690
+ declare const SupportedNetworks: Record<string, NetworkConfig>;
754
691
  /**
755
- * Get a network's deployment by name ("arbitrumSepolia" or "baseSepolia").
692
+ * Get a network's deployment by name ("baseSepolia").
756
693
  * @returns The corresponding config if it is supported, otherwise an error
757
694
  */
758
- declare function getNetwork(name: string): AppConfig;
695
+ declare function getNetwork(name: string): NetworkConfig;
759
696
  //#endregion
760
- export { AppConfig, ArbitrumSepoliaConfig, BaseSepoliaConfig, FangornConfig, SupportedNetworks, appId, getNetwork as default, nonBlank, toAppId };
697
+ export { BaseSepoliaConfig, FangornConfig, NetworkConfig, SupportedNetworks, getNetwork as default, nonBlank };