@alphafi/alphafi-sdk 0.0.16 → 0.0.18

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.
@@ -1,4 +1,19 @@
1
1
  import { SuiClient } from "@mysten/sui/client";
2
+ /**
3
+ * Get the current Sui node URL.
4
+ * If no URL has been set, it defaults to the mainnet full node URL.
5
+ */
2
6
  export declare function getSuiNodeUrl(): string;
7
+ /**
8
+ * Get the SuiClient instance.
9
+ * If a new URL has been set via setSuiNodeUrl, it will create a new instance with the updated URL.
10
+ */
3
11
  export declare function getSuiClient(): SuiClient;
12
+ /**
13
+ * Set a new Sui node URL.
14
+ * This will invalidate the current SuiClient instance, ensuring that
15
+ * the next call to getSuiClient returns a new instance with the updated URL.
16
+ *
17
+ * @param rpcNodeUrl - The new RPC URL for the Sui client.
18
+ */
4
19
  export declare function setSuiNodeUrl(rpcNodeUrl: string): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alphafi/alphafi-sdk",
3
- "version": "0.0.16",
3
+ "version": "0.0.18",
4
4
  "description": "AlphaFi SDK",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",