@fangorn-network/sdk 2026.10.23-dev → 2026.10.27-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/lib/config.d.ts +6 -6
- package/lib/config.js +4 -4
- package/lib/engine/car.d.ts +5 -1
- package/lib/engine/car.js +2 -2
- package/lib/engine/index.d.ts +10 -2
- package/lib/engine/index.js +30 -12
- package/lib/engine/records.d.ts +15 -1
- package/lib/engine/records.js +75 -1
- package/lib/test/testbed.d.ts +69 -69
- package/package.json +1 -1
package/lib/config.d.ts
CHANGED
|
@@ -83,9 +83,9 @@ declare const ArbitrumSepoliaConfig: {
|
|
|
83
83
|
logWindow: bigint;
|
|
84
84
|
};
|
|
85
85
|
declare const BaseSepoliaConfig: {
|
|
86
|
-
dataRegistryContractAddress: "
|
|
87
|
-
appRegistryContractAddress: "
|
|
88
|
-
membershipRegistryContractAddress: "
|
|
86
|
+
dataRegistryContractAddress: "0x5f0B6f0D3ca6266b06fb55CCE5725EB4770dbeFd";
|
|
87
|
+
appRegistryContractAddress: "0x4010ee3a2182D5Ab76E0bf95C17b88bb35Ea711B";
|
|
88
|
+
membershipRegistryContractAddress: "0x99bb5101263a4Fc0E64c9887d43b87aeB3f3F32c";
|
|
89
89
|
appRegistryFromBlock: bigint;
|
|
90
90
|
chain: {
|
|
91
91
|
blockExplorers: {
|
|
@@ -418,9 +418,9 @@ declare const BaseSepoliaConfig: {
|
|
|
418
418
|
* built from.
|
|
419
419
|
*/
|
|
420
420
|
declare const FangornConfig: {
|
|
421
|
-
dataRegistryContractAddress: "
|
|
422
|
-
appRegistryContractAddress: "
|
|
423
|
-
membershipRegistryContractAddress: "
|
|
421
|
+
dataRegistryContractAddress: "0x5f0B6f0D3ca6266b06fb55CCE5725EB4770dbeFd";
|
|
422
|
+
appRegistryContractAddress: "0x4010ee3a2182D5Ab76E0bf95C17b88bb35Ea711B";
|
|
423
|
+
membershipRegistryContractAddress: "0x99bb5101263a4Fc0E64c9887d43b87aeB3f3F32c";
|
|
424
424
|
appRegistryFromBlock: bigint;
|
|
425
425
|
chain: {
|
|
426
426
|
blockExplorers: {
|
package/lib/config.js
CHANGED
|
@@ -34,10 +34,10 @@ const ArbitrumSepoliaConfig = {
|
|
|
34
34
|
logWindow: 100000n
|
|
35
35
|
};
|
|
36
36
|
const BaseSepoliaConfig = {
|
|
37
|
-
dataRegistryContractAddress: "
|
|
38
|
-
appRegistryContractAddress: "
|
|
39
|
-
membershipRegistryContractAddress: "
|
|
40
|
-
appRegistryFromBlock:
|
|
37
|
+
dataRegistryContractAddress: "0x5f0B6f0D3ca6266b06fb55CCE5725EB4770dbeFd",
|
|
38
|
+
appRegistryContractAddress: "0x4010ee3a2182D5Ab76E0bf95C17b88bb35Ea711B",
|
|
39
|
+
membershipRegistryContractAddress: "0x99bb5101263a4Fc0E64c9887d43b87aeB3f3F32c",
|
|
40
|
+
appRegistryFromBlock: 50557088n,
|
|
41
41
|
chain: baseSepolia,
|
|
42
42
|
rpcUrl: "https://base-sepolia-rpc.publicnode.com",
|
|
43
43
|
caip2: 84532,
|
package/lib/engine/car.d.ts
CHANGED
|
@@ -5,6 +5,10 @@ import { CID } from "multiformats/cid";
|
|
|
5
5
|
/** Serialize blocks into CAR v1 bytes under a single root. */
|
|
6
6
|
declare function packCar(root: CID, blocks: Iterable<Block>): Promise<Uint8Array>;
|
|
7
7
|
/** Decode CAR bytes back into blocks, each checked against its CID (the host is untrusted). */
|
|
8
|
-
declare function readCar(bytes: Uint8Array
|
|
8
|
+
declare function readCar(bytes: Uint8Array, {
|
|
9
|
+
verify
|
|
10
|
+
}?: {
|
|
11
|
+
verify?: boolean | undefined;
|
|
12
|
+
}): Promise<Block[]>;
|
|
9
13
|
//#endregion
|
|
10
14
|
export { packCar, readCar };
|
package/lib/engine/car.js
CHANGED
|
@@ -24,12 +24,12 @@ async function packCar(root, blocks) {
|
|
|
24
24
|
return buf;
|
|
25
25
|
}
|
|
26
26
|
/** Decode CAR bytes back into blocks, each checked against its CID (the host is untrusted). */
|
|
27
|
-
async function readCar(bytes) {
|
|
27
|
+
async function readCar(bytes, { verify = true } = {}) {
|
|
28
28
|
const reader = await CarReader.fromBytes(bytes);
|
|
29
29
|
const blocks = [];
|
|
30
30
|
for await (const { cid, bytes: blockBytes } of reader.blocks()) {
|
|
31
31
|
const ours = CID.parse(cid.toString());
|
|
32
|
-
assertBlockMatches(ours, blockBytes);
|
|
32
|
+
if (verify) assertBlockMatches(ours, blockBytes);
|
|
33
33
|
blocks.push({
|
|
34
34
|
cid: ours,
|
|
35
35
|
bytes: blockBytes
|
package/lib/engine/index.d.ts
CHANGED
|
@@ -31,6 +31,8 @@ interface RepoDiff {
|
|
|
31
31
|
puts: StoredRecord[];
|
|
32
32
|
/** Ids of records that are gone. */
|
|
33
33
|
deletes: string[];
|
|
34
|
+
/** CIDs of the old versions: records deleted, or replaced by a put. An index keyed by record CID drops these. */
|
|
35
|
+
superseded: string[];
|
|
34
36
|
}
|
|
35
37
|
/**
|
|
36
38
|
* Upper bound on a repo name's length. The name is stored in every commit
|
|
@@ -86,6 +88,12 @@ declare class FangornEngine {
|
|
|
86
88
|
private cache;
|
|
87
89
|
/** Commits whose CAR has already been loaded into the cache. */
|
|
88
90
|
private loadedCars;
|
|
91
|
+
/**
|
|
92
|
+
* Blocks from a loaded CAR, not yet hash-checked. A CAR holds every block its commit introduced
|
|
93
|
+
* (the first commit of a 50k-record repo: all of them), and a diff reads a handful: each block is
|
|
94
|
+
* checked when `getBlock` first hands it out, then moves to `cache`.
|
|
95
|
+
*/
|
|
96
|
+
private unverified;
|
|
89
97
|
constructor(storage: MetadataStorage, registry: Registry);
|
|
90
98
|
/**
|
|
91
99
|
* Reconstructs the CID a commit's raw digest hex refers to. The contract only
|
|
@@ -165,8 +173,8 @@ declare class FangornEngine {
|
|
|
165
173
|
* Diffing root-to-root (rather than walking commits) is deliberately robust:
|
|
166
174
|
* it yields the correct net delta even across a force-push / non-fast-forward
|
|
167
175
|
* reorg — exactly what an index builder needs (what to (re)embed, what to evict).
|
|
168
|
-
*
|
|
169
|
-
*
|
|
176
|
+
* Reads only the nodes on changed paths (`diffMst`): 10 new records in a
|
|
177
|
+
* 50k-record repo cost ~10 × depth nodes, not two 50k-key walks.
|
|
170
178
|
*/
|
|
171
179
|
repoDiff(oldRootHex: string | null, newRootHex: string): Promise<RepoDiff>;
|
|
172
180
|
/** Diff a commit against its parent. */
|
package/lib/engine/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { assertBlockMatches, assertValidRecordId, buildMst, decodeBlock, encodeBlock, lookupMst, readMst } from "./records.js";
|
|
1
|
+
import { assertBlockMatches, assertValidRecordId, buildMst, decodeBlock, diffMst, encodeBlock, lookupMst, readMst } from "./records.js";
|
|
2
2
|
import { packCar, readCar } from "./car.js";
|
|
3
3
|
import { ZERO_HEAD } from "../registry.js";
|
|
4
4
|
import { CID } from "multiformats/cid";
|
|
@@ -38,6 +38,12 @@ var FangornEngine = class {
|
|
|
38
38
|
cache = /* @__PURE__ */ new Map();
|
|
39
39
|
/** Commits whose CAR has already been loaded into the cache. */
|
|
40
40
|
loadedCars = /* @__PURE__ */ new Set();
|
|
41
|
+
/**
|
|
42
|
+
* Blocks from a loaded CAR, not yet hash-checked. A CAR holds every block its commit introduced
|
|
43
|
+
* (the first commit of a 50k-record repo: all of them), and a diff reads a handful: each block is
|
|
44
|
+
* checked when `getBlock` first hands it out, then moves to `cache`.
|
|
45
|
+
*/
|
|
46
|
+
unverified = /* @__PURE__ */ new Map();
|
|
41
47
|
constructor(storage, registry) {
|
|
42
48
|
this.storage = storage;
|
|
43
49
|
this.registry = registry;
|
|
@@ -77,7 +83,10 @@ var FangornEngine = class {
|
|
|
77
83
|
/** Pull every block of `commit`'s CAR into the local cache. */
|
|
78
84
|
async loadCar(commitCid, commit) {
|
|
79
85
|
const bytes = await this.storage.getFile(commit.car);
|
|
80
|
-
for (const block of await readCar(bytes))
|
|
86
|
+
for (const block of await readCar(bytes, { verify: false })) {
|
|
87
|
+
const key = block.cid.toString();
|
|
88
|
+
if (!this.cache.has(key)) this.unverified.set(key, block.bytes);
|
|
89
|
+
}
|
|
81
90
|
this.loadedCars.add(commitCid.toString());
|
|
82
91
|
}
|
|
83
92
|
/**
|
|
@@ -86,14 +95,24 @@ var FangornEngine = class {
|
|
|
86
95
|
*/
|
|
87
96
|
async getBlock(cid, hint) {
|
|
88
97
|
const key = cid.toString();
|
|
89
|
-
const
|
|
98
|
+
const local = () => {
|
|
99
|
+
const hit$1 = this.cache.get(key);
|
|
100
|
+
if (hit$1) return hit$1;
|
|
101
|
+
const raw = this.unverified.get(key);
|
|
102
|
+
if (!raw) return null;
|
|
103
|
+
assertBlockMatches(cid, raw);
|
|
104
|
+
this.unverified.delete(key);
|
|
105
|
+
this.cache.set(key, raw);
|
|
106
|
+
return raw;
|
|
107
|
+
};
|
|
108
|
+
const hit = local();
|
|
90
109
|
if (hit) return hit;
|
|
91
110
|
let cursor = hint;
|
|
92
111
|
while (cursor) {
|
|
93
112
|
const commit = await this.getCommit(cursor);
|
|
94
113
|
if (!this.loadedCars.has(cursor.toString())) {
|
|
95
114
|
await this.loadCar(cursor, commit);
|
|
96
|
-
const found =
|
|
115
|
+
const found = local();
|
|
97
116
|
if (found) return found;
|
|
98
117
|
}
|
|
99
118
|
cursor = commit.parent;
|
|
@@ -244,21 +263,20 @@ var FangornEngine = class {
|
|
|
244
263
|
* Diffing root-to-root (rather than walking commits) is deliberately robust:
|
|
245
264
|
* it yields the correct net delta even across a force-push / non-fast-forward
|
|
246
265
|
* reorg — exactly what an index builder needs (what to (re)embed, what to evict).
|
|
247
|
-
*
|
|
248
|
-
*
|
|
266
|
+
* Reads only the nodes on changed paths (`diffMst`): 10 new records in a
|
|
267
|
+
* 50k-record repo cost ~10 × depth nodes, not two 50k-key walks.
|
|
249
268
|
*/
|
|
250
269
|
async repoDiff(oldRootHex, newRootHex) {
|
|
251
270
|
const newCommit = newRootHex === ZERO_BYTES32 ? null : this.hexToRootCid(newRootHex);
|
|
252
271
|
const oldCommit = oldRootHex && oldRootHex !== ZERO_BYTES32 ? this.hexToRootCid(oldRootHex) : null;
|
|
253
|
-
const
|
|
254
|
-
const
|
|
272
|
+
const root = async (c) => c ? (await this.getCommit(c)).root : null;
|
|
273
|
+
const diff = await diffMst(await root(oldCommit), await root(newCommit), (cid) => this.getBlock(cid, oldCommit), (cid) => this.getBlock(cid, newCommit));
|
|
255
274
|
const puts = [];
|
|
256
|
-
if (newCommit)
|
|
257
|
-
for (const [id, cid] of after) if (before.get(id)?.toString() !== cid.toString()) puts.push(await this.decodeRecord(id, cid, newCommit));
|
|
258
|
-
}
|
|
275
|
+
if (newCommit) for (const [id, cid] of diff.puts) puts.push(await this.decodeRecord(id, cid, newCommit));
|
|
259
276
|
return {
|
|
260
277
|
puts,
|
|
261
|
-
deletes:
|
|
278
|
+
deletes: diff.deletes,
|
|
279
|
+
superseded: [...diff.before.values()].map(String)
|
|
262
280
|
};
|
|
263
281
|
}
|
|
264
282
|
/** Diff a commit against its parent. */
|
package/lib/engine/records.d.ts
CHANGED
|
@@ -99,6 +99,20 @@ declare function readMst(root: CID, getBlock: (cid: CID) => Promise<Uint8Array>)
|
|
|
99
99
|
state: Map<string, CID>;
|
|
100
100
|
nodeCids: Set<string>;
|
|
101
101
|
}>;
|
|
102
|
+
/**
|
|
103
|
+
* What changed from one tree to another: `puts` (new keys, and keys with a new value) and `deletes`
|
|
104
|
+
* (keys gone), each with its old value in `before`. Both trees are read as in-order streams of entries
|
|
105
|
+
* and unopened subtrees; a subtree with the same CID at the head of both streams holds the same keys
|
|
106
|
+
* and values, so it is dropped unread. Only nodes on changed paths are fetched: ~changes × depth,
|
|
107
|
+
* not the size of either tree.
|
|
108
|
+
* ponytail: unlike readMst, does not prove either tree canonical (that needs every key). Blocks are
|
|
109
|
+
* still hash-checked by `getBlock`; a publisher's malformed tree can only misreport its own records.
|
|
110
|
+
*/
|
|
111
|
+
declare function diffMst(oldRoot: CID | null, newRoot: CID | null, getOld: (cid: CID) => Promise<Uint8Array>, getNew: (cid: CID) => Promise<Uint8Array>): Promise<{
|
|
112
|
+
puts: Map<string, CID>;
|
|
113
|
+
deletes: string[];
|
|
114
|
+
before: Map<string, CID>;
|
|
115
|
+
}>;
|
|
102
116
|
/**
|
|
103
117
|
* The record CID stored under `key`, or null if absent — one node per level.
|
|
104
118
|
* ponytail: trusts node ordering on the path, so a malformed tree can hide a
|
|
@@ -107,4 +121,4 @@ declare function readMst(root: CID, getBlock: (cid: CID) => Promise<Uint8Array>)
|
|
|
107
121
|
*/
|
|
108
122
|
declare function lookupMst(root: CID, key: string, getBlock: (cid: CID) => Promise<Uint8Array>): Promise<CID | null>;
|
|
109
123
|
//#endregion
|
|
110
|
-
export { Block, CommitBlock, MAX_RECORD_ID_LENGTH, MST_BITS, MstEntry, MstNode, RecordBlock, Ref, assertBlockMatches, assertValidRecordId, buildMst, decodeBlock, encodeBlock, keyLevel, lookupMst, readMst };
|
|
124
|
+
export { Block, CommitBlock, MAX_RECORD_ID_LENGTH, MST_BITS, MstEntry, MstNode, RecordBlock, Ref, assertBlockMatches, assertValidRecordId, buildMst, decodeBlock, diffMst, encodeBlock, keyLevel, lookupMst, readMst };
|
package/lib/engine/records.js
CHANGED
|
@@ -141,6 +141,80 @@ async function readMst(root, getBlock) {
|
|
|
141
141
|
};
|
|
142
142
|
}
|
|
143
143
|
/**
|
|
144
|
+
* What changed from one tree to another: `puts` (new keys, and keys with a new value) and `deletes`
|
|
145
|
+
* (keys gone), each with its old value in `before`. Both trees are read as in-order streams of entries
|
|
146
|
+
* and unopened subtrees; a subtree with the same CID at the head of both streams holds the same keys
|
|
147
|
+
* and values, so it is dropped unread. Only nodes on changed paths are fetched: ~changes × depth,
|
|
148
|
+
* not the size of either tree.
|
|
149
|
+
* ponytail: unlike readMst, does not prove either tree canonical (that needs every key). Blocks are
|
|
150
|
+
* still hash-checked by `getBlock`; a publisher's malformed tree can only misreport its own records.
|
|
151
|
+
*/
|
|
152
|
+
async function diffMst(oldRoot, newRoot, getOld, getNew) {
|
|
153
|
+
const a = oldRoot ? [{
|
|
154
|
+
sub: oldRoot,
|
|
155
|
+
level: Infinity
|
|
156
|
+
}] : [];
|
|
157
|
+
const b = newRoot ? [{
|
|
158
|
+
sub: newRoot,
|
|
159
|
+
level: Infinity
|
|
160
|
+
}] : [];
|
|
161
|
+
const open = async (s, get) => {
|
|
162
|
+
const { sub } = s.pop();
|
|
163
|
+
const node = decodeBlock(await get(sub));
|
|
164
|
+
const items = node.left ? [{
|
|
165
|
+
sub: node.left,
|
|
166
|
+
level: node.level - 1
|
|
167
|
+
}] : [];
|
|
168
|
+
for (const e of node.entries) {
|
|
169
|
+
items.push({
|
|
170
|
+
key: e.key,
|
|
171
|
+
value: e.value
|
|
172
|
+
});
|
|
173
|
+
if (e.right) items.push({
|
|
174
|
+
sub: e.right,
|
|
175
|
+
level: node.level - 1
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
s.push(...items.reverse());
|
|
179
|
+
};
|
|
180
|
+
const puts = /* @__PURE__ */ new Map(), before = /* @__PURE__ */ new Map(), deletes = [];
|
|
181
|
+
for (let steps = 0; a.length || b.length; steps++) {
|
|
182
|
+
if (steps > 1e8) throw new Error("MST diff did not terminate");
|
|
183
|
+
const x = a.at(-1), y = b.at(-1);
|
|
184
|
+
if (x && y && "sub" in x && "sub" in y) if (x.sub.equals(y.sub)) {
|
|
185
|
+
a.pop();
|
|
186
|
+
b.pop();
|
|
187
|
+
} else if (x.level > y.level) await open(a, getOld);
|
|
188
|
+
else if (y.level > x.level) await open(b, getNew);
|
|
189
|
+
else {
|
|
190
|
+
await open(a, getOld);
|
|
191
|
+
await open(b, getNew);
|
|
192
|
+
}
|
|
193
|
+
else if (x && "sub" in x) await open(a, getOld);
|
|
194
|
+
else if (y && "sub" in y) await open(b, getNew);
|
|
195
|
+
else if (x && (!y || x.key < y.key)) {
|
|
196
|
+
a.pop();
|
|
197
|
+
deletes.push(x.key);
|
|
198
|
+
before.set(x.key, x.value);
|
|
199
|
+
} else if (y && (!x || y.key < x.key)) {
|
|
200
|
+
b.pop();
|
|
201
|
+
puts.set(y.key, y.value);
|
|
202
|
+
} else if (x && y) {
|
|
203
|
+
a.pop();
|
|
204
|
+
b.pop();
|
|
205
|
+
if (!x.value.equals(y.value)) {
|
|
206
|
+
puts.set(y.key, y.value);
|
|
207
|
+
before.set(x.key, x.value);
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
return {
|
|
212
|
+
puts,
|
|
213
|
+
deletes,
|
|
214
|
+
before
|
|
215
|
+
};
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
144
218
|
* The record CID stored under `key`, or null if absent — one node per level.
|
|
145
219
|
* ponytail: trusts node ordering on the path, so a malformed tree can hide a
|
|
146
220
|
* record (never forge one: the caller checks the record's id). Run `readMst`
|
|
@@ -162,4 +236,4 @@ async function lookupMst(root, key, getBlock) {
|
|
|
162
236
|
}
|
|
163
237
|
|
|
164
238
|
//#endregion
|
|
165
|
-
export { MAX_RECORD_ID_LENGTH, MST_BITS, assertBlockMatches, assertValidRecordId, buildMst, decodeBlock, encodeBlock, keyLevel, lookupMst, readMst };
|
|
239
|
+
export { MAX_RECORD_ID_LENGTH, MST_BITS, assertBlockMatches, assertValidRecordId, buildMst, decodeBlock, diffMst, encodeBlock, keyLevel, lookupMst, readMst };
|
package/lib/test/testbed.d.ts
CHANGED
|
@@ -3786,7 +3786,7 @@ declare function chainNetwork(): Promise<{
|
|
|
3786
3786
|
authorizationList: viem130.TransactionSerializableEIP7702["authorizationList"];
|
|
3787
3787
|
} ? "eip7702" : never) | (request["type"] extends string | undefined ? Extract<request["type"], string> : never)>) ? T_25 extends "eip7702" ? viem130.TransactionRequestEIP7702 : never : never : never)>> & {
|
|
3788
3788
|
chainId?: number | undefined;
|
|
3789
|
-
}, (request["parameters"] extends readonly viem130.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "
|
|
3789
|
+
}, (request["parameters"] extends readonly viem130.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "fees" | "gas" | "nonce" | "blobVersionedHashes" | "chainId" | "type") extends infer T_26 ? T_26 extends (request["parameters"] extends readonly viem130.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "fees" | "gas" | "nonce" | "blobVersionedHashes" | "chainId" | "type") ? T_26 extends "fees" ? "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" : T_26 : never : never> & (unknown extends request["kzg"] ? {} : Pick<request, "kzg">) extends infer T ? { [K in keyof T]: (viem130.UnionRequiredBy<Extract<viem130.UnionOmit<viem130.ExtractChainFormatterParameters<viem130.DeriveChain<{
|
|
3790
3790
|
id: 84532;
|
|
3791
3791
|
blockExplorers?: {
|
|
3792
3792
|
[key: string]: {
|
|
@@ -7197,7 +7197,7 @@ declare function chainNetwork(): Promise<{
|
|
|
7197
7197
|
authorizationList: viem130.TransactionSerializableEIP7702["authorizationList"];
|
|
7198
7198
|
} ? "eip7702" : never) | (request["type"] extends string | undefined ? Extract<request["type"], string> : never)>) ? T_12 extends "eip7702" ? viem130.TransactionRequestEIP7702 : never : never : never)>> & {
|
|
7199
7199
|
chainId?: number | undefined;
|
|
7200
|
-
}, (request["parameters"] extends readonly viem130.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "
|
|
7200
|
+
}, (request["parameters"] extends readonly viem130.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "fees" | "gas" | "nonce" | "blobVersionedHashes" | "chainId" | "type") extends infer T_13 ? T_13 extends (request["parameters"] extends readonly viem130.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "fees" | "gas" | "nonce" | "blobVersionedHashes" | "chainId" | "type") ? T_13 extends "fees" ? "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" : T_13 : never : never> & (unknown extends request["kzg"] ? {} : Pick<request, "kzg">))[K] } : never>;
|
|
7201
7201
|
requestAddresses: () => Promise<viem130.RequestAddressesReturnType>;
|
|
7202
7202
|
requestPermissions: (args: viem130.RequestPermissionsParameters) => Promise<viem130.RequestPermissionsReturnType>;
|
|
7203
7203
|
sendCalls: <const calls extends readonly unknown[], chainOverride extends viem130.Chain | undefined = undefined>(parameters: viem130.SendCallsParameters<{
|
|
@@ -7313,14 +7313,14 @@ declare function chainNetwork(): Promise<{
|
|
|
7313
7313
|
serializers?: viem130.ChainSerializers<undefined, viem130.TransactionSerializable> | undefined;
|
|
7314
7314
|
verifyHash?: ((client: viem130.Client, parameters: viem130.VerifyHashActionParameters) => Promise<viem130.VerifyHashActionReturnType>) | undefined;
|
|
7315
7315
|
}, undefined, chainOverride, calls>) => Promise<{
|
|
7316
|
+
id: string;
|
|
7317
|
+
chainId: number;
|
|
7316
7318
|
atomic: boolean;
|
|
7317
7319
|
capabilities?: {
|
|
7318
7320
|
[key: string]: any;
|
|
7319
7321
|
} | {
|
|
7320
7322
|
[x: string]: any;
|
|
7321
7323
|
} | undefined;
|
|
7322
|
-
chainId: number;
|
|
7323
|
-
id: string;
|
|
7324
7324
|
receipts?: viem130.WalletCallReceipt<bigint, "success" | "reverted">[] | undefined;
|
|
7325
7325
|
version: string;
|
|
7326
7326
|
statusCode: number;
|
|
@@ -8603,6 +8603,7 @@ declare function chainNetwork(): Promise<{
|
|
|
8603
8603
|
[x: `address[${string}]`]: undefined;
|
|
8604
8604
|
[x: `bool[${string}]`]: undefined;
|
|
8605
8605
|
[x: `bytes[${string}]`]: undefined;
|
|
8606
|
+
[x: `bytes18[${string}]`]: undefined;
|
|
8606
8607
|
[x: `bytes1[${string}]`]: undefined;
|
|
8607
8608
|
[x: `bytes2[${string}]`]: undefined;
|
|
8608
8609
|
[x: `bytes3[${string}]`]: undefined;
|
|
@@ -8620,7 +8621,6 @@ declare function chainNetwork(): Promise<{
|
|
|
8620
8621
|
[x: `bytes15[${string}]`]: undefined;
|
|
8621
8622
|
[x: `bytes16[${string}]`]: undefined;
|
|
8622
8623
|
[x: `bytes17[${string}]`]: undefined;
|
|
8623
|
-
[x: `bytes18[${string}]`]: undefined;
|
|
8624
8624
|
[x: `bytes19[${string}]`]: undefined;
|
|
8625
8625
|
[x: `bytes20[${string}]`]: undefined;
|
|
8626
8626
|
[x: `bytes21[${string}]`]: undefined;
|
|
@@ -8705,6 +8705,7 @@ declare function chainNetwork(): Promise<{
|
|
|
8705
8705
|
address?: undefined;
|
|
8706
8706
|
bool?: undefined;
|
|
8707
8707
|
bytes?: undefined;
|
|
8708
|
+
bytes18?: undefined;
|
|
8708
8709
|
bytes1?: undefined;
|
|
8709
8710
|
bytes2?: undefined;
|
|
8710
8711
|
bytes3?: undefined;
|
|
@@ -8722,7 +8723,6 @@ declare function chainNetwork(): Promise<{
|
|
|
8722
8723
|
bytes15?: undefined;
|
|
8723
8724
|
bytes16?: undefined;
|
|
8724
8725
|
bytes17?: undefined;
|
|
8725
|
-
bytes18?: undefined;
|
|
8726
8726
|
bytes19?: undefined;
|
|
8727
8727
|
bytes20?: undefined;
|
|
8728
8728
|
bytes21?: undefined;
|
|
@@ -9223,23 +9223,23 @@ declare function chainNetwork(): Promise<{
|
|
|
9223
9223
|
withdrawals?: viem130.Withdrawal[] | undefined | undefined;
|
|
9224
9224
|
withdrawalsRoot?: `0x${string}` | undefined;
|
|
9225
9225
|
transactions: includeTransactions extends true ? ({
|
|
9226
|
-
type: "legacy";
|
|
9227
|
-
chainId?: number | undefined;
|
|
9228
|
-
r: Hex;
|
|
9229
|
-
s: Hex;
|
|
9230
|
-
v: bigint;
|
|
9231
9226
|
yParity?: undefined | undefined;
|
|
9232
|
-
value: bigint;
|
|
9233
9227
|
from: Address;
|
|
9234
9228
|
gas: bigint;
|
|
9235
9229
|
hash: viem130.Hash;
|
|
9236
9230
|
input: Hex;
|
|
9237
9231
|
nonce: number;
|
|
9232
|
+
r: Hex;
|
|
9233
|
+
s: Hex;
|
|
9238
9234
|
to: Address | null;
|
|
9239
9235
|
typeHex: Hex | null;
|
|
9236
|
+
v: bigint;
|
|
9237
|
+
value: bigint;
|
|
9240
9238
|
accessList?: undefined | undefined;
|
|
9241
9239
|
authorizationList?: undefined | undefined;
|
|
9242
9240
|
blobVersionedHashes?: undefined | undefined;
|
|
9241
|
+
chainId?: number | undefined;
|
|
9242
|
+
type: "legacy";
|
|
9243
9243
|
gasPrice: bigint;
|
|
9244
9244
|
maxFeePerBlobGas?: undefined | undefined;
|
|
9245
9245
|
maxFeePerGas?: undefined | undefined;
|
|
@@ -9248,23 +9248,23 @@ declare function chainNetwork(): Promise<{
|
|
|
9248
9248
|
blockNumber: (blockTag extends "pending" ? true : false) extends infer T_1 ? T_1 extends (blockTag extends "pending" ? true : false) ? T_1 extends true ? null : bigint : never : never;
|
|
9249
9249
|
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_2 ? T_2 extends (blockTag extends "pending" ? true : false) ? T_2 extends true ? null : number : never : never;
|
|
9250
9250
|
} | {
|
|
9251
|
-
type: "eip2930";
|
|
9252
|
-
chainId: number;
|
|
9253
|
-
r: Hex;
|
|
9254
|
-
s: Hex;
|
|
9255
|
-
v: bigint;
|
|
9256
9251
|
yParity: number;
|
|
9257
|
-
value: bigint;
|
|
9258
9252
|
from: Address;
|
|
9259
9253
|
gas: bigint;
|
|
9260
9254
|
hash: viem130.Hash;
|
|
9261
9255
|
input: Hex;
|
|
9262
9256
|
nonce: number;
|
|
9257
|
+
r: Hex;
|
|
9258
|
+
s: Hex;
|
|
9263
9259
|
to: Address | null;
|
|
9264
9260
|
typeHex: Hex | null;
|
|
9261
|
+
v: bigint;
|
|
9262
|
+
value: bigint;
|
|
9265
9263
|
accessList: viem130.AccessList;
|
|
9266
9264
|
authorizationList?: undefined | undefined;
|
|
9267
9265
|
blobVersionedHashes?: undefined | undefined;
|
|
9266
|
+
chainId: number;
|
|
9267
|
+
type: "eip2930";
|
|
9268
9268
|
gasPrice: bigint;
|
|
9269
9269
|
maxFeePerBlobGas?: undefined | undefined;
|
|
9270
9270
|
maxFeePerGas?: undefined | undefined;
|
|
@@ -9273,23 +9273,23 @@ declare function chainNetwork(): Promise<{
|
|
|
9273
9273
|
blockNumber: (blockTag extends "pending" ? true : false) extends infer T_4 ? T_4 extends (blockTag extends "pending" ? true : false) ? T_4 extends true ? null : bigint : never : never;
|
|
9274
9274
|
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_5 ? T_5 extends (blockTag extends "pending" ? true : false) ? T_5 extends true ? null : number : never : never;
|
|
9275
9275
|
} | {
|
|
9276
|
-
type: "eip1559";
|
|
9277
|
-
chainId: number;
|
|
9278
|
-
r: Hex;
|
|
9279
|
-
s: Hex;
|
|
9280
|
-
v: bigint;
|
|
9281
9276
|
yParity: number;
|
|
9282
|
-
value: bigint;
|
|
9283
9277
|
from: Address;
|
|
9284
9278
|
gas: bigint;
|
|
9285
9279
|
hash: viem130.Hash;
|
|
9286
9280
|
input: Hex;
|
|
9287
9281
|
nonce: number;
|
|
9282
|
+
r: Hex;
|
|
9283
|
+
s: Hex;
|
|
9288
9284
|
to: Address | null;
|
|
9289
9285
|
typeHex: Hex | null;
|
|
9286
|
+
v: bigint;
|
|
9287
|
+
value: bigint;
|
|
9290
9288
|
accessList: viem130.AccessList;
|
|
9291
9289
|
authorizationList?: undefined | undefined;
|
|
9292
9290
|
blobVersionedHashes?: undefined | undefined;
|
|
9291
|
+
chainId: number;
|
|
9292
|
+
type: "eip1559";
|
|
9293
9293
|
gasPrice?: undefined | undefined;
|
|
9294
9294
|
maxFeePerBlobGas?: undefined | undefined;
|
|
9295
9295
|
maxFeePerGas: bigint;
|
|
@@ -9298,23 +9298,23 @@ declare function chainNetwork(): Promise<{
|
|
|
9298
9298
|
blockNumber: (blockTag extends "pending" ? true : false) extends infer T_7 ? T_7 extends (blockTag extends "pending" ? true : false) ? T_7 extends true ? null : bigint : never : never;
|
|
9299
9299
|
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_8 ? T_8 extends (blockTag extends "pending" ? true : false) ? T_8 extends true ? null : number : never : never;
|
|
9300
9300
|
} | {
|
|
9301
|
-
type: "eip4844";
|
|
9302
|
-
chainId: number;
|
|
9303
|
-
r: Hex;
|
|
9304
|
-
s: Hex;
|
|
9305
|
-
v: bigint;
|
|
9306
9301
|
yParity: number;
|
|
9307
|
-
value: bigint;
|
|
9308
9302
|
from: Address;
|
|
9309
9303
|
gas: bigint;
|
|
9310
9304
|
hash: viem130.Hash;
|
|
9311
9305
|
input: Hex;
|
|
9312
9306
|
nonce: number;
|
|
9307
|
+
r: Hex;
|
|
9308
|
+
s: Hex;
|
|
9313
9309
|
to: Address | null;
|
|
9314
9310
|
typeHex: Hex | null;
|
|
9311
|
+
v: bigint;
|
|
9312
|
+
value: bigint;
|
|
9315
9313
|
accessList: viem130.AccessList;
|
|
9316
9314
|
authorizationList?: undefined | undefined;
|
|
9317
9315
|
blobVersionedHashes: readonly Hex[];
|
|
9316
|
+
chainId: number;
|
|
9317
|
+
type: "eip4844";
|
|
9318
9318
|
gasPrice?: undefined | undefined;
|
|
9319
9319
|
maxFeePerBlobGas: bigint;
|
|
9320
9320
|
maxFeePerGas: bigint;
|
|
@@ -9323,23 +9323,23 @@ declare function chainNetwork(): Promise<{
|
|
|
9323
9323
|
blockNumber: (blockTag extends "pending" ? true : false) extends infer T_10 ? T_10 extends (blockTag extends "pending" ? true : false) ? T_10 extends true ? null : bigint : never : never;
|
|
9324
9324
|
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_11 ? T_11 extends (blockTag extends "pending" ? true : false) ? T_11 extends true ? null : number : never : never;
|
|
9325
9325
|
} | {
|
|
9326
|
-
type: "eip7702";
|
|
9327
|
-
chainId: number;
|
|
9328
|
-
r: Hex;
|
|
9329
|
-
s: Hex;
|
|
9330
|
-
v: bigint;
|
|
9331
9326
|
yParity: number;
|
|
9332
|
-
value: bigint;
|
|
9333
9327
|
from: Address;
|
|
9334
9328
|
gas: bigint;
|
|
9335
9329
|
hash: viem130.Hash;
|
|
9336
9330
|
input: Hex;
|
|
9337
9331
|
nonce: number;
|
|
9332
|
+
r: Hex;
|
|
9333
|
+
s: Hex;
|
|
9338
9334
|
to: Address | null;
|
|
9339
9335
|
typeHex: Hex | null;
|
|
9336
|
+
v: bigint;
|
|
9337
|
+
value: bigint;
|
|
9340
9338
|
accessList: viem130.AccessList;
|
|
9341
9339
|
authorizationList: viem130.SignedAuthorizationList;
|
|
9342
9340
|
blobVersionedHashes?: undefined | undefined;
|
|
9341
|
+
chainId: number;
|
|
9342
|
+
type: "eip7702";
|
|
9343
9343
|
gasPrice?: undefined | undefined;
|
|
9344
9344
|
maxFeePerBlobGas?: undefined | undefined;
|
|
9345
9345
|
maxFeePerGas: bigint;
|
|
@@ -9427,23 +9427,23 @@ declare function chainNetwork(): Promise<{
|
|
|
9427
9427
|
} | undefined) => Promise<viem130.EstimateMaxPriorityFeePerGasReturnType>;
|
|
9428
9428
|
getStorageAt: (args: viem130.GetStorageAtParameters) => Promise<viem130.GetStorageAtReturnType>;
|
|
9429
9429
|
getTransaction: <blockTag extends viem130.BlockTag = "latest">(args: viem130.GetTransactionParameters<blockTag>) => Promise<{
|
|
9430
|
-
type: "legacy";
|
|
9431
|
-
chainId?: number | undefined;
|
|
9432
|
-
r: Hex;
|
|
9433
|
-
s: Hex;
|
|
9434
|
-
v: bigint;
|
|
9435
9430
|
yParity?: undefined | undefined;
|
|
9436
|
-
value: bigint;
|
|
9437
9431
|
from: Address;
|
|
9438
9432
|
gas: bigint;
|
|
9439
9433
|
hash: viem130.Hash;
|
|
9440
9434
|
input: Hex;
|
|
9441
9435
|
nonce: number;
|
|
9436
|
+
r: Hex;
|
|
9437
|
+
s: Hex;
|
|
9442
9438
|
to: Address | null;
|
|
9443
9439
|
typeHex: Hex | null;
|
|
9440
|
+
v: bigint;
|
|
9441
|
+
value: bigint;
|
|
9444
9442
|
accessList?: undefined | undefined;
|
|
9445
9443
|
authorizationList?: undefined | undefined;
|
|
9446
9444
|
blobVersionedHashes?: undefined | undefined;
|
|
9445
|
+
chainId?: number | undefined;
|
|
9446
|
+
type: "legacy";
|
|
9447
9447
|
gasPrice: bigint;
|
|
9448
9448
|
maxFeePerBlobGas?: undefined | undefined;
|
|
9449
9449
|
maxFeePerGas?: undefined | undefined;
|
|
@@ -9452,23 +9452,23 @@ declare function chainNetwork(): Promise<{
|
|
|
9452
9452
|
blockNumber: (blockTag extends "pending" ? true : false) extends infer T_1 ? T_1 extends (blockTag extends "pending" ? true : false) ? T_1 extends true ? null : bigint : never : never;
|
|
9453
9453
|
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_2 ? T_2 extends (blockTag extends "pending" ? true : false) ? T_2 extends true ? null : number : never : never;
|
|
9454
9454
|
} | {
|
|
9455
|
-
type: "eip2930";
|
|
9456
|
-
chainId: number;
|
|
9457
|
-
r: Hex;
|
|
9458
|
-
s: Hex;
|
|
9459
|
-
v: bigint;
|
|
9460
9455
|
yParity: number;
|
|
9461
|
-
value: bigint;
|
|
9462
9456
|
from: Address;
|
|
9463
9457
|
gas: bigint;
|
|
9464
9458
|
hash: viem130.Hash;
|
|
9465
9459
|
input: Hex;
|
|
9466
9460
|
nonce: number;
|
|
9461
|
+
r: Hex;
|
|
9462
|
+
s: Hex;
|
|
9467
9463
|
to: Address | null;
|
|
9468
9464
|
typeHex: Hex | null;
|
|
9465
|
+
v: bigint;
|
|
9466
|
+
value: bigint;
|
|
9469
9467
|
accessList: viem130.AccessList;
|
|
9470
9468
|
authorizationList?: undefined | undefined;
|
|
9471
9469
|
blobVersionedHashes?: undefined | undefined;
|
|
9470
|
+
chainId: number;
|
|
9471
|
+
type: "eip2930";
|
|
9472
9472
|
gasPrice: bigint;
|
|
9473
9473
|
maxFeePerBlobGas?: undefined | undefined;
|
|
9474
9474
|
maxFeePerGas?: undefined | undefined;
|
|
@@ -9477,23 +9477,23 @@ declare function chainNetwork(): Promise<{
|
|
|
9477
9477
|
blockNumber: (blockTag extends "pending" ? true : false) extends infer T_4 ? T_4 extends (blockTag extends "pending" ? true : false) ? T_4 extends true ? null : bigint : never : never;
|
|
9478
9478
|
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_5 ? T_5 extends (blockTag extends "pending" ? true : false) ? T_5 extends true ? null : number : never : never;
|
|
9479
9479
|
} | {
|
|
9480
|
-
type: "eip1559";
|
|
9481
|
-
chainId: number;
|
|
9482
|
-
r: Hex;
|
|
9483
|
-
s: Hex;
|
|
9484
|
-
v: bigint;
|
|
9485
9480
|
yParity: number;
|
|
9486
|
-
value: bigint;
|
|
9487
9481
|
from: Address;
|
|
9488
9482
|
gas: bigint;
|
|
9489
9483
|
hash: viem130.Hash;
|
|
9490
9484
|
input: Hex;
|
|
9491
9485
|
nonce: number;
|
|
9486
|
+
r: Hex;
|
|
9487
|
+
s: Hex;
|
|
9492
9488
|
to: Address | null;
|
|
9493
9489
|
typeHex: Hex | null;
|
|
9490
|
+
v: bigint;
|
|
9491
|
+
value: bigint;
|
|
9494
9492
|
accessList: viem130.AccessList;
|
|
9495
9493
|
authorizationList?: undefined | undefined;
|
|
9496
9494
|
blobVersionedHashes?: undefined | undefined;
|
|
9495
|
+
chainId: number;
|
|
9496
|
+
type: "eip1559";
|
|
9497
9497
|
gasPrice?: undefined | undefined;
|
|
9498
9498
|
maxFeePerBlobGas?: undefined | undefined;
|
|
9499
9499
|
maxFeePerGas: bigint;
|
|
@@ -9502,23 +9502,23 @@ declare function chainNetwork(): Promise<{
|
|
|
9502
9502
|
blockNumber: (blockTag extends "pending" ? true : false) extends infer T_7 ? T_7 extends (blockTag extends "pending" ? true : false) ? T_7 extends true ? null : bigint : never : never;
|
|
9503
9503
|
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_8 ? T_8 extends (blockTag extends "pending" ? true : false) ? T_8 extends true ? null : number : never : never;
|
|
9504
9504
|
} | {
|
|
9505
|
-
type: "eip4844";
|
|
9506
|
-
chainId: number;
|
|
9507
|
-
r: Hex;
|
|
9508
|
-
s: Hex;
|
|
9509
|
-
v: bigint;
|
|
9510
9505
|
yParity: number;
|
|
9511
|
-
value: bigint;
|
|
9512
9506
|
from: Address;
|
|
9513
9507
|
gas: bigint;
|
|
9514
9508
|
hash: viem130.Hash;
|
|
9515
9509
|
input: Hex;
|
|
9516
9510
|
nonce: number;
|
|
9511
|
+
r: Hex;
|
|
9512
|
+
s: Hex;
|
|
9517
9513
|
to: Address | null;
|
|
9518
9514
|
typeHex: Hex | null;
|
|
9515
|
+
v: bigint;
|
|
9516
|
+
value: bigint;
|
|
9519
9517
|
accessList: viem130.AccessList;
|
|
9520
9518
|
authorizationList?: undefined | undefined;
|
|
9521
9519
|
blobVersionedHashes: readonly Hex[];
|
|
9520
|
+
chainId: number;
|
|
9521
|
+
type: "eip4844";
|
|
9522
9522
|
gasPrice?: undefined | undefined;
|
|
9523
9523
|
maxFeePerBlobGas: bigint;
|
|
9524
9524
|
maxFeePerGas: bigint;
|
|
@@ -9527,23 +9527,23 @@ declare function chainNetwork(): Promise<{
|
|
|
9527
9527
|
blockNumber: (blockTag extends "pending" ? true : false) extends infer T_10 ? T_10 extends (blockTag extends "pending" ? true : false) ? T_10 extends true ? null : bigint : never : never;
|
|
9528
9528
|
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_11 ? T_11 extends (blockTag extends "pending" ? true : false) ? T_11 extends true ? null : number : never : never;
|
|
9529
9529
|
} | {
|
|
9530
|
-
type: "eip7702";
|
|
9531
|
-
chainId: number;
|
|
9532
|
-
r: Hex;
|
|
9533
|
-
s: Hex;
|
|
9534
|
-
v: bigint;
|
|
9535
9530
|
yParity: number;
|
|
9536
|
-
value: bigint;
|
|
9537
9531
|
from: Address;
|
|
9538
9532
|
gas: bigint;
|
|
9539
9533
|
hash: viem130.Hash;
|
|
9540
9534
|
input: Hex;
|
|
9541
9535
|
nonce: number;
|
|
9536
|
+
r: Hex;
|
|
9537
|
+
s: Hex;
|
|
9542
9538
|
to: Address | null;
|
|
9543
9539
|
typeHex: Hex | null;
|
|
9540
|
+
v: bigint;
|
|
9541
|
+
value: bigint;
|
|
9544
9542
|
accessList: viem130.AccessList;
|
|
9545
9543
|
authorizationList: viem130.SignedAuthorizationList;
|
|
9546
9544
|
blobVersionedHashes?: undefined | undefined;
|
|
9545
|
+
chainId: number;
|
|
9546
|
+
type: "eip7702";
|
|
9547
9547
|
gasPrice?: undefined | undefined;
|
|
9548
9548
|
maxFeePerBlobGas?: undefined | undefined;
|
|
9549
9549
|
maxFeePerGas: bigint;
|
|
@@ -13126,7 +13126,7 @@ declare function chainNetwork(): Promise<{
|
|
|
13126
13126
|
authorizationList: viem130.TransactionSerializableEIP7702["authorizationList"];
|
|
13127
13127
|
} ? "eip7702" : never) | (request["type"] extends string | undefined ? Extract<request["type"], string> : never)>) ? T_25 extends "eip7702" ? viem130.TransactionRequestEIP7702 : never : never : never)>> & {
|
|
13128
13128
|
chainId?: number | undefined;
|
|
13129
|
-
}, (request["parameters"] extends readonly viem130.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "
|
|
13129
|
+
}, (request["parameters"] extends readonly viem130.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "fees" | "gas" | "nonce" | "blobVersionedHashes" | "chainId" | "type") extends infer T_26 ? T_26 extends (request["parameters"] extends readonly viem130.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "fees" | "gas" | "nonce" | "blobVersionedHashes" | "chainId" | "type") ? T_26 extends "fees" ? "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" : T_26 : never : never> & (unknown extends request["kzg"] ? {} : Pick<request, "kzg">) extends infer T ? { [K in keyof T]: (viem130.UnionRequiredBy<Extract<viem130.UnionOmit<viem130.ExtractChainFormatterParameters<viem130.DeriveChain<{
|
|
13130
13130
|
id: 84532;
|
|
13131
13131
|
blockExplorers?: {
|
|
13132
13132
|
[key: string]: {
|
|
@@ -16537,7 +16537,7 @@ declare function chainNetwork(): Promise<{
|
|
|
16537
16537
|
authorizationList: viem130.TransactionSerializableEIP7702["authorizationList"];
|
|
16538
16538
|
} ? "eip7702" : never) | (request["type"] extends string | undefined ? Extract<request["type"], string> : never)>) ? T_12 extends "eip7702" ? viem130.TransactionRequestEIP7702 : never : never : never)>> & {
|
|
16539
16539
|
chainId?: number | undefined;
|
|
16540
|
-
}, (request["parameters"] extends readonly viem130.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "
|
|
16540
|
+
}, (request["parameters"] extends readonly viem130.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "fees" | "gas" | "nonce" | "blobVersionedHashes" | "chainId" | "type") extends infer T_13 ? T_13 extends (request["parameters"] extends readonly viem130.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "fees" | "gas" | "nonce" | "blobVersionedHashes" | "chainId" | "type") ? T_13 extends "fees" ? "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" : T_13 : never : never> & (unknown extends request["kzg"] ? {} : Pick<request, "kzg">))[K] } : never>;
|
|
16541
16541
|
readContract: <const abi extends Abi | readonly unknown[], functionName extends viem130.ContractFunctionName<abi, "pure" | "view">, const args extends viem130.ContractFunctionArgs<abi, "pure" | "view", functionName>>(args: viem130.ReadContractParameters<abi, functionName, args>) => Promise<viem130.ReadContractReturnType<abi, functionName, args>>;
|
|
16542
16542
|
sendRawTransaction: (args: viem130.SendRawTransactionParameters) => Promise<viem130.SendRawTransactionReturnType>;
|
|
16543
16543
|
sendRawTransactionSync: (args: viem130.SendRawTransactionSyncParameters) => Promise<viem130.TransactionReceipt>;
|
|
@@ -16656,8 +16656,8 @@ declare function chainNetwork(): Promise<{
|
|
|
16656
16656
|
verifySiweMessage: (args: {
|
|
16657
16657
|
blockNumber?: bigint | undefined | undefined;
|
|
16658
16658
|
blockTag?: viem130.BlockTag | undefined;
|
|
16659
|
-
address?: `0x${string}` | undefined;
|
|
16660
16659
|
nonce?: string | undefined | undefined;
|
|
16660
|
+
address?: `0x${string}` | undefined;
|
|
16661
16661
|
domain?: string | undefined | undefined;
|
|
16662
16662
|
scheme?: string | undefined | undefined;
|
|
16663
16663
|
time?: Date | undefined;
|