@fangorn-network/sdk 2026.11.3 → 2026.11.4
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 +2 -1
- package/lib/cli/cli.js +65 -5
- package/lib/cli/stage.d.ts +19 -0
- package/lib/cli/stage.js +94 -0
- package/lib/config.d.ts +148 -148
- package/lib/config.js +2 -2
- package/lib/contracts/settlement-registry/abi.d.ts +14 -0
- package/lib/contracts/settlement-registry/abi.js +15 -0
- package/lib/contracts/settlement-registry/index.d.ts +2 -0
- package/lib/contracts/settlement-registry/index.js +4 -0
- package/lib/test/mem-registry.d.ts +2 -2
- package/lib/test/testbed.d.ts +5134 -5134
- package/package.json +1 -1
package/lib/config.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as viem_chains0 from "viem/chains";
|
|
2
|
-
import * as
|
|
2
|
+
import * as viem0 from "viem";
|
|
3
3
|
import { Chain, Hex } from "viem";
|
|
4
|
-
import * as
|
|
4
|
+
import * as abitype0 from "abitype";
|
|
5
5
|
|
|
6
6
|
//#region src/config.d.ts
|
|
7
7
|
/**
|
|
@@ -98,7 +98,7 @@ declare const BaseSepoliaConfig: {
|
|
|
98
98
|
testnet: true;
|
|
99
99
|
custom?: Record<string, unknown> | undefined;
|
|
100
100
|
extendSchema?: Record<string, unknown> | undefined;
|
|
101
|
-
fees?:
|
|
101
|
+
fees?: viem0.ChainFees<undefined> | undefined;
|
|
102
102
|
formatters: {
|
|
103
103
|
readonly block: {
|
|
104
104
|
exclude: [] | undefined;
|
|
@@ -107,28 +107,28 @@ declare const BaseSepoliaConfig: {
|
|
|
107
107
|
blobGasUsed: bigint;
|
|
108
108
|
difficulty: bigint;
|
|
109
109
|
excessBlobGas: bigint;
|
|
110
|
-
extraData:
|
|
110
|
+
extraData: viem0.Hex;
|
|
111
111
|
gasLimit: bigint;
|
|
112
112
|
gasUsed: bigint;
|
|
113
113
|
hash: `0x${string}` | null;
|
|
114
114
|
logsBloom: `0x${string}` | null;
|
|
115
|
-
miner:
|
|
116
|
-
mixHash:
|
|
115
|
+
miner: abitype0.Address;
|
|
116
|
+
mixHash: viem0.Hash;
|
|
117
117
|
nonce: `0x${string}` | null;
|
|
118
118
|
number: bigint | null;
|
|
119
119
|
parentBeaconBlockRoot?: `0x${string}` | undefined;
|
|
120
|
-
parentHash:
|
|
121
|
-
receiptsRoot:
|
|
122
|
-
sealFields:
|
|
123
|
-
sha3Uncles:
|
|
120
|
+
parentHash: viem0.Hash;
|
|
121
|
+
receiptsRoot: viem0.Hex;
|
|
122
|
+
sealFields: viem0.Hex[];
|
|
123
|
+
sha3Uncles: viem0.Hash;
|
|
124
124
|
size: bigint;
|
|
125
|
-
stateRoot:
|
|
125
|
+
stateRoot: viem0.Hash;
|
|
126
126
|
timestamp: bigint;
|
|
127
127
|
totalDifficulty: bigint | null;
|
|
128
128
|
transactions: `0x${string}`[] | viem_chains0.OpStackTransaction<boolean>[];
|
|
129
|
-
transactionsRoot:
|
|
130
|
-
uncles:
|
|
131
|
-
withdrawals?:
|
|
129
|
+
transactionsRoot: viem0.Hash;
|
|
130
|
+
uncles: viem0.Hash[];
|
|
131
|
+
withdrawals?: viem0.Withdrawal[] | undefined | undefined;
|
|
132
132
|
withdrawalsRoot?: `0x${string}` | undefined;
|
|
133
133
|
} & {};
|
|
134
134
|
type: "block";
|
|
@@ -138,16 +138,16 @@ declare const BaseSepoliaConfig: {
|
|
|
138
138
|
format: (args: viem_chains0.OpStackRpcTransaction, action?: string | undefined) => ({
|
|
139
139
|
blockHash: `0x${string}` | null;
|
|
140
140
|
blockNumber: bigint | null;
|
|
141
|
-
from:
|
|
141
|
+
from: abitype0.Address;
|
|
142
142
|
gas: bigint;
|
|
143
|
-
hash:
|
|
144
|
-
input:
|
|
143
|
+
hash: viem0.Hash;
|
|
144
|
+
input: viem0.Hex;
|
|
145
145
|
nonce: number;
|
|
146
|
-
r:
|
|
147
|
-
s:
|
|
148
|
-
to:
|
|
146
|
+
r: viem0.Hex;
|
|
147
|
+
s: viem0.Hex;
|
|
148
|
+
to: abitype0.Address | null;
|
|
149
149
|
transactionIndex: number | null;
|
|
150
|
-
typeHex:
|
|
150
|
+
typeHex: viem0.Hex | null;
|
|
151
151
|
v: bigint;
|
|
152
152
|
value: bigint;
|
|
153
153
|
yParity: number;
|
|
@@ -157,23 +157,23 @@ declare const BaseSepoliaConfig: {
|
|
|
157
157
|
maxPriorityFeePerGas: bigint;
|
|
158
158
|
isSystemTx?: boolean;
|
|
159
159
|
mint?: bigint | undefined | undefined;
|
|
160
|
-
sourceHash:
|
|
160
|
+
sourceHash: viem0.Hex;
|
|
161
161
|
type: "deposit";
|
|
162
162
|
} | {
|
|
163
|
-
r:
|
|
164
|
-
s:
|
|
163
|
+
r: viem0.Hex;
|
|
164
|
+
s: viem0.Hex;
|
|
165
165
|
v: bigint;
|
|
166
|
-
to:
|
|
167
|
-
from:
|
|
166
|
+
to: abitype0.Address | null;
|
|
167
|
+
from: abitype0.Address;
|
|
168
168
|
gas: bigint;
|
|
169
169
|
nonce: number;
|
|
170
170
|
value: bigint;
|
|
171
171
|
blockHash: `0x${string}` | null;
|
|
172
172
|
blockNumber: bigint | null;
|
|
173
|
-
hash:
|
|
174
|
-
input:
|
|
173
|
+
hash: viem0.Hash;
|
|
174
|
+
input: viem0.Hex;
|
|
175
175
|
transactionIndex: number | null;
|
|
176
|
-
typeHex:
|
|
176
|
+
typeHex: viem0.Hex | null;
|
|
177
177
|
accessList?: undefined | undefined;
|
|
178
178
|
authorizationList?: undefined | undefined;
|
|
179
179
|
blobVersionedHashes?: undefined | undefined;
|
|
@@ -190,20 +190,20 @@ declare const BaseSepoliaConfig: {
|
|
|
190
190
|
} | {
|
|
191
191
|
blockHash: `0x${string}` | null;
|
|
192
192
|
blockNumber: bigint | null;
|
|
193
|
-
from:
|
|
193
|
+
from: abitype0.Address;
|
|
194
194
|
gas: bigint;
|
|
195
|
-
hash:
|
|
196
|
-
input:
|
|
195
|
+
hash: viem0.Hash;
|
|
196
|
+
input: viem0.Hex;
|
|
197
197
|
nonce: number;
|
|
198
|
-
r:
|
|
199
|
-
s:
|
|
200
|
-
to:
|
|
198
|
+
r: viem0.Hex;
|
|
199
|
+
s: viem0.Hex;
|
|
200
|
+
to: abitype0.Address | null;
|
|
201
201
|
transactionIndex: number | null;
|
|
202
|
-
typeHex:
|
|
202
|
+
typeHex: viem0.Hex | null;
|
|
203
203
|
v: bigint;
|
|
204
204
|
value: bigint;
|
|
205
205
|
yParity: number;
|
|
206
|
-
accessList:
|
|
206
|
+
accessList: viem0.AccessList;
|
|
207
207
|
authorizationList?: undefined | undefined;
|
|
208
208
|
blobVersionedHashes?: undefined | undefined;
|
|
209
209
|
chainId: number;
|
|
@@ -218,20 +218,20 @@ declare const BaseSepoliaConfig: {
|
|
|
218
218
|
} | {
|
|
219
219
|
blockHash: `0x${string}` | null;
|
|
220
220
|
blockNumber: bigint | null;
|
|
221
|
-
from:
|
|
221
|
+
from: abitype0.Address;
|
|
222
222
|
gas: bigint;
|
|
223
|
-
hash:
|
|
224
|
-
input:
|
|
223
|
+
hash: viem0.Hash;
|
|
224
|
+
input: viem0.Hex;
|
|
225
225
|
nonce: number;
|
|
226
|
-
r:
|
|
227
|
-
s:
|
|
228
|
-
to:
|
|
226
|
+
r: viem0.Hex;
|
|
227
|
+
s: viem0.Hex;
|
|
228
|
+
to: abitype0.Address | null;
|
|
229
229
|
transactionIndex: number | null;
|
|
230
|
-
typeHex:
|
|
230
|
+
typeHex: viem0.Hex | null;
|
|
231
231
|
v: bigint;
|
|
232
232
|
value: bigint;
|
|
233
233
|
yParity: number;
|
|
234
|
-
accessList:
|
|
234
|
+
accessList: viem0.AccessList;
|
|
235
235
|
authorizationList?: undefined | undefined;
|
|
236
236
|
blobVersionedHashes?: undefined | undefined;
|
|
237
237
|
chainId: number;
|
|
@@ -246,22 +246,22 @@ declare const BaseSepoliaConfig: {
|
|
|
246
246
|
} | {
|
|
247
247
|
blockHash: `0x${string}` | null;
|
|
248
248
|
blockNumber: bigint | null;
|
|
249
|
-
from:
|
|
249
|
+
from: abitype0.Address;
|
|
250
250
|
gas: bigint;
|
|
251
|
-
hash:
|
|
252
|
-
input:
|
|
251
|
+
hash: viem0.Hash;
|
|
252
|
+
input: viem0.Hex;
|
|
253
253
|
nonce: number;
|
|
254
|
-
r:
|
|
255
|
-
s:
|
|
256
|
-
to:
|
|
254
|
+
r: viem0.Hex;
|
|
255
|
+
s: viem0.Hex;
|
|
256
|
+
to: abitype0.Address | null;
|
|
257
257
|
transactionIndex: number | null;
|
|
258
|
-
typeHex:
|
|
258
|
+
typeHex: viem0.Hex | null;
|
|
259
259
|
v: bigint;
|
|
260
260
|
value: bigint;
|
|
261
261
|
yParity: number;
|
|
262
|
-
accessList:
|
|
262
|
+
accessList: viem0.AccessList;
|
|
263
263
|
authorizationList?: undefined | undefined;
|
|
264
|
-
blobVersionedHashes: readonly
|
|
264
|
+
blobVersionedHashes: readonly viem0.Hex[];
|
|
265
265
|
chainId: number;
|
|
266
266
|
type: "eip4844";
|
|
267
267
|
gasPrice?: undefined | undefined;
|
|
@@ -274,21 +274,21 @@ declare const BaseSepoliaConfig: {
|
|
|
274
274
|
} | {
|
|
275
275
|
blockHash: `0x${string}` | null;
|
|
276
276
|
blockNumber: bigint | null;
|
|
277
|
-
from:
|
|
277
|
+
from: abitype0.Address;
|
|
278
278
|
gas: bigint;
|
|
279
|
-
hash:
|
|
280
|
-
input:
|
|
279
|
+
hash: viem0.Hash;
|
|
280
|
+
input: viem0.Hex;
|
|
281
281
|
nonce: number;
|
|
282
|
-
r:
|
|
283
|
-
s:
|
|
284
|
-
to:
|
|
282
|
+
r: viem0.Hex;
|
|
283
|
+
s: viem0.Hex;
|
|
284
|
+
to: abitype0.Address | null;
|
|
285
285
|
transactionIndex: number | null;
|
|
286
|
-
typeHex:
|
|
286
|
+
typeHex: viem0.Hex | null;
|
|
287
287
|
v: bigint;
|
|
288
288
|
value: bigint;
|
|
289
289
|
yParity: number;
|
|
290
|
-
accessList:
|
|
291
|
-
authorizationList:
|
|
290
|
+
accessList: viem0.AccessList;
|
|
291
|
+
authorizationList: viem0.SignedAuthorizationList;
|
|
292
292
|
blobVersionedHashes?: undefined | undefined;
|
|
293
293
|
chainId: number;
|
|
294
294
|
type: "eip7702";
|
|
@@ -307,22 +307,22 @@ declare const BaseSepoliaConfig: {
|
|
|
307
307
|
format: (args: viem_chains0.OpStackRpcTransactionReceipt, action?: string | undefined) => {
|
|
308
308
|
blobGasPrice?: bigint | undefined;
|
|
309
309
|
blobGasUsed?: bigint | undefined;
|
|
310
|
-
blockHash:
|
|
310
|
+
blockHash: viem0.Hash;
|
|
311
311
|
blockNumber: bigint;
|
|
312
312
|
blockTimestamp?: bigint | undefined;
|
|
313
|
-
contractAddress:
|
|
313
|
+
contractAddress: abitype0.Address | null | undefined;
|
|
314
314
|
cumulativeGasUsed: bigint;
|
|
315
315
|
effectiveGasPrice: bigint;
|
|
316
|
-
from:
|
|
316
|
+
from: abitype0.Address;
|
|
317
317
|
gasUsed: bigint;
|
|
318
|
-
logs:
|
|
319
|
-
logsBloom:
|
|
318
|
+
logs: viem0.Log<bigint, number, false>[];
|
|
319
|
+
logsBloom: viem0.Hex;
|
|
320
320
|
root?: `0x${string}` | undefined;
|
|
321
321
|
status: "success" | "reverted";
|
|
322
|
-
to:
|
|
323
|
-
transactionHash:
|
|
322
|
+
to: abitype0.Address | null;
|
|
323
|
+
transactionHash: viem0.Hash;
|
|
324
324
|
transactionIndex: number;
|
|
325
|
-
type:
|
|
325
|
+
type: viem0.TransactionType;
|
|
326
326
|
l1GasPrice: bigint | null;
|
|
327
327
|
l1GasUsed: bigint | null;
|
|
328
328
|
l1Fee: bigint | null;
|
|
@@ -331,17 +331,17 @@ declare const BaseSepoliaConfig: {
|
|
|
331
331
|
type: "transactionReceipt";
|
|
332
332
|
};
|
|
333
333
|
};
|
|
334
|
-
prepareTransactionRequest?: ((args:
|
|
334
|
+
prepareTransactionRequest?: ((args: viem0.PrepareTransactionRequestParameters, options: {
|
|
335
335
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
336
|
-
}) => Promise<
|
|
336
|
+
}) => Promise<viem0.PrepareTransactionRequestParameters>) | [fn: ((args: viem0.PrepareTransactionRequestParameters, options: {
|
|
337
337
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
338
|
-
}) => Promise<
|
|
338
|
+
}) => Promise<viem0.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
339
339
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
340
340
|
}] | undefined;
|
|
341
341
|
serializers: {
|
|
342
342
|
readonly transaction: typeof viem_chains0.serializeTransactionOpStack;
|
|
343
343
|
};
|
|
344
|
-
verifyHash?: ((client:
|
|
344
|
+
verifyHash?: ((client: viem0.Client, parameters: viem0.VerifyHashActionParameters) => Promise<viem0.VerifyHashActionReturnType>) | undefined;
|
|
345
345
|
readonly network: "base-sepolia";
|
|
346
346
|
};
|
|
347
347
|
rpcUrl: string;
|
|
@@ -432,7 +432,7 @@ declare const FangornConfig: {
|
|
|
432
432
|
testnet: true;
|
|
433
433
|
custom?: Record<string, unknown> | undefined;
|
|
434
434
|
extendSchema?: Record<string, unknown> | undefined;
|
|
435
|
-
fees?:
|
|
435
|
+
fees?: viem0.ChainFees<undefined> | undefined;
|
|
436
436
|
formatters: {
|
|
437
437
|
readonly block: {
|
|
438
438
|
exclude: [] | undefined;
|
|
@@ -441,28 +441,28 @@ declare const FangornConfig: {
|
|
|
441
441
|
blobGasUsed: bigint;
|
|
442
442
|
difficulty: bigint;
|
|
443
443
|
excessBlobGas: bigint;
|
|
444
|
-
extraData:
|
|
444
|
+
extraData: viem0.Hex;
|
|
445
445
|
gasLimit: bigint;
|
|
446
446
|
gasUsed: bigint;
|
|
447
447
|
hash: `0x${string}` | null;
|
|
448
448
|
logsBloom: `0x${string}` | null;
|
|
449
|
-
miner:
|
|
450
|
-
mixHash:
|
|
449
|
+
miner: abitype0.Address;
|
|
450
|
+
mixHash: viem0.Hash;
|
|
451
451
|
nonce: `0x${string}` | null;
|
|
452
452
|
number: bigint | null;
|
|
453
453
|
parentBeaconBlockRoot?: `0x${string}` | undefined;
|
|
454
|
-
parentHash:
|
|
455
|
-
receiptsRoot:
|
|
456
|
-
sealFields:
|
|
457
|
-
sha3Uncles:
|
|
454
|
+
parentHash: viem0.Hash;
|
|
455
|
+
receiptsRoot: viem0.Hex;
|
|
456
|
+
sealFields: viem0.Hex[];
|
|
457
|
+
sha3Uncles: viem0.Hash;
|
|
458
458
|
size: bigint;
|
|
459
|
-
stateRoot:
|
|
459
|
+
stateRoot: viem0.Hash;
|
|
460
460
|
timestamp: bigint;
|
|
461
461
|
totalDifficulty: bigint | null;
|
|
462
462
|
transactions: `0x${string}`[] | viem_chains0.OpStackTransaction<boolean>[];
|
|
463
|
-
transactionsRoot:
|
|
464
|
-
uncles:
|
|
465
|
-
withdrawals?:
|
|
463
|
+
transactionsRoot: viem0.Hash;
|
|
464
|
+
uncles: viem0.Hash[];
|
|
465
|
+
withdrawals?: viem0.Withdrawal[] | undefined | undefined;
|
|
466
466
|
withdrawalsRoot?: `0x${string}` | undefined;
|
|
467
467
|
} & {};
|
|
468
468
|
type: "block";
|
|
@@ -472,16 +472,16 @@ declare const FangornConfig: {
|
|
|
472
472
|
format: (args: viem_chains0.OpStackRpcTransaction, action?: string | undefined) => ({
|
|
473
473
|
blockHash: `0x${string}` | null;
|
|
474
474
|
blockNumber: bigint | null;
|
|
475
|
-
from:
|
|
475
|
+
from: abitype0.Address;
|
|
476
476
|
gas: bigint;
|
|
477
|
-
hash:
|
|
478
|
-
input:
|
|
477
|
+
hash: viem0.Hash;
|
|
478
|
+
input: viem0.Hex;
|
|
479
479
|
nonce: number;
|
|
480
|
-
r:
|
|
481
|
-
s:
|
|
482
|
-
to:
|
|
480
|
+
r: viem0.Hex;
|
|
481
|
+
s: viem0.Hex;
|
|
482
|
+
to: abitype0.Address | null;
|
|
483
483
|
transactionIndex: number | null;
|
|
484
|
-
typeHex:
|
|
484
|
+
typeHex: viem0.Hex | null;
|
|
485
485
|
v: bigint;
|
|
486
486
|
value: bigint;
|
|
487
487
|
yParity: number;
|
|
@@ -491,23 +491,23 @@ declare const FangornConfig: {
|
|
|
491
491
|
maxPriorityFeePerGas: bigint;
|
|
492
492
|
isSystemTx?: boolean;
|
|
493
493
|
mint?: bigint | undefined | undefined;
|
|
494
|
-
sourceHash:
|
|
494
|
+
sourceHash: viem0.Hex;
|
|
495
495
|
type: "deposit";
|
|
496
496
|
} | {
|
|
497
|
-
r:
|
|
498
|
-
s:
|
|
497
|
+
r: viem0.Hex;
|
|
498
|
+
s: viem0.Hex;
|
|
499
499
|
v: bigint;
|
|
500
|
-
to:
|
|
501
|
-
from:
|
|
500
|
+
to: abitype0.Address | null;
|
|
501
|
+
from: abitype0.Address;
|
|
502
502
|
gas: bigint;
|
|
503
503
|
nonce: number;
|
|
504
504
|
value: bigint;
|
|
505
505
|
blockHash: `0x${string}` | null;
|
|
506
506
|
blockNumber: bigint | null;
|
|
507
|
-
hash:
|
|
508
|
-
input:
|
|
507
|
+
hash: viem0.Hash;
|
|
508
|
+
input: viem0.Hex;
|
|
509
509
|
transactionIndex: number | null;
|
|
510
|
-
typeHex:
|
|
510
|
+
typeHex: viem0.Hex | null;
|
|
511
511
|
accessList?: undefined | undefined;
|
|
512
512
|
authorizationList?: undefined | undefined;
|
|
513
513
|
blobVersionedHashes?: undefined | undefined;
|
|
@@ -524,20 +524,20 @@ declare const FangornConfig: {
|
|
|
524
524
|
} | {
|
|
525
525
|
blockHash: `0x${string}` | null;
|
|
526
526
|
blockNumber: bigint | null;
|
|
527
|
-
from:
|
|
527
|
+
from: abitype0.Address;
|
|
528
528
|
gas: bigint;
|
|
529
|
-
hash:
|
|
530
|
-
input:
|
|
529
|
+
hash: viem0.Hash;
|
|
530
|
+
input: viem0.Hex;
|
|
531
531
|
nonce: number;
|
|
532
|
-
r:
|
|
533
|
-
s:
|
|
534
|
-
to:
|
|
532
|
+
r: viem0.Hex;
|
|
533
|
+
s: viem0.Hex;
|
|
534
|
+
to: abitype0.Address | null;
|
|
535
535
|
transactionIndex: number | null;
|
|
536
|
-
typeHex:
|
|
536
|
+
typeHex: viem0.Hex | null;
|
|
537
537
|
v: bigint;
|
|
538
538
|
value: bigint;
|
|
539
539
|
yParity: number;
|
|
540
|
-
accessList:
|
|
540
|
+
accessList: viem0.AccessList;
|
|
541
541
|
authorizationList?: undefined | undefined;
|
|
542
542
|
blobVersionedHashes?: undefined | undefined;
|
|
543
543
|
chainId: number;
|
|
@@ -552,20 +552,20 @@ declare const FangornConfig: {
|
|
|
552
552
|
} | {
|
|
553
553
|
blockHash: `0x${string}` | null;
|
|
554
554
|
blockNumber: bigint | null;
|
|
555
|
-
from:
|
|
555
|
+
from: abitype0.Address;
|
|
556
556
|
gas: bigint;
|
|
557
|
-
hash:
|
|
558
|
-
input:
|
|
557
|
+
hash: viem0.Hash;
|
|
558
|
+
input: viem0.Hex;
|
|
559
559
|
nonce: number;
|
|
560
|
-
r:
|
|
561
|
-
s:
|
|
562
|
-
to:
|
|
560
|
+
r: viem0.Hex;
|
|
561
|
+
s: viem0.Hex;
|
|
562
|
+
to: abitype0.Address | null;
|
|
563
563
|
transactionIndex: number | null;
|
|
564
|
-
typeHex:
|
|
564
|
+
typeHex: viem0.Hex | null;
|
|
565
565
|
v: bigint;
|
|
566
566
|
value: bigint;
|
|
567
567
|
yParity: number;
|
|
568
|
-
accessList:
|
|
568
|
+
accessList: viem0.AccessList;
|
|
569
569
|
authorizationList?: undefined | undefined;
|
|
570
570
|
blobVersionedHashes?: undefined | undefined;
|
|
571
571
|
chainId: number;
|
|
@@ -580,22 +580,22 @@ declare const FangornConfig: {
|
|
|
580
580
|
} | {
|
|
581
581
|
blockHash: `0x${string}` | null;
|
|
582
582
|
blockNumber: bigint | null;
|
|
583
|
-
from:
|
|
583
|
+
from: abitype0.Address;
|
|
584
584
|
gas: bigint;
|
|
585
|
-
hash:
|
|
586
|
-
input:
|
|
585
|
+
hash: viem0.Hash;
|
|
586
|
+
input: viem0.Hex;
|
|
587
587
|
nonce: number;
|
|
588
|
-
r:
|
|
589
|
-
s:
|
|
590
|
-
to:
|
|
588
|
+
r: viem0.Hex;
|
|
589
|
+
s: viem0.Hex;
|
|
590
|
+
to: abitype0.Address | null;
|
|
591
591
|
transactionIndex: number | null;
|
|
592
|
-
typeHex:
|
|
592
|
+
typeHex: viem0.Hex | null;
|
|
593
593
|
v: bigint;
|
|
594
594
|
value: bigint;
|
|
595
595
|
yParity: number;
|
|
596
|
-
accessList:
|
|
596
|
+
accessList: viem0.AccessList;
|
|
597
597
|
authorizationList?: undefined | undefined;
|
|
598
|
-
blobVersionedHashes: readonly
|
|
598
|
+
blobVersionedHashes: readonly viem0.Hex[];
|
|
599
599
|
chainId: number;
|
|
600
600
|
type: "eip4844";
|
|
601
601
|
gasPrice?: undefined | undefined;
|
|
@@ -608,21 +608,21 @@ declare const FangornConfig: {
|
|
|
608
608
|
} | {
|
|
609
609
|
blockHash: `0x${string}` | null;
|
|
610
610
|
blockNumber: bigint | null;
|
|
611
|
-
from:
|
|
611
|
+
from: abitype0.Address;
|
|
612
612
|
gas: bigint;
|
|
613
|
-
hash:
|
|
614
|
-
input:
|
|
613
|
+
hash: viem0.Hash;
|
|
614
|
+
input: viem0.Hex;
|
|
615
615
|
nonce: number;
|
|
616
|
-
r:
|
|
617
|
-
s:
|
|
618
|
-
to:
|
|
616
|
+
r: viem0.Hex;
|
|
617
|
+
s: viem0.Hex;
|
|
618
|
+
to: abitype0.Address | null;
|
|
619
619
|
transactionIndex: number | null;
|
|
620
|
-
typeHex:
|
|
620
|
+
typeHex: viem0.Hex | null;
|
|
621
621
|
v: bigint;
|
|
622
622
|
value: bigint;
|
|
623
623
|
yParity: number;
|
|
624
|
-
accessList:
|
|
625
|
-
authorizationList:
|
|
624
|
+
accessList: viem0.AccessList;
|
|
625
|
+
authorizationList: viem0.SignedAuthorizationList;
|
|
626
626
|
blobVersionedHashes?: undefined | undefined;
|
|
627
627
|
chainId: number;
|
|
628
628
|
type: "eip7702";
|
|
@@ -641,22 +641,22 @@ declare const FangornConfig: {
|
|
|
641
641
|
format: (args: viem_chains0.OpStackRpcTransactionReceipt, action?: string | undefined) => {
|
|
642
642
|
blobGasPrice?: bigint | undefined;
|
|
643
643
|
blobGasUsed?: bigint | undefined;
|
|
644
|
-
blockHash:
|
|
644
|
+
blockHash: viem0.Hash;
|
|
645
645
|
blockNumber: bigint;
|
|
646
646
|
blockTimestamp?: bigint | undefined;
|
|
647
|
-
contractAddress:
|
|
647
|
+
contractAddress: abitype0.Address | null | undefined;
|
|
648
648
|
cumulativeGasUsed: bigint;
|
|
649
649
|
effectiveGasPrice: bigint;
|
|
650
|
-
from:
|
|
650
|
+
from: abitype0.Address;
|
|
651
651
|
gasUsed: bigint;
|
|
652
|
-
logs:
|
|
653
|
-
logsBloom:
|
|
652
|
+
logs: viem0.Log<bigint, number, false>[];
|
|
653
|
+
logsBloom: viem0.Hex;
|
|
654
654
|
root?: `0x${string}` | undefined;
|
|
655
655
|
status: "success" | "reverted";
|
|
656
|
-
to:
|
|
657
|
-
transactionHash:
|
|
656
|
+
to: abitype0.Address | null;
|
|
657
|
+
transactionHash: viem0.Hash;
|
|
658
658
|
transactionIndex: number;
|
|
659
|
-
type:
|
|
659
|
+
type: viem0.TransactionType;
|
|
660
660
|
l1GasPrice: bigint | null;
|
|
661
661
|
l1GasUsed: bigint | null;
|
|
662
662
|
l1Fee: bigint | null;
|
|
@@ -665,17 +665,17 @@ declare const FangornConfig: {
|
|
|
665
665
|
type: "transactionReceipt";
|
|
666
666
|
};
|
|
667
667
|
};
|
|
668
|
-
prepareTransactionRequest?: ((args:
|
|
668
|
+
prepareTransactionRequest?: ((args: viem0.PrepareTransactionRequestParameters, options: {
|
|
669
669
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
670
|
-
}) => Promise<
|
|
670
|
+
}) => Promise<viem0.PrepareTransactionRequestParameters>) | [fn: ((args: viem0.PrepareTransactionRequestParameters, options: {
|
|
671
671
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
672
|
-
}) => Promise<
|
|
672
|
+
}) => Promise<viem0.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
673
673
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
674
674
|
}] | undefined;
|
|
675
675
|
serializers: {
|
|
676
676
|
readonly transaction: typeof viem_chains0.serializeTransactionOpStack;
|
|
677
677
|
};
|
|
678
|
-
verifyHash?: ((client:
|
|
678
|
+
verifyHash?: ((client: viem0.Client, parameters: viem0.VerifyHashActionParameters) => Promise<viem0.VerifyHashActionReturnType>) | undefined;
|
|
679
679
|
readonly network: "base-sepolia";
|
|
680
680
|
};
|
|
681
681
|
rpcUrl: string;
|
package/lib/config.js
CHANGED
|
@@ -17,8 +17,8 @@ const BaseSepoliaConfig = {
|
|
|
17
17
|
chain: baseSepolia,
|
|
18
18
|
rpcUrl: "https://base-sepolia-rpc.publicnode.com",
|
|
19
19
|
caip2: 84532,
|
|
20
|
-
ipfsGateway: "https://
|
|
21
|
-
logWindow:
|
|
20
|
+
ipfsGateway: "https://green-reasonable-heron-957.mypinata.cloud",
|
|
21
|
+
logWindow: 50000n,
|
|
22
22
|
signedUrlWorker: "https://base-sepolia.storage-worker.fangorn.network"
|
|
23
23
|
};
|
|
24
24
|
/**
|
|
@@ -258,6 +258,20 @@ declare const SETTLEMENT_REGISTRY_ABI: readonly [{
|
|
|
258
258
|
readonly internalType: "bool";
|
|
259
259
|
}];
|
|
260
260
|
readonly stateMutability: "view";
|
|
261
|
+
}, {
|
|
262
|
+
readonly type: "function";
|
|
263
|
+
readonly name: "membersOf";
|
|
264
|
+
readonly inputs: readonly [{
|
|
265
|
+
readonly name: "subject";
|
|
266
|
+
readonly type: "bytes32";
|
|
267
|
+
readonly internalType: "bytes32";
|
|
268
|
+
}];
|
|
269
|
+
readonly outputs: readonly [{
|
|
270
|
+
readonly name: "";
|
|
271
|
+
readonly type: "uint256[]";
|
|
272
|
+
readonly internalType: "uint256[]";
|
|
273
|
+
}];
|
|
274
|
+
readonly stateMutability: "view";
|
|
261
275
|
}, {
|
|
262
276
|
readonly type: "function";
|
|
263
277
|
readonly name: "proxiableUUID";
|
|
@@ -298,6 +298,21 @@ const SETTLEMENT_REGISTRY_ABI = [
|
|
|
298
298
|
}],
|
|
299
299
|
stateMutability: "view"
|
|
300
300
|
},
|
|
301
|
+
{
|
|
302
|
+
type: "function",
|
|
303
|
+
name: "membersOf",
|
|
304
|
+
inputs: [{
|
|
305
|
+
name: "subject",
|
|
306
|
+
type: "bytes32",
|
|
307
|
+
internalType: "bytes32"
|
|
308
|
+
}],
|
|
309
|
+
outputs: [{
|
|
310
|
+
name: "",
|
|
311
|
+
type: "uint256[]",
|
|
312
|
+
internalType: "uint256[]"
|
|
313
|
+
}],
|
|
314
|
+
stateMutability: "view"
|
|
315
|
+
},
|
|
301
316
|
{
|
|
302
317
|
type: "function",
|
|
303
318
|
name: "proxiableUUID",
|
|
@@ -109,6 +109,8 @@ declare class SettlementRegistryClient {
|
|
|
109
109
|
generationOf(publisher: Address, repo: Hex): Promise<bigint>;
|
|
110
110
|
isDenied(publisher: Address, referrer: Address): Promise<boolean>;
|
|
111
111
|
isDisabled(subject: Hex): Promise<boolean>;
|
|
112
|
+
/** Every commitment in the subject's group, in the order it was added: what a Semaphore proof is built from. */
|
|
113
|
+
membersOf(subject: Hex): Promise<readonly bigint[]>;
|
|
112
114
|
isRegistered(subject: Hex, commitment: bigint): Promise<boolean>;
|
|
113
115
|
isSettled(reader: Address, subject: Hex): Promise<boolean>;
|
|
114
116
|
/** Settled for the record or the whole repo, and neither is disabled. */
|
|
@@ -170,6 +170,10 @@ var SettlementRegistryClient = class {
|
|
|
170
170
|
isDisabled(subject) {
|
|
171
171
|
return this.read("isDisabled", [subject]);
|
|
172
172
|
}
|
|
173
|
+
/** Every commitment in the subject's group, in the order it was added: what a Semaphore proof is built from. */
|
|
174
|
+
membersOf(subject) {
|
|
175
|
+
return this.read("membersOf", [subject]);
|
|
176
|
+
}
|
|
173
177
|
isRegistered(subject, commitment) {
|
|
174
178
|
return this.read("isRegistered", [subject, commitment]);
|
|
175
179
|
}
|
|
@@ -2,11 +2,11 @@ import { PreparedTx } from "../contracts/write.js";
|
|
|
2
2
|
import { CommitUpdate, LogFilter, Registry, RepoRef, UpdateEntry } from "../contracts/data-registry/index.js";
|
|
3
3
|
import "../contracts/index.js";
|
|
4
4
|
import { Address, Hash, Hex, LocalAccount } from "viem";
|
|
5
|
-
import * as
|
|
5
|
+
import * as abitype31 from "abitype";
|
|
6
6
|
|
|
7
7
|
//#region src/test/mem-registry.d.ts
|
|
8
8
|
/** The EIP-712 domain a MemRegistry signs under. */
|
|
9
|
-
declare const MEM_DOMAIN:
|
|
9
|
+
declare const MEM_DOMAIN: abitype31.TypedDataDomain;
|
|
10
10
|
/** One ordering and the registry state over it, shared by every signer of a MemRegistry. */
|
|
11
11
|
declare class MemLedger {
|
|
12
12
|
/** H: position and head */
|