@fangorn-network/sdk 2026.6.16 → 2026.7.1-2.0
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 +210 -266
- package/lib/cli/cli.d.ts +0 -0
- package/lib/cli/cli.js +261 -167
- package/lib/cli/index.d.ts +13 -651
- package/lib/config.d.ts +137 -792
- package/lib/config.js +6 -22
- package/lib/contracts/data-registry/abi.d.ts +38 -0
- package/lib/contracts/data-registry/abi.js +237 -0
- package/lib/contracts/data-registry/index.d.ts +81 -0
- package/lib/contracts/data-registry/index.js +184 -0
- package/lib/contracts/index.d.ts +3 -0
- package/lib/contracts/index.js +4 -0
- package/lib/crypto/aes.d.ts +26 -0
- package/lib/crypto/aes.js +58 -0
- package/lib/crypto/encryption.d.ts +53 -0
- package/lib/crypto/encryption.js +82 -0
- package/lib/{modules/encryption → crypto}/rand.d.ts +1 -1
- package/lib/{modules/encryption → crypto}/rand.js +1 -1
- package/lib/{modules/encryption → crypto}/types.d.ts +1 -1
- package/lib/engine/blockstore.d.ts +24 -0
- package/lib/engine/blockstore.js +85 -0
- package/lib/engine/index.d.ts +180 -0
- package/lib/engine/index.js +367 -0
- package/lib/fangorn.d.ts +149 -16
- package/lib/fangorn.js +256 -37
- package/lib/harness/examples/hackmd/build-markdown-graph.js +17 -0
- package/lib/harness/index.d.ts +57 -0
- package/lib/harness/index.js +67 -0
- package/lib/index.d.ts +2 -2
- package/lib/node_modules/.pnpm/@noble_ciphers@1.3.0/node_modules/@noble/ciphers/esm/_polyval.js +218 -0
- package/lib/node_modules/.pnpm/@noble_ciphers@1.3.0/node_modules/@noble/ciphers/esm/aes.js +261 -0
- package/lib/node_modules/.pnpm/@noble_ciphers@1.3.0/node_modules/@noble/ciphers/esm/utils.js +156 -0
- package/lib/node_modules/.pnpm/@noble_curves@1.9.7/node_modules/@noble/curves/esm/abstract/curve.js +299 -0
- package/lib/node_modules/.pnpm/@noble_curves@1.9.7/node_modules/@noble/curves/esm/abstract/edwards.js +532 -0
- package/lib/node_modules/.pnpm/@noble_curves@1.9.7/node_modules/@noble/curves/esm/abstract/modular.js +344 -0
- package/lib/node_modules/.pnpm/@noble_curves@1.9.7/node_modules/@noble/curves/esm/abstract/montgomery.js +137 -0
- package/lib/node_modules/.pnpm/@noble_curves@1.9.7/node_modules/@noble/curves/esm/ed25519.js +262 -0
- package/lib/node_modules/.pnpm/@noble_curves@1.9.7/node_modules/@noble/curves/esm/utils.js +150 -0
- package/lib/providers/storage/car.d.ts +36 -0
- package/lib/providers/storage/car.js +80 -0
- package/lib/providers/storage/pinata.d.ts +29 -1
- package/lib/providers/storage/pinata.js +135 -20
- package/lib/providers/storage/types.d.ts +25 -18
- package/lib/roles/repo/index.d.ts +56 -0
- package/lib/roles/repo/index.js +73 -0
- package/lib/test/car_smoke.d.ts +1 -0
- package/lib/test/car_smoke.js +81 -0
- package/lib/test/cleanup-embeddings-testdata.js +9 -38
- package/lib/test/setup-embeddings-testdata.d.ts +4 -6
- package/lib/test/setup-embeddings-testdata.js +40 -94
- package/lib/test/testbed.d.ts +35 -32
- package/lib/test/testbed.js +48 -138
- package/lib/types/index.d.ts +3 -19
- package/lib/utils/manifest.d.ts +23 -0
- package/lib/utils/manifest.js +77 -0
- package/package.json +99 -81
- package/lib/modules/encryption/actions.d.ts +0 -4
- package/lib/modules/encryption/actions.js +0 -18
- package/lib/modules/encryption/aes.d.ts +0 -10
- package/lib/modules/encryption/aes.js +0 -51
- package/lib/registries/datasource-registry/abi.d.ts +0 -186
- package/lib/registries/datasource-registry/abi.js +0 -229
- package/lib/registries/datasource-registry/index.d.ts +0 -39
- package/lib/registries/datasource-registry/index.js +0 -158
- package/lib/registries/index.d.ts +0 -3
- package/lib/registries/index.js +0 -4
- package/lib/registries/schema-registry/abi.d.ts +0 -218
- package/lib/registries/schema-registry/abi.js +0 -246
- package/lib/registries/schema-registry/index.d.ts +0 -34
- package/lib/registries/schema-registry/index.js +0 -179
- package/lib/registries/settlement-registry/abi.d.ts +0 -218
- package/lib/registries/settlement-registry/abi.js +0 -259
- package/lib/registries/settlement-registry/index.d.ts +0 -63
- package/lib/registries/settlement-registry/index.js +0 -325
- package/lib/registries/settlement-registry/types.d.ts +0 -54
- package/lib/registries/settlement-registry/types.js +0 -1
- package/lib/roles/consumer/index.d.ts +0 -39
- package/lib/roles/consumer/index.js +0 -150
- package/lib/roles/consumer/types.d.ts +0 -47
- package/lib/roles/consumer/types.js +0 -1
- package/lib/roles/publisher/builders/bundle.d.ts +0 -32
- package/lib/roles/publisher/builders/bundle.js +0 -137
- package/lib/roles/publisher/builders/record-set.d.ts +0 -17
- package/lib/roles/publisher/builders/record-set.js +0 -55
- package/lib/roles/publisher/builders/types.d.ts +0 -38
- package/lib/roles/publisher/builders/types.js +0 -1
- package/lib/roles/publisher/builders/utils.d.ts +0 -9
- package/lib/roles/publisher/builders/utils.js +0 -29
- package/lib/roles/publisher/encryption.d.ts +0 -18
- package/lib/roles/publisher/encryption.js +0 -38
- package/lib/roles/publisher/index.d.ts +0 -68
- package/lib/roles/publisher/index.js +0 -179
- package/lib/roles/publisher/types.d.ts +0 -114
- package/lib/roles/publisher/types.js +0 -1
- package/lib/roles/schema/index.d.ts +0 -44
- package/lib/roles/schema/index.js +0 -127
- package/lib/roles/schema/types.d.ts +0 -113
- package/lib/roles/schema/types.js +0 -1
- package/lib/roles/schema/validate.d.ts +0 -9
- package/lib/roles/schema/validate.js +0 -128
- package/lib/test/publish_mb_bundle.js +0 -296
- /package/lib/{modules/encryption/index.d.ts → contracts/data-registry/test.d.ts} +0 -0
- /package/lib/{modules/encryption/index.js → contracts/data-registry/test.js} +0 -0
- /package/lib/{modules/encryption → crypto}/types.js +0 -0
- /package/lib/{test/publish_mb_bundle.d.ts → harness/examples/hackmd/build-markdown-graph.d.ts} +0 -0
package/lib/cli/index.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import "./cli.js";
|
|
2
|
-
import * as
|
|
3
|
-
import * as viem0 from "viem";
|
|
4
|
-
import * as abitype0 from "abitype";
|
|
2
|
+
import * as viem105 from "viem";
|
|
5
3
|
|
|
6
4
|
//#region src/cli/index.d.ts
|
|
7
5
|
declare const getChain: (chainStr: string) => {
|
|
@@ -37,335 +35,17 @@ declare const getChain: (chainStr: string) => {
|
|
|
37
35
|
testnet: true;
|
|
38
36
|
custom?: Record<string, unknown> | undefined;
|
|
39
37
|
extendSchema?: Record<string, unknown> | undefined;
|
|
40
|
-
fees?:
|
|
38
|
+
fees?: viem105.ChainFees<undefined> | undefined;
|
|
41
39
|
formatters?: undefined;
|
|
42
|
-
prepareTransactionRequest?: ((args:
|
|
40
|
+
prepareTransactionRequest?: ((args: viem105.PrepareTransactionRequestParameters, options: {
|
|
43
41
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
44
|
-
}) => Promise<
|
|
42
|
+
}) => Promise<viem105.PrepareTransactionRequestParameters>) | [fn: ((args: viem105.PrepareTransactionRequestParameters, options: {
|
|
45
43
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
46
|
-
}) => Promise<
|
|
44
|
+
}) => Promise<viem105.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
47
45
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
48
46
|
}] | undefined;
|
|
49
|
-
serializers?:
|
|
50
|
-
verifyHash?: ((client:
|
|
51
|
-
} | {
|
|
52
|
-
blockExplorers: {
|
|
53
|
-
readonly default: {
|
|
54
|
-
readonly name: "Basescan";
|
|
55
|
-
readonly url: "https://sepolia.basescan.org";
|
|
56
|
-
readonly apiUrl: "https://api-sepolia.basescan.org/api";
|
|
57
|
-
};
|
|
58
|
-
};
|
|
59
|
-
blockTime: 2000;
|
|
60
|
-
contracts: {
|
|
61
|
-
readonly disputeGameFactory: {
|
|
62
|
-
readonly 11155111: {
|
|
63
|
-
readonly address: "0xd6E6dBf4F7EA0ac412fD8b65ED297e64BB7a06E1";
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
-
readonly l2OutputOracle: {
|
|
67
|
-
readonly 11155111: {
|
|
68
|
-
readonly address: "0x84457ca9D0163FbC4bbfe4Dfbb20ba46e48DF254";
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
|
-
readonly portal: {
|
|
72
|
-
readonly 11155111: {
|
|
73
|
-
readonly address: "0x49f53e41452c74589e85ca1677426ba426459e85";
|
|
74
|
-
readonly blockCreated: 4446677;
|
|
75
|
-
};
|
|
76
|
-
};
|
|
77
|
-
readonly l1StandardBridge: {
|
|
78
|
-
readonly 11155111: {
|
|
79
|
-
readonly address: "0xfd0Bf71F60660E2f608ed56e1659C450eB113120";
|
|
80
|
-
readonly blockCreated: 4446677;
|
|
81
|
-
};
|
|
82
|
-
};
|
|
83
|
-
readonly multicall3: {
|
|
84
|
-
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
85
|
-
readonly blockCreated: 1059647;
|
|
86
|
-
};
|
|
87
|
-
readonly gasPriceOracle: {
|
|
88
|
-
readonly address: "0x420000000000000000000000000000000000000F";
|
|
89
|
-
};
|
|
90
|
-
readonly l1Block: {
|
|
91
|
-
readonly address: "0x4200000000000000000000000000000000000015";
|
|
92
|
-
};
|
|
93
|
-
readonly l2CrossDomainMessenger: {
|
|
94
|
-
readonly address: "0x4200000000000000000000000000000000000007";
|
|
95
|
-
};
|
|
96
|
-
readonly l2Erc721Bridge: {
|
|
97
|
-
readonly address: "0x4200000000000000000000000000000000000014";
|
|
98
|
-
};
|
|
99
|
-
readonly l2StandardBridge: {
|
|
100
|
-
readonly address: "0x4200000000000000000000000000000000000010";
|
|
101
|
-
};
|
|
102
|
-
readonly l2ToL1MessagePasser: {
|
|
103
|
-
readonly address: "0x4200000000000000000000000000000000000016";
|
|
104
|
-
};
|
|
105
|
-
};
|
|
106
|
-
ensTlds?: readonly string[] | undefined;
|
|
107
|
-
id: 84532;
|
|
108
|
-
name: "Base Sepolia";
|
|
109
|
-
nativeCurrency: {
|
|
110
|
-
readonly name: "Sepolia Ether";
|
|
111
|
-
readonly symbol: "ETH";
|
|
112
|
-
readonly decimals: 18;
|
|
113
|
-
};
|
|
114
|
-
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
115
|
-
rpcUrls: {
|
|
116
|
-
readonly default: {
|
|
117
|
-
readonly http: readonly ["https://sepolia.base.org"];
|
|
118
|
-
};
|
|
119
|
-
};
|
|
120
|
-
sourceId: 11155111;
|
|
121
|
-
testnet: true;
|
|
122
|
-
custom?: Record<string, unknown> | undefined;
|
|
123
|
-
extendSchema?: Record<string, unknown> | undefined;
|
|
124
|
-
fees?: viem0.ChainFees<undefined> | undefined;
|
|
125
|
-
formatters: {
|
|
126
|
-
readonly block: {
|
|
127
|
-
exclude: [] | undefined;
|
|
128
|
-
format: (args: viem_chains0.OpStackRpcBlock, action?: string | undefined) => {
|
|
129
|
-
baseFeePerGas: bigint | null;
|
|
130
|
-
blobGasUsed: bigint;
|
|
131
|
-
difficulty: bigint;
|
|
132
|
-
excessBlobGas: bigint;
|
|
133
|
-
extraData: viem0.Hex;
|
|
134
|
-
gasLimit: bigint;
|
|
135
|
-
gasUsed: bigint;
|
|
136
|
-
hash: `0x${string}` | null;
|
|
137
|
-
logsBloom: `0x${string}` | null;
|
|
138
|
-
miner: abitype0.Address;
|
|
139
|
-
mixHash: viem0.Hash;
|
|
140
|
-
nonce: `0x${string}` | null;
|
|
141
|
-
number: bigint | null;
|
|
142
|
-
parentBeaconBlockRoot?: `0x${string}` | undefined;
|
|
143
|
-
parentHash: viem0.Hash;
|
|
144
|
-
receiptsRoot: viem0.Hex;
|
|
145
|
-
sealFields: viem0.Hex[];
|
|
146
|
-
sha3Uncles: viem0.Hash;
|
|
147
|
-
size: bigint;
|
|
148
|
-
stateRoot: viem0.Hash;
|
|
149
|
-
timestamp: bigint;
|
|
150
|
-
totalDifficulty: bigint | null;
|
|
151
|
-
transactions: `0x${string}`[] | viem_chains0.OpStackTransaction<boolean>[];
|
|
152
|
-
transactionsRoot: viem0.Hash;
|
|
153
|
-
uncles: viem0.Hash[];
|
|
154
|
-
withdrawals?: viem0.Withdrawal[] | undefined | undefined;
|
|
155
|
-
withdrawalsRoot?: `0x${string}` | undefined;
|
|
156
|
-
} & {};
|
|
157
|
-
type: "block";
|
|
158
|
-
};
|
|
159
|
-
readonly transaction: {
|
|
160
|
-
exclude: [] | undefined;
|
|
161
|
-
format: (args: viem_chains0.OpStackRpcTransaction, action?: string | undefined) => ({
|
|
162
|
-
blockHash: `0x${string}` | null;
|
|
163
|
-
blockNumber: bigint | null;
|
|
164
|
-
from: abitype0.Address;
|
|
165
|
-
gas: bigint;
|
|
166
|
-
hash: viem0.Hash;
|
|
167
|
-
input: viem0.Hex;
|
|
168
|
-
nonce: number;
|
|
169
|
-
r: viem0.Hex;
|
|
170
|
-
s: viem0.Hex;
|
|
171
|
-
to: abitype0.Address | null;
|
|
172
|
-
transactionIndex: number | null;
|
|
173
|
-
typeHex: viem0.Hex | null;
|
|
174
|
-
v: bigint;
|
|
175
|
-
value: bigint;
|
|
176
|
-
yParity: number;
|
|
177
|
-
gasPrice?: undefined | undefined;
|
|
178
|
-
maxFeePerBlobGas?: undefined | undefined;
|
|
179
|
-
maxFeePerGas: bigint;
|
|
180
|
-
maxPriorityFeePerGas: bigint;
|
|
181
|
-
isSystemTx?: boolean;
|
|
182
|
-
mint?: bigint | undefined | undefined;
|
|
183
|
-
sourceHash: viem0.Hex;
|
|
184
|
-
type: "deposit";
|
|
185
|
-
} | {
|
|
186
|
-
r: viem0.Hex;
|
|
187
|
-
s: viem0.Hex;
|
|
188
|
-
v: bigint;
|
|
189
|
-
to: abitype0.Address | null;
|
|
190
|
-
from: abitype0.Address;
|
|
191
|
-
gas: bigint;
|
|
192
|
-
nonce: number;
|
|
193
|
-
value: bigint;
|
|
194
|
-
blockHash: `0x${string}` | null;
|
|
195
|
-
blockNumber: bigint | null;
|
|
196
|
-
hash: viem0.Hash;
|
|
197
|
-
input: viem0.Hex;
|
|
198
|
-
transactionIndex: number | null;
|
|
199
|
-
typeHex: viem0.Hex | null;
|
|
200
|
-
accessList?: undefined | undefined;
|
|
201
|
-
authorizationList?: undefined | undefined;
|
|
202
|
-
blobVersionedHashes?: undefined | undefined;
|
|
203
|
-
chainId?: number | undefined;
|
|
204
|
-
yParity?: undefined | undefined;
|
|
205
|
-
type: "legacy";
|
|
206
|
-
gasPrice: bigint;
|
|
207
|
-
maxFeePerBlobGas?: undefined | undefined;
|
|
208
|
-
maxFeePerGas?: undefined | undefined;
|
|
209
|
-
maxPriorityFeePerGas?: undefined | undefined;
|
|
210
|
-
isSystemTx?: undefined | undefined;
|
|
211
|
-
mint?: undefined | undefined;
|
|
212
|
-
sourceHash?: undefined | undefined;
|
|
213
|
-
} | {
|
|
214
|
-
blockHash: `0x${string}` | null;
|
|
215
|
-
blockNumber: bigint | null;
|
|
216
|
-
from: abitype0.Address;
|
|
217
|
-
gas: bigint;
|
|
218
|
-
hash: viem0.Hash;
|
|
219
|
-
input: viem0.Hex;
|
|
220
|
-
nonce: number;
|
|
221
|
-
r: viem0.Hex;
|
|
222
|
-
s: viem0.Hex;
|
|
223
|
-
to: abitype0.Address | null;
|
|
224
|
-
transactionIndex: number | null;
|
|
225
|
-
typeHex: viem0.Hex | null;
|
|
226
|
-
v: bigint;
|
|
227
|
-
value: bigint;
|
|
228
|
-
yParity: number;
|
|
229
|
-
accessList: viem0.AccessList;
|
|
230
|
-
authorizationList?: undefined | undefined;
|
|
231
|
-
blobVersionedHashes?: undefined | undefined;
|
|
232
|
-
chainId: number;
|
|
233
|
-
type: "eip2930";
|
|
234
|
-
gasPrice: bigint;
|
|
235
|
-
maxFeePerBlobGas?: undefined | undefined;
|
|
236
|
-
maxFeePerGas?: undefined | undefined;
|
|
237
|
-
maxPriorityFeePerGas?: undefined | undefined;
|
|
238
|
-
isSystemTx?: undefined | undefined;
|
|
239
|
-
mint?: undefined | undefined;
|
|
240
|
-
sourceHash?: undefined | undefined;
|
|
241
|
-
} | {
|
|
242
|
-
blockHash: `0x${string}` | null;
|
|
243
|
-
blockNumber: bigint | null;
|
|
244
|
-
from: abitype0.Address;
|
|
245
|
-
gas: bigint;
|
|
246
|
-
hash: viem0.Hash;
|
|
247
|
-
input: viem0.Hex;
|
|
248
|
-
nonce: number;
|
|
249
|
-
r: viem0.Hex;
|
|
250
|
-
s: viem0.Hex;
|
|
251
|
-
to: abitype0.Address | null;
|
|
252
|
-
transactionIndex: number | null;
|
|
253
|
-
typeHex: viem0.Hex | null;
|
|
254
|
-
v: bigint;
|
|
255
|
-
value: bigint;
|
|
256
|
-
yParity: number;
|
|
257
|
-
accessList: viem0.AccessList;
|
|
258
|
-
authorizationList?: undefined | undefined;
|
|
259
|
-
blobVersionedHashes?: undefined | undefined;
|
|
260
|
-
chainId: number;
|
|
261
|
-
type: "eip1559";
|
|
262
|
-
gasPrice?: undefined | undefined;
|
|
263
|
-
maxFeePerBlobGas?: undefined | undefined;
|
|
264
|
-
maxFeePerGas: bigint;
|
|
265
|
-
maxPriorityFeePerGas: bigint;
|
|
266
|
-
isSystemTx?: undefined | undefined;
|
|
267
|
-
mint?: undefined | undefined;
|
|
268
|
-
sourceHash?: undefined | undefined;
|
|
269
|
-
} | {
|
|
270
|
-
blockHash: `0x${string}` | null;
|
|
271
|
-
blockNumber: bigint | null;
|
|
272
|
-
from: abitype0.Address;
|
|
273
|
-
gas: bigint;
|
|
274
|
-
hash: viem0.Hash;
|
|
275
|
-
input: viem0.Hex;
|
|
276
|
-
nonce: number;
|
|
277
|
-
r: viem0.Hex;
|
|
278
|
-
s: viem0.Hex;
|
|
279
|
-
to: abitype0.Address | null;
|
|
280
|
-
transactionIndex: number | null;
|
|
281
|
-
typeHex: viem0.Hex | null;
|
|
282
|
-
v: bigint;
|
|
283
|
-
value: bigint;
|
|
284
|
-
yParity: number;
|
|
285
|
-
accessList: viem0.AccessList;
|
|
286
|
-
authorizationList?: undefined | undefined;
|
|
287
|
-
blobVersionedHashes: readonly viem0.Hex[];
|
|
288
|
-
chainId: number;
|
|
289
|
-
type: "eip4844";
|
|
290
|
-
gasPrice?: undefined | undefined;
|
|
291
|
-
maxFeePerBlobGas: bigint;
|
|
292
|
-
maxFeePerGas: bigint;
|
|
293
|
-
maxPriorityFeePerGas: bigint;
|
|
294
|
-
isSystemTx?: undefined | undefined;
|
|
295
|
-
mint?: undefined | undefined;
|
|
296
|
-
sourceHash?: undefined | undefined;
|
|
297
|
-
} | {
|
|
298
|
-
blockHash: `0x${string}` | null;
|
|
299
|
-
blockNumber: bigint | null;
|
|
300
|
-
from: abitype0.Address;
|
|
301
|
-
gas: bigint;
|
|
302
|
-
hash: viem0.Hash;
|
|
303
|
-
input: viem0.Hex;
|
|
304
|
-
nonce: number;
|
|
305
|
-
r: viem0.Hex;
|
|
306
|
-
s: viem0.Hex;
|
|
307
|
-
to: abitype0.Address | null;
|
|
308
|
-
transactionIndex: number | null;
|
|
309
|
-
typeHex: viem0.Hex | null;
|
|
310
|
-
v: bigint;
|
|
311
|
-
value: bigint;
|
|
312
|
-
yParity: number;
|
|
313
|
-
accessList: viem0.AccessList;
|
|
314
|
-
authorizationList: viem0.SignedAuthorizationList;
|
|
315
|
-
blobVersionedHashes?: undefined | undefined;
|
|
316
|
-
chainId: number;
|
|
317
|
-
type: "eip7702";
|
|
318
|
-
gasPrice?: undefined | undefined;
|
|
319
|
-
maxFeePerBlobGas?: undefined | undefined;
|
|
320
|
-
maxFeePerGas: bigint;
|
|
321
|
-
maxPriorityFeePerGas: bigint;
|
|
322
|
-
isSystemTx?: undefined | undefined;
|
|
323
|
-
mint?: undefined | undefined;
|
|
324
|
-
sourceHash?: undefined | undefined;
|
|
325
|
-
}) & {};
|
|
326
|
-
type: "transaction";
|
|
327
|
-
};
|
|
328
|
-
readonly transactionReceipt: {
|
|
329
|
-
exclude: [] | undefined;
|
|
330
|
-
format: (args: viem_chains0.OpStackRpcTransactionReceipt, action?: string | undefined) => {
|
|
331
|
-
blobGasPrice?: bigint | undefined;
|
|
332
|
-
blobGasUsed?: bigint | undefined;
|
|
333
|
-
blockHash: viem0.Hash;
|
|
334
|
-
blockNumber: bigint;
|
|
335
|
-
blockTimestamp?: bigint | undefined;
|
|
336
|
-
contractAddress: abitype0.Address | null | undefined;
|
|
337
|
-
cumulativeGasUsed: bigint;
|
|
338
|
-
effectiveGasPrice: bigint;
|
|
339
|
-
from: abitype0.Address;
|
|
340
|
-
gasUsed: bigint;
|
|
341
|
-
logs: viem0.Log<bigint, number, false>[];
|
|
342
|
-
logsBloom: viem0.Hex;
|
|
343
|
-
root?: `0x${string}` | undefined;
|
|
344
|
-
status: "success" | "reverted";
|
|
345
|
-
to: abitype0.Address | null;
|
|
346
|
-
transactionHash: viem0.Hash;
|
|
347
|
-
transactionIndex: number;
|
|
348
|
-
type: viem0.TransactionType;
|
|
349
|
-
l1GasPrice: bigint | null;
|
|
350
|
-
l1GasUsed: bigint | null;
|
|
351
|
-
l1Fee: bigint | null;
|
|
352
|
-
l1FeeScalar: number | null;
|
|
353
|
-
} & {};
|
|
354
|
-
type: "transactionReceipt";
|
|
355
|
-
};
|
|
356
|
-
};
|
|
357
|
-
prepareTransactionRequest?: ((args: viem0.PrepareTransactionRequestParameters, options: {
|
|
358
|
-
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
359
|
-
}) => Promise<viem0.PrepareTransactionRequestParameters>) | [fn: ((args: viem0.PrepareTransactionRequestParameters, options: {
|
|
360
|
-
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
361
|
-
}) => Promise<viem0.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
362
|
-
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
363
|
-
}] | undefined;
|
|
364
|
-
serializers: {
|
|
365
|
-
readonly transaction: typeof viem_chains0.serializeTransactionOpStack;
|
|
366
|
-
};
|
|
367
|
-
verifyHash?: ((client: viem0.Client, parameters: viem0.VerifyHashActionParameters) => Promise<viem0.VerifyHashActionReturnType>) | undefined;
|
|
368
|
-
readonly network: "base-sepolia";
|
|
47
|
+
serializers?: viem105.ChainSerializers<undefined, viem105.TransactionSerializable> | undefined;
|
|
48
|
+
verifyHash?: ((client: viem105.Client, parameters: viem105.VerifyHashActionParameters) => Promise<viem105.VerifyHashActionReturnType>) | undefined;
|
|
369
49
|
};
|
|
370
50
|
declare const handleCancel: (value: unknown) => void;
|
|
371
51
|
declare const selectChain: () => Promise<{
|
|
@@ -401,335 +81,17 @@ declare const selectChain: () => Promise<{
|
|
|
401
81
|
testnet: true;
|
|
402
82
|
custom?: Record<string, unknown> | undefined;
|
|
403
83
|
extendSchema?: Record<string, unknown> | undefined;
|
|
404
|
-
fees?:
|
|
84
|
+
fees?: viem105.ChainFees<undefined> | undefined;
|
|
405
85
|
formatters?: undefined;
|
|
406
|
-
prepareTransactionRequest?: ((args:
|
|
86
|
+
prepareTransactionRequest?: ((args: viem105.PrepareTransactionRequestParameters, options: {
|
|
407
87
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
408
|
-
}) => Promise<
|
|
88
|
+
}) => Promise<viem105.PrepareTransactionRequestParameters>) | [fn: ((args: viem105.PrepareTransactionRequestParameters, options: {
|
|
409
89
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
410
|
-
}) => Promise<
|
|
90
|
+
}) => Promise<viem105.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
411
91
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
412
92
|
}] | undefined;
|
|
413
|
-
serializers?:
|
|
414
|
-
verifyHash?: ((client:
|
|
415
|
-
} | {
|
|
416
|
-
blockExplorers: {
|
|
417
|
-
readonly default: {
|
|
418
|
-
readonly name: "Basescan";
|
|
419
|
-
readonly url: "https://sepolia.basescan.org";
|
|
420
|
-
readonly apiUrl: "https://api-sepolia.basescan.org/api";
|
|
421
|
-
};
|
|
422
|
-
};
|
|
423
|
-
blockTime: 2000;
|
|
424
|
-
contracts: {
|
|
425
|
-
readonly disputeGameFactory: {
|
|
426
|
-
readonly 11155111: {
|
|
427
|
-
readonly address: "0xd6E6dBf4F7EA0ac412fD8b65ED297e64BB7a06E1";
|
|
428
|
-
};
|
|
429
|
-
};
|
|
430
|
-
readonly l2OutputOracle: {
|
|
431
|
-
readonly 11155111: {
|
|
432
|
-
readonly address: "0x84457ca9D0163FbC4bbfe4Dfbb20ba46e48DF254";
|
|
433
|
-
};
|
|
434
|
-
};
|
|
435
|
-
readonly portal: {
|
|
436
|
-
readonly 11155111: {
|
|
437
|
-
readonly address: "0x49f53e41452c74589e85ca1677426ba426459e85";
|
|
438
|
-
readonly blockCreated: 4446677;
|
|
439
|
-
};
|
|
440
|
-
};
|
|
441
|
-
readonly l1StandardBridge: {
|
|
442
|
-
readonly 11155111: {
|
|
443
|
-
readonly address: "0xfd0Bf71F60660E2f608ed56e1659C450eB113120";
|
|
444
|
-
readonly blockCreated: 4446677;
|
|
445
|
-
};
|
|
446
|
-
};
|
|
447
|
-
readonly multicall3: {
|
|
448
|
-
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
449
|
-
readonly blockCreated: 1059647;
|
|
450
|
-
};
|
|
451
|
-
readonly gasPriceOracle: {
|
|
452
|
-
readonly address: "0x420000000000000000000000000000000000000F";
|
|
453
|
-
};
|
|
454
|
-
readonly l1Block: {
|
|
455
|
-
readonly address: "0x4200000000000000000000000000000000000015";
|
|
456
|
-
};
|
|
457
|
-
readonly l2CrossDomainMessenger: {
|
|
458
|
-
readonly address: "0x4200000000000000000000000000000000000007";
|
|
459
|
-
};
|
|
460
|
-
readonly l2Erc721Bridge: {
|
|
461
|
-
readonly address: "0x4200000000000000000000000000000000000014";
|
|
462
|
-
};
|
|
463
|
-
readonly l2StandardBridge: {
|
|
464
|
-
readonly address: "0x4200000000000000000000000000000000000010";
|
|
465
|
-
};
|
|
466
|
-
readonly l2ToL1MessagePasser: {
|
|
467
|
-
readonly address: "0x4200000000000000000000000000000000000016";
|
|
468
|
-
};
|
|
469
|
-
};
|
|
470
|
-
ensTlds?: readonly string[] | undefined;
|
|
471
|
-
id: 84532;
|
|
472
|
-
name: "Base Sepolia";
|
|
473
|
-
nativeCurrency: {
|
|
474
|
-
readonly name: "Sepolia Ether";
|
|
475
|
-
readonly symbol: "ETH";
|
|
476
|
-
readonly decimals: 18;
|
|
477
|
-
};
|
|
478
|
-
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
479
|
-
rpcUrls: {
|
|
480
|
-
readonly default: {
|
|
481
|
-
readonly http: readonly ["https://sepolia.base.org"];
|
|
482
|
-
};
|
|
483
|
-
};
|
|
484
|
-
sourceId: 11155111;
|
|
485
|
-
testnet: true;
|
|
486
|
-
custom?: Record<string, unknown> | undefined;
|
|
487
|
-
extendSchema?: Record<string, unknown> | undefined;
|
|
488
|
-
fees?: viem0.ChainFees<undefined> | undefined;
|
|
489
|
-
formatters: {
|
|
490
|
-
readonly block: {
|
|
491
|
-
exclude: [] | undefined;
|
|
492
|
-
format: (args: viem_chains0.OpStackRpcBlock, action?: string | undefined) => {
|
|
493
|
-
baseFeePerGas: bigint | null;
|
|
494
|
-
blobGasUsed: bigint;
|
|
495
|
-
difficulty: bigint;
|
|
496
|
-
excessBlobGas: bigint;
|
|
497
|
-
extraData: viem0.Hex;
|
|
498
|
-
gasLimit: bigint;
|
|
499
|
-
gasUsed: bigint;
|
|
500
|
-
hash: `0x${string}` | null;
|
|
501
|
-
logsBloom: `0x${string}` | null;
|
|
502
|
-
miner: abitype0.Address;
|
|
503
|
-
mixHash: viem0.Hash;
|
|
504
|
-
nonce: `0x${string}` | null;
|
|
505
|
-
number: bigint | null;
|
|
506
|
-
parentBeaconBlockRoot?: `0x${string}` | undefined;
|
|
507
|
-
parentHash: viem0.Hash;
|
|
508
|
-
receiptsRoot: viem0.Hex;
|
|
509
|
-
sealFields: viem0.Hex[];
|
|
510
|
-
sha3Uncles: viem0.Hash;
|
|
511
|
-
size: bigint;
|
|
512
|
-
stateRoot: viem0.Hash;
|
|
513
|
-
timestamp: bigint;
|
|
514
|
-
totalDifficulty: bigint | null;
|
|
515
|
-
transactions: `0x${string}`[] | viem_chains0.OpStackTransaction<boolean>[];
|
|
516
|
-
transactionsRoot: viem0.Hash;
|
|
517
|
-
uncles: viem0.Hash[];
|
|
518
|
-
withdrawals?: viem0.Withdrawal[] | undefined | undefined;
|
|
519
|
-
withdrawalsRoot?: `0x${string}` | undefined;
|
|
520
|
-
} & {};
|
|
521
|
-
type: "block";
|
|
522
|
-
};
|
|
523
|
-
readonly transaction: {
|
|
524
|
-
exclude: [] | undefined;
|
|
525
|
-
format: (args: viem_chains0.OpStackRpcTransaction, action?: string | undefined) => ({
|
|
526
|
-
blockHash: `0x${string}` | null;
|
|
527
|
-
blockNumber: bigint | null;
|
|
528
|
-
from: abitype0.Address;
|
|
529
|
-
gas: bigint;
|
|
530
|
-
hash: viem0.Hash;
|
|
531
|
-
input: viem0.Hex;
|
|
532
|
-
nonce: number;
|
|
533
|
-
r: viem0.Hex;
|
|
534
|
-
s: viem0.Hex;
|
|
535
|
-
to: abitype0.Address | null;
|
|
536
|
-
transactionIndex: number | null;
|
|
537
|
-
typeHex: viem0.Hex | null;
|
|
538
|
-
v: bigint;
|
|
539
|
-
value: bigint;
|
|
540
|
-
yParity: number;
|
|
541
|
-
gasPrice?: undefined | undefined;
|
|
542
|
-
maxFeePerBlobGas?: undefined | undefined;
|
|
543
|
-
maxFeePerGas: bigint;
|
|
544
|
-
maxPriorityFeePerGas: bigint;
|
|
545
|
-
isSystemTx?: boolean;
|
|
546
|
-
mint?: bigint | undefined | undefined;
|
|
547
|
-
sourceHash: viem0.Hex;
|
|
548
|
-
type: "deposit";
|
|
549
|
-
} | {
|
|
550
|
-
r: viem0.Hex;
|
|
551
|
-
s: viem0.Hex;
|
|
552
|
-
v: bigint;
|
|
553
|
-
to: abitype0.Address | null;
|
|
554
|
-
from: abitype0.Address;
|
|
555
|
-
gas: bigint;
|
|
556
|
-
nonce: number;
|
|
557
|
-
value: bigint;
|
|
558
|
-
blockHash: `0x${string}` | null;
|
|
559
|
-
blockNumber: bigint | null;
|
|
560
|
-
hash: viem0.Hash;
|
|
561
|
-
input: viem0.Hex;
|
|
562
|
-
transactionIndex: number | null;
|
|
563
|
-
typeHex: viem0.Hex | null;
|
|
564
|
-
accessList?: undefined | undefined;
|
|
565
|
-
authorizationList?: undefined | undefined;
|
|
566
|
-
blobVersionedHashes?: undefined | undefined;
|
|
567
|
-
chainId?: number | undefined;
|
|
568
|
-
yParity?: undefined | undefined;
|
|
569
|
-
type: "legacy";
|
|
570
|
-
gasPrice: bigint;
|
|
571
|
-
maxFeePerBlobGas?: undefined | undefined;
|
|
572
|
-
maxFeePerGas?: undefined | undefined;
|
|
573
|
-
maxPriorityFeePerGas?: undefined | undefined;
|
|
574
|
-
isSystemTx?: undefined | undefined;
|
|
575
|
-
mint?: undefined | undefined;
|
|
576
|
-
sourceHash?: undefined | undefined;
|
|
577
|
-
} | {
|
|
578
|
-
blockHash: `0x${string}` | null;
|
|
579
|
-
blockNumber: bigint | null;
|
|
580
|
-
from: abitype0.Address;
|
|
581
|
-
gas: bigint;
|
|
582
|
-
hash: viem0.Hash;
|
|
583
|
-
input: viem0.Hex;
|
|
584
|
-
nonce: number;
|
|
585
|
-
r: viem0.Hex;
|
|
586
|
-
s: viem0.Hex;
|
|
587
|
-
to: abitype0.Address | null;
|
|
588
|
-
transactionIndex: number | null;
|
|
589
|
-
typeHex: viem0.Hex | null;
|
|
590
|
-
v: bigint;
|
|
591
|
-
value: bigint;
|
|
592
|
-
yParity: number;
|
|
593
|
-
accessList: viem0.AccessList;
|
|
594
|
-
authorizationList?: undefined | undefined;
|
|
595
|
-
blobVersionedHashes?: undefined | undefined;
|
|
596
|
-
chainId: number;
|
|
597
|
-
type: "eip2930";
|
|
598
|
-
gasPrice: bigint;
|
|
599
|
-
maxFeePerBlobGas?: undefined | undefined;
|
|
600
|
-
maxFeePerGas?: undefined | undefined;
|
|
601
|
-
maxPriorityFeePerGas?: undefined | undefined;
|
|
602
|
-
isSystemTx?: undefined | undefined;
|
|
603
|
-
mint?: undefined | undefined;
|
|
604
|
-
sourceHash?: undefined | undefined;
|
|
605
|
-
} | {
|
|
606
|
-
blockHash: `0x${string}` | null;
|
|
607
|
-
blockNumber: bigint | null;
|
|
608
|
-
from: abitype0.Address;
|
|
609
|
-
gas: bigint;
|
|
610
|
-
hash: viem0.Hash;
|
|
611
|
-
input: viem0.Hex;
|
|
612
|
-
nonce: number;
|
|
613
|
-
r: viem0.Hex;
|
|
614
|
-
s: viem0.Hex;
|
|
615
|
-
to: abitype0.Address | null;
|
|
616
|
-
transactionIndex: number | null;
|
|
617
|
-
typeHex: viem0.Hex | null;
|
|
618
|
-
v: bigint;
|
|
619
|
-
value: bigint;
|
|
620
|
-
yParity: number;
|
|
621
|
-
accessList: viem0.AccessList;
|
|
622
|
-
authorizationList?: undefined | undefined;
|
|
623
|
-
blobVersionedHashes?: undefined | undefined;
|
|
624
|
-
chainId: number;
|
|
625
|
-
type: "eip1559";
|
|
626
|
-
gasPrice?: undefined | undefined;
|
|
627
|
-
maxFeePerBlobGas?: undefined | undefined;
|
|
628
|
-
maxFeePerGas: bigint;
|
|
629
|
-
maxPriorityFeePerGas: bigint;
|
|
630
|
-
isSystemTx?: undefined | undefined;
|
|
631
|
-
mint?: undefined | undefined;
|
|
632
|
-
sourceHash?: undefined | undefined;
|
|
633
|
-
} | {
|
|
634
|
-
blockHash: `0x${string}` | null;
|
|
635
|
-
blockNumber: bigint | null;
|
|
636
|
-
from: abitype0.Address;
|
|
637
|
-
gas: bigint;
|
|
638
|
-
hash: viem0.Hash;
|
|
639
|
-
input: viem0.Hex;
|
|
640
|
-
nonce: number;
|
|
641
|
-
r: viem0.Hex;
|
|
642
|
-
s: viem0.Hex;
|
|
643
|
-
to: abitype0.Address | null;
|
|
644
|
-
transactionIndex: number | null;
|
|
645
|
-
typeHex: viem0.Hex | null;
|
|
646
|
-
v: bigint;
|
|
647
|
-
value: bigint;
|
|
648
|
-
yParity: number;
|
|
649
|
-
accessList: viem0.AccessList;
|
|
650
|
-
authorizationList?: undefined | undefined;
|
|
651
|
-
blobVersionedHashes: readonly viem0.Hex[];
|
|
652
|
-
chainId: number;
|
|
653
|
-
type: "eip4844";
|
|
654
|
-
gasPrice?: undefined | undefined;
|
|
655
|
-
maxFeePerBlobGas: bigint;
|
|
656
|
-
maxFeePerGas: bigint;
|
|
657
|
-
maxPriorityFeePerGas: bigint;
|
|
658
|
-
isSystemTx?: undefined | undefined;
|
|
659
|
-
mint?: undefined | undefined;
|
|
660
|
-
sourceHash?: undefined | undefined;
|
|
661
|
-
} | {
|
|
662
|
-
blockHash: `0x${string}` | null;
|
|
663
|
-
blockNumber: bigint | null;
|
|
664
|
-
from: abitype0.Address;
|
|
665
|
-
gas: bigint;
|
|
666
|
-
hash: viem0.Hash;
|
|
667
|
-
input: viem0.Hex;
|
|
668
|
-
nonce: number;
|
|
669
|
-
r: viem0.Hex;
|
|
670
|
-
s: viem0.Hex;
|
|
671
|
-
to: abitype0.Address | null;
|
|
672
|
-
transactionIndex: number | null;
|
|
673
|
-
typeHex: viem0.Hex | null;
|
|
674
|
-
v: bigint;
|
|
675
|
-
value: bigint;
|
|
676
|
-
yParity: number;
|
|
677
|
-
accessList: viem0.AccessList;
|
|
678
|
-
authorizationList: viem0.SignedAuthorizationList;
|
|
679
|
-
blobVersionedHashes?: undefined | undefined;
|
|
680
|
-
chainId: number;
|
|
681
|
-
type: "eip7702";
|
|
682
|
-
gasPrice?: undefined | undefined;
|
|
683
|
-
maxFeePerBlobGas?: undefined | undefined;
|
|
684
|
-
maxFeePerGas: bigint;
|
|
685
|
-
maxPriorityFeePerGas: bigint;
|
|
686
|
-
isSystemTx?: undefined | undefined;
|
|
687
|
-
mint?: undefined | undefined;
|
|
688
|
-
sourceHash?: undefined | undefined;
|
|
689
|
-
}) & {};
|
|
690
|
-
type: "transaction";
|
|
691
|
-
};
|
|
692
|
-
readonly transactionReceipt: {
|
|
693
|
-
exclude: [] | undefined;
|
|
694
|
-
format: (args: viem_chains0.OpStackRpcTransactionReceipt, action?: string | undefined) => {
|
|
695
|
-
blobGasPrice?: bigint | undefined;
|
|
696
|
-
blobGasUsed?: bigint | undefined;
|
|
697
|
-
blockHash: viem0.Hash;
|
|
698
|
-
blockNumber: bigint;
|
|
699
|
-
blockTimestamp?: bigint | undefined;
|
|
700
|
-
contractAddress: abitype0.Address | null | undefined;
|
|
701
|
-
cumulativeGasUsed: bigint;
|
|
702
|
-
effectiveGasPrice: bigint;
|
|
703
|
-
from: abitype0.Address;
|
|
704
|
-
gasUsed: bigint;
|
|
705
|
-
logs: viem0.Log<bigint, number, false>[];
|
|
706
|
-
logsBloom: viem0.Hex;
|
|
707
|
-
root?: `0x${string}` | undefined;
|
|
708
|
-
status: "success" | "reverted";
|
|
709
|
-
to: abitype0.Address | null;
|
|
710
|
-
transactionHash: viem0.Hash;
|
|
711
|
-
transactionIndex: number;
|
|
712
|
-
type: viem0.TransactionType;
|
|
713
|
-
l1GasPrice: bigint | null;
|
|
714
|
-
l1GasUsed: bigint | null;
|
|
715
|
-
l1Fee: bigint | null;
|
|
716
|
-
l1FeeScalar: number | null;
|
|
717
|
-
} & {};
|
|
718
|
-
type: "transactionReceipt";
|
|
719
|
-
};
|
|
720
|
-
};
|
|
721
|
-
prepareTransactionRequest?: ((args: viem0.PrepareTransactionRequestParameters, options: {
|
|
722
|
-
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
723
|
-
}) => Promise<viem0.PrepareTransactionRequestParameters>) | [fn: ((args: viem0.PrepareTransactionRequestParameters, options: {
|
|
724
|
-
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
725
|
-
}) => Promise<viem0.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
726
|
-
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
727
|
-
}] | undefined;
|
|
728
|
-
serializers: {
|
|
729
|
-
readonly transaction: typeof viem_chains0.serializeTransactionOpStack;
|
|
730
|
-
};
|
|
731
|
-
verifyHash?: ((client: viem0.Client, parameters: viem0.VerifyHashActionParameters) => Promise<viem0.VerifyHashActionReturnType>) | undefined;
|
|
732
|
-
readonly network: "base-sepolia";
|
|
93
|
+
serializers?: viem105.ChainSerializers<undefined, viem105.TransactionSerializable> | undefined;
|
|
94
|
+
verifyHash?: ((client: viem105.Client, parameters: viem105.VerifyHashActionParameters) => Promise<viem105.VerifyHashActionReturnType>) | undefined;
|
|
733
95
|
}>;
|
|
734
96
|
declare function parseGadgetArg(raw: string): {
|
|
735
97
|
type: string;
|