@sonarwatch/portfolio-plugins 0.12.164 → 0.12.165
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +4 -0
- package/package.json +1 -1
- package/src/index.js +4 -4
- package/src/index.js.map +1 -1
- package/src/plugins/abex/types.d.ts +5 -12
- package/src/plugins/aftermath/types.d.ts +2 -6
- package/src/plugins/alphafi/types.d.ts +1 -3
- package/src/plugins/bucket/types.d.ts +2 -3
- package/src/plugins/cetus/clmmsFetcher.js +3 -3
- package/src/plugins/cetus/clmmsFetcher.js.map +1 -1
- package/src/plugins/cetus/constants.d.ts +2 -0
- package/src/plugins/cetus/constants.js +5 -1
- package/src/plugins/cetus/constants.js.map +1 -1
- package/src/plugins/cetus/farmsFetcher.js +118 -0
- package/src/plugins/cetus/farmsFetcher.js.map +1 -0
- package/src/plugins/cetus/helpers.js +3 -2
- package/src/plugins/cetus/helpers.js.map +1 -1
- package/src/plugins/cetus/index.js +4 -2
- package/src/plugins/cetus/index.js.map +1 -1
- package/src/plugins/cetus/types.d.ts +92 -3
- package/src/plugins/cetus/types.js.map +1 -1
- package/src/plugins/cetus/vaultsJob.d.ts +3 -0
- package/src/plugins/cetus/vaultsJob.js +101 -0
- package/src/plugins/cetus/vaultsJob.js.map +1 -0
- package/src/plugins/drift/index.js +2 -1
- package/src/plugins/drift/index.js.map +1 -1
- package/src/plugins/flowx/stakingPoolV3Fetcher.js +2 -2
- package/src/plugins/flowx/stakingPoolV3Fetcher.js.map +1 -1
- package/src/plugins/flowx/types.d.ts +2 -3
- package/src/plugins/haedal/types.d.ts +1 -3
- package/src/plugins/jewel/types.d.ts +1 -3
- package/src/plugins/kai/types.d.ts +3 -6
- package/src/plugins/kriya/types.d.ts +1 -3
- package/src/plugins/kriya/types.js.map +1 -1
- package/src/plugins/{flexlend → lulo}/constants.d.ts +1 -1
- package/src/plugins/{flexlend → lulo}/constants.js +2 -2
- package/src/plugins/lulo/constants.js.map +1 -0
- package/src/plugins/lulo/depositsFetcher.js.map +1 -0
- package/src/plugins/{flexlend → lulo}/helpers.js +1 -1
- package/src/plugins/lulo/helpers.js.map +1 -0
- package/src/plugins/{flexlend → lulo}/index.js +6 -1
- package/src/plugins/lulo/index.js.map +1 -0
- package/src/plugins/lulo/liftFetcher.d.ts +3 -0
- package/src/plugins/{flexlend → lulo}/liftFetcher.js +1 -1
- package/src/plugins/lulo/liftFetcher.js.map +1 -0
- package/src/plugins/lulo/rewardsFetcher.d.ts +3 -0
- package/src/plugins/lulo/rewardsFetcher.js +38 -0
- package/src/plugins/lulo/rewardsFetcher.js.map +1 -0
- package/src/plugins/lulo/struct.js.map +1 -0
- package/src/plugins/navi/types.d.ts +4 -9
- package/src/plugins/scallop/types/basic.d.ts +2 -3
- package/src/plugins/scallop/types/data.d.ts +1 -3
- package/src/plugins/tokens/fetchers/sui.js +1 -8
- package/src/plugins/tokens/fetchers/sui.js.map +1 -1
- package/src/plugins/tradeport/types.d.ts +1 -4
- package/src/plugins/turbos/clmmVaultFetcher.js +2 -2
- package/src/plugins/turbos/clmmVaultFetcher.js.map +1 -1
- package/src/plugins/turbos/clmmsPositionsFetcher.js +2 -1
- package/src/plugins/turbos/clmmsPositionsFetcher.js.map +1 -1
- package/src/plugins/turbos/helper.d.ts +0 -1
- package/src/plugins/turbos/helper.js +1 -6
- package/src/plugins/turbos/helper.js.map +1 -1
- package/src/plugins/turbos/types.d.ts +2 -6
- package/src/plugins/typus/constants.d.ts +8 -0
- package/src/plugins/typus/constants.js +12 -1
- package/src/plugins/typus/constants.js.map +1 -1
- package/src/plugins/typus/index.js +4 -2
- package/src/plugins/typus/index.js.map +1 -1
- package/src/plugins/typus/safuFetcher.d.ts +3 -0
- package/src/plugins/typus/safuFetcher.js +97 -0
- package/src/plugins/typus/safuFetcher.js.map +1 -0
- package/src/plugins/typus/safuVaultsJob.d.ts +3 -0
- package/src/plugins/typus/safuVaultsJob.js +30 -0
- package/src/plugins/typus/safuVaultsJob.js.map +1 -0
- package/src/plugins/typus/safu_helpers.d.ts +8 -0
- package/src/plugins/typus/safu_helpers.js +205 -0
- package/src/plugins/typus/safu_helpers.js.map +1 -0
- package/src/plugins/typus/safu_types.d.ts +55 -0
- package/src/plugins/typus/safu_types.js +3 -0
- package/src/plugins/typus/safu_types.js.map +1 -0
- package/src/plugins/typus/types.d.ts +1 -3
- package/src/utils/sui/bitsToNumber.d.ts +1 -0
- package/src/utils/sui/bitsToNumber.js +11 -0
- package/src/utils/sui/bitsToNumber.js.map +1 -0
- package/src/utils/sui/structs/id.d.ts +3 -0
- package/src/utils/sui/structs/id.js +3 -0
- package/src/utils/sui/structs/id.js.map +1 -0
- package/src/utils/sui/structs/nft.d.ts +2 -3
- package/src/utils/sui/types.d.ts +2 -3
- package/src/plugins/flexlend/constants.js.map +0 -1
- package/src/plugins/flexlend/depositsFetcher.js.map +0 -1
- package/src/plugins/flexlend/helpers.js.map +0 -1
- package/src/plugins/flexlend/index.js.map +0 -1
- package/src/plugins/flexlend/liftFetcher.js.map +0 -1
- package/src/plugins/flexlend/struct.js.map +0 -1
- /package/src/plugins/{flexlend/depositsFetcher.d.ts → cetus/farmsFetcher.d.ts} +0 -0
- /package/src/plugins/{flexlend/liftFetcher.d.ts → lulo/depositsFetcher.d.ts} +0 -0
- /package/src/plugins/{flexlend → lulo}/depositsFetcher.js +0 -0
- /package/src/plugins/{flexlend → lulo}/helpers.d.ts +0 -0
- /package/src/plugins/{flexlend → lulo}/index.d.ts +0 -0
- /package/src/plugins/{flexlend → lulo}/struct.d.ts +0 -0
- /package/src/plugins/{flexlend → lulo}/struct.js +0 -0
package/CHANGELOG.md
CHANGED
@@ -2,6 +2,10 @@
|
|
2
2
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
4
4
|
|
5
|
+
## [0.12.165](https://github.com/sonarwatch/portfolio/compare/plugins-0.12.164...plugins-0.12.165) (2024-09-13)
|
6
|
+
|
7
|
+
|
8
|
+
|
5
9
|
## [0.12.164](https://github.com/sonarwatch/portfolio/compare/plugins-0.12.163...plugins-0.12.164) (2024-09-10)
|
6
10
|
|
7
11
|
|
package/package.json
CHANGED
package/src/index.js
CHANGED
@@ -64,7 +64,7 @@ const paraswap_1 = require("./plugins/paraswap");
|
|
64
64
|
const hawksight_1 = require("./plugins/hawksight");
|
65
65
|
const daos_1 = require("./plugins/daos");
|
66
66
|
const maple_1 = require("./plugins/maple");
|
67
|
-
const
|
67
|
+
const lulo_1 = require("./plugins/lulo");
|
68
68
|
const fluxbeam_1 = require("./plugins/fluxbeam");
|
69
69
|
const jupiter_1 = require("./plugins/jupiter");
|
70
70
|
const zeta_1 = require("./plugins/zeta");
|
@@ -195,7 +195,7 @@ exports.platforms = [
|
|
195
195
|
...hawksight_1.platforms,
|
196
196
|
...daos_1.platforms,
|
197
197
|
...maple_1.platforms,
|
198
|
-
...
|
198
|
+
...lulo_1.platforms,
|
199
199
|
...fluxbeam_1.platforms,
|
200
200
|
...zeta_1.platforms,
|
201
201
|
...venus_1.platforms,
|
@@ -308,7 +308,7 @@ exports.jobs = [
|
|
308
308
|
...paraswap_1.jobs,
|
309
309
|
...daos_1.jobs,
|
310
310
|
...maple_1.jobs,
|
311
|
-
...
|
311
|
+
...lulo_1.jobs,
|
312
312
|
...fluxbeam_1.jobs,
|
313
313
|
...jupiter_1.jobs,
|
314
314
|
...zeta_1.jobs,
|
@@ -424,7 +424,7 @@ exports.fetchers = [
|
|
424
424
|
...hawksight_1.fetchers,
|
425
425
|
...daos_1.fetchers,
|
426
426
|
...maple_1.fetchers,
|
427
|
-
...
|
427
|
+
...lulo_1.fetchers,
|
428
428
|
...fluxbeam_1.fetchers,
|
429
429
|
...jupiter_1.fetchers,
|
430
430
|
...zeta_1.fetchers,
|
package/src/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/plugins/src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAIA,wFAAqF;AACrF,wEAAgD;AAChD,6CAI0B;AAC1B,yDAIgC;AAChC,uDAAgE;AAChE,iDAG4B;AAC5B,iDAI4B;AAC5B,2CAGyB;AACzB,yCAIwB;AACxB,+CAI2B;AAC3B,yCAIwB;AACxB,+CAI2B;AAC3B,2CAIyB;AACzB,6CAI0B;AAC1B,2CAIyB;AACzB,6CAG0B;AAC1B,6CAI0B;AAC1B,yCAIwB;AACxB,2DAGiC;AACjC,6CAI0B;AAC1B,2CAKyB;AACzB,2CAIyB;AACzB,qDAA6D;AAC7D,qEAIsC;AACtC,uDAI+B;AAC/B,mDAI6B;AAC7B,qDAG8B;AAC9B,uDAG+B;AAC/B,2CAIyB;AACzB,6CAK0B;AAC1B,6CAG0B;AAC1B,yCAIwB;AACxB,+CAI2B;AAC3B,uDAG+B;AAC/B,yCAGwB;AACxB,2CAIyB;AACzB,iDAI4B;AAC5B,iDAI4B;AAC5B,6CAI0B;AAC1B,+CAI2B;AAC3B,qDAG8B;AAC9B,iDAI4B;AAC5B,iDAI4B;AAC5B,mDAG6B;AAC7B,yCAIwB;AACxB,2CAIyB;AACzB,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/plugins/src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAIA,wFAAqF;AACrF,wEAAgD;AAChD,6CAI0B;AAC1B,yDAIgC;AAChC,uDAAgE;AAChE,iDAG4B;AAC5B,iDAI4B;AAC5B,2CAGyB;AACzB,yCAIwB;AACxB,+CAI2B;AAC3B,yCAIwB;AACxB,+CAI2B;AAC3B,2CAIyB;AACzB,6CAI0B;AAC1B,2CAIyB;AACzB,6CAG0B;AAC1B,6CAI0B;AAC1B,yCAIwB;AACxB,2DAGiC;AACjC,6CAI0B;AAC1B,2CAKyB;AACzB,2CAIyB;AACzB,qDAA6D;AAC7D,qEAIsC;AACtC,uDAI+B;AAC/B,mDAI6B;AAC7B,qDAG8B;AAC9B,uDAG+B;AAC/B,2CAIyB;AACzB,6CAK0B;AAC1B,6CAG0B;AAC1B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ACnB,GAAG,oBAAiB;IACpB,GAAG,gBAAa;IAChB,GAAG,kBAAe;IAClB,GAAG,cAAW;IACd,GAAG,mBAAgB;IACnB,GAAG,eAAY;IACf,GAAG,iBAAc;IACjB,GAAG,eAAY;IACf,GAAG,oBAAiB;IACpB,GAAG,gBAAa;IAChB,GAAG,oBAAiB;IACpB,GAAG,gBAAa;IAChB,GAAG,iBAAc;IACjB,GAAG,gBAAa;IAChB,GAAG,gBAAa;IAChB,GAAG,eAAY;IACf,GAAG,kBAAe;IAClB,GAAG,kBAAe;IAClB,GAAG,mBAAgB;IACnB,GAAG,uBAAoB;IACvB,GAAG,mBAAgB;IACnB,GAAG,iBAAc;IACjB,GAAG,mBAAgB;IACnB,GAAG,kBAAe;IAClB,GAAG,iBAAc;IACjB,GAAG,iBAAc;IACjB,GAAG,kBAAe;IAClB,GAAG,oBAAiB;IACpB,GAAG,8BAA2B;IAC9B,GAAG,oBAAiB;IACpB,GAAG,kBAAe;IAClB,GAAG,kBAAe;IAClB,GAAG,kBAAe;IAClB,GAAG,iBAAc;IACjB,GAAG,mBAAgB;IACnB,GAAG,mBAAgB;IACnB,GAAG,gBAAa;IAChB,GAAG,mBAAgB;IACnB,GAAG,kBAAe;IAClB,GAAG,gBAAa;IAChB,GAAG,oBAAiB;CACrB,CAAC;AACW,QAAA,uBAAuB,GAAG,IAAA,uDAA0B,EAAC,gBAAQ,CAAC,CAAC;AAE/D,QAAA,eAAe,GAAqB;IAC/C,GAAG,yBAAsB;IACzB,GAAG,wBAAqB;IACxB,GAAG,yBAAsB;IACzB,sBAAmB;IACnB,sBAAmB;IACnB,yBAAsB;IACtB,sBAAmB;IACnB,GAAG,0BAAuB;CAC3B,CAAC;AACW,QAAA,8BAA8B,GACzC,IAAA,uDAA0B,EAAC,uBAAe,CAAC,CAAC"}
|
@@ -1,8 +1,7 @@
|
|
1
|
+
import { ID } from '../../utils/sui/structs/id';
|
1
2
|
export type Credential = {
|
2
3
|
acc_reward_per_share: string;
|
3
|
-
id:
|
4
|
-
id: string;
|
5
|
-
};
|
4
|
+
id: ID;
|
6
5
|
lock_until: string;
|
7
6
|
stake: string;
|
8
7
|
};
|
@@ -10,9 +9,7 @@ export type Pool = {
|
|
10
9
|
acc_reward_per_share: string;
|
11
10
|
enabled: boolean;
|
12
11
|
end_time: string;
|
13
|
-
id:
|
14
|
-
id: string;
|
15
|
-
};
|
12
|
+
id: ID;
|
16
13
|
last_updated_time: string;
|
17
14
|
lock_duration: string;
|
18
15
|
reward: string;
|
@@ -21,9 +18,7 @@ export type Pool = {
|
|
21
18
|
};
|
22
19
|
export type AlpMarket = {
|
23
20
|
fun_mask: string;
|
24
|
-
id:
|
25
|
-
id: string;
|
26
|
-
};
|
21
|
+
id: ID;
|
27
22
|
lp_supply: {
|
28
23
|
type: string;
|
29
24
|
fields: {
|
@@ -32,9 +27,7 @@ export type AlpMarket = {
|
|
32
27
|
};
|
33
28
|
};
|
34
29
|
export type Market = {
|
35
|
-
id:
|
36
|
-
id: string;
|
37
|
-
};
|
30
|
+
id: ID;
|
38
31
|
name: {
|
39
32
|
type: string;
|
40
33
|
fields: {
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { ID } from '../../utils/sui/structs/id';
|
1
2
|
export type Pool = {
|
2
3
|
id: {
|
3
4
|
id: string;
|
@@ -14,9 +15,7 @@ export type PoolInfo = {
|
|
14
15
|
fees_swap_out: string[];
|
15
16
|
fees_withdraw: string[];
|
16
17
|
flatness: string;
|
17
|
-
id:
|
18
|
-
id: string;
|
19
|
-
};
|
18
|
+
id: ID;
|
20
19
|
illiquid_lp_supply: string;
|
21
20
|
lp_decimal_scalar: string;
|
22
21
|
lp_decimals: number;
|
@@ -45,9 +44,6 @@ export type StakingPosition = {
|
|
45
44
|
multiplier_rewards_debt: string[];
|
46
45
|
multiplier_staked_amount: string;
|
47
46
|
};
|
48
|
-
export type ID = {
|
49
|
-
id: string;
|
50
|
-
};
|
51
47
|
export type PoolFactory = {
|
52
48
|
id: {
|
53
49
|
id: string;
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import BigNumber from 'bignumber.js';
|
2
|
+
import { ID } from '../../utils/sui/structs/id';
|
2
3
|
export type Receipt = {
|
3
4
|
id: {
|
4
5
|
id: string;
|
@@ -121,9 +122,6 @@ export type Fields = {
|
|
121
122
|
id: ID;
|
122
123
|
size: string;
|
123
124
|
};
|
124
|
-
export type ID = {
|
125
|
-
id: string;
|
126
|
-
};
|
127
125
|
export type AlphaPoolInfo = {
|
128
126
|
tokenAmountA: BigNumber;
|
129
127
|
tokenAmountB?: BigNumber;
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { ID } from '../../utils/sui/structs/id';
|
1
2
|
export type CollateralFields = {
|
2
3
|
id: string;
|
3
4
|
name: string;
|
@@ -11,9 +12,7 @@ export type CollateralFields = {
|
|
11
12
|
fields: {
|
12
13
|
buck_amount: string;
|
13
14
|
collateral_amount: string;
|
14
|
-
id:
|
15
|
-
id: string;
|
16
|
-
};
|
15
|
+
id: ID;
|
17
16
|
reward_coll_snapshot: string;
|
18
17
|
reward_debt_snapshot: string;
|
19
18
|
stake_amount: string;
|
@@ -66,7 +66,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
66
66
|
if ((_b = (_a = poolObj.data) === null || _a === void 0 ? void 0 : _a.content) === null || _b === void 0 ? void 0 : _b.fields) {
|
67
67
|
const pool = (0, helpers_1.getPoolFromObject)(poolObj);
|
68
68
|
poolsById.set(poolObj.data.objectId, pool);
|
69
|
-
mints.push(pool.coinTypeA, pool.coinTypeB);
|
69
|
+
mints.push((0, portfolio_core_1.formatMoveTokenAddress)(pool.coinTypeA), (0, portfolio_core_1.formatMoveTokenAddress)(pool.coinTypeB));
|
70
70
|
}
|
71
71
|
});
|
72
72
|
const tokenPriceById = yield cache.getTokenPricesAsMap(mints, portfolio_core_1.NetworkId.sui);
|
@@ -77,11 +77,11 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
77
77
|
if (!pool)
|
78
78
|
continue;
|
79
79
|
const { tokenAmountA, tokenAmountB } = (0, tokenAmountFromLiquidity_1.getTokenAmountsFromLiquidity)(new bignumber_js_1.default(clmmPosition.liquidity), pool.current_tick_index, clmmPosition.tick_lower_index, clmmPosition.tick_upper_index, false);
|
80
|
-
const tokenPriceA = tokenPriceById.get(pool.coinTypeA);
|
80
|
+
const tokenPriceA = tokenPriceById.get((0, portfolio_core_1.formatMoveTokenAddress)(pool.coinTypeA));
|
81
81
|
if (!tokenPriceA)
|
82
82
|
continue;
|
83
83
|
const assetTokenA = (0, tokenPriceToAssetToken_1.default)(pool.coinTypeA, tokenAmountA.dividedBy(Math.pow(10, tokenPriceA.decimals)).toNumber(), portfolio_core_1.NetworkId.sui, tokenPriceA);
|
84
|
-
const tokenPriceB = tokenPriceById.get(pool.coinTypeB);
|
84
|
+
const tokenPriceB = tokenPriceById.get((0, portfolio_core_1.formatMoveTokenAddress)(pool.coinTypeB));
|
85
85
|
if (!tokenPriceB)
|
86
86
|
continue;
|
87
87
|
const assetTokenB = (0, tokenPriceToAssetToken_1.default)(pool.coinTypeB, tokenAmountB.dividedBy(Math.pow(10, tokenPriceB.decimals)).toNumber(), portfolio_core_1.NetworkId.sui, tokenPriceB);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"clmmsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/cetus/clmmsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+
|
1
|
+
{"version":3,"file":"clmmsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/cetus/clmmsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAKoC;AACpC,gEAAqC;AAGrC,2CAAsE;AACtE,iDAAmD;AACnD,uCAImB;AAGnB,qGAA6E;AAC7E,wFAAyF;AACzF,qEAAkE;AAClE,qEAAkE;AAElE,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAA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I,EAAE,qCAAoB,CAAC,SAAS;YACpC,SAAS,EAAE,0BAAS,CAAC,GAAG;YACxB,UAAU,EAAV,sBAAU;YACV,KAAK,EAAE,eAAe;YACtB,IAAI,EAAE,CAAC,cAAc,CAAC;YACtB,KAAK,EAAE,mBAAmB;YAC1B,IAAI,EAAE;gBACJ,WAAW,EAAE,MAAM;aACpB;SACF;KACF,CAAC;AACJ,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,QAAQ;IACzB,SAAS,EAAE,0BAAS,CAAC,GAAG;IACxB,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -7,3 +7,5 @@ export declare const clmmType = "0x1eabed72c53feb3805120a081dc15963c204dc8d09154
|
|
7
7
|
export declare const createPoolEvent = "0x1eabed72c53feb3805120a081dc15963c204dc8d091542592abaf7a35689b2fb::factory::CreatePoolEvent";
|
8
8
|
export declare const poolParentId = "0x4c9ab808d50ca1358cc699bb53b6334b9471d4718fb19bb621ff41c2e93bbce4";
|
9
9
|
export declare const firstPool = "0x58ec75646f31c384f485bd92a5f1d19aa60713eabe2447cbc1354c8c229b10b7";
|
10
|
+
export declare const vaultManagerMap = "0x9036bcc5aa7fd2cceec1659a6a1082871f45bc400c743f50063363457d1738bd";
|
11
|
+
export declare const farmNftType = "0x11ea791d82b5742cc8cab0bf7946035c97d9001d7c3803a93f119753da66f526::pool::WrappedPositionNFT";
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.firstPool = exports.poolParentId = exports.createPoolEvent = exports.clmmType = exports.clmmPoolPackageId = exports.clmmPoolsPrefix = exports.platform = exports.platformId = void 0;
|
3
|
+
exports.farmNftType = exports.vaultManagerMap = exports.firstPool = exports.poolParentId = exports.createPoolEvent = exports.clmmType = exports.clmmPoolPackageId = exports.clmmPoolsPrefix = exports.platform = exports.platformId = void 0;
|
4
4
|
exports.platformId = 'cetus';
|
5
5
|
exports.platform = {
|
6
6
|
id: exports.platformId,
|
@@ -15,4 +15,8 @@ exports.clmmType = `${exports.clmmPoolPackageId}::position::Position`;
|
|
15
15
|
exports.createPoolEvent = `${exports.clmmPoolPackageId}::factory::CreatePoolEvent`;
|
16
16
|
exports.poolParentId = '0x4c9ab808d50ca1358cc699bb53b6334b9471d4718fb19bb621ff41c2e93bbce4';
|
17
17
|
exports.firstPool = '0x58ec75646f31c384f485bd92a5f1d19aa60713eabe2447cbc1354c8c229b10b7';
|
18
|
+
// VaultsManager : 0x25b82dd2f5ee486ed1c8af144b89a8931cd9c29dee3a86a1bfe194fdea9d04a6
|
19
|
+
// Vaults https://api-sui.cetus.zone/v2/sui/auto_pools
|
20
|
+
exports.vaultManagerMap = '0x9036bcc5aa7fd2cceec1659a6a1082871f45bc400c743f50063363457d1738bd';
|
21
|
+
exports.farmNftType = '0x11ea791d82b5742cc8cab0bf7946035c97d9001d7c3803a93f119753da66f526::pool::WrappedPositionNFT';
|
18
22
|
//# sourceMappingURL=constants.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/cetus/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,8CAA8C;IACrD,WAAW,EAAE,OAAO;IACpB,OAAO,EAAE,yBAAyB;CACnC,CAAC;AACW,QAAA,eAAe,GAAG,GAAG,kBAAU,YAAY,CAAC;AAE5C,QAAA,iBAAiB,GAC5B,oEAAoE,CAAC;AAE1D,QAAA,QAAQ,GAAG,GAAG,yBAAiB,sBAAsB,CAAC;AAEtD,QAAA,eAAe,GAAG,GAAG,yBAAiB,4BAA4B,CAAC;AACnE,QAAA,YAAY,GACvB,oEAAoE,CAAC;AAC1D,QAAA,SAAS,GACpB,oEAAoE,CAAC"}
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/cetus/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,8CAA8C;IACrD,WAAW,EAAE,OAAO;IACpB,OAAO,EAAE,yBAAyB;CACnC,CAAC;AACW,QAAA,eAAe,GAAG,GAAG,kBAAU,YAAY,CAAC;AAE5C,QAAA,iBAAiB,GAC5B,oEAAoE,CAAC;AAE1D,QAAA,QAAQ,GAAG,GAAG,yBAAiB,sBAAsB,CAAC;AAEtD,QAAA,eAAe,GAAG,GAAG,yBAAiB,4BAA4B,CAAC;AACnE,QAAA,YAAY,GACvB,oEAAoE,CAAC;AAC1D,QAAA,SAAS,GACpB,oEAAoE,CAAC;AAEvE,qFAAqF;AACrF,sDAAsD;AACzC,QAAA,eAAe,GAC1B,oEAAoE,CAAC;AAE1D,QAAA,WAAW,GACtB,8FAA8F,CAAC"}
|
@@ -0,0 +1,118 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
+
});
|
10
|
+
};
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
13
|
+
};
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
15
|
+
const portfolio_core_1 = require("@sonarwatch/portfolio-core");
|
16
|
+
const bignumber_js_1 = __importDefault(require("bignumber.js"));
|
17
|
+
const constants_1 = require("./constants");
|
18
|
+
const clients_1 = require("../../utils/clients");
|
19
|
+
const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/tokenPriceToAssetToken"));
|
20
|
+
const getOwnedObjects_1 = require("../../utils/sui/getOwnedObjects");
|
21
|
+
const multiGetObjects_1 = require("../../utils/sui/multiGetObjects");
|
22
|
+
const bitsToNumber_1 = require("../../utils/sui/bitsToNumber");
|
23
|
+
const tokenAmountFromLiquidity_1 = require("../../utils/clmm/tokenAmountFromLiquidity");
|
24
|
+
const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
|
25
|
+
const client = (0, clients_1.getClientSui)();
|
26
|
+
const positions = yield (0, getOwnedObjects_1.getOwnedObjects)(client, owner, {
|
27
|
+
options: {
|
28
|
+
showContent: true,
|
29
|
+
},
|
30
|
+
filter: {
|
31
|
+
StructType: constants_1.farmNftType,
|
32
|
+
},
|
33
|
+
});
|
34
|
+
if (positions.length === 0)
|
35
|
+
return [];
|
36
|
+
const [farms, pools] = yield Promise.all([
|
37
|
+
(0, multiGetObjects_1.multiGetObjects)(client, positions
|
38
|
+
.map((position) => { var _a, _b; return (_b = (_a = position.data) === null || _a === void 0 ? void 0 : _a.content) === null || _b === void 0 ? void 0 : _b.fields.pool_id; })
|
39
|
+
.filter((s) => s !== null)),
|
40
|
+
cache
|
41
|
+
.getItems(positions
|
42
|
+
.map((position) => { var _a, _b; return (_b = (_a = position.data) === null || _a === void 0 ? void 0 : _a.content) === null || _b === void 0 ? void 0 : _b.fields.clmm_postion.fields.pool; })
|
43
|
+
.filter((s) => s !== null), {
|
44
|
+
prefix: constants_1.clmmPoolsPrefix,
|
45
|
+
networkId: portfolio_core_1.NetworkId.sui,
|
46
|
+
})
|
47
|
+
.then((res) => res.filter((p) => p !== null)),
|
48
|
+
]);
|
49
|
+
const mints = [];
|
50
|
+
pools.forEach((pool) => {
|
51
|
+
mints.push((0, portfolio_core_1.formatMoveTokenAddress)(pool.coinTypeA), (0, portfolio_core_1.formatMoveTokenAddress)(pool.coinTypeB));
|
52
|
+
});
|
53
|
+
const elements = [];
|
54
|
+
const tokenPrices = yield cache.getTokenPricesAsMap(mints, portfolio_core_1.NetworkId.sui);
|
55
|
+
positions.forEach((position) => {
|
56
|
+
var _a, _b, _c, _d;
|
57
|
+
if (!((_b = (_a = position.data) === null || _a === void 0 ? void 0 : _a.content) === null || _b === void 0 ? void 0 : _b.fields))
|
58
|
+
return;
|
59
|
+
const farm = farms.find((f) => { var _a, _b, _c; return ((_a = f.data) === null || _a === void 0 ? void 0 : _a.objectId) === ((_c = (_b = position.data) === null || _b === void 0 ? void 0 : _b.content) === null || _c === void 0 ? void 0 : _c.fields.pool_id); });
|
60
|
+
if (!farm || !((_d = (_c = farm.data) === null || _c === void 0 ? void 0 : _c.content) === null || _d === void 0 ? void 0 : _d.fields.effective_tick_lower))
|
61
|
+
return;
|
62
|
+
const pool = pools.find((p) => {
|
63
|
+
var _a, _b;
|
64
|
+
return p.poolAddress ===
|
65
|
+
((_b = (_a = position.data) === null || _a === void 0 ? void 0 : _a.content) === null || _b === void 0 ? void 0 : _b.fields.clmm_postion.fields.pool);
|
66
|
+
});
|
67
|
+
if (!pool)
|
68
|
+
return;
|
69
|
+
const tickLowerIndex = (0, bitsToNumber_1.bitsToNumber)(position.data.content.fields.clmm_postion.fields.tick_lower_index.fields
|
70
|
+
.bits);
|
71
|
+
const tickUpperIndex = (0, bitsToNumber_1.bitsToNumber)(position.data.content.fields.clmm_postion.fields.tick_upper_index.fields
|
72
|
+
.bits);
|
73
|
+
const effectiveTickLower = (0, bitsToNumber_1.bitsToNumber)(farm.data.content.fields.effective_tick_lower.fields.bits);
|
74
|
+
const effectiveTickUpper = (0, bitsToNumber_1.bitsToNumber)(farm.data.content.fields.effective_tick_upper.fields.bits);
|
75
|
+
const { tokenAmountA, tokenAmountB } = (0, tokenAmountFromLiquidity_1.getTokenAmountsFromLiquidity)(new bignumber_js_1.default(position.data.content.fields.clmm_postion.fields.liquidity), pool.current_tick_index, tickLowerIndex < effectiveTickLower ? effectiveTickLower : tickLowerIndex, tickUpperIndex < effectiveTickUpper ? tickUpperIndex : effectiveTickUpper, false);
|
76
|
+
if (tokenAmountA.isZero() && tokenAmountB.isZero())
|
77
|
+
return;
|
78
|
+
const coinTypeA = (0, portfolio_core_1.formatMoveTokenAddress)(pool.coinTypeA);
|
79
|
+
const coinTypeB = (0, portfolio_core_1.formatMoveTokenAddress)(pool.coinTypeB);
|
80
|
+
const tokenPriceA = tokenPrices.get(coinTypeA);
|
81
|
+
const tokenPriceB = tokenPrices.get(coinTypeB);
|
82
|
+
const assets = [];
|
83
|
+
if (tokenAmountA.isGreaterThan(0) && tokenPriceA) {
|
84
|
+
assets.push((0, tokenPriceToAssetToken_1.default)(tokenPriceA.address, tokenAmountA.dividedBy(Math.pow(10, tokenPriceA.decimals)).toNumber(), portfolio_core_1.NetworkId.sui, tokenPriceA));
|
85
|
+
}
|
86
|
+
if (tokenAmountB.isGreaterThan(0) && tokenPriceB) {
|
87
|
+
assets.push((0, tokenPriceToAssetToken_1.default)(tokenPriceB.address, tokenAmountB.dividedBy(Math.pow(10, tokenPriceB.decimals)).toNumber(), portfolio_core_1.NetworkId.sui, tokenPriceB));
|
88
|
+
}
|
89
|
+
const liquidities = [
|
90
|
+
{
|
91
|
+
assets,
|
92
|
+
assetsValue: (0, portfolio_core_1.getUsdValueSum)(assets.map((a) => a.value)),
|
93
|
+
rewardAssets: [],
|
94
|
+
rewardAssetsValue: 0,
|
95
|
+
value: (0, portfolio_core_1.getUsdValueSum)(assets.map((a) => a.value)),
|
96
|
+
yields: [],
|
97
|
+
},
|
98
|
+
];
|
99
|
+
elements.push({
|
100
|
+
type: portfolio_core_1.PortfolioElementType.liquidity,
|
101
|
+
networkId: portfolio_core_1.NetworkId.sui,
|
102
|
+
platformId: constants_1.platformId,
|
103
|
+
label: 'Farming',
|
104
|
+
value: (0, portfolio_core_1.getUsdValueSum)(liquidities.map((a) => a.value)),
|
105
|
+
data: {
|
106
|
+
liquidities,
|
107
|
+
},
|
108
|
+
});
|
109
|
+
});
|
110
|
+
return elements;
|
111
|
+
});
|
112
|
+
const fetcher = {
|
113
|
+
id: `${constants_1.platformId}-farms`,
|
114
|
+
networkId: portfolio_core_1.NetworkId.sui,
|
115
|
+
executor,
|
116
|
+
};
|
117
|
+
exports.default = fetcher;
|
118
|
+
//# sourceMappingURL=farmsFetcher.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"farmsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/cetus/farmsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAMoC;AACpC,gEAAqC;AAGrC,2CAAuE;AACvE,iDAAmD;AAEnD,qGAA6E;AAC7E,qEAAkE;AAClE,qEAAkE;AAClE,+DAA4D;AAC5D,wFAAyF;AAEzF,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,sBAAY,GAAE,CAAC;IAC9B,MAAM,SAAS,GAAG,MAAM,IAAA,iCAAe,EAAqB,MAAM,EAAE,KAAK,EAAE;QACzE,OAAO,EAAE;YACP,WAAW,EAAE,IAAI;SAClB;QACD,MAAM,EAAE;YACN,UAAU,EAAE,uBAAW;SACxB;KACF,CAAC,CAAC;IACH,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAEtC,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QACvC,IAAA,iCAAe,EACb,MAAM,EACN,SAAS;aACN,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,eAAC,OAAA,MAAA,MAAA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,EAAI,WAAW,CAAC,QAAQ,CAAA,CAAC,CAAC,QAAQ,EAAE,EAC7D,0BAAS,CAAC,GAAG,EACb,WAAW,CACZ,CACF,CAAC;QACJ,CAAC;QAED,MAAM,WAAW,GAAG;YAClB;gBACE,MAAM;gBACN,WAAW,EAAE,IAAA,+BAAc,EAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;gBACvD,YAAY,EAAE,EAAE;gBAChB,iBAAiB,EAAE,CAAC;gBACpB,KAAK,EAAE,IAAA,+BAAc,EAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;gBACjD,MAAM,EAAE,EAAE;aACX;SACF,CAAC;QAEF,QAAQ,CAAC,IAAI,CAAC;YACZ,IAAI,EAAE,qCAAoB,CAAC,SAAS;YACpC,SAAS,EAAE,0BAAS,CAAC,GAAG;YACxB,UAAU,EAAV,sBAAU;YACV,KAAK,EAAE,SAAS;YAChB,KAAK,EAAE,IAAA,+BAAc,EAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;YACtD,IAAI,EAAE;gBACJ,WAAW;aACZ;SACF,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,QAAQ;IACzB,SAAS,EAAE,0BAAS,CAAC,GAAG;IACxB,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -12,6 +12,7 @@ const utils_1 = require("@mysten/sui.js/utils");
|
|
12
12
|
const types_1 = require("./types");
|
13
13
|
const getObjectDeletedResponse_1 = require("../../utils/sui/getObjectDeletedResponse");
|
14
14
|
const getObjectNotExistsResponse_1 = require("../../utils/sui/getObjectNotExistsResponse");
|
15
|
+
const bitsToNumber_1 = require("../../utils/sui/bitsToNumber");
|
15
16
|
function fromX64(num) {
|
16
17
|
return new decimal_js_1.default(num.toString()).mul(decimal_js_1.default.pow(2, -64));
|
17
18
|
}
|
@@ -117,7 +118,7 @@ function getPoolFromObject(object) {
|
|
117
118
|
coinAmountA: fields['coin_a'],
|
118
119
|
coinAmountB: fields['coin_b'],
|
119
120
|
current_sqrt_price: fields['current_sqrt_price'],
|
120
|
-
current_tick_index:
|
121
|
+
current_tick_index: (0, bitsToNumber_1.bitsToNumber)(fields['current_tick_index'].fields.bits),
|
121
122
|
fee_growth_global_a: fields['fee_growth_global_a'],
|
122
123
|
fee_growth_global_b: fields['fee_growth_global_b'],
|
123
124
|
fee_protocol_coin_a: fields['fee_protocol_coin_a'],
|
@@ -165,7 +166,7 @@ function buildPosition(objects) {
|
|
165
166
|
else {
|
166
167
|
nft = buildNFT(objects);
|
167
168
|
}
|
168
|
-
position = Object.assign(Object.assign({}, nft), { pos_object_id: fields['id'].id, owner: ownerWarp.AddressOwner, type, coin_type_a: fields['coin_type_a'].fields.name, coin_type_b: fields['coin_type_b'].fields.name, liquidity: fields['liquidity'], tick_lower_index:
|
169
|
+
position = Object.assign(Object.assign({}, nft), { pos_object_id: fields['id'].id, owner: ownerWarp.AddressOwner, type, coin_type_a: fields['coin_type_a'].fields.name, coin_type_b: fields['coin_type_b'].fields.name, liquidity: fields['liquidity'], tick_lower_index: (0, bitsToNumber_1.bitsToNumber)(fields['tick_lower_index'].fields.bits), tick_upper_index: (0, bitsToNumber_1.bitsToNumber)(fields['tick_upper_index'].fields.bits), index: fields['index'], pool: fields['pool'], reward_amount_owed_0: '0', reward_amount_owed_1: '0', reward_amount_owed_2: '0', reward_growth_inside_0: '0', reward_growth_inside_1: '0', reward_growth_inside_2: '0', fee_growth_inside_a: '0', fee_owed_a: '0', fee_growth_inside_b: '0', fee_owed_b: '0', position_status: types_1.ClmmPositionStatus.Exists });
|
169
170
|
}
|
170
171
|
const deletedResponse = (0, getObjectDeletedResponse_1.getObjectDeletedResponse)(objects);
|
171
172
|
if (deletedResponse) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/cetus/helpers.ts"],"names":[],"mappings":";AAAA,sCAAsC;;;;;;AAEtC,4DAAiC;AACjC,gEAAqC;AACrC,+DAAwD;AACxD,gDAA4D;AAC5D,mCAQiB;AAEjB,uFAAoF;AACpF,2FAAwF;
|
1
|
+
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/cetus/helpers.ts"],"names":[],"mappings":";AAAA,sCAAsC;;;;;;AAEtC,4DAAiC;AACjC,gEAAqC;AACrC,+DAAwD;AACxD,gDAA4D;AAC5D,mCAQiB;AAEjB,uFAAoF;AACpF,2FAAwF;AACxF,+DAA4D;AAE5D,SAAgB,OAAO,CAAC,GAAc;IACpC,OAAO,IAAI,oBAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAC,GAAG,CAAC,oBAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AAC9D,CAAC;AAFD,0BAEC;AAiBD,SAAgB,WAAW,CACzB,OAAe,EACf,GAAG,IAAe;IAElB,MAAM,QAAQ,GAAa,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QAC7D,CAAC,CAAE,IAAI,CAAC,GAAG,EAAe;QAC1B,CAAC,CAAC,EAAE,CAAC;IACP,MAAM,MAAM,GAAG,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAElD,IAAI,MAAM,GAAW,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAEvC,IAAI,QAAQ,IAAI,QAAQ,CAAC,MAAM,EAAE,CAAC;QAChC,MAAM,IAAI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WAAW,GAAG,MAAM,CAAC,aAAa,CAAC,CAAC;QACxC,GAAG,CAAC,SAAS,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC;QACpC,GAAG,CAAC,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC;QAC1B,GAAG,CAAC,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC;QAC1B,GAAG,CAAC,WAAW,GAAG,MAAM,CAAC,aAAa,CAAC,CAAC;IAC1C,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC;AAnBD,4BAmBC"}
|
@@ -7,7 +7,9 @@ exports.fetchers = exports.jobs = exports.platforms = void 0;
|
|
7
7
|
const poolsJob_1 = __importDefault(require("./poolsJob"));
|
8
8
|
const clmmsFetcher_1 = __importDefault(require("./clmmsFetcher"));
|
9
9
|
const constants_1 = require("./constants");
|
10
|
+
const vaultsJob_1 = __importDefault(require("./vaultsJob"));
|
11
|
+
const farmsFetcher_1 = __importDefault(require("./farmsFetcher"));
|
10
12
|
exports.platforms = [constants_1.platform];
|
11
|
-
exports.jobs = [poolsJob_1.default];
|
12
|
-
exports.fetchers = [clmmsFetcher_1.default];
|
13
|
+
exports.jobs = [poolsJob_1.default, vaultsJob_1.default];
|
14
|
+
exports.fetchers = [clmmsFetcher_1.default, farmsFetcher_1.default];
|
13
15
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/cetus/index.ts"],"names":[],"mappings":";;;;;;AAGA,0DAAkC;AAClC,kEAAiD;AACjD,2CAAuC;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/cetus/index.ts"],"names":[],"mappings":";;;;;;AAGA,0DAAkC;AAClC,kEAAiD;AACjD,2CAAuC;AACvC,4DAAoC;AACpC,kEAA0C;AAE7B,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,CAAC,kBAAQ,EAAE,mBAAS,CAAC,CAAC;AACpC,QAAA,QAAQ,GAAc,CAAC,sBAAmB,EAAE,sBAAY,CAAC,CAAC"}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { ID } from '../../utils/sui/structs/id';
|
1
2
|
export type SuiAddressType = string;
|
2
3
|
export type SuiObjectIdType = string;
|
3
4
|
export type CoinPairType = {
|
@@ -94,9 +95,6 @@ export type ParsedJsonEvent = {
|
|
94
95
|
pool_id: string;
|
95
96
|
tick_spacing: number;
|
96
97
|
};
|
97
|
-
export type ID = {
|
98
|
-
id: string;
|
99
|
-
};
|
100
98
|
export type TablePoolInfo = {
|
101
99
|
id: ID;
|
102
100
|
name: string;
|
@@ -129,3 +127,94 @@ export type CoinType = {
|
|
129
127
|
export type CoinTypeFields = {
|
130
128
|
name: string;
|
131
129
|
};
|
130
|
+
export type Vault = {
|
131
|
+
id: ID;
|
132
|
+
pool: string;
|
133
|
+
liquidity: string;
|
134
|
+
lp_token_treasury: {
|
135
|
+
fields: {
|
136
|
+
id: ID;
|
137
|
+
total_supply: {
|
138
|
+
fields: {
|
139
|
+
value: string;
|
140
|
+
};
|
141
|
+
type: string;
|
142
|
+
};
|
143
|
+
};
|
144
|
+
type: string;
|
145
|
+
};
|
146
|
+
positions: {
|
147
|
+
fields: WrappedPositionNFT;
|
148
|
+
type: string;
|
149
|
+
}[];
|
150
|
+
};
|
151
|
+
export type WrappedPositionNFT = {
|
152
|
+
clmm_postion: {
|
153
|
+
fields: {
|
154
|
+
coin_type_a: {
|
155
|
+
fields: {
|
156
|
+
name: string;
|
157
|
+
};
|
158
|
+
type: string;
|
159
|
+
};
|
160
|
+
coin_type_b: {
|
161
|
+
fields: {
|
162
|
+
name: string;
|
163
|
+
};
|
164
|
+
type: string;
|
165
|
+
};
|
166
|
+
description: string;
|
167
|
+
id: ID;
|
168
|
+
index: number;
|
169
|
+
liquidity: string;
|
170
|
+
name: string;
|
171
|
+
pool: SuiObjectIdType;
|
172
|
+
tick_lower_index: {
|
173
|
+
fields: {
|
174
|
+
bits: number;
|
175
|
+
};
|
176
|
+
type: string;
|
177
|
+
};
|
178
|
+
tick_upper_index: {
|
179
|
+
fields: {
|
180
|
+
bits: number;
|
181
|
+
};
|
182
|
+
type: string;
|
183
|
+
};
|
184
|
+
url: string;
|
185
|
+
};
|
186
|
+
type: string;
|
187
|
+
};
|
188
|
+
id: ID;
|
189
|
+
pool_id: string;
|
190
|
+
url: string;
|
191
|
+
};
|
192
|
+
export type VaultToPoolMapItem = {
|
193
|
+
id: ID;
|
194
|
+
name: string;
|
195
|
+
value: string;
|
196
|
+
};
|
197
|
+
export type Farm = {
|
198
|
+
clmm_pool_id: string;
|
199
|
+
effective_tick_lower: {
|
200
|
+
fields: {
|
201
|
+
bits: number;
|
202
|
+
};
|
203
|
+
type: string;
|
204
|
+
};
|
205
|
+
effective_tick_upper: {
|
206
|
+
fields: {
|
207
|
+
bits: number;
|
208
|
+
};
|
209
|
+
type: string;
|
210
|
+
};
|
211
|
+
id: ID;
|
212
|
+
rewarders: {
|
213
|
+
fields: {
|
214
|
+
name: string;
|
215
|
+
};
|
216
|
+
type: string;
|
217
|
+
}[];
|
218
|
+
sqrt_price: string;
|
219
|
+
total_share: string;
|
220
|
+
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/cetus/types.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/cetus/types.ts"],"names":[],"mappings":";;;AAwDA,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC5B,yCAAqB,CAAA;IACrB,uCAAmB,CAAA;IACnB,6CAAyB,CAAA;AAC3B,CAAC,EAJW,kBAAkB,kCAAlB,kBAAkB,QAI7B"}
|