@fangorn-network/sdk 2026.8.18-dev → 2026.10.1-9.0-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 +191 -195
- package/lib/cli/cli.d.ts +0 -0
- package/lib/cli/cli.js +198 -164
- package/lib/cli/index.d.ts +3 -91
- package/lib/cli/index.js +5 -2
- package/lib/config.d.ts +349 -433
- package/lib/config.js +41 -28
- package/lib/contracts/app-registry/abi.d.ts +1064 -265
- package/lib/contracts/app-registry/abi.js +1233 -308
- package/lib/contracts/app-registry/index.d.ts +123 -102
- package/lib/contracts/app-registry/index.js +200 -198
- package/lib/contracts/data-registry/abi.d.ts +166 -187
- package/lib/contracts/data-registry/abi.js +207 -237
- package/lib/contracts/data-registry/index.d.ts +4 -160
- package/lib/contracts/data-registry/index.js +5 -294
- package/lib/contracts/index.d.ts +6 -7
- package/lib/contracts/index.js +6 -8
- package/lib/contracts/logs.d.ts +21 -0
- package/lib/contracts/logs.js +32 -0
- package/lib/contracts/membership-registry/abi.d.ts +1145 -0
- package/lib/contracts/membership-registry/abi.js +1333 -0
- package/lib/contracts/membership-registry/index.d.ts +79 -0
- package/lib/contracts/membership-registry/index.js +104 -0
- package/lib/contracts/types.d.ts +3 -1
- package/lib/contracts/types.js +3 -1
- package/lib/contracts/write.d.ts +34 -2
- package/lib/contracts/write.js +48 -1
- package/lib/crypto/encryption.js +4 -4
- package/lib/engine/car.d.ts +2 -2
- package/lib/engine/car.js +10 -5
- package/lib/engine/index.d.ts +99 -143
- package/lib/engine/index.js +156 -295
- package/lib/engine/records.d.ts +110 -0
- package/lib/engine/records.js +165 -0
- package/lib/engine/test-helpers.d.ts +7 -14
- package/lib/engine/test-helpers.js +7 -18
- package/lib/fangorn.d.ts +163 -155
- package/lib/fangorn.js +284 -248
- package/lib/feed.d.ts +7 -4
- package/lib/feed.js +4 -1
- package/lib/index.d.ts +9 -9
- package/lib/index.js +9 -10
- package/lib/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.js +77 -0
- package/lib/node_modules/@vitest/expect/dist/index.js +1414 -0
- package/lib/node_modules/@vitest/pretty-format/dist/index.js +858 -0
- package/lib/node_modules/@vitest/runner/dist/chunk-tasks.js +51 -0
- package/lib/node_modules/@vitest/runner/dist/index.js +1199 -0
- package/lib/node_modules/@vitest/runner/dist/utils.js +3 -0
- package/lib/node_modules/@vitest/snapshot/dist/index.js +1075 -0
- package/lib/node_modules/@vitest/spy/dist/index.js +353 -0
- package/lib/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js +7 -0
- package/lib/node_modules/@vitest/utils/dist/chunk-pathe.M-eThtNZ.js +81 -0
- package/lib/node_modules/@vitest/utils/dist/diff.js +1345 -0
- package/lib/node_modules/@vitest/utils/dist/display.js +534 -0
- package/lib/node_modules/@vitest/utils/dist/error.js +30 -0
- package/lib/node_modules/@vitest/utils/dist/helpers.js +118 -0
- package/lib/node_modules/@vitest/utils/dist/serialize.js +76 -0
- package/lib/node_modules/@vitest/utils/dist/source-map.js +93 -0
- package/lib/node_modules/@vitest/utils/dist/timers.js +36 -0
- package/lib/node_modules/chai/index.js +2874 -0
- package/lib/node_modules/magic-string/dist/magic-string.es.js +939 -0
- package/lib/node_modules/pathe/dist/shared/pathe.M-eThtNZ.js +81 -0
- package/lib/node_modules/tinyrainbow/dist/index.js +85 -0
- package/lib/node_modules/vitest/dist/chunks/_commonjsHelpers.D26ty3Ew.js +5 -0
- package/lib/node_modules/vitest/dist/chunks/date.Bq6ZW5rf.js +50 -0
- package/lib/node_modules/vitest/dist/chunks/utils.DvEY5TfP.js +44 -0
- package/lib/node_modules/vitest/dist/chunks/vi.2VT5v0um.js +2578 -0
- package/lib/providers/storage/signed-url.d.ts +16 -6
- package/lib/providers/storage/signed-url.js +20 -8
- package/lib/registry.d.ts +116 -0
- package/lib/registry.js +182 -0
- package/lib/test/mem-registry.d.ts +51 -0
- package/lib/test/mem-registry.js +107 -0
- package/lib/test/sdk-suite.d.ts +13 -0
- package/lib/test/sdk-suite.js +226 -0
- package/lib/test/testbed.d.ts +16411 -61
- package/lib/test/testbed.js +190 -84
- package/lib/types/index.d.ts +13 -11
- package/package.json +89 -72
- package/lib/contracts/data-registry/test.d.ts +0 -1
- package/lib/contracts/data-registry/test.js +0 -1
- package/lib/contracts/settlement-registry/abi.d.ts +0 -466
- package/lib/contracts/settlement-registry/abi.js +0 -535
- package/lib/contracts/settlement-registry/index.d.ts +0 -163
- package/lib/contracts/settlement-registry/index.js +0 -264
- package/lib/contracts/subscription-registry/abi.d.ts +0 -179
- package/lib/contracts/subscription-registry/abi.js +0 -195
- package/lib/contracts/subscription-registry/index.d.ts +0 -59
- package/lib/contracts/subscription-registry/index.js +0 -116
- package/lib/engine/graph.d.ts +0 -70
- package/lib/engine/graph.js +0 -73
package/lib/config.d.ts
CHANGED
|
@@ -6,451 +6,30 @@ import * as abitype0 from "abitype";
|
|
|
6
6
|
//#region src/config.d.ts
|
|
7
7
|
/**
|
|
8
8
|
* Derive an app id from a human-readable name (keccak256(hex(name)).
|
|
9
|
-
* Apps are claim one of these on-chain with `AppRegistry.registerApp`
|
|
10
9
|
*/
|
|
11
10
|
declare function appId(name: string): Hex;
|
|
12
|
-
declare const DEFAULT_APP = "fangorn";
|
|
13
|
-
declare function toAppId(nameOrId: string): Hex;
|
|
14
11
|
/**
|
|
15
|
-
*
|
|
12
|
+
* Blank input means "not set", never an app called "". Returns the trimmed value,
|
|
13
|
+
* or undefined when it is missing or only whitespace, so it can sit on the left of
|
|
14
|
+
* a `??` fallback. `??` on the raw value would let "" through: it is not nullish.
|
|
16
15
|
*/
|
|
17
|
-
declare
|
|
18
|
-
|
|
19
|
-
name: string;
|
|
20
|
-
chain: {
|
|
21
|
-
blockExplorers: {
|
|
22
|
-
readonly default: {
|
|
23
|
-
readonly name: "Arbiscan";
|
|
24
|
-
readonly url: "https://sepolia.arbiscan.io";
|
|
25
|
-
readonly apiUrl: "https://api-sepolia.arbiscan.io/api";
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
blockTime: 250;
|
|
29
|
-
contracts: {
|
|
30
|
-
readonly multicall3: {
|
|
31
|
-
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
32
|
-
readonly blockCreated: 81930;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
ensTlds?: readonly string[] | undefined;
|
|
36
|
-
id: 421614;
|
|
37
|
-
name: "Arbitrum Sepolia";
|
|
38
|
-
nativeCurrency: {
|
|
39
|
-
readonly name: "Arbitrum Sepolia Ether";
|
|
40
|
-
readonly symbol: "ETH";
|
|
41
|
-
readonly decimals: 18;
|
|
42
|
-
};
|
|
43
|
-
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
44
|
-
rpcUrls: {
|
|
45
|
-
readonly default: {
|
|
46
|
-
readonly http: readonly ["https://sepolia-rollup.arbitrum.io/rpc"];
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
sourceId?: number | undefined | undefined;
|
|
50
|
-
testnet: true;
|
|
51
|
-
custom?: Record<string, unknown> | undefined;
|
|
52
|
-
extendSchema?: Record<string, unknown> | undefined;
|
|
53
|
-
fees?: viem0.ChainFees<undefined> | undefined;
|
|
54
|
-
formatters?: undefined;
|
|
55
|
-
prepareTransactionRequest?: ((args: viem0.PrepareTransactionRequestParameters, options: {
|
|
56
|
-
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
57
|
-
}) => Promise<viem0.PrepareTransactionRequestParameters>) | [fn: ((args: viem0.PrepareTransactionRequestParameters, options: {
|
|
58
|
-
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
59
|
-
}) => Promise<viem0.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
60
|
-
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
61
|
-
}] | undefined;
|
|
62
|
-
serializers?: viem0.ChainSerializers<undefined, viem0.TransactionSerializable> | undefined;
|
|
63
|
-
verifyHash?: ((client: viem0.Client, parameters: viem0.VerifyHashActionParameters) => Promise<viem0.VerifyHashActionReturnType>) | undefined;
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
-
BaseSepolia: {
|
|
67
|
-
name: string;
|
|
68
|
-
chain: {
|
|
69
|
-
blockExplorers: {
|
|
70
|
-
readonly default: {
|
|
71
|
-
readonly name: "Basescan";
|
|
72
|
-
readonly url: "https://sepolia.basescan.org";
|
|
73
|
-
readonly apiUrl: "https://api-sepolia.basescan.org/api";
|
|
74
|
-
};
|
|
75
|
-
};
|
|
76
|
-
blockTime: 2000;
|
|
77
|
-
contracts: {
|
|
78
|
-
readonly disputeGameFactory: {
|
|
79
|
-
readonly 11155111: {
|
|
80
|
-
readonly address: "0xd6E6dBf4F7EA0ac412fD8b65ED297e64BB7a06E1";
|
|
81
|
-
};
|
|
82
|
-
};
|
|
83
|
-
readonly l2OutputOracle: {
|
|
84
|
-
readonly 11155111: {
|
|
85
|
-
readonly address: "0x84457ca9D0163FbC4bbfe4Dfbb20ba46e48DF254";
|
|
86
|
-
};
|
|
87
|
-
};
|
|
88
|
-
readonly portal: {
|
|
89
|
-
readonly 11155111: {
|
|
90
|
-
readonly address: "0x49f53e41452c74589e85ca1677426ba426459e85";
|
|
91
|
-
readonly blockCreated: 4446677;
|
|
92
|
-
};
|
|
93
|
-
};
|
|
94
|
-
readonly l1StandardBridge: {
|
|
95
|
-
readonly 11155111: {
|
|
96
|
-
readonly address: "0xfd0Bf71F60660E2f608ed56e1659C450eB113120";
|
|
97
|
-
readonly blockCreated: 4446677;
|
|
98
|
-
};
|
|
99
|
-
};
|
|
100
|
-
readonly multicall3: {
|
|
101
|
-
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
102
|
-
readonly blockCreated: 1059647;
|
|
103
|
-
};
|
|
104
|
-
readonly gasPriceOracle: {
|
|
105
|
-
readonly address: "0x420000000000000000000000000000000000000F";
|
|
106
|
-
};
|
|
107
|
-
readonly l1Block: {
|
|
108
|
-
readonly address: "0x4200000000000000000000000000000000000015";
|
|
109
|
-
};
|
|
110
|
-
readonly l2CrossDomainMessenger: {
|
|
111
|
-
readonly address: "0x4200000000000000000000000000000000000007";
|
|
112
|
-
};
|
|
113
|
-
readonly l2Erc721Bridge: {
|
|
114
|
-
readonly address: "0x4200000000000000000000000000000000000014";
|
|
115
|
-
};
|
|
116
|
-
readonly l2StandardBridge: {
|
|
117
|
-
readonly address: "0x4200000000000000000000000000000000000010";
|
|
118
|
-
};
|
|
119
|
-
readonly l2ToL1MessagePasser: {
|
|
120
|
-
readonly address: "0x4200000000000000000000000000000000000016";
|
|
121
|
-
};
|
|
122
|
-
};
|
|
123
|
-
ensTlds?: readonly string[] | undefined;
|
|
124
|
-
id: 84532;
|
|
125
|
-
name: "Base Sepolia";
|
|
126
|
-
nativeCurrency: {
|
|
127
|
-
readonly name: "Sepolia Ether";
|
|
128
|
-
readonly symbol: "ETH";
|
|
129
|
-
readonly decimals: 18;
|
|
130
|
-
};
|
|
131
|
-
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
132
|
-
rpcUrls: {
|
|
133
|
-
readonly default: {
|
|
134
|
-
readonly http: readonly ["https://sepolia.base.org"];
|
|
135
|
-
};
|
|
136
|
-
};
|
|
137
|
-
sourceId: 11155111;
|
|
138
|
-
testnet: true;
|
|
139
|
-
custom?: Record<string, unknown> | undefined;
|
|
140
|
-
extendSchema?: Record<string, unknown> | undefined;
|
|
141
|
-
fees?: viem0.ChainFees<undefined> | undefined;
|
|
142
|
-
formatters: {
|
|
143
|
-
readonly block: {
|
|
144
|
-
exclude: [] | undefined;
|
|
145
|
-
format: (args: viem_chains0.OpStackRpcBlock, action?: string | undefined) => {
|
|
146
|
-
baseFeePerGas: bigint | null;
|
|
147
|
-
blobGasUsed: bigint;
|
|
148
|
-
difficulty: bigint;
|
|
149
|
-
excessBlobGas: bigint;
|
|
150
|
-
extraData: viem0.Hex;
|
|
151
|
-
gasLimit: bigint;
|
|
152
|
-
gasUsed: bigint;
|
|
153
|
-
hash: `0x${string}` | null;
|
|
154
|
-
logsBloom: `0x${string}` | null;
|
|
155
|
-
miner: abitype0.Address;
|
|
156
|
-
mixHash: viem0.Hash;
|
|
157
|
-
nonce: `0x${string}` | null;
|
|
158
|
-
number: bigint | null;
|
|
159
|
-
parentBeaconBlockRoot?: `0x${string}` | undefined;
|
|
160
|
-
parentHash: viem0.Hash;
|
|
161
|
-
receiptsRoot: viem0.Hex;
|
|
162
|
-
sealFields: viem0.Hex[];
|
|
163
|
-
sha3Uncles: viem0.Hash;
|
|
164
|
-
size: bigint;
|
|
165
|
-
stateRoot: viem0.Hash;
|
|
166
|
-
timestamp: bigint;
|
|
167
|
-
totalDifficulty: bigint | null;
|
|
168
|
-
transactions: `0x${string}`[] | viem_chains0.OpStackTransaction<boolean>[];
|
|
169
|
-
transactionsRoot: viem0.Hash;
|
|
170
|
-
uncles: viem0.Hash[];
|
|
171
|
-
withdrawals?: viem0.Withdrawal[] | undefined | undefined;
|
|
172
|
-
withdrawalsRoot?: `0x${string}` | undefined;
|
|
173
|
-
} & {};
|
|
174
|
-
type: "block";
|
|
175
|
-
};
|
|
176
|
-
readonly transaction: {
|
|
177
|
-
exclude: [] | undefined;
|
|
178
|
-
format: (args: viem_chains0.OpStackRpcTransaction, action?: string | undefined) => ({
|
|
179
|
-
blockHash: `0x${string}` | null;
|
|
180
|
-
blockNumber: bigint | null;
|
|
181
|
-
from: abitype0.Address;
|
|
182
|
-
gas: bigint;
|
|
183
|
-
hash: viem0.Hash;
|
|
184
|
-
input: viem0.Hex;
|
|
185
|
-
nonce: number;
|
|
186
|
-
r: viem0.Hex;
|
|
187
|
-
s: viem0.Hex;
|
|
188
|
-
to: abitype0.Address | null;
|
|
189
|
-
transactionIndex: number | null;
|
|
190
|
-
typeHex: viem0.Hex | null;
|
|
191
|
-
v: bigint;
|
|
192
|
-
value: bigint;
|
|
193
|
-
yParity: number;
|
|
194
|
-
gasPrice?: undefined | undefined;
|
|
195
|
-
maxFeePerBlobGas?: undefined | undefined;
|
|
196
|
-
maxFeePerGas: bigint;
|
|
197
|
-
maxPriorityFeePerGas: bigint;
|
|
198
|
-
isSystemTx?: boolean;
|
|
199
|
-
mint?: bigint | undefined | undefined;
|
|
200
|
-
sourceHash: viem0.Hex;
|
|
201
|
-
type: "deposit";
|
|
202
|
-
} | {
|
|
203
|
-
r: viem0.Hex;
|
|
204
|
-
s: viem0.Hex;
|
|
205
|
-
v: bigint;
|
|
206
|
-
to: abitype0.Address | null;
|
|
207
|
-
from: abitype0.Address;
|
|
208
|
-
gas: bigint;
|
|
209
|
-
nonce: number;
|
|
210
|
-
value: bigint;
|
|
211
|
-
blockHash: `0x${string}` | null;
|
|
212
|
-
blockNumber: bigint | null;
|
|
213
|
-
hash: viem0.Hash;
|
|
214
|
-
input: viem0.Hex;
|
|
215
|
-
transactionIndex: number | null;
|
|
216
|
-
typeHex: viem0.Hex | null;
|
|
217
|
-
accessList?: undefined | undefined;
|
|
218
|
-
authorizationList?: undefined | undefined;
|
|
219
|
-
blobVersionedHashes?: undefined | undefined;
|
|
220
|
-
chainId?: number | undefined;
|
|
221
|
-
yParity?: undefined | undefined;
|
|
222
|
-
type: "legacy";
|
|
223
|
-
gasPrice: bigint;
|
|
224
|
-
maxFeePerBlobGas?: undefined | undefined;
|
|
225
|
-
maxFeePerGas?: undefined | undefined;
|
|
226
|
-
maxPriorityFeePerGas?: undefined | undefined;
|
|
227
|
-
isSystemTx?: undefined | undefined;
|
|
228
|
-
mint?: undefined | undefined;
|
|
229
|
-
sourceHash?: undefined | undefined;
|
|
230
|
-
} | {
|
|
231
|
-
blockHash: `0x${string}` | null;
|
|
232
|
-
blockNumber: bigint | null;
|
|
233
|
-
from: abitype0.Address;
|
|
234
|
-
gas: bigint;
|
|
235
|
-
hash: viem0.Hash;
|
|
236
|
-
input: viem0.Hex;
|
|
237
|
-
nonce: number;
|
|
238
|
-
r: viem0.Hex;
|
|
239
|
-
s: viem0.Hex;
|
|
240
|
-
to: abitype0.Address | null;
|
|
241
|
-
transactionIndex: number | null;
|
|
242
|
-
typeHex: viem0.Hex | null;
|
|
243
|
-
v: bigint;
|
|
244
|
-
value: bigint;
|
|
245
|
-
yParity: number;
|
|
246
|
-
accessList: viem0.AccessList;
|
|
247
|
-
authorizationList?: undefined | undefined;
|
|
248
|
-
blobVersionedHashes?: undefined | undefined;
|
|
249
|
-
chainId: number;
|
|
250
|
-
type: "eip2930";
|
|
251
|
-
gasPrice: bigint;
|
|
252
|
-
maxFeePerBlobGas?: undefined | undefined;
|
|
253
|
-
maxFeePerGas?: undefined | undefined;
|
|
254
|
-
maxPriorityFeePerGas?: undefined | undefined;
|
|
255
|
-
isSystemTx?: undefined | undefined;
|
|
256
|
-
mint?: undefined | undefined;
|
|
257
|
-
sourceHash?: undefined | undefined;
|
|
258
|
-
} | {
|
|
259
|
-
blockHash: `0x${string}` | null;
|
|
260
|
-
blockNumber: bigint | null;
|
|
261
|
-
from: abitype0.Address;
|
|
262
|
-
gas: bigint;
|
|
263
|
-
hash: viem0.Hash;
|
|
264
|
-
input: viem0.Hex;
|
|
265
|
-
nonce: number;
|
|
266
|
-
r: viem0.Hex;
|
|
267
|
-
s: viem0.Hex;
|
|
268
|
-
to: abitype0.Address | null;
|
|
269
|
-
transactionIndex: number | null;
|
|
270
|
-
typeHex: viem0.Hex | null;
|
|
271
|
-
v: bigint;
|
|
272
|
-
value: bigint;
|
|
273
|
-
yParity: number;
|
|
274
|
-
accessList: viem0.AccessList;
|
|
275
|
-
authorizationList?: undefined | undefined;
|
|
276
|
-
blobVersionedHashes?: undefined | undefined;
|
|
277
|
-
chainId: number;
|
|
278
|
-
type: "eip1559";
|
|
279
|
-
gasPrice?: undefined | undefined;
|
|
280
|
-
maxFeePerBlobGas?: undefined | undefined;
|
|
281
|
-
maxFeePerGas: bigint;
|
|
282
|
-
maxPriorityFeePerGas: bigint;
|
|
283
|
-
isSystemTx?: undefined | undefined;
|
|
284
|
-
mint?: undefined | undefined;
|
|
285
|
-
sourceHash?: undefined | undefined;
|
|
286
|
-
} | {
|
|
287
|
-
blockHash: `0x${string}` | null;
|
|
288
|
-
blockNumber: bigint | null;
|
|
289
|
-
from: abitype0.Address;
|
|
290
|
-
gas: bigint;
|
|
291
|
-
hash: viem0.Hash;
|
|
292
|
-
input: viem0.Hex;
|
|
293
|
-
nonce: number;
|
|
294
|
-
r: viem0.Hex;
|
|
295
|
-
s: viem0.Hex;
|
|
296
|
-
to: abitype0.Address | null;
|
|
297
|
-
transactionIndex: number | null;
|
|
298
|
-
typeHex: viem0.Hex | null;
|
|
299
|
-
v: bigint;
|
|
300
|
-
value: bigint;
|
|
301
|
-
yParity: number;
|
|
302
|
-
accessList: viem0.AccessList;
|
|
303
|
-
authorizationList?: undefined | undefined;
|
|
304
|
-
blobVersionedHashes: readonly viem0.Hex[];
|
|
305
|
-
chainId: number;
|
|
306
|
-
type: "eip4844";
|
|
307
|
-
gasPrice?: undefined | undefined;
|
|
308
|
-
maxFeePerBlobGas: bigint;
|
|
309
|
-
maxFeePerGas: bigint;
|
|
310
|
-
maxPriorityFeePerGas: bigint;
|
|
311
|
-
isSystemTx?: undefined | undefined;
|
|
312
|
-
mint?: undefined | undefined;
|
|
313
|
-
sourceHash?: undefined | undefined;
|
|
314
|
-
} | {
|
|
315
|
-
blockHash: `0x${string}` | null;
|
|
316
|
-
blockNumber: bigint | null;
|
|
317
|
-
from: abitype0.Address;
|
|
318
|
-
gas: bigint;
|
|
319
|
-
hash: viem0.Hash;
|
|
320
|
-
input: viem0.Hex;
|
|
321
|
-
nonce: number;
|
|
322
|
-
r: viem0.Hex;
|
|
323
|
-
s: viem0.Hex;
|
|
324
|
-
to: abitype0.Address | null;
|
|
325
|
-
transactionIndex: number | null;
|
|
326
|
-
typeHex: viem0.Hex | null;
|
|
327
|
-
v: bigint;
|
|
328
|
-
value: bigint;
|
|
329
|
-
yParity: number;
|
|
330
|
-
accessList: viem0.AccessList;
|
|
331
|
-
authorizationList: viem0.SignedAuthorizationList;
|
|
332
|
-
blobVersionedHashes?: undefined | undefined;
|
|
333
|
-
chainId: number;
|
|
334
|
-
type: "eip7702";
|
|
335
|
-
gasPrice?: undefined | undefined;
|
|
336
|
-
maxFeePerBlobGas?: undefined | undefined;
|
|
337
|
-
maxFeePerGas: bigint;
|
|
338
|
-
maxPriorityFeePerGas: bigint;
|
|
339
|
-
isSystemTx?: undefined | undefined;
|
|
340
|
-
mint?: undefined | undefined;
|
|
341
|
-
sourceHash?: undefined | undefined;
|
|
342
|
-
}) & {};
|
|
343
|
-
type: "transaction";
|
|
344
|
-
};
|
|
345
|
-
readonly transactionReceipt: {
|
|
346
|
-
exclude: [] | undefined;
|
|
347
|
-
format: (args: viem_chains0.OpStackRpcTransactionReceipt, action?: string | undefined) => {
|
|
348
|
-
blobGasPrice?: bigint | undefined;
|
|
349
|
-
blobGasUsed?: bigint | undefined;
|
|
350
|
-
blockHash: viem0.Hash;
|
|
351
|
-
blockNumber: bigint;
|
|
352
|
-
blockTimestamp?: bigint | undefined;
|
|
353
|
-
contractAddress: abitype0.Address | null | undefined;
|
|
354
|
-
cumulativeGasUsed: bigint;
|
|
355
|
-
effectiveGasPrice: bigint;
|
|
356
|
-
from: abitype0.Address;
|
|
357
|
-
gasUsed: bigint;
|
|
358
|
-
logs: viem0.Log<bigint, number, false>[];
|
|
359
|
-
logsBloom: viem0.Hex;
|
|
360
|
-
root?: `0x${string}` | undefined;
|
|
361
|
-
status: "success" | "reverted";
|
|
362
|
-
to: abitype0.Address | null;
|
|
363
|
-
transactionHash: viem0.Hash;
|
|
364
|
-
transactionIndex: number;
|
|
365
|
-
type: viem0.TransactionType;
|
|
366
|
-
l1GasPrice: bigint | null;
|
|
367
|
-
l1GasUsed: bigint | null;
|
|
368
|
-
l1Fee: bigint | null;
|
|
369
|
-
l1FeeScalar: number | null;
|
|
370
|
-
} & {};
|
|
371
|
-
type: "transactionReceipt";
|
|
372
|
-
};
|
|
373
|
-
};
|
|
374
|
-
prepareTransactionRequest?: ((args: viem0.PrepareTransactionRequestParameters, options: {
|
|
375
|
-
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
376
|
-
}) => Promise<viem0.PrepareTransactionRequestParameters>) | [fn: ((args: viem0.PrepareTransactionRequestParameters, options: {
|
|
377
|
-
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
378
|
-
}) => Promise<viem0.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
379
|
-
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
380
|
-
}] | undefined;
|
|
381
|
-
serializers: {
|
|
382
|
-
readonly transaction: typeof viem_chains0.serializeTransactionOpStack;
|
|
383
|
-
};
|
|
384
|
-
verifyHash?: ((client: viem0.Client, parameters: viem0.VerifyHashActionParameters) => Promise<viem0.VerifyHashActionReturnType>) | undefined;
|
|
385
|
-
readonly network: "base-sepolia";
|
|
386
|
-
};
|
|
387
|
-
};
|
|
388
|
-
};
|
|
389
|
-
/**
|
|
390
|
-
* Get the network based on the string name
|
|
391
|
-
* @param name "arbitrumSepolia" is the only one supported right now
|
|
392
|
-
* @returns The corresponding network if it is supported, otherwise an error
|
|
393
|
-
*/
|
|
394
|
-
declare function getNetwork(name: string): {
|
|
395
|
-
blockExplorers: {
|
|
396
|
-
readonly default: {
|
|
397
|
-
readonly name: "Arbiscan";
|
|
398
|
-
readonly url: "https://sepolia.arbiscan.io";
|
|
399
|
-
readonly apiUrl: "https://api-sepolia.arbiscan.io/api";
|
|
400
|
-
};
|
|
401
|
-
};
|
|
402
|
-
blockTime: 250;
|
|
403
|
-
contracts: {
|
|
404
|
-
readonly multicall3: {
|
|
405
|
-
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
406
|
-
readonly blockCreated: 81930;
|
|
407
|
-
};
|
|
408
|
-
};
|
|
409
|
-
ensTlds?: readonly string[] | undefined;
|
|
410
|
-
id: 421614;
|
|
411
|
-
name: "Arbitrum Sepolia";
|
|
412
|
-
nativeCurrency: {
|
|
413
|
-
readonly name: "Arbitrum Sepolia Ether";
|
|
414
|
-
readonly symbol: "ETH";
|
|
415
|
-
readonly decimals: 18;
|
|
416
|
-
};
|
|
417
|
-
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
418
|
-
rpcUrls: {
|
|
419
|
-
readonly default: {
|
|
420
|
-
readonly http: readonly ["https://sepolia-rollup.arbitrum.io/rpc"];
|
|
421
|
-
};
|
|
422
|
-
};
|
|
423
|
-
sourceId?: number | undefined | undefined;
|
|
424
|
-
testnet: true;
|
|
425
|
-
custom?: Record<string, unknown> | undefined;
|
|
426
|
-
extendSchema?: Record<string, unknown> | undefined;
|
|
427
|
-
fees?: viem0.ChainFees<undefined> | undefined;
|
|
428
|
-
formatters?: undefined;
|
|
429
|
-
prepareTransactionRequest?: ((args: viem0.PrepareTransactionRequestParameters, options: {
|
|
430
|
-
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
431
|
-
}) => Promise<viem0.PrepareTransactionRequestParameters>) | [fn: ((args: viem0.PrepareTransactionRequestParameters, options: {
|
|
432
|
-
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
433
|
-
}) => Promise<viem0.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
434
|
-
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
435
|
-
}] | undefined;
|
|
436
|
-
serializers?: viem0.ChainSerializers<undefined, viem0.TransactionSerializable> | undefined;
|
|
437
|
-
verifyHash?: ((client: viem0.Client, parameters: viem0.VerifyHashActionParameters) => Promise<viem0.VerifyHashActionReturnType>) | undefined;
|
|
438
|
-
};
|
|
16
|
+
declare function nonBlank(value: string | undefined): string | undefined;
|
|
17
|
+
declare function toAppId(nameOrId: string): Hex;
|
|
439
18
|
interface AppConfig {
|
|
440
19
|
dataRegistryContractAddress: Hex;
|
|
441
20
|
appRegistryContractAddress: Hex;
|
|
442
|
-
|
|
443
|
-
|
|
21
|
+
membershipRegistryContractAddress: Hex;
|
|
22
|
+
appRegistryFromBlock: bigint;
|
|
444
23
|
chain: Chain;
|
|
445
24
|
rpcUrl: string;
|
|
446
25
|
caip2: number;
|
|
447
26
|
ipfsGateway: string;
|
|
448
27
|
}
|
|
449
28
|
declare const FangornConfig: {
|
|
450
|
-
dataRegistryContractAddress: "
|
|
451
|
-
appRegistryContractAddress: "
|
|
452
|
-
|
|
453
|
-
|
|
29
|
+
dataRegistryContractAddress: "0x72B5f83526F3893aF9f1eE0f32A27218EA09f8aE";
|
|
30
|
+
appRegistryContractAddress: "0x55e6209ea1833ceD900989a3b3b22466934E04A5";
|
|
31
|
+
membershipRegistryContractAddress: "0xDF17030Cd65435C86eb043F31DDACa99E819E347";
|
|
32
|
+
appRegistryFromBlock: bigint;
|
|
454
33
|
chain: {
|
|
455
34
|
blockExplorers: {
|
|
456
35
|
readonly default: {
|
|
@@ -500,5 +79,342 @@ declare const FangornConfig: {
|
|
|
500
79
|
caip2: number;
|
|
501
80
|
ipfsGateway: string;
|
|
502
81
|
};
|
|
82
|
+
declare const BaseSepoliaConfig: {
|
|
83
|
+
dataRegistryContractAddress: "0xE9183f768865dd2Cde5f1B71F8446F0Cd798ebe0";
|
|
84
|
+
appRegistryContractAddress: "0x0D3e98399df41b558048Cdd7D71723c37A3A9D6F";
|
|
85
|
+
membershipRegistryContractAddress: "0x0e96C012b5c53622EcDAA82F342E31C2623A04f5";
|
|
86
|
+
appRegistryFromBlock: bigint;
|
|
87
|
+
chain: {
|
|
88
|
+
blockExplorers: {
|
|
89
|
+
readonly default: {
|
|
90
|
+
readonly name: "Basescan";
|
|
91
|
+
readonly url: "https://sepolia.basescan.org";
|
|
92
|
+
readonly apiUrl: "https://api-sepolia.basescan.org/api";
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
blockTime: 2000;
|
|
96
|
+
contracts: {
|
|
97
|
+
readonly disputeGameFactory: {
|
|
98
|
+
readonly 11155111: {
|
|
99
|
+
readonly address: "0xd6E6dBf4F7EA0ac412fD8b65ED297e64BB7a06E1";
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
readonly l2OutputOracle: {
|
|
103
|
+
readonly 11155111: {
|
|
104
|
+
readonly address: "0x84457ca9D0163FbC4bbfe4Dfbb20ba46e48DF254";
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
readonly portal: {
|
|
108
|
+
readonly 11155111: {
|
|
109
|
+
readonly address: "0x49f53e41452c74589e85ca1677426ba426459e85";
|
|
110
|
+
readonly blockCreated: 4446677;
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
readonly l1StandardBridge: {
|
|
114
|
+
readonly 11155111: {
|
|
115
|
+
readonly address: "0xfd0Bf71F60660E2f608ed56e1659C450eB113120";
|
|
116
|
+
readonly blockCreated: 4446677;
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
readonly multicall3: {
|
|
120
|
+
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
121
|
+
readonly blockCreated: 1059647;
|
|
122
|
+
};
|
|
123
|
+
readonly gasPriceOracle: {
|
|
124
|
+
readonly address: "0x420000000000000000000000000000000000000F";
|
|
125
|
+
};
|
|
126
|
+
readonly l1Block: {
|
|
127
|
+
readonly address: "0x4200000000000000000000000000000000000015";
|
|
128
|
+
};
|
|
129
|
+
readonly l2CrossDomainMessenger: {
|
|
130
|
+
readonly address: "0x4200000000000000000000000000000000000007";
|
|
131
|
+
};
|
|
132
|
+
readonly l2Erc721Bridge: {
|
|
133
|
+
readonly address: "0x4200000000000000000000000000000000000014";
|
|
134
|
+
};
|
|
135
|
+
readonly l2StandardBridge: {
|
|
136
|
+
readonly address: "0x4200000000000000000000000000000000000010";
|
|
137
|
+
};
|
|
138
|
+
readonly l2ToL1MessagePasser: {
|
|
139
|
+
readonly address: "0x4200000000000000000000000000000000000016";
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
ensTlds?: readonly string[] | undefined;
|
|
143
|
+
id: 84532;
|
|
144
|
+
name: "Base Sepolia";
|
|
145
|
+
nativeCurrency: {
|
|
146
|
+
readonly name: "Sepolia Ether";
|
|
147
|
+
readonly symbol: "ETH";
|
|
148
|
+
readonly decimals: 18;
|
|
149
|
+
};
|
|
150
|
+
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
151
|
+
rpcUrls: {
|
|
152
|
+
readonly default: {
|
|
153
|
+
readonly http: readonly ["https://sepolia.base.org"];
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
sourceId: 11155111;
|
|
157
|
+
testnet: true;
|
|
158
|
+
custom?: Record<string, unknown> | undefined;
|
|
159
|
+
extendSchema?: Record<string, unknown> | undefined;
|
|
160
|
+
fees?: viem0.ChainFees<undefined> | undefined;
|
|
161
|
+
formatters: {
|
|
162
|
+
readonly block: {
|
|
163
|
+
exclude: [] | undefined;
|
|
164
|
+
format: (args: viem_chains0.OpStackRpcBlock, action?: string | undefined) => {
|
|
165
|
+
baseFeePerGas: bigint | null;
|
|
166
|
+
blobGasUsed: bigint;
|
|
167
|
+
difficulty: bigint;
|
|
168
|
+
excessBlobGas: bigint;
|
|
169
|
+
extraData: viem0.Hex;
|
|
170
|
+
gasLimit: bigint;
|
|
171
|
+
gasUsed: bigint;
|
|
172
|
+
hash: `0x${string}` | null;
|
|
173
|
+
logsBloom: `0x${string}` | null;
|
|
174
|
+
miner: abitype0.Address;
|
|
175
|
+
mixHash: viem0.Hash;
|
|
176
|
+
nonce: `0x${string}` | null;
|
|
177
|
+
number: bigint | null;
|
|
178
|
+
parentBeaconBlockRoot?: `0x${string}` | undefined;
|
|
179
|
+
parentHash: viem0.Hash;
|
|
180
|
+
receiptsRoot: viem0.Hex;
|
|
181
|
+
sealFields: viem0.Hex[];
|
|
182
|
+
sha3Uncles: viem0.Hash;
|
|
183
|
+
size: bigint;
|
|
184
|
+
stateRoot: viem0.Hash;
|
|
185
|
+
timestamp: bigint;
|
|
186
|
+
totalDifficulty: bigint | null;
|
|
187
|
+
transactions: `0x${string}`[] | viem_chains0.OpStackTransaction<boolean>[];
|
|
188
|
+
transactionsRoot: viem0.Hash;
|
|
189
|
+
uncles: viem0.Hash[];
|
|
190
|
+
withdrawals?: viem0.Withdrawal[] | undefined | undefined;
|
|
191
|
+
withdrawalsRoot?: `0x${string}` | undefined;
|
|
192
|
+
} & {};
|
|
193
|
+
type: "block";
|
|
194
|
+
};
|
|
195
|
+
readonly transaction: {
|
|
196
|
+
exclude: [] | undefined;
|
|
197
|
+
format: (args: viem_chains0.OpStackRpcTransaction, action?: string | undefined) => ({
|
|
198
|
+
blockHash: `0x${string}` | null;
|
|
199
|
+
blockNumber: bigint | null;
|
|
200
|
+
from: abitype0.Address;
|
|
201
|
+
gas: bigint;
|
|
202
|
+
hash: viem0.Hash;
|
|
203
|
+
input: viem0.Hex;
|
|
204
|
+
nonce: number;
|
|
205
|
+
r: viem0.Hex;
|
|
206
|
+
s: viem0.Hex;
|
|
207
|
+
to: abitype0.Address | null;
|
|
208
|
+
transactionIndex: number | null;
|
|
209
|
+
typeHex: viem0.Hex | null;
|
|
210
|
+
v: bigint;
|
|
211
|
+
value: bigint;
|
|
212
|
+
yParity: number;
|
|
213
|
+
gasPrice?: undefined | undefined;
|
|
214
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
215
|
+
maxFeePerGas: bigint;
|
|
216
|
+
maxPriorityFeePerGas: bigint;
|
|
217
|
+
isSystemTx?: boolean;
|
|
218
|
+
mint?: bigint | undefined | undefined;
|
|
219
|
+
sourceHash: viem0.Hex;
|
|
220
|
+
type: "deposit";
|
|
221
|
+
} | {
|
|
222
|
+
r: viem0.Hex;
|
|
223
|
+
s: viem0.Hex;
|
|
224
|
+
v: bigint;
|
|
225
|
+
to: abitype0.Address | null;
|
|
226
|
+
from: abitype0.Address;
|
|
227
|
+
gas: bigint;
|
|
228
|
+
nonce: number;
|
|
229
|
+
value: bigint;
|
|
230
|
+
blockHash: `0x${string}` | null;
|
|
231
|
+
blockNumber: bigint | null;
|
|
232
|
+
hash: viem0.Hash;
|
|
233
|
+
input: viem0.Hex;
|
|
234
|
+
transactionIndex: number | null;
|
|
235
|
+
typeHex: viem0.Hex | null;
|
|
236
|
+
accessList?: undefined | undefined;
|
|
237
|
+
authorizationList?: undefined | undefined;
|
|
238
|
+
blobVersionedHashes?: undefined | undefined;
|
|
239
|
+
chainId?: number | undefined;
|
|
240
|
+
yParity?: undefined | undefined;
|
|
241
|
+
type: "legacy";
|
|
242
|
+
gasPrice: bigint;
|
|
243
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
244
|
+
maxFeePerGas?: undefined | undefined;
|
|
245
|
+
maxPriorityFeePerGas?: undefined | undefined;
|
|
246
|
+
isSystemTx?: undefined | undefined;
|
|
247
|
+
mint?: undefined | undefined;
|
|
248
|
+
sourceHash?: undefined | undefined;
|
|
249
|
+
} | {
|
|
250
|
+
blockHash: `0x${string}` | null;
|
|
251
|
+
blockNumber: bigint | null;
|
|
252
|
+
from: abitype0.Address;
|
|
253
|
+
gas: bigint;
|
|
254
|
+
hash: viem0.Hash;
|
|
255
|
+
input: viem0.Hex;
|
|
256
|
+
nonce: number;
|
|
257
|
+
r: viem0.Hex;
|
|
258
|
+
s: viem0.Hex;
|
|
259
|
+
to: abitype0.Address | null;
|
|
260
|
+
transactionIndex: number | null;
|
|
261
|
+
typeHex: viem0.Hex | null;
|
|
262
|
+
v: bigint;
|
|
263
|
+
value: bigint;
|
|
264
|
+
yParity: number;
|
|
265
|
+
accessList: viem0.AccessList;
|
|
266
|
+
authorizationList?: undefined | undefined;
|
|
267
|
+
blobVersionedHashes?: undefined | undefined;
|
|
268
|
+
chainId: number;
|
|
269
|
+
type: "eip2930";
|
|
270
|
+
gasPrice: bigint;
|
|
271
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
272
|
+
maxFeePerGas?: undefined | undefined;
|
|
273
|
+
maxPriorityFeePerGas?: undefined | undefined;
|
|
274
|
+
isSystemTx?: undefined | undefined;
|
|
275
|
+
mint?: undefined | undefined;
|
|
276
|
+
sourceHash?: undefined | undefined;
|
|
277
|
+
} | {
|
|
278
|
+
blockHash: `0x${string}` | null;
|
|
279
|
+
blockNumber: bigint | null;
|
|
280
|
+
from: abitype0.Address;
|
|
281
|
+
gas: bigint;
|
|
282
|
+
hash: viem0.Hash;
|
|
283
|
+
input: viem0.Hex;
|
|
284
|
+
nonce: number;
|
|
285
|
+
r: viem0.Hex;
|
|
286
|
+
s: viem0.Hex;
|
|
287
|
+
to: abitype0.Address | null;
|
|
288
|
+
transactionIndex: number | null;
|
|
289
|
+
typeHex: viem0.Hex | null;
|
|
290
|
+
v: bigint;
|
|
291
|
+
value: bigint;
|
|
292
|
+
yParity: number;
|
|
293
|
+
accessList: viem0.AccessList;
|
|
294
|
+
authorizationList?: undefined | undefined;
|
|
295
|
+
blobVersionedHashes?: undefined | undefined;
|
|
296
|
+
chainId: number;
|
|
297
|
+
type: "eip1559";
|
|
298
|
+
gasPrice?: undefined | undefined;
|
|
299
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
300
|
+
maxFeePerGas: bigint;
|
|
301
|
+
maxPriorityFeePerGas: bigint;
|
|
302
|
+
isSystemTx?: undefined | undefined;
|
|
303
|
+
mint?: undefined | undefined;
|
|
304
|
+
sourceHash?: undefined | undefined;
|
|
305
|
+
} | {
|
|
306
|
+
blockHash: `0x${string}` | null;
|
|
307
|
+
blockNumber: bigint | null;
|
|
308
|
+
from: abitype0.Address;
|
|
309
|
+
gas: bigint;
|
|
310
|
+
hash: viem0.Hash;
|
|
311
|
+
input: viem0.Hex;
|
|
312
|
+
nonce: number;
|
|
313
|
+
r: viem0.Hex;
|
|
314
|
+
s: viem0.Hex;
|
|
315
|
+
to: abitype0.Address | null;
|
|
316
|
+
transactionIndex: number | null;
|
|
317
|
+
typeHex: viem0.Hex | null;
|
|
318
|
+
v: bigint;
|
|
319
|
+
value: bigint;
|
|
320
|
+
yParity: number;
|
|
321
|
+
accessList: viem0.AccessList;
|
|
322
|
+
authorizationList?: undefined | undefined;
|
|
323
|
+
blobVersionedHashes: readonly viem0.Hex[];
|
|
324
|
+
chainId: number;
|
|
325
|
+
type: "eip4844";
|
|
326
|
+
gasPrice?: undefined | undefined;
|
|
327
|
+
maxFeePerBlobGas: bigint;
|
|
328
|
+
maxFeePerGas: bigint;
|
|
329
|
+
maxPriorityFeePerGas: bigint;
|
|
330
|
+
isSystemTx?: undefined | undefined;
|
|
331
|
+
mint?: undefined | undefined;
|
|
332
|
+
sourceHash?: undefined | undefined;
|
|
333
|
+
} | {
|
|
334
|
+
blockHash: `0x${string}` | null;
|
|
335
|
+
blockNumber: bigint | null;
|
|
336
|
+
from: abitype0.Address;
|
|
337
|
+
gas: bigint;
|
|
338
|
+
hash: viem0.Hash;
|
|
339
|
+
input: viem0.Hex;
|
|
340
|
+
nonce: number;
|
|
341
|
+
r: viem0.Hex;
|
|
342
|
+
s: viem0.Hex;
|
|
343
|
+
to: abitype0.Address | null;
|
|
344
|
+
transactionIndex: number | null;
|
|
345
|
+
typeHex: viem0.Hex | null;
|
|
346
|
+
v: bigint;
|
|
347
|
+
value: bigint;
|
|
348
|
+
yParity: number;
|
|
349
|
+
accessList: viem0.AccessList;
|
|
350
|
+
authorizationList: viem0.SignedAuthorizationList;
|
|
351
|
+
blobVersionedHashes?: undefined | undefined;
|
|
352
|
+
chainId: number;
|
|
353
|
+
type: "eip7702";
|
|
354
|
+
gasPrice?: undefined | undefined;
|
|
355
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
356
|
+
maxFeePerGas: bigint;
|
|
357
|
+
maxPriorityFeePerGas: bigint;
|
|
358
|
+
isSystemTx?: undefined | undefined;
|
|
359
|
+
mint?: undefined | undefined;
|
|
360
|
+
sourceHash?: undefined | undefined;
|
|
361
|
+
}) & {};
|
|
362
|
+
type: "transaction";
|
|
363
|
+
};
|
|
364
|
+
readonly transactionReceipt: {
|
|
365
|
+
exclude: [] | undefined;
|
|
366
|
+
format: (args: viem_chains0.OpStackRpcTransactionReceipt, action?: string | undefined) => {
|
|
367
|
+
blobGasPrice?: bigint | undefined;
|
|
368
|
+
blobGasUsed?: bigint | undefined;
|
|
369
|
+
blockHash: viem0.Hash;
|
|
370
|
+
blockNumber: bigint;
|
|
371
|
+
blockTimestamp?: bigint | undefined;
|
|
372
|
+
contractAddress: abitype0.Address | null | undefined;
|
|
373
|
+
cumulativeGasUsed: bigint;
|
|
374
|
+
effectiveGasPrice: bigint;
|
|
375
|
+
from: abitype0.Address;
|
|
376
|
+
gasUsed: bigint;
|
|
377
|
+
logs: viem0.Log<bigint, number, false>[];
|
|
378
|
+
logsBloom: viem0.Hex;
|
|
379
|
+
root?: `0x${string}` | undefined;
|
|
380
|
+
status: "success" | "reverted";
|
|
381
|
+
to: abitype0.Address | null;
|
|
382
|
+
transactionHash: viem0.Hash;
|
|
383
|
+
transactionIndex: number;
|
|
384
|
+
type: viem0.TransactionType;
|
|
385
|
+
l1GasPrice: bigint | null;
|
|
386
|
+
l1GasUsed: bigint | null;
|
|
387
|
+
l1Fee: bigint | null;
|
|
388
|
+
l1FeeScalar: number | null;
|
|
389
|
+
} & {};
|
|
390
|
+
type: "transactionReceipt";
|
|
391
|
+
};
|
|
392
|
+
};
|
|
393
|
+
prepareTransactionRequest?: ((args: viem0.PrepareTransactionRequestParameters, options: {
|
|
394
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
395
|
+
}) => Promise<viem0.PrepareTransactionRequestParameters>) | [fn: ((args: viem0.PrepareTransactionRequestParameters, options: {
|
|
396
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
397
|
+
}) => Promise<viem0.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
398
|
+
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
399
|
+
}] | undefined;
|
|
400
|
+
serializers: {
|
|
401
|
+
readonly transaction: typeof viem_chains0.serializeTransactionOpStack;
|
|
402
|
+
};
|
|
403
|
+
verifyHash?: ((client: viem0.Client, parameters: viem0.VerifyHashActionParameters) => Promise<viem0.VerifyHashActionReturnType>) | undefined;
|
|
404
|
+
readonly network: "base-sepolia";
|
|
405
|
+
};
|
|
406
|
+
rpcUrl: string;
|
|
407
|
+
caip2: number;
|
|
408
|
+
ipfsGateway: string;
|
|
409
|
+
};
|
|
410
|
+
/**
|
|
411
|
+
* The networks supported by Fangorn, by the name `CHAIN_NAME` takes.
|
|
412
|
+
*/
|
|
413
|
+
declare const SupportedNetworks: Record<string, AppConfig>;
|
|
414
|
+
/**
|
|
415
|
+
* Get a network's deployment by name ("arbitrumSepolia" or "baseSepolia").
|
|
416
|
+
* @returns The corresponding config if it is supported, otherwise an error
|
|
417
|
+
*/
|
|
418
|
+
declare function getNetwork(name: string): AppConfig;
|
|
503
419
|
//#endregion
|
|
504
|
-
export { AppConfig,
|
|
420
|
+
export { AppConfig, BaseSepoliaConfig, FangornConfig, SupportedNetworks, appId, getNetwork as default, nonBlank, toAppId };
|