@sonarwatch/portfolio-plugins 0.5.23 → 0.5.25
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/CHANGELOG.md +9 -1
- package/package.json +2 -2
- package/src/index.js +8 -0
- package/src/index.js.map +1 -1
- package/src/platforms.d.ts +8 -0
- package/src/platforms.js +41 -1
- package/src/platforms.js.map +1 -1
- package/src/plugins/auxexchange/aptosLpJob.d.ts +3 -0
- package/src/plugins/auxexchange/aptosLpJob.js +75 -0
- package/src/plugins/auxexchange/aptosLpJob.js.map +1 -0
- package/src/plugins/auxexchange/constants.d.ts +4 -0
- package/src/plugins/auxexchange/constants.js +9 -0
- package/src/plugins/auxexchange/constants.js.map +1 -0
- package/src/plugins/auxexchange/index.d.ts +4 -0
- package/src/plugins/auxexchange/index.js +10 -0
- package/src/plugins/auxexchange/index.js.map +1 -0
- package/src/plugins/liquidswap/aptosLpJob.d.ts +3 -0
- package/src/plugins/liquidswap/aptosLpJob.js +89 -0
- package/src/plugins/liquidswap/aptosLpJob.js.map +1 -0
- package/src/plugins/liquidswap/constants.d.ts +5 -0
- package/src/plugins/liquidswap/constants.js +10 -0
- package/src/plugins/liquidswap/constants.js.map +1 -0
- package/src/plugins/liquidswap/index.d.ts +4 -0
- package/src/plugins/liquidswap/index.js +10 -0
- package/src/plugins/liquidswap/index.js.map +1 -0
- package/src/plugins/liquidswap/types.d.ts +10 -0
- package/src/plugins/liquidswap/types.js +3 -0
- package/src/plugins/liquidswap/types.js.map +1 -0
- package/src/plugins/native-stake/aptosFetcher.js +2 -1
- package/src/plugins/native-stake/aptosFetcher.js.map +1 -1
- package/src/plugins/native-stake/solanaFetcher.js +2 -1
- package/src/plugins/native-stake/solanaFetcher.js.map +1 -1
- package/src/plugins/native-stake/suiFetcher.js +2 -1
- package/src/plugins/native-stake/suiFetcher.js.map +1 -1
- package/src/plugins/pancakeswap/aptosLpJob.d.ts +3 -0
- package/src/plugins/pancakeswap/aptosLpJob.js +85 -0
- package/src/plugins/pancakeswap/aptosLpJob.js.map +1 -0
- package/src/plugins/pancakeswap/constants.d.ts +4 -0
- package/src/plugins/pancakeswap/constants.js +9 -0
- package/src/plugins/pancakeswap/constants.js.map +1 -0
- package/src/plugins/pancakeswap/index.d.ts +4 -0
- package/src/plugins/pancakeswap/index.js +10 -0
- package/src/plugins/pancakeswap/index.js.map +1 -0
- package/src/plugins/pancakeswap/types.d.ts +8 -0
- package/src/plugins/pancakeswap/types.js +3 -0
- package/src/plugins/pancakeswap/types.js.map +1 -0
- package/src/plugins/staking-aptos/constants.d.ts +4 -0
- package/src/plugins/staking-aptos/constants.js +32 -0
- package/src/plugins/staking-aptos/constants.js.map +1 -0
- package/src/plugins/staking-aptos/fetcherFetcher.d.ts +3 -0
- package/src/plugins/staking-aptos/fetcherFetcher.js +83 -0
- package/src/plugins/staking-aptos/fetcherFetcher.js.map +1 -0
- package/src/plugins/staking-aptos/index.d.ts +4 -0
- package/src/plugins/staking-aptos/index.js +10 -0
- package/src/plugins/staking-aptos/index.js.map +1 -0
- package/src/plugins/staking-aptos/types.d.ts +20 -0
- package/src/plugins/staking-aptos/types.js +3 -0
- package/src/plugins/staking-aptos/types.js.map +1 -0
- package/src/plugins/thala/constants.d.ts +1 -1
- package/src/plugins/thala/constants.js +1 -2
- package/src/plugins/thala/constants.js.map +1 -1
- package/src/utils/aptos/constants.d.ts +1 -0
- package/src/utils/aptos/constants.js +2 -1
- package/src/utils/aptos/constants.js.map +1 -1
- package/src/utils/misc/getDecimalsForToken.d.ts +10 -0
- package/src/utils/misc/getDecimalsForToken.js +43 -0
- package/src/utils/misc/getDecimalsForToken.js.map +1 -0
- package/src/utils/misc/getSourceWeight.d.ts +9 -0
- package/src/utils/misc/getSourceWeight.js +24 -0
- package/src/utils/misc/getSourceWeight.js.map +1 -0
- package/src/utils/misc/setLpPriceSource.d.ts +25 -0
- package/src/utils/misc/setLpPriceSource.js +126 -0
- package/src/utils/misc/setLpPriceSource.js.map +1 -0
package/CHANGELOG.md
CHANGED
@@ -2,10 +2,18 @@
|
|
2
2
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
4
4
|
|
5
|
-
## [0.5.
|
5
|
+
## [0.5.25](https://github.com/sonarwatch/portfolio/compare/plugins-0.5.24...plugins-0.5.25) (2023-08-10)
|
6
6
|
|
7
7
|
|
8
8
|
|
9
|
+
## [0.5.24](https://github.com/sonarwatch/portfolio/compare/plugins-0.5.23...plugins-0.5.24) (2023-08-10)
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
## [0.5.23](https://github.com/sonarwatch/portfolio/compare/plugins-0.5.22...plugins-0.5.23) (2023-08-10)
|
14
|
+
|
15
|
+
|
16
|
+
|
9
17
|
## [0.5.22](https://github.com/sonarwatch/portfolio/compare/plugins-0.5.21...plugins-0.5.22) (2023-08-08)
|
10
18
|
|
11
19
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@sonarwatch/portfolio-plugins",
|
3
|
-
"version": "0.5.
|
3
|
+
"version": "0.5.25",
|
4
4
|
"type": "commonjs",
|
5
5
|
"generators": "./generators.json",
|
6
6
|
"dependencies": {
|
@@ -21,7 +21,7 @@
|
|
21
21
|
"viem": "^1.2.9"
|
22
22
|
},
|
23
23
|
"peerDependencies": {
|
24
|
-
"@sonarwatch/portfolio-core": "0.5.
|
24
|
+
"@sonarwatch/portfolio-core": "0.5.25"
|
25
25
|
},
|
26
26
|
"main": "./src/index.js",
|
27
27
|
"types": "./src/index.d.ts"
|
package/src/index.js
CHANGED
@@ -40,9 +40,13 @@ const cetus_1 = require("./plugins/cetus");
|
|
40
40
|
const turbos_1 = require("./plugins/turbos");
|
41
41
|
const thala_1 = require("./plugins/thala");
|
42
42
|
const tensor_1 = require("./plugins/tensor");
|
43
|
+
const staking_aptos_1 = require("./plugins/staking-aptos");
|
43
44
|
const drift_1 = require("./plugins/drift");
|
44
45
|
const mango_1 = require("./plugins/mango");
|
45
46
|
const top_tokens_1 = require("./plugins/top-tokens");
|
47
|
+
const pancakeswap_1 = require("./plugins/pancakeswap");
|
48
|
+
const liquidswap_1 = require("./plugins/liquidswap");
|
49
|
+
const auxexchange_1 = require("./plugins/auxexchange");
|
46
50
|
const getFetchersByAddressSystem_1 = require("./utils/misc/getFetchersByAddressSystem");
|
47
51
|
__exportStar(require("./Cache"), exports);
|
48
52
|
__exportStar(require("./Fetcher"), exports);
|
@@ -63,6 +67,9 @@ exports.jobs = [
|
|
63
67
|
...cetus_1.jobs,
|
64
68
|
...turbos_1.jobs,
|
65
69
|
...top_tokens_1.jobs,
|
70
|
+
...pancakeswap_1.jobs,
|
71
|
+
...liquidswap_1.jobs,
|
72
|
+
...auxexchange_1.jobs,
|
66
73
|
];
|
67
74
|
exports.fetchers = [
|
68
75
|
...tokens_1.fetchers,
|
@@ -78,6 +85,7 @@ exports.fetchers = [
|
|
78
85
|
...mango_1.fetchers,
|
79
86
|
...cetus_1.fetchers,
|
80
87
|
...turbos_1.fetchers,
|
88
|
+
...staking_aptos_1.fetchers,
|
81
89
|
];
|
82
90
|
exports.fetchersByAddressSystem = (0, getFetchersByAddressSystem_1.getFetchersByAddressSystem)(exports.fetchers);
|
83
91
|
//# sourceMappingURL=index.js.map
|
package/src/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/plugins/src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,0DAA4C;AAC5C,6CAG0B;AAC1B,yDAGgC;AAChC,iDAAkE;AAClE,iDAG4B;AAC5B,6CAG0B;AAC1B,+CAG2B;AAC3B,yCAA4E;AAC5E,+CAAwD;AACxD,2CAA+E;AAC/E,6CAG0B;AAC1B,2CAA+E;AAC/E,6CAA8D;AAC9D,2CAA+E;AAC/E,2CAA+E;AAC/E,qDAA6D;AAC7D,wFAAqF;AAErF,0CAAwB;AACx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e;CACnB,CAAC;AAEW,QAAA,QAAQ,GAAc;IACjC,GAAG,iBAAc;IACjB,GAAG,uBAAmB;IACtB,GAAG,iBAAc;IACjB,GAAG,mBAAgB;IACnB,GAAG,mBAAgB;IACnB,GAAG,iBAAc;IACjB,GAAG,gBAAa;IAChB,GAAG,kBAAe;IAClB,GAAG,eAAY;IACf,GAAG,gBAAa;IAChB,GAAG,gBAAa;IAChB,GAAG,gBAAa;IAChB,GAAG,iBAAc;IACjB,GAAG,wBAAoB;CACxB,CAAC;AAEW,QAAA,uBAAuB,GAAG,IAAA,uDAA0B,EAAC,gBAAQ,CAAC,CAAC"}
|
package/src/platforms.d.ts
CHANGED
@@ -6,6 +6,12 @@ export declare const aavePlatform: Platform;
|
|
6
6
|
export declare const marginfiPlatform: Platform;
|
7
7
|
export declare const tensorPlatform: Platform;
|
8
8
|
export declare const thalaPlatform: Platform;
|
9
|
+
export declare const tortugaPlatform: Platform;
|
10
|
+
export declare const auxExchangePlatform: Platform;
|
11
|
+
export declare const pancakeswapPlatform: Platform;
|
12
|
+
export declare const liquidswapPlatform: Platform;
|
13
|
+
export declare const dittoPlatform: Platform;
|
14
|
+
export declare const animeswapPlatform: Platform;
|
9
15
|
export declare const raydiumPlatform: Platform;
|
10
16
|
export declare const solendPlatform: Platform;
|
11
17
|
export declare const orcaPlatform: Platform;
|
@@ -14,3 +20,5 @@ export declare const driftPlatform: Platform;
|
|
14
20
|
export declare const mangoPlatform: Platform;
|
15
21
|
export declare const cetusPlatform: Platform;
|
16
22
|
export declare const turbosPlatform: Platform;
|
23
|
+
export declare const meeiroPlatform: Platform;
|
24
|
+
export declare const nativeStakePlatform: Platform;
|
package/src/platforms.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.turbosPlatform = exports.cetusPlatform = exports.mangoPlatform = exports.driftPlatform = exports.meteoraPlatform = exports.orcaPlatform = exports.solendPlatform = exports.raydiumPlatform = exports.thalaPlatform = exports.tensorPlatform = exports.marginfiPlatform = exports.aavePlatform = exports.marinadePlatform = exports.walletNftsPlatform = exports.walletTokensPlatform = void 0;
|
3
|
+
exports.nativeStakePlatform = exports.meeiroPlatform = exports.turbosPlatform = exports.cetusPlatform = exports.mangoPlatform = exports.driftPlatform = exports.meteoraPlatform = exports.orcaPlatform = exports.solendPlatform = exports.raydiumPlatform = exports.animeswapPlatform = exports.dittoPlatform = exports.liquidswapPlatform = exports.pancakeswapPlatform = exports.auxExchangePlatform = exports.tortugaPlatform = exports.thalaPlatform = exports.tensorPlatform = exports.marginfiPlatform = exports.aavePlatform = exports.marinadePlatform = exports.walletNftsPlatform = exports.walletTokensPlatform = void 0;
|
4
4
|
exports.walletTokensPlatform = {
|
5
5
|
id: 'wallet-tokens',
|
6
6
|
name: 'Tokens',
|
@@ -36,6 +36,36 @@ exports.thalaPlatform = {
|
|
36
36
|
name: 'Thala',
|
37
37
|
image: 'https://alpha.sonar.watch/img/platforms/thala.png',
|
38
38
|
};
|
39
|
+
exports.tortugaPlatform = {
|
40
|
+
id: 'tortuga',
|
41
|
+
name: 'Tortuga Finance',
|
42
|
+
image: 'https://alpha.sonar.watch/img/platforms/tortuga.png',
|
43
|
+
};
|
44
|
+
exports.auxExchangePlatform = {
|
45
|
+
id: 'auxexchange',
|
46
|
+
name: 'Aux Exchange',
|
47
|
+
image: 'https://alpha.sonar.watch/img/platforms/auxexchange.png',
|
48
|
+
};
|
49
|
+
exports.pancakeswapPlatform = {
|
50
|
+
id: 'pancakeswap',
|
51
|
+
name: 'PancakeSwap',
|
52
|
+
image: 'https://alpha.sonar.watch/img/platforms/pancakeswap.png',
|
53
|
+
};
|
54
|
+
exports.liquidswapPlatform = {
|
55
|
+
id: 'liquidswap',
|
56
|
+
name: 'Liquidswap',
|
57
|
+
image: 'https://alpha.sonar.watch/img/platforms/liquidswap.png',
|
58
|
+
};
|
59
|
+
exports.dittoPlatform = {
|
60
|
+
id: 'ditto',
|
61
|
+
name: 'Ditto Finance',
|
62
|
+
image: 'https://alpha.sonar.watch/img/platforms/ditto.png',
|
63
|
+
};
|
64
|
+
exports.animeswapPlatform = {
|
65
|
+
id: 'animeswap',
|
66
|
+
name: 'AnimeSwap',
|
67
|
+
image: 'https://alpha.sonar.watch/img/platforms/animeswap.png',
|
68
|
+
};
|
39
69
|
exports.raydiumPlatform = {
|
40
70
|
id: 'raydium',
|
41
71
|
name: 'Raydium',
|
@@ -76,4 +106,14 @@ exports.turbosPlatform = {
|
|
76
106
|
name: 'Turbos',
|
77
107
|
image: 'https://alpha.sonar.watch/img/platforms/turbos.png',
|
78
108
|
};
|
109
|
+
exports.meeiroPlatform = {
|
110
|
+
id: 'meeiro',
|
111
|
+
name: 'Meeiro',
|
112
|
+
image: 'https://alpha.sonar.watch/img/platforms/meeiro.png',
|
113
|
+
};
|
114
|
+
exports.nativeStakePlatform = {
|
115
|
+
id: 'nativeStake',
|
116
|
+
name: 'Native Stake',
|
117
|
+
image: 'https://alpha.sonar.watch/img/platforms/nativeStake.png',
|
118
|
+
};
|
79
119
|
//# sourceMappingURL=platforms.js.map
|
package/src/platforms.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"platforms.js","sourceRoot":"","sources":["../../../../packages/plugins/src/platforms.ts"],"names":[],"mappings":";;;AAEa,QAAA,oBAAoB,GAAa;IAC5C,EAAE,EAAE,eAAe;IACnB,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,2DAA2D;CACnE,CAAC;AACW,QAAA,kBAAkB,GAAa;IAC1C,EAAE,EAAE,aAAa;IACjB,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,yDAAyD;CACjE,CAAC;AACW,QAAA,gBAAgB,GAAa;IACxC,EAAE,EAAE,UAAU;IACd,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,sDAAsD;CAC9D,CAAC;AACW,QAAA,YAAY,GAAa;IACpC,EAAE,EAAE,MAAM;IACV,IAAI,EAAE,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DAAoD;CAC5D,CAAC"}
|
1
|
+
{"version":3,"file":"platforms.js","sourceRoot":"","sources":["../../../../packages/plugins/src/platforms.ts"],"names":[],"mappings":";;;AAEa,QAAA,oBAAoB,GAAa;IAC5C,EAAE,EAAE,eAAe;IACnB,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,2DAA2D;CACnE,CAAC;AACW,QAAA,kBAAkB,GAAa;IAC1C,EAAE,EAAE,aAAa;IACjB,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,yDAAyD;CACjE,CAAC;AACW,QAAA,gBAAgB,GAAa;IACxC,EAAE,EAAE,UAAU;IACd,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,sDAAsD;CAC9D,CAAC;AACW,QAAA,YAAY,GAAa;IACpC,EAAE,EAAE,MAAM;IACV,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,kDAAkD;CAC1D,CAAC;AACW,QAAA,gBAAgB,GAAa;IACxC,EAAE,EAAE,UAAU;IACd,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,sDAAsD;CAC9D,CAAC;AACW,QAAA,cAAc,GAAa;IACtC,EAAE,EAAE,QAAQ;IACZ,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,oDAAoD;CAC5D,CAAC;AACW,QAAA,aAAa,GAAa;IACrC,EAAE,EAAE,OAAO;IACX,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,mDAAmD;CAC3D,CAAC;AACW,QAAA,eAAe,GAAa;IACvC,EAAE,EAAE,SAAS;IACb,IAAI,EAAE,iBAAiB;IACvB,KAAK,EAAE,qDAAqD;CAC7D,CAAC;AACW,QAAA,mBAAmB,GAAa;IAC3C,EAAE,EAAE,aAAa;IACjB,IAAI,EAAE,cAAc;IACpB,KAAK,EAAE,yDAAyD;CACjE,CAAC;AACW,QAAA,mBAAmB,GAAa;IAC3C,EAAE,EAAE,aAAa;IACjB,IAAI,EAAE,aAAa;IACnB,KAAK,EAAE,yDAAyD;CACjE,CAAC;AACW,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,EAAE,EAAE,QAAQ;IACZ,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,oDAAoD;CAC5D,CAAC;AACW,QAAA,mBAAmB,GAAa;IAC3C,EAAE,EAAE,aAAa;IACjB,IAAI,EAAE,cAAc;IACpB,KAAK,EAAE,yDAAyD;CACjE,CAAC"}
|
@@ -0,0 +1,75 @@
|
|
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 bignumber_js_1 = __importDefault(require("bignumber.js"));
|
16
|
+
const portfolio_core_1 = require("@sonarwatch/portfolio-core");
|
17
|
+
const aptos_1 = require("../../utils/aptos");
|
18
|
+
const clients_1 = require("../../utils/clients");
|
19
|
+
const constants_1 = require("./constants");
|
20
|
+
const setLpPriceSource_1 = __importDefault(require("../../utils/misc/setLpPriceSource"));
|
21
|
+
const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
22
|
+
var _a, _b, _c;
|
23
|
+
const client = (0, clients_1.getClientAptos)();
|
24
|
+
const resources = yield (0, aptos_1.getAccountResources)(client, constants_1.programAddress);
|
25
|
+
if (!resources)
|
26
|
+
return;
|
27
|
+
const resourcesByType = new Map();
|
28
|
+
resources.forEach((resource) => {
|
29
|
+
resourcesByType.set(resource.type, resource);
|
30
|
+
});
|
31
|
+
for (let i = 0; i < resources.length; i++) {
|
32
|
+
const resource = resources[i];
|
33
|
+
if (!resource.type.startsWith(constants_1.lpCoinInfoTypePrefix))
|
34
|
+
continue;
|
35
|
+
const lpType = (0, aptos_1.getNestedType)(resource.type);
|
36
|
+
const lpInfoData = resource.data;
|
37
|
+
const lpSupplyString = (_c = (_b = (_a = lpInfoData.supply) === null || _a === void 0 ? void 0 : _a.vec[0]) === null || _b === void 0 ? void 0 : _b.integer.vec[0]) === null || _c === void 0 ? void 0 : _c.value;
|
38
|
+
if (!lpSupplyString)
|
39
|
+
continue;
|
40
|
+
const lpDecimals = lpInfoData.decimals;
|
41
|
+
const lpSupply = new bignumber_js_1.default(lpSupplyString)
|
42
|
+
.div(Math.pow(10, lpDecimals))
|
43
|
+
.toNumber();
|
44
|
+
if (lpSupply === 0)
|
45
|
+
continue;
|
46
|
+
const poolId = (0, aptos_1.getNestedType)(lpType);
|
47
|
+
const splits = poolId.split(', ');
|
48
|
+
const typeX = splits.at(0);
|
49
|
+
const typeY = splits.at(1);
|
50
|
+
const poolResource = resourcesByType.get(`${constants_1.programAddress}::amm::Pool<${poolId}>`);
|
51
|
+
if (!poolResource)
|
52
|
+
throw new Error(`Failed to get poolResource: ${lpType}`);
|
53
|
+
if (!typeX)
|
54
|
+
throw new Error(`Failed to get typeX: ${lpType}`);
|
55
|
+
if (!typeY)
|
56
|
+
throw new Error(`Failed to get typeY: ${lpType}`);
|
57
|
+
const tokenPairData = poolResource.data;
|
58
|
+
const poolData = {
|
59
|
+
id: `${constants_1.platformId}-${lpType}`,
|
60
|
+
supply: new bignumber_js_1.default(lpSupply),
|
61
|
+
lpDecimals,
|
62
|
+
reserveTokenX: new bignumber_js_1.default(tokenPairData.x_reserve.value),
|
63
|
+
reserveTokenY: new bignumber_js_1.default(tokenPairData.y_reserve.value),
|
64
|
+
mintTokenX: typeX,
|
65
|
+
mintTokenY: typeY,
|
66
|
+
};
|
67
|
+
yield (0, setLpPriceSource_1.default)(cache, poolData, portfolio_core_1.NetworkId.aptos, constants_1.platformId);
|
68
|
+
}
|
69
|
+
});
|
70
|
+
const job = {
|
71
|
+
id: `${constants_1.platformId}-aptos-lp`,
|
72
|
+
executor,
|
73
|
+
};
|
74
|
+
exports.default = job;
|
75
|
+
//# sourceMappingURL=aptosLpJob.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"aptosLpJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/auxexchange/aptosLpJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,gEAAqC;AACrC,+DAAuD;AAGvD,6CAK2B;AAC3B,iDAAqD;AACrD,2CAA+E;AAC/E,yFAA+E;AAO/E,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;;IACnD,MAAM,MAAM,GAAG,IAAA,wBAAc,GAAE,CAAC;IAChC,MAAM,SAAS,GAAG,MAAM,IAAA,2BAAmB,EAAC,MAAM,EAAE,0BAAc,CAAC,CAAC;IACpE,IAAI,CAAC,SAAS;QAAE,OAAO;IAEvB,MAAM,eAAe,GAAuC,IAAI,GAAG,EAAE,CAAC;IACtE,SAAS,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,EAAE;QAC7B,eAAe,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;IAC/C,CAAC,CAAC,CAAC;IAEH,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACzC,MAAM,QAAQ,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;QAC9B,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,UAAU,CAAC,gCAAoB,CAAC;YAAE,SAAS;QAE9D,MAAM,MAAM,GAAG,IAAA,qBAAa,EAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QAC5C,MAAM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,CAAC,QAAQ,CAAC;YAC/B,UAAU;YACV,aAAa,EAAE,IAAI,sBAAS,CAAC,aAAa,CAAC,SAAS,CAAC,KAAK,CAAC;YAC3D,aAAa,EAAE,IAAI,sBAAS,CAAC,aAAa,CAAC,SAAS,CAAC,KAAK,CAAC;YAC3D,UAAU,EAAE,KAAK;YACjB,UAAU,EAAE,KAAK;SAClB,CAAC;QACF,MAAM,IAAA,0BAAgB,EAAC,KAAK,EAAE,QAAQ,EAAE,0BAAS,CAAC,KAAK,EAAE,sBAAU,CAAC,CAAC;KACtE;AACH,CAAC,CAAA,CAAC;AAEF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,WAAW;IAC5B,QAAQ;CACT,CAAC;AACF,kBAAe,GAAG,CAAC"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.lpCoinInfoTypePrefix = exports.lpTypePrefix = exports.programAddress = exports.platformId = void 0;
|
4
|
+
const aptos_1 = require("../../utils/aptos");
|
5
|
+
exports.platformId = 'auxexchange';
|
6
|
+
exports.programAddress = '0xbd35135844473187163ca197ca93b2ab014370587bb0ed3befff9e902d6bb541';
|
7
|
+
exports.lpTypePrefix = `${exports.programAddress}::amm::LP<`;
|
8
|
+
exports.lpCoinInfoTypePrefix = `${aptos_1.coinInfo}<${exports.lpTypePrefix}`;
|
9
|
+
//# sourceMappingURL=constants.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/auxexchange/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA6C;AAEhC,QAAA,UAAU,GAAG,aAAa,CAAC;AAE3B,QAAA,cAAc,GACzB,oEAAoE,CAAC;AAC1D,QAAA,YAAY,GAAG,GAAG,sBAAc,YAAY,CAAC;AAC7C,QAAA,oBAAoB,GAAG,GAAG,gBAAQ,IAAI,oBAAY,EAAE,CAAC"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.fetchers = exports.jobs = void 0;
|
7
|
+
const aptosLpJob_1 = __importDefault(require("./aptosLpJob"));
|
8
|
+
exports.jobs = [aptosLpJob_1.default];
|
9
|
+
exports.fetchers = [];
|
10
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/auxexchange/index.ts"],"names":[],"mappings":";;;;;;AAEA,8DAAsC;AAEzB,QAAA,IAAI,GAAU,CAAC,oBAAU,CAAC,CAAC;AAC3B,QAAA,QAAQ,GAAc,EAAE,CAAC"}
|
@@ -0,0 +1,89 @@
|
|
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 bignumber_js_1 = __importDefault(require("bignumber.js"));
|
16
|
+
const portfolio_core_1 = require("@sonarwatch/portfolio-core");
|
17
|
+
const aptos_1 = require("../../utils/aptos");
|
18
|
+
const clients_1 = require("../../utils/clients");
|
19
|
+
const constants_1 = require("./constants");
|
20
|
+
const setLpPriceSource_1 = __importDefault(require("../../utils/misc/setLpPriceSource"));
|
21
|
+
const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
22
|
+
var _a, _b, _c;
|
23
|
+
const client = (0, clients_1.getClientAptos)();
|
24
|
+
const resources = yield (0, aptos_1.getAccountResources)(client, constants_1.programAddress);
|
25
|
+
if (!resources)
|
26
|
+
return;
|
27
|
+
const resourcesByType = new Map();
|
28
|
+
const lpsCoinInfo = [];
|
29
|
+
resources.forEach((resource) => {
|
30
|
+
var _a, _b, _c;
|
31
|
+
if (resource.type.startsWith(constants_1.lpCoinInfoTypePrefix)) {
|
32
|
+
const lpCoinInfo = resource;
|
33
|
+
const supply = (_c = (_b = (_a = lpCoinInfo.data.supply) === null || _a === void 0 ? void 0 : _a.vec[0]) === null || _b === void 0 ? void 0 : _b.integer.vec[0]) === null || _c === void 0 ? void 0 : _c.value;
|
34
|
+
if (supply && supply !== '0')
|
35
|
+
lpsCoinInfo.push(lpCoinInfo);
|
36
|
+
return;
|
37
|
+
}
|
38
|
+
resourcesByType.set(resource.type, resource);
|
39
|
+
});
|
40
|
+
for (let i = 0; i < lpsCoinInfo.length; i++) {
|
41
|
+
const lpInfoResource = lpsCoinInfo[i];
|
42
|
+
const lpType = (0, aptos_1.getNestedType)(lpInfoResource.type);
|
43
|
+
const lpSupplyString = (_c = (_b = (_a = lpInfoResource.data.supply) === null || _a === void 0 ? void 0 : _a.vec[0]) === null || _b === void 0 ? void 0 : _b.integer.vec[0]) === null || _c === void 0 ? void 0 : _c.value;
|
44
|
+
if (!lpInfoResource)
|
45
|
+
continue;
|
46
|
+
if (!lpSupplyString)
|
47
|
+
continue;
|
48
|
+
const lpDecimals = lpInfoResource.data.decimals;
|
49
|
+
const lpSupply = new bignumber_js_1.default(lpSupplyString)
|
50
|
+
.div(Math.pow(10, lpDecimals))
|
51
|
+
.toNumber();
|
52
|
+
const liquidityPoolId = (0, aptos_1.getNestedType)(lpType);
|
53
|
+
const splits = liquidityPoolId.split(', ');
|
54
|
+
const typeX = splits.at(0);
|
55
|
+
const typeY = splits.at(1);
|
56
|
+
const poolType = splits.at(2);
|
57
|
+
if (!typeX)
|
58
|
+
throw new Error(`Failed to get typeX: ${lpType}`);
|
59
|
+
if (!typeY)
|
60
|
+
throw new Error(`Failed to get typeY: ${lpType}`);
|
61
|
+
if (!poolType)
|
62
|
+
throw new Error(`Failed to get pool type: ${lpType}`);
|
63
|
+
const creatorAddress = (0, aptos_1.getCoinAddressFromCoinType)(poolType);
|
64
|
+
const liquidityPoolType = `${creatorAddress}::liquidity_pool::LiquidityPool<${liquidityPoolId}>`;
|
65
|
+
const liquidityPoolResource = resourcesByType.get(liquidityPoolType);
|
66
|
+
if (!liquidityPoolResource)
|
67
|
+
continue;
|
68
|
+
const liquidityPoolData = liquidityPoolResource.data;
|
69
|
+
if (liquidityPoolData.coin_x_reserve.value === '0' &&
|
70
|
+
liquidityPoolData.coin_y_reserve.value === '0')
|
71
|
+
continue;
|
72
|
+
const poolData = {
|
73
|
+
id: lpType,
|
74
|
+
lpDecimals,
|
75
|
+
supply: new bignumber_js_1.default(lpSupply),
|
76
|
+
mintTokenX: typeX,
|
77
|
+
mintTokenY: typeY,
|
78
|
+
reserveTokenX: new bignumber_js_1.default(liquidityPoolData.coin_x_reserve.value),
|
79
|
+
reserveTokenY: new bignumber_js_1.default(liquidityPoolData.coin_y_reserve.value),
|
80
|
+
};
|
81
|
+
yield (0, setLpPriceSource_1.default)(cache, poolData, portfolio_core_1.NetworkId.aptos, constants_1.platformId);
|
82
|
+
}
|
83
|
+
});
|
84
|
+
const job = {
|
85
|
+
id: `${constants_1.platformId}-aptos-lp`,
|
86
|
+
executor,
|
87
|
+
};
|
88
|
+
exports.default = job;
|
89
|
+
//# sourceMappingURL=aptosLpJob.js.map
|
@@ -0,0 +1 @@
|
|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M,qBAAqB,GAAG,eAAe,CAAC,GAAG,CAAC,iBAAiB,CAEtD,CAAC;QACd,IAAI,CAAC,qBAAqB;YAAE,SAAS;QAErC,MAAM,iBAAiB,GAAG,qBAAqB,CAAC,IAAI,CAAC;QACrD,IACE,iBAAiB,CAAC,cAAc,CAAC,KAAK,KAAK,GAAG;YAC9C,iBAAiB,CAAC,cAAc,CAAC,KAAK,KAAK,GAAG;YAE9C,SAAS;QAEX,MAAM,QAAQ,GAAa;YACzB,EAAE,EAAE,MAAM;YACV,UAAU;YACV,MAAM,EAAE,IAAI,sBAAS,CAAC,QAAQ,CAAC;YAC/B,UAAU,EAAE,KAAK;YACjB,UAAU,EAAE,KAAK;YACjB,aAAa,EAAE,IAAI,sBAAS,CAAC,iBAAiB,CAAC,cAAc,CAAC,KAAK,CAAC;YACpE,aAAa,EAAE,IAAI,sBAAS,CAAC,iBAAiB,CAAC,cAAc,CAAC,KAAK,CAAC;SACrE,CAAC;QACF,MAAM,IAAA,0BAAgB,EAAC,KAAK,EAAE,QAAQ,EAAE,0BAAS,CAAC,KAAK,EAAE,sBAAU,CAAC,CAAC;KACtE;AACH,CAAC,CAAA,CAAC;AAEF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,WAAW;IAC5B,QAAQ;CACT,CAAC;AACF,kBAAe,GAAG,CAAC"}
|
@@ -0,0 +1,5 @@
|
|
1
|
+
export declare const platformId = "liquidswap";
|
2
|
+
export declare const programAddress = "0x5a97986a9d031c4567e15b797be516910cfcb4156312482efc6a19c0a30c948";
|
3
|
+
export declare const resourceAddress = "0x190d44266241744264b964a37b8f09863167a12d3e70cda39376cfb4e3561e12";
|
4
|
+
export declare const lpTypePrefix: string;
|
5
|
+
export declare const lpCoinInfoTypePrefix: string;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.lpCoinInfoTypePrefix = exports.lpTypePrefix = exports.resourceAddress = exports.programAddress = exports.platformId = void 0;
|
4
|
+
const aptos_1 = require("../../utils/aptos");
|
5
|
+
exports.platformId = 'liquidswap';
|
6
|
+
exports.programAddress = '0x5a97986a9d031c4567e15b797be516910cfcb4156312482efc6a19c0a30c948';
|
7
|
+
exports.resourceAddress = '0x190d44266241744264b964a37b8f09863167a12d3e70cda39376cfb4e3561e12';
|
8
|
+
exports.lpTypePrefix = `${exports.programAddress}::lp_coin::LP<`;
|
9
|
+
exports.lpCoinInfoTypePrefix = `${aptos_1.coinInfo}<${exports.lpTypePrefix}`;
|
10
|
+
//# sourceMappingURL=constants.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/liquidswap/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA6C;AAEhC,QAAA,UAAU,GAAG,YAAY,CAAC;AAE1B,QAAA,cAAc,GACzB,mEAAmE,CAAC;AAEzD,QAAA,eAAe,GAC1B,oEAAoE,CAAC;AAC1D,QAAA,YAAY,GAAG,GAAG,sBAAc,gBAAgB,CAAC;AAEjD,QAAA,oBAAoB,GAAG,GAAG,gBAAQ,IAAI,oBAAY,EAAE,CAAC"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.fetchers = exports.jobs = void 0;
|
7
|
+
const aptosLpJob_1 = __importDefault(require("./aptosLpJob"));
|
8
|
+
exports.jobs = [aptosLpJob_1.default];
|
9
|
+
exports.fetchers = [];
|
10
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/liquidswap/index.ts"],"names":[],"mappings":";;;;;;AAEA,8DAAsC;AAEzB,QAAA,IAAI,GAAU,CAAC,oBAAU,CAAC,CAAC;AAC3B,QAAA,QAAQ,GAAc,EAAE,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/liquidswap/types.ts"],"names":[],"mappings":""}
|
@@ -17,6 +17,7 @@ const bignumber_js_1 = __importDefault(require("bignumber.js"));
|
|
17
17
|
const constants_1 = require("./constants");
|
18
18
|
const clients_1 = require("../../utils/clients");
|
19
19
|
const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/tokenPriceToAssetToken"));
|
20
|
+
const platforms_1 = require("../../platforms");
|
20
21
|
const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
|
21
22
|
const client = (0, clients_1.getClientAptos)();
|
22
23
|
const activeValidators = yield cache.getItem(constants_1.validatorsKey, {
|
@@ -47,7 +48,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
47
48
|
const asset = (0, tokenPriceToAssetToken_1.default)(aptosPrice.address, amount, portfolio_core_1.NetworkId.aptos, aptosPrice);
|
48
49
|
elements.push({
|
49
50
|
networkId: portfolio_core_1.NetworkId.aptos,
|
50
|
-
platformId:
|
51
|
+
platformId: platforms_1.nativeStakePlatform.id,
|
51
52
|
type: 'multiple',
|
52
53
|
label: 'Staked',
|
53
54
|
tags: ['Native Stake'],
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"aptosFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/native-stake/aptosFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAIoC;AACpC,gEAAqC;AAGrC,2CAA0E;AAC1E,iDAAqD;AACrD,qGAA6E;
|
1
|
+
{"version":3,"file":"aptosFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/native-stake/aptosFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAIoC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ACvC,IAAI,CAAC,GAAG,CAAC;aACT,QAAQ,EAAE,EACf,CAAC,CACF,CAAC;QACJ,IAAI,MAAM,KAAK,CAAC;YAAE,SAAS;QAC3B,MAAM,KAAK,GAAG,IAAA,gCAAsB,EAClC,UAAU,CAAC,OAAO,EAClB,MAAM,EACN,0BAAS,CAAC,KAAK,EACf,UAAU,CACX,CAAC;QACF,QAAQ,CAAC,IAAI,CAAC;YACZ,SAAS,EAAE,0BAAS,CAAC,KAAK;YAC1B,UAAU,EAAE,+BAAmB,CAAC,EAAE;YAClC,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,QAAQ;YACf,IAAI,EAAE,CAAC,cAAc,CAAC;YACtB,IAAI,EAAE,gBAAgB;YACtB,KAAK,EAAE,KAAK,CAAC,KAAK;YAClB,IAAI,EAAE;gBACJ,MAAM,EAAE,CAAC,KAAK,CAAC;aAChB;SACF,CAAC,CAAC;KACJ;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,QAAQ;IACzB,SAAS,EAAE,0BAAS,CAAC,KAAK;IAC1B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -21,6 +21,7 @@ const clients_1 = require("../../utils/clients");
|
|
21
21
|
const solana_1 = require("../../utils/solana");
|
22
22
|
const structs_1 = require("./structs");
|
23
23
|
const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/tokenPriceToAssetToken"));
|
24
|
+
const platforms_1 = require("../../platforms");
|
24
25
|
const stakeProgramId = new web3_js_1.PublicKey('Stake11111111111111111111111111111111111111');
|
25
26
|
const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
|
26
27
|
const client = (0, clients_1.getClientSolana)();
|
@@ -42,7 +43,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
42
43
|
const stakedAsset = (0, tokenPriceToAssetToken_1.default)(portfolio_core_1.solanaNetwork.native.address, amount, portfolio_core_1.NetworkId.solana, solTokenPrice);
|
43
44
|
elements.push({
|
44
45
|
networkId: portfolio_core_1.NetworkId.solana,
|
45
|
-
platformId:
|
46
|
+
platformId: platforms_1.nativeStakePlatform.id,
|
46
47
|
type: 'multiple',
|
47
48
|
label: 'Staked',
|
48
49
|
tags: ['Native Stake'],
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"solanaFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/native-stake/solanaFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAIoC;AACpC,6CAA4C;AAC5C,gEAAqC;AAGrC,2CAAyC;AACzC,uCAAgD;AAChD,iDAAsD;AACtD,+CAA8D;AAC9D,uCAA+C;AAC/C,qGAA6E;
|
1
|
+
{"version":3,"file":"solanaFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/native-stake/solanaFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAIoC;AACpC,6CAA4C;AAC5C,gEAAqC;AAGrC,2CAAyC;AACzC,uCAAgD;AAChD,iDAAsD;AACtD,+CAA8D;AAC9D,uCAA+C;AAC/C,qGAA6E;AAC7E,+CAAsD;AAEtD,MAAM,cAAc,GAAG,IAAI,mBAAS,CAClC,6CAA6C,CAC9C,CAAC;AAEF,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IACjC,MAAM,OAAO,GAAG,IAAA,6BAAmB,EAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC;IAEtD,MAAM,eAAe,GAAG,MAAM,IAAA,iCAAwB,EACpD,MAAM,EACN,4BAAkB,EAClB,cAAc,EACd,OAAO,CACR,CAAC;IACF,IAAI,eAAe,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAE5C,MAAM,aAAa,GAAG,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,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -17,6 +17,7 @@ const bignumber_js_1 = __importDefault(require("bignumber.js"));
|
|
17
17
|
const constants_1 = require("./constants");
|
18
18
|
const clients_1 = require("../../utils/clients");
|
19
19
|
const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/tokenPriceToAssetToken"));
|
20
|
+
const platforms_1 = require("../../platforms");
|
20
21
|
const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
|
21
22
|
const client = (0, clients_1.getClientSui)();
|
22
23
|
const stakedValidators = yield client.getStakes({ owner });
|
@@ -43,7 +44,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
43
44
|
}
|
44
45
|
elements.push({
|
45
46
|
networkId: portfolio_core_1.NetworkId.sui,
|
46
|
-
platformId:
|
47
|
+
platformId: platforms_1.nativeStakePlatform.id,
|
47
48
|
type: 'multiple',
|
48
49
|
label: 'Staked',
|
49
50
|
tags: ['Native Stake'],
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"suiFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/native-stake/suiFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAKoC;AACpC,gEAAqC;AAGrC,2CAAyC;AACzC,iDAAmD;AACnD,qGAA6E;
|
1
|
+
{"version":3,"file":"suiFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/native-stake/suiFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAKoC;AACpC,gEAAqC;AAGrC,2CAAyC;AACzC,iDAAmD;AACnD,qGAA6E;AAC7E,+CAAsD;AAEtD,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,sBAAY,GAAE,CAAC;IAC9B,MAAM,gBAAgB,GAAG,MAAM,MAAM,CAAC,SAAS,CA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