@fangorn-network/sdk 2026.5.11 → 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.
- package/README.md +87 -37
- package/lib/ crypto/constants.d.ts +4 -0
- package/lib/ crypto/constants.js +5 -0
- package/lib/ crypto/merkle.d.ts +10 -0
- package/lib/ crypto/merkle.js +34 -0
- package/lib/ crypto/utils.d.ts +1 -0
- package/lib/ crypto/utils.js +1 -0
- package/lib/cli/cli.js +61 -156
- package/lib/cli/index.d.ts +171 -170
- package/lib/config.d.ts +258 -257
- package/lib/config.js +4 -4
- package/lib/fangorn.js +2 -2
- package/lib/index.d.ts +1 -3
- package/lib/index.js +1 -3
- package/lib/modules/encryption/rand.d.ts +1 -1
- package/lib/providers/storage/pinata.d.ts +5 -1
- package/lib/providers/storage/pinata.js +24 -3
- package/lib/providers/storage/types.d.ts +8 -0
- package/lib/providers/storage/utils.js +2 -1
- package/lib/registries/datasource-registry/abi.d.ts +34 -4
- package/lib/registries/datasource-registry/abi.js +40 -5
- package/lib/registries/datasource-registry/index.d.ts +22 -13
- package/lib/registries/datasource-registry/index.js +76 -76
- package/lib/registries/index.d.ts +1 -1
- package/lib/registries/schema-registry/index.d.ts +3 -3
- package/lib/registries/schema-registry/index.js +1 -1
- package/lib/registries/settlement-registry/index.d.ts +2 -2
- package/lib/roles/consumer/index.d.ts +3 -3
- package/lib/roles/consumer/index.js +19 -12
- package/lib/roles/publisher/builders/bundle.d.ts +32 -0
- package/lib/roles/publisher/builders/bundle.js +137 -0
- package/lib/roles/publisher/builders/record-set.d.ts +17 -0
- package/lib/roles/publisher/builders/record-set.js +55 -0
- package/lib/roles/publisher/builders/types.d.ts +38 -0
- package/lib/roles/publisher/builders/types.js +1 -0
- package/lib/roles/publisher/builders/utils.d.ts +9 -0
- package/lib/roles/publisher/builders/utils.js +29 -0
- package/lib/roles/publisher/encryption.d.ts +18 -0
- package/lib/roles/publisher/encryption.js +38 -0
- package/lib/roles/publisher/index.d.ts +54 -36
- package/lib/roles/publisher/index.js +137 -182
- package/lib/roles/publisher/types.d.ts +61 -46
- package/lib/roles/schema/index.d.ts +30 -4
- package/lib/roles/schema/index.js +81 -47
- package/lib/roles/schema/types.d.ts +59 -37
- package/lib/roles/schema/validate.d.ts +9 -0
- package/lib/roles/schema/validate.js +128 -0
- package/lib/test/cleanup-embeddings-testdata.d.ts +1 -0
- package/lib/test/cleanup-embeddings-testdata.js +104 -0
- package/lib/test/publish_mb_bundle.d.ts +1 -0
- package/lib/test/publish_mb_bundle.js +296 -0
- package/lib/test/setup-embeddings-testdata.d.ts +13 -0
- package/lib/test/setup-embeddings-testdata.js +209 -0
- package/lib/test/testbed.d.ts +14 -8
- package/lib/test/testbed.js +28 -24
- package/package.json +16 -2
package/lib/cli/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import "./cli.js";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
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?:
|
|
40
|
+
fees?: viem0.ChainFees<undefined> | undefined;
|
|
40
41
|
formatters?: undefined;
|
|
41
|
-
prepareTransactionRequest?: ((args:
|
|
42
|
+
prepareTransactionRequest?: ((args: viem0.PrepareTransactionRequestParameters, options: {
|
|
42
43
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
43
|
-
}) => Promise<
|
|
44
|
+
}) => Promise<viem0.PrepareTransactionRequestParameters>) | [fn: ((args: viem0.PrepareTransactionRequestParameters, options: {
|
|
44
45
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
45
|
-
}) => Promise<
|
|
46
|
+
}) => Promise<viem0.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
46
47
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
47
48
|
}] | undefined;
|
|
48
|
-
serializers?:
|
|
49
|
-
verifyHash?: ((client:
|
|
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?:
|
|
124
|
+
fees?: viem0.ChainFees<undefined> | undefined;
|
|
124
125
|
formatters: {
|
|
125
126
|
readonly block: {
|
|
126
127
|
exclude: [] | undefined;
|
|
127
|
-
format: (args:
|
|
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:
|
|
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:
|
|
138
|
-
mixHash:
|
|
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:
|
|
143
|
-
receiptsRoot:
|
|
144
|
-
sealFields:
|
|
145
|
-
sha3Uncles:
|
|
143
|
+
parentHash: viem0.Hash;
|
|
144
|
+
receiptsRoot: viem0.Hex;
|
|
145
|
+
sealFields: viem0.Hex[];
|
|
146
|
+
sha3Uncles: viem0.Hash;
|
|
146
147
|
size: bigint;
|
|
147
|
-
stateRoot:
|
|
148
|
+
stateRoot: viem0.Hash;
|
|
148
149
|
timestamp: bigint;
|
|
149
150
|
totalDifficulty: bigint | null;
|
|
150
|
-
transactions: `0x${string}`[] |
|
|
151
|
-
transactionsRoot:
|
|
152
|
-
uncles:
|
|
153
|
-
withdrawals?:
|
|
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:
|
|
161
|
+
format: (args: viem_chains0.OpStackRpcTransaction, action?: string | undefined) => ({
|
|
161
162
|
blockHash: `0x${string}` | null;
|
|
162
163
|
blockNumber: bigint | null;
|
|
163
|
-
from:
|
|
164
|
+
from: abitype0.Address;
|
|
164
165
|
gas: bigint;
|
|
165
|
-
hash:
|
|
166
|
-
input:
|
|
166
|
+
hash: viem0.Hash;
|
|
167
|
+
input: viem0.Hex;
|
|
167
168
|
nonce: number;
|
|
168
|
-
r:
|
|
169
|
-
s:
|
|
170
|
-
to:
|
|
169
|
+
r: viem0.Hex;
|
|
170
|
+
s: viem0.Hex;
|
|
171
|
+
to: abitype0.Address | null;
|
|
171
172
|
transactionIndex: number | null;
|
|
172
|
-
typeHex:
|
|
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:
|
|
183
|
+
sourceHash: viem0.Hex;
|
|
183
184
|
type: "deposit";
|
|
184
185
|
} | {
|
|
185
|
-
r:
|
|
186
|
-
s:
|
|
186
|
+
r: viem0.Hex;
|
|
187
|
+
s: viem0.Hex;
|
|
187
188
|
v: bigint;
|
|
188
|
-
to:
|
|
189
|
-
from:
|
|
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:
|
|
196
|
-
input:
|
|
196
|
+
hash: viem0.Hash;
|
|
197
|
+
input: viem0.Hex;
|
|
197
198
|
transactionIndex: number | null;
|
|
198
|
-
typeHex:
|
|
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:
|
|
216
|
+
from: abitype0.Address;
|
|
216
217
|
gas: bigint;
|
|
217
|
-
hash:
|
|
218
|
-
input:
|
|
218
|
+
hash: viem0.Hash;
|
|
219
|
+
input: viem0.Hex;
|
|
219
220
|
nonce: number;
|
|
220
|
-
r:
|
|
221
|
-
s:
|
|
222
|
-
to:
|
|
221
|
+
r: viem0.Hex;
|
|
222
|
+
s: viem0.Hex;
|
|
223
|
+
to: abitype0.Address | null;
|
|
223
224
|
transactionIndex: number | null;
|
|
224
|
-
typeHex:
|
|
225
|
+
typeHex: viem0.Hex | null;
|
|
225
226
|
v: bigint;
|
|
226
227
|
value: bigint;
|
|
227
228
|
yParity: number;
|
|
228
|
-
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:
|
|
244
|
+
from: abitype0.Address;
|
|
244
245
|
gas: bigint;
|
|
245
|
-
hash:
|
|
246
|
-
input:
|
|
246
|
+
hash: viem0.Hash;
|
|
247
|
+
input: viem0.Hex;
|
|
247
248
|
nonce: number;
|
|
248
|
-
r:
|
|
249
|
-
s:
|
|
250
|
-
to:
|
|
249
|
+
r: viem0.Hex;
|
|
250
|
+
s: viem0.Hex;
|
|
251
|
+
to: abitype0.Address | null;
|
|
251
252
|
transactionIndex: number | null;
|
|
252
|
-
typeHex:
|
|
253
|
+
typeHex: viem0.Hex | null;
|
|
253
254
|
v: bigint;
|
|
254
255
|
value: bigint;
|
|
255
256
|
yParity: number;
|
|
256
|
-
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:
|
|
272
|
+
from: abitype0.Address;
|
|
272
273
|
gas: bigint;
|
|
273
|
-
hash:
|
|
274
|
-
input:
|
|
274
|
+
hash: viem0.Hash;
|
|
275
|
+
input: viem0.Hex;
|
|
275
276
|
nonce: number;
|
|
276
|
-
r:
|
|
277
|
-
s:
|
|
278
|
-
to:
|
|
277
|
+
r: viem0.Hex;
|
|
278
|
+
s: viem0.Hex;
|
|
279
|
+
to: abitype0.Address | null;
|
|
279
280
|
transactionIndex: number | null;
|
|
280
|
-
typeHex:
|
|
281
|
+
typeHex: viem0.Hex | null;
|
|
281
282
|
v: bigint;
|
|
282
283
|
value: bigint;
|
|
283
284
|
yParity: number;
|
|
284
|
-
accessList:
|
|
285
|
+
accessList: viem0.AccessList;
|
|
285
286
|
authorizationList?: undefined | undefined;
|
|
286
|
-
blobVersionedHashes: readonly
|
|
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:
|
|
300
|
+
from: abitype0.Address;
|
|
300
301
|
gas: bigint;
|
|
301
|
-
hash:
|
|
302
|
-
input:
|
|
302
|
+
hash: viem0.Hash;
|
|
303
|
+
input: viem0.Hex;
|
|
303
304
|
nonce: number;
|
|
304
|
-
r:
|
|
305
|
-
s:
|
|
306
|
-
to:
|
|
305
|
+
r: viem0.Hex;
|
|
306
|
+
s: viem0.Hex;
|
|
307
|
+
to: abitype0.Address | null;
|
|
307
308
|
transactionIndex: number | null;
|
|
308
|
-
typeHex:
|
|
309
|
+
typeHex: viem0.Hex | null;
|
|
309
310
|
v: bigint;
|
|
310
311
|
value: bigint;
|
|
311
312
|
yParity: number;
|
|
312
|
-
accessList:
|
|
313
|
-
authorizationList:
|
|
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:
|
|
330
|
+
format: (args: viem_chains0.OpStackRpcTransactionReceipt, action?: string | undefined) => {
|
|
330
331
|
blobGasPrice?: bigint | undefined;
|
|
331
332
|
blobGasUsed?: bigint | undefined;
|
|
332
|
-
blockHash:
|
|
333
|
+
blockHash: viem0.Hash;
|
|
333
334
|
blockNumber: bigint;
|
|
334
335
|
blockTimestamp?: bigint | undefined;
|
|
335
|
-
contractAddress:
|
|
336
|
+
contractAddress: abitype0.Address | null | undefined;
|
|
336
337
|
cumulativeGasUsed: bigint;
|
|
337
338
|
effectiveGasPrice: bigint;
|
|
338
|
-
from:
|
|
339
|
+
from: abitype0.Address;
|
|
339
340
|
gasUsed: bigint;
|
|
340
|
-
logs:
|
|
341
|
-
logsBloom:
|
|
341
|
+
logs: viem0.Log<bigint, number, false>[];
|
|
342
|
+
logsBloom: viem0.Hex;
|
|
342
343
|
root?: `0x${string}` | undefined;
|
|
343
344
|
status: "success" | "reverted";
|
|
344
|
-
to:
|
|
345
|
-
transactionHash:
|
|
345
|
+
to: abitype0.Address | null;
|
|
346
|
+
transactionHash: viem0.Hash;
|
|
346
347
|
transactionIndex: number;
|
|
347
|
-
type:
|
|
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:
|
|
357
|
+
prepareTransactionRequest?: ((args: viem0.PrepareTransactionRequestParameters, options: {
|
|
357
358
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
358
|
-
}) => Promise<
|
|
359
|
+
}) => Promise<viem0.PrepareTransactionRequestParameters>) | [fn: ((args: viem0.PrepareTransactionRequestParameters, options: {
|
|
359
360
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
360
|
-
}) => Promise<
|
|
361
|
+
}) => Promise<viem0.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
361
362
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
362
363
|
}] | undefined;
|
|
363
364
|
serializers: {
|
|
364
|
-
readonly transaction: typeof
|
|
365
|
+
readonly transaction: typeof viem_chains0.serializeTransactionOpStack;
|
|
365
366
|
};
|
|
366
|
-
verifyHash?: ((client:
|
|
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?:
|
|
404
|
+
fees?: viem0.ChainFees<undefined> | undefined;
|
|
404
405
|
formatters?: undefined;
|
|
405
|
-
prepareTransactionRequest?: ((args:
|
|
406
|
+
prepareTransactionRequest?: ((args: viem0.PrepareTransactionRequestParameters, options: {
|
|
406
407
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
407
|
-
}) => Promise<
|
|
408
|
+
}) => Promise<viem0.PrepareTransactionRequestParameters>) | [fn: ((args: viem0.PrepareTransactionRequestParameters, options: {
|
|
408
409
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
409
|
-
}) => Promise<
|
|
410
|
+
}) => Promise<viem0.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
410
411
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
411
412
|
}] | undefined;
|
|
412
|
-
serializers?:
|
|
413
|
-
verifyHash?: ((client:
|
|
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?:
|
|
488
|
+
fees?: viem0.ChainFees<undefined> | undefined;
|
|
488
489
|
formatters: {
|
|
489
490
|
readonly block: {
|
|
490
491
|
exclude: [] | undefined;
|
|
491
|
-
format: (args:
|
|
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:
|
|
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:
|
|
502
|
-
mixHash:
|
|
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:
|
|
507
|
-
receiptsRoot:
|
|
508
|
-
sealFields:
|
|
509
|
-
sha3Uncles:
|
|
507
|
+
parentHash: viem0.Hash;
|
|
508
|
+
receiptsRoot: viem0.Hex;
|
|
509
|
+
sealFields: viem0.Hex[];
|
|
510
|
+
sha3Uncles: viem0.Hash;
|
|
510
511
|
size: bigint;
|
|
511
|
-
stateRoot:
|
|
512
|
+
stateRoot: viem0.Hash;
|
|
512
513
|
timestamp: bigint;
|
|
513
514
|
totalDifficulty: bigint | null;
|
|
514
|
-
transactions: `0x${string}`[] |
|
|
515
|
-
transactionsRoot:
|
|
516
|
-
uncles:
|
|
517
|
-
withdrawals?:
|
|
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:
|
|
525
|
+
format: (args: viem_chains0.OpStackRpcTransaction, action?: string | undefined) => ({
|
|
525
526
|
blockHash: `0x${string}` | null;
|
|
526
527
|
blockNumber: bigint | null;
|
|
527
|
-
from:
|
|
528
|
+
from: abitype0.Address;
|
|
528
529
|
gas: bigint;
|
|
529
|
-
hash:
|
|
530
|
-
input:
|
|
530
|
+
hash: viem0.Hash;
|
|
531
|
+
input: viem0.Hex;
|
|
531
532
|
nonce: number;
|
|
532
|
-
r:
|
|
533
|
-
s:
|
|
534
|
-
to:
|
|
533
|
+
r: viem0.Hex;
|
|
534
|
+
s: viem0.Hex;
|
|
535
|
+
to: abitype0.Address | null;
|
|
535
536
|
transactionIndex: number | null;
|
|
536
|
-
typeHex:
|
|
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:
|
|
547
|
+
sourceHash: viem0.Hex;
|
|
547
548
|
type: "deposit";
|
|
548
549
|
} | {
|
|
549
|
-
r:
|
|
550
|
-
s:
|
|
550
|
+
r: viem0.Hex;
|
|
551
|
+
s: viem0.Hex;
|
|
551
552
|
v: bigint;
|
|
552
|
-
to:
|
|
553
|
-
from:
|
|
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:
|
|
560
|
-
input:
|
|
560
|
+
hash: viem0.Hash;
|
|
561
|
+
input: viem0.Hex;
|
|
561
562
|
transactionIndex: number | null;
|
|
562
|
-
typeHex:
|
|
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:
|
|
580
|
+
from: abitype0.Address;
|
|
580
581
|
gas: bigint;
|
|
581
|
-
hash:
|
|
582
|
-
input:
|
|
582
|
+
hash: viem0.Hash;
|
|
583
|
+
input: viem0.Hex;
|
|
583
584
|
nonce: number;
|
|
584
|
-
r:
|
|
585
|
-
s:
|
|
586
|
-
to:
|
|
585
|
+
r: viem0.Hex;
|
|
586
|
+
s: viem0.Hex;
|
|
587
|
+
to: abitype0.Address | null;
|
|
587
588
|
transactionIndex: number | null;
|
|
588
|
-
typeHex:
|
|
589
|
+
typeHex: viem0.Hex | null;
|
|
589
590
|
v: bigint;
|
|
590
591
|
value: bigint;
|
|
591
592
|
yParity: number;
|
|
592
|
-
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:
|
|
608
|
+
from: abitype0.Address;
|
|
608
609
|
gas: bigint;
|
|
609
|
-
hash:
|
|
610
|
-
input:
|
|
610
|
+
hash: viem0.Hash;
|
|
611
|
+
input: viem0.Hex;
|
|
611
612
|
nonce: number;
|
|
612
|
-
r:
|
|
613
|
-
s:
|
|
614
|
-
to:
|
|
613
|
+
r: viem0.Hex;
|
|
614
|
+
s: viem0.Hex;
|
|
615
|
+
to: abitype0.Address | null;
|
|
615
616
|
transactionIndex: number | null;
|
|
616
|
-
typeHex:
|
|
617
|
+
typeHex: viem0.Hex | null;
|
|
617
618
|
v: bigint;
|
|
618
619
|
value: bigint;
|
|
619
620
|
yParity: number;
|
|
620
|
-
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:
|
|
636
|
+
from: abitype0.Address;
|
|
636
637
|
gas: bigint;
|
|
637
|
-
hash:
|
|
638
|
-
input:
|
|
638
|
+
hash: viem0.Hash;
|
|
639
|
+
input: viem0.Hex;
|
|
639
640
|
nonce: number;
|
|
640
|
-
r:
|
|
641
|
-
s:
|
|
642
|
-
to:
|
|
641
|
+
r: viem0.Hex;
|
|
642
|
+
s: viem0.Hex;
|
|
643
|
+
to: abitype0.Address | null;
|
|
643
644
|
transactionIndex: number | null;
|
|
644
|
-
typeHex:
|
|
645
|
+
typeHex: viem0.Hex | null;
|
|
645
646
|
v: bigint;
|
|
646
647
|
value: bigint;
|
|
647
648
|
yParity: number;
|
|
648
|
-
accessList:
|
|
649
|
+
accessList: viem0.AccessList;
|
|
649
650
|
authorizationList?: undefined | undefined;
|
|
650
|
-
blobVersionedHashes: readonly
|
|
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:
|
|
664
|
+
from: abitype0.Address;
|
|
664
665
|
gas: bigint;
|
|
665
|
-
hash:
|
|
666
|
-
input:
|
|
666
|
+
hash: viem0.Hash;
|
|
667
|
+
input: viem0.Hex;
|
|
667
668
|
nonce: number;
|
|
668
|
-
r:
|
|
669
|
-
s:
|
|
670
|
-
to:
|
|
669
|
+
r: viem0.Hex;
|
|
670
|
+
s: viem0.Hex;
|
|
671
|
+
to: abitype0.Address | null;
|
|
671
672
|
transactionIndex: number | null;
|
|
672
|
-
typeHex:
|
|
673
|
+
typeHex: viem0.Hex | null;
|
|
673
674
|
v: bigint;
|
|
674
675
|
value: bigint;
|
|
675
676
|
yParity: number;
|
|
676
|
-
accessList:
|
|
677
|
-
authorizationList:
|
|
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:
|
|
694
|
+
format: (args: viem_chains0.OpStackRpcTransactionReceipt, action?: string | undefined) => {
|
|
694
695
|
blobGasPrice?: bigint | undefined;
|
|
695
696
|
blobGasUsed?: bigint | undefined;
|
|
696
|
-
blockHash:
|
|
697
|
+
blockHash: viem0.Hash;
|
|
697
698
|
blockNumber: bigint;
|
|
698
699
|
blockTimestamp?: bigint | undefined;
|
|
699
|
-
contractAddress:
|
|
700
|
+
contractAddress: abitype0.Address | null | undefined;
|
|
700
701
|
cumulativeGasUsed: bigint;
|
|
701
702
|
effectiveGasPrice: bigint;
|
|
702
|
-
from:
|
|
703
|
+
from: abitype0.Address;
|
|
703
704
|
gasUsed: bigint;
|
|
704
|
-
logs:
|
|
705
|
-
logsBloom:
|
|
705
|
+
logs: viem0.Log<bigint, number, false>[];
|
|
706
|
+
logsBloom: viem0.Hex;
|
|
706
707
|
root?: `0x${string}` | undefined;
|
|
707
708
|
status: "success" | "reverted";
|
|
708
|
-
to:
|
|
709
|
-
transactionHash:
|
|
709
|
+
to: abitype0.Address | null;
|
|
710
|
+
transactionHash: viem0.Hash;
|
|
710
711
|
transactionIndex: number;
|
|
711
|
-
type:
|
|
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:
|
|
721
|
+
prepareTransactionRequest?: ((args: viem0.PrepareTransactionRequestParameters, options: {
|
|
721
722
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
722
|
-
}) => Promise<
|
|
723
|
+
}) => Promise<viem0.PrepareTransactionRequestParameters>) | [fn: ((args: viem0.PrepareTransactionRequestParameters, options: {
|
|
723
724
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
724
|
-
}) => Promise<
|
|
725
|
+
}) => Promise<viem0.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
725
726
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
726
727
|
}] | undefined;
|
|
727
728
|
serializers: {
|
|
728
|
-
readonly transaction: typeof
|
|
729
|
+
readonly transaction: typeof viem_chains0.serializeTransactionOpStack;
|
|
729
730
|
};
|
|
730
|
-
verifyHash?: ((client:
|
|
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): {
|