@sonarwatch/portfolio-plugins 0.14.8 → 0.14.10
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +1620 -1612
- package/README.md +3 -3
- package/package.json +1 -1
- package/src/index.js +8 -0
- package/src/index.js.map +1 -1
- package/src/plugins/balancer/helpers/pools.js +21 -21
- package/src/plugins/cetus/clmmsFetcher.js +59 -55
- package/src/plugins/cetus/clmmsFetcher.js.map +1 -1
- package/src/plugins/cetus/farmsFetcher.js +66 -37
- package/src/plugins/cetus/farmsFetcher.js.map +1 -1
- package/src/plugins/cetus/helpers.d.ts +3 -1
- package/src/plugins/cetus/helpers.js +102 -1
- package/src/plugins/cetus/helpers.js.map +1 -1
- package/src/plugins/cetus/types.d.ts +28 -0
- package/src/plugins/cetus/types.js.map +1 -1
- package/src/plugins/loverflow/airdropClaimFetcher.d.ts +3 -0
- package/src/plugins/loverflow/airdropClaimFetcher.js +42 -0
- package/src/plugins/loverflow/airdropClaimFetcher.js.map +1 -0
- package/src/plugins/loverflow/constants.d.ts +6 -0
- package/src/plugins/loverflow/constants.js +16 -0
- package/src/plugins/loverflow/constants.js.map +1 -0
- package/src/plugins/loverflow/helpers.d.ts +2 -0
- package/src/plugins/loverflow/helpers.js +9 -0
- package/src/plugins/loverflow/helpers.js.map +1 -0
- package/src/plugins/loverflow/index.d.ts +6 -0
- package/src/plugins/loverflow/index.js +12 -0
- package/src/plugins/loverflow/index.js.map +1 -0
- package/src/plugins/loverflow/structs.d.ts +16 -0
- package/src/plugins/loverflow/structs.js +18 -0
- package/src/plugins/loverflow/structs.js.map +1 -0
- package/src/plugins/loverflow/types.d.ts +5 -0
- package/src/plugins/loverflow/types.js +3 -0
- package/src/plugins/loverflow/types.js.map +1 -0
- package/src/plugins/sandglass/constants.d.ts +1 -0
- package/src/plugins/sandglass/constants.js +8 -1
- package/src/plugins/sandglass/constants.js.map +1 -1
- package/src/plugins/sandglass/depositFetcher.js +11 -43
- package/src/plugins/sandglass/depositFetcher.js.map +1 -1
- package/src/plugins/sushiswap/helpers.js +24 -24
- package/src/plugins/uniswap-v2/helpers.js +22 -22
- package/src/plugins/zelo/constants.d.ts +5 -0
- package/src/plugins/zelo/constants.js +15 -0
- package/src/plugins/zelo/constants.js.map +1 -0
- package/src/plugins/zelo/index.d.ts +6 -0
- package/src/plugins/zelo/index.js +12 -0
- package/src/plugins/zelo/index.js.map +1 -0
- package/src/plugins/zelo/positionsFetcher.d.ts +3 -0
- package/src/plugins/zelo/positionsFetcher.js +40 -0
- package/src/plugins/zelo/positionsFetcher.js.map +1 -0
- package/src/plugins/zelo/structs.d.ts +11 -0
- package/src/plugins/zelo/structs.js +13 -0
- package/src/plugins/zelo/structs.js.map +1 -0
- package/src/plugins/zeta/airdropFetcher.js +14 -14
- package/src/utils/elementbuilder/AssetBuilder.d.ts +1 -1
- package/src/utils/elementbuilder/AssetBuilder.js +2 -2
- package/src/utils/elementbuilder/AssetBuilder.js.map +1 -1
- package/src/utils/elementbuilder/ElementBuilder.d.ts +2 -1
- package/src/utils/elementbuilder/ElementBuilder.js +5 -0
- package/src/utils/elementbuilder/ElementBuilder.js.map +1 -1
- package/src/utils/elementbuilder/LiquidityBuilder.js +1 -1
- package/src/utils/elementbuilder/LiquidityBuilder.js.map +1 -1
- package/src/utils/sei/constants.js +8 -8
- package/src/utils/sei/getQueryBalanceByOwner.js +4 -4
@@ -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,6CAAyD;AACzD,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,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= string;
|
3
4
|
export type SuiObjectIdType = string;
|
@@ -250,3 +251,30 @@ export type DcaOrder = {
|
|
250
251
|
status: string;
|
251
252
|
user: string;
|
252
253
|
};
|
254
|
+
export type FetchPosFeeParams = {
|
255
|
+
poolAddress: string;
|
256
|
+
positionId: string;
|
257
|
+
coinTypeA: string;
|
258
|
+
coinTypeB: string;
|
259
|
+
};
|
260
|
+
export type CollectFeesQuote = {
|
261
|
+
position_id: string;
|
262
|
+
feeOwedA: BigNumber;
|
263
|
+
feeOwedB: BigNumber;
|
264
|
+
};
|
265
|
+
export type FetchPosRewardParams = {
|
266
|
+
poolAddress: string;
|
267
|
+
positionId: string;
|
268
|
+
coinTypeA: string;
|
269
|
+
coinTypeB: string;
|
270
|
+
rewarderInfo: Rewarder[];
|
271
|
+
};
|
272
|
+
export type RewarderAmountOwed = {
|
273
|
+
amount_owed: BigNumber;
|
274
|
+
coin_address: string;
|
275
|
+
};
|
276
|
+
export type PosRewarderResult = {
|
277
|
+
poolAddress: string;
|
278
|
+
positionId: string;
|
279
|
+
rewarderAmountOwed: RewarderAmountOwed[];
|
280
|
+
};
|
@@ -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":";;;AAyDA,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC5B,yCAAqB,CAAA;IACrB,uCAAmB,CAAA;IACnB,6CAAyB,CAAA;AAC3B,CAAC,EAJW,kBAAkB,kCAAlB,kBAAkB,QAI7B"}
|
@@ -0,0 +1,42 @@
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
+
const portfolio_core_1 = require("@sonarwatch/portfolio-core");
|
13
|
+
const constants_1 = require("./constants");
|
14
|
+
const clients_1 = require("../../utils/clients");
|
15
|
+
const structs_1 = require("./structs");
|
16
|
+
const ElementRegistry_1 = require("../../utils/elementbuilder/ElementRegistry");
|
17
|
+
const getParsedAccountInfo_1 = require("../../utils/solana/getParsedAccountInfo");
|
18
|
+
const helpers_1 = require("./helpers");
|
19
|
+
const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
|
20
|
+
const connection = (0, clients_1.getClientSolana)();
|
21
|
+
const claim = yield (0, getParsedAccountInfo_1.getParsedAccountInfo)(connection, structs_1.claimStruct, (0, helpers_1.getPda)(owner));
|
22
|
+
if (!claim || claim.amount.isZero())
|
23
|
+
return [];
|
24
|
+
const elementRegistry = new ElementRegistry_1.ElementRegistry(portfolio_core_1.NetworkId.solana, constants_1.platformId);
|
25
|
+
const element = elementRegistry.addElementMultiple({
|
26
|
+
label: 'Airdrop',
|
27
|
+
});
|
28
|
+
element.addAsset({
|
29
|
+
address: claim.mintAddress.toString(),
|
30
|
+
amount: claim.amount.dividedBy(Math.pow(10, 9)),
|
31
|
+
alreadyShifted: true,
|
32
|
+
attributes: { isClaimable: true },
|
33
|
+
});
|
34
|
+
return elementRegistry.getElements(cache);
|
35
|
+
});
|
36
|
+
const fetcher = {
|
37
|
+
id: `${constants_1.platformId}-claim`,
|
38
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
39
|
+
executor,
|
40
|
+
};
|
41
|
+
exports.default = fetcher;
|
42
|
+
//# sourceMappingURL=airdropClaimFetcher.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"airdropClaimFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/loverflow/airdropClaimFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAEvD,2CAAyC;AAEzC,iDAAsD;AACtD,uCAAwC;AACxC,gFAA6E;AAC7E,kFAA+E;AAC/E,uCAAmC;AAEnC,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IAErC,MAAM,KAAK,GAAG,MAAM,IAAA,2CAAoB,EACtC,UAAU,EACV,qBAAW,EACX,IAAA,gBAAM,EAAC,KAAK,CAAC,CACd,CAAC;IACF,IAAI,CAAC,KAAK,IAAI,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE;QAAE,OAAO,EAAE,CAAC;IAE/C,MAAM,eAAe,GAAG,IAAI,iCAAe,CAAC,0BAAS,CAAC,MAAM,EAAE,sBAAU,CAAC,CAAC;IAC1E,MAAM,OAAO,GAAG,eAAe,CAAC,kBAAkB,CAAC;QACjD,KAAK,EAAE,SAAS;KACjB,CAAC,CAAC;IACH,OAAO,CAAC,QAAQ,CAAC;QACf,OAAO,EAAE,KAAK,CAAC,WAAW,CAAC,QAAQ,EAAE;QACrC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,SAAA,EAAE,EAAI,CAAC,CAAA,CAAC;QACvC,cAAc,EAAE,IAAI;QACpB,UAAU,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE;KAClC,CAAC,CAAC;IAEH,OAAO,eAAe,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5C,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,QAAQ;IACzB,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import { PublicKey } from '@solana/web3.js';
|
2
|
+
import { Platform } from '@sonarwatch/portfolio-core';
|
3
|
+
export declare const platformId = "loverflow";
|
4
|
+
export declare const platform: Platform;
|
5
|
+
export declare const marketsCacheKey = "markets";
|
6
|
+
export declare const pid: PublicKey;
|
@@ -0,0 +1,16 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.pid = exports.marketsCacheKey = exports.platform = exports.platformId = void 0;
|
4
|
+
const web3_js_1 = require("@solana/web3.js");
|
5
|
+
exports.platformId = 'loverflow';
|
6
|
+
exports.platform = {
|
7
|
+
id: exports.platformId,
|
8
|
+
name: 'loverflow',
|
9
|
+
image: 'https://sonar.watch/img/platforms/loverflow.webp',
|
10
|
+
website: 'https://loverflow.ibx.exchange/claim',
|
11
|
+
twitter: 'https://x.com/IBXtrade',
|
12
|
+
// defiLlamaId: 'loverflow', // from https://defillama.com/docs/api
|
13
|
+
};
|
14
|
+
exports.marketsCacheKey = `markets`;
|
15
|
+
exports.pid = new web3_js_1.PublicKey('3VQxX1xitpPBXFARqarDQJPLDEUUBPzfUV1s1GPDSCvg');
|
16
|
+
//# sourceMappingURL=constants.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/loverflow/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,WAAW,CAAC;AACzB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,WAAW;IACjB,KAAK,EAAE,kDAAkD;IACzD,OAAO,EAAE,sCAAsC;IAC/C,OAAO,EAAE,wBAAwB;IACjC,mEAAmE;CACpE,CAAC;AACW,QAAA,eAAe,GAAG,SAAS,CAAC;AAE5B,QAAA,GAAG,GAAG,IAAI,mBAAS,CAC9B,8CAA8C,CAC/C,CAAC"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.getPda = void 0;
|
4
|
+
const web3_js_1 = require("@solana/web3.js");
|
5
|
+
function getPda(owner) {
|
6
|
+
return web3_js_1.PublicKey.findProgramAddressSync([new web3_js_1.PublicKey(owner).toBuffer().slice(0, 31)], new web3_js_1.PublicKey('CChTq6PthWU82YZkbveA3WDf7s97BWhBK4Vx9bmsT743'))[0];
|
7
|
+
}
|
8
|
+
exports.getPda = getPda;
|
9
|
+
//# sourceMappingURL=helpers.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/loverflow/helpers.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAE5C,SAAgB,MAAM,CAAC,KAAa;IAClC,OAAO,mBAAS,CAAC,sBAAsB,CACrC,CAAC,IAAI,mBAAS,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAC9C,IAAI,mBAAS,CAAC,8CAA8C,CAAC,CAC9D,CAAC,CAAC,CAAC,CAAC;AACP,CAAC;AALD,wBAKC"}
|
@@ -0,0 +1,12 @@
|
|
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 = exports.platforms = void 0;
|
7
|
+
const constants_1 = require("./constants");
|
8
|
+
const airdropClaimFetcher_1 = __importDefault(require("./airdropClaimFetcher"));
|
9
|
+
exports.platforms = [constants_1.platform];
|
10
|
+
exports.jobs = [];
|
11
|
+
exports.fetchers = [airdropClaimFetcher_1.default];
|
12
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/loverflow/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAAuC;AACvC,gFAAiD;AAEpC,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,EAAE,CAAC;AACjB,QAAA,QAAQ,GAAc,CAAC,6BAAY,CAAC,CAAC"}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { BeetStruct } from '@metaplex-foundation/beet';
|
2
|
+
import { PublicKey } from '@solana/web3.js';
|
3
|
+
import BigNumber from 'bignumber.js';
|
4
|
+
export type Schedule = {
|
5
|
+
releaseTime: BigNumber;
|
6
|
+
amount: BigNumber;
|
7
|
+
};
|
8
|
+
export declare const scheduleStruct: BeetStruct<Schedule, Partial<Schedule>>;
|
9
|
+
export type Claim = {
|
10
|
+
destinationAddress: PublicKey;
|
11
|
+
mintAddress: PublicKey;
|
12
|
+
isInitialized: boolean;
|
13
|
+
releaseTime: BigNumber;
|
14
|
+
amount: BigNumber;
|
15
|
+
};
|
16
|
+
export declare const claimStruct: BeetStruct<Claim, Partial<Claim>>;
|
@@ -0,0 +1,18 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.claimStruct = exports.scheduleStruct = void 0;
|
4
|
+
const beet_1 = require("@metaplex-foundation/beet");
|
5
|
+
const beet_solana_1 = require("@metaplex-foundation/beet-solana");
|
6
|
+
const solana_1 = require("../../utils/solana");
|
7
|
+
exports.scheduleStruct = new beet_1.BeetStruct([
|
8
|
+
['releaseTime', solana_1.u64],
|
9
|
+
['amount', solana_1.u64],
|
10
|
+
], (args) => args);
|
11
|
+
exports.claimStruct = new beet_1.BeetStruct([
|
12
|
+
['destinationAddress', beet_solana_1.publicKey],
|
13
|
+
['mintAddress', beet_solana_1.publicKey],
|
14
|
+
['isInitialized', beet_1.bool],
|
15
|
+
['releaseTime', solana_1.u64],
|
16
|
+
['amount', solana_1.u64],
|
17
|
+
], (args) => args);
|
18
|
+
//# sourceMappingURL=structs.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"structs.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/loverflow/structs.ts"],"names":[],"mappings":";;;AAAA,oDAA6D;AAC7D,kEAA6D;AAG7D,+CAAyC;AAO5B,QAAA,cAAc,GAAG,IAAI,iBAAU,CAC1C;IACE,CAAC,aAAa,EAAE,YAAG,CAAC;IACpB,CAAC,QAAQ,EAAE,YAAG,CAAC;CAChB,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAgB,CAC3B,CAAC;AASW,QAAA,WAAW,GAAG,IAAI,iBAAU,CACvC;IACE,CAAC,oBAAoB,EAAE,uBAAS,CAAC;IACjC,CAAC,aAAa,EAAE,uBAAS,CAAC;IAC1B,CAAC,eAAe,EAAE,WAAI,CAAC;IACvB,CAAC,aAAa,EAAE,YAAG,CAAC;IACpB,CAAC,QAAQ,EAAE,YAAG,CAAC;CAChB,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAa,CACxB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/loverflow/types.ts"],"names":[],"mappings":""}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.marketsInfoKey = exports.programId = exports.platform = exports.platformId = void 0;
|
3
|
+
exports.marketNameByAddress = exports.marketsInfoKey = exports.programId = exports.platform = exports.platformId = void 0;
|
4
4
|
const web3_js_1 = require("@solana/web3.js");
|
5
5
|
exports.platformId = 'sandglass';
|
6
6
|
exports.platform = {
|
@@ -13,4 +13,11 @@ exports.platform = {
|
|
13
13
|
};
|
14
14
|
exports.programId = new web3_js_1.PublicKey('SANDsy8SBzwUE8Zio2mrYZYqL52Phr2WQb9DDKuXMVK');
|
15
15
|
exports.marketsInfoKey = 'markets';
|
16
|
+
exports.marketNameByAddress = new Map([
|
17
|
+
['6SbYW288Kje2WD6TRRcAmikhA76cijBi36y1wYt4RsdN', 'JLP'],
|
18
|
+
['4K9VeqpZNCVHtZN9mKJpTihp4N8a9LeS35qBnqqM83Et', 'bSOL'],
|
19
|
+
['Amu99crLdqbfpzrBbfrXHu1myWoCNXrSu7RRkHZJ1Ymv', 'mSOL'],
|
20
|
+
['5ofpU1rU4ajg3LuHKSMBBWHDubTW1XF7x6tCAXsk5Gju', 'JitoSOL'],
|
21
|
+
['B8V6WVjPxW1UGwVDfxH2d2r8SyT4cqn7dQRK6XneVa7D', 'cUSDC'],
|
22
|
+
]);
|
16
23
|
//# sourceMappingURL=constants.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/sandglass/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,WAAW,CAAC;AACzB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,WAAW;IACjB,KAAK,EAAE,kDAAkD;IACzD,qEAAqE;IACrE,OAAO,EAAE,uBAAuB;IAChC,OAAO,EAAE,kCAAkC;CAC5C,CAAC;AAEW,QAAA,SAAS,GAAG,IAAI,mBAAS,CACpC,6CAA6C,CAC9C,CAAC;AACW,QAAA,cAAc,GAAG,SAAS,CAAC"}
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/sandglass/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,WAAW,CAAC;AACzB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,WAAW;IACjB,KAAK,EAAE,kDAAkD;IACzD,qEAAqE;IACrE,OAAO,EAAE,uBAAuB;IAChC,OAAO,EAAE,kCAAkC;CAC5C,CAAC;AAEW,QAAA,SAAS,GAAG,IAAI,mBAAS,CACpC,6CAA6C,CAC9C,CAAC;AACW,QAAA,cAAc,GAAG,SAAS,CAAC;AAE3B,QAAA,mBAAmB,GAAG,IAAI,GAAG,CAAC;IACzC,CAAC,8CAA8C,EAAE,KAAK,CAAC;IACvD,CAAC,8CAA8C,EAAE,MAAM,CAAC;IACxD,CAAC,8CAA8C,EAAE,MAAM,CAAC;IACxD,CAAC,8CAA8C,EAAE,SAAS,CAAC;IAC3D,CAAC,8CAA8C,EAAE,OAAO,CAAC;CAC1D,CAAC,CAAC"}
|
@@ -8,9 +8,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
8
8
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
9
|
});
|
10
10
|
};
|
11
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
13
|
-
};
|
14
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
15
12
|
const portfolio_core_1 = require("@sonarwatch/portfolio-core");
|
16
13
|
const constants_1 = require("./constants");
|
@@ -18,7 +15,7 @@ const clients_1 = require("../../utils/clients");
|
|
18
15
|
const solana_1 = require("../../utils/solana");
|
19
16
|
const structs_1 = require("./structs");
|
20
17
|
const filters_1 = require("./filters");
|
21
|
-
const
|
18
|
+
const ElementRegistry_1 = require("../../utils/elementbuilder/ElementRegistry");
|
22
19
|
const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
|
23
20
|
const client = (0, clients_1.getClientSolana)();
|
24
21
|
const accounts = yield (0, solana_1.getParsedProgramAccounts)(client, structs_1.sandglassAccountStruct, constants_1.programId, (0, filters_1.userAccountFilters)(owner));
|
@@ -32,51 +29,22 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
32
29
|
return [];
|
33
30
|
const marketInfoById = new Map();
|
34
31
|
marketsInfos.forEach((marketInfo) => marketInfoById.set(marketInfo.pubkey.toString(), marketInfo));
|
35
|
-
const
|
36
|
-
.map((marketInfo) => [
|
37
|
-
marketInfo.ptMint,
|
38
|
-
marketInfo.ytMint,
|
39
|
-
marketInfo.lpMint,
|
40
|
-
// marketInfo.syMint,
|
41
|
-
])
|
42
|
-
.flat();
|
43
|
-
const tokenPriceById = yield cache.getTokenPricesAsMap(mints, portfolio_core_1.NetworkId.solana);
|
44
|
-
const assets = [];
|
32
|
+
const registry = new ElementRegistry_1.ElementRegistry(portfolio_core_1.NetworkId.solana, constants_1.platformId);
|
45
33
|
for (const account of accounts) {
|
46
34
|
const market = marketInfoById.get(account.marketAccount.toString());
|
47
35
|
if (!market)
|
48
36
|
continue;
|
37
|
+
const marketName = constants_1.marketNameByAddress.get(market.pubkey);
|
38
|
+
const element = registry.addElementMultiple({
|
39
|
+
label: 'Staked',
|
40
|
+
name: marketName,
|
41
|
+
});
|
49
42
|
const { stakePtAmount, stakeYtAmount, stakeLpAmount } = account.stakeInfo;
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
if (ptPrice && !stakePtAmount.isZero()) {
|
54
|
-
const amount = stakePtAmount.dividedBy(Math.pow(10, ptPrice.decimals)).toNumber();
|
55
|
-
assets.push((0, tokenPriceToAssetToken_1.default)(market.ptMint, amount, portfolio_core_1.NetworkId.solana, ptPrice));
|
56
|
-
}
|
57
|
-
if (ytPrice && !stakeYtAmount.isZero()) {
|
58
|
-
const amount = stakeYtAmount.dividedBy(Math.pow(10, ytPrice.decimals)).toNumber();
|
59
|
-
assets.push((0, tokenPriceToAssetToken_1.default)(market.ytMint, amount, portfolio_core_1.NetworkId.solana, ytPrice));
|
60
|
-
}
|
61
|
-
if (lpPrice && !stakeLpAmount.isZero()) {
|
62
|
-
const amount = stakeLpAmount.dividedBy(Math.pow(10, lpPrice.decimals)).toNumber();
|
63
|
-
assets.push((0, tokenPriceToAssetToken_1.default)(market.lpMint, amount, portfolio_core_1.NetworkId.solana, lpPrice));
|
64
|
-
}
|
43
|
+
element.addAsset({ address: market.ptMint, amount: stakePtAmount });
|
44
|
+
element.addAsset({ address: market.ytMint, amount: stakeYtAmount });
|
45
|
+
element.addAsset({ address: market.lpMint, amount: stakeLpAmount });
|
65
46
|
}
|
66
|
-
|
67
|
-
return [];
|
68
|
-
return [
|
69
|
-
{
|
70
|
-
label: 'Staked',
|
71
|
-
networkId: portfolio_core_1.NetworkId.solana,
|
72
|
-
platformId: constants_1.platformId,
|
73
|
-
type: 'multiple',
|
74
|
-
value: (0, portfolio_core_1.getUsdValueSum)(assets.map((asset) => asset.value)),
|
75
|
-
data: {
|
76
|
-
assets,
|
77
|
-
},
|
78
|
-
},
|
79
|
-
];
|
47
|
+
return registry.getElements(cache);
|
80
48
|
});
|
81
49
|
const fetcher = {
|
82
50
|
id: `${constants_1.platformId}-deposit`,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"depositFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/sandglass/depositFetcher.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"depositFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/sandglass/depositFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAGvD,2CAKqB;AACrB,iDAAsD;AACtD,+CAA8D;AAC9D,uCAAmD;AACnD,uCAA+C;AAE/C,gFAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IACjC,MAAM,QAAQ,GAAG,MAAM,IAAA,iCAAwB,EAC7C,MAAM,EACN,gCAAsB,EACtB,qBAAS,EACT,IAAA,4BAAkB,EAAC,KAAK,CAAC,CAC1B,CAAC;IAEF,IAAI,QAAQ,CAAC,MAAM,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C,QAAQ,CAAC,EAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,CAAC,CAAC;IACtE,CAAC;IAED,OAAO,QAAQ,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AACrC,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,UAAU;IAC3B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,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;
|
@@ -40,28 +40,28 @@ function getPairKey(version) {
|
|
40
40
|
exports.getPairKey = getPairKey;
|
41
41
|
function getPairsV2FromTheGraph(url, length = 300) {
|
42
42
|
return __awaiter(this, void 0, void 0, function* () {
|
43
|
-
const query = (0, graphql_request_1.gql) `
|
44
|
-
{
|
45
|
-
pairs(
|
46
|
-
orderBy: reserveUSD
|
47
|
-
first: ${length}
|
48
|
-
orderDirection: desc
|
49
|
-
where: { trackedReserveETH_not: "0" }
|
50
|
-
) {
|
51
|
-
id
|
52
|
-
reserve0
|
53
|
-
reserve1
|
54
|
-
totalSupply
|
55
|
-
token0 {
|
56
|
-
id
|
57
|
-
decimals
|
58
|
-
}
|
59
|
-
token1 {
|
60
|
-
id
|
61
|
-
decimals
|
62
|
-
}
|
63
|
-
}
|
64
|
-
}
|
43
|
+
const query = (0, graphql_request_1.gql) `
|
44
|
+
{
|
45
|
+
pairs(
|
46
|
+
orderBy: reserveUSD
|
47
|
+
first: ${length}
|
48
|
+
orderDirection: desc
|
49
|
+
where: { trackedReserveETH_not: "0" }
|
50
|
+
) {
|
51
|
+
id
|
52
|
+
reserve0
|
53
|
+
reserve1
|
54
|
+
totalSupply
|
55
|
+
token0 {
|
56
|
+
id
|
57
|
+
decimals
|
58
|
+
}
|
59
|
+
token1 {
|
60
|
+
id
|
61
|
+
decimals
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
65
|
`;
|
66
66
|
const res = yield (0, graphql_request_1.default)(url, query);
|
67
67
|
const pairs = res.pairs;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.programId = exports.platform = exports.platformId = void 0;
|
4
|
+
const web3_js_1 = require("@solana/web3.js");
|
5
|
+
exports.platformId = 'zelo';
|
6
|
+
exports.platform = {
|
7
|
+
id: exports.platformId,
|
8
|
+
name: 'Zelo Finance',
|
9
|
+
image: 'https://sonar.watch/img/platforms/zelo.webp',
|
10
|
+
website: 'https://www.zelofi.io/',
|
11
|
+
twitter: 'https://x.com/zelofinance',
|
12
|
+
// defiLlamaId: 'foo-finance', // from https://defillama.com/docs/api
|
13
|
+
};
|
14
|
+
exports.programId = new web3_js_1.PublicKey('3weDTR2PBop8SoYXpQEhdRCA9Wr2JK7gj3CxuUbMo2VJ');
|
15
|
+
//# sourceMappingURL=constants.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/zelo/constants.ts"],"names":[],"mappings":";;;AACA,6CAA4C;AAE/B,QAAA,UAAU,GAAG,MAAM,CAAC;AACpB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,cAAc;IACpB,KAAK,EAAE,6CAA6C;IACpD,OAAO,EAAE,wBAAwB;IACjC,OAAO,EAAE,2BAA2B;IACpC,qEAAqE;CACtE,CAAC;AAEW,QAAA,SAAS,GAAG,IAAI,mBAAS,CACpC,8CAA8C,CAC/C,CAAC"}
|
@@ -0,0 +1,12 @@
|
|
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 = exports.platforms = void 0;
|
7
|
+
const constants_1 = require("./constants");
|
8
|
+
const positionsFetcher_1 = __importDefault(require("./positionsFetcher"));
|
9
|
+
exports.platforms = [constants_1.platform];
|
10
|
+
exports.jobs = [];
|
11
|
+
exports.fetchers = [positionsFetcher_1.default];
|
12
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/zelo/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAAuC;AACvC,0EAAkD;AAErC,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,EAAE,CAAC;AACjB,QAAA,QAAQ,GAAc,CAAC,0BAAgB,CAAC,CAAC"}
|
@@ -0,0 +1,40 @@
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
+
const portfolio_core_1 = require("@sonarwatch/portfolio-core");
|
13
|
+
const web3_js_1 = require("@solana/web3.js");
|
14
|
+
const constants_1 = require("./constants");
|
15
|
+
const clients_1 = require("../../utils/clients");
|
16
|
+
const structs_1 = require("./structs");
|
17
|
+
const ElementRegistry_1 = require("../../utils/elementbuilder/ElementRegistry");
|
18
|
+
const getParsedAccountInfo_1 = require("../../utils/solana/getParsedAccountInfo");
|
19
|
+
const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
|
20
|
+
const connection = (0, clients_1.getClientSolana)();
|
21
|
+
const userAccount = yield (0, getParsedAccountInfo_1.getParsedAccountInfo)(connection, structs_1.userRecordStruct, web3_js_1.PublicKey.findProgramAddressSync([Buffer.from('user-v2'), new web3_js_1.PublicKey(owner).toBuffer()], constants_1.programId)[0]);
|
22
|
+
if (!userAccount)
|
23
|
+
return [];
|
24
|
+
const elementRegistry = new ElementRegistry_1.ElementRegistry(portfolio_core_1.NetworkId.solana, constants_1.platformId);
|
25
|
+
const element = elementRegistry.addElementMultiple({
|
26
|
+
label: 'Deposit',
|
27
|
+
});
|
28
|
+
element.addAsset({
|
29
|
+
address: portfolio_core_1.solanaNativeAddress,
|
30
|
+
amount: userAccount.solDeposit,
|
31
|
+
});
|
32
|
+
return elementRegistry.getElements(cache);
|
33
|
+
});
|
34
|
+
const fetcher = {
|
35
|
+
id: `${constants_1.platformId}-positions`,
|
36
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
37
|
+
executor,
|
38
|
+
};
|
39
|
+
exports.default = fetcher;
|
40
|
+
//# sourceMappingURL=positionsFetcher.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"positionsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/zelo/positionsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAA4E;AAC5E,6CAA4C;AAE5C,2CAAoD;AAEpD,iDAAsD;AACtD,uCAA6C;AAC7C,gFAA6E;AAC7E,kFAA+E;AAE/E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IAErC,MAAM,WAAW,GAAG,MAAM,IAAA,2CAAoB,EAC5C,UAAU,EACV,0BAAgB,EAChB,mBAAS,CAAC,sBAAsB,CAC9B,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,IAAI,mBAAS,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAC,EACzD,qBAAS,CACV,CAAC,CAAC,CAAC,CACL,CAAC;IAEF,IAAI,CAAC,WAAW;QAAE,OAAO,EAAE,CAAC;IAE5B,MAAM,eAAe,GAAG,IAAI,iCAAe,CAAC,0BAAS,CAAC,MAAM,EAAE,sBAAU,CAAC,CAAC;IAC1E,MAAM,OAAO,GAAG,eAAe,CAAC,kBAAkB,CAAC;QACjD,KAAK,EAAE,SAAS;KACjB,CAAC,CAAC;IAEH,OAAO,CAAC,QAAQ,CAAC;QACf,OAAO,EAAE,oCAAmB;QAC5B,MAAM,EAAE,WAAW,CAAC,UAAU;KAC/B,CAAC,CAAC;IAEH,OAAO,eAAe,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5C,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,YAAY;IAC7B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|