@fangorn-network/sdk 2026.8.18-dev → 2026.10.1-9.0-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +191 -195
- package/lib/cli/cli.d.ts +0 -0
- package/lib/cli/cli.js +198 -164
- package/lib/cli/index.d.ts +3 -91
- package/lib/cli/index.js +5 -2
- package/lib/config.d.ts +349 -433
- package/lib/config.js +41 -28
- package/lib/contracts/app-registry/abi.d.ts +1064 -265
- package/lib/contracts/app-registry/abi.js +1233 -308
- package/lib/contracts/app-registry/index.d.ts +123 -102
- package/lib/contracts/app-registry/index.js +200 -198
- package/lib/contracts/data-registry/abi.d.ts +166 -187
- package/lib/contracts/data-registry/abi.js +207 -237
- package/lib/contracts/data-registry/index.d.ts +4 -160
- package/lib/contracts/data-registry/index.js +5 -294
- package/lib/contracts/index.d.ts +6 -7
- package/lib/contracts/index.js +6 -8
- package/lib/contracts/logs.d.ts +21 -0
- package/lib/contracts/logs.js +32 -0
- package/lib/contracts/membership-registry/abi.d.ts +1145 -0
- package/lib/contracts/membership-registry/abi.js +1333 -0
- package/lib/contracts/membership-registry/index.d.ts +79 -0
- package/lib/contracts/membership-registry/index.js +104 -0
- package/lib/contracts/types.d.ts +3 -1
- package/lib/contracts/types.js +3 -1
- package/lib/contracts/write.d.ts +34 -2
- package/lib/contracts/write.js +48 -1
- package/lib/crypto/encryption.js +4 -4
- package/lib/engine/car.d.ts +2 -2
- package/lib/engine/car.js +10 -5
- package/lib/engine/index.d.ts +99 -143
- package/lib/engine/index.js +156 -295
- package/lib/engine/records.d.ts +110 -0
- package/lib/engine/records.js +165 -0
- package/lib/engine/test-helpers.d.ts +7 -14
- package/lib/engine/test-helpers.js +7 -18
- package/lib/fangorn.d.ts +163 -155
- package/lib/fangorn.js +284 -248
- package/lib/feed.d.ts +7 -4
- package/lib/feed.js +4 -1
- package/lib/index.d.ts +9 -9
- package/lib/index.js +9 -10
- package/lib/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.js +77 -0
- package/lib/node_modules/@vitest/expect/dist/index.js +1414 -0
- package/lib/node_modules/@vitest/pretty-format/dist/index.js +858 -0
- package/lib/node_modules/@vitest/runner/dist/chunk-tasks.js +51 -0
- package/lib/node_modules/@vitest/runner/dist/index.js +1199 -0
- package/lib/node_modules/@vitest/runner/dist/utils.js +3 -0
- package/lib/node_modules/@vitest/snapshot/dist/index.js +1075 -0
- package/lib/node_modules/@vitest/spy/dist/index.js +353 -0
- package/lib/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js +7 -0
- package/lib/node_modules/@vitest/utils/dist/chunk-pathe.M-eThtNZ.js +81 -0
- package/lib/node_modules/@vitest/utils/dist/diff.js +1345 -0
- package/lib/node_modules/@vitest/utils/dist/display.js +534 -0
- package/lib/node_modules/@vitest/utils/dist/error.js +30 -0
- package/lib/node_modules/@vitest/utils/dist/helpers.js +118 -0
- package/lib/node_modules/@vitest/utils/dist/serialize.js +76 -0
- package/lib/node_modules/@vitest/utils/dist/source-map.js +93 -0
- package/lib/node_modules/@vitest/utils/dist/timers.js +36 -0
- package/lib/node_modules/chai/index.js +2874 -0
- package/lib/node_modules/magic-string/dist/magic-string.es.js +939 -0
- package/lib/node_modules/pathe/dist/shared/pathe.M-eThtNZ.js +81 -0
- package/lib/node_modules/tinyrainbow/dist/index.js +85 -0
- package/lib/node_modules/vitest/dist/chunks/_commonjsHelpers.D26ty3Ew.js +5 -0
- package/lib/node_modules/vitest/dist/chunks/date.Bq6ZW5rf.js +50 -0
- package/lib/node_modules/vitest/dist/chunks/utils.DvEY5TfP.js +44 -0
- package/lib/node_modules/vitest/dist/chunks/vi.2VT5v0um.js +2578 -0
- package/lib/providers/storage/signed-url.d.ts +16 -6
- package/lib/providers/storage/signed-url.js +20 -8
- package/lib/registry.d.ts +116 -0
- package/lib/registry.js +182 -0
- package/lib/test/mem-registry.d.ts +51 -0
- package/lib/test/mem-registry.js +107 -0
- package/lib/test/sdk-suite.d.ts +13 -0
- package/lib/test/sdk-suite.js +226 -0
- package/lib/test/testbed.d.ts +16411 -61
- package/lib/test/testbed.js +190 -84
- package/lib/types/index.d.ts +13 -11
- package/package.json +89 -72
- package/lib/contracts/data-registry/test.d.ts +0 -1
- package/lib/contracts/data-registry/test.js +0 -1
- package/lib/contracts/settlement-registry/abi.d.ts +0 -466
- package/lib/contracts/settlement-registry/abi.js +0 -535
- package/lib/contracts/settlement-registry/index.d.ts +0 -163
- package/lib/contracts/settlement-registry/index.js +0 -264
- package/lib/contracts/subscription-registry/abi.d.ts +0 -179
- package/lib/contracts/subscription-registry/abi.js +0 -195
- package/lib/contracts/subscription-registry/index.d.ts +0 -59
- package/lib/contracts/subscription-registry/index.js +0 -116
- package/lib/engine/graph.d.ts +0 -70
- package/lib/engine/graph.js +0 -73
package/lib/cli/index.d.ts
CHANGED
|
@@ -1,98 +1,10 @@
|
|
|
1
1
|
import "./cli.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as viem5646 from "viem";
|
|
3
3
|
|
|
4
4
|
//#region src/cli/index.d.ts
|
|
5
|
-
declare const getChain: (chainStr: string) =>
|
|
6
|
-
blockExplorers: {
|
|
7
|
-
readonly default: {
|
|
8
|
-
readonly name: "Arbiscan";
|
|
9
|
-
readonly url: "https://sepolia.arbiscan.io";
|
|
10
|
-
readonly apiUrl: "https://api-sepolia.arbiscan.io/api";
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
blockTime: 250;
|
|
14
|
-
contracts: {
|
|
15
|
-
readonly multicall3: {
|
|
16
|
-
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
17
|
-
readonly blockCreated: 81930;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
ensTlds?: readonly string[] | undefined;
|
|
21
|
-
id: 421614;
|
|
22
|
-
name: "Arbitrum Sepolia";
|
|
23
|
-
nativeCurrency: {
|
|
24
|
-
readonly name: "Arbitrum Sepolia Ether";
|
|
25
|
-
readonly symbol: "ETH";
|
|
26
|
-
readonly decimals: 18;
|
|
27
|
-
};
|
|
28
|
-
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
29
|
-
rpcUrls: {
|
|
30
|
-
readonly default: {
|
|
31
|
-
readonly http: readonly ["https://sepolia-rollup.arbitrum.io/rpc"];
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
sourceId?: number | undefined | undefined;
|
|
35
|
-
testnet: true;
|
|
36
|
-
custom?: Record<string, unknown> | undefined;
|
|
37
|
-
extendSchema?: Record<string, unknown> | undefined;
|
|
38
|
-
fees?: viem89.ChainFees<undefined> | undefined;
|
|
39
|
-
formatters?: undefined;
|
|
40
|
-
prepareTransactionRequest?: ((args: viem89.PrepareTransactionRequestParameters, options: {
|
|
41
|
-
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
42
|
-
}) => Promise<viem89.PrepareTransactionRequestParameters>) | [fn: ((args: viem89.PrepareTransactionRequestParameters, options: {
|
|
43
|
-
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
44
|
-
}) => Promise<viem89.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
45
|
-
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
46
|
-
}] | undefined;
|
|
47
|
-
serializers?: viem89.ChainSerializers<undefined, viem89.TransactionSerializable> | undefined;
|
|
48
|
-
verifyHash?: ((client: viem89.Client, parameters: viem89.VerifyHashActionParameters) => Promise<viem89.VerifyHashActionReturnType>) | undefined;
|
|
49
|
-
};
|
|
5
|
+
declare const getChain: (chainStr: string) => viem5646.Chain;
|
|
50
6
|
declare const handleCancel: (value: unknown) => void;
|
|
51
|
-
declare const selectChain: () => Promise<
|
|
52
|
-
blockExplorers: {
|
|
53
|
-
readonly default: {
|
|
54
|
-
readonly name: "Arbiscan";
|
|
55
|
-
readonly url: "https://sepolia.arbiscan.io";
|
|
56
|
-
readonly apiUrl: "https://api-sepolia.arbiscan.io/api";
|
|
57
|
-
};
|
|
58
|
-
};
|
|
59
|
-
blockTime: 250;
|
|
60
|
-
contracts: {
|
|
61
|
-
readonly multicall3: {
|
|
62
|
-
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
63
|
-
readonly blockCreated: 81930;
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
-
ensTlds?: readonly string[] | undefined;
|
|
67
|
-
id: 421614;
|
|
68
|
-
name: "Arbitrum Sepolia";
|
|
69
|
-
nativeCurrency: {
|
|
70
|
-
readonly name: "Arbitrum Sepolia Ether";
|
|
71
|
-
readonly symbol: "ETH";
|
|
72
|
-
readonly decimals: 18;
|
|
73
|
-
};
|
|
74
|
-
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
75
|
-
rpcUrls: {
|
|
76
|
-
readonly default: {
|
|
77
|
-
readonly http: readonly ["https://sepolia-rollup.arbitrum.io/rpc"];
|
|
78
|
-
};
|
|
79
|
-
};
|
|
80
|
-
sourceId?: number | undefined | undefined;
|
|
81
|
-
testnet: true;
|
|
82
|
-
custom?: Record<string, unknown> | undefined;
|
|
83
|
-
extendSchema?: Record<string, unknown> | undefined;
|
|
84
|
-
fees?: viem89.ChainFees<undefined> | undefined;
|
|
85
|
-
formatters?: undefined;
|
|
86
|
-
prepareTransactionRequest?: ((args: viem89.PrepareTransactionRequestParameters, options: {
|
|
87
|
-
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
88
|
-
}) => Promise<viem89.PrepareTransactionRequestParameters>) | [fn: ((args: viem89.PrepareTransactionRequestParameters, options: {
|
|
89
|
-
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
90
|
-
}) => Promise<viem89.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
91
|
-
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
92
|
-
}] | undefined;
|
|
93
|
-
serializers?: viem89.ChainSerializers<undefined, viem89.TransactionSerializable> | undefined;
|
|
94
|
-
verifyHash?: ((client: viem89.Client, parameters: viem89.VerifyHashActionParameters) => Promise<viem89.VerifyHashActionReturnType>) | undefined;
|
|
95
|
-
}>;
|
|
7
|
+
declare const selectChain: () => Promise<string>;
|
|
96
8
|
declare function parseGadgetArg(raw: string): {
|
|
97
9
|
type: string;
|
|
98
10
|
args: string[];
|
package/lib/cli/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { isCancel, select } from "@clack/prompts";
|
|
|
4
4
|
|
|
5
5
|
//#region src/cli/index.ts
|
|
6
6
|
const getChain = (chainStr) => {
|
|
7
|
-
return getNetwork(chainStr);
|
|
7
|
+
return getNetwork(chainStr).chain;
|
|
8
8
|
};
|
|
9
9
|
const handleCancel = (value) => {
|
|
10
10
|
if (isCancel(value)) process.exit(0);
|
|
@@ -15,10 +15,13 @@ const selectChain = async () => {
|
|
|
15
15
|
options: [{
|
|
16
16
|
value: "arbitrumSepolia",
|
|
17
17
|
label: "Arbitrum Sepolia"
|
|
18
|
+
}, {
|
|
19
|
+
value: "baseSepolia",
|
|
20
|
+
label: "Base Sepolia"
|
|
18
21
|
}]
|
|
19
22
|
});
|
|
20
23
|
handleCancel(chainChoice);
|
|
21
|
-
return
|
|
24
|
+
return chainChoice.toString();
|
|
22
25
|
};
|
|
23
26
|
function parseGadgetArg(raw) {
|
|
24
27
|
const match = /^(\w+)\(([^)]*)\)$/.exec(raw);
|