@fangorn-network/sdk 0.1.5 → 0.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.
Files changed (46) hide show
  1. package/lib/cli/cli.js +83 -46
  2. package/lib/cli/sell.d.ts +2 -2
  3. package/lib/cli/sell.js +15 -9
  4. package/lib/cli/stage.d.ts +21 -3
  5. package/lib/cli/stage.js +110 -24
  6. package/lib/config.d.ts +327 -1
  7. package/lib/config.js +11 -2
  8. package/lib/contracts/data-registry/abi.d.ts +42 -1
  9. package/lib/contracts/data-registry/abi.js +47 -1
  10. package/lib/contracts/data-registry/index.d.ts +45 -3
  11. package/lib/contracts/data-registry/index.js +69 -14
  12. package/lib/contracts/data-registry/mmr.d.ts +9 -2
  13. package/lib/contracts/data-registry/mmr.js +6 -2
  14. package/lib/contracts/index.d.ts +2 -2
  15. package/lib/contracts/index.js +2 -2
  16. package/lib/contracts/settlement-registry/abi.d.ts +1 -1
  17. package/lib/contracts/settlement-registry/abi.js +1 -1
  18. package/lib/contracts/write.d.ts +29 -5
  19. package/lib/contracts/write.js +78 -12
  20. package/lib/crypto/encryption.js +3 -0
  21. package/lib/crypto/paid.d.ts +1 -1
  22. package/lib/crypto/paid.js +4 -1
  23. package/lib/engine/index.d.ts +23 -4
  24. package/lib/engine/index.js +49 -21
  25. package/lib/engine/records.d.ts +9 -1
  26. package/lib/engine/records.js +32 -6
  27. package/lib/erc8004.d.ts +1 -1
  28. package/lib/erc8004.js +12 -4
  29. package/lib/fangorn.d.ts +12 -2
  30. package/lib/fangorn.js +38 -17
  31. package/lib/feed.d.ts +23 -2
  32. package/lib/feed.js +43 -6
  33. package/lib/index.d.ts +3 -3
  34. package/lib/index.js +4 -4
  35. package/lib/providers/storage/index.js +1 -1
  36. package/lib/providers/storage/pinata.js +14 -6
  37. package/lib/providers/storage/signed-url.js +21 -8
  38. package/lib/providers/storage/types.d.ts +9 -1
  39. package/lib/providers/storage/types.js +54 -1
  40. package/lib/providers/storage/utils.d.ts +3 -1
  41. package/lib/providers/storage/utils.js +3 -3
  42. package/lib/test/mem-registry.d.ts +3 -3
  43. package/lib/test/mem-registry.js +7 -5
  44. package/lib/test/testbed.d.ts +5190 -5190
  45. package/lib/test/testbed.js +1 -1
  46. package/package.json +6 -3
@@ -37,7 +37,7 @@ function memoryNetwork(Registry = MemRegistry) {
37
37
  };
38
38
  }
39
39
  /** The contracts checkout. Override with FANGORN_CONTRACTS_DIR. */
40
- const CONTRACTS = process.env.FANGORN_CONTRACTS_DIR ?? resolve(import.meta.dirname, "../../../contracts/solidity");
40
+ const CONTRACTS = process.env.FANGORN_CONTRACTS_DIR ?? resolve(import.meta.dirname, "../../../contracts");
41
41
  const has = (cmd) => spawnSync(cmd, ["--version"]).status === 0;
42
42
  /**
43
43
  * Without anvil, forge or the contracts checkout, a chain suite shows as
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fangorn-network/sdk",
3
- "version": "0.1.5",
4
- "description": "decentralized, verifiable and platformless content management framework",
3
+ "version": "0.2.0",
4
+ "description": "decentralized, verifiable and platformless version control for data",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/fangorn-network/fangorn.git"
@@ -38,9 +38,10 @@
38
38
  "@noble/ciphers": "^1.3.0",
39
39
  "@noble/curves": "^1.2.0",
40
40
  "@types/node": "24.10.1",
41
- "@vitest/coverage-v8": "4.0.15",
41
+ "@vitest/coverage-v8": "4.0.18",
42
42
  "@vitest/eslint-plugin": "1.5.1",
43
43
  "eslint": "9.39.1",
44
+ "fast-check": "^4",
44
45
  "husky": "9.1.7",
45
46
  "lint-staged": "16.2.7",
46
47
  "prettier": "3.7.3",
@@ -58,12 +59,14 @@
58
59
  "@clack/prompts": "^1.0.1",
59
60
  "@ipld/car": "^5.4.6",
60
61
  "@ipld/dag-cbor": "^10.0.1",
62
+ "@ipld/dag-pb": "4.1.5",
61
63
  "@ipld/unixfs": "^3.0.0",
62
64
  "@noble/ciphers": "^1.3.0",
63
65
  "@noble/curves": "^1.9.7",
64
66
  "@noble/hashes": "^2.2.0",
65
67
  "commander": "^14.0.3",
66
68
  "dotenv": "^17.2.3",
69
+ "ipfs-unixfs": "11",
67
70
  "multiformats": "^14.0.0",
68
71
  "pinata": "^2.5.2",
69
72
  "viem": "^2.47.1"