@fangorn-network/sdk 2026.4.23 → 2026.5.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cli/cli.js CHANGED
@@ -91,7 +91,7 @@ async function resolveSchemaId(fangorn, schemaNameOrId) {
91
91
  }
92
92
  }
93
93
  const program = new Command();
94
- program.name("fangorn").description("Fangorn Network CLI").version("0.1.0");
94
+ program.name("fangorn").description("Fangorn Network CLI").version("0.2.1");
95
95
  program.command("init").description("Configure your Fangorn credentials").action(async () => {
96
96
  intro("Fangorn Setup");
97
97
  const privateKey = await text({
@@ -1,6 +1,6 @@
1
1
  import "./cli.js";
2
- import * as viem_chains0 from "viem/chains";
3
- import * as viem2 from "viem";
2
+ import * as viem_chains14 from "viem/chains";
3
+ import * as viem257 from "viem";
4
4
 
5
5
  //#region src/cli/index.d.ts
6
6
  declare const getChain: (chainStr: string) => {
@@ -36,17 +36,17 @@ declare const getChain: (chainStr: string) => {
36
36
  testnet: true;
37
37
  custom?: Record<string, unknown> | undefined;
38
38
  extendSchema?: Record<string, unknown> | undefined;
39
- fees?: viem2.ChainFees<undefined> | undefined;
39
+ fees?: viem257.ChainFees<undefined> | undefined;
40
40
  formatters?: undefined;
41
- prepareTransactionRequest?: ((args: viem2.PrepareTransactionRequestParameters, options: {
41
+ prepareTransactionRequest?: ((args: viem257.PrepareTransactionRequestParameters, options: {
42
42
  phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
43
- }) => Promise<viem2.PrepareTransactionRequestParameters>) | [fn: ((args: viem2.PrepareTransactionRequestParameters, options: {
43
+ }) => Promise<viem257.PrepareTransactionRequestParameters>) | [fn: ((args: viem257.PrepareTransactionRequestParameters, options: {
44
44
  phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
45
- }) => Promise<viem2.PrepareTransactionRequestParameters>) | undefined, options: {
45
+ }) => Promise<viem257.PrepareTransactionRequestParameters>) | undefined, options: {
46
46
  runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
47
47
  }] | undefined;
48
- serializers?: viem2.ChainSerializers<undefined, viem2.TransactionSerializable> | undefined;
49
- verifyHash?: ((client: viem2.Client, parameters: viem2.VerifyHashActionParameters) => Promise<viem2.VerifyHashActionReturnType>) | undefined;
48
+ serializers?: viem257.ChainSerializers<undefined, viem257.TransactionSerializable> | undefined;
49
+ verifyHash?: ((client: viem257.Client, parameters: viem257.VerifyHashActionParameters) => Promise<viem257.VerifyHashActionReturnType>) | undefined;
50
50
  } | {
51
51
  blockExplorers: {
52
52
  readonly default: {
@@ -120,56 +120,56 @@ declare const getChain: (chainStr: string) => {
120
120
  testnet: true;
121
121
  custom?: Record<string, unknown> | undefined;
122
122
  extendSchema?: Record<string, unknown> | undefined;
123
- fees?: viem2.ChainFees<undefined> | undefined;
123
+ fees?: viem257.ChainFees<undefined> | undefined;
124
124
  formatters: {
125
125
  readonly block: {
126
126
  exclude: [] | undefined;
127
- format: (args: viem_chains0.OpStackRpcBlock, action?: string | undefined) => {
127
+ format: (args: viem_chains14.OpStackRpcBlock, action?: string | undefined) => {
128
128
  baseFeePerGas: bigint | null;
129
129
  blobGasUsed: bigint;
130
130
  difficulty: bigint;
131
131
  excessBlobGas: bigint;
132
- extraData: viem2.Hex;
132
+ extraData: viem257.Hex;
133
133
  gasLimit: bigint;
134
134
  gasUsed: bigint;
135
135
  hash: `0x${string}` | null;
136
136
  logsBloom: `0x${string}` | null;
137
- miner: viem2.Address;
138
- mixHash: viem2.Hash;
137
+ miner: viem257.Address;
138
+ mixHash: viem257.Hash;
139
139
  nonce: `0x${string}` | null;
140
140
  number: bigint | null;
141
141
  parentBeaconBlockRoot?: `0x${string}` | undefined;
142
- parentHash: viem2.Hash;
143
- receiptsRoot: viem2.Hex;
144
- sealFields: viem2.Hex[];
145
- sha3Uncles: viem2.Hash;
142
+ parentHash: viem257.Hash;
143
+ receiptsRoot: viem257.Hex;
144
+ sealFields: viem257.Hex[];
145
+ sha3Uncles: viem257.Hash;
146
146
  size: bigint;
147
- stateRoot: viem2.Hash;
147
+ stateRoot: viem257.Hash;
148
148
  timestamp: bigint;
149
149
  totalDifficulty: bigint | null;
150
- transactions: `0x${string}`[] | viem_chains0.OpStackTransaction<boolean>[];
151
- transactionsRoot: viem2.Hash;
152
- uncles: viem2.Hash[];
153
- withdrawals?: viem2.Withdrawal[] | undefined | undefined;
150
+ transactions: `0x${string}`[] | viem_chains14.OpStackTransaction<boolean>[];
151
+ transactionsRoot: viem257.Hash;
152
+ uncles: viem257.Hash[];
153
+ withdrawals?: viem257.Withdrawal[] | undefined | undefined;
154
154
  withdrawalsRoot?: `0x${string}` | undefined;
155
155
  } & {};
156
156
  type: "block";
157
157
  };
158
158
  readonly transaction: {
159
159
  exclude: [] | undefined;
160
- format: (args: viem_chains0.OpStackRpcTransaction, action?: string | undefined) => ({
160
+ format: (args: viem_chains14.OpStackRpcTransaction, action?: string | undefined) => ({
161
161
  blockHash: `0x${string}` | null;
162
162
  blockNumber: bigint | null;
163
- from: viem2.Address;
163
+ from: viem257.Address;
164
164
  gas: bigint;
165
- hash: viem2.Hash;
166
- input: viem2.Hex;
165
+ hash: viem257.Hash;
166
+ input: viem257.Hex;
167
167
  nonce: number;
168
- r: viem2.Hex;
169
- s: viem2.Hex;
170
- to: viem2.Address | null;
168
+ r: viem257.Hex;
169
+ s: viem257.Hex;
170
+ to: viem257.Address | null;
171
171
  transactionIndex: number | null;
172
- typeHex: viem2.Hex | null;
172
+ typeHex: viem257.Hex | null;
173
173
  v: bigint;
174
174
  value: bigint;
175
175
  yParity: number;
@@ -179,23 +179,23 @@ declare const getChain: (chainStr: string) => {
179
179
  maxPriorityFeePerGas: bigint;
180
180
  isSystemTx?: boolean;
181
181
  mint?: bigint | undefined | undefined;
182
- sourceHash: viem2.Hex;
182
+ sourceHash: viem257.Hex;
183
183
  type: "deposit";
184
184
  } | {
185
- r: viem2.Hex;
186
- s: viem2.Hex;
185
+ r: viem257.Hex;
186
+ s: viem257.Hex;
187
187
  v: bigint;
188
- to: viem2.Address | null;
189
- from: viem2.Address;
188
+ to: viem257.Address | null;
189
+ from: viem257.Address;
190
190
  gas: bigint;
191
191
  nonce: number;
192
192
  value: bigint;
193
193
  blockHash: `0x${string}` | null;
194
194
  blockNumber: bigint | null;
195
- hash: viem2.Hash;
196
- input: viem2.Hex;
195
+ hash: viem257.Hash;
196
+ input: viem257.Hex;
197
197
  transactionIndex: number | null;
198
- typeHex: viem2.Hex | null;
198
+ typeHex: viem257.Hex | null;
199
199
  accessList?: undefined | undefined;
200
200
  authorizationList?: undefined | undefined;
201
201
  blobVersionedHashes?: undefined | undefined;
@@ -212,20 +212,20 @@ declare const getChain: (chainStr: string) => {
212
212
  } | {
213
213
  blockHash: `0x${string}` | null;
214
214
  blockNumber: bigint | null;
215
- from: viem2.Address;
215
+ from: viem257.Address;
216
216
  gas: bigint;
217
- hash: viem2.Hash;
218
- input: viem2.Hex;
217
+ hash: viem257.Hash;
218
+ input: viem257.Hex;
219
219
  nonce: number;
220
- r: viem2.Hex;
221
- s: viem2.Hex;
222
- to: viem2.Address | null;
220
+ r: viem257.Hex;
221
+ s: viem257.Hex;
222
+ to: viem257.Address | null;
223
223
  transactionIndex: number | null;
224
- typeHex: viem2.Hex | null;
224
+ typeHex: viem257.Hex | null;
225
225
  v: bigint;
226
226
  value: bigint;
227
227
  yParity: number;
228
- accessList: viem2.AccessList;
228
+ accessList: viem257.AccessList;
229
229
  authorizationList?: undefined | undefined;
230
230
  blobVersionedHashes?: undefined | undefined;
231
231
  chainId: number;
@@ -240,20 +240,20 @@ declare const getChain: (chainStr: string) => {
240
240
  } | {
241
241
  blockHash: `0x${string}` | null;
242
242
  blockNumber: bigint | null;
243
- from: viem2.Address;
243
+ from: viem257.Address;
244
244
  gas: bigint;
245
- hash: viem2.Hash;
246
- input: viem2.Hex;
245
+ hash: viem257.Hash;
246
+ input: viem257.Hex;
247
247
  nonce: number;
248
- r: viem2.Hex;
249
- s: viem2.Hex;
250
- to: viem2.Address | null;
248
+ r: viem257.Hex;
249
+ s: viem257.Hex;
250
+ to: viem257.Address | null;
251
251
  transactionIndex: number | null;
252
- typeHex: viem2.Hex | null;
252
+ typeHex: viem257.Hex | null;
253
253
  v: bigint;
254
254
  value: bigint;
255
255
  yParity: number;
256
- accessList: viem2.AccessList;
256
+ accessList: viem257.AccessList;
257
257
  authorizationList?: undefined | undefined;
258
258
  blobVersionedHashes?: undefined | undefined;
259
259
  chainId: number;
@@ -268,22 +268,22 @@ declare const getChain: (chainStr: string) => {
268
268
  } | {
269
269
  blockHash: `0x${string}` | null;
270
270
  blockNumber: bigint | null;
271
- from: viem2.Address;
271
+ from: viem257.Address;
272
272
  gas: bigint;
273
- hash: viem2.Hash;
274
- input: viem2.Hex;
273
+ hash: viem257.Hash;
274
+ input: viem257.Hex;
275
275
  nonce: number;
276
- r: viem2.Hex;
277
- s: viem2.Hex;
278
- to: viem2.Address | null;
276
+ r: viem257.Hex;
277
+ s: viem257.Hex;
278
+ to: viem257.Address | null;
279
279
  transactionIndex: number | null;
280
- typeHex: viem2.Hex | null;
280
+ typeHex: viem257.Hex | null;
281
281
  v: bigint;
282
282
  value: bigint;
283
283
  yParity: number;
284
- accessList: viem2.AccessList;
284
+ accessList: viem257.AccessList;
285
285
  authorizationList?: undefined | undefined;
286
- blobVersionedHashes: readonly viem2.Hex[];
286
+ blobVersionedHashes: readonly viem257.Hex[];
287
287
  chainId: number;
288
288
  type: "eip4844";
289
289
  gasPrice?: undefined | undefined;
@@ -296,21 +296,21 @@ declare const getChain: (chainStr: string) => {
296
296
  } | {
297
297
  blockHash: `0x${string}` | null;
298
298
  blockNumber: bigint | null;
299
- from: viem2.Address;
299
+ from: viem257.Address;
300
300
  gas: bigint;
301
- hash: viem2.Hash;
302
- input: viem2.Hex;
301
+ hash: viem257.Hash;
302
+ input: viem257.Hex;
303
303
  nonce: number;
304
- r: viem2.Hex;
305
- s: viem2.Hex;
306
- to: viem2.Address | null;
304
+ r: viem257.Hex;
305
+ s: viem257.Hex;
306
+ to: viem257.Address | null;
307
307
  transactionIndex: number | null;
308
- typeHex: viem2.Hex | null;
308
+ typeHex: viem257.Hex | null;
309
309
  v: bigint;
310
310
  value: bigint;
311
311
  yParity: number;
312
- accessList: viem2.AccessList;
313
- authorizationList: viem2.SignedAuthorizationList;
312
+ accessList: viem257.AccessList;
313
+ authorizationList: viem257.SignedAuthorizationList;
314
314
  blobVersionedHashes?: undefined | undefined;
315
315
  chainId: number;
316
316
  type: "eip7702";
@@ -326,25 +326,25 @@ declare const getChain: (chainStr: string) => {
326
326
  };
327
327
  readonly transactionReceipt: {
328
328
  exclude: [] | undefined;
329
- format: (args: viem_chains0.OpStackRpcTransactionReceipt, action?: string | undefined) => {
329
+ format: (args: viem_chains14.OpStackRpcTransactionReceipt, action?: string | undefined) => {
330
330
  blobGasPrice?: bigint | undefined;
331
331
  blobGasUsed?: bigint | undefined;
332
- blockHash: viem2.Hash;
332
+ blockHash: viem257.Hash;
333
333
  blockNumber: bigint;
334
334
  blockTimestamp?: bigint | undefined;
335
- contractAddress: viem2.Address | null | undefined;
335
+ contractAddress: viem257.Address | null | undefined;
336
336
  cumulativeGasUsed: bigint;
337
337
  effectiveGasPrice: bigint;
338
- from: viem2.Address;
338
+ from: viem257.Address;
339
339
  gasUsed: bigint;
340
- logs: viem2.Log<bigint, number, false>[];
341
- logsBloom: viem2.Hex;
340
+ logs: viem257.Log<bigint, number, false>[];
341
+ logsBloom: viem257.Hex;
342
342
  root?: `0x${string}` | undefined;
343
343
  status: "success" | "reverted";
344
- to: viem2.Address | null;
345
- transactionHash: viem2.Hash;
344
+ to: viem257.Address | null;
345
+ transactionHash: viem257.Hash;
346
346
  transactionIndex: number;
347
- type: viem2.TransactionType;
347
+ type: viem257.TransactionType;
348
348
  l1GasPrice: bigint | null;
349
349
  l1GasUsed: bigint | null;
350
350
  l1Fee: bigint | null;
@@ -353,17 +353,17 @@ declare const getChain: (chainStr: string) => {
353
353
  type: "transactionReceipt";
354
354
  };
355
355
  };
356
- prepareTransactionRequest?: ((args: viem2.PrepareTransactionRequestParameters, options: {
356
+ prepareTransactionRequest?: ((args: viem257.PrepareTransactionRequestParameters, options: {
357
357
  phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
358
- }) => Promise<viem2.PrepareTransactionRequestParameters>) | [fn: ((args: viem2.PrepareTransactionRequestParameters, options: {
358
+ }) => Promise<viem257.PrepareTransactionRequestParameters>) | [fn: ((args: viem257.PrepareTransactionRequestParameters, options: {
359
359
  phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
360
- }) => Promise<viem2.PrepareTransactionRequestParameters>) | undefined, options: {
360
+ }) => Promise<viem257.PrepareTransactionRequestParameters>) | undefined, options: {
361
361
  runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
362
362
  }] | undefined;
363
363
  serializers: {
364
- readonly transaction: typeof viem_chains0.serializeTransactionOpStack;
364
+ readonly transaction: typeof viem_chains14.serializeTransactionOpStack;
365
365
  };
366
- verifyHash?: ((client: viem2.Client, parameters: viem2.VerifyHashActionParameters) => Promise<viem2.VerifyHashActionReturnType>) | undefined;
366
+ verifyHash?: ((client: viem257.Client, parameters: viem257.VerifyHashActionParameters) => Promise<viem257.VerifyHashActionReturnType>) | undefined;
367
367
  readonly network: "base-sepolia";
368
368
  };
369
369
  declare const handleCancel: (value: unknown) => void;
@@ -400,17 +400,17 @@ declare const selectChain: () => Promise<{
400
400
  testnet: true;
401
401
  custom?: Record<string, unknown> | undefined;
402
402
  extendSchema?: Record<string, unknown> | undefined;
403
- fees?: viem2.ChainFees<undefined> | undefined;
403
+ fees?: viem257.ChainFees<undefined> | undefined;
404
404
  formatters?: undefined;
405
- prepareTransactionRequest?: ((args: viem2.PrepareTransactionRequestParameters, options: {
405
+ prepareTransactionRequest?: ((args: viem257.PrepareTransactionRequestParameters, options: {
406
406
  phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
407
- }) => Promise<viem2.PrepareTransactionRequestParameters>) | [fn: ((args: viem2.PrepareTransactionRequestParameters, options: {
407
+ }) => Promise<viem257.PrepareTransactionRequestParameters>) | [fn: ((args: viem257.PrepareTransactionRequestParameters, options: {
408
408
  phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
409
- }) => Promise<viem2.PrepareTransactionRequestParameters>) | undefined, options: {
409
+ }) => Promise<viem257.PrepareTransactionRequestParameters>) | undefined, options: {
410
410
  runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
411
411
  }] | undefined;
412
- serializers?: viem2.ChainSerializers<undefined, viem2.TransactionSerializable> | undefined;
413
- verifyHash?: ((client: viem2.Client, parameters: viem2.VerifyHashActionParameters) => Promise<viem2.VerifyHashActionReturnType>) | undefined;
412
+ serializers?: viem257.ChainSerializers<undefined, viem257.TransactionSerializable> | undefined;
413
+ verifyHash?: ((client: viem257.Client, parameters: viem257.VerifyHashActionParameters) => Promise<viem257.VerifyHashActionReturnType>) | undefined;
414
414
  } | {
415
415
  blockExplorers: {
416
416
  readonly default: {
@@ -484,56 +484,56 @@ declare const selectChain: () => Promise<{
484
484
  testnet: true;
485
485
  custom?: Record<string, unknown> | undefined;
486
486
  extendSchema?: Record<string, unknown> | undefined;
487
- fees?: viem2.ChainFees<undefined> | undefined;
487
+ fees?: viem257.ChainFees<undefined> | undefined;
488
488
  formatters: {
489
489
  readonly block: {
490
490
  exclude: [] | undefined;
491
- format: (args: viem_chains0.OpStackRpcBlock, action?: string | undefined) => {
491
+ format: (args: viem_chains14.OpStackRpcBlock, action?: string | undefined) => {
492
492
  baseFeePerGas: bigint | null;
493
493
  blobGasUsed: bigint;
494
494
  difficulty: bigint;
495
495
  excessBlobGas: bigint;
496
- extraData: viem2.Hex;
496
+ extraData: viem257.Hex;
497
497
  gasLimit: bigint;
498
498
  gasUsed: bigint;
499
499
  hash: `0x${string}` | null;
500
500
  logsBloom: `0x${string}` | null;
501
- miner: viem2.Address;
502
- mixHash: viem2.Hash;
501
+ miner: viem257.Address;
502
+ mixHash: viem257.Hash;
503
503
  nonce: `0x${string}` | null;
504
504
  number: bigint | null;
505
505
  parentBeaconBlockRoot?: `0x${string}` | undefined;
506
- parentHash: viem2.Hash;
507
- receiptsRoot: viem2.Hex;
508
- sealFields: viem2.Hex[];
509
- sha3Uncles: viem2.Hash;
506
+ parentHash: viem257.Hash;
507
+ receiptsRoot: viem257.Hex;
508
+ sealFields: viem257.Hex[];
509
+ sha3Uncles: viem257.Hash;
510
510
  size: bigint;
511
- stateRoot: viem2.Hash;
511
+ stateRoot: viem257.Hash;
512
512
  timestamp: bigint;
513
513
  totalDifficulty: bigint | null;
514
- transactions: `0x${string}`[] | viem_chains0.OpStackTransaction<boolean>[];
515
- transactionsRoot: viem2.Hash;
516
- uncles: viem2.Hash[];
517
- withdrawals?: viem2.Withdrawal[] | undefined | undefined;
514
+ transactions: `0x${string}`[] | viem_chains14.OpStackTransaction<boolean>[];
515
+ transactionsRoot: viem257.Hash;
516
+ uncles: viem257.Hash[];
517
+ withdrawals?: viem257.Withdrawal[] | undefined | undefined;
518
518
  withdrawalsRoot?: `0x${string}` | undefined;
519
519
  } & {};
520
520
  type: "block";
521
521
  };
522
522
  readonly transaction: {
523
523
  exclude: [] | undefined;
524
- format: (args: viem_chains0.OpStackRpcTransaction, action?: string | undefined) => ({
524
+ format: (args: viem_chains14.OpStackRpcTransaction, action?: string | undefined) => ({
525
525
  blockHash: `0x${string}` | null;
526
526
  blockNumber: bigint | null;
527
- from: viem2.Address;
527
+ from: viem257.Address;
528
528
  gas: bigint;
529
- hash: viem2.Hash;
530
- input: viem2.Hex;
529
+ hash: viem257.Hash;
530
+ input: viem257.Hex;
531
531
  nonce: number;
532
- r: viem2.Hex;
533
- s: viem2.Hex;
534
- to: viem2.Address | null;
532
+ r: viem257.Hex;
533
+ s: viem257.Hex;
534
+ to: viem257.Address | null;
535
535
  transactionIndex: number | null;
536
- typeHex: viem2.Hex | null;
536
+ typeHex: viem257.Hex | null;
537
537
  v: bigint;
538
538
  value: bigint;
539
539
  yParity: number;
@@ -543,23 +543,23 @@ declare const selectChain: () => Promise<{
543
543
  maxPriorityFeePerGas: bigint;
544
544
  isSystemTx?: boolean;
545
545
  mint?: bigint | undefined | undefined;
546
- sourceHash: viem2.Hex;
546
+ sourceHash: viem257.Hex;
547
547
  type: "deposit";
548
548
  } | {
549
- r: viem2.Hex;
550
- s: viem2.Hex;
549
+ r: viem257.Hex;
550
+ s: viem257.Hex;
551
551
  v: bigint;
552
- to: viem2.Address | null;
553
- from: viem2.Address;
552
+ to: viem257.Address | null;
553
+ from: viem257.Address;
554
554
  gas: bigint;
555
555
  nonce: number;
556
556
  value: bigint;
557
557
  blockHash: `0x${string}` | null;
558
558
  blockNumber: bigint | null;
559
- hash: viem2.Hash;
560
- input: viem2.Hex;
559
+ hash: viem257.Hash;
560
+ input: viem257.Hex;
561
561
  transactionIndex: number | null;
562
- typeHex: viem2.Hex | null;
562
+ typeHex: viem257.Hex | null;
563
563
  accessList?: undefined | undefined;
564
564
  authorizationList?: undefined | undefined;
565
565
  blobVersionedHashes?: undefined | undefined;
@@ -576,20 +576,20 @@ declare const selectChain: () => Promise<{
576
576
  } | {
577
577
  blockHash: `0x${string}` | null;
578
578
  blockNumber: bigint | null;
579
- from: viem2.Address;
579
+ from: viem257.Address;
580
580
  gas: bigint;
581
- hash: viem2.Hash;
582
- input: viem2.Hex;
581
+ hash: viem257.Hash;
582
+ input: viem257.Hex;
583
583
  nonce: number;
584
- r: viem2.Hex;
585
- s: viem2.Hex;
586
- to: viem2.Address | null;
584
+ r: viem257.Hex;
585
+ s: viem257.Hex;
586
+ to: viem257.Address | null;
587
587
  transactionIndex: number | null;
588
- typeHex: viem2.Hex | null;
588
+ typeHex: viem257.Hex | null;
589
589
  v: bigint;
590
590
  value: bigint;
591
591
  yParity: number;
592
- accessList: viem2.AccessList;
592
+ accessList: viem257.AccessList;
593
593
  authorizationList?: undefined | undefined;
594
594
  blobVersionedHashes?: undefined | undefined;
595
595
  chainId: number;
@@ -604,20 +604,20 @@ declare const selectChain: () => Promise<{
604
604
  } | {
605
605
  blockHash: `0x${string}` | null;
606
606
  blockNumber: bigint | null;
607
- from: viem2.Address;
607
+ from: viem257.Address;
608
608
  gas: bigint;
609
- hash: viem2.Hash;
610
- input: viem2.Hex;
609
+ hash: viem257.Hash;
610
+ input: viem257.Hex;
611
611
  nonce: number;
612
- r: viem2.Hex;
613
- s: viem2.Hex;
614
- to: viem2.Address | null;
612
+ r: viem257.Hex;
613
+ s: viem257.Hex;
614
+ to: viem257.Address | null;
615
615
  transactionIndex: number | null;
616
- typeHex: viem2.Hex | null;
616
+ typeHex: viem257.Hex | null;
617
617
  v: bigint;
618
618
  value: bigint;
619
619
  yParity: number;
620
- accessList: viem2.AccessList;
620
+ accessList: viem257.AccessList;
621
621
  authorizationList?: undefined | undefined;
622
622
  blobVersionedHashes?: undefined | undefined;
623
623
  chainId: number;
@@ -632,22 +632,22 @@ declare const selectChain: () => Promise<{
632
632
  } | {
633
633
  blockHash: `0x${string}` | null;
634
634
  blockNumber: bigint | null;
635
- from: viem2.Address;
635
+ from: viem257.Address;
636
636
  gas: bigint;
637
- hash: viem2.Hash;
638
- input: viem2.Hex;
637
+ hash: viem257.Hash;
638
+ input: viem257.Hex;
639
639
  nonce: number;
640
- r: viem2.Hex;
641
- s: viem2.Hex;
642
- to: viem2.Address | null;
640
+ r: viem257.Hex;
641
+ s: viem257.Hex;
642
+ to: viem257.Address | null;
643
643
  transactionIndex: number | null;
644
- typeHex: viem2.Hex | null;
644
+ typeHex: viem257.Hex | null;
645
645
  v: bigint;
646
646
  value: bigint;
647
647
  yParity: number;
648
- accessList: viem2.AccessList;
648
+ accessList: viem257.AccessList;
649
649
  authorizationList?: undefined | undefined;
650
- blobVersionedHashes: readonly viem2.Hex[];
650
+ blobVersionedHashes: readonly viem257.Hex[];
651
651
  chainId: number;
652
652
  type: "eip4844";
653
653
  gasPrice?: undefined | undefined;
@@ -660,21 +660,21 @@ declare const selectChain: () => Promise<{
660
660
  } | {
661
661
  blockHash: `0x${string}` | null;
662
662
  blockNumber: bigint | null;
663
- from: viem2.Address;
663
+ from: viem257.Address;
664
664
  gas: bigint;
665
- hash: viem2.Hash;
666
- input: viem2.Hex;
665
+ hash: viem257.Hash;
666
+ input: viem257.Hex;
667
667
  nonce: number;
668
- r: viem2.Hex;
669
- s: viem2.Hex;
670
- to: viem2.Address | null;
668
+ r: viem257.Hex;
669
+ s: viem257.Hex;
670
+ to: viem257.Address | null;
671
671
  transactionIndex: number | null;
672
- typeHex: viem2.Hex | null;
672
+ typeHex: viem257.Hex | null;
673
673
  v: bigint;
674
674
  value: bigint;
675
675
  yParity: number;
676
- accessList: viem2.AccessList;
677
- authorizationList: viem2.SignedAuthorizationList;
676
+ accessList: viem257.AccessList;
677
+ authorizationList: viem257.SignedAuthorizationList;
678
678
  blobVersionedHashes?: undefined | undefined;
679
679
  chainId: number;
680
680
  type: "eip7702";
@@ -690,25 +690,25 @@ declare const selectChain: () => Promise<{
690
690
  };
691
691
  readonly transactionReceipt: {
692
692
  exclude: [] | undefined;
693
- format: (args: viem_chains0.OpStackRpcTransactionReceipt, action?: string | undefined) => {
693
+ format: (args: viem_chains14.OpStackRpcTransactionReceipt, action?: string | undefined) => {
694
694
  blobGasPrice?: bigint | undefined;
695
695
  blobGasUsed?: bigint | undefined;
696
- blockHash: viem2.Hash;
696
+ blockHash: viem257.Hash;
697
697
  blockNumber: bigint;
698
698
  blockTimestamp?: bigint | undefined;
699
- contractAddress: viem2.Address | null | undefined;
699
+ contractAddress: viem257.Address | null | undefined;
700
700
  cumulativeGasUsed: bigint;
701
701
  effectiveGasPrice: bigint;
702
- from: viem2.Address;
702
+ from: viem257.Address;
703
703
  gasUsed: bigint;
704
- logs: viem2.Log<bigint, number, false>[];
705
- logsBloom: viem2.Hex;
704
+ logs: viem257.Log<bigint, number, false>[];
705
+ logsBloom: viem257.Hex;
706
706
  root?: `0x${string}` | undefined;
707
707
  status: "success" | "reverted";
708
- to: viem2.Address | null;
709
- transactionHash: viem2.Hash;
708
+ to: viem257.Address | null;
709
+ transactionHash: viem257.Hash;
710
710
  transactionIndex: number;
711
- type: viem2.TransactionType;
711
+ type: viem257.TransactionType;
712
712
  l1GasPrice: bigint | null;
713
713
  l1GasUsed: bigint | null;
714
714
  l1Fee: bigint | null;
@@ -717,17 +717,17 @@ declare const selectChain: () => Promise<{
717
717
  type: "transactionReceipt";
718
718
  };
719
719
  };
720
- prepareTransactionRequest?: ((args: viem2.PrepareTransactionRequestParameters, options: {
720
+ prepareTransactionRequest?: ((args: viem257.PrepareTransactionRequestParameters, options: {
721
721
  phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
722
- }) => Promise<viem2.PrepareTransactionRequestParameters>) | [fn: ((args: viem2.PrepareTransactionRequestParameters, options: {
722
+ }) => Promise<viem257.PrepareTransactionRequestParameters>) | [fn: ((args: viem257.PrepareTransactionRequestParameters, options: {
723
723
  phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
724
- }) => Promise<viem2.PrepareTransactionRequestParameters>) | undefined, options: {
724
+ }) => Promise<viem257.PrepareTransactionRequestParameters>) | undefined, options: {
725
725
  runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
726
726
  }] | undefined;
727
727
  serializers: {
728
- readonly transaction: typeof viem_chains0.serializeTransactionOpStack;
728
+ readonly transaction: typeof viem_chains14.serializeTransactionOpStack;
729
729
  };
730
- verifyHash?: ((client: viem2.Client, parameters: viem2.VerifyHashActionParameters) => Promise<viem2.VerifyHashActionReturnType>) | undefined;
730
+ verifyHash?: ((client: viem257.Client, parameters: viem257.VerifyHashActionParameters) => Promise<viem257.VerifyHashActionReturnType>) | undefined;
731
731
  readonly network: "base-sepolia";
732
732
  }>;
733
733
  declare function parseGadgetArg(raw: string): {