@fangorn-network/sdk 2026.4.15 → 2026.4.22
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 +8 -9
- package/lib/cli/index.d.ts +170 -170
- package/lib/config.d.ts +257 -257
- package/lib/config.js +3 -3
- package/lib/registries/datasource-registry/index.d.ts +2 -2
- package/lib/registries/schema-registry/index.d.ts +2 -2
- package/lib/registries/settlement-registry/index.d.ts +2 -2
- package/package.json +1 -1
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: "0x0e61ca2dbba225580aeab641ab43d623bf5c7e5f",
|
|
30
|
+
schemaRegistryContractAddress: "0x4615b03ccaf5e834490a94211e129e6ee8ec6604",
|
|
31
|
+
settlementRegistryContractAddress: "0x0309df3ccb232023934b68c9ed068dec74be42cc",
|
|
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 viem258 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<viem258.TransactionReceipt>;
|
|
27
27
|
private estimateGas;
|
|
28
28
|
}
|
|
29
29
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as viem257 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<viem257.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 viem431 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<viem431.TransactionReceipt>;
|
|
63
63
|
/**
|
|
64
64
|
* Reconstruct the Semaphore group from MemberRegistered events.
|
|
65
65
|
*/
|