@fangorn-network/sdk 2026.4.23 → 2026.5.10
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 +1 -1
- package/lib/cli/index.d.ts +170 -170
- package/lib/config.d.ts +254 -254
- package/lib/registries/datasource-registry/index.d.ts +2 -2
- package/lib/registries/schema-registry/index.d.ts +2 -2
- package/lib/registries/settlement-registry/index.d.ts +2 -2
- package/lib/roles/consumer/index.js +4 -4
- package/lib/roles/publisher/index.d.ts +10 -18
- package/lib/roles/publisher/index.js +75 -43
- package/lib/roles/publisher/types.d.ts +20 -7
- package/lib/roles/schema/index.d.ts +2 -2
- package/lib/roles/schema/index.js +9 -0
- package/lib/roles/schema/types.d.ts +18 -8
- package/package.json +1 -1
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.
|
|
94
|
+
program.name("fangorn").description("Fangorn Network CLI").version("0.2.0");
|
|
95
95
|
program.command("init").description("Configure your Fangorn credentials").action(async () => {
|
|
96
96
|
intro("Fangorn Setup");
|
|
97
97
|
const privateKey = await text({
|
package/lib/cli/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./cli.js";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
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?:
|
|
39
|
+
fees?: viem257.ChainFees<undefined> | undefined;
|
|
40
40
|
formatters?: undefined;
|
|
41
|
-
prepareTransactionRequest?: ((args:
|
|
41
|
+
prepareTransactionRequest?: ((args: viem257.PrepareTransactionRequestParameters, options: {
|
|
42
42
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
43
|
-
}) => Promise<
|
|
43
|
+
}) => Promise<viem257.PrepareTransactionRequestParameters>) | [fn: ((args: viem257.PrepareTransactionRequestParameters, options: {
|
|
44
44
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
45
|
-
}) => Promise<
|
|
45
|
+
}) => Promise<viem257.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
46
46
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
47
47
|
}] | undefined;
|
|
48
|
-
serializers?:
|
|
49
|
-
verifyHash?: ((client:
|
|
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?:
|
|
123
|
+
fees?: viem257.ChainFees<undefined> | undefined;
|
|
124
124
|
formatters: {
|
|
125
125
|
readonly block: {
|
|
126
126
|
exclude: [] | undefined;
|
|
127
|
-
format: (args:
|
|
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:
|
|
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:
|
|
138
|
-
mixHash:
|
|
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:
|
|
143
|
-
receiptsRoot:
|
|
144
|
-
sealFields:
|
|
145
|
-
sha3Uncles:
|
|
142
|
+
parentHash: viem257.Hash;
|
|
143
|
+
receiptsRoot: viem257.Hex;
|
|
144
|
+
sealFields: viem257.Hex[];
|
|
145
|
+
sha3Uncles: viem257.Hash;
|
|
146
146
|
size: bigint;
|
|
147
|
-
stateRoot:
|
|
147
|
+
stateRoot: viem257.Hash;
|
|
148
148
|
timestamp: bigint;
|
|
149
149
|
totalDifficulty: bigint | null;
|
|
150
|
-
transactions: `0x${string}`[] |
|
|
151
|
-
transactionsRoot:
|
|
152
|
-
uncles:
|
|
153
|
-
withdrawals?:
|
|
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:
|
|
160
|
+
format: (args: viem_chains14.OpStackRpcTransaction, action?: string | undefined) => ({
|
|
161
161
|
blockHash: `0x${string}` | null;
|
|
162
162
|
blockNumber: bigint | null;
|
|
163
|
-
from:
|
|
163
|
+
from: viem257.Address;
|
|
164
164
|
gas: bigint;
|
|
165
|
-
hash:
|
|
166
|
-
input:
|
|
165
|
+
hash: viem257.Hash;
|
|
166
|
+
input: viem257.Hex;
|
|
167
167
|
nonce: number;
|
|
168
|
-
r:
|
|
169
|
-
s:
|
|
170
|
-
to:
|
|
168
|
+
r: viem257.Hex;
|
|
169
|
+
s: viem257.Hex;
|
|
170
|
+
to: viem257.Address | null;
|
|
171
171
|
transactionIndex: number | null;
|
|
172
|
-
typeHex:
|
|
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:
|
|
182
|
+
sourceHash: viem257.Hex;
|
|
183
183
|
type: "deposit";
|
|
184
184
|
} | {
|
|
185
|
-
r:
|
|
186
|
-
s:
|
|
185
|
+
r: viem257.Hex;
|
|
186
|
+
s: viem257.Hex;
|
|
187
187
|
v: bigint;
|
|
188
|
-
to:
|
|
189
|
-
from:
|
|
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:
|
|
196
|
-
input:
|
|
195
|
+
hash: viem257.Hash;
|
|
196
|
+
input: viem257.Hex;
|
|
197
197
|
transactionIndex: number | null;
|
|
198
|
-
typeHex:
|
|
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:
|
|
215
|
+
from: viem257.Address;
|
|
216
216
|
gas: bigint;
|
|
217
|
-
hash:
|
|
218
|
-
input:
|
|
217
|
+
hash: viem257.Hash;
|
|
218
|
+
input: viem257.Hex;
|
|
219
219
|
nonce: number;
|
|
220
|
-
r:
|
|
221
|
-
s:
|
|
222
|
-
to:
|
|
220
|
+
r: viem257.Hex;
|
|
221
|
+
s: viem257.Hex;
|
|
222
|
+
to: viem257.Address | null;
|
|
223
223
|
transactionIndex: number | null;
|
|
224
|
-
typeHex:
|
|
224
|
+
typeHex: viem257.Hex | null;
|
|
225
225
|
v: bigint;
|
|
226
226
|
value: bigint;
|
|
227
227
|
yParity: number;
|
|
228
|
-
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:
|
|
243
|
+
from: viem257.Address;
|
|
244
244
|
gas: bigint;
|
|
245
|
-
hash:
|
|
246
|
-
input:
|
|
245
|
+
hash: viem257.Hash;
|
|
246
|
+
input: viem257.Hex;
|
|
247
247
|
nonce: number;
|
|
248
|
-
r:
|
|
249
|
-
s:
|
|
250
|
-
to:
|
|
248
|
+
r: viem257.Hex;
|
|
249
|
+
s: viem257.Hex;
|
|
250
|
+
to: viem257.Address | null;
|
|
251
251
|
transactionIndex: number | null;
|
|
252
|
-
typeHex:
|
|
252
|
+
typeHex: viem257.Hex | null;
|
|
253
253
|
v: bigint;
|
|
254
254
|
value: bigint;
|
|
255
255
|
yParity: number;
|
|
256
|
-
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:
|
|
271
|
+
from: viem257.Address;
|
|
272
272
|
gas: bigint;
|
|
273
|
-
hash:
|
|
274
|
-
input:
|
|
273
|
+
hash: viem257.Hash;
|
|
274
|
+
input: viem257.Hex;
|
|
275
275
|
nonce: number;
|
|
276
|
-
r:
|
|
277
|
-
s:
|
|
278
|
-
to:
|
|
276
|
+
r: viem257.Hex;
|
|
277
|
+
s: viem257.Hex;
|
|
278
|
+
to: viem257.Address | null;
|
|
279
279
|
transactionIndex: number | null;
|
|
280
|
-
typeHex:
|
|
280
|
+
typeHex: viem257.Hex | null;
|
|
281
281
|
v: bigint;
|
|
282
282
|
value: bigint;
|
|
283
283
|
yParity: number;
|
|
284
|
-
accessList:
|
|
284
|
+
accessList: viem257.AccessList;
|
|
285
285
|
authorizationList?: undefined | undefined;
|
|
286
|
-
blobVersionedHashes: readonly
|
|
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:
|
|
299
|
+
from: viem257.Address;
|
|
300
300
|
gas: bigint;
|
|
301
|
-
hash:
|
|
302
|
-
input:
|
|
301
|
+
hash: viem257.Hash;
|
|
302
|
+
input: viem257.Hex;
|
|
303
303
|
nonce: number;
|
|
304
|
-
r:
|
|
305
|
-
s:
|
|
306
|
-
to:
|
|
304
|
+
r: viem257.Hex;
|
|
305
|
+
s: viem257.Hex;
|
|
306
|
+
to: viem257.Address | null;
|
|
307
307
|
transactionIndex: number | null;
|
|
308
|
-
typeHex:
|
|
308
|
+
typeHex: viem257.Hex | null;
|
|
309
309
|
v: bigint;
|
|
310
310
|
value: bigint;
|
|
311
311
|
yParity: number;
|
|
312
|
-
accessList:
|
|
313
|
-
authorizationList:
|
|
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:
|
|
329
|
+
format: (args: viem_chains14.OpStackRpcTransactionReceipt, action?: string | undefined) => {
|
|
330
330
|
blobGasPrice?: bigint | undefined;
|
|
331
331
|
blobGasUsed?: bigint | undefined;
|
|
332
|
-
blockHash:
|
|
332
|
+
blockHash: viem257.Hash;
|
|
333
333
|
blockNumber: bigint;
|
|
334
334
|
blockTimestamp?: bigint | undefined;
|
|
335
|
-
contractAddress:
|
|
335
|
+
contractAddress: viem257.Address | null | undefined;
|
|
336
336
|
cumulativeGasUsed: bigint;
|
|
337
337
|
effectiveGasPrice: bigint;
|
|
338
|
-
from:
|
|
338
|
+
from: viem257.Address;
|
|
339
339
|
gasUsed: bigint;
|
|
340
|
-
logs:
|
|
341
|
-
logsBloom:
|
|
340
|
+
logs: viem257.Log<bigint, number, false>[];
|
|
341
|
+
logsBloom: viem257.Hex;
|
|
342
342
|
root?: `0x${string}` | undefined;
|
|
343
343
|
status: "success" | "reverted";
|
|
344
|
-
to:
|
|
345
|
-
transactionHash:
|
|
344
|
+
to: viem257.Address | null;
|
|
345
|
+
transactionHash: viem257.Hash;
|
|
346
346
|
transactionIndex: number;
|
|
347
|
-
type:
|
|
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:
|
|
356
|
+
prepareTransactionRequest?: ((args: viem257.PrepareTransactionRequestParameters, options: {
|
|
357
357
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
358
|
-
}) => Promise<
|
|
358
|
+
}) => Promise<viem257.PrepareTransactionRequestParameters>) | [fn: ((args: viem257.PrepareTransactionRequestParameters, options: {
|
|
359
359
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
360
|
-
}) => Promise<
|
|
360
|
+
}) => Promise<viem257.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
361
361
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
362
362
|
}] | undefined;
|
|
363
363
|
serializers: {
|
|
364
|
-
readonly transaction: typeof
|
|
364
|
+
readonly transaction: typeof viem_chains14.serializeTransactionOpStack;
|
|
365
365
|
};
|
|
366
|
-
verifyHash?: ((client:
|
|
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?:
|
|
403
|
+
fees?: viem257.ChainFees<undefined> | undefined;
|
|
404
404
|
formatters?: undefined;
|
|
405
|
-
prepareTransactionRequest?: ((args:
|
|
405
|
+
prepareTransactionRequest?: ((args: viem257.PrepareTransactionRequestParameters, options: {
|
|
406
406
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
407
|
-
}) => Promise<
|
|
407
|
+
}) => Promise<viem257.PrepareTransactionRequestParameters>) | [fn: ((args: viem257.PrepareTransactionRequestParameters, options: {
|
|
408
408
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
409
|
-
}) => Promise<
|
|
409
|
+
}) => Promise<viem257.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
410
410
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
411
411
|
}] | undefined;
|
|
412
|
-
serializers?:
|
|
413
|
-
verifyHash?: ((client:
|
|
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?:
|
|
487
|
+
fees?: viem257.ChainFees<undefined> | undefined;
|
|
488
488
|
formatters: {
|
|
489
489
|
readonly block: {
|
|
490
490
|
exclude: [] | undefined;
|
|
491
|
-
format: (args:
|
|
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:
|
|
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:
|
|
502
|
-
mixHash:
|
|
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:
|
|
507
|
-
receiptsRoot:
|
|
508
|
-
sealFields:
|
|
509
|
-
sha3Uncles:
|
|
506
|
+
parentHash: viem257.Hash;
|
|
507
|
+
receiptsRoot: viem257.Hex;
|
|
508
|
+
sealFields: viem257.Hex[];
|
|
509
|
+
sha3Uncles: viem257.Hash;
|
|
510
510
|
size: bigint;
|
|
511
|
-
stateRoot:
|
|
511
|
+
stateRoot: viem257.Hash;
|
|
512
512
|
timestamp: bigint;
|
|
513
513
|
totalDifficulty: bigint | null;
|
|
514
|
-
transactions: `0x${string}`[] |
|
|
515
|
-
transactionsRoot:
|
|
516
|
-
uncles:
|
|
517
|
-
withdrawals?:
|
|
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:
|
|
524
|
+
format: (args: viem_chains14.OpStackRpcTransaction, action?: string | undefined) => ({
|
|
525
525
|
blockHash: `0x${string}` | null;
|
|
526
526
|
blockNumber: bigint | null;
|
|
527
|
-
from:
|
|
527
|
+
from: viem257.Address;
|
|
528
528
|
gas: bigint;
|
|
529
|
-
hash:
|
|
530
|
-
input:
|
|
529
|
+
hash: viem257.Hash;
|
|
530
|
+
input: viem257.Hex;
|
|
531
531
|
nonce: number;
|
|
532
|
-
r:
|
|
533
|
-
s:
|
|
534
|
-
to:
|
|
532
|
+
r: viem257.Hex;
|
|
533
|
+
s: viem257.Hex;
|
|
534
|
+
to: viem257.Address | null;
|
|
535
535
|
transactionIndex: number | null;
|
|
536
|
-
typeHex:
|
|
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:
|
|
546
|
+
sourceHash: viem257.Hex;
|
|
547
547
|
type: "deposit";
|
|
548
548
|
} | {
|
|
549
|
-
r:
|
|
550
|
-
s:
|
|
549
|
+
r: viem257.Hex;
|
|
550
|
+
s: viem257.Hex;
|
|
551
551
|
v: bigint;
|
|
552
|
-
to:
|
|
553
|
-
from:
|
|
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:
|
|
560
|
-
input:
|
|
559
|
+
hash: viem257.Hash;
|
|
560
|
+
input: viem257.Hex;
|
|
561
561
|
transactionIndex: number | null;
|
|
562
|
-
typeHex:
|
|
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:
|
|
579
|
+
from: viem257.Address;
|
|
580
580
|
gas: bigint;
|
|
581
|
-
hash:
|
|
582
|
-
input:
|
|
581
|
+
hash: viem257.Hash;
|
|
582
|
+
input: viem257.Hex;
|
|
583
583
|
nonce: number;
|
|
584
|
-
r:
|
|
585
|
-
s:
|
|
586
|
-
to:
|
|
584
|
+
r: viem257.Hex;
|
|
585
|
+
s: viem257.Hex;
|
|
586
|
+
to: viem257.Address | null;
|
|
587
587
|
transactionIndex: number | null;
|
|
588
|
-
typeHex:
|
|
588
|
+
typeHex: viem257.Hex | null;
|
|
589
589
|
v: bigint;
|
|
590
590
|
value: bigint;
|
|
591
591
|
yParity: number;
|
|
592
|
-
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:
|
|
607
|
+
from: viem257.Address;
|
|
608
608
|
gas: bigint;
|
|
609
|
-
hash:
|
|
610
|
-
input:
|
|
609
|
+
hash: viem257.Hash;
|
|
610
|
+
input: viem257.Hex;
|
|
611
611
|
nonce: number;
|
|
612
|
-
r:
|
|
613
|
-
s:
|
|
614
|
-
to:
|
|
612
|
+
r: viem257.Hex;
|
|
613
|
+
s: viem257.Hex;
|
|
614
|
+
to: viem257.Address | null;
|
|
615
615
|
transactionIndex: number | null;
|
|
616
|
-
typeHex:
|
|
616
|
+
typeHex: viem257.Hex | null;
|
|
617
617
|
v: bigint;
|
|
618
618
|
value: bigint;
|
|
619
619
|
yParity: number;
|
|
620
|
-
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:
|
|
635
|
+
from: viem257.Address;
|
|
636
636
|
gas: bigint;
|
|
637
|
-
hash:
|
|
638
|
-
input:
|
|
637
|
+
hash: viem257.Hash;
|
|
638
|
+
input: viem257.Hex;
|
|
639
639
|
nonce: number;
|
|
640
|
-
r:
|
|
641
|
-
s:
|
|
642
|
-
to:
|
|
640
|
+
r: viem257.Hex;
|
|
641
|
+
s: viem257.Hex;
|
|
642
|
+
to: viem257.Address | null;
|
|
643
643
|
transactionIndex: number | null;
|
|
644
|
-
typeHex:
|
|
644
|
+
typeHex: viem257.Hex | null;
|
|
645
645
|
v: bigint;
|
|
646
646
|
value: bigint;
|
|
647
647
|
yParity: number;
|
|
648
|
-
accessList:
|
|
648
|
+
accessList: viem257.AccessList;
|
|
649
649
|
authorizationList?: undefined | undefined;
|
|
650
|
-
blobVersionedHashes: readonly
|
|
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:
|
|
663
|
+
from: viem257.Address;
|
|
664
664
|
gas: bigint;
|
|
665
|
-
hash:
|
|
666
|
-
input:
|
|
665
|
+
hash: viem257.Hash;
|
|
666
|
+
input: viem257.Hex;
|
|
667
667
|
nonce: number;
|
|
668
|
-
r:
|
|
669
|
-
s:
|
|
670
|
-
to:
|
|
668
|
+
r: viem257.Hex;
|
|
669
|
+
s: viem257.Hex;
|
|
670
|
+
to: viem257.Address | null;
|
|
671
671
|
transactionIndex: number | null;
|
|
672
|
-
typeHex:
|
|
672
|
+
typeHex: viem257.Hex | null;
|
|
673
673
|
v: bigint;
|
|
674
674
|
value: bigint;
|
|
675
675
|
yParity: number;
|
|
676
|
-
accessList:
|
|
677
|
-
authorizationList:
|
|
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:
|
|
693
|
+
format: (args: viem_chains14.OpStackRpcTransactionReceipt, action?: string | undefined) => {
|
|
694
694
|
blobGasPrice?: bigint | undefined;
|
|
695
695
|
blobGasUsed?: bigint | undefined;
|
|
696
|
-
blockHash:
|
|
696
|
+
blockHash: viem257.Hash;
|
|
697
697
|
blockNumber: bigint;
|
|
698
698
|
blockTimestamp?: bigint | undefined;
|
|
699
|
-
contractAddress:
|
|
699
|
+
contractAddress: viem257.Address | null | undefined;
|
|
700
700
|
cumulativeGasUsed: bigint;
|
|
701
701
|
effectiveGasPrice: bigint;
|
|
702
|
-
from:
|
|
702
|
+
from: viem257.Address;
|
|
703
703
|
gasUsed: bigint;
|
|
704
|
-
logs:
|
|
705
|
-
logsBloom:
|
|
704
|
+
logs: viem257.Log<bigint, number, false>[];
|
|
705
|
+
logsBloom: viem257.Hex;
|
|
706
706
|
root?: `0x${string}` | undefined;
|
|
707
707
|
status: "success" | "reverted";
|
|
708
|
-
to:
|
|
709
|
-
transactionHash:
|
|
708
|
+
to: viem257.Address | null;
|
|
709
|
+
transactionHash: viem257.Hash;
|
|
710
710
|
transactionIndex: number;
|
|
711
|
-
type:
|
|
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:
|
|
720
|
+
prepareTransactionRequest?: ((args: viem257.PrepareTransactionRequestParameters, options: {
|
|
721
721
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
722
|
-
}) => Promise<
|
|
722
|
+
}) => Promise<viem257.PrepareTransactionRequestParameters>) | [fn: ((args: viem257.PrepareTransactionRequestParameters, options: {
|
|
723
723
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
724
|
-
}) => Promise<
|
|
724
|
+
}) => Promise<viem257.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
725
725
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
726
726
|
}] | undefined;
|
|
727
727
|
serializers: {
|
|
728
|
-
readonly transaction: typeof
|
|
728
|
+
readonly transaction: typeof viem_chains14.serializeTransactionOpStack;
|
|
729
729
|
};
|
|
730
|
-
verifyHash?: ((client:
|
|
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): {
|