@fangorn-network/sdk 2026.4.15 → 2026.4.22-1
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
CHANGED
|
@@ -127,19 +127,18 @@ import { Fangorn, FangornConfig } from "@fangorn-network/sdk";
|
|
|
127
127
|
|
|
128
128
|
const fangorn = await Fangorn.create({
|
|
129
129
|
privateKey: "0x...",
|
|
130
|
-
storage: { pinata: { jwt: "...", gateway: "https://your-gateway.mypinata.cloud" } },
|
|
131
130
|
workerUrl: "https://your-worker.workers.dev",
|
|
132
131
|
config: FangornConfig.ArbitrumSepolia,
|
|
133
132
|
domain: "localhost",
|
|
134
133
|
});
|
|
135
134
|
```
|
|
136
135
|
|
|
137
|
-
|
|
136
|
+
### Storage
|
|
138
137
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
138
|
+
Fangorn operates on a 'Bring Your Own Storage' basis.
|
|
139
|
+
|
|
140
|
+
- Schema definitions and schema-conformant data sets live in IPFS using Pinata.
|
|
141
|
+
- Storage of data that should be guarded via Fangorn can live in any database desired, be it S3 or within IPFS. At present, the implementation only supports Cloudflare R2.
|
|
143
142
|
|
|
144
143
|
Storage is used for schemas and manifests only. Content itself lives in your storage backend (R2 etc.) and is never handled by the SDK directly.
|
|
145
144
|
|
|
@@ -313,9 +312,9 @@ See the [fangorn-access-worker](https://github.com/fangorn-network/webworker) re
|
|
|
313
312
|
|
|
314
313
|
| Contract | Address |
|
|
315
314
|
| ------------------- | -------------------------------------------- |
|
|
316
|
-
| DataSource Registry | `
|
|
317
|
-
| Schema Registry | `
|
|
318
|
-
| Settlement Registry | `
|
|
315
|
+
| DataSource Registry | `0xe8a5906825680a5816a7f28f2a0fa2d9ceec3755` |
|
|
316
|
+
| Schema Registry | `0x267084865813550d9d97d3842c4a2d33a872908f` |
|
|
317
|
+
| Settlement Registry | `0x1d21545f536a2f026348477960ca59f9f1d7fabd` |
|
|
319
318
|
|
|
320
319
|
---
|
|
321
320
|
|
package/lib/config.d.ts
CHANGED
|
@@ -758,9 +758,9 @@ interface AppConfig {
|
|
|
758
758
|
}
|
|
759
759
|
declare const FangornConfig: {
|
|
760
760
|
ArbitrumSepolia: {
|
|
761
|
-
dataSourceRegistryContractAddress: "
|
|
762
|
-
schemaRegistryContractAddress: "
|
|
763
|
-
settlementRegistryContractAddress: "
|
|
761
|
+
dataSourceRegistryContractAddress: "0xe8a5906825680a5816a7f28f2a0fa2d9ceec3755";
|
|
762
|
+
schemaRegistryContractAddress: "0x267084865813550d9d97d3842c4a2d33a872908f";
|
|
763
|
+
settlementRegistryContractAddress: "0x1d21545f536a2f026348477960ca59f9f1d7fabd";
|
|
764
764
|
chainName: string;
|
|
765
765
|
chain: {
|
|
766
766
|
blockExplorers: {
|
package/lib/config.js
CHANGED
|
@@ -26,9 +26,9 @@ function getNetwork(name) {
|
|
|
26
26
|
}
|
|
27
27
|
const FangornConfig = {
|
|
28
28
|
ArbitrumSepolia: {
|
|
29
|
-
dataSourceRegistryContractAddress: "
|
|
30
|
-
schemaRegistryContractAddress: "
|
|
31
|
-
settlementRegistryContractAddress: "
|
|
29
|
+
dataSourceRegistryContractAddress: "0xe8a5906825680a5816a7f28f2a0fa2d9ceec3755",
|
|
30
|
+
schemaRegistryContractAddress: "0x267084865813550d9d97d3842c4a2d33a872908f",
|
|
31
|
+
settlementRegistryContractAddress: "0x1d21545f536a2f026348477960ca59f9f1d7fabd",
|
|
32
32
|
chainName: "arbitrumSepolia",
|
|
33
33
|
chain: arbitrumSepolia,
|
|
34
34
|
rpcUrl: "https://sepolia-rollup.arbitrum.io/rpc",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as viem172 from "viem";
|
|
2
2
|
import { Address, Hash, Hex, PublicClient, WalletClient } from "viem";
|
|
3
3
|
|
|
4
4
|
//#region src/registries/datasource-registry/index.d.ts
|
|
@@ -23,7 +23,7 @@ declare class DataSourceRegistry {
|
|
|
23
23
|
resourceId(owner: Address, schemaId: Hex, name: string): Promise<Hex>;
|
|
24
24
|
static resourceIdLocal(owner: Address, schemaId: Hex, name: string): Hex;
|
|
25
25
|
hashName(name: string): Hex;
|
|
26
|
-
waitForTransaction(hash: Hash): Promise<
|
|
26
|
+
waitForTransaction(hash: Hash): Promise<viem172.TransactionReceipt>;
|
|
27
27
|
private estimateGas;
|
|
28
28
|
}
|
|
29
29
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as viem173 from "viem";
|
|
2
2
|
import { Address, Hash, Hex, PublicClient, WalletClient } from "viem";
|
|
3
3
|
|
|
4
4
|
//#region src/registries/schema-registry/index.d.ts
|
|
@@ -27,7 +27,7 @@ declare class SchemaRegistry {
|
|
|
27
27
|
hasPublishers(nameOrId: string): Promise<boolean>;
|
|
28
28
|
isPublisher(nameOrId: string, publisher: Address): Promise<boolean>;
|
|
29
29
|
getPublisherCount(nameOrId: string): Promise<bigint>;
|
|
30
|
-
waitForTransaction(hash: Hash): Promise<
|
|
30
|
+
waitForTransaction(hash: Hash): Promise<viem173.TransactionReceipt>;
|
|
31
31
|
private resolveId;
|
|
32
32
|
}
|
|
33
33
|
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PrepareSettleParams, PrepareSettleResult, RegisterParams, SettleParams, TransferWithAuthParams, TransferWithAuthPayload } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as viem171 from "viem";
|
|
3
3
|
import { Address, Hex, PublicClient, WalletClient } from "viem";
|
|
4
4
|
|
|
5
5
|
//#region src/registries/settlement-registry/index.d.ts
|
|
@@ -59,7 +59,7 @@ declare class SettlementRegistry {
|
|
|
59
59
|
getGroupId(resourceId: Hex): Promise<bigint>;
|
|
60
60
|
getPrice(resourceId: Hex): Promise<bigint>;
|
|
61
61
|
getOwner(resourceId: Hex): Promise<Address>;
|
|
62
|
-
waitForTransaction(hash: Hex): Promise<
|
|
62
|
+
waitForTransaction(hash: Hex): Promise<viem171.TransactionReceipt>;
|
|
63
63
|
/**
|
|
64
64
|
* Reconstruct the Semaphore group from MemberRegistered events.
|
|
65
65
|
*/
|