@fangorn-network/sdk 2026.10.28 → 2026.11.3
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 +37 -653
- package/lib/cli/cli.js +46 -357
- package/lib/cli/index.d.ts +1 -4
- package/lib/cli/index.js +2 -20
- package/lib/cli/sell.d.ts +28 -0
- package/lib/cli/sell.js +95 -0
- package/lib/config.d.ts +163 -226
- package/lib/config.js +8 -35
- package/lib/contracts/data-registry/abi.d.ts +206 -6
- package/lib/contracts/data-registry/abi.js +415 -186
- package/lib/contracts/data-registry/index.d.ts +126 -2
- package/lib/contracts/data-registry/index.js +174 -1
- package/lib/contracts/index.d.ts +4 -7
- package/lib/contracts/index.js +4 -7
- package/lib/contracts/logs.d.ts +1 -1
- package/lib/contracts/logs.js +1 -1
- package/lib/contracts/{membership-registry → settlement-registry}/abi.d.ts +288 -637
- package/lib/contracts/settlement-registry/abi.js +947 -0
- package/lib/contracts/settlement-registry/index.d.ts +141 -0
- package/lib/contracts/settlement-registry/index.js +209 -0
- package/lib/crypto/aes.d.ts +2 -2
- package/lib/crypto/aes.js +4 -4
- package/lib/crypto/encryption.d.ts +8 -109
- package/lib/crypto/encryption.js +16 -114
- package/lib/crypto/paid.d.ts +104 -0
- package/lib/crypto/paid.js +147 -0
- package/lib/engine/index.d.ts +23 -12
- package/lib/engine/index.js +68 -29
- package/lib/engine/records.d.ts +4 -7
- package/lib/engine/records.js +6 -6
- package/lib/engine/test-helpers.d.ts +2 -3
- package/lib/engine/test-helpers.js +7 -5
- package/lib/erc8004.js +7 -10
- package/lib/fangorn.d.ts +65 -96
- package/lib/fangorn.js +110 -168
- package/lib/feed.d.ts +7 -8
- package/lib/feed.js +7 -8
- package/lib/index.d.ts +10 -13
- package/lib/index.js +10 -13
- package/lib/providers/storage/signed-url.d.ts +2 -10
- package/lib/providers/storage/signed-url.js +5 -15
- package/lib/providers/storage/types.d.ts +1 -1
- package/lib/providers/storage/utils.js +5 -3
- package/lib/test/key-server.d.ts +12 -0
- package/lib/test/key-server.js +30 -0
- package/lib/test/mem-registry.d.ts +14 -19
- package/lib/test/mem-registry.js +44 -37
- package/lib/test/sdk-suite.d.ts +1 -4
- package/lib/test/sdk-suite.js +16 -87
- package/lib/test/testbed.d.ts +35 -45
- package/lib/test/testbed.js +29 -56
- package/lib/types/index.d.ts +6 -11
- package/package.json +2 -5
- package/lib/contracts/app-registry/abi.d.ts +0 -1306
- package/lib/contracts/app-registry/abi.js +0 -1493
- package/lib/contracts/app-registry/index.d.ts +0 -200
- package/lib/contracts/app-registry/index.js +0 -325
- package/lib/contracts/membership-registry/abi.js +0 -1333
- package/lib/contracts/membership-registry/index.d.ts +0 -79
- package/lib/contracts/membership-registry/index.js +0 -104
- package/lib/contracts/types.d.ts +0 -8
- package/lib/contracts/types.js +0 -10
- package/lib/harness/examples/hackmd/build-markdown-graph.d.ts +0 -1
- package/lib/harness/examples/hackmd/build-markdown-graph.js +0 -17
- package/lib/harness/index.d.ts +0 -58
- package/lib/harness/index.js +0 -73
- package/lib/registry.d.ts +0 -118
- package/lib/registry.js +0 -184
package/lib/config.d.ts
CHANGED
|
@@ -1,25 +1,19 @@
|
|
|
1
|
-
import * as viem5828 from "viem";
|
|
2
|
-
import { Chain, Hex } from "viem";
|
|
3
1
|
import * as viem_chains0 from "viem/chains";
|
|
4
|
-
import * as
|
|
2
|
+
import * as viem5827 from "viem";
|
|
3
|
+
import { Chain, Hex } from "viem";
|
|
4
|
+
import * as abitype10 from "abitype";
|
|
5
5
|
|
|
6
6
|
//#region src/config.d.ts
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
declare function appId(name: string): Hex;
|
|
11
|
-
/**
|
|
12
|
-
* Blank input means "not set", never an app called "". Returns the trimmed value,
|
|
8
|
+
* Blank input means "not set", never a value of "". Returns the trimmed value,
|
|
13
9
|
* or undefined when it is missing or only whitespace, so it can sit on the left of
|
|
14
10
|
* a `??` fallback. `??` on the raw value would let "" through: it is not nullish.
|
|
15
11
|
*/
|
|
16
12
|
declare function nonBlank(value: string | undefined): string | undefined;
|
|
17
|
-
|
|
18
|
-
interface AppConfig {
|
|
13
|
+
interface NetworkConfig {
|
|
19
14
|
dataRegistryContractAddress: Hex;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
appRegistryFromBlock: bigint;
|
|
15
|
+
settlementRegistryContractAddress?: Hex;
|
|
16
|
+
fromBlock: bigint;
|
|
23
17
|
chain: Chain;
|
|
24
18
|
rpcUrl: string;
|
|
25
19
|
caip2: number;
|
|
@@ -27,66 +21,10 @@ interface AppConfig {
|
|
|
27
21
|
logWindow?: bigint;
|
|
28
22
|
signedUrlWorker?: string;
|
|
29
23
|
}
|
|
30
|
-
declare const ArbitrumSepoliaConfig: {
|
|
31
|
-
dataRegistryContractAddress: "0x72B5f83526F3893aF9f1eE0f32A27218EA09f8aE";
|
|
32
|
-
appRegistryContractAddress: "0x55e6209ea1833ceD900989a3b3b22466934E04A5";
|
|
33
|
-
membershipRegistryContractAddress: "0xDF17030Cd65435C86eb043F31DDACa99E819E347";
|
|
34
|
-
appRegistryFromBlock: bigint;
|
|
35
|
-
chain: {
|
|
36
|
-
blockExplorers: {
|
|
37
|
-
readonly default: {
|
|
38
|
-
readonly name: "Arbiscan";
|
|
39
|
-
readonly url: "https://sepolia.arbiscan.io";
|
|
40
|
-
readonly apiUrl: "https://api-sepolia.arbiscan.io/api";
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
blockTime: 250;
|
|
44
|
-
contracts: {
|
|
45
|
-
readonly multicall3: {
|
|
46
|
-
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
47
|
-
readonly blockCreated: 81930;
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
ensTlds?: readonly string[] | undefined;
|
|
51
|
-
id: 421614;
|
|
52
|
-
name: "Arbitrum Sepolia";
|
|
53
|
-
nativeCurrency: {
|
|
54
|
-
readonly name: "Arbitrum Sepolia Ether";
|
|
55
|
-
readonly symbol: "ETH";
|
|
56
|
-
readonly decimals: 18;
|
|
57
|
-
};
|
|
58
|
-
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
59
|
-
rpcUrls: {
|
|
60
|
-
readonly default: {
|
|
61
|
-
readonly http: readonly ["https://sepolia-rollup.arbitrum.io/rpc"];
|
|
62
|
-
};
|
|
63
|
-
};
|
|
64
|
-
sourceId?: number | undefined | undefined;
|
|
65
|
-
testnet: true;
|
|
66
|
-
custom?: Record<string, unknown> | undefined;
|
|
67
|
-
extendSchema?: Record<string, unknown> | undefined;
|
|
68
|
-
fees?: viem5828.ChainFees<undefined> | undefined;
|
|
69
|
-
formatters?: undefined;
|
|
70
|
-
prepareTransactionRequest?: ((args: viem5828.PrepareTransactionRequestParameters, options: {
|
|
71
|
-
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
72
|
-
}) => Promise<viem5828.PrepareTransactionRequestParameters>) | [fn: ((args: viem5828.PrepareTransactionRequestParameters, options: {
|
|
73
|
-
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
74
|
-
}) => Promise<viem5828.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
75
|
-
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
76
|
-
}] | undefined;
|
|
77
|
-
serializers?: viem5828.ChainSerializers<undefined, viem5828.TransactionSerializable> | undefined;
|
|
78
|
-
verifyHash?: ((client: viem5828.Client, parameters: viem5828.VerifyHashActionParameters) => Promise<viem5828.VerifyHashActionReturnType>) | undefined;
|
|
79
|
-
};
|
|
80
|
-
rpcUrl: string;
|
|
81
|
-
caip2: number;
|
|
82
|
-
ipfsGateway: string;
|
|
83
|
-
logWindow: bigint;
|
|
84
|
-
};
|
|
85
24
|
declare const BaseSepoliaConfig: {
|
|
86
|
-
dataRegistryContractAddress: "
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
appRegistryFromBlock: bigint;
|
|
25
|
+
dataRegistryContractAddress: "0x0F3eb0E62CF610dbaC6B3aD4Bf4cE38Ab50EBCC5";
|
|
26
|
+
settlementRegistryContractAddress: "0x61A5A195B54F57ada786Ba6689CdB04553cf7fBc";
|
|
27
|
+
fromBlock: bigint;
|
|
90
28
|
chain: {
|
|
91
29
|
blockExplorers: {
|
|
92
30
|
readonly default: {
|
|
@@ -160,7 +98,7 @@ declare const BaseSepoliaConfig: {
|
|
|
160
98
|
testnet: true;
|
|
161
99
|
custom?: Record<string, unknown> | undefined;
|
|
162
100
|
extendSchema?: Record<string, unknown> | undefined;
|
|
163
|
-
fees?:
|
|
101
|
+
fees?: viem5827.ChainFees<undefined> | undefined;
|
|
164
102
|
formatters: {
|
|
165
103
|
readonly block: {
|
|
166
104
|
exclude: [] | undefined;
|
|
@@ -169,28 +107,28 @@ declare const BaseSepoliaConfig: {
|
|
|
169
107
|
blobGasUsed: bigint;
|
|
170
108
|
difficulty: bigint;
|
|
171
109
|
excessBlobGas: bigint;
|
|
172
|
-
extraData:
|
|
110
|
+
extraData: viem5827.Hex;
|
|
173
111
|
gasLimit: bigint;
|
|
174
112
|
gasUsed: bigint;
|
|
175
113
|
hash: `0x${string}` | null;
|
|
176
114
|
logsBloom: `0x${string}` | null;
|
|
177
|
-
miner:
|
|
178
|
-
mixHash:
|
|
115
|
+
miner: abitype10.Address;
|
|
116
|
+
mixHash: viem5827.Hash;
|
|
179
117
|
nonce: `0x${string}` | null;
|
|
180
118
|
number: bigint | null;
|
|
181
119
|
parentBeaconBlockRoot?: `0x${string}` | undefined;
|
|
182
|
-
parentHash:
|
|
183
|
-
receiptsRoot:
|
|
184
|
-
sealFields:
|
|
185
|
-
sha3Uncles:
|
|
120
|
+
parentHash: viem5827.Hash;
|
|
121
|
+
receiptsRoot: viem5827.Hex;
|
|
122
|
+
sealFields: viem5827.Hex[];
|
|
123
|
+
sha3Uncles: viem5827.Hash;
|
|
186
124
|
size: bigint;
|
|
187
|
-
stateRoot:
|
|
125
|
+
stateRoot: viem5827.Hash;
|
|
188
126
|
timestamp: bigint;
|
|
189
127
|
totalDifficulty: bigint | null;
|
|
190
128
|
transactions: `0x${string}`[] | viem_chains0.OpStackTransaction<boolean>[];
|
|
191
|
-
transactionsRoot:
|
|
192
|
-
uncles:
|
|
193
|
-
withdrawals?:
|
|
129
|
+
transactionsRoot: viem5827.Hash;
|
|
130
|
+
uncles: viem5827.Hash[];
|
|
131
|
+
withdrawals?: viem5827.Withdrawal[] | undefined | undefined;
|
|
194
132
|
withdrawalsRoot?: `0x${string}` | undefined;
|
|
195
133
|
} & {};
|
|
196
134
|
type: "block";
|
|
@@ -200,16 +138,16 @@ declare const BaseSepoliaConfig: {
|
|
|
200
138
|
format: (args: viem_chains0.OpStackRpcTransaction, action?: string | undefined) => ({
|
|
201
139
|
blockHash: `0x${string}` | null;
|
|
202
140
|
blockNumber: bigint | null;
|
|
203
|
-
from:
|
|
141
|
+
from: abitype10.Address;
|
|
204
142
|
gas: bigint;
|
|
205
|
-
hash:
|
|
206
|
-
input:
|
|
143
|
+
hash: viem5827.Hash;
|
|
144
|
+
input: viem5827.Hex;
|
|
207
145
|
nonce: number;
|
|
208
|
-
r:
|
|
209
|
-
s:
|
|
210
|
-
to:
|
|
146
|
+
r: viem5827.Hex;
|
|
147
|
+
s: viem5827.Hex;
|
|
148
|
+
to: abitype10.Address | null;
|
|
211
149
|
transactionIndex: number | null;
|
|
212
|
-
typeHex:
|
|
150
|
+
typeHex: viem5827.Hex | null;
|
|
213
151
|
v: bigint;
|
|
214
152
|
value: bigint;
|
|
215
153
|
yParity: number;
|
|
@@ -219,23 +157,23 @@ declare const BaseSepoliaConfig: {
|
|
|
219
157
|
maxPriorityFeePerGas: bigint;
|
|
220
158
|
isSystemTx?: boolean;
|
|
221
159
|
mint?: bigint | undefined | undefined;
|
|
222
|
-
sourceHash:
|
|
160
|
+
sourceHash: viem5827.Hex;
|
|
223
161
|
type: "deposit";
|
|
224
162
|
} | {
|
|
225
|
-
r:
|
|
226
|
-
s:
|
|
163
|
+
r: viem5827.Hex;
|
|
164
|
+
s: viem5827.Hex;
|
|
227
165
|
v: bigint;
|
|
228
|
-
to:
|
|
229
|
-
from:
|
|
166
|
+
to: abitype10.Address | null;
|
|
167
|
+
from: abitype10.Address;
|
|
230
168
|
gas: bigint;
|
|
231
169
|
nonce: number;
|
|
232
170
|
value: bigint;
|
|
233
171
|
blockHash: `0x${string}` | null;
|
|
234
172
|
blockNumber: bigint | null;
|
|
235
|
-
hash:
|
|
236
|
-
input:
|
|
173
|
+
hash: viem5827.Hash;
|
|
174
|
+
input: viem5827.Hex;
|
|
237
175
|
transactionIndex: number | null;
|
|
238
|
-
typeHex:
|
|
176
|
+
typeHex: viem5827.Hex | null;
|
|
239
177
|
accessList?: undefined | undefined;
|
|
240
178
|
authorizationList?: undefined | undefined;
|
|
241
179
|
blobVersionedHashes?: undefined | undefined;
|
|
@@ -252,20 +190,20 @@ declare const BaseSepoliaConfig: {
|
|
|
252
190
|
} | {
|
|
253
191
|
blockHash: `0x${string}` | null;
|
|
254
192
|
blockNumber: bigint | null;
|
|
255
|
-
from:
|
|
193
|
+
from: abitype10.Address;
|
|
256
194
|
gas: bigint;
|
|
257
|
-
hash:
|
|
258
|
-
input:
|
|
195
|
+
hash: viem5827.Hash;
|
|
196
|
+
input: viem5827.Hex;
|
|
259
197
|
nonce: number;
|
|
260
|
-
r:
|
|
261
|
-
s:
|
|
262
|
-
to:
|
|
198
|
+
r: viem5827.Hex;
|
|
199
|
+
s: viem5827.Hex;
|
|
200
|
+
to: abitype10.Address | null;
|
|
263
201
|
transactionIndex: number | null;
|
|
264
|
-
typeHex:
|
|
202
|
+
typeHex: viem5827.Hex | null;
|
|
265
203
|
v: bigint;
|
|
266
204
|
value: bigint;
|
|
267
205
|
yParity: number;
|
|
268
|
-
accessList:
|
|
206
|
+
accessList: viem5827.AccessList;
|
|
269
207
|
authorizationList?: undefined | undefined;
|
|
270
208
|
blobVersionedHashes?: undefined | undefined;
|
|
271
209
|
chainId: number;
|
|
@@ -280,20 +218,20 @@ declare const BaseSepoliaConfig: {
|
|
|
280
218
|
} | {
|
|
281
219
|
blockHash: `0x${string}` | null;
|
|
282
220
|
blockNumber: bigint | null;
|
|
283
|
-
from:
|
|
221
|
+
from: abitype10.Address;
|
|
284
222
|
gas: bigint;
|
|
285
|
-
hash:
|
|
286
|
-
input:
|
|
223
|
+
hash: viem5827.Hash;
|
|
224
|
+
input: viem5827.Hex;
|
|
287
225
|
nonce: number;
|
|
288
|
-
r:
|
|
289
|
-
s:
|
|
290
|
-
to:
|
|
226
|
+
r: viem5827.Hex;
|
|
227
|
+
s: viem5827.Hex;
|
|
228
|
+
to: abitype10.Address | null;
|
|
291
229
|
transactionIndex: number | null;
|
|
292
|
-
typeHex:
|
|
230
|
+
typeHex: viem5827.Hex | null;
|
|
293
231
|
v: bigint;
|
|
294
232
|
value: bigint;
|
|
295
233
|
yParity: number;
|
|
296
|
-
accessList:
|
|
234
|
+
accessList: viem5827.AccessList;
|
|
297
235
|
authorizationList?: undefined | undefined;
|
|
298
236
|
blobVersionedHashes?: undefined | undefined;
|
|
299
237
|
chainId: number;
|
|
@@ -308,22 +246,22 @@ declare const BaseSepoliaConfig: {
|
|
|
308
246
|
} | {
|
|
309
247
|
blockHash: `0x${string}` | null;
|
|
310
248
|
blockNumber: bigint | null;
|
|
311
|
-
from:
|
|
249
|
+
from: abitype10.Address;
|
|
312
250
|
gas: bigint;
|
|
313
|
-
hash:
|
|
314
|
-
input:
|
|
251
|
+
hash: viem5827.Hash;
|
|
252
|
+
input: viem5827.Hex;
|
|
315
253
|
nonce: number;
|
|
316
|
-
r:
|
|
317
|
-
s:
|
|
318
|
-
to:
|
|
254
|
+
r: viem5827.Hex;
|
|
255
|
+
s: viem5827.Hex;
|
|
256
|
+
to: abitype10.Address | null;
|
|
319
257
|
transactionIndex: number | null;
|
|
320
|
-
typeHex:
|
|
258
|
+
typeHex: viem5827.Hex | null;
|
|
321
259
|
v: bigint;
|
|
322
260
|
value: bigint;
|
|
323
261
|
yParity: number;
|
|
324
|
-
accessList:
|
|
262
|
+
accessList: viem5827.AccessList;
|
|
325
263
|
authorizationList?: undefined | undefined;
|
|
326
|
-
blobVersionedHashes: readonly
|
|
264
|
+
blobVersionedHashes: readonly viem5827.Hex[];
|
|
327
265
|
chainId: number;
|
|
328
266
|
type: "eip4844";
|
|
329
267
|
gasPrice?: undefined | undefined;
|
|
@@ -336,21 +274,21 @@ declare const BaseSepoliaConfig: {
|
|
|
336
274
|
} | {
|
|
337
275
|
blockHash: `0x${string}` | null;
|
|
338
276
|
blockNumber: bigint | null;
|
|
339
|
-
from:
|
|
277
|
+
from: abitype10.Address;
|
|
340
278
|
gas: bigint;
|
|
341
|
-
hash:
|
|
342
|
-
input:
|
|
279
|
+
hash: viem5827.Hash;
|
|
280
|
+
input: viem5827.Hex;
|
|
343
281
|
nonce: number;
|
|
344
|
-
r:
|
|
345
|
-
s:
|
|
346
|
-
to:
|
|
282
|
+
r: viem5827.Hex;
|
|
283
|
+
s: viem5827.Hex;
|
|
284
|
+
to: abitype10.Address | null;
|
|
347
285
|
transactionIndex: number | null;
|
|
348
|
-
typeHex:
|
|
286
|
+
typeHex: viem5827.Hex | null;
|
|
349
287
|
v: bigint;
|
|
350
288
|
value: bigint;
|
|
351
289
|
yParity: number;
|
|
352
|
-
accessList:
|
|
353
|
-
authorizationList:
|
|
290
|
+
accessList: viem5827.AccessList;
|
|
291
|
+
authorizationList: viem5827.SignedAuthorizationList;
|
|
354
292
|
blobVersionedHashes?: undefined | undefined;
|
|
355
293
|
chainId: number;
|
|
356
294
|
type: "eip7702";
|
|
@@ -369,22 +307,22 @@ declare const BaseSepoliaConfig: {
|
|
|
369
307
|
format: (args: viem_chains0.OpStackRpcTransactionReceipt, action?: string | undefined) => {
|
|
370
308
|
blobGasPrice?: bigint | undefined;
|
|
371
309
|
blobGasUsed?: bigint | undefined;
|
|
372
|
-
blockHash:
|
|
310
|
+
blockHash: viem5827.Hash;
|
|
373
311
|
blockNumber: bigint;
|
|
374
312
|
blockTimestamp?: bigint | undefined;
|
|
375
|
-
contractAddress:
|
|
313
|
+
contractAddress: abitype10.Address | null | undefined;
|
|
376
314
|
cumulativeGasUsed: bigint;
|
|
377
315
|
effectiveGasPrice: bigint;
|
|
378
|
-
from:
|
|
316
|
+
from: abitype10.Address;
|
|
379
317
|
gasUsed: bigint;
|
|
380
|
-
logs:
|
|
381
|
-
logsBloom:
|
|
318
|
+
logs: viem5827.Log<bigint, number, false>[];
|
|
319
|
+
logsBloom: viem5827.Hex;
|
|
382
320
|
root?: `0x${string}` | undefined;
|
|
383
321
|
status: "success" | "reverted";
|
|
384
|
-
to:
|
|
385
|
-
transactionHash:
|
|
322
|
+
to: abitype10.Address | null;
|
|
323
|
+
transactionHash: viem5827.Hash;
|
|
386
324
|
transactionIndex: number;
|
|
387
|
-
type:
|
|
325
|
+
type: viem5827.TransactionType;
|
|
388
326
|
l1GasPrice: bigint | null;
|
|
389
327
|
l1GasUsed: bigint | null;
|
|
390
328
|
l1Fee: bigint | null;
|
|
@@ -393,17 +331,17 @@ declare const BaseSepoliaConfig: {
|
|
|
393
331
|
type: "transactionReceipt";
|
|
394
332
|
};
|
|
395
333
|
};
|
|
396
|
-
prepareTransactionRequest?: ((args:
|
|
334
|
+
prepareTransactionRequest?: ((args: viem5827.PrepareTransactionRequestParameters, options: {
|
|
397
335
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
398
|
-
}) => Promise<
|
|
336
|
+
}) => Promise<viem5827.PrepareTransactionRequestParameters>) | [fn: ((args: viem5827.PrepareTransactionRequestParameters, options: {
|
|
399
337
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
400
|
-
}) => Promise<
|
|
338
|
+
}) => Promise<viem5827.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
401
339
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
402
340
|
}] | undefined;
|
|
403
341
|
serializers: {
|
|
404
342
|
readonly transaction: typeof viem_chains0.serializeTransactionOpStack;
|
|
405
343
|
};
|
|
406
|
-
verifyHash?: ((client:
|
|
344
|
+
verifyHash?: ((client: viem5827.Client, parameters: viem5827.VerifyHashActionParameters) => Promise<viem5827.VerifyHashActionReturnType>) | undefined;
|
|
407
345
|
readonly network: "base-sepolia";
|
|
408
346
|
};
|
|
409
347
|
rpcUrl: string;
|
|
@@ -418,10 +356,9 @@ declare const BaseSepoliaConfig: {
|
|
|
418
356
|
* built from.
|
|
419
357
|
*/
|
|
420
358
|
declare const FangornConfig: {
|
|
421
|
-
dataRegistryContractAddress: "
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
appRegistryFromBlock: bigint;
|
|
359
|
+
dataRegistryContractAddress: "0x0F3eb0E62CF610dbaC6B3aD4Bf4cE38Ab50EBCC5";
|
|
360
|
+
settlementRegistryContractAddress: "0x61A5A195B54F57ada786Ba6689CdB04553cf7fBc";
|
|
361
|
+
fromBlock: bigint;
|
|
425
362
|
chain: {
|
|
426
363
|
blockExplorers: {
|
|
427
364
|
readonly default: {
|
|
@@ -495,7 +432,7 @@ declare const FangornConfig: {
|
|
|
495
432
|
testnet: true;
|
|
496
433
|
custom?: Record<string, unknown> | undefined;
|
|
497
434
|
extendSchema?: Record<string, unknown> | undefined;
|
|
498
|
-
fees?:
|
|
435
|
+
fees?: viem5827.ChainFees<undefined> | undefined;
|
|
499
436
|
formatters: {
|
|
500
437
|
readonly block: {
|
|
501
438
|
exclude: [] | undefined;
|
|
@@ -504,28 +441,28 @@ declare const FangornConfig: {
|
|
|
504
441
|
blobGasUsed: bigint;
|
|
505
442
|
difficulty: bigint;
|
|
506
443
|
excessBlobGas: bigint;
|
|
507
|
-
extraData:
|
|
444
|
+
extraData: viem5827.Hex;
|
|
508
445
|
gasLimit: bigint;
|
|
509
446
|
gasUsed: bigint;
|
|
510
447
|
hash: `0x${string}` | null;
|
|
511
448
|
logsBloom: `0x${string}` | null;
|
|
512
|
-
miner:
|
|
513
|
-
mixHash:
|
|
449
|
+
miner: abitype10.Address;
|
|
450
|
+
mixHash: viem5827.Hash;
|
|
514
451
|
nonce: `0x${string}` | null;
|
|
515
452
|
number: bigint | null;
|
|
516
453
|
parentBeaconBlockRoot?: `0x${string}` | undefined;
|
|
517
|
-
parentHash:
|
|
518
|
-
receiptsRoot:
|
|
519
|
-
sealFields:
|
|
520
|
-
sha3Uncles:
|
|
454
|
+
parentHash: viem5827.Hash;
|
|
455
|
+
receiptsRoot: viem5827.Hex;
|
|
456
|
+
sealFields: viem5827.Hex[];
|
|
457
|
+
sha3Uncles: viem5827.Hash;
|
|
521
458
|
size: bigint;
|
|
522
|
-
stateRoot:
|
|
459
|
+
stateRoot: viem5827.Hash;
|
|
523
460
|
timestamp: bigint;
|
|
524
461
|
totalDifficulty: bigint | null;
|
|
525
462
|
transactions: `0x${string}`[] | viem_chains0.OpStackTransaction<boolean>[];
|
|
526
|
-
transactionsRoot:
|
|
527
|
-
uncles:
|
|
528
|
-
withdrawals?:
|
|
463
|
+
transactionsRoot: viem5827.Hash;
|
|
464
|
+
uncles: viem5827.Hash[];
|
|
465
|
+
withdrawals?: viem5827.Withdrawal[] | undefined | undefined;
|
|
529
466
|
withdrawalsRoot?: `0x${string}` | undefined;
|
|
530
467
|
} & {};
|
|
531
468
|
type: "block";
|
|
@@ -535,16 +472,16 @@ declare const FangornConfig: {
|
|
|
535
472
|
format: (args: viem_chains0.OpStackRpcTransaction, action?: string | undefined) => ({
|
|
536
473
|
blockHash: `0x${string}` | null;
|
|
537
474
|
blockNumber: bigint | null;
|
|
538
|
-
from:
|
|
475
|
+
from: abitype10.Address;
|
|
539
476
|
gas: bigint;
|
|
540
|
-
hash:
|
|
541
|
-
input:
|
|
477
|
+
hash: viem5827.Hash;
|
|
478
|
+
input: viem5827.Hex;
|
|
542
479
|
nonce: number;
|
|
543
|
-
r:
|
|
544
|
-
s:
|
|
545
|
-
to:
|
|
480
|
+
r: viem5827.Hex;
|
|
481
|
+
s: viem5827.Hex;
|
|
482
|
+
to: abitype10.Address | null;
|
|
546
483
|
transactionIndex: number | null;
|
|
547
|
-
typeHex:
|
|
484
|
+
typeHex: viem5827.Hex | null;
|
|
548
485
|
v: bigint;
|
|
549
486
|
value: bigint;
|
|
550
487
|
yParity: number;
|
|
@@ -554,23 +491,23 @@ declare const FangornConfig: {
|
|
|
554
491
|
maxPriorityFeePerGas: bigint;
|
|
555
492
|
isSystemTx?: boolean;
|
|
556
493
|
mint?: bigint | undefined | undefined;
|
|
557
|
-
sourceHash:
|
|
494
|
+
sourceHash: viem5827.Hex;
|
|
558
495
|
type: "deposit";
|
|
559
496
|
} | {
|
|
560
|
-
r:
|
|
561
|
-
s:
|
|
497
|
+
r: viem5827.Hex;
|
|
498
|
+
s: viem5827.Hex;
|
|
562
499
|
v: bigint;
|
|
563
|
-
to:
|
|
564
|
-
from:
|
|
500
|
+
to: abitype10.Address | null;
|
|
501
|
+
from: abitype10.Address;
|
|
565
502
|
gas: bigint;
|
|
566
503
|
nonce: number;
|
|
567
504
|
value: bigint;
|
|
568
505
|
blockHash: `0x${string}` | null;
|
|
569
506
|
blockNumber: bigint | null;
|
|
570
|
-
hash:
|
|
571
|
-
input:
|
|
507
|
+
hash: viem5827.Hash;
|
|
508
|
+
input: viem5827.Hex;
|
|
572
509
|
transactionIndex: number | null;
|
|
573
|
-
typeHex:
|
|
510
|
+
typeHex: viem5827.Hex | null;
|
|
574
511
|
accessList?: undefined | undefined;
|
|
575
512
|
authorizationList?: undefined | undefined;
|
|
576
513
|
blobVersionedHashes?: undefined | undefined;
|
|
@@ -587,20 +524,20 @@ declare const FangornConfig: {
|
|
|
587
524
|
} | {
|
|
588
525
|
blockHash: `0x${string}` | null;
|
|
589
526
|
blockNumber: bigint | null;
|
|
590
|
-
from:
|
|
527
|
+
from: abitype10.Address;
|
|
591
528
|
gas: bigint;
|
|
592
|
-
hash:
|
|
593
|
-
input:
|
|
529
|
+
hash: viem5827.Hash;
|
|
530
|
+
input: viem5827.Hex;
|
|
594
531
|
nonce: number;
|
|
595
|
-
r:
|
|
596
|
-
s:
|
|
597
|
-
to:
|
|
532
|
+
r: viem5827.Hex;
|
|
533
|
+
s: viem5827.Hex;
|
|
534
|
+
to: abitype10.Address | null;
|
|
598
535
|
transactionIndex: number | null;
|
|
599
|
-
typeHex:
|
|
536
|
+
typeHex: viem5827.Hex | null;
|
|
600
537
|
v: bigint;
|
|
601
538
|
value: bigint;
|
|
602
539
|
yParity: number;
|
|
603
|
-
accessList:
|
|
540
|
+
accessList: viem5827.AccessList;
|
|
604
541
|
authorizationList?: undefined | undefined;
|
|
605
542
|
blobVersionedHashes?: undefined | undefined;
|
|
606
543
|
chainId: number;
|
|
@@ -615,20 +552,20 @@ declare const FangornConfig: {
|
|
|
615
552
|
} | {
|
|
616
553
|
blockHash: `0x${string}` | null;
|
|
617
554
|
blockNumber: bigint | null;
|
|
618
|
-
from:
|
|
555
|
+
from: abitype10.Address;
|
|
619
556
|
gas: bigint;
|
|
620
|
-
hash:
|
|
621
|
-
input:
|
|
557
|
+
hash: viem5827.Hash;
|
|
558
|
+
input: viem5827.Hex;
|
|
622
559
|
nonce: number;
|
|
623
|
-
r:
|
|
624
|
-
s:
|
|
625
|
-
to:
|
|
560
|
+
r: viem5827.Hex;
|
|
561
|
+
s: viem5827.Hex;
|
|
562
|
+
to: abitype10.Address | null;
|
|
626
563
|
transactionIndex: number | null;
|
|
627
|
-
typeHex:
|
|
564
|
+
typeHex: viem5827.Hex | null;
|
|
628
565
|
v: bigint;
|
|
629
566
|
value: bigint;
|
|
630
567
|
yParity: number;
|
|
631
|
-
accessList:
|
|
568
|
+
accessList: viem5827.AccessList;
|
|
632
569
|
authorizationList?: undefined | undefined;
|
|
633
570
|
blobVersionedHashes?: undefined | undefined;
|
|
634
571
|
chainId: number;
|
|
@@ -643,22 +580,22 @@ declare const FangornConfig: {
|
|
|
643
580
|
} | {
|
|
644
581
|
blockHash: `0x${string}` | null;
|
|
645
582
|
blockNumber: bigint | null;
|
|
646
|
-
from:
|
|
583
|
+
from: abitype10.Address;
|
|
647
584
|
gas: bigint;
|
|
648
|
-
hash:
|
|
649
|
-
input:
|
|
585
|
+
hash: viem5827.Hash;
|
|
586
|
+
input: viem5827.Hex;
|
|
650
587
|
nonce: number;
|
|
651
|
-
r:
|
|
652
|
-
s:
|
|
653
|
-
to:
|
|
588
|
+
r: viem5827.Hex;
|
|
589
|
+
s: viem5827.Hex;
|
|
590
|
+
to: abitype10.Address | null;
|
|
654
591
|
transactionIndex: number | null;
|
|
655
|
-
typeHex:
|
|
592
|
+
typeHex: viem5827.Hex | null;
|
|
656
593
|
v: bigint;
|
|
657
594
|
value: bigint;
|
|
658
595
|
yParity: number;
|
|
659
|
-
accessList:
|
|
596
|
+
accessList: viem5827.AccessList;
|
|
660
597
|
authorizationList?: undefined | undefined;
|
|
661
|
-
blobVersionedHashes: readonly
|
|
598
|
+
blobVersionedHashes: readonly viem5827.Hex[];
|
|
662
599
|
chainId: number;
|
|
663
600
|
type: "eip4844";
|
|
664
601
|
gasPrice?: undefined | undefined;
|
|
@@ -671,21 +608,21 @@ declare const FangornConfig: {
|
|
|
671
608
|
} | {
|
|
672
609
|
blockHash: `0x${string}` | null;
|
|
673
610
|
blockNumber: bigint | null;
|
|
674
|
-
from:
|
|
611
|
+
from: abitype10.Address;
|
|
675
612
|
gas: bigint;
|
|
676
|
-
hash:
|
|
677
|
-
input:
|
|
613
|
+
hash: viem5827.Hash;
|
|
614
|
+
input: viem5827.Hex;
|
|
678
615
|
nonce: number;
|
|
679
|
-
r:
|
|
680
|
-
s:
|
|
681
|
-
to:
|
|
616
|
+
r: viem5827.Hex;
|
|
617
|
+
s: viem5827.Hex;
|
|
618
|
+
to: abitype10.Address | null;
|
|
682
619
|
transactionIndex: number | null;
|
|
683
|
-
typeHex:
|
|
620
|
+
typeHex: viem5827.Hex | null;
|
|
684
621
|
v: bigint;
|
|
685
622
|
value: bigint;
|
|
686
623
|
yParity: number;
|
|
687
|
-
accessList:
|
|
688
|
-
authorizationList:
|
|
624
|
+
accessList: viem5827.AccessList;
|
|
625
|
+
authorizationList: viem5827.SignedAuthorizationList;
|
|
689
626
|
blobVersionedHashes?: undefined | undefined;
|
|
690
627
|
chainId: number;
|
|
691
628
|
type: "eip7702";
|
|
@@ -704,22 +641,22 @@ declare const FangornConfig: {
|
|
|
704
641
|
format: (args: viem_chains0.OpStackRpcTransactionReceipt, action?: string | undefined) => {
|
|
705
642
|
blobGasPrice?: bigint | undefined;
|
|
706
643
|
blobGasUsed?: bigint | undefined;
|
|
707
|
-
blockHash:
|
|
644
|
+
blockHash: viem5827.Hash;
|
|
708
645
|
blockNumber: bigint;
|
|
709
646
|
blockTimestamp?: bigint | undefined;
|
|
710
|
-
contractAddress:
|
|
647
|
+
contractAddress: abitype10.Address | null | undefined;
|
|
711
648
|
cumulativeGasUsed: bigint;
|
|
712
649
|
effectiveGasPrice: bigint;
|
|
713
|
-
from:
|
|
650
|
+
from: abitype10.Address;
|
|
714
651
|
gasUsed: bigint;
|
|
715
|
-
logs:
|
|
716
|
-
logsBloom:
|
|
652
|
+
logs: viem5827.Log<bigint, number, false>[];
|
|
653
|
+
logsBloom: viem5827.Hex;
|
|
717
654
|
root?: `0x${string}` | undefined;
|
|
718
655
|
status: "success" | "reverted";
|
|
719
|
-
to:
|
|
720
|
-
transactionHash:
|
|
656
|
+
to: abitype10.Address | null;
|
|
657
|
+
transactionHash: viem5827.Hash;
|
|
721
658
|
transactionIndex: number;
|
|
722
|
-
type:
|
|
659
|
+
type: viem5827.TransactionType;
|
|
723
660
|
l1GasPrice: bigint | null;
|
|
724
661
|
l1GasUsed: bigint | null;
|
|
725
662
|
l1Fee: bigint | null;
|
|
@@ -728,17 +665,17 @@ declare const FangornConfig: {
|
|
|
728
665
|
type: "transactionReceipt";
|
|
729
666
|
};
|
|
730
667
|
};
|
|
731
|
-
prepareTransactionRequest?: ((args:
|
|
668
|
+
prepareTransactionRequest?: ((args: viem5827.PrepareTransactionRequestParameters, options: {
|
|
732
669
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
733
|
-
}) => Promise<
|
|
670
|
+
}) => Promise<viem5827.PrepareTransactionRequestParameters>) | [fn: ((args: viem5827.PrepareTransactionRequestParameters, options: {
|
|
734
671
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
735
|
-
}) => Promise<
|
|
672
|
+
}) => Promise<viem5827.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
736
673
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
737
674
|
}] | undefined;
|
|
738
675
|
serializers: {
|
|
739
676
|
readonly transaction: typeof viem_chains0.serializeTransactionOpStack;
|
|
740
677
|
};
|
|
741
|
-
verifyHash?: ((client:
|
|
678
|
+
verifyHash?: ((client: viem5827.Client, parameters: viem5827.VerifyHashActionParameters) => Promise<viem5827.VerifyHashActionReturnType>) | undefined;
|
|
742
679
|
readonly network: "base-sepolia";
|
|
743
680
|
};
|
|
744
681
|
rpcUrl: string;
|
|
@@ -750,11 +687,11 @@ declare const FangornConfig: {
|
|
|
750
687
|
/**
|
|
751
688
|
* The networks supported by Fangorn, by the name `CHAIN_NAME` takes.
|
|
752
689
|
*/
|
|
753
|
-
declare const SupportedNetworks: Record<string,
|
|
690
|
+
declare const SupportedNetworks: Record<string, NetworkConfig>;
|
|
754
691
|
/**
|
|
755
|
-
* Get a network's deployment by name ("
|
|
692
|
+
* Get a network's deployment by name ("baseSepolia").
|
|
756
693
|
* @returns The corresponding config if it is supported, otherwise an error
|
|
757
694
|
*/
|
|
758
|
-
declare function getNetwork(name: string):
|
|
695
|
+
declare function getNetwork(name: string): NetworkConfig;
|
|
759
696
|
//#endregion
|
|
760
|
-
export {
|
|
697
|
+
export { BaseSepoliaConfig, FangornConfig, NetworkConfig, SupportedNetworks, getNetwork as default, nonBlank };
|