@fangorn-network/sdk 2026.5.11 → 2026.7.1-2.0

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 (101) hide show
  1. package/README.md +219 -225
  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/cli/cli.d.ts +0 -0
  7. package/lib/cli/cli.js +234 -235
  8. package/lib/cli/index.d.ts +13 -650
  9. package/lib/config.d.ts +45 -699
  10. package/lib/config.js +6 -22
  11. package/lib/contracts/data-registry/abi.d.ts +38 -0
  12. package/lib/contracts/data-registry/abi.js +237 -0
  13. package/lib/contracts/data-registry/index.d.ts +81 -0
  14. package/lib/contracts/data-registry/index.js +184 -0
  15. package/lib/contracts/data-registry/test.d.ts +1 -0
  16. package/lib/contracts/index.d.ts +3 -0
  17. package/lib/contracts/index.js +4 -0
  18. package/lib/crypto/aes.d.ts +26 -0
  19. package/lib/crypto/aes.js +58 -0
  20. package/lib/crypto/encryption.d.ts +53 -0
  21. package/lib/crypto/encryption.js +82 -0
  22. package/lib/crypto/rand.d.ts +5 -0
  23. package/lib/{modules/encryption → crypto}/rand.js +1 -1
  24. package/lib/{modules/encryption → crypto}/types.d.ts +1 -1
  25. package/lib/engine/blockstore.d.ts +24 -0
  26. package/lib/engine/blockstore.js +85 -0
  27. package/lib/engine/index.d.ts +180 -0
  28. package/lib/engine/index.js +367 -0
  29. package/lib/fangorn.d.ts +149 -16
  30. package/lib/fangorn.js +256 -37
  31. package/lib/harness/examples/hackmd/build-markdown-graph.d.ts +1 -0
  32. package/lib/harness/examples/hackmd/build-markdown-graph.js +17 -0
  33. package/lib/harness/index.d.ts +57 -0
  34. package/lib/harness/index.js +67 -0
  35. package/lib/index.d.ts +2 -4
  36. package/lib/index.js +1 -3
  37. package/lib/node_modules/.pnpm/@noble_ciphers@1.3.0/node_modules/@noble/ciphers/esm/_polyval.js +218 -0
  38. package/lib/node_modules/.pnpm/@noble_ciphers@1.3.0/node_modules/@noble/ciphers/esm/aes.js +261 -0
  39. package/lib/node_modules/.pnpm/@noble_ciphers@1.3.0/node_modules/@noble/ciphers/esm/utils.js +156 -0
  40. package/lib/node_modules/.pnpm/@noble_curves@1.9.7/node_modules/@noble/curves/esm/abstract/curve.js +299 -0
  41. package/lib/node_modules/.pnpm/@noble_curves@1.9.7/node_modules/@noble/curves/esm/abstract/edwards.js +532 -0
  42. package/lib/node_modules/.pnpm/@noble_curves@1.9.7/node_modules/@noble/curves/esm/abstract/modular.js +344 -0
  43. package/lib/node_modules/.pnpm/@noble_curves@1.9.7/node_modules/@noble/curves/esm/abstract/montgomery.js +137 -0
  44. package/lib/node_modules/.pnpm/@noble_curves@1.9.7/node_modules/@noble/curves/esm/ed25519.js +262 -0
  45. package/lib/node_modules/.pnpm/@noble_curves@1.9.7/node_modules/@noble/curves/esm/utils.js +150 -0
  46. package/lib/providers/storage/car.d.ts +36 -0
  47. package/lib/providers/storage/car.js +80 -0
  48. package/lib/providers/storage/pinata.d.ts +34 -2
  49. package/lib/providers/storage/pinata.js +141 -5
  50. package/lib/providers/storage/types.d.ts +31 -16
  51. package/lib/providers/storage/utils.js +2 -1
  52. package/lib/roles/repo/index.d.ts +56 -0
  53. package/lib/roles/repo/index.js +73 -0
  54. package/lib/test/car_smoke.d.ts +1 -0
  55. package/lib/test/car_smoke.js +81 -0
  56. package/lib/test/cleanup-embeddings-testdata.d.ts +1 -0
  57. package/lib/test/cleanup-embeddings-testdata.js +75 -0
  58. package/lib/test/setup-embeddings-testdata.d.ts +11 -0
  59. package/lib/test/setup-embeddings-testdata.js +155 -0
  60. package/lib/test/testbed.d.ts +39 -30
  61. package/lib/test/testbed.js +43 -129
  62. package/lib/types/index.d.ts +3 -19
  63. package/lib/utils/manifest.d.ts +23 -0
  64. package/lib/utils/manifest.js +77 -0
  65. package/package.json +99 -67
  66. package/lib/modules/encryption/actions.d.ts +0 -4
  67. package/lib/modules/encryption/actions.js +0 -18
  68. package/lib/modules/encryption/aes.d.ts +0 -10
  69. package/lib/modules/encryption/aes.js +0 -51
  70. package/lib/modules/encryption/rand.d.ts +0 -5
  71. package/lib/registries/datasource-registry/abi.d.ts +0 -156
  72. package/lib/registries/datasource-registry/abi.js +0 -194
  73. package/lib/registries/datasource-registry/index.d.ts +0 -30
  74. package/lib/registries/datasource-registry/index.js +0 -158
  75. package/lib/registries/index.d.ts +0 -3
  76. package/lib/registries/index.js +0 -4
  77. package/lib/registries/schema-registry/abi.d.ts +0 -218
  78. package/lib/registries/schema-registry/abi.js +0 -246
  79. package/lib/registries/schema-registry/index.d.ts +0 -34
  80. package/lib/registries/schema-registry/index.js +0 -179
  81. package/lib/registries/settlement-registry/abi.d.ts +0 -218
  82. package/lib/registries/settlement-registry/abi.js +0 -259
  83. package/lib/registries/settlement-registry/index.d.ts +0 -63
  84. package/lib/registries/settlement-registry/index.js +0 -325
  85. package/lib/registries/settlement-registry/types.d.ts +0 -54
  86. package/lib/roles/consumer/index.d.ts +0 -39
  87. package/lib/roles/consumer/index.js +0 -143
  88. package/lib/roles/consumer/types.d.ts +0 -47
  89. package/lib/roles/consumer/types.js +0 -1
  90. package/lib/roles/publisher/index.d.ts +0 -50
  91. package/lib/roles/publisher/index.js +0 -224
  92. package/lib/roles/publisher/types.d.ts +0 -99
  93. package/lib/roles/publisher/types.js +0 -1
  94. package/lib/roles/schema/index.d.ts +0 -18
  95. package/lib/roles/schema/index.js +0 -93
  96. package/lib/roles/schema/types.d.ts +0 -91
  97. package/lib/roles/schema/types.js +0 -1
  98. /package/lib/{modules/encryption/index.d.ts → crypto/utils.d.ts} +0 -0
  99. /package/lib/{modules/encryption/index.js → crypto/utils.js} +0 -0
  100. /package/lib/{modules/encryption/types.js → contracts/data-registry/test.js} +0 -0
  101. /package/lib/{registries/settlement-registry → crypto}/types.js +0 -0
@@ -1,6 +1,5 @@
1
1
  import "./cli.js";
2
- import * as viem_chains14 from "viem/chains";
3
- import * as viem257 from "viem";
2
+ import * as viem105 from "viem";
4
3
 
5
4
  //#region src/cli/index.d.ts
6
5
  declare const getChain: (chainStr: string) => {
@@ -36,335 +35,17 @@ declare const getChain: (chainStr: string) => {
36
35
  testnet: true;
37
36
  custom?: Record<string, unknown> | undefined;
38
37
  extendSchema?: Record<string, unknown> | undefined;
39
- fees?: viem257.ChainFees<undefined> | undefined;
38
+ fees?: viem105.ChainFees<undefined> | undefined;
40
39
  formatters?: undefined;
41
- prepareTransactionRequest?: ((args: viem257.PrepareTransactionRequestParameters, options: {
40
+ prepareTransactionRequest?: ((args: viem105.PrepareTransactionRequestParameters, options: {
42
41
  phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
43
- }) => Promise<viem257.PrepareTransactionRequestParameters>) | [fn: ((args: viem257.PrepareTransactionRequestParameters, options: {
42
+ }) => Promise<viem105.PrepareTransactionRequestParameters>) | [fn: ((args: viem105.PrepareTransactionRequestParameters, options: {
44
43
  phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
45
- }) => Promise<viem257.PrepareTransactionRequestParameters>) | undefined, options: {
44
+ }) => Promise<viem105.PrepareTransactionRequestParameters>) | undefined, options: {
46
45
  runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
47
46
  }] | undefined;
48
- serializers?: viem257.ChainSerializers<undefined, viem257.TransactionSerializable> | undefined;
49
- verifyHash?: ((client: viem257.Client, parameters: viem257.VerifyHashActionParameters) => Promise<viem257.VerifyHashActionReturnType>) | undefined;
50
- } | {
51
- blockExplorers: {
52
- readonly default: {
53
- readonly name: "Basescan";
54
- readonly url: "https://sepolia.basescan.org";
55
- readonly apiUrl: "https://api-sepolia.basescan.org/api";
56
- };
57
- };
58
- blockTime: 2000;
59
- contracts: {
60
- readonly disputeGameFactory: {
61
- readonly 11155111: {
62
- readonly address: "0xd6E6dBf4F7EA0ac412fD8b65ED297e64BB7a06E1";
63
- };
64
- };
65
- readonly l2OutputOracle: {
66
- readonly 11155111: {
67
- readonly address: "0x84457ca9D0163FbC4bbfe4Dfbb20ba46e48DF254";
68
- };
69
- };
70
- readonly portal: {
71
- readonly 11155111: {
72
- readonly address: "0x49f53e41452c74589e85ca1677426ba426459e85";
73
- readonly blockCreated: 4446677;
74
- };
75
- };
76
- readonly l1StandardBridge: {
77
- readonly 11155111: {
78
- readonly address: "0xfd0Bf71F60660E2f608ed56e1659C450eB113120";
79
- readonly blockCreated: 4446677;
80
- };
81
- };
82
- readonly multicall3: {
83
- readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
84
- readonly blockCreated: 1059647;
85
- };
86
- readonly gasPriceOracle: {
87
- readonly address: "0x420000000000000000000000000000000000000F";
88
- };
89
- readonly l1Block: {
90
- readonly address: "0x4200000000000000000000000000000000000015";
91
- };
92
- readonly l2CrossDomainMessenger: {
93
- readonly address: "0x4200000000000000000000000000000000000007";
94
- };
95
- readonly l2Erc721Bridge: {
96
- readonly address: "0x4200000000000000000000000000000000000014";
97
- };
98
- readonly l2StandardBridge: {
99
- readonly address: "0x4200000000000000000000000000000000000010";
100
- };
101
- readonly l2ToL1MessagePasser: {
102
- readonly address: "0x4200000000000000000000000000000000000016";
103
- };
104
- };
105
- ensTlds?: readonly string[] | undefined;
106
- id: 84532;
107
- name: "Base Sepolia";
108
- nativeCurrency: {
109
- readonly name: "Sepolia Ether";
110
- readonly symbol: "ETH";
111
- readonly decimals: 18;
112
- };
113
- experimental_preconfirmationTime?: number | undefined | undefined;
114
- rpcUrls: {
115
- readonly default: {
116
- readonly http: readonly ["https://sepolia.base.org"];
117
- };
118
- };
119
- sourceId: 11155111;
120
- testnet: true;
121
- custom?: Record<string, unknown> | undefined;
122
- extendSchema?: Record<string, unknown> | undefined;
123
- fees?: viem257.ChainFees<undefined> | undefined;
124
- formatters: {
125
- readonly block: {
126
- exclude: [] | undefined;
127
- format: (args: viem_chains14.OpStackRpcBlock, action?: string | undefined) => {
128
- baseFeePerGas: bigint | null;
129
- blobGasUsed: bigint;
130
- difficulty: bigint;
131
- excessBlobGas: bigint;
132
- extraData: viem257.Hex;
133
- gasLimit: bigint;
134
- gasUsed: bigint;
135
- hash: `0x${string}` | null;
136
- logsBloom: `0x${string}` | null;
137
- miner: viem257.Address;
138
- mixHash: viem257.Hash;
139
- nonce: `0x${string}` | null;
140
- number: bigint | null;
141
- parentBeaconBlockRoot?: `0x${string}` | undefined;
142
- parentHash: viem257.Hash;
143
- receiptsRoot: viem257.Hex;
144
- sealFields: viem257.Hex[];
145
- sha3Uncles: viem257.Hash;
146
- size: bigint;
147
- stateRoot: viem257.Hash;
148
- timestamp: bigint;
149
- 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;
154
- withdrawalsRoot?: `0x${string}` | undefined;
155
- } & {};
156
- type: "block";
157
- };
158
- readonly transaction: {
159
- exclude: [] | undefined;
160
- format: (args: viem_chains14.OpStackRpcTransaction, action?: string | undefined) => ({
161
- blockHash: `0x${string}` | null;
162
- blockNumber: bigint | null;
163
- from: viem257.Address;
164
- gas: bigint;
165
- hash: viem257.Hash;
166
- input: viem257.Hex;
167
- nonce: number;
168
- r: viem257.Hex;
169
- s: viem257.Hex;
170
- to: viem257.Address | null;
171
- transactionIndex: number | null;
172
- typeHex: viem257.Hex | null;
173
- v: bigint;
174
- value: bigint;
175
- yParity: number;
176
- gasPrice?: undefined | undefined;
177
- maxFeePerBlobGas?: undefined | undefined;
178
- maxFeePerGas: bigint;
179
- maxPriorityFeePerGas: bigint;
180
- isSystemTx?: boolean;
181
- mint?: bigint | undefined | undefined;
182
- sourceHash: viem257.Hex;
183
- type: "deposit";
184
- } | {
185
- r: viem257.Hex;
186
- s: viem257.Hex;
187
- v: bigint;
188
- to: viem257.Address | null;
189
- from: viem257.Address;
190
- gas: bigint;
191
- nonce: number;
192
- value: bigint;
193
- blockHash: `0x${string}` | null;
194
- blockNumber: bigint | null;
195
- hash: viem257.Hash;
196
- input: viem257.Hex;
197
- transactionIndex: number | null;
198
- typeHex: viem257.Hex | null;
199
- accessList?: undefined | undefined;
200
- authorizationList?: undefined | undefined;
201
- blobVersionedHashes?: undefined | undefined;
202
- chainId?: number | undefined;
203
- yParity?: undefined | undefined;
204
- type: "legacy";
205
- gasPrice: bigint;
206
- maxFeePerBlobGas?: undefined | undefined;
207
- maxFeePerGas?: undefined | undefined;
208
- maxPriorityFeePerGas?: undefined | undefined;
209
- isSystemTx?: undefined | undefined;
210
- mint?: undefined | undefined;
211
- sourceHash?: undefined | undefined;
212
- } | {
213
- blockHash: `0x${string}` | null;
214
- blockNumber: bigint | null;
215
- from: viem257.Address;
216
- gas: bigint;
217
- hash: viem257.Hash;
218
- input: viem257.Hex;
219
- nonce: number;
220
- r: viem257.Hex;
221
- s: viem257.Hex;
222
- to: viem257.Address | null;
223
- transactionIndex: number | null;
224
- typeHex: viem257.Hex | null;
225
- v: bigint;
226
- value: bigint;
227
- yParity: number;
228
- accessList: viem257.AccessList;
229
- authorizationList?: undefined | undefined;
230
- blobVersionedHashes?: undefined | undefined;
231
- chainId: number;
232
- type: "eip2930";
233
- gasPrice: bigint;
234
- maxFeePerBlobGas?: undefined | undefined;
235
- maxFeePerGas?: undefined | undefined;
236
- maxPriorityFeePerGas?: undefined | undefined;
237
- isSystemTx?: undefined | undefined;
238
- mint?: undefined | undefined;
239
- sourceHash?: undefined | undefined;
240
- } | {
241
- blockHash: `0x${string}` | null;
242
- blockNumber: bigint | null;
243
- from: viem257.Address;
244
- gas: bigint;
245
- hash: viem257.Hash;
246
- input: viem257.Hex;
247
- nonce: number;
248
- r: viem257.Hex;
249
- s: viem257.Hex;
250
- to: viem257.Address | null;
251
- transactionIndex: number | null;
252
- typeHex: viem257.Hex | null;
253
- v: bigint;
254
- value: bigint;
255
- yParity: number;
256
- accessList: viem257.AccessList;
257
- authorizationList?: undefined | undefined;
258
- blobVersionedHashes?: undefined | undefined;
259
- chainId: number;
260
- type: "eip1559";
261
- gasPrice?: undefined | undefined;
262
- maxFeePerBlobGas?: undefined | undefined;
263
- maxFeePerGas: bigint;
264
- maxPriorityFeePerGas: bigint;
265
- isSystemTx?: undefined | undefined;
266
- mint?: undefined | undefined;
267
- sourceHash?: undefined | undefined;
268
- } | {
269
- blockHash: `0x${string}` | null;
270
- blockNumber: bigint | null;
271
- from: viem257.Address;
272
- gas: bigint;
273
- hash: viem257.Hash;
274
- input: viem257.Hex;
275
- nonce: number;
276
- r: viem257.Hex;
277
- s: viem257.Hex;
278
- to: viem257.Address | null;
279
- transactionIndex: number | null;
280
- typeHex: viem257.Hex | null;
281
- v: bigint;
282
- value: bigint;
283
- yParity: number;
284
- accessList: viem257.AccessList;
285
- authorizationList?: undefined | undefined;
286
- blobVersionedHashes: readonly viem257.Hex[];
287
- chainId: number;
288
- type: "eip4844";
289
- gasPrice?: undefined | undefined;
290
- maxFeePerBlobGas: bigint;
291
- maxFeePerGas: bigint;
292
- maxPriorityFeePerGas: bigint;
293
- isSystemTx?: undefined | undefined;
294
- mint?: undefined | undefined;
295
- sourceHash?: undefined | undefined;
296
- } | {
297
- blockHash: `0x${string}` | null;
298
- blockNumber: bigint | null;
299
- from: viem257.Address;
300
- gas: bigint;
301
- hash: viem257.Hash;
302
- input: viem257.Hex;
303
- nonce: number;
304
- r: viem257.Hex;
305
- s: viem257.Hex;
306
- to: viem257.Address | null;
307
- transactionIndex: number | null;
308
- typeHex: viem257.Hex | null;
309
- v: bigint;
310
- value: bigint;
311
- yParity: number;
312
- accessList: viem257.AccessList;
313
- authorizationList: viem257.SignedAuthorizationList;
314
- blobVersionedHashes?: undefined | undefined;
315
- chainId: number;
316
- type: "eip7702";
317
- gasPrice?: undefined | undefined;
318
- maxFeePerBlobGas?: undefined | undefined;
319
- maxFeePerGas: bigint;
320
- maxPriorityFeePerGas: bigint;
321
- isSystemTx?: undefined | undefined;
322
- mint?: undefined | undefined;
323
- sourceHash?: undefined | undefined;
324
- }) & {};
325
- type: "transaction";
326
- };
327
- readonly transactionReceipt: {
328
- exclude: [] | undefined;
329
- format: (args: viem_chains14.OpStackRpcTransactionReceipt, action?: string | undefined) => {
330
- blobGasPrice?: bigint | undefined;
331
- blobGasUsed?: bigint | undefined;
332
- blockHash: viem257.Hash;
333
- blockNumber: bigint;
334
- blockTimestamp?: bigint | undefined;
335
- contractAddress: viem257.Address | null | undefined;
336
- cumulativeGasUsed: bigint;
337
- effectiveGasPrice: bigint;
338
- from: viem257.Address;
339
- gasUsed: bigint;
340
- logs: viem257.Log<bigint, number, false>[];
341
- logsBloom: viem257.Hex;
342
- root?: `0x${string}` | undefined;
343
- status: "success" | "reverted";
344
- to: viem257.Address | null;
345
- transactionHash: viem257.Hash;
346
- transactionIndex: number;
347
- type: viem257.TransactionType;
348
- l1GasPrice: bigint | null;
349
- l1GasUsed: bigint | null;
350
- l1Fee: bigint | null;
351
- l1FeeScalar: number | null;
352
- } & {};
353
- type: "transactionReceipt";
354
- };
355
- };
356
- prepareTransactionRequest?: ((args: viem257.PrepareTransactionRequestParameters, options: {
357
- phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
358
- }) => Promise<viem257.PrepareTransactionRequestParameters>) | [fn: ((args: viem257.PrepareTransactionRequestParameters, options: {
359
- phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
360
- }) => Promise<viem257.PrepareTransactionRequestParameters>) | undefined, options: {
361
- runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
362
- }] | undefined;
363
- serializers: {
364
- readonly transaction: typeof viem_chains14.serializeTransactionOpStack;
365
- };
366
- verifyHash?: ((client: viem257.Client, parameters: viem257.VerifyHashActionParameters) => Promise<viem257.VerifyHashActionReturnType>) | undefined;
367
- readonly network: "base-sepolia";
47
+ serializers?: viem105.ChainSerializers<undefined, viem105.TransactionSerializable> | undefined;
48
+ verifyHash?: ((client: viem105.Client, parameters: viem105.VerifyHashActionParameters) => Promise<viem105.VerifyHashActionReturnType>) | undefined;
368
49
  };
369
50
  declare const handleCancel: (value: unknown) => void;
370
51
  declare const selectChain: () => Promise<{
@@ -400,335 +81,17 @@ declare const selectChain: () => Promise<{
400
81
  testnet: true;
401
82
  custom?: Record<string, unknown> | undefined;
402
83
  extendSchema?: Record<string, unknown> | undefined;
403
- fees?: viem257.ChainFees<undefined> | undefined;
84
+ fees?: viem105.ChainFees<undefined> | undefined;
404
85
  formatters?: undefined;
405
- prepareTransactionRequest?: ((args: viem257.PrepareTransactionRequestParameters, options: {
86
+ prepareTransactionRequest?: ((args: viem105.PrepareTransactionRequestParameters, options: {
406
87
  phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
407
- }) => Promise<viem257.PrepareTransactionRequestParameters>) | [fn: ((args: viem257.PrepareTransactionRequestParameters, options: {
88
+ }) => Promise<viem105.PrepareTransactionRequestParameters>) | [fn: ((args: viem105.PrepareTransactionRequestParameters, options: {
408
89
  phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
409
- }) => Promise<viem257.PrepareTransactionRequestParameters>) | undefined, options: {
90
+ }) => Promise<viem105.PrepareTransactionRequestParameters>) | undefined, options: {
410
91
  runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
411
92
  }] | undefined;
412
- serializers?: viem257.ChainSerializers<undefined, viem257.TransactionSerializable> | undefined;
413
- verifyHash?: ((client: viem257.Client, parameters: viem257.VerifyHashActionParameters) => Promise<viem257.VerifyHashActionReturnType>) | undefined;
414
- } | {
415
- blockExplorers: {
416
- readonly default: {
417
- readonly name: "Basescan";
418
- readonly url: "https://sepolia.basescan.org";
419
- readonly apiUrl: "https://api-sepolia.basescan.org/api";
420
- };
421
- };
422
- blockTime: 2000;
423
- contracts: {
424
- readonly disputeGameFactory: {
425
- readonly 11155111: {
426
- readonly address: "0xd6E6dBf4F7EA0ac412fD8b65ED297e64BB7a06E1";
427
- };
428
- };
429
- readonly l2OutputOracle: {
430
- readonly 11155111: {
431
- readonly address: "0x84457ca9D0163FbC4bbfe4Dfbb20ba46e48DF254";
432
- };
433
- };
434
- readonly portal: {
435
- readonly 11155111: {
436
- readonly address: "0x49f53e41452c74589e85ca1677426ba426459e85";
437
- readonly blockCreated: 4446677;
438
- };
439
- };
440
- readonly l1StandardBridge: {
441
- readonly 11155111: {
442
- readonly address: "0xfd0Bf71F60660E2f608ed56e1659C450eB113120";
443
- readonly blockCreated: 4446677;
444
- };
445
- };
446
- readonly multicall3: {
447
- readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
448
- readonly blockCreated: 1059647;
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: 84532;
471
- name: "Base Sepolia";
472
- nativeCurrency: {
473
- readonly name: "Sepolia 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://sepolia.base.org"];
481
- };
482
- };
483
- sourceId: 11155111;
484
- testnet: true;
485
- custom?: Record<string, unknown> | undefined;
486
- extendSchema?: Record<string, unknown> | undefined;
487
- fees?: viem257.ChainFees<undefined> | undefined;
488
- formatters: {
489
- readonly block: {
490
- exclude: [] | undefined;
491
- format: (args: viem_chains14.OpStackRpcBlock, action?: string | undefined) => {
492
- baseFeePerGas: bigint | null;
493
- blobGasUsed: bigint;
494
- difficulty: bigint;
495
- excessBlobGas: bigint;
496
- extraData: viem257.Hex;
497
- gasLimit: bigint;
498
- gasUsed: bigint;
499
- hash: `0x${string}` | null;
500
- logsBloom: `0x${string}` | null;
501
- miner: viem257.Address;
502
- mixHash: viem257.Hash;
503
- nonce: `0x${string}` | null;
504
- number: bigint | null;
505
- parentBeaconBlockRoot?: `0x${string}` | undefined;
506
- parentHash: viem257.Hash;
507
- receiptsRoot: viem257.Hex;
508
- sealFields: viem257.Hex[];
509
- sha3Uncles: viem257.Hash;
510
- size: bigint;
511
- stateRoot: viem257.Hash;
512
- timestamp: bigint;
513
- 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;
518
- withdrawalsRoot?: `0x${string}` | undefined;
519
- } & {};
520
- type: "block";
521
- };
522
- readonly transaction: {
523
- exclude: [] | undefined;
524
- format: (args: viem_chains14.OpStackRpcTransaction, action?: string | undefined) => ({
525
- blockHash: `0x${string}` | null;
526
- blockNumber: bigint | null;
527
- from: viem257.Address;
528
- gas: bigint;
529
- hash: viem257.Hash;
530
- input: viem257.Hex;
531
- nonce: number;
532
- r: viem257.Hex;
533
- s: viem257.Hex;
534
- to: viem257.Address | null;
535
- transactionIndex: number | null;
536
- typeHex: viem257.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: viem257.Hex;
547
- type: "deposit";
548
- } | {
549
- r: viem257.Hex;
550
- s: viem257.Hex;
551
- v: bigint;
552
- to: viem257.Address | null;
553
- from: viem257.Address;
554
- gas: bigint;
555
- nonce: number;
556
- value: bigint;
557
- blockHash: `0x${string}` | null;
558
- blockNumber: bigint | null;
559
- hash: viem257.Hash;
560
- input: viem257.Hex;
561
- transactionIndex: number | null;
562
- typeHex: viem257.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: viem257.Address;
580
- gas: bigint;
581
- hash: viem257.Hash;
582
- input: viem257.Hex;
583
- nonce: number;
584
- r: viem257.Hex;
585
- s: viem257.Hex;
586
- to: viem257.Address | null;
587
- transactionIndex: number | null;
588
- typeHex: viem257.Hex | null;
589
- v: bigint;
590
- value: bigint;
591
- yParity: number;
592
- accessList: viem257.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: viem257.Address;
608
- gas: bigint;
609
- hash: viem257.Hash;
610
- input: viem257.Hex;
611
- nonce: number;
612
- r: viem257.Hex;
613
- s: viem257.Hex;
614
- to: viem257.Address | null;
615
- transactionIndex: number | null;
616
- typeHex: viem257.Hex | null;
617
- v: bigint;
618
- value: bigint;
619
- yParity: number;
620
- accessList: viem257.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: viem257.Address;
636
- gas: bigint;
637
- hash: viem257.Hash;
638
- input: viem257.Hex;
639
- nonce: number;
640
- r: viem257.Hex;
641
- s: viem257.Hex;
642
- to: viem257.Address | null;
643
- transactionIndex: number | null;
644
- typeHex: viem257.Hex | null;
645
- v: bigint;
646
- value: bigint;
647
- yParity: number;
648
- accessList: viem257.AccessList;
649
- authorizationList?: undefined | undefined;
650
- blobVersionedHashes: readonly viem257.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: viem257.Address;
664
- gas: bigint;
665
- hash: viem257.Hash;
666
- input: viem257.Hex;
667
- nonce: number;
668
- r: viem257.Hex;
669
- s: viem257.Hex;
670
- to: viem257.Address | null;
671
- transactionIndex: number | null;
672
- typeHex: viem257.Hex | null;
673
- v: bigint;
674
- value: bigint;
675
- yParity: number;
676
- accessList: viem257.AccessList;
677
- authorizationList: viem257.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_chains14.OpStackRpcTransactionReceipt, action?: string | undefined) => {
694
- blobGasPrice?: bigint | undefined;
695
- blobGasUsed?: bigint | undefined;
696
- blockHash: viem257.Hash;
697
- blockNumber: bigint;
698
- blockTimestamp?: bigint | undefined;
699
- contractAddress: viem257.Address | null | undefined;
700
- cumulativeGasUsed: bigint;
701
- effectiveGasPrice: bigint;
702
- from: viem257.Address;
703
- gasUsed: bigint;
704
- logs: viem257.Log<bigint, number, false>[];
705
- logsBloom: viem257.Hex;
706
- root?: `0x${string}` | undefined;
707
- status: "success" | "reverted";
708
- to: viem257.Address | null;
709
- transactionHash: viem257.Hash;
710
- transactionIndex: number;
711
- type: viem257.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: viem257.PrepareTransactionRequestParameters, options: {
721
- phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
722
- }) => Promise<viem257.PrepareTransactionRequestParameters>) | [fn: ((args: viem257.PrepareTransactionRequestParameters, options: {
723
- phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
724
- }) => Promise<viem257.PrepareTransactionRequestParameters>) | undefined, options: {
725
- runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
726
- }] | undefined;
727
- serializers: {
728
- readonly transaction: typeof viem_chains14.serializeTransactionOpStack;
729
- };
730
- verifyHash?: ((client: viem257.Client, parameters: viem257.VerifyHashActionParameters) => Promise<viem257.VerifyHashActionReturnType>) | undefined;
731
- readonly network: "base-sepolia";
93
+ serializers?: viem105.ChainSerializers<undefined, viem105.TransactionSerializable> | undefined;
94
+ verifyHash?: ((client: viem105.Client, parameters: viem105.VerifyHashActionParameters) => Promise<viem105.VerifyHashActionReturnType>) | undefined;
732
95
  }>;
733
96
  declare function parseGadgetArg(raw: string): {
734
97
  type: string;