@fangorn-network/sdk 2026.7.13 → 2026.7.14
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 +23 -2
- package/lib/cli/cli.js +18 -11
- package/lib/cli/index.d.ts +13 -13
- package/lib/config.d.ts +93 -92
- package/lib/contracts/data-registry/abi.d.ts +207 -35
- package/lib/contracts/data-registry/index.js +4 -4
- package/lib/contracts/index.d.ts +3 -1
- package/lib/contracts/index.js +3 -1
- package/lib/contracts/settlement-registry/abi.d.ts +47 -0
- package/lib/contracts/settlement-registry/abi.js +48 -0
- package/lib/contracts/settlement-registry/index.d.ts +25 -0
- package/lib/contracts/settlement-registry/index.js +40 -0
- package/lib/crypto/aes.d.ts +1 -8
- package/lib/crypto/aes.js +2 -34
- package/lib/crypto/encryption.d.ts +112 -26
- package/lib/crypto/encryption.js +105 -21
- package/lib/engine/index.js +5 -2
- package/lib/fangorn.d.ts +3 -3
- package/lib/fangorn.js +19 -13
- package/lib/harness/index.d.ts +4 -3
- package/lib/harness/index.js +9 -3
- package/lib/index.d.ts +2 -3
- package/lib/index.js +2 -3
- package/lib/node_modules/{.pnpm/@noble_ciphers@1.3.0/node_modules/@noble → @noble}/ciphers/esm/_polyval.js +1 -1
- package/lib/node_modules/{.pnpm/@noble_ciphers@1.3.0/node_modules/@noble → @noble}/ciphers/esm/aes.js +1 -1
- package/lib/node_modules/{.pnpm/@noble_ciphers@1.3.0/node_modules/@noble → @noble}/ciphers/esm/utils.js +1 -1
- package/lib/node_modules/{.pnpm/@noble_curves@1.9.7/node_modules/@noble → @noble}/curves/esm/abstract/curve.js +1 -1
- package/lib/node_modules/{.pnpm/@noble_curves@1.9.7/node_modules/@noble → @noble}/curves/esm/abstract/edwards.js +1 -1
- package/lib/node_modules/{.pnpm/@noble_curves@1.9.7/node_modules/@noble → @noble}/curves/esm/abstract/modular.js +1 -1
- package/lib/node_modules/{.pnpm/@noble_curves@1.9.7/node_modules/@noble → @noble}/curves/esm/abstract/montgomery.js +1 -1
- package/lib/node_modules/{.pnpm/@noble_curves@1.9.7/node_modules/@noble → @noble}/curves/esm/ed25519.js +1 -1
- package/lib/node_modules/{.pnpm/@noble_curves@1.9.7/node_modules/@noble → @noble}/curves/esm/utils.js +1 -1
- package/lib/providers/storage/car.js +2 -1
- package/lib/providers/storage/pinata.js +5 -4
- package/lib/{roles/repo → repo}/index.d.ts +1 -1
- package/lib/{roles/repo → repo}/index.js +1 -1
- package/lib/test/testbed.d.ts +2 -2
- package/lib/test/testbed.js +1 -1
- package/package.json +2 -2
- package/lib/ crypto/constants.d.ts +0 -4
- package/lib/ crypto/constants.js +0 -5
- package/lib/ crypto/merkle.d.ts +0 -10
- package/lib/ crypto/merkle.js +0 -34
- package/lib/ crypto/utils.d.ts +0 -1
- package/lib/ crypto/utils.js +0 -1
- package/lib/builders/a2aCardBuilder.d.ts +0 -28
- package/lib/builders/a2aCardBuilder.js +0 -105
- package/lib/roles/index.d.ts +0 -1
- package/lib/roles/index.js +0 -1
- package/lib/test/car_smoke.d.ts +0 -1
- package/lib/test/car_smoke.js +0 -81
- package/lib/test/cleanup-embeddings-testdata.d.ts +0 -1
- package/lib/test/cleanup-embeddings-testdata.js +0 -75
- package/lib/test/index.d.ts +0 -10
- package/lib/test/index.js +0 -27
- package/lib/test/setup-embeddings-testdata.d.ts +0 -11
- package/lib/test/setup-embeddings-testdata.js +0 -155
- package/lib/utils/index.d.ts +0 -11
- package/lib/utils/index.js +0 -29
- package/lib/utils/manifest.d.ts +0 -23
- package/lib/utils/manifest.js +0 -77
package/README.md
CHANGED
|
@@ -103,7 +103,28 @@ Each commit records its parent, so history is real and walkable. By default a co
|
|
|
103
103
|
|
|
104
104
|
### Graph Builders
|
|
105
105
|
|
|
106
|
-
|
|
106
|
+
Turning your source data into vertices and edges is application logic, but the SDK ships a small **harness** for the common "a directory of files → a graph" case, exported from the package root:
|
|
107
|
+
|
|
108
|
+
```ts
|
|
109
|
+
import { buildAssetGraph, extractMarkdownLinks } from "@fangorn-network/sdk";
|
|
110
|
+
|
|
111
|
+
// One processor per file extension. Return the vertex tag/payload and the
|
|
112
|
+
// ids this file links to; buildAssetGraph wires the edges (rel: "links"),
|
|
113
|
+
// dropping self-links and links to files that don't exist.
|
|
114
|
+
const { vertices, edges } = buildAssetGraph("./docs", {
|
|
115
|
+
processors: {
|
|
116
|
+
".md": (file) => ({
|
|
117
|
+
tag: "note",
|
|
118
|
+
payload: { title: file.nameNoExt, body: file.readText() },
|
|
119
|
+
links: extractMarkdownLinks(file.readText()), // markdown links + [[wikilinks]]
|
|
120
|
+
}),
|
|
121
|
+
},
|
|
122
|
+
});
|
|
123
|
+
|
|
124
|
+
await fangorn.commit({ namespace: "rusty-anchor", message: "import docs", vertices, edges });
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
Each vertex `id` is the filename without extension. For anything that isn't "files in a folder," build the `{ vertices, edges }` arrays yourself and pass them straight to `commit` / `uploadBatch` — the harness is a convenience, not a requirement.
|
|
107
128
|
|
|
108
129
|
### Inspect
|
|
109
130
|
|
|
@@ -186,7 +207,7 @@ your initial index from `fangorn read` first, then subscribe for the deltas.
|
|
|
186
207
|
|
|
187
208
|
### Initialization
|
|
188
209
|
|
|
189
|
-
`Fangorn.create` is synchronous. Pass Pinata storage for any commit/read operation.
|
|
210
|
+
`Fangorn.create` is synchronous. Pass Pinata storage for any commit/read operation. Supply either a `privateKey` (the SDK builds the wallet client for you) or your own viem `walletClient`.
|
|
190
211
|
|
|
191
212
|
```ts
|
|
192
213
|
import { Fangorn, FangornConfig } from "@fangorn-network/sdk";
|
package/lib/cli/cli.js
CHANGED
|
@@ -4,7 +4,7 @@ import { Fangorn } from "../fangorn.js";
|
|
|
4
4
|
import { handleCancel } from "./index.js";
|
|
5
5
|
import { privateKeyToAccount } from "viem/accounts";
|
|
6
6
|
import { chmodSync, existsSync, mkdirSync, readFileSync, writeFileSync } from "fs";
|
|
7
|
-
import { join } from "path";
|
|
7
|
+
import { dirname, join } from "path";
|
|
8
8
|
import { Command } from "commander";
|
|
9
9
|
import { confirm, intro, outro, spinner, text } from "@clack/prompts";
|
|
10
10
|
import { homedir } from "os";
|
|
@@ -33,7 +33,7 @@ function loadConfig() {
|
|
|
33
33
|
};
|
|
34
34
|
return _config;
|
|
35
35
|
}
|
|
36
|
-
{
|
|
36
|
+
if (privateKey || pinataJwt || pinataGateway) {
|
|
37
37
|
const missing = [];
|
|
38
38
|
if (!privateKey) missing.push("ETH_PRIVATE_KEY");
|
|
39
39
|
if (!pinataJwt) missing.push("PINATA_JWT");
|
|
@@ -88,12 +88,12 @@ var LocalRepo = class LocalRepo {
|
|
|
88
88
|
/** Open the repo containing `dir` (searches upward like git). Throws if none. */
|
|
89
89
|
static open(dir = process.cwd()) {
|
|
90
90
|
let cur = dir;
|
|
91
|
-
|
|
91
|
+
let parent = "";
|
|
92
|
+
while (cur !== parent) {
|
|
92
93
|
const p = LocalRepo.path(cur);
|
|
93
94
|
if (existsSync(p)) return new LocalRepo(cur, JSON.parse(readFileSync(p, "utf-8")));
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
cur = parent;
|
|
95
|
+
parent = cur;
|
|
96
|
+
cur = dirname(cur);
|
|
97
97
|
}
|
|
98
98
|
throw new Error("not a fangorn repo (no .fangorn/repo.json here or above). Run `fangorn repo init <namespace>` or `fangorn clone`.");
|
|
99
99
|
}
|
|
@@ -189,7 +189,7 @@ program.command("repo").description("Repository operations").command("init").des
|
|
|
189
189
|
const s = spinner();
|
|
190
190
|
s.start(`Initializing namespace "${namespace}"...`);
|
|
191
191
|
const result = await fangorn.initRepo(namespace);
|
|
192
|
-
const head = result.alreadyInitialized ? await fangorn.onChainTip(owner) : result.commitCid
|
|
192
|
+
const head = result.alreadyInitialized ? await fangorn.onChainTip(owner) : result.commitCid;
|
|
193
193
|
const repo = LocalRepo.init({
|
|
194
194
|
namespace,
|
|
195
195
|
owner,
|
|
@@ -354,7 +354,10 @@ program.command("subscribe").description("Watch on-chain pushes to a namespace a
|
|
|
354
354
|
const readCursor = () => {
|
|
355
355
|
if (options.fromStart) return void 0;
|
|
356
356
|
if (options.fromBlock !== void 0) return options.fromBlock;
|
|
357
|
-
if (existsSync(cursorPath))
|
|
357
|
+
if (existsSync(cursorPath)) {
|
|
358
|
+
const numInput = JSON.parse(readFileSync(cursorPath, "utf-8")).lastBlock ?? 0;
|
|
359
|
+
return BigInt(numInput) + 1n;
|
|
360
|
+
}
|
|
358
361
|
};
|
|
359
362
|
const writeCursor = (block) => {
|
|
360
363
|
if (!existsSync(repoDir)) mkdirSync(repoDir, { recursive: true });
|
|
@@ -366,10 +369,14 @@ program.command("subscribe").description("Watch on-chain pushes to a namespace a
|
|
|
366
369
|
};
|
|
367
370
|
const bigintReplacer = (_k, v) => typeof v === "bigint" ? v.toString() : v;
|
|
368
371
|
const fromBlock = readCursor();
|
|
369
|
-
console.error(`Subscribing to "${namespace}" @ ${owner} ` + (fromBlock !== void 0 ? `from block ${fromBlock}` : "(live from current tip)") + ` — Ctrl-C to stop.`);
|
|
372
|
+
console.error(`Subscribing to "${namespace}" @ ${owner} ` + (fromBlock !== void 0 ? `from block ${fromBlock.toString()}` : "(live from current tip)") + ` — Ctrl-C to stop.`);
|
|
370
373
|
const controller = new AbortController();
|
|
371
|
-
process.on("SIGINT", () =>
|
|
372
|
-
|
|
374
|
+
process.on("SIGINT", () => {
|
|
375
|
+
controller.abort();
|
|
376
|
+
});
|
|
377
|
+
process.on("SIGTERM", () => {
|
|
378
|
+
controller.abort();
|
|
379
|
+
});
|
|
373
380
|
for await (const change of fangorn.subscribe({
|
|
374
381
|
namespace,
|
|
375
382
|
owner,
|
package/lib/cli/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./cli.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as viem0 from "viem";
|
|
3
3
|
|
|
4
4
|
//#region src/cli/index.d.ts
|
|
5
5
|
declare const getChain: (chainStr: string) => {
|
|
@@ -35,17 +35,17 @@ declare const getChain: (chainStr: string) => {
|
|
|
35
35
|
testnet: true;
|
|
36
36
|
custom?: Record<string, unknown> | undefined;
|
|
37
37
|
extendSchema?: Record<string, unknown> | undefined;
|
|
38
|
-
fees?:
|
|
38
|
+
fees?: viem0.ChainFees<undefined> | undefined;
|
|
39
39
|
formatters?: undefined;
|
|
40
|
-
prepareTransactionRequest?: ((args:
|
|
40
|
+
prepareTransactionRequest?: ((args: viem0.PrepareTransactionRequestParameters, options: {
|
|
41
41
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
42
|
-
}) => Promise<
|
|
42
|
+
}) => Promise<viem0.PrepareTransactionRequestParameters>) | [fn: ((args: viem0.PrepareTransactionRequestParameters, options: {
|
|
43
43
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
44
|
-
}) => Promise<
|
|
44
|
+
}) => Promise<viem0.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
45
45
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
46
46
|
}] | undefined;
|
|
47
|
-
serializers?:
|
|
48
|
-
verifyHash?: ((client:
|
|
47
|
+
serializers?: viem0.ChainSerializers<undefined, viem0.TransactionSerializable> | undefined;
|
|
48
|
+
verifyHash?: ((client: viem0.Client, parameters: viem0.VerifyHashActionParameters) => Promise<viem0.VerifyHashActionReturnType>) | undefined;
|
|
49
49
|
};
|
|
50
50
|
declare const handleCancel: (value: unknown) => void;
|
|
51
51
|
declare const selectChain: () => Promise<{
|
|
@@ -81,17 +81,17 @@ declare const selectChain: () => Promise<{
|
|
|
81
81
|
testnet: true;
|
|
82
82
|
custom?: Record<string, unknown> | undefined;
|
|
83
83
|
extendSchema?: Record<string, unknown> | undefined;
|
|
84
|
-
fees?:
|
|
84
|
+
fees?: viem0.ChainFees<undefined> | undefined;
|
|
85
85
|
formatters?: undefined;
|
|
86
|
-
prepareTransactionRequest?: ((args:
|
|
86
|
+
prepareTransactionRequest?: ((args: viem0.PrepareTransactionRequestParameters, options: {
|
|
87
87
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
88
|
-
}) => Promise<
|
|
88
|
+
}) => Promise<viem0.PrepareTransactionRequestParameters>) | [fn: ((args: viem0.PrepareTransactionRequestParameters, options: {
|
|
89
89
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
90
|
-
}) => Promise<
|
|
90
|
+
}) => Promise<viem0.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
91
91
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
92
92
|
}] | undefined;
|
|
93
|
-
serializers?:
|
|
94
|
-
verifyHash?: ((client:
|
|
93
|
+
serializers?: viem0.ChainSerializers<undefined, viem0.TransactionSerializable> | undefined;
|
|
94
|
+
verifyHash?: ((client: viem0.Client, parameters: viem0.VerifyHashActionParameters) => Promise<viem0.VerifyHashActionReturnType>) | undefined;
|
|
95
95
|
}>;
|
|
96
96
|
declare function parseGadgetArg(raw: string): {
|
|
97
97
|
type: string;
|
package/lib/config.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as viem_chains0 from "viem/chains";
|
|
2
|
-
import * as
|
|
2
|
+
import * as viem19 from "viem";
|
|
3
3
|
import { Chain, Hex } from "viem";
|
|
4
|
+
import * as abitype0 from "abitype";
|
|
4
5
|
|
|
5
6
|
//#region src/config.d.ts
|
|
6
7
|
/**
|
|
@@ -42,17 +43,17 @@ declare const SupportedNetworks: {
|
|
|
42
43
|
testnet: true;
|
|
43
44
|
custom?: Record<string, unknown> | undefined;
|
|
44
45
|
extendSchema?: Record<string, unknown> | undefined;
|
|
45
|
-
fees?:
|
|
46
|
+
fees?: viem19.ChainFees<undefined> | undefined;
|
|
46
47
|
formatters?: undefined;
|
|
47
|
-
prepareTransactionRequest?: ((args:
|
|
48
|
+
prepareTransactionRequest?: ((args: viem19.PrepareTransactionRequestParameters, options: {
|
|
48
49
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
49
|
-
}) => Promise<
|
|
50
|
+
}) => Promise<viem19.PrepareTransactionRequestParameters>) | [fn: ((args: viem19.PrepareTransactionRequestParameters, options: {
|
|
50
51
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
51
|
-
}) => Promise<
|
|
52
|
+
}) => Promise<viem19.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
52
53
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
53
54
|
}] | undefined;
|
|
54
|
-
serializers?:
|
|
55
|
-
verifyHash?: ((client:
|
|
55
|
+
serializers?: viem19.ChainSerializers<undefined, viem19.TransactionSerializable> | undefined;
|
|
56
|
+
verifyHash?: ((client: viem19.Client, parameters: viem19.VerifyHashActionParameters) => Promise<viem19.VerifyHashActionReturnType>) | undefined;
|
|
56
57
|
};
|
|
57
58
|
};
|
|
58
59
|
BaseSepolia: {
|
|
@@ -130,7 +131,7 @@ declare const SupportedNetworks: {
|
|
|
130
131
|
testnet: true;
|
|
131
132
|
custom?: Record<string, unknown> | undefined;
|
|
132
133
|
extendSchema?: Record<string, unknown> | undefined;
|
|
133
|
-
fees?:
|
|
134
|
+
fees?: viem19.ChainFees<undefined> | undefined;
|
|
134
135
|
formatters: {
|
|
135
136
|
readonly block: {
|
|
136
137
|
exclude: [] | undefined;
|
|
@@ -139,28 +140,28 @@ declare const SupportedNetworks: {
|
|
|
139
140
|
blobGasUsed: bigint;
|
|
140
141
|
difficulty: bigint;
|
|
141
142
|
excessBlobGas: bigint;
|
|
142
|
-
extraData:
|
|
143
|
+
extraData: viem19.Hex;
|
|
143
144
|
gasLimit: bigint;
|
|
144
145
|
gasUsed: bigint;
|
|
145
146
|
hash: `0x${string}` | null;
|
|
146
147
|
logsBloom: `0x${string}` | null;
|
|
147
|
-
miner:
|
|
148
|
-
mixHash:
|
|
148
|
+
miner: abitype0.Address;
|
|
149
|
+
mixHash: viem19.Hash;
|
|
149
150
|
nonce: `0x${string}` | null;
|
|
150
151
|
number: bigint | null;
|
|
151
152
|
parentBeaconBlockRoot?: `0x${string}` | undefined;
|
|
152
|
-
parentHash:
|
|
153
|
-
receiptsRoot:
|
|
154
|
-
sealFields:
|
|
155
|
-
sha3Uncles:
|
|
153
|
+
parentHash: viem19.Hash;
|
|
154
|
+
receiptsRoot: viem19.Hex;
|
|
155
|
+
sealFields: viem19.Hex[];
|
|
156
|
+
sha3Uncles: viem19.Hash;
|
|
156
157
|
size: bigint;
|
|
157
|
-
stateRoot:
|
|
158
|
+
stateRoot: viem19.Hash;
|
|
158
159
|
timestamp: bigint;
|
|
159
160
|
totalDifficulty: bigint | null;
|
|
160
161
|
transactions: `0x${string}`[] | viem_chains0.OpStackTransaction<boolean>[];
|
|
161
|
-
transactionsRoot:
|
|
162
|
-
uncles:
|
|
163
|
-
withdrawals?:
|
|
162
|
+
transactionsRoot: viem19.Hash;
|
|
163
|
+
uncles: viem19.Hash[];
|
|
164
|
+
withdrawals?: viem19.Withdrawal[] | undefined | undefined;
|
|
164
165
|
withdrawalsRoot?: `0x${string}` | undefined;
|
|
165
166
|
} & {};
|
|
166
167
|
type: "block";
|
|
@@ -170,16 +171,16 @@ declare const SupportedNetworks: {
|
|
|
170
171
|
format: (args: viem_chains0.OpStackRpcTransaction, action?: string | undefined) => ({
|
|
171
172
|
blockHash: `0x${string}` | null;
|
|
172
173
|
blockNumber: bigint | null;
|
|
173
|
-
from:
|
|
174
|
+
from: abitype0.Address;
|
|
174
175
|
gas: bigint;
|
|
175
|
-
hash:
|
|
176
|
-
input:
|
|
176
|
+
hash: viem19.Hash;
|
|
177
|
+
input: viem19.Hex;
|
|
177
178
|
nonce: number;
|
|
178
|
-
r:
|
|
179
|
-
s:
|
|
180
|
-
to:
|
|
179
|
+
r: viem19.Hex;
|
|
180
|
+
s: viem19.Hex;
|
|
181
|
+
to: abitype0.Address | null;
|
|
181
182
|
transactionIndex: number | null;
|
|
182
|
-
typeHex:
|
|
183
|
+
typeHex: viem19.Hex | null;
|
|
183
184
|
v: bigint;
|
|
184
185
|
value: bigint;
|
|
185
186
|
yParity: number;
|
|
@@ -189,23 +190,23 @@ declare const SupportedNetworks: {
|
|
|
189
190
|
maxPriorityFeePerGas: bigint;
|
|
190
191
|
isSystemTx?: boolean;
|
|
191
192
|
mint?: bigint | undefined | undefined;
|
|
192
|
-
sourceHash:
|
|
193
|
+
sourceHash: viem19.Hex;
|
|
193
194
|
type: "deposit";
|
|
194
195
|
} | {
|
|
195
|
-
r:
|
|
196
|
-
s:
|
|
196
|
+
r: viem19.Hex;
|
|
197
|
+
s: viem19.Hex;
|
|
197
198
|
v: bigint;
|
|
198
|
-
to:
|
|
199
|
-
from:
|
|
199
|
+
to: abitype0.Address | null;
|
|
200
|
+
from: abitype0.Address;
|
|
200
201
|
gas: bigint;
|
|
201
202
|
nonce: number;
|
|
202
203
|
value: bigint;
|
|
203
204
|
blockHash: `0x${string}` | null;
|
|
204
205
|
blockNumber: bigint | null;
|
|
205
|
-
hash:
|
|
206
|
-
input:
|
|
206
|
+
hash: viem19.Hash;
|
|
207
|
+
input: viem19.Hex;
|
|
207
208
|
transactionIndex: number | null;
|
|
208
|
-
typeHex:
|
|
209
|
+
typeHex: viem19.Hex | null;
|
|
209
210
|
accessList?: undefined | undefined;
|
|
210
211
|
authorizationList?: undefined | undefined;
|
|
211
212
|
blobVersionedHashes?: undefined | undefined;
|
|
@@ -222,20 +223,20 @@ declare const SupportedNetworks: {
|
|
|
222
223
|
} | {
|
|
223
224
|
blockHash: `0x${string}` | null;
|
|
224
225
|
blockNumber: bigint | null;
|
|
225
|
-
from:
|
|
226
|
+
from: abitype0.Address;
|
|
226
227
|
gas: bigint;
|
|
227
|
-
hash:
|
|
228
|
-
input:
|
|
228
|
+
hash: viem19.Hash;
|
|
229
|
+
input: viem19.Hex;
|
|
229
230
|
nonce: number;
|
|
230
|
-
r:
|
|
231
|
-
s:
|
|
232
|
-
to:
|
|
231
|
+
r: viem19.Hex;
|
|
232
|
+
s: viem19.Hex;
|
|
233
|
+
to: abitype0.Address | null;
|
|
233
234
|
transactionIndex: number | null;
|
|
234
|
-
typeHex:
|
|
235
|
+
typeHex: viem19.Hex | null;
|
|
235
236
|
v: bigint;
|
|
236
237
|
value: bigint;
|
|
237
238
|
yParity: number;
|
|
238
|
-
accessList:
|
|
239
|
+
accessList: viem19.AccessList;
|
|
239
240
|
authorizationList?: undefined | undefined;
|
|
240
241
|
blobVersionedHashes?: undefined | undefined;
|
|
241
242
|
chainId: number;
|
|
@@ -250,20 +251,20 @@ declare const SupportedNetworks: {
|
|
|
250
251
|
} | {
|
|
251
252
|
blockHash: `0x${string}` | null;
|
|
252
253
|
blockNumber: bigint | null;
|
|
253
|
-
from:
|
|
254
|
+
from: abitype0.Address;
|
|
254
255
|
gas: bigint;
|
|
255
|
-
hash:
|
|
256
|
-
input:
|
|
256
|
+
hash: viem19.Hash;
|
|
257
|
+
input: viem19.Hex;
|
|
257
258
|
nonce: number;
|
|
258
|
-
r:
|
|
259
|
-
s:
|
|
260
|
-
to:
|
|
259
|
+
r: viem19.Hex;
|
|
260
|
+
s: viem19.Hex;
|
|
261
|
+
to: abitype0.Address | null;
|
|
261
262
|
transactionIndex: number | null;
|
|
262
|
-
typeHex:
|
|
263
|
+
typeHex: viem19.Hex | null;
|
|
263
264
|
v: bigint;
|
|
264
265
|
value: bigint;
|
|
265
266
|
yParity: number;
|
|
266
|
-
accessList:
|
|
267
|
+
accessList: viem19.AccessList;
|
|
267
268
|
authorizationList?: undefined | undefined;
|
|
268
269
|
blobVersionedHashes?: undefined | undefined;
|
|
269
270
|
chainId: number;
|
|
@@ -278,22 +279,22 @@ declare const SupportedNetworks: {
|
|
|
278
279
|
} | {
|
|
279
280
|
blockHash: `0x${string}` | null;
|
|
280
281
|
blockNumber: bigint | null;
|
|
281
|
-
from:
|
|
282
|
+
from: abitype0.Address;
|
|
282
283
|
gas: bigint;
|
|
283
|
-
hash:
|
|
284
|
-
input:
|
|
284
|
+
hash: viem19.Hash;
|
|
285
|
+
input: viem19.Hex;
|
|
285
286
|
nonce: number;
|
|
286
|
-
r:
|
|
287
|
-
s:
|
|
288
|
-
to:
|
|
287
|
+
r: viem19.Hex;
|
|
288
|
+
s: viem19.Hex;
|
|
289
|
+
to: abitype0.Address | null;
|
|
289
290
|
transactionIndex: number | null;
|
|
290
|
-
typeHex:
|
|
291
|
+
typeHex: viem19.Hex | null;
|
|
291
292
|
v: bigint;
|
|
292
293
|
value: bigint;
|
|
293
294
|
yParity: number;
|
|
294
|
-
accessList:
|
|
295
|
+
accessList: viem19.AccessList;
|
|
295
296
|
authorizationList?: undefined | undefined;
|
|
296
|
-
blobVersionedHashes: readonly
|
|
297
|
+
blobVersionedHashes: readonly viem19.Hex[];
|
|
297
298
|
chainId: number;
|
|
298
299
|
type: "eip4844";
|
|
299
300
|
gasPrice?: undefined | undefined;
|
|
@@ -306,21 +307,21 @@ declare const SupportedNetworks: {
|
|
|
306
307
|
} | {
|
|
307
308
|
blockHash: `0x${string}` | null;
|
|
308
309
|
blockNumber: bigint | null;
|
|
309
|
-
from:
|
|
310
|
+
from: abitype0.Address;
|
|
310
311
|
gas: bigint;
|
|
311
|
-
hash:
|
|
312
|
-
input:
|
|
312
|
+
hash: viem19.Hash;
|
|
313
|
+
input: viem19.Hex;
|
|
313
314
|
nonce: number;
|
|
314
|
-
r:
|
|
315
|
-
s:
|
|
316
|
-
to:
|
|
315
|
+
r: viem19.Hex;
|
|
316
|
+
s: viem19.Hex;
|
|
317
|
+
to: abitype0.Address | null;
|
|
317
318
|
transactionIndex: number | null;
|
|
318
|
-
typeHex:
|
|
319
|
+
typeHex: viem19.Hex | null;
|
|
319
320
|
v: bigint;
|
|
320
321
|
value: bigint;
|
|
321
322
|
yParity: number;
|
|
322
|
-
accessList:
|
|
323
|
-
authorizationList:
|
|
323
|
+
accessList: viem19.AccessList;
|
|
324
|
+
authorizationList: viem19.SignedAuthorizationList;
|
|
324
325
|
blobVersionedHashes?: undefined | undefined;
|
|
325
326
|
chainId: number;
|
|
326
327
|
type: "eip7702";
|
|
@@ -339,22 +340,22 @@ declare const SupportedNetworks: {
|
|
|
339
340
|
format: (args: viem_chains0.OpStackRpcTransactionReceipt, action?: string | undefined) => {
|
|
340
341
|
blobGasPrice?: bigint | undefined;
|
|
341
342
|
blobGasUsed?: bigint | undefined;
|
|
342
|
-
blockHash:
|
|
343
|
+
blockHash: viem19.Hash;
|
|
343
344
|
blockNumber: bigint;
|
|
344
345
|
blockTimestamp?: bigint | undefined;
|
|
345
|
-
contractAddress:
|
|
346
|
+
contractAddress: abitype0.Address | null | undefined;
|
|
346
347
|
cumulativeGasUsed: bigint;
|
|
347
348
|
effectiveGasPrice: bigint;
|
|
348
|
-
from:
|
|
349
|
+
from: abitype0.Address;
|
|
349
350
|
gasUsed: bigint;
|
|
350
|
-
logs:
|
|
351
|
-
logsBloom:
|
|
351
|
+
logs: viem19.Log<bigint, number, false>[];
|
|
352
|
+
logsBloom: viem19.Hex;
|
|
352
353
|
root?: `0x${string}` | undefined;
|
|
353
354
|
status: "success" | "reverted";
|
|
354
|
-
to:
|
|
355
|
-
transactionHash:
|
|
355
|
+
to: abitype0.Address | null;
|
|
356
|
+
transactionHash: viem19.Hash;
|
|
356
357
|
transactionIndex: number;
|
|
357
|
-
type:
|
|
358
|
+
type: viem19.TransactionType;
|
|
358
359
|
l1GasPrice: bigint | null;
|
|
359
360
|
l1GasUsed: bigint | null;
|
|
360
361
|
l1Fee: bigint | null;
|
|
@@ -363,17 +364,17 @@ declare const SupportedNetworks: {
|
|
|
363
364
|
type: "transactionReceipt";
|
|
364
365
|
};
|
|
365
366
|
};
|
|
366
|
-
prepareTransactionRequest?: ((args:
|
|
367
|
+
prepareTransactionRequest?: ((args: viem19.PrepareTransactionRequestParameters, options: {
|
|
367
368
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
368
|
-
}) => Promise<
|
|
369
|
+
}) => Promise<viem19.PrepareTransactionRequestParameters>) | [fn: ((args: viem19.PrepareTransactionRequestParameters, options: {
|
|
369
370
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
370
|
-
}) => Promise<
|
|
371
|
+
}) => Promise<viem19.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
371
372
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
372
373
|
}] | undefined;
|
|
373
374
|
serializers: {
|
|
374
375
|
readonly transaction: typeof viem_chains0.serializeTransactionOpStack;
|
|
375
376
|
};
|
|
376
|
-
verifyHash?: ((client:
|
|
377
|
+
verifyHash?: ((client: viem19.Client, parameters: viem19.VerifyHashActionParameters) => Promise<viem19.VerifyHashActionReturnType>) | undefined;
|
|
377
378
|
readonly network: "base-sepolia";
|
|
378
379
|
};
|
|
379
380
|
};
|
|
@@ -416,17 +417,17 @@ declare function getNetwork(name: string): {
|
|
|
416
417
|
testnet: true;
|
|
417
418
|
custom?: Record<string, unknown> | undefined;
|
|
418
419
|
extendSchema?: Record<string, unknown> | undefined;
|
|
419
|
-
fees?:
|
|
420
|
+
fees?: viem19.ChainFees<undefined> | undefined;
|
|
420
421
|
formatters?: undefined;
|
|
421
|
-
prepareTransactionRequest?: ((args:
|
|
422
|
+
prepareTransactionRequest?: ((args: viem19.PrepareTransactionRequestParameters, options: {
|
|
422
423
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
423
|
-
}) => Promise<
|
|
424
|
+
}) => Promise<viem19.PrepareTransactionRequestParameters>) | [fn: ((args: viem19.PrepareTransactionRequestParameters, options: {
|
|
424
425
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
425
|
-
}) => Promise<
|
|
426
|
+
}) => Promise<viem19.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
426
427
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
427
428
|
}] | undefined;
|
|
428
|
-
serializers?:
|
|
429
|
-
verifyHash?: ((client:
|
|
429
|
+
serializers?: viem19.ChainSerializers<undefined, viem19.TransactionSerializable> | undefined;
|
|
430
|
+
verifyHash?: ((client: viem19.Client, parameters: viem19.VerifyHashActionParameters) => Promise<viem19.VerifyHashActionReturnType>) | undefined;
|
|
430
431
|
};
|
|
431
432
|
interface AppConfig {
|
|
432
433
|
dataRegistryContractAddress: Hex;
|
|
@@ -470,17 +471,17 @@ declare const FangornConfig: {
|
|
|
470
471
|
testnet: true;
|
|
471
472
|
custom?: Record<string, unknown> | undefined;
|
|
472
473
|
extendSchema?: Record<string, unknown> | undefined;
|
|
473
|
-
fees?:
|
|
474
|
+
fees?: viem19.ChainFees<undefined> | undefined;
|
|
474
475
|
formatters?: undefined;
|
|
475
|
-
prepareTransactionRequest?: ((args:
|
|
476
|
+
prepareTransactionRequest?: ((args: viem19.PrepareTransactionRequestParameters, options: {
|
|
476
477
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
477
|
-
}) => Promise<
|
|
478
|
+
}) => Promise<viem19.PrepareTransactionRequestParameters>) | [fn: ((args: viem19.PrepareTransactionRequestParameters, options: {
|
|
478
479
|
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
479
|
-
}) => Promise<
|
|
480
|
+
}) => Promise<viem19.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
480
481
|
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
481
482
|
}] | undefined;
|
|
482
|
-
serializers?:
|
|
483
|
-
verifyHash?: ((client:
|
|
483
|
+
serializers?: viem19.ChainSerializers<undefined, viem19.TransactionSerializable> | undefined;
|
|
484
|
+
verifyHash?: ((client: viem19.Client, parameters: viem19.VerifyHashActionParameters) => Promise<viem19.VerifyHashActionReturnType>) | undefined;
|
|
484
485
|
};
|
|
485
486
|
rpcUrl: string;
|
|
486
487
|
caip2: number;
|