@alphafi/alphafi-sdk 0.0.14 → 0.0.16

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,3 +1,4 @@
1
1
  import { SuiClient } from "@mysten/sui/client";
2
2
  export declare function getSuiNodeUrl(): string;
3
3
  export declare function getSuiClient(): SuiClient;
4
+ export declare function setSuiNodeUrl(rpcNodeUrl: string): void;
@@ -1,5 +1,5 @@
1
1
  import { SuiClient } from "@mysten/sui/client";
2
- import { PoolName } from "../..";
2
+ import { PoolName, SingleAssetPoolNames } from "../..";
3
3
  export declare function getAlphaPortfolioAmount(poolName: PoolName, options: {
4
4
  suiClient: SuiClient;
5
5
  address: string;
@@ -20,12 +20,12 @@ export declare function getDoubleAssetPortfolioAmountInUSD(poolName: PoolName, o
20
20
  address: string;
21
21
  isLocked?: boolean;
22
22
  }, ignoreCache?: boolean): Promise<string | undefined>;
23
- export declare function getSingleAssetPortfolioAmount(poolName: PoolName, options: {
23
+ export declare function getSingleAssetPortfolioAmount(poolName: SingleAssetPoolNames, options: {
24
24
  suiClient: SuiClient;
25
25
  address: string;
26
26
  isLocked?: boolean;
27
27
  }, ignoreCache?: boolean): Promise<number>;
28
- export declare function getSingleAssetPortfolioAmountInUSD(poolName: PoolName, options: {
28
+ export declare function getSingleAssetPortfolioAmountInUSD(poolName: SingleAssetPoolNames, options: {
29
29
  suiClient: SuiClient;
30
30
  address: string;
31
31
  isLocked?: boolean;
@@ -1,8 +1,10 @@
1
- import { AlphaPoolType, CetusInvestor, CetusPoolType, PoolName, PoolType, Receipt } from "../..";
2
- import Decimal from "decimal.js";
1
+ import { AlphaPoolType, CetusInvestor, NaviInvestor, CommonInvestorFields, CetusPoolType, PoolName, PoolType, Receipt, SingleAssetPoolNames, NaviVoloData } from "../..";
2
+ import { Decimal } from "decimal.js";
3
3
  export declare function getReceipts(poolName: string, address: string, ignoreCache?: boolean): Promise<Receipt[]>;
4
4
  export declare function getPoolExchangeRate(poolName: PoolName, ignoreCache?: boolean): Promise<Decimal | undefined>;
5
5
  export declare function getCoinAmountsFromLiquidity(poolName: PoolName, liquidity: number): Promise<[number, number]>;
6
6
  export declare function getPool(poolName: string, ignoreCache?: boolean): Promise<PoolType | AlphaPoolType | undefined>;
7
7
  export declare function getCetusPool(poolName: string, ignoreCache?: boolean): Promise<CetusPoolType | undefined>;
8
8
  export declare function getCetusInvestor(poolName: PoolName, ignoreCache?: boolean): Promise<CetusInvestor | undefined>;
9
+ export declare function getNaviInvestor(poolName: SingleAssetPoolNames, ignoreCache?: boolean): Promise<(NaviInvestor & CommonInvestorFields) | undefined>;
10
+ export declare function fetchVoloExchangeRate(ignoreCache?: boolean): Promise<NaviVoloData>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alphafi/alphafi-sdk",
3
- "version": "0.0.14",
3
+ "version": "0.0.16",
4
4
  "description": "AlphaFi SDK",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",