@fangorn-network/sdk 2026.5.10 → 2026.6.16

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 (56) hide show
  1. package/README.md +87 -37
  2. package/lib/ crypto/constants.d.ts +4 -0
  3. package/lib/ crypto/constants.js +5 -0
  4. package/lib/ crypto/merkle.d.ts +10 -0
  5. package/lib/ crypto/merkle.js +34 -0
  6. package/lib/ crypto/utils.d.ts +1 -0
  7. package/lib/ crypto/utils.js +1 -0
  8. package/lib/cli/cli.js +61 -156
  9. package/lib/cli/index.d.ts +171 -170
  10. package/lib/config.d.ts +258 -257
  11. package/lib/config.js +3 -3
  12. package/lib/fangorn.js +2 -2
  13. package/lib/index.d.ts +1 -3
  14. package/lib/index.js +1 -3
  15. package/lib/modules/encryption/rand.d.ts +1 -1
  16. package/lib/providers/storage/pinata.d.ts +5 -1
  17. package/lib/providers/storage/pinata.js +24 -3
  18. package/lib/providers/storage/types.d.ts +8 -0
  19. package/lib/providers/storage/utils.js +2 -1
  20. package/lib/registries/datasource-registry/abi.d.ts +34 -4
  21. package/lib/registries/datasource-registry/abi.js +40 -5
  22. package/lib/registries/datasource-registry/index.d.ts +22 -13
  23. package/lib/registries/datasource-registry/index.js +76 -76
  24. package/lib/registries/index.d.ts +1 -1
  25. package/lib/registries/schema-registry/index.d.ts +3 -3
  26. package/lib/registries/schema-registry/index.js +1 -1
  27. package/lib/registries/settlement-registry/index.d.ts +2 -2
  28. package/lib/roles/consumer/index.d.ts +3 -3
  29. package/lib/roles/consumer/index.js +19 -12
  30. package/lib/roles/publisher/builders/bundle.d.ts +32 -0
  31. package/lib/roles/publisher/builders/bundle.js +137 -0
  32. package/lib/roles/publisher/builders/record-set.d.ts +17 -0
  33. package/lib/roles/publisher/builders/record-set.js +55 -0
  34. package/lib/roles/publisher/builders/types.d.ts +38 -0
  35. package/lib/roles/publisher/builders/types.js +1 -0
  36. package/lib/roles/publisher/builders/utils.d.ts +9 -0
  37. package/lib/roles/publisher/builders/utils.js +29 -0
  38. package/lib/roles/publisher/encryption.d.ts +18 -0
  39. package/lib/roles/publisher/encryption.js +38 -0
  40. package/lib/roles/publisher/index.d.ts +54 -36
  41. package/lib/roles/publisher/index.js +137 -174
  42. package/lib/roles/publisher/types.d.ts +61 -46
  43. package/lib/roles/schema/index.d.ts +30 -4
  44. package/lib/roles/schema/index.js +81 -47
  45. package/lib/roles/schema/types.d.ts +59 -37
  46. package/lib/roles/schema/validate.d.ts +9 -0
  47. package/lib/roles/schema/validate.js +128 -0
  48. package/lib/test/cleanup-embeddings-testdata.d.ts +1 -0
  49. package/lib/test/cleanup-embeddings-testdata.js +104 -0
  50. package/lib/test/publish_mb_bundle.d.ts +1 -0
  51. package/lib/test/publish_mb_bundle.js +296 -0
  52. package/lib/test/setup-embeddings-testdata.d.ts +13 -0
  53. package/lib/test/setup-embeddings-testdata.js +209 -0
  54. package/lib/test/testbed.d.ts +14 -8
  55. package/lib/test/testbed.js +28 -24
  56. package/package.json +16 -2
@@ -1,6 +1,7 @@
1
1
  import "./cli.js";
2
- import * as viem_chains14 from "viem/chains";
3
- import * as viem257 from "viem";
2
+ import * as viem_chains0 from "viem/chains";
3
+ import * as viem0 from "viem";
4
+ import * as abitype0 from "abitype";
4
5
 
5
6
  //#region src/cli/index.d.ts
6
7
  declare const getChain: (chainStr: string) => {
@@ -36,17 +37,17 @@ declare const getChain: (chainStr: string) => {
36
37
  testnet: true;
37
38
  custom?: Record<string, unknown> | undefined;
38
39
  extendSchema?: Record<string, unknown> | undefined;
39
- fees?: viem257.ChainFees<undefined> | undefined;
40
+ fees?: viem0.ChainFees<undefined> | undefined;
40
41
  formatters?: undefined;
41
- prepareTransactionRequest?: ((args: viem257.PrepareTransactionRequestParameters, options: {
42
+ prepareTransactionRequest?: ((args: viem0.PrepareTransactionRequestParameters, options: {
42
43
  phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
43
- }) => Promise<viem257.PrepareTransactionRequestParameters>) | [fn: ((args: viem257.PrepareTransactionRequestParameters, options: {
44
+ }) => Promise<viem0.PrepareTransactionRequestParameters>) | [fn: ((args: viem0.PrepareTransactionRequestParameters, options: {
44
45
  phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
45
- }) => Promise<viem257.PrepareTransactionRequestParameters>) | undefined, options: {
46
+ }) => Promise<viem0.PrepareTransactionRequestParameters>) | undefined, options: {
46
47
  runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
47
48
  }] | undefined;
48
- serializers?: viem257.ChainSerializers<undefined, viem257.TransactionSerializable> | undefined;
49
- verifyHash?: ((client: viem257.Client, parameters: viem257.VerifyHashActionParameters) => Promise<viem257.VerifyHashActionReturnType>) | undefined;
49
+ serializers?: viem0.ChainSerializers<undefined, viem0.TransactionSerializable> | undefined;
50
+ verifyHash?: ((client: viem0.Client, parameters: viem0.VerifyHashActionParameters) => Promise<viem0.VerifyHashActionReturnType>) | undefined;
50
51
  } | {
51
52
  blockExplorers: {
52
53
  readonly default: {
@@ -120,56 +121,56 @@ declare const getChain: (chainStr: string) => {
120
121
  testnet: true;
121
122
  custom?: Record<string, unknown> | undefined;
122
123
  extendSchema?: Record<string, unknown> | undefined;
123
- fees?: viem257.ChainFees<undefined> | undefined;
124
+ fees?: viem0.ChainFees<undefined> | undefined;
124
125
  formatters: {
125
126
  readonly block: {
126
127
  exclude: [] | undefined;
127
- format: (args: viem_chains14.OpStackRpcBlock, action?: string | undefined) => {
128
+ format: (args: viem_chains0.OpStackRpcBlock, action?: string | undefined) => {
128
129
  baseFeePerGas: bigint | null;
129
130
  blobGasUsed: bigint;
130
131
  difficulty: bigint;
131
132
  excessBlobGas: bigint;
132
- extraData: viem257.Hex;
133
+ extraData: viem0.Hex;
133
134
  gasLimit: bigint;
134
135
  gasUsed: bigint;
135
136
  hash: `0x${string}` | null;
136
137
  logsBloom: `0x${string}` | null;
137
- miner: viem257.Address;
138
- mixHash: viem257.Hash;
138
+ miner: abitype0.Address;
139
+ mixHash: viem0.Hash;
139
140
  nonce: `0x${string}` | null;
140
141
  number: bigint | null;
141
142
  parentBeaconBlockRoot?: `0x${string}` | undefined;
142
- parentHash: viem257.Hash;
143
- receiptsRoot: viem257.Hex;
144
- sealFields: viem257.Hex[];
145
- sha3Uncles: viem257.Hash;
143
+ parentHash: viem0.Hash;
144
+ receiptsRoot: viem0.Hex;
145
+ sealFields: viem0.Hex[];
146
+ sha3Uncles: viem0.Hash;
146
147
  size: bigint;
147
- stateRoot: viem257.Hash;
148
+ stateRoot: viem0.Hash;
148
149
  timestamp: bigint;
149
150
  totalDifficulty: bigint | null;
150
- transactions: `0x${string}`[] | viem_chains14.OpStackTransaction<boolean>[];
151
- transactionsRoot: viem257.Hash;
152
- uncles: viem257.Hash[];
153
- withdrawals?: viem257.Withdrawal[] | undefined | undefined;
151
+ transactions: `0x${string}`[] | viem_chains0.OpStackTransaction<boolean>[];
152
+ transactionsRoot: viem0.Hash;
153
+ uncles: viem0.Hash[];
154
+ withdrawals?: viem0.Withdrawal[] | undefined | undefined;
154
155
  withdrawalsRoot?: `0x${string}` | undefined;
155
156
  } & {};
156
157
  type: "block";
157
158
  };
158
159
  readonly transaction: {
159
160
  exclude: [] | undefined;
160
- format: (args: viem_chains14.OpStackRpcTransaction, action?: string | undefined) => ({
161
+ format: (args: viem_chains0.OpStackRpcTransaction, action?: string | undefined) => ({
161
162
  blockHash: `0x${string}` | null;
162
163
  blockNumber: bigint | null;
163
- from: viem257.Address;
164
+ from: abitype0.Address;
164
165
  gas: bigint;
165
- hash: viem257.Hash;
166
- input: viem257.Hex;
166
+ hash: viem0.Hash;
167
+ input: viem0.Hex;
167
168
  nonce: number;
168
- r: viem257.Hex;
169
- s: viem257.Hex;
170
- to: viem257.Address | null;
169
+ r: viem0.Hex;
170
+ s: viem0.Hex;
171
+ to: abitype0.Address | null;
171
172
  transactionIndex: number | null;
172
- typeHex: viem257.Hex | null;
173
+ typeHex: viem0.Hex | null;
173
174
  v: bigint;
174
175
  value: bigint;
175
176
  yParity: number;
@@ -179,23 +180,23 @@ declare const getChain: (chainStr: string) => {
179
180
  maxPriorityFeePerGas: bigint;
180
181
  isSystemTx?: boolean;
181
182
  mint?: bigint | undefined | undefined;
182
- sourceHash: viem257.Hex;
183
+ sourceHash: viem0.Hex;
183
184
  type: "deposit";
184
185
  } | {
185
- r: viem257.Hex;
186
- s: viem257.Hex;
186
+ r: viem0.Hex;
187
+ s: viem0.Hex;
187
188
  v: bigint;
188
- to: viem257.Address | null;
189
- from: viem257.Address;
189
+ to: abitype0.Address | null;
190
+ from: abitype0.Address;
190
191
  gas: bigint;
191
192
  nonce: number;
192
193
  value: bigint;
193
194
  blockHash: `0x${string}` | null;
194
195
  blockNumber: bigint | null;
195
- hash: viem257.Hash;
196
- input: viem257.Hex;
196
+ hash: viem0.Hash;
197
+ input: viem0.Hex;
197
198
  transactionIndex: number | null;
198
- typeHex: viem257.Hex | null;
199
+ typeHex: viem0.Hex | null;
199
200
  accessList?: undefined | undefined;
200
201
  authorizationList?: undefined | undefined;
201
202
  blobVersionedHashes?: undefined | undefined;
@@ -212,20 +213,20 @@ declare const getChain: (chainStr: string) => {
212
213
  } | {
213
214
  blockHash: `0x${string}` | null;
214
215
  blockNumber: bigint | null;
215
- from: viem257.Address;
216
+ from: abitype0.Address;
216
217
  gas: bigint;
217
- hash: viem257.Hash;
218
- input: viem257.Hex;
218
+ hash: viem0.Hash;
219
+ input: viem0.Hex;
219
220
  nonce: number;
220
- r: viem257.Hex;
221
- s: viem257.Hex;
222
- to: viem257.Address | null;
221
+ r: viem0.Hex;
222
+ s: viem0.Hex;
223
+ to: abitype0.Address | null;
223
224
  transactionIndex: number | null;
224
- typeHex: viem257.Hex | null;
225
+ typeHex: viem0.Hex | null;
225
226
  v: bigint;
226
227
  value: bigint;
227
228
  yParity: number;
228
- accessList: viem257.AccessList;
229
+ accessList: viem0.AccessList;
229
230
  authorizationList?: undefined | undefined;
230
231
  blobVersionedHashes?: undefined | undefined;
231
232
  chainId: number;
@@ -240,20 +241,20 @@ declare const getChain: (chainStr: string) => {
240
241
  } | {
241
242
  blockHash: `0x${string}` | null;
242
243
  blockNumber: bigint | null;
243
- from: viem257.Address;
244
+ from: abitype0.Address;
244
245
  gas: bigint;
245
- hash: viem257.Hash;
246
- input: viem257.Hex;
246
+ hash: viem0.Hash;
247
+ input: viem0.Hex;
247
248
  nonce: number;
248
- r: viem257.Hex;
249
- s: viem257.Hex;
250
- to: viem257.Address | null;
249
+ r: viem0.Hex;
250
+ s: viem0.Hex;
251
+ to: abitype0.Address | null;
251
252
  transactionIndex: number | null;
252
- typeHex: viem257.Hex | null;
253
+ typeHex: viem0.Hex | null;
253
254
  v: bigint;
254
255
  value: bigint;
255
256
  yParity: number;
256
- accessList: viem257.AccessList;
257
+ accessList: viem0.AccessList;
257
258
  authorizationList?: undefined | undefined;
258
259
  blobVersionedHashes?: undefined | undefined;
259
260
  chainId: number;
@@ -268,22 +269,22 @@ declare const getChain: (chainStr: string) => {
268
269
  } | {
269
270
  blockHash: `0x${string}` | null;
270
271
  blockNumber: bigint | null;
271
- from: viem257.Address;
272
+ from: abitype0.Address;
272
273
  gas: bigint;
273
- hash: viem257.Hash;
274
- input: viem257.Hex;
274
+ hash: viem0.Hash;
275
+ input: viem0.Hex;
275
276
  nonce: number;
276
- r: viem257.Hex;
277
- s: viem257.Hex;
278
- to: viem257.Address | null;
277
+ r: viem0.Hex;
278
+ s: viem0.Hex;
279
+ to: abitype0.Address | null;
279
280
  transactionIndex: number | null;
280
- typeHex: viem257.Hex | null;
281
+ typeHex: viem0.Hex | null;
281
282
  v: bigint;
282
283
  value: bigint;
283
284
  yParity: number;
284
- accessList: viem257.AccessList;
285
+ accessList: viem0.AccessList;
285
286
  authorizationList?: undefined | undefined;
286
- blobVersionedHashes: readonly viem257.Hex[];
287
+ blobVersionedHashes: readonly viem0.Hex[];
287
288
  chainId: number;
288
289
  type: "eip4844";
289
290
  gasPrice?: undefined | undefined;
@@ -296,21 +297,21 @@ declare const getChain: (chainStr: string) => {
296
297
  } | {
297
298
  blockHash: `0x${string}` | null;
298
299
  blockNumber: bigint | null;
299
- from: viem257.Address;
300
+ from: abitype0.Address;
300
301
  gas: bigint;
301
- hash: viem257.Hash;
302
- input: viem257.Hex;
302
+ hash: viem0.Hash;
303
+ input: viem0.Hex;
303
304
  nonce: number;
304
- r: viem257.Hex;
305
- s: viem257.Hex;
306
- to: viem257.Address | null;
305
+ r: viem0.Hex;
306
+ s: viem0.Hex;
307
+ to: abitype0.Address | null;
307
308
  transactionIndex: number | null;
308
- typeHex: viem257.Hex | null;
309
+ typeHex: viem0.Hex | null;
309
310
  v: bigint;
310
311
  value: bigint;
311
312
  yParity: number;
312
- accessList: viem257.AccessList;
313
- authorizationList: viem257.SignedAuthorizationList;
313
+ accessList: viem0.AccessList;
314
+ authorizationList: viem0.SignedAuthorizationList;
314
315
  blobVersionedHashes?: undefined | undefined;
315
316
  chainId: number;
316
317
  type: "eip7702";
@@ -326,25 +327,25 @@ declare const getChain: (chainStr: string) => {
326
327
  };
327
328
  readonly transactionReceipt: {
328
329
  exclude: [] | undefined;
329
- format: (args: viem_chains14.OpStackRpcTransactionReceipt, action?: string | undefined) => {
330
+ format: (args: viem_chains0.OpStackRpcTransactionReceipt, action?: string | undefined) => {
330
331
  blobGasPrice?: bigint | undefined;
331
332
  blobGasUsed?: bigint | undefined;
332
- blockHash: viem257.Hash;
333
+ blockHash: viem0.Hash;
333
334
  blockNumber: bigint;
334
335
  blockTimestamp?: bigint | undefined;
335
- contractAddress: viem257.Address | null | undefined;
336
+ contractAddress: abitype0.Address | null | undefined;
336
337
  cumulativeGasUsed: bigint;
337
338
  effectiveGasPrice: bigint;
338
- from: viem257.Address;
339
+ from: abitype0.Address;
339
340
  gasUsed: bigint;
340
- logs: viem257.Log<bigint, number, false>[];
341
- logsBloom: viem257.Hex;
341
+ logs: viem0.Log<bigint, number, false>[];
342
+ logsBloom: viem0.Hex;
342
343
  root?: `0x${string}` | undefined;
343
344
  status: "success" | "reverted";
344
- to: viem257.Address | null;
345
- transactionHash: viem257.Hash;
345
+ to: abitype0.Address | null;
346
+ transactionHash: viem0.Hash;
346
347
  transactionIndex: number;
347
- type: viem257.TransactionType;
348
+ type: viem0.TransactionType;
348
349
  l1GasPrice: bigint | null;
349
350
  l1GasUsed: bigint | null;
350
351
  l1Fee: bigint | null;
@@ -353,17 +354,17 @@ declare const getChain: (chainStr: string) => {
353
354
  type: "transactionReceipt";
354
355
  };
355
356
  };
356
- prepareTransactionRequest?: ((args: viem257.PrepareTransactionRequestParameters, options: {
357
+ prepareTransactionRequest?: ((args: viem0.PrepareTransactionRequestParameters, options: {
357
358
  phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
358
- }) => Promise<viem257.PrepareTransactionRequestParameters>) | [fn: ((args: viem257.PrepareTransactionRequestParameters, options: {
359
+ }) => Promise<viem0.PrepareTransactionRequestParameters>) | [fn: ((args: viem0.PrepareTransactionRequestParameters, options: {
359
360
  phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
360
- }) => Promise<viem257.PrepareTransactionRequestParameters>) | undefined, options: {
361
+ }) => Promise<viem0.PrepareTransactionRequestParameters>) | undefined, options: {
361
362
  runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
362
363
  }] | undefined;
363
364
  serializers: {
364
- readonly transaction: typeof viem_chains14.serializeTransactionOpStack;
365
+ readonly transaction: typeof viem_chains0.serializeTransactionOpStack;
365
366
  };
366
- verifyHash?: ((client: viem257.Client, parameters: viem257.VerifyHashActionParameters) => Promise<viem257.VerifyHashActionReturnType>) | undefined;
367
+ verifyHash?: ((client: viem0.Client, parameters: viem0.VerifyHashActionParameters) => Promise<viem0.VerifyHashActionReturnType>) | undefined;
367
368
  readonly network: "base-sepolia";
368
369
  };
369
370
  declare const handleCancel: (value: unknown) => void;
@@ -400,17 +401,17 @@ declare const selectChain: () => Promise<{
400
401
  testnet: true;
401
402
  custom?: Record<string, unknown> | undefined;
402
403
  extendSchema?: Record<string, unknown> | undefined;
403
- fees?: viem257.ChainFees<undefined> | undefined;
404
+ fees?: viem0.ChainFees<undefined> | undefined;
404
405
  formatters?: undefined;
405
- prepareTransactionRequest?: ((args: viem257.PrepareTransactionRequestParameters, options: {
406
+ prepareTransactionRequest?: ((args: viem0.PrepareTransactionRequestParameters, options: {
406
407
  phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
407
- }) => Promise<viem257.PrepareTransactionRequestParameters>) | [fn: ((args: viem257.PrepareTransactionRequestParameters, options: {
408
+ }) => Promise<viem0.PrepareTransactionRequestParameters>) | [fn: ((args: viem0.PrepareTransactionRequestParameters, options: {
408
409
  phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
409
- }) => Promise<viem257.PrepareTransactionRequestParameters>) | undefined, options: {
410
+ }) => Promise<viem0.PrepareTransactionRequestParameters>) | undefined, options: {
410
411
  runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
411
412
  }] | undefined;
412
- serializers?: viem257.ChainSerializers<undefined, viem257.TransactionSerializable> | undefined;
413
- verifyHash?: ((client: viem257.Client, parameters: viem257.VerifyHashActionParameters) => Promise<viem257.VerifyHashActionReturnType>) | undefined;
413
+ serializers?: viem0.ChainSerializers<undefined, viem0.TransactionSerializable> | undefined;
414
+ verifyHash?: ((client: viem0.Client, parameters: viem0.VerifyHashActionParameters) => Promise<viem0.VerifyHashActionReturnType>) | undefined;
414
415
  } | {
415
416
  blockExplorers: {
416
417
  readonly default: {
@@ -484,56 +485,56 @@ declare const selectChain: () => Promise<{
484
485
  testnet: true;
485
486
  custom?: Record<string, unknown> | undefined;
486
487
  extendSchema?: Record<string, unknown> | undefined;
487
- fees?: viem257.ChainFees<undefined> | undefined;
488
+ fees?: viem0.ChainFees<undefined> | undefined;
488
489
  formatters: {
489
490
  readonly block: {
490
491
  exclude: [] | undefined;
491
- format: (args: viem_chains14.OpStackRpcBlock, action?: string | undefined) => {
492
+ format: (args: viem_chains0.OpStackRpcBlock, action?: string | undefined) => {
492
493
  baseFeePerGas: bigint | null;
493
494
  blobGasUsed: bigint;
494
495
  difficulty: bigint;
495
496
  excessBlobGas: bigint;
496
- extraData: viem257.Hex;
497
+ extraData: viem0.Hex;
497
498
  gasLimit: bigint;
498
499
  gasUsed: bigint;
499
500
  hash: `0x${string}` | null;
500
501
  logsBloom: `0x${string}` | null;
501
- miner: viem257.Address;
502
- mixHash: viem257.Hash;
502
+ miner: abitype0.Address;
503
+ mixHash: viem0.Hash;
503
504
  nonce: `0x${string}` | null;
504
505
  number: bigint | null;
505
506
  parentBeaconBlockRoot?: `0x${string}` | undefined;
506
- parentHash: viem257.Hash;
507
- receiptsRoot: viem257.Hex;
508
- sealFields: viem257.Hex[];
509
- sha3Uncles: viem257.Hash;
507
+ parentHash: viem0.Hash;
508
+ receiptsRoot: viem0.Hex;
509
+ sealFields: viem0.Hex[];
510
+ sha3Uncles: viem0.Hash;
510
511
  size: bigint;
511
- stateRoot: viem257.Hash;
512
+ stateRoot: viem0.Hash;
512
513
  timestamp: bigint;
513
514
  totalDifficulty: bigint | null;
514
- transactions: `0x${string}`[] | viem_chains14.OpStackTransaction<boolean>[];
515
- transactionsRoot: viem257.Hash;
516
- uncles: viem257.Hash[];
517
- withdrawals?: viem257.Withdrawal[] | undefined | undefined;
515
+ transactions: `0x${string}`[] | viem_chains0.OpStackTransaction<boolean>[];
516
+ transactionsRoot: viem0.Hash;
517
+ uncles: viem0.Hash[];
518
+ withdrawals?: viem0.Withdrawal[] | undefined | undefined;
518
519
  withdrawalsRoot?: `0x${string}` | undefined;
519
520
  } & {};
520
521
  type: "block";
521
522
  };
522
523
  readonly transaction: {
523
524
  exclude: [] | undefined;
524
- format: (args: viem_chains14.OpStackRpcTransaction, action?: string | undefined) => ({
525
+ format: (args: viem_chains0.OpStackRpcTransaction, action?: string | undefined) => ({
525
526
  blockHash: `0x${string}` | null;
526
527
  blockNumber: bigint | null;
527
- from: viem257.Address;
528
+ from: abitype0.Address;
528
529
  gas: bigint;
529
- hash: viem257.Hash;
530
- input: viem257.Hex;
530
+ hash: viem0.Hash;
531
+ input: viem0.Hex;
531
532
  nonce: number;
532
- r: viem257.Hex;
533
- s: viem257.Hex;
534
- to: viem257.Address | null;
533
+ r: viem0.Hex;
534
+ s: viem0.Hex;
535
+ to: abitype0.Address | null;
535
536
  transactionIndex: number | null;
536
- typeHex: viem257.Hex | null;
537
+ typeHex: viem0.Hex | null;
537
538
  v: bigint;
538
539
  value: bigint;
539
540
  yParity: number;
@@ -543,23 +544,23 @@ declare const selectChain: () => Promise<{
543
544
  maxPriorityFeePerGas: bigint;
544
545
  isSystemTx?: boolean;
545
546
  mint?: bigint | undefined | undefined;
546
- sourceHash: viem257.Hex;
547
+ sourceHash: viem0.Hex;
547
548
  type: "deposit";
548
549
  } | {
549
- r: viem257.Hex;
550
- s: viem257.Hex;
550
+ r: viem0.Hex;
551
+ s: viem0.Hex;
551
552
  v: bigint;
552
- to: viem257.Address | null;
553
- from: viem257.Address;
553
+ to: abitype0.Address | null;
554
+ from: abitype0.Address;
554
555
  gas: bigint;
555
556
  nonce: number;
556
557
  value: bigint;
557
558
  blockHash: `0x${string}` | null;
558
559
  blockNumber: bigint | null;
559
- hash: viem257.Hash;
560
- input: viem257.Hex;
560
+ hash: viem0.Hash;
561
+ input: viem0.Hex;
561
562
  transactionIndex: number | null;
562
- typeHex: viem257.Hex | null;
563
+ typeHex: viem0.Hex | null;
563
564
  accessList?: undefined | undefined;
564
565
  authorizationList?: undefined | undefined;
565
566
  blobVersionedHashes?: undefined | undefined;
@@ -576,20 +577,20 @@ declare const selectChain: () => Promise<{
576
577
  } | {
577
578
  blockHash: `0x${string}` | null;
578
579
  blockNumber: bigint | null;
579
- from: viem257.Address;
580
+ from: abitype0.Address;
580
581
  gas: bigint;
581
- hash: viem257.Hash;
582
- input: viem257.Hex;
582
+ hash: viem0.Hash;
583
+ input: viem0.Hex;
583
584
  nonce: number;
584
- r: viem257.Hex;
585
- s: viem257.Hex;
586
- to: viem257.Address | null;
585
+ r: viem0.Hex;
586
+ s: viem0.Hex;
587
+ to: abitype0.Address | null;
587
588
  transactionIndex: number | null;
588
- typeHex: viem257.Hex | null;
589
+ typeHex: viem0.Hex | null;
589
590
  v: bigint;
590
591
  value: bigint;
591
592
  yParity: number;
592
- accessList: viem257.AccessList;
593
+ accessList: viem0.AccessList;
593
594
  authorizationList?: undefined | undefined;
594
595
  blobVersionedHashes?: undefined | undefined;
595
596
  chainId: number;
@@ -604,20 +605,20 @@ declare const selectChain: () => Promise<{
604
605
  } | {
605
606
  blockHash: `0x${string}` | null;
606
607
  blockNumber: bigint | null;
607
- from: viem257.Address;
608
+ from: abitype0.Address;
608
609
  gas: bigint;
609
- hash: viem257.Hash;
610
- input: viem257.Hex;
610
+ hash: viem0.Hash;
611
+ input: viem0.Hex;
611
612
  nonce: number;
612
- r: viem257.Hex;
613
- s: viem257.Hex;
614
- to: viem257.Address | null;
613
+ r: viem0.Hex;
614
+ s: viem0.Hex;
615
+ to: abitype0.Address | null;
615
616
  transactionIndex: number | null;
616
- typeHex: viem257.Hex | null;
617
+ typeHex: viem0.Hex | null;
617
618
  v: bigint;
618
619
  value: bigint;
619
620
  yParity: number;
620
- accessList: viem257.AccessList;
621
+ accessList: viem0.AccessList;
621
622
  authorizationList?: undefined | undefined;
622
623
  blobVersionedHashes?: undefined | undefined;
623
624
  chainId: number;
@@ -632,22 +633,22 @@ declare const selectChain: () => Promise<{
632
633
  } | {
633
634
  blockHash: `0x${string}` | null;
634
635
  blockNumber: bigint | null;
635
- from: viem257.Address;
636
+ from: abitype0.Address;
636
637
  gas: bigint;
637
- hash: viem257.Hash;
638
- input: viem257.Hex;
638
+ hash: viem0.Hash;
639
+ input: viem0.Hex;
639
640
  nonce: number;
640
- r: viem257.Hex;
641
- s: viem257.Hex;
642
- to: viem257.Address | null;
641
+ r: viem0.Hex;
642
+ s: viem0.Hex;
643
+ to: abitype0.Address | null;
643
644
  transactionIndex: number | null;
644
- typeHex: viem257.Hex | null;
645
+ typeHex: viem0.Hex | null;
645
646
  v: bigint;
646
647
  value: bigint;
647
648
  yParity: number;
648
- accessList: viem257.AccessList;
649
+ accessList: viem0.AccessList;
649
650
  authorizationList?: undefined | undefined;
650
- blobVersionedHashes: readonly viem257.Hex[];
651
+ blobVersionedHashes: readonly viem0.Hex[];
651
652
  chainId: number;
652
653
  type: "eip4844";
653
654
  gasPrice?: undefined | undefined;
@@ -660,21 +661,21 @@ declare const selectChain: () => Promise<{
660
661
  } | {
661
662
  blockHash: `0x${string}` | null;
662
663
  blockNumber: bigint | null;
663
- from: viem257.Address;
664
+ from: abitype0.Address;
664
665
  gas: bigint;
665
- hash: viem257.Hash;
666
- input: viem257.Hex;
666
+ hash: viem0.Hash;
667
+ input: viem0.Hex;
667
668
  nonce: number;
668
- r: viem257.Hex;
669
- s: viem257.Hex;
670
- to: viem257.Address | null;
669
+ r: viem0.Hex;
670
+ s: viem0.Hex;
671
+ to: abitype0.Address | null;
671
672
  transactionIndex: number | null;
672
- typeHex: viem257.Hex | null;
673
+ typeHex: viem0.Hex | null;
673
674
  v: bigint;
674
675
  value: bigint;
675
676
  yParity: number;
676
- accessList: viem257.AccessList;
677
- authorizationList: viem257.SignedAuthorizationList;
677
+ accessList: viem0.AccessList;
678
+ authorizationList: viem0.SignedAuthorizationList;
678
679
  blobVersionedHashes?: undefined | undefined;
679
680
  chainId: number;
680
681
  type: "eip7702";
@@ -690,25 +691,25 @@ declare const selectChain: () => Promise<{
690
691
  };
691
692
  readonly transactionReceipt: {
692
693
  exclude: [] | undefined;
693
- format: (args: viem_chains14.OpStackRpcTransactionReceipt, action?: string | undefined) => {
694
+ format: (args: viem_chains0.OpStackRpcTransactionReceipt, action?: string | undefined) => {
694
695
  blobGasPrice?: bigint | undefined;
695
696
  blobGasUsed?: bigint | undefined;
696
- blockHash: viem257.Hash;
697
+ blockHash: viem0.Hash;
697
698
  blockNumber: bigint;
698
699
  blockTimestamp?: bigint | undefined;
699
- contractAddress: viem257.Address | null | undefined;
700
+ contractAddress: abitype0.Address | null | undefined;
700
701
  cumulativeGasUsed: bigint;
701
702
  effectiveGasPrice: bigint;
702
- from: viem257.Address;
703
+ from: abitype0.Address;
703
704
  gasUsed: bigint;
704
- logs: viem257.Log<bigint, number, false>[];
705
- logsBloom: viem257.Hex;
705
+ logs: viem0.Log<bigint, number, false>[];
706
+ logsBloom: viem0.Hex;
706
707
  root?: `0x${string}` | undefined;
707
708
  status: "success" | "reverted";
708
- to: viem257.Address | null;
709
- transactionHash: viem257.Hash;
709
+ to: abitype0.Address | null;
710
+ transactionHash: viem0.Hash;
710
711
  transactionIndex: number;
711
- type: viem257.TransactionType;
712
+ type: viem0.TransactionType;
712
713
  l1GasPrice: bigint | null;
713
714
  l1GasUsed: bigint | null;
714
715
  l1Fee: bigint | null;
@@ -717,17 +718,17 @@ declare const selectChain: () => Promise<{
717
718
  type: "transactionReceipt";
718
719
  };
719
720
  };
720
- prepareTransactionRequest?: ((args: viem257.PrepareTransactionRequestParameters, options: {
721
+ prepareTransactionRequest?: ((args: viem0.PrepareTransactionRequestParameters, options: {
721
722
  phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
722
- }) => Promise<viem257.PrepareTransactionRequestParameters>) | [fn: ((args: viem257.PrepareTransactionRequestParameters, options: {
723
+ }) => Promise<viem0.PrepareTransactionRequestParameters>) | [fn: ((args: viem0.PrepareTransactionRequestParameters, options: {
723
724
  phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
724
- }) => Promise<viem257.PrepareTransactionRequestParameters>) | undefined, options: {
725
+ }) => Promise<viem0.PrepareTransactionRequestParameters>) | undefined, options: {
725
726
  runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
726
727
  }] | undefined;
727
728
  serializers: {
728
- readonly transaction: typeof viem_chains14.serializeTransactionOpStack;
729
+ readonly transaction: typeof viem_chains0.serializeTransactionOpStack;
729
730
  };
730
- verifyHash?: ((client: viem257.Client, parameters: viem257.VerifyHashActionParameters) => Promise<viem257.VerifyHashActionReturnType>) | undefined;
731
+ verifyHash?: ((client: viem0.Client, parameters: viem0.VerifyHashActionParameters) => Promise<viem0.VerifyHashActionReturnType>) | undefined;
731
732
  readonly network: "base-sepolia";
732
733
  }>;
733
734
  declare function parseGadgetArg(raw: string): {