@alphafi/alphafi-sdk 0.0.4 → 0.0.6
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 +2 -2
- package/dist/common/alphaTypes.d.ts +110 -0
- package/dist/common/alphaTypes.d.ts.map +1 -0
- package/dist/common/types.d.ts +50 -1
- package/dist/common/types.d.ts.map +1 -1
- package/dist/functions.d.ts +6 -0
- package/dist/functions.d.ts.map +1 -1
- package/dist/getAirdropShare.d.ts +5 -0
- package/dist/getAirdropShare.d.ts.map +1 -0
- package/dist/getVaults.d.ts.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/vaultFunctions.d.ts +15 -0
- package/dist/vaultFunctions.d.ts.map +1 -0
- package/package.json +4 -3
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { SuiClient } from "@mysten/sui/client";
|
|
2
|
+
import { LpBreakdownType, PoolName, RebalanceHistoryType } from "./common/types";
|
|
3
|
+
export declare function alphaLpBreakdown(poolName: PoolName, options: {
|
|
4
|
+
suiClient: SuiClient;
|
|
5
|
+
}): Promise<LpBreakdownType | undefined>;
|
|
6
|
+
export declare function cetusLpBreakdown(poolName: PoolName, options: {
|
|
7
|
+
suiClient: SuiClient;
|
|
8
|
+
}): Promise<LpBreakdownType | undefined>;
|
|
9
|
+
export declare function fetchRebalanceHistory(poolName: PoolName, options: {
|
|
10
|
+
suiClient: SuiClient;
|
|
11
|
+
}): Promise<RebalanceHistoryType[]>;
|
|
12
|
+
export declare function lastAutocompoundTime(poolName: PoolName, options: {
|
|
13
|
+
suiClient: SuiClient;
|
|
14
|
+
}): Promise<string | null | undefined>;
|
|
15
|
+
//# sourceMappingURL=vaultFunctions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vaultFunctions.d.ts","sourceRoot":"","sources":["../src/vaultFunctions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgC,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC7E,OAAO,EAEL,eAAe,EACf,QAAQ,EACR,oBAAoB,EAErB,MAAM,gBAAgB,CAAC;AAWxB,wBAAsB,gBAAgB,CACpC,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE;IACP,SAAS,EAAE,SAAS,CAAC;CACtB,GACA,OAAO,CAAC,eAAe,GAAG,SAAS,CAAC,CA+BtC;AAED,wBAAsB,gBAAgB,CACpC,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE;IACP,SAAS,EAAE,SAAS,CAAC;CACtB,GACA,OAAO,CAAC,eAAe,GAAG,SAAS,CAAC,CA4BtC;AAED,wBAAsB,qBAAqB,CACzC,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE;IACP,SAAS,EAAE,SAAS,CAAC;CACtB,GACA,OAAO,CAAC,oBAAoB,EAAE,CAAC,CAgEjC;AAED,wBAAsB,oBAAoB,CACxC,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE;IACP,SAAS,EAAE,SAAS,CAAC;CACtB,GACA,OAAO,CAAC,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC,CAapC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alphafi/alphafi-sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"description": "AlphaFi SDK",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"blockchain",
|
|
15
15
|
"defi"
|
|
16
16
|
],
|
|
17
|
-
"author": "AlphaFi
|
|
17
|
+
"author": "AlphaFi Team <hello@alphafi.xyz> (https://alphafi.xyz/)",
|
|
18
18
|
"license": "ISC",
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@babel/preset-env": "^7.25.3",
|
|
@@ -42,9 +42,10 @@
|
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@cetusprotocol/cetus-sui-clmm-sdk": "^5.1.2",
|
|
45
|
-
"@mysten/sui": "^1.
|
|
45
|
+
"@mysten/sui": "^1.5.0",
|
|
46
46
|
"axios": "^1.7.2",
|
|
47
47
|
"bn.js": "^5.2.1",
|
|
48
|
+
"decimal.js": "^10.4.3",
|
|
48
49
|
"ts-node": "^10.9.2",
|
|
49
50
|
"tsx": "^4.16.3"
|
|
50
51
|
},
|