@fangorn-network/sdk 2026.10.21-dev → 2026.10.23-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 +21 -18
- package/lib/cli/cli.js +18 -80
- package/lib/cli/index.d.ts +2 -2
- package/lib/cli/index.js +3 -3
- package/lib/config.d.ts +420 -83
- package/lib/config.js +11 -4
- package/lib/contracts/app-registry/abi.d.ts +52 -0
- package/lib/contracts/app-registry/abi.js +56 -0
- package/lib/contracts/app-registry/index.d.ts +15 -3
- package/lib/contracts/app-registry/index.js +23 -3
- package/lib/contracts/membership-registry/index.d.ts +1 -1
- package/lib/contracts/membership-registry/index.js +1 -1
- package/lib/{cli/erc8004.d.ts → erc8004.d.ts} +5 -3
- package/lib/{cli/erc8004.js → erc8004.js} +10 -7
- package/lib/fangorn.d.ts +21 -3
- package/lib/fangorn.js +71 -1
- package/lib/index.d.ts +2 -2
- package/lib/index.js +2 -2
- package/lib/providers/storage/signed-url.d.ts +4 -4
- package/lib/providers/storage/signed-url.js +5 -4
- package/lib/test/testbed.d.ts +6088 -5710
- package/lib/test/testbed.js +5 -1
- package/package.json +3 -2
package/lib/test/testbed.js
CHANGED
|
@@ -7,6 +7,7 @@ import { Fangorn } from "../fangorn.js";
|
|
|
7
7
|
import { MemLedger, MemRegistry } from "./mem-registry.js";
|
|
8
8
|
import { MemStorage } from "../engine/test-helpers.js";
|
|
9
9
|
import { createTestClient, encodeFunctionData, getAddress, http, parseEther, publicActions, walletActions } from "viem";
|
|
10
|
+
import { foundry } from "viem/chains";
|
|
10
11
|
import { generatePrivateKey, privateKeyToAccount } from "viem/accounts";
|
|
11
12
|
import { spawn, spawnSync } from "node:child_process";
|
|
12
13
|
import { existsSync, readFileSync } from "node:fs";
|
|
@@ -107,7 +108,10 @@ async function chainNetwork() {
|
|
|
107
108
|
const { rpcUrl, anvil } = await startAnvil(FangornConfig.chain.id);
|
|
108
109
|
const chain = createTestClient({
|
|
109
110
|
mode: "anvil",
|
|
110
|
-
chain:
|
|
111
|
+
chain: {
|
|
112
|
+
...foundry,
|
|
113
|
+
id: FangornConfig.chain.id
|
|
114
|
+
},
|
|
111
115
|
transport: http(rpcUrl)
|
|
112
116
|
}).extend(publicActions).extend(walletActions);
|
|
113
117
|
const admin = privateKeyToAccount(ADMIN_KEY);
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
|
|
1
2
|
{
|
|
2
3
|
"name": "@fangorn-network/sdk",
|
|
3
|
-
"version": "2026.10.
|
|
4
|
+
"version": "2026.10.23-dev",
|
|
4
5
|
"description": "decentralized, verifiable and platformless content management framework",
|
|
5
6
|
"repository": {
|
|
6
7
|
"type": "git",
|
|
@@ -86,4 +87,4 @@
|
|
|
86
87
|
}
|
|
87
88
|
}
|
|
88
89
|
}
|
|
89
|
-
}
|
|
90
|
+
}
|