@fangorn-network/sdk 2026.10.21-dev → 2026.10.22-dev
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 +21 -18
- package/lib/cli/cli.d.ts +0 -0
- package/lib/cli/cli.js +18 -80
- package/lib/cli/index.d.ts +2 -2
- package/lib/cli/index.js +3 -3
- package/lib/config.d.ts +420 -83
- package/lib/config.js +13 -5
- package/lib/contracts/membership-registry/index.d.ts +1 -1
- package/lib/contracts/membership-registry/index.js +1 -1
- package/lib/{cli/erc8004.d.ts → erc8004.d.ts} +5 -3
- package/lib/{cli/erc8004.js → erc8004.js} +10 -7
- package/lib/fangorn.d.ts +21 -3
- package/lib/fangorn.js +67 -1
- package/lib/index.d.ts +2 -2
- package/lib/index.js +2 -2
- package/lib/node_modules/{@jridgewell → .pnpm/@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell}/sourcemap-codec/dist/sourcemap-codec.js +1 -1
- package/lib/node_modules/{@vitest → .pnpm/@vitest_expect@4.0.18/node_modules/@vitest}/expect/dist/index.js +8 -8
- package/lib/node_modules/{@vitest → .pnpm/@vitest_pretty-format@4.0.18/node_modules/@vitest}/pretty-format/dist/index.js +2 -2
- package/lib/node_modules/{@vitest → .pnpm/@vitest_runner@4.0.18/node_modules/@vitest}/runner/dist/chunk-tasks.js +2 -2
- package/lib/node_modules/{@vitest → .pnpm/@vitest_runner@4.0.18/node_modules/@vitest}/runner/dist/index.js +4 -4
- package/lib/node_modules/{@vitest → .pnpm/@vitest_snapshot@4.0.18/node_modules/@vitest}/snapshot/dist/index.js +4 -4
- package/lib/node_modules/{@vitest → .pnpm/@vitest_spy@4.0.18/node_modules/@vitest}/spy/dist/index.js +1 -1
- package/lib/node_modules/{@vitest → .pnpm/@vitest_utils@4.0.18/node_modules/@vitest}/utils/dist/chunk-_commonjsHelpers.js +1 -1
- package/lib/node_modules/{@vitest → .pnpm/@vitest_utils@4.0.18/node_modules/@vitest}/utils/dist/chunk-pathe.M-eThtNZ.js +1 -1
- package/lib/node_modules/{@vitest → .pnpm/@vitest_utils@4.0.18/node_modules/@vitest}/utils/dist/diff.js +3 -3
- package/lib/node_modules/{@vitest → .pnpm/@vitest_utils@4.0.18/node_modules/@vitest}/utils/dist/display.js +2 -2
- package/lib/node_modules/{@vitest → .pnpm/@vitest_utils@4.0.18/node_modules/@vitest}/utils/dist/error.js +2 -2
- package/lib/node_modules/{@vitest → .pnpm/@vitest_utils@4.0.18/node_modules/@vitest}/utils/dist/helpers.js +1 -1
- package/lib/node_modules/{@vitest → .pnpm/@vitest_utils@4.0.18/node_modules/@vitest}/utils/dist/serialize.js +1 -1
- package/lib/node_modules/{@vitest → .pnpm/@vitest_utils@4.0.18/node_modules/@vitest}/utils/dist/source-map.js +1 -1
- package/lib/node_modules/{@vitest → .pnpm/@vitest_utils@4.0.18/node_modules/@vitest}/utils/dist/timers.js +1 -1
- package/lib/node_modules/{chai → .pnpm/chai@6.2.2/node_modules/chai}/index.js +1 -1
- package/lib/node_modules/{magic-string → .pnpm/magic-string@0.30.21/node_modules/magic-string}/dist/magic-string.es.js +2 -2
- package/lib/node_modules/{pathe → .pnpm/pathe@2.0.3/node_modules/pathe}/dist/shared/pathe.M-eThtNZ.js +1 -1
- package/lib/node_modules/{tinyrainbow → .pnpm/tinyrainbow@3.0.3/node_modules/tinyrainbow}/dist/index.js +1 -1
- package/lib/node_modules/{vitest → .pnpm/vitest@4.0.18_@types_node@24.10.1_jiti@2.6.1_terser@5.51.2_tsx@4.21.0_yaml@2.8.2/node_modules/vitest}/dist/chunks/_commonjsHelpers.D26ty3Ew.js +1 -1
- package/lib/node_modules/{vitest → .pnpm/vitest@4.0.18_@types_node@24.10.1_jiti@2.6.1_terser@5.51.2_tsx@4.21.0_yaml@2.8.2/node_modules/vitest}/dist/chunks/date.Bq6ZW5rf.js +1 -1
- package/lib/node_modules/{vitest → .pnpm/vitest@4.0.18_@types_node@24.10.1_jiti@2.6.1_terser@5.51.2_tsx@4.21.0_yaml@2.8.2/node_modules/vitest}/dist/chunks/utils.DvEY5TfP.js +2 -2
- package/lib/node_modules/{vitest → .pnpm/vitest@4.0.18_@types_node@24.10.1_jiti@2.6.1_terser@5.51.2_tsx@4.21.0_yaml@2.8.2/node_modules/vitest}/dist/chunks/vi.2VT5v0um.js +11 -11
- package/lib/providers/storage/signed-url.d.ts +4 -4
- package/lib/providers/storage/signed-url.js +5 -4
- package/lib/test/sdk-suite.js +2 -2
- package/lib/test/testbed.d.ts +6026 -5649
- package/lib/test/testbed.js +5 -1
- package/package.json +75 -88
- /package/lib/node_modules/{@vitest → .pnpm/@vitest_runner@4.0.18/node_modules/@vitest}/runner/dist/utils.js +0 -0
package/lib/config.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as viem0 from "viem";
|
|
2
2
|
import { Chain, Hex } from "viem";
|
|
3
3
|
import * as viem_chains0 from "viem/chains";
|
|
4
|
-
import * as abitype9 from "abitype";
|
|
5
4
|
|
|
6
5
|
//#region src/config.d.ts
|
|
7
6
|
/**
|
|
@@ -25,8 +24,9 @@ interface AppConfig {
|
|
|
25
24
|
caip2: number;
|
|
26
25
|
ipfsGateway: string;
|
|
27
26
|
logWindow?: bigint;
|
|
27
|
+
signedUrlWorker?: string;
|
|
28
28
|
}
|
|
29
|
-
declare const
|
|
29
|
+
declare const ArbitrumSepoliaConfig: {
|
|
30
30
|
dataRegistryContractAddress: "0x72B5f83526F3893aF9f1eE0f32A27218EA09f8aE";
|
|
31
31
|
appRegistryContractAddress: "0x55e6209ea1833ceD900989a3b3b22466934E04A5";
|
|
32
32
|
membershipRegistryContractAddress: "0xDF17030Cd65435C86eb043F31DDACa99E819E347";
|
|
@@ -64,22 +64,23 @@ declare const FangornConfig: {
|
|
|
64
64
|
testnet: true;
|
|
65
65
|
custom?: Record<string, unknown> | undefined;
|
|
66
66
|
extendSchema?: Record<string, unknown> | undefined;
|
|
67
|
-
fees?:
|
|
67
|
+
fees?: viem0.ChainFees<undefined> | undefined;
|
|
68
68
|
formatters?: undefined;
|
|
69
|
-
prepareTransactionRequest?: ((args:
|
|
69
|
+
prepareTransactionRequest?: ((args: viem0.PrepareTransactionRequestParameters, options: {
|
|
70
70
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
71
|
-
}) => Promise<
|
|
71
|
+
}) => Promise<viem0.PrepareTransactionRequestParameters>) | [fn: ((args: viem0.PrepareTransactionRequestParameters, options: {
|
|
72
72
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
73
|
-
}) => Promise<
|
|
73
|
+
}) => Promise<viem0.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
74
74
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
75
75
|
}] | undefined;
|
|
76
|
-
serializers?:
|
|
77
|
-
verifyHash?: ((client:
|
|
76
|
+
serializers?: viem0.ChainSerializers<undefined, viem0.TransactionSerializable> | undefined;
|
|
77
|
+
verifyHash?: ((client: viem0.Client, parameters: viem0.VerifyHashActionParameters) => Promise<viem0.VerifyHashActionReturnType>) | undefined;
|
|
78
78
|
};
|
|
79
79
|
rpcUrl: string;
|
|
80
80
|
caip2: number;
|
|
81
81
|
ipfsGateway: string;
|
|
82
82
|
logWindow: bigint;
|
|
83
|
+
signedUrlWorker: string;
|
|
83
84
|
};
|
|
84
85
|
declare const BaseSepoliaConfig: {
|
|
85
86
|
dataRegistryContractAddress: "0xE9183f768865dd2Cde5f1B71F8446F0Cd798ebe0";
|
|
@@ -159,7 +160,342 @@ declare const BaseSepoliaConfig: {
|
|
|
159
160
|
testnet: true;
|
|
160
161
|
custom?: Record<string, unknown> | undefined;
|
|
161
162
|
extendSchema?: Record<string, unknown> | undefined;
|
|
162
|
-
fees?:
|
|
163
|
+
fees?: viem0.ChainFees<undefined> | undefined;
|
|
164
|
+
formatters: {
|
|
165
|
+
readonly block: {
|
|
166
|
+
exclude: [] | undefined;
|
|
167
|
+
format: (args: viem_chains0.OpStackRpcBlock, action?: string | undefined) => {
|
|
168
|
+
baseFeePerGas: bigint | null;
|
|
169
|
+
blobGasUsed: bigint;
|
|
170
|
+
difficulty: bigint;
|
|
171
|
+
excessBlobGas: bigint;
|
|
172
|
+
extraData: viem0.Hex;
|
|
173
|
+
gasLimit: bigint;
|
|
174
|
+
gasUsed: bigint;
|
|
175
|
+
hash: `0x${string}` | null;
|
|
176
|
+
logsBloom: `0x${string}` | null;
|
|
177
|
+
miner: viem0.Address;
|
|
178
|
+
mixHash: viem0.Hash;
|
|
179
|
+
nonce: `0x${string}` | null;
|
|
180
|
+
number: bigint | null;
|
|
181
|
+
parentBeaconBlockRoot?: `0x${string}` | undefined;
|
|
182
|
+
parentHash: viem0.Hash;
|
|
183
|
+
receiptsRoot: viem0.Hex;
|
|
184
|
+
sealFields: viem0.Hex[];
|
|
185
|
+
sha3Uncles: viem0.Hash;
|
|
186
|
+
size: bigint;
|
|
187
|
+
stateRoot: viem0.Hash;
|
|
188
|
+
timestamp: bigint;
|
|
189
|
+
totalDifficulty: bigint | null;
|
|
190
|
+
transactions: `0x${string}`[] | viem_chains0.OpStackTransaction<boolean>[];
|
|
191
|
+
transactionsRoot: viem0.Hash;
|
|
192
|
+
uncles: viem0.Hash[];
|
|
193
|
+
withdrawals?: viem0.Withdrawal[] | undefined | undefined;
|
|
194
|
+
withdrawalsRoot?: `0x${string}` | undefined;
|
|
195
|
+
} & {};
|
|
196
|
+
type: "block";
|
|
197
|
+
};
|
|
198
|
+
readonly transaction: {
|
|
199
|
+
exclude: [] | undefined;
|
|
200
|
+
format: (args: viem_chains0.OpStackRpcTransaction, action?: string | undefined) => ({
|
|
201
|
+
blockHash: `0x${string}` | null;
|
|
202
|
+
blockNumber: bigint | null;
|
|
203
|
+
from: viem0.Address;
|
|
204
|
+
gas: bigint;
|
|
205
|
+
hash: viem0.Hash;
|
|
206
|
+
input: viem0.Hex;
|
|
207
|
+
nonce: number;
|
|
208
|
+
r: viem0.Hex;
|
|
209
|
+
s: viem0.Hex;
|
|
210
|
+
to: viem0.Address | null;
|
|
211
|
+
transactionIndex: number | null;
|
|
212
|
+
typeHex: viem0.Hex | null;
|
|
213
|
+
v: bigint;
|
|
214
|
+
value: bigint;
|
|
215
|
+
yParity: number;
|
|
216
|
+
gasPrice?: undefined | undefined;
|
|
217
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
218
|
+
maxFeePerGas: bigint;
|
|
219
|
+
maxPriorityFeePerGas: bigint;
|
|
220
|
+
isSystemTx?: boolean;
|
|
221
|
+
mint?: bigint | undefined | undefined;
|
|
222
|
+
sourceHash: viem0.Hex;
|
|
223
|
+
type: "deposit";
|
|
224
|
+
} | {
|
|
225
|
+
r: viem0.Hex;
|
|
226
|
+
s: viem0.Hex;
|
|
227
|
+
v: bigint;
|
|
228
|
+
to: viem0.Address | null;
|
|
229
|
+
from: viem0.Address;
|
|
230
|
+
gas: bigint;
|
|
231
|
+
nonce: number;
|
|
232
|
+
value: bigint;
|
|
233
|
+
blockHash: `0x${string}` | null;
|
|
234
|
+
blockNumber: bigint | null;
|
|
235
|
+
hash: viem0.Hash;
|
|
236
|
+
input: viem0.Hex;
|
|
237
|
+
transactionIndex: number | null;
|
|
238
|
+
typeHex: viem0.Hex | null;
|
|
239
|
+
accessList?: undefined | undefined;
|
|
240
|
+
authorizationList?: undefined | undefined;
|
|
241
|
+
blobVersionedHashes?: undefined | undefined;
|
|
242
|
+
chainId?: number | undefined;
|
|
243
|
+
yParity?: undefined | undefined;
|
|
244
|
+
type: "legacy";
|
|
245
|
+
gasPrice: bigint;
|
|
246
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
247
|
+
maxFeePerGas?: undefined | undefined;
|
|
248
|
+
maxPriorityFeePerGas?: undefined | undefined;
|
|
249
|
+
isSystemTx?: undefined | undefined;
|
|
250
|
+
mint?: undefined | undefined;
|
|
251
|
+
sourceHash?: undefined | undefined;
|
|
252
|
+
} | {
|
|
253
|
+
blockHash: `0x${string}` | null;
|
|
254
|
+
blockNumber: bigint | null;
|
|
255
|
+
from: viem0.Address;
|
|
256
|
+
gas: bigint;
|
|
257
|
+
hash: viem0.Hash;
|
|
258
|
+
input: viem0.Hex;
|
|
259
|
+
nonce: number;
|
|
260
|
+
r: viem0.Hex;
|
|
261
|
+
s: viem0.Hex;
|
|
262
|
+
to: viem0.Address | null;
|
|
263
|
+
transactionIndex: number | null;
|
|
264
|
+
typeHex: viem0.Hex | null;
|
|
265
|
+
v: bigint;
|
|
266
|
+
value: bigint;
|
|
267
|
+
yParity: number;
|
|
268
|
+
accessList: viem0.AccessList;
|
|
269
|
+
authorizationList?: undefined | undefined;
|
|
270
|
+
blobVersionedHashes?: undefined | undefined;
|
|
271
|
+
chainId: number;
|
|
272
|
+
type: "eip2930";
|
|
273
|
+
gasPrice: bigint;
|
|
274
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
275
|
+
maxFeePerGas?: undefined | undefined;
|
|
276
|
+
maxPriorityFeePerGas?: undefined | undefined;
|
|
277
|
+
isSystemTx?: undefined | undefined;
|
|
278
|
+
mint?: undefined | undefined;
|
|
279
|
+
sourceHash?: undefined | undefined;
|
|
280
|
+
} | {
|
|
281
|
+
blockHash: `0x${string}` | null;
|
|
282
|
+
blockNumber: bigint | null;
|
|
283
|
+
from: viem0.Address;
|
|
284
|
+
gas: bigint;
|
|
285
|
+
hash: viem0.Hash;
|
|
286
|
+
input: viem0.Hex;
|
|
287
|
+
nonce: number;
|
|
288
|
+
r: viem0.Hex;
|
|
289
|
+
s: viem0.Hex;
|
|
290
|
+
to: viem0.Address | null;
|
|
291
|
+
transactionIndex: number | null;
|
|
292
|
+
typeHex: viem0.Hex | null;
|
|
293
|
+
v: bigint;
|
|
294
|
+
value: bigint;
|
|
295
|
+
yParity: number;
|
|
296
|
+
accessList: viem0.AccessList;
|
|
297
|
+
authorizationList?: undefined | undefined;
|
|
298
|
+
blobVersionedHashes?: undefined | undefined;
|
|
299
|
+
chainId: number;
|
|
300
|
+
type: "eip1559";
|
|
301
|
+
gasPrice?: undefined | undefined;
|
|
302
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
303
|
+
maxFeePerGas: bigint;
|
|
304
|
+
maxPriorityFeePerGas: bigint;
|
|
305
|
+
isSystemTx?: undefined | undefined;
|
|
306
|
+
mint?: undefined | undefined;
|
|
307
|
+
sourceHash?: undefined | undefined;
|
|
308
|
+
} | {
|
|
309
|
+
blockHash: `0x${string}` | null;
|
|
310
|
+
blockNumber: bigint | null;
|
|
311
|
+
from: viem0.Address;
|
|
312
|
+
gas: bigint;
|
|
313
|
+
hash: viem0.Hash;
|
|
314
|
+
input: viem0.Hex;
|
|
315
|
+
nonce: number;
|
|
316
|
+
r: viem0.Hex;
|
|
317
|
+
s: viem0.Hex;
|
|
318
|
+
to: viem0.Address | null;
|
|
319
|
+
transactionIndex: number | null;
|
|
320
|
+
typeHex: viem0.Hex | null;
|
|
321
|
+
v: bigint;
|
|
322
|
+
value: bigint;
|
|
323
|
+
yParity: number;
|
|
324
|
+
accessList: viem0.AccessList;
|
|
325
|
+
authorizationList?: undefined | undefined;
|
|
326
|
+
blobVersionedHashes: readonly viem0.Hex[];
|
|
327
|
+
chainId: number;
|
|
328
|
+
type: "eip4844";
|
|
329
|
+
gasPrice?: undefined | undefined;
|
|
330
|
+
maxFeePerBlobGas: bigint;
|
|
331
|
+
maxFeePerGas: bigint;
|
|
332
|
+
maxPriorityFeePerGas: bigint;
|
|
333
|
+
isSystemTx?: undefined | undefined;
|
|
334
|
+
mint?: undefined | undefined;
|
|
335
|
+
sourceHash?: undefined | undefined;
|
|
336
|
+
} | {
|
|
337
|
+
blockHash: `0x${string}` | null;
|
|
338
|
+
blockNumber: bigint | null;
|
|
339
|
+
from: viem0.Address;
|
|
340
|
+
gas: bigint;
|
|
341
|
+
hash: viem0.Hash;
|
|
342
|
+
input: viem0.Hex;
|
|
343
|
+
nonce: number;
|
|
344
|
+
r: viem0.Hex;
|
|
345
|
+
s: viem0.Hex;
|
|
346
|
+
to: viem0.Address | null;
|
|
347
|
+
transactionIndex: number | null;
|
|
348
|
+
typeHex: viem0.Hex | null;
|
|
349
|
+
v: bigint;
|
|
350
|
+
value: bigint;
|
|
351
|
+
yParity: number;
|
|
352
|
+
accessList: viem0.AccessList;
|
|
353
|
+
authorizationList: viem0.SignedAuthorizationList;
|
|
354
|
+
blobVersionedHashes?: undefined | undefined;
|
|
355
|
+
chainId: number;
|
|
356
|
+
type: "eip7702";
|
|
357
|
+
gasPrice?: undefined | undefined;
|
|
358
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
359
|
+
maxFeePerGas: bigint;
|
|
360
|
+
maxPriorityFeePerGas: bigint;
|
|
361
|
+
isSystemTx?: undefined | undefined;
|
|
362
|
+
mint?: undefined | undefined;
|
|
363
|
+
sourceHash?: undefined | undefined;
|
|
364
|
+
}) & {};
|
|
365
|
+
type: "transaction";
|
|
366
|
+
};
|
|
367
|
+
readonly transactionReceipt: {
|
|
368
|
+
exclude: [] | undefined;
|
|
369
|
+
format: (args: viem_chains0.OpStackRpcTransactionReceipt, action?: string | undefined) => {
|
|
370
|
+
blobGasPrice?: bigint | undefined;
|
|
371
|
+
blobGasUsed?: bigint | undefined;
|
|
372
|
+
blockHash: viem0.Hash;
|
|
373
|
+
blockNumber: bigint;
|
|
374
|
+
blockTimestamp?: bigint | undefined;
|
|
375
|
+
contractAddress: viem0.Address | null | undefined;
|
|
376
|
+
cumulativeGasUsed: bigint;
|
|
377
|
+
effectiveGasPrice: bigint;
|
|
378
|
+
from: viem0.Address;
|
|
379
|
+
gasUsed: bigint;
|
|
380
|
+
logs: viem0.Log<bigint, number, false>[];
|
|
381
|
+
logsBloom: viem0.Hex;
|
|
382
|
+
root?: `0x${string}` | undefined;
|
|
383
|
+
status: "success" | "reverted";
|
|
384
|
+
to: viem0.Address | null;
|
|
385
|
+
transactionHash: viem0.Hash;
|
|
386
|
+
transactionIndex: number;
|
|
387
|
+
type: viem0.TransactionType;
|
|
388
|
+
l1GasPrice: bigint | null;
|
|
389
|
+
l1GasUsed: bigint | null;
|
|
390
|
+
l1Fee: bigint | null;
|
|
391
|
+
l1FeeScalar: number | null;
|
|
392
|
+
} & {};
|
|
393
|
+
type: "transactionReceipt";
|
|
394
|
+
};
|
|
395
|
+
};
|
|
396
|
+
prepareTransactionRequest?: ((args: viem0.PrepareTransactionRequestParameters, options: {
|
|
397
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
398
|
+
}) => Promise<viem0.PrepareTransactionRequestParameters>) | [fn: ((args: viem0.PrepareTransactionRequestParameters, options: {
|
|
399
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
400
|
+
}) => Promise<viem0.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
401
|
+
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
402
|
+
}] | undefined;
|
|
403
|
+
serializers: {
|
|
404
|
+
readonly transaction: typeof viem_chains0.serializeTransactionOpStack;
|
|
405
|
+
};
|
|
406
|
+
verifyHash?: ((client: viem0.Client, parameters: viem0.VerifyHashActionParameters) => Promise<viem0.VerifyHashActionReturnType>) | undefined;
|
|
407
|
+
readonly network: "base-sepolia";
|
|
408
|
+
};
|
|
409
|
+
rpcUrl: string;
|
|
410
|
+
caip2: number;
|
|
411
|
+
ipfsGateway: string;
|
|
412
|
+
logWindow: bigint;
|
|
413
|
+
signedUrlWorker: string;
|
|
414
|
+
};
|
|
415
|
+
/**
|
|
416
|
+
* The default network: what `Fangorn.create` uses without a `config`, and the CLI
|
|
417
|
+
* without `CHAIN_NAME`. Base Sepolia, which runs the contracts this SDK's ABIs are
|
|
418
|
+
* built from.
|
|
419
|
+
*/
|
|
420
|
+
declare const FangornConfig: {
|
|
421
|
+
dataRegistryContractAddress: "0xE9183f768865dd2Cde5f1B71F8446F0Cd798ebe0";
|
|
422
|
+
appRegistryContractAddress: "0x0D3e98399df41b558048Cdd7D71723c37A3A9D6F";
|
|
423
|
+
membershipRegistryContractAddress: "0x0e96C012b5c53622EcDAA82F342E31C2623A04f5";
|
|
424
|
+
appRegistryFromBlock: bigint;
|
|
425
|
+
chain: {
|
|
426
|
+
blockExplorers: {
|
|
427
|
+
readonly default: {
|
|
428
|
+
readonly name: "Basescan";
|
|
429
|
+
readonly url: "https://sepolia.basescan.org";
|
|
430
|
+
readonly apiUrl: "https://api-sepolia.basescan.org/api";
|
|
431
|
+
};
|
|
432
|
+
};
|
|
433
|
+
blockTime: 2000;
|
|
434
|
+
contracts: {
|
|
435
|
+
readonly disputeGameFactory: {
|
|
436
|
+
readonly 11155111: {
|
|
437
|
+
readonly address: "0xd6E6dBf4F7EA0ac412fD8b65ED297e64BB7a06E1";
|
|
438
|
+
};
|
|
439
|
+
};
|
|
440
|
+
readonly l2OutputOracle: {
|
|
441
|
+
readonly 11155111: {
|
|
442
|
+
readonly address: "0x84457ca9D0163FbC4bbfe4Dfbb20ba46e48DF254";
|
|
443
|
+
};
|
|
444
|
+
};
|
|
445
|
+
readonly portal: {
|
|
446
|
+
readonly 11155111: {
|
|
447
|
+
readonly address: "0x49f53e41452c74589e85ca1677426ba426459e85";
|
|
448
|
+
readonly blockCreated: 4446677;
|
|
449
|
+
};
|
|
450
|
+
};
|
|
451
|
+
readonly l1StandardBridge: {
|
|
452
|
+
readonly 11155111: {
|
|
453
|
+
readonly address: "0xfd0Bf71F60660E2f608ed56e1659C450eB113120";
|
|
454
|
+
readonly blockCreated: 4446677;
|
|
455
|
+
};
|
|
456
|
+
};
|
|
457
|
+
readonly multicall3: {
|
|
458
|
+
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
459
|
+
readonly blockCreated: 1059647;
|
|
460
|
+
};
|
|
461
|
+
readonly gasPriceOracle: {
|
|
462
|
+
readonly address: "0x420000000000000000000000000000000000000F";
|
|
463
|
+
};
|
|
464
|
+
readonly l1Block: {
|
|
465
|
+
readonly address: "0x4200000000000000000000000000000000000015";
|
|
466
|
+
};
|
|
467
|
+
readonly l2CrossDomainMessenger: {
|
|
468
|
+
readonly address: "0x4200000000000000000000000000000000000007";
|
|
469
|
+
};
|
|
470
|
+
readonly l2Erc721Bridge: {
|
|
471
|
+
readonly address: "0x4200000000000000000000000000000000000014";
|
|
472
|
+
};
|
|
473
|
+
readonly l2StandardBridge: {
|
|
474
|
+
readonly address: "0x4200000000000000000000000000000000000010";
|
|
475
|
+
};
|
|
476
|
+
readonly l2ToL1MessagePasser: {
|
|
477
|
+
readonly address: "0x4200000000000000000000000000000000000016";
|
|
478
|
+
};
|
|
479
|
+
};
|
|
480
|
+
ensTlds?: readonly string[] | undefined;
|
|
481
|
+
id: 84532;
|
|
482
|
+
name: "Base Sepolia";
|
|
483
|
+
nativeCurrency: {
|
|
484
|
+
readonly name: "Sepolia Ether";
|
|
485
|
+
readonly symbol: "ETH";
|
|
486
|
+
readonly decimals: 18;
|
|
487
|
+
};
|
|
488
|
+
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
489
|
+
rpcUrls: {
|
|
490
|
+
readonly default: {
|
|
491
|
+
readonly http: readonly ["https://sepolia.base.org"];
|
|
492
|
+
};
|
|
493
|
+
};
|
|
494
|
+
sourceId: 11155111;
|
|
495
|
+
testnet: true;
|
|
496
|
+
custom?: Record<string, unknown> | undefined;
|
|
497
|
+
extendSchema?: Record<string, unknown> | undefined;
|
|
498
|
+
fees?: viem0.ChainFees<undefined> | undefined;
|
|
163
499
|
formatters: {
|
|
164
500
|
readonly block: {
|
|
165
501
|
exclude: [] | undefined;
|
|
@@ -168,28 +504,28 @@ declare const BaseSepoliaConfig: {
|
|
|
168
504
|
blobGasUsed: bigint;
|
|
169
505
|
difficulty: bigint;
|
|
170
506
|
excessBlobGas: bigint;
|
|
171
|
-
extraData:
|
|
507
|
+
extraData: viem0.Hex;
|
|
172
508
|
gasLimit: bigint;
|
|
173
509
|
gasUsed: bigint;
|
|
174
510
|
hash: `0x${string}` | null;
|
|
175
511
|
logsBloom: `0x${string}` | null;
|
|
176
|
-
miner:
|
|
177
|
-
mixHash:
|
|
512
|
+
miner: viem0.Address;
|
|
513
|
+
mixHash: viem0.Hash;
|
|
178
514
|
nonce: `0x${string}` | null;
|
|
179
515
|
number: bigint | null;
|
|
180
516
|
parentBeaconBlockRoot?: `0x${string}` | undefined;
|
|
181
|
-
parentHash:
|
|
182
|
-
receiptsRoot:
|
|
183
|
-
sealFields:
|
|
184
|
-
sha3Uncles:
|
|
517
|
+
parentHash: viem0.Hash;
|
|
518
|
+
receiptsRoot: viem0.Hex;
|
|
519
|
+
sealFields: viem0.Hex[];
|
|
520
|
+
sha3Uncles: viem0.Hash;
|
|
185
521
|
size: bigint;
|
|
186
|
-
stateRoot:
|
|
522
|
+
stateRoot: viem0.Hash;
|
|
187
523
|
timestamp: bigint;
|
|
188
524
|
totalDifficulty: bigint | null;
|
|
189
525
|
transactions: `0x${string}`[] | viem_chains0.OpStackTransaction<boolean>[];
|
|
190
|
-
transactionsRoot:
|
|
191
|
-
uncles:
|
|
192
|
-
withdrawals?:
|
|
526
|
+
transactionsRoot: viem0.Hash;
|
|
527
|
+
uncles: viem0.Hash[];
|
|
528
|
+
withdrawals?: viem0.Withdrawal[] | undefined | undefined;
|
|
193
529
|
withdrawalsRoot?: `0x${string}` | undefined;
|
|
194
530
|
} & {};
|
|
195
531
|
type: "block";
|
|
@@ -199,16 +535,16 @@ declare const BaseSepoliaConfig: {
|
|
|
199
535
|
format: (args: viem_chains0.OpStackRpcTransaction, action?: string | undefined) => ({
|
|
200
536
|
blockHash: `0x${string}` | null;
|
|
201
537
|
blockNumber: bigint | null;
|
|
202
|
-
from:
|
|
538
|
+
from: viem0.Address;
|
|
203
539
|
gas: bigint;
|
|
204
|
-
hash:
|
|
205
|
-
input:
|
|
540
|
+
hash: viem0.Hash;
|
|
541
|
+
input: viem0.Hex;
|
|
206
542
|
nonce: number;
|
|
207
|
-
r:
|
|
208
|
-
s:
|
|
209
|
-
to:
|
|
543
|
+
r: viem0.Hex;
|
|
544
|
+
s: viem0.Hex;
|
|
545
|
+
to: viem0.Address | null;
|
|
210
546
|
transactionIndex: number | null;
|
|
211
|
-
typeHex:
|
|
547
|
+
typeHex: viem0.Hex | null;
|
|
212
548
|
v: bigint;
|
|
213
549
|
value: bigint;
|
|
214
550
|
yParity: number;
|
|
@@ -218,23 +554,23 @@ declare const BaseSepoliaConfig: {
|
|
|
218
554
|
maxPriorityFeePerGas: bigint;
|
|
219
555
|
isSystemTx?: boolean;
|
|
220
556
|
mint?: bigint | undefined | undefined;
|
|
221
|
-
sourceHash:
|
|
557
|
+
sourceHash: viem0.Hex;
|
|
222
558
|
type: "deposit";
|
|
223
559
|
} | {
|
|
224
|
-
r:
|
|
225
|
-
s:
|
|
560
|
+
r: viem0.Hex;
|
|
561
|
+
s: viem0.Hex;
|
|
226
562
|
v: bigint;
|
|
227
|
-
to:
|
|
228
|
-
from:
|
|
563
|
+
to: viem0.Address | null;
|
|
564
|
+
from: viem0.Address;
|
|
229
565
|
gas: bigint;
|
|
230
566
|
nonce: number;
|
|
231
567
|
value: bigint;
|
|
232
568
|
blockHash: `0x${string}` | null;
|
|
233
569
|
blockNumber: bigint | null;
|
|
234
|
-
hash:
|
|
235
|
-
input:
|
|
570
|
+
hash: viem0.Hash;
|
|
571
|
+
input: viem0.Hex;
|
|
236
572
|
transactionIndex: number | null;
|
|
237
|
-
typeHex:
|
|
573
|
+
typeHex: viem0.Hex | null;
|
|
238
574
|
accessList?: undefined | undefined;
|
|
239
575
|
authorizationList?: undefined | undefined;
|
|
240
576
|
blobVersionedHashes?: undefined | undefined;
|
|
@@ -251,20 +587,20 @@ declare const BaseSepoliaConfig: {
|
|
|
251
587
|
} | {
|
|
252
588
|
blockHash: `0x${string}` | null;
|
|
253
589
|
blockNumber: bigint | null;
|
|
254
|
-
from:
|
|
590
|
+
from: viem0.Address;
|
|
255
591
|
gas: bigint;
|
|
256
|
-
hash:
|
|
257
|
-
input:
|
|
592
|
+
hash: viem0.Hash;
|
|
593
|
+
input: viem0.Hex;
|
|
258
594
|
nonce: number;
|
|
259
|
-
r:
|
|
260
|
-
s:
|
|
261
|
-
to:
|
|
595
|
+
r: viem0.Hex;
|
|
596
|
+
s: viem0.Hex;
|
|
597
|
+
to: viem0.Address | null;
|
|
262
598
|
transactionIndex: number | null;
|
|
263
|
-
typeHex:
|
|
599
|
+
typeHex: viem0.Hex | null;
|
|
264
600
|
v: bigint;
|
|
265
601
|
value: bigint;
|
|
266
602
|
yParity: number;
|
|
267
|
-
accessList:
|
|
603
|
+
accessList: viem0.AccessList;
|
|
268
604
|
authorizationList?: undefined | undefined;
|
|
269
605
|
blobVersionedHashes?: undefined | undefined;
|
|
270
606
|
chainId: number;
|
|
@@ -279,20 +615,20 @@ declare const BaseSepoliaConfig: {
|
|
|
279
615
|
} | {
|
|
280
616
|
blockHash: `0x${string}` | null;
|
|
281
617
|
blockNumber: bigint | null;
|
|
282
|
-
from:
|
|
618
|
+
from: viem0.Address;
|
|
283
619
|
gas: bigint;
|
|
284
|
-
hash:
|
|
285
|
-
input:
|
|
620
|
+
hash: viem0.Hash;
|
|
621
|
+
input: viem0.Hex;
|
|
286
622
|
nonce: number;
|
|
287
|
-
r:
|
|
288
|
-
s:
|
|
289
|
-
to:
|
|
623
|
+
r: viem0.Hex;
|
|
624
|
+
s: viem0.Hex;
|
|
625
|
+
to: viem0.Address | null;
|
|
290
626
|
transactionIndex: number | null;
|
|
291
|
-
typeHex:
|
|
627
|
+
typeHex: viem0.Hex | null;
|
|
292
628
|
v: bigint;
|
|
293
629
|
value: bigint;
|
|
294
630
|
yParity: number;
|
|
295
|
-
accessList:
|
|
631
|
+
accessList: viem0.AccessList;
|
|
296
632
|
authorizationList?: undefined | undefined;
|
|
297
633
|
blobVersionedHashes?: undefined | undefined;
|
|
298
634
|
chainId: number;
|
|
@@ -307,22 +643,22 @@ declare const BaseSepoliaConfig: {
|
|
|
307
643
|
} | {
|
|
308
644
|
blockHash: `0x${string}` | null;
|
|
309
645
|
blockNumber: bigint | null;
|
|
310
|
-
from:
|
|
646
|
+
from: viem0.Address;
|
|
311
647
|
gas: bigint;
|
|
312
|
-
hash:
|
|
313
|
-
input:
|
|
648
|
+
hash: viem0.Hash;
|
|
649
|
+
input: viem0.Hex;
|
|
314
650
|
nonce: number;
|
|
315
|
-
r:
|
|
316
|
-
s:
|
|
317
|
-
to:
|
|
651
|
+
r: viem0.Hex;
|
|
652
|
+
s: viem0.Hex;
|
|
653
|
+
to: viem0.Address | null;
|
|
318
654
|
transactionIndex: number | null;
|
|
319
|
-
typeHex:
|
|
655
|
+
typeHex: viem0.Hex | null;
|
|
320
656
|
v: bigint;
|
|
321
657
|
value: bigint;
|
|
322
658
|
yParity: number;
|
|
323
|
-
accessList:
|
|
659
|
+
accessList: viem0.AccessList;
|
|
324
660
|
authorizationList?: undefined | undefined;
|
|
325
|
-
blobVersionedHashes: readonly
|
|
661
|
+
blobVersionedHashes: readonly viem0.Hex[];
|
|
326
662
|
chainId: number;
|
|
327
663
|
type: "eip4844";
|
|
328
664
|
gasPrice?: undefined | undefined;
|
|
@@ -335,21 +671,21 @@ declare const BaseSepoliaConfig: {
|
|
|
335
671
|
} | {
|
|
336
672
|
blockHash: `0x${string}` | null;
|
|
337
673
|
blockNumber: bigint | null;
|
|
338
|
-
from:
|
|
674
|
+
from: viem0.Address;
|
|
339
675
|
gas: bigint;
|
|
340
|
-
hash:
|
|
341
|
-
input:
|
|
676
|
+
hash: viem0.Hash;
|
|
677
|
+
input: viem0.Hex;
|
|
342
678
|
nonce: number;
|
|
343
|
-
r:
|
|
344
|
-
s:
|
|
345
|
-
to:
|
|
679
|
+
r: viem0.Hex;
|
|
680
|
+
s: viem0.Hex;
|
|
681
|
+
to: viem0.Address | null;
|
|
346
682
|
transactionIndex: number | null;
|
|
347
|
-
typeHex:
|
|
683
|
+
typeHex: viem0.Hex | null;
|
|
348
684
|
v: bigint;
|
|
349
685
|
value: bigint;
|
|
350
686
|
yParity: number;
|
|
351
|
-
accessList:
|
|
352
|
-
authorizationList:
|
|
687
|
+
accessList: viem0.AccessList;
|
|
688
|
+
authorizationList: viem0.SignedAuthorizationList;
|
|
353
689
|
blobVersionedHashes?: undefined | undefined;
|
|
354
690
|
chainId: number;
|
|
355
691
|
type: "eip7702";
|
|
@@ -368,22 +704,22 @@ declare const BaseSepoliaConfig: {
|
|
|
368
704
|
format: (args: viem_chains0.OpStackRpcTransactionReceipt, action?: string | undefined) => {
|
|
369
705
|
blobGasPrice?: bigint | undefined;
|
|
370
706
|
blobGasUsed?: bigint | undefined;
|
|
371
|
-
blockHash:
|
|
707
|
+
blockHash: viem0.Hash;
|
|
372
708
|
blockNumber: bigint;
|
|
373
709
|
blockTimestamp?: bigint | undefined;
|
|
374
|
-
contractAddress:
|
|
710
|
+
contractAddress: viem0.Address | null | undefined;
|
|
375
711
|
cumulativeGasUsed: bigint;
|
|
376
712
|
effectiveGasPrice: bigint;
|
|
377
|
-
from:
|
|
713
|
+
from: viem0.Address;
|
|
378
714
|
gasUsed: bigint;
|
|
379
|
-
logs:
|
|
380
|
-
logsBloom:
|
|
715
|
+
logs: viem0.Log<bigint, number, false>[];
|
|
716
|
+
logsBloom: viem0.Hex;
|
|
381
717
|
root?: `0x${string}` | undefined;
|
|
382
718
|
status: "success" | "reverted";
|
|
383
|
-
to:
|
|
384
|
-
transactionHash:
|
|
719
|
+
to: viem0.Address | null;
|
|
720
|
+
transactionHash: viem0.Hash;
|
|
385
721
|
transactionIndex: number;
|
|
386
|
-
type:
|
|
722
|
+
type: viem0.TransactionType;
|
|
387
723
|
l1GasPrice: bigint | null;
|
|
388
724
|
l1GasUsed: bigint | null;
|
|
389
725
|
l1Fee: bigint | null;
|
|
@@ -392,23 +728,24 @@ declare const BaseSepoliaConfig: {
|
|
|
392
728
|
type: "transactionReceipt";
|
|
393
729
|
};
|
|
394
730
|
};
|
|
395
|
-
prepareTransactionRequest?: ((args:
|
|
731
|
+
prepareTransactionRequest?: ((args: viem0.PrepareTransactionRequestParameters, options: {
|
|
396
732
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
397
|
-
}) => Promise<
|
|
733
|
+
}) => Promise<viem0.PrepareTransactionRequestParameters>) | [fn: ((args: viem0.PrepareTransactionRequestParameters, options: {
|
|
398
734
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
399
|
-
}) => Promise<
|
|
735
|
+
}) => Promise<viem0.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
400
736
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
401
737
|
}] | undefined;
|
|
402
738
|
serializers: {
|
|
403
739
|
readonly transaction: typeof viem_chains0.serializeTransactionOpStack;
|
|
404
740
|
};
|
|
405
|
-
verifyHash?: ((client:
|
|
741
|
+
verifyHash?: ((client: viem0.Client, parameters: viem0.VerifyHashActionParameters) => Promise<viem0.VerifyHashActionReturnType>) | undefined;
|
|
406
742
|
readonly network: "base-sepolia";
|
|
407
743
|
};
|
|
408
744
|
rpcUrl: string;
|
|
409
745
|
caip2: number;
|
|
410
746
|
ipfsGateway: string;
|
|
411
747
|
logWindow: bigint;
|
|
748
|
+
signedUrlWorker: string;
|
|
412
749
|
};
|
|
413
750
|
/**
|
|
414
751
|
* The networks supported by Fangorn, by the name `CHAIN_NAME` takes.
|
|
@@ -420,4 +757,4 @@ declare const SupportedNetworks: Record<string, AppConfig>;
|
|
|
420
757
|
*/
|
|
421
758
|
declare function getNetwork(name: string): AppConfig;
|
|
422
759
|
//#endregion
|
|
423
|
-
export { AppConfig, BaseSepoliaConfig, FangornConfig, SupportedNetworks, appId, getNetwork as default, nonBlank, toAppId };
|
|
760
|
+
export { AppConfig, ArbitrumSepoliaConfig, BaseSepoliaConfig, FangornConfig, SupportedNetworks, appId, getNetwork as default, nonBlank, toAppId };
|