@sonarwatch/portfolio-plugins 0.12.146 → 0.12.148
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +1384 -1371
- package/README.md +3 -3
- package/package.json +1 -1
- package/src/plugins/aftermath/poolsJob.js +32 -14
- package/src/plugins/aftermath/poolsJob.js.map +1 -1
- package/src/plugins/aftermath/types.d.ts +7 -0
- package/src/plugins/balancer/helpers/pools.js +21 -21
- package/src/plugins/cetus/poolsJob.js +26 -26
- package/src/plugins/cetus/poolsJob.js.map +1 -1
- package/src/plugins/cropper/helpers.js +1 -1
- package/src/plugins/cropper/helpers.js.map +1 -1
- package/src/plugins/daos/helpers.js +1 -1
- package/src/plugins/daos/helpers.js.map +1 -1
- package/src/plugins/orca/helpers.js +1 -1
- package/src/plugins/orca/helpers.js.map +1 -1
- package/src/plugins/picasso/helpers.js +1 -1
- package/src/plugins/picasso/helpers.js.map +1 -1
- package/src/plugins/raydium/helpers.js +1 -1
- package/src/plugins/raydium/helpers.js.map +1 -1
- package/src/plugins/scallop/constants.d.ts +1 -1
- package/src/plugins/scallop/constants.js +1 -1
- package/src/plugins/scallop/constants.js.map +1 -1
- package/src/plugins/scallop/obligationsFetcher.js +1 -7
- package/src/plugins/scallop/obligationsFetcher.js.map +1 -1
- package/src/plugins/sushiswap/helpers.js +24 -24
- package/src/plugins/tokens/fetchers/sui-nfts.js +1 -0
- package/src/plugins/tokens/fetchers/sui-nfts.js.map +1 -1
- package/src/plugins/uniswap-v2/helpers.js +22 -22
- package/src/plugins/zeta/airdropFetcher.js +16 -16
- package/src/plugins/zeta/airdropFetcher.js.map +1 -1
- package/src/utils/sei/constants.js +8 -8
- package/src/utils/sei/getQueryBalanceByOwner.js +4 -4
- package/src/utils/solana/das/heliusAssetToAssetCollectible.js +8 -5
- package/src/utils/solana/das/heliusAssetToAssetCollectible.js.map +1 -1
- package/src/utils/sui/queryEvents.js +3 -1
- package/src/utils/sui/queryEvents.js.map +1 -1
- package/src/utils/sui/queryEventsSafe.js +2 -1
- package/src/utils/sui/queryEventsSafe.js.map +1 -1
package/README.md
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
# @sonarwatch/portfolio-plugins
|
2
|
-
|
3
|
-
This library is @sonarwatch/portfolio-plugins
|
1
|
+
# @sonarwatch/portfolio-plugins
|
2
|
+
|
3
|
+
This library is @sonarwatch/portfolio-plugins
|
package/package.json
CHANGED
@@ -30,21 +30,31 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
|
30
30
|
const pObjects = yield (0, multiGetObjects_1.multiGetObjects)(client, poolFactoryIds);
|
31
31
|
const poolsIds = pObjects
|
32
32
|
.map((poolObject) => {
|
33
|
-
var _a, _b
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
return fields.value;
|
38
|
-
}
|
39
|
-
return [];
|
33
|
+
var _a, _b;
|
34
|
+
return ((_b = (_a = poolObject.data) === null || _a === void 0 ? void 0 : _a.content) === null || _b === void 0 ? void 0 : _b.fields)
|
35
|
+
? poolObject.data.content.fields.value
|
36
|
+
: [];
|
40
37
|
})
|
41
38
|
.flat();
|
42
39
|
if (!poolsIds.length)
|
43
40
|
return;
|
44
41
|
const poolsInfo = yield (0, multiGetObjects_1.multiGetObjects)(client, poolsIds);
|
45
|
-
const
|
46
|
-
.map((pool) => {
|
47
|
-
|
42
|
+
const mints = poolsInfo
|
43
|
+
.map((pool) => {
|
44
|
+
var _a, _b, _c, _d, _e, _f;
|
45
|
+
return ((_c = (_b = (_a = pool.data) === null || _a === void 0 ? void 0 : _a.content) === null || _b === void 0 ? void 0 : _b.fields) === null || _c === void 0 ? void 0 : _c.type_names)
|
46
|
+
? (_f = (_e = (_d = pool.data) === null || _d === void 0 ? void 0 : _d.content) === null || _e === void 0 ? void 0 : _e.fields) === null || _f === void 0 ? void 0 : _f.type_names.map((type) => {
|
47
|
+
try {
|
48
|
+
return (0, portfolio_core_1.formatMoveTokenAddress)(type);
|
49
|
+
}
|
50
|
+
catch (e) {
|
51
|
+
return [];
|
52
|
+
}
|
53
|
+
}).flat()
|
54
|
+
: [];
|
55
|
+
})
|
56
|
+
.flat();
|
57
|
+
const tokenPriceById = yield cache.getTokenPricesAsMap(mints, networkId);
|
48
58
|
const sources = [];
|
49
59
|
for (const pool of poolsInfo) {
|
50
60
|
if (!((_b = (_a = pool.data) === null || _a === void 0 ? void 0 : _a.content) === null || _b === void 0 ? void 0 : _b.fields))
|
@@ -58,14 +68,22 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
|
58
68
|
const lpAddress = moveType.keys[0].type;
|
59
69
|
const poolUnderlyingsRaw = [];
|
60
70
|
poolInfo.normalized_balances.forEach((nBalance, i) => {
|
61
|
-
|
62
|
-
|
71
|
+
let cAddress;
|
72
|
+
try {
|
73
|
+
cAddress = (0, portfolio_core_1.formatTokenAddress)(poolInfo.type_names[i], networkId);
|
74
|
+
}
|
75
|
+
catch (e) {
|
76
|
+
return;
|
77
|
+
}
|
78
|
+
if (!cAddress)
|
79
|
+
return;
|
80
|
+
const tokenPrice = tokenPriceById.get(cAddress);
|
63
81
|
if (!tokenPrice || !poolInfo.coin_decimals)
|
64
82
|
return;
|
65
83
|
poolUnderlyingsRaw.push({
|
66
|
-
address:
|
84
|
+
address: cAddress,
|
67
85
|
decimals: poolInfo.coin_decimals[i],
|
68
|
-
reserveAmountRaw: new bignumber_js_1.default(
|
86
|
+
reserveAmountRaw: new bignumber_js_1.default(nBalance).dividedBy(poolInfo.decimal_scalars[i]),
|
69
87
|
tokenPrice,
|
70
88
|
weight: new bignumber_js_1.default(poolInfo.weights[i]).div(Math.pow(10, 18)).toNumber(),
|
71
89
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"poolsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/aftermath/poolsJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,gEAAqC;AACrC,+
|
1
|
+
{"version":3,"file":"poolsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins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AAoB,CAAC,OAAO,CAAC,CAAC;AAC5C,CAAC,CAAA,CAAC;AAEF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,QAAQ;IACzB,QAAQ;IACR,KAAK,EAAE,QAAQ;CAChB,CAAC;AACF,kBAAe,GAAG,CAAC"}
|
@@ -36,27 +36,27 @@ exports.getBalancerPoolsV2 = void 0;
|
|
36
36
|
const graphql_request_1 = __importStar(require("graphql-request"));
|
37
37
|
function getBalancerPoolsV2(url) {
|
38
38
|
return __awaiter(this, void 0, void 0, function* () {
|
39
|
-
const query = (0, graphql_request_1.gql) `
|
40
|
-
query pools {
|
41
|
-
pools(
|
42
|
-
first: 1000
|
43
|
-
orderBy: totalLiquidity
|
44
|
-
orderDirection: desc
|
45
|
-
where: { totalLiquidity_gt: "500" }
|
46
|
-
) {
|
47
|
-
id
|
48
|
-
address
|
49
|
-
symbol
|
50
|
-
totalLiquidity
|
51
|
-
totalShares
|
52
|
-
tokens {
|
53
|
-
balance
|
54
|
-
decimals
|
55
|
-
symbol
|
56
|
-
address
|
57
|
-
}
|
58
|
-
}
|
59
|
-
}
|
39
|
+
const query = (0, graphql_request_1.gql) `
|
40
|
+
query pools {
|
41
|
+
pools(
|
42
|
+
first: 1000
|
43
|
+
orderBy: totalLiquidity
|
44
|
+
orderDirection: desc
|
45
|
+
where: { totalLiquidity_gt: "500" }
|
46
|
+
) {
|
47
|
+
id
|
48
|
+
address
|
49
|
+
symbol
|
50
|
+
totalLiquidity
|
51
|
+
totalShares
|
52
|
+
tokens {
|
53
|
+
balance
|
54
|
+
decimals
|
55
|
+
symbol
|
56
|
+
address
|
57
|
+
}
|
58
|
+
}
|
59
|
+
}
|
60
60
|
`;
|
61
61
|
const res = yield (0, graphql_request_1.default)(url, query);
|
62
62
|
const pools = res.pools;
|
@@ -20,38 +20,38 @@ const helpers_1 = require("./helpers");
|
|
20
20
|
const tokenPricesFromSqrt_1 = __importDefault(require("../../utils/clmm/tokenPricesFromSqrt"));
|
21
21
|
const multiGetObjects_1 = require("../../utils/sui/multiGetObjects");
|
22
22
|
const queryEvents_1 = require("../../utils/sui/queryEvents");
|
23
|
-
let lastFetchTime;
|
24
23
|
const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
25
24
|
var _a;
|
26
25
|
const client = (0, clients_1.getClientSui)();
|
26
|
+
const promises = [];
|
27
|
+
const cacheItems = [];
|
27
28
|
const eventsData = yield (0, queryEvents_1.queryEvents)(client, {
|
28
29
|
MoveEventType: constants_1.createPoolEvent,
|
29
|
-
TimeRange: lastFetchTime
|
30
|
-
? {
|
31
|
-
startTime: lastFetchTime.toString(),
|
32
|
-
endTime: Date.now().toString(),
|
33
|
-
}
|
34
|
-
: undefined,
|
35
30
|
});
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
31
|
+
let poolsAddresses;
|
32
|
+
let poolsObjects;
|
33
|
+
let sliceEvents;
|
34
|
+
for (let t = 0; t < eventsData.length; t += 50) {
|
35
|
+
sliceEvents = eventsData.slice(t, t + 50);
|
36
|
+
poolsAddresses = sliceEvents
|
37
|
+
.map((eventData) => eventData.parsedJson ? eventData.parsedJson.pool_id : [])
|
38
|
+
.flat();
|
39
|
+
poolsObjects = yield (0, multiGetObjects_1.multiGetObjects)(client, poolsAddresses);
|
40
|
+
let poolId;
|
41
|
+
let pool;
|
42
|
+
for (let i = 0; i < poolsObjects.length; i++) {
|
43
|
+
poolId = (_a = poolsObjects[i].data) === null || _a === void 0 ? void 0 : _a.objectId;
|
44
|
+
if (!poolId)
|
45
|
+
continue;
|
46
|
+
pool = (0, helpers_1.getPoolFromObject)(poolsObjects[i]);
|
47
|
+
if (!pool)
|
48
|
+
continue;
|
49
|
+
promises.push((0, tokenPricesFromSqrt_1.default)(cache, portfolio_core_1.NetworkId.sui, pool.poolAddress, new bignumber_js_1.default(pool.coinAmountA), new bignumber_js_1.default(pool.coinAmountB), new bignumber_js_1.default(pool.current_sqrt_price), pool.coinTypeA, pool.coinTypeB));
|
50
|
+
cacheItems.push({
|
51
|
+
key: poolId,
|
52
|
+
value: pool,
|
53
|
+
});
|
54
|
+
}
|
55
55
|
}
|
56
56
|
yield cache.setItems(cacheItems, {
|
57
57
|
prefix: constants_1.clmmPoolsPrefix,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"poolsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/cetus/poolsJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,gEAAqC;AAGrC,iDAAmD;AACnD,2CAA2E;AAC3E,uCAA8C;AAC9C,+FAA4E;AAE5E,qEAAkE;AAClE,6DAA0D;AAE1D,
|
1
|
+
{"version":3,"file":"poolsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/cetus/poolsJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,gEAAqC;AAGrC,iDAAmD;AACnD,2CAA2E;AAC3E,uCAA8C;AAC9C,+FAA4E;AAE5E,qEAAkE;AAClE,6DAA0D;AAE1D,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;;IACnD,MAAM,MAAM,GAAG,IAAA,sBAAY,GAAE,CAAC;IAC9B,MAAM,QAAQ,GAAG,EAAE,CAAC;IACpB,MAAM,UAAU,GAAG,EAAE,CAAC;IAEtB,MAAM,UAAU,GAAG,MAAM,IAAA,yBAAW,EAAkB,MAAM,EAAE;QAC5D,aAAa,EAAE,2BAAe;KAC/B,CAAC,CAAC;IACH,IAAI,cAAc,CAAC;IACnB,IAAI,YAAY,CAAC;IACjB,IAAI,WAAW,CAAC;IAChB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,UAAU,CAAC,MAAM,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AQ,CAAC,UAAU,EAAE;QAC/B,MAAM,EAAE,2BAAe;QACvB,SAAS,EAAE,0BAAS,CAAC,GAAG;KACzB,CAAC,CAAC;IAEH,MAAM,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AAC9B,CAAC,CAAA,CAAC;AAEF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,QAAQ;IACzB,QAAQ;IACR,KAAK,EAAE,QAAQ;CAChB,CAAC;AACF,kBAAe,GAAG,CAAC"}
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.isClmmPosition = void 0;
|
4
4
|
function isClmmPosition(nft) {
|
5
5
|
var _a;
|
6
|
-
return ((_a = nft.
|
6
|
+
return ((_a = nft.name) === null || _a === void 0 ? void 0 : _a.startsWith('Cropper CLMM Position')) === true;
|
7
7
|
}
|
8
8
|
exports.isClmmPosition = isClmmPosition;
|
9
9
|
//# sourceMappingURL=helpers.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/cropper/helpers.ts"],"names":[],"mappings":";;;AAEA,SAAgB,cAAc,CAAC,GAA8B;;IAC3D,OAAO,CAAA,MAAA,GAAG,CAAC,IAAI,
|
1
|
+
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/cropper/helpers.ts"],"names":[],"mappings":";;;AAEA,SAAgB,cAAc,CAAC,GAA8B;;IAC3D,OAAO,CAAA,MAAA,GAAG,CAAC,IAAI,0CAAE,UAAU,CAAC,uBAAuB,CAAC,MAAK,IAAI,CAAC;AAChE,CAAC;AAFD,wCAEC"}
|
@@ -21,7 +21,7 @@ const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/token
|
|
21
21
|
const constants_1 = require("./constants");
|
22
22
|
exports.nftIdentifier = 'Voting Escrow Token Position';
|
23
23
|
function isAnHeliumNFTVote(nft) {
|
24
|
-
return nft.
|
24
|
+
return nft.name === exports.nftIdentifier;
|
25
25
|
}
|
26
26
|
exports.isAnHeliumNFTVote = isAnHeliumNFTVote;
|
27
27
|
function getVoterPda(owner, registrar, vsr) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/daos/helpers.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+DAOoC;AACpC,gEAAqC;AACrC,6CAA4C;AAG5C,6CAA8C;AAC9C,qGAA6E;AAC7E,2CAA+C;AAElC,QAAA,aAAa,GAAG,8BAA8B,CAAC;AAE5D,SAAgB,iBAAiB,CAAC,GAA8B;IAC9D,OAAO,GAAG,CAAC,IAAI,
|
1
|
+
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/daos/helpers.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+DAOoC;AACpC,gEAAqC;AACrC,6CAA4C;AAG5C,6CAA8C;AAC9C,qGAA6E;AAC7E,2CAA+C;AAElC,QAAA,aAAa,GAAG,8BAA8B,CAAC;AAE5D,SAAgB,iBAAiB,CAAC,GAA8B;IAC9D,OAAO,GAAG,CAAC,IAAI,KAAK,qBAAa,CAAC;AACpC,CAAC;AAFD,8CAEC;AAED,SAAgB,WAAW,CACzB,KAAa,EACb,SAAiB,EACjB,GAAW;IAEX,OAAO,mBAAS,CAAC,sBAAsB,CACrC;QACE,IAAI,mBAAS,CAAC,SAAS,CAAC,CAAC,QAAQ,EAAE;QACnC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC;QAC7B,IAAI,mBAAS,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE;KAChC,EACD,IAAI,mBAAS,CAAC,GAAG,CAAC,CACnB,CAAC,CAAC,CAAC,CAAC;AACP,CAAC;AAbD,kCAaC;AAED,SAAsB,yBAAyB,CAC7C,KAAY,EACZ,IAAiC;;QAEjC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J,UAAU;YACV,cAAc,EAAE,MAAM,CAAC,cAAc,CAAC;SACb,CAAC;IAC9B,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC"}
|
@@ -10,7 +10,7 @@ const bn_js_1 = __importDefault(require("bn.js"));
|
|
10
10
|
const decimal_js_1 = __importDefault(require("decimal.js"));
|
11
11
|
const constants_1 = require("./constants");
|
12
12
|
function isAnOrcaPosition(nft) {
|
13
|
-
return nft.
|
13
|
+
return nft.name === constants_1.positionsIdentifier;
|
14
14
|
}
|
15
15
|
exports.isAnOrcaPosition = isAnOrcaPosition;
|
16
16
|
function signedShiftRight(n0, shiftBy, bitWidth) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/orca/helpers.ts"],"names":[],"mappings":";;;;;;AAAA,+BAA+B;AAC/B,gEAAqC;AACrC,kDAAuB;AACvB,4DAAiC;AAGjC,2CAAkD;AAElD,SAAgB,gBAAgB,CAAC,GAA8B;IAC7D,OAAO,GAAG,CAAC,IAAI,
|
1
|
+
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/orca/helpers.ts"],"names":[],"mappings":";;;;;;AAAA,+BAA+B;AAC/B,gEAAqC;AACrC,kDAAuB;AACvB,4DAAiC;AAGjC,2CAAkD;AAElD,SAAgB,gBAAgB,CAAC,GAA8B;IAC7D,OAAO,GAAG,CAAC,IAAI,KAAK,+BAAmB,CAAC;AAC1C,CAAC;AAFD,4CAEC;AAED,SAAgB,gBAAgB,CAAC,EAAM,EAAE,OAAe,EAAE,QAAgB;IACxE,MAAM,KAAK,GAAG,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAChD,KAAK,CAAC,MAAM,CAAC,QAAQ,GAAG,OAAO,GAAG,CAAC,CAAC,CAAC;IACrC,OAAO,KAAK,CAAC,QAAQ,CAAC,QAAQ,GAA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isPicassoPosition = (asset) => asset.
|
28
|
+
const isPicassoPosition = (asset) => asset.name === 'Composable Restaking Position';
|
29
29
|
exports.isPicassoPosition = isPicassoPosition;
|
30
30
|
function getPicassoElementsFromNFTs(cache, nfts) {
|
31
31
|
return __awaiter(this, void 0, void 0, function* () {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/picasso/helpers.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,6CAA4C;AAC5C,+DAQoC;AACpC,gEAAqC;AAErC,2CAA+E;AAC/E,qGAA6E;AAC7E,+CAAuE;AAEvE,iDAAsD;AAE/C,MAAM,oBAAoB,GAAG,CAAC,EAAa,EAAE,EAAE;IACpD,MAAM,CAAC,cAAc,CAAC,GAAG,mBAAS,CAAC,sBAAsB,CACvD,CAAC,MAAM,CAAC,IAAI,CAAC,cAAc,EAAE,OAAO,CAAC,EAAE,EAAE,CAAC,QAAQ,EAAE,CAAC,EACrD,8BAAkB,CACnB,CAAC;IACF,OAAO,cAAc,CAAC;AACxB,CAAC,CAAC;AANW,QAAA,oBAAoB,wBAM/B;AAEK,MAAM,iBAAiB,GAAG,CAAC,KAAgC,EAAW,EAAE,CAC7E,KAAK,CAAC,IAAI,
|
1
|
+
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/picasso/helpers.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,6CAA4C;AAC5C,+DAQoC;AACpC,gEAAqC;AAErC,2CAA+E;AAC/E,qGAA6E;AAC7E,+CAAuE;AAEvE,iDAAsD;AAE/C,MAAM,oBAAoB,GAAG,CAAC,EAAa,EAAE,EAAE;IACpD,MAAM,CAAC,cAAc,CAAC,GAAG,mBAAS,CAAC,sBAAsB,CACvD,CAAC,MAAM,CAAC,IAAI,CAAC,cAAc,EAAE,OAAO,CAAC,EAAE,EAAE,CAAC,QAAQ,EAAE,CAAC,EACrD,8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EAAE,EAAE;YACxC,MAAM,KAAK,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;YACxB,IAAI,KAAK,EAAE,CAAC;gBACV,MAAM,UAAU,GAAG,WAAW,CAAC,GAAG,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;gBACpD,IAAI,CAAC,UAAU;oBAAE,OAAO;gBACxB,MAAM,CAAC,IAAI,CACT,IAAA,gCAAsB,EACpB,KAAK,CAAC,SAAS,EACf,IAAI,sBAAS,CAAC,KAAK,CAAC,WAAW,CAAC;qBAC7B,SAAS,CAAC,SAAA,EAAE,EAAI,UAAU,CAAC,QAAQ,CAAA,CAAC;qBACpC,QAAQ,EAAE,EACb,0BAAS,CAAC,MAAM,EAChB,UAAU,CACX,CACF,CAAC;YACJ,CAAC;QACH,CAAC,CAAC,CAAC;QAEH,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;YAAE,OAAO,EAAE,CAAC;QAEnC,MAAM,OAAO,GAA6B;YACxC,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,KAAK,EAAE,QAAQ;YACf,UAAU,EAAV,sBAAU;YACV,IAAI,EAAE,qCAAoB,CAAC,QAAQ;YACnC,KAAK,EAAE,IAAA,+BAAc,EAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;YACjD,IAAI,EAAE;gBACJ,MAAM;aACP;SACF,CAAC;QACF,OAAO,CAAC,OAAO,CAAC,CAAC;IACnB,CAAC;CAAA;AA5DD,gEA4DC"}
|
@@ -16,7 +16,7 @@ const web3_js_1 = require("@solana/web3.js");
|
|
16
16
|
const constants_1 = require("./constants");
|
17
17
|
const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/tokenPriceToAssetToken"));
|
18
18
|
function isARaydiumPosition(nft) {
|
19
|
-
return nft.
|
19
|
+
return nft.name === constants_1.positionsIdentifier;
|
20
20
|
}
|
21
21
|
exports.isARaydiumPosition = isARaydiumPosition;
|
22
22
|
const ZERO = new bn_js_1.default(0);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/raydium/helpers.ts"],"names":[],"mappings":";;;;;;AAAA,2BAA2B;AAC3B,yDAAyD;AACzD,yCAAyC;AACzC,sCAAsC;AACtC,+BAA+B;AAC/B,gEAAqC;AACrC,kDAAuB;AACvB,+DAOoC;AACpC,6CAA4C;AAC5C,2CAAqE;AACrE,qGAA6E;AAE7E,SAAgB,kBAAkB,CAAC,GAA8B;IAC/D,OAAO,GAAG,CAAC,IAAI,
|
1
|
+
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/raydium/helpers.ts"],"names":[],"mappings":";;;;;;AAAA,2BAA2B;AAC3B,yDAAyD;AACzD,yCAAyC;AACzC,sCAAsC;AACtC,+BAA+B;AAC/B,gEAAqC;AACrC,kDAAuB;AACvB,+DAOoC;AACpC,6CAA4C;AAC5C,2CAAqE;AACrE,qGAA6E;AAE7E,SAAgB,kBAAkB,CAAC,GAA8B;IAC/D,OAAO,GAAG,CAAC,IAAI,KAAK,+BAAmB,CAAC;AAC1C,CAAC;AAFD,gDAEC;AAED,MAAM,IAAI,GAAG,IAAI,eAAE,CAAC,CAAC,CAAC,CAAC;AACvB,MAAM,GAAG,GAAG,IAAI,eAAE,CAAC,CAAC,CAAC,CAAC;AACtB,MAAM,GAAG,GAAG,IAAI,eAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC/B,MAAM,IAAI,GAAG,IAAI,eAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACjC,MAAM,aAAa,GAAG,EAAE,CAAC;AACzB,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAChC,MAAM,QAAQ,GAAG,CAAC,MAAM,CAAC;AACzB,MAAM,QAAQ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,cAAc;SACvB,GAAG,CAAC,SAAA,EAAE,EAAI,WAAW,CAAC,QAAQ,CAAA,CAAC;SAC/B,KAAK,CAAC,WAAW,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,GAAG,GAAG,WAAW,CAAC,KAAK,CAAC;SAC3D,GAAG,CAAC,GAAG,CAAC;SACR,QAAQ,EAAE,CAAC;IACd,OAAO;QACL,GAAG;QACH,GAAG,EAAE,IAAA,yBAAQ,EAAC,GAAG,CAAC;KACnB,CAAC;AACJ,CAAC;AAfD,oCAeC;AAED,SAAgB,oBAAoB,CAClC,cAAyB,EACzB,UAAqB,EACrB,QAAmB,EACnB,WAAuB,EACvB,UAA8B;IAE9B,MAAM,MAAM,GAAG,cAAc;SAC1B,KAAK,CAAC,QAAQ,CAAC;SACf,GAAG,CAAC,UAAU,CAAC;SACf,KAAK,CAAC,UAAU,CAAC;SACjB,GAAG,CAAC,SAAA,EAAE,EAAI,WAAW,CAAC,QAAQ,CAAA,CAAC;SAC/B,QAAQ,EAAE,CAAC;IACd,OAAO,IAAA,gCAAsB,EAC3B,WAAW,CAAC,OAAO,EACnB,MAAM,EACN,0BAAS,CAAC,MAAM,EAChB,WAAW,CACZ,CAAC;AACJ,CAAC;AAnBD,oDAmBC"}
|
@@ -5,7 +5,7 @@ export declare const addressPrefix = "scallop-address";
|
|
5
5
|
export declare const marketPrefix = "scallop-market";
|
6
6
|
export declare const poolsPrefix = "scallop-pools";
|
7
7
|
export declare const spoolsPrefix = "scallop-spoolsmarket";
|
8
|
-
export declare const addressEndpoint = "https://sui.
|
8
|
+
export declare const addressEndpoint = "https://sui.apis.scallop.io/addresses/664dfe22898c36c159e28bc8";
|
9
9
|
export declare const addressKey = "scallop-address-key";
|
10
10
|
export declare const marketKey = "scallop-market-key";
|
11
11
|
export declare const poolsKey = "scallop-pools-key";
|
@@ -13,7 +13,7 @@ exports.addressPrefix = `${exports.platformId}-address`;
|
|
13
13
|
exports.marketPrefix = `${exports.platformId}-market`;
|
14
14
|
exports.poolsPrefix = `${exports.platformId}-pools`;
|
15
15
|
exports.spoolsPrefix = `${exports.platformId}-spoolsmarket`;
|
16
|
-
exports.addressEndpoint = 'https://sui.
|
16
|
+
exports.addressEndpoint = 'https://sui.apis.scallop.io/addresses/664dfe22898c36c159e28bc8';
|
17
17
|
exports.addressKey = 'scallop-address-key';
|
18
18
|
exports.marketKey = 'scallop-market-key';
|
19
19
|
exports.poolsKey = 'scallop-pools-key';
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/scallop/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,SAAS,CAAC;AACvB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,qCAAqC,kBAAU,OAAO;IAC7D,WAAW,EAAE,gBAAgB;IAC7B,OAAO,EAAE,yBAAyB;CACnC,CAAC;AAEW,QAAA,aAAa,GAAG,GAAG,kBAAU,UAAU,CAAC;AACxC,QAAA,YAAY,GAAG,GAAG,kBAAU,SAAS,CAAC;AACtC,QAAA,WAAW,GAAG,GAAG,kBAAU,QAAQ,CAAC;AACpC,QAAA,YAAY,GAAG,GAAG,kBAAU,eAAe,CAAC;AAE5C,QAAA,eAAe,GAC1B
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/scallop/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,SAAS,CAAC;AACvB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,qCAAqC,kBAAU,OAAO;IAC7D,WAAW,EAAE,gBAAgB;IAC7B,OAAO,EAAE,yBAAyB;CACnC,CAAC;AAEW,QAAA,aAAa,GAAG,GAAG,kBAAU,UAAU,CAAC;AACxC,QAAA,YAAY,GAAG,GAAG,kBAAU,SAAS,CAAC;AACtC,QAAA,WAAW,GAAG,GAAG,kBAAU,QAAQ,CAAC;AACpC,QAAA,YAAY,GAAG,GAAG,kBAAU,eAAe,CAAC;AAE5C,QAAA,eAAe,GAC1B,gEAAgE,CAAC;AACtD,QAAA,UAAU,GAAG,qBAAqB,CAAC;AACnC,QAAA,SAAS,GAAG,oBAAoB,CAAC;AACjC,QAAA,QAAQ,GAAG,mBAAmB,CAAC;AAC/B,QAAA,SAAS,GAAG,0BAA0B,CAAC;AAEvC,QAAA,qBAAqB,GAAG,iGAAiG,CAAC;AACvI,MAAM,kBAAkB,GACtB,oEAAoE,CAAC;AAC1D,QAAA,mBAAmB,GAAG,GAAG,kBAAkB,uBAAuB,CAAC;AACnE,QAAA,sBAAsB,GAAG,GAAG,kBAAkB,6BAA6B,CAAC;AAC5E,QAAA,aAAa,GAAG,UAAa,CAAC;AAC9B,QAAA,UAAU,GACrB,8EAA8E,CAAC;AACpE,QAAA,WAAW,GAAG,CAAC,CAAC;AAEhB,QAAA,OAAO,GAClB,oEAAoE,CAAC;AAC1D,QAAA,UAAU,GACrB,+DAA+D,CAAC"}
|
@@ -132,13 +132,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
132
132
|
}));
|
133
133
|
yield (0, runInBatch_1.default)(debtsAndCollateralCalculationPromises, 5); // run in batch of size 2, calculate 5 obligation account per batch
|
134
134
|
const tokenAddresses = ctmValues.map((value) => value.coinType);
|
135
|
-
const
|
136
|
-
const tokenPrices = new Map();
|
137
|
-
tokenPriceResult.forEach((r) => {
|
138
|
-
if (!r)
|
139
|
-
return;
|
140
|
-
tokenPrices.set(r.address, r);
|
141
|
-
});
|
135
|
+
const tokenPrices = yield cache.getTokenPricesAsMap(tokenAddresses, portfolio_core_1.NetworkId.sui);
|
142
136
|
for (const account of Object.keys(userObligations)) {
|
143
137
|
const borrowedAssets = [];
|
144
138
|
const borrowedYields = [];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"obligationsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/scallop/obligationsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+
|
1
|
+
{"version":3,"file":"obligationsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/scallop/obligationsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DASoC;AACpC,gDAA0D;AAC1D,gEAAqC;AAIrC,2CAOqB;AAQrB,uCAA2C;AAC3C,iDAAmD;AACnD,qGAA6E;AAC7E,6EAAqD;AAErD,qEAAkE;AAClE,yDAAsD;AACtD,iFAA8E;AAE9E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;;IACtE,MAAM,MAAM,GAAG,IAAA,sBAAY,GAAE,CAAC;IAC9B,MAAM,QAAQ,GAAuB,EAAE,CAAC;IACxC,MAAM,YAAY,GAAqB,EAAE,CAAC;IAE1C,MAAM,gBAAgB,GAAG,MAAM,KAAK,CAAC,OAAO,CAAQ,oBAAQ,EAAE;QAC5D,MAAM,EAAE,uBAAW;QACnB,SAAS,EAAE,0BAAS,CAAC,GAAG;KACzB,CAAC,CAAC;IACH,IAAI,CAAC,gBAAgB;QAAE,OAAO,EAAE,CAAC;IAEjC,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;IAClD,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAEtC,MAAM,iBAAiB,GAAwB;QAC7C,QAAQ,EAAE;YACR;gBACE,UAAU,EAAE,kCAAsB;aACnC;SACF;KACF,CAAC;IAEF,MAAM,CAAC,mBAAmB,EAAE,UAAU,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QAC1D,IAAA,iCAAe,EAAsB,MAAM,EAAE,KAAK,EAAE;YAClD,MAAM,EAAE,iBAAiB;SAC1B,CAAC;QACF,KAAK,CAAC,OAA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CAAC,CAAC;QACL,CAAC;QACD,IACE,cAAc,CAAC,MAAM,KAAK,CAAC;YAC3B,cAAc,CAAC,MAAM,KAAK,CAAC;YAC3B,YAAY,CAAC,MAAM,KAAK,CAAC;YAEzB,SAAS;QACX,MAAM,EAAE,aAAa,EAAE,WAAW,EAAE,aAAa,EAAE,KAAK,EAAE,WAAW,EAAE,GACrE,IAAA,wCAAuB,EAAC,EAAE,cAAc,EAAE,cAAc,EAAE,YAAY,EAAE,CAAC,CAAC;QAC5E,QAAQ,CAAC,IAAI,CAAC;YACZ,IAAI,EAAE,qCAAoB,CAAC,UAAU;YACrC,SAAS,EAAE,0BAAS,CAAC,GAAG;YACxB,UAAU,EAAV,sBAAU;YACV,KAAK,EAAE,SAAS;YAChB,IAAI,EAAE,GAAG,IAAA,wBAAc,EAAC,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC,cAAc;YACpD,KAAK;YACL,IAAI,EAAE;gBACJ,cAAc;gBACd,aAAa;gBACb,cAAc;gBACd,cAAc;gBACd,aAAa;gBACb,cAAc;gBACd,WAAW;gBACX,YAAY;gBACZ,WAAW;gBACX,KAAK;aACN;SACF,CAAC,CAAC;IACL,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,cAAc;IAC/B,SAAS,EAAE,0BAAS,CAAC,GAAG;IACxB,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -54,30 +54,30 @@ function sushiV3PairToUniV2(pair) {
|
|
54
54
|
}
|
55
55
|
function getV3PairsAddresses(url, length = 300) {
|
56
56
|
return __awaiter(this, void 0, void 0, function* () {
|
57
|
-
const query = (0, graphql_request_1.gql) `
|
58
|
-
{
|
59
|
-
pools(
|
60
|
-
orderBy: totalValueLockedUSD
|
61
|
-
first: ${length}
|
62
|
-
orderDirection: desc
|
63
|
-
where: { volumeUSD_not: "0", liquidity_not: "0" }
|
64
|
-
) {
|
65
|
-
id
|
66
|
-
token0Price
|
67
|
-
token1Price
|
68
|
-
liquidity
|
69
|
-
token0 {
|
70
|
-
id
|
71
|
-
totalSupply
|
72
|
-
decimals
|
73
|
-
}
|
74
|
-
token1 {
|
75
|
-
id
|
76
|
-
totalSupply
|
77
|
-
decimals
|
78
|
-
}
|
79
|
-
}
|
80
|
-
}
|
57
|
+
const query = (0, graphql_request_1.gql) `
|
58
|
+
{
|
59
|
+
pools(
|
60
|
+
orderBy: totalValueLockedUSD
|
61
|
+
first: ${length}
|
62
|
+
orderDirection: desc
|
63
|
+
where: { volumeUSD_not: "0", liquidity_not: "0" }
|
64
|
+
) {
|
65
|
+
id
|
66
|
+
token0Price
|
67
|
+
token1Price
|
68
|
+
liquidity
|
69
|
+
token0 {
|
70
|
+
id
|
71
|
+
totalSupply
|
72
|
+
decimals
|
73
|
+
}
|
74
|
+
token1 {
|
75
|
+
id
|
76
|
+
totalSupply
|
77
|
+
decimals
|
78
|
+
}
|
79
|
+
}
|
80
|
+
}
|
81
81
|
`;
|
82
82
|
const res = yield (0, graphql_request_1.default)(url, query);
|
83
83
|
const pools = res.pools;
|
@@ -55,6 +55,7 @@ const executor = (owner) => __awaiter(void 0, void 0, void 0, function* () {
|
|
55
55
|
type: portfolio_core_1.PortfolioAssetType.collectible,
|
56
56
|
value: null,
|
57
57
|
attributes: {},
|
58
|
+
name: (display === null || display === void 0 ? void 0 : display.name) || content.fields.name || content.fields.tick,
|
58
59
|
data: {
|
59
60
|
address: object.data.type,
|
60
61
|
amount: Number(content.fields.amount || 1),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"sui-nfts.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/tokens/fetchers/sui-nfts.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAOoC;AAEpC,oDAAsD;AACtD,4CAAkD;AAClD,4DAAiE;AACjE,wEAAqE;AAIrE,0EAAuE;AACvE,wEAAqE;AAErE,M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P,OAAO,CAAE,IAAI,KAAI,OAAO,CAAC,MAAM,CAAC,IAAI,IAAI,OAAO,CAAC,MAAM,CAAC,IAAI;gBACjE,UAAU;aACX;SACF,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IACnC,MAAM,OAAO,GAA6B;QACxC,IAAI,EAAE,qCAAoB,CAAC,QAAQ;QACnC,SAAS,EAAE,0BAAS,CAAC,GAAG;QACxB,UAAU,EAAE,8BAAkB,CAAC,EAAE;QACjC,KAAK,EAAE,QAAQ;QACf,KAAK,EAAE,IAAI;QACX,IAAI,EAAE;YACJ,MAAM;SACP;KACF,CAAC;IACF,OAAO,CAAC,OAAO,CAAC,CAAC;AACnB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,8BAAkB,CAAC,EAAE,IAAI,0BAAS,CAAC,GAAG,EAAE;IAC/C,SAAS,EAAE,0BAAS,CAAC,GAAG;IACxB,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
1
|
+
{"version":3,"file":"sui-nfts.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/tokens/fetchers/sui-nfts.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAOoC;AAEpC,oDAAsD;AACtD,4CAAkD;AAClD,4DAAiE;AACjE,wEAAqE;AAIrE,0EAAuE;AACvE,wEAAqE;AAErE,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,EAAE;;IACxD,MAAM,MAAM,GAAG,IAAA,sBAAY,GAAE,CAAC;IAC9B,MAAM,YAAY,GAAG,MAAM,IAAA,iCAAe,EAAC,MAAM,EAAE,KAAK,EAAE;QACxD,OAAO,EAAE;YACP,WAAW,EAAE,IAAI;SAClB;KACF,CAAC,CAAC;IACH,IAAI,YAAY,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IACz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