@sonarwatch/portfolio-plugins 0.14.24 → 0.14.26
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +14 -2
- package/package.json +1 -1
- package/src/index.js +0 -4
- package/src/index.js.map +1 -1
- package/src/plugins/nxfinance/constants.d.ts +4 -0
- package/src/plugins/nxfinance/constants.js +10 -1
- package/src/plugins/nxfinance/constants.js.map +1 -1
- package/src/plugins/nxfinance/index.js +8 -2
- package/src/plugins/nxfinance/index.js.map +1 -1
- package/src/plugins/nxfinance/stakingFetcher.d.ts +3 -0
- package/src/plugins/nxfinance/stakingFetcher.js +88 -0
- package/src/plugins/nxfinance/stakingFetcher.js.map +1 -0
- package/src/plugins/nxfinance/stakingIdl.d.ts +189 -0
- package/src/plugins/nxfinance/stakingIdl.js +1262 -0
- package/src/plugins/nxfinance/stakingIdl.js.map +1 -0
- package/src/plugins/nxfinance/stakingPoolJob.d.ts +3 -0
- package/src/plugins/nxfinance/stakingPoolJob.js +31 -0
- package/src/plugins/nxfinance/stakingPoolJob.js.map +1 -0
- package/src/plugins/nxfinance/types.d.ts +19 -0
- package/src/plugins/orca/constants.d.ts +1 -1
- package/src/plugins/orca/constants.js +2 -2
- package/src/plugins/orca/constants.js.map +1 -1
- package/src/plugins/orca/getWhirlpoolPositions.js +3 -3
- package/src/plugins/orca/getWhirlpoolPositions.js.map +1 -1
- package/src/plugins/orca/helpers.js +1 -1
- package/src/plugins/orca/helpers.js.map +1 -1
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"stakingIdl.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/nxfinance/stakingIdl.ts"],"names":[],"mappings":";;;AAAa,QAAA,mBAAmB,GAAG;IACjC,OAAO,EAAE,OAAO;IAChB,IAAI,EAAE,UAAU;IAChB,SAAS,EAAE;QACT;YACE,IAAI,EAAE,OAAO;YACb,IAAI,EAAE,WAAW;YACjB,KAAK,EACH,6EAA6E;SAChF;QACD;YACE,IAAI,EAAE,aAAa;YACnB,IAAI,E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@@ -0,0 +1,31 @@
|
|
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 solana_1 = require("../../utils/solana");
|
15
|
+
const constants_1 = require("./constants");
|
16
|
+
const clients_1 = require("../../utils/clients");
|
17
|
+
const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
18
|
+
const connection = (0, clients_1.getClientSolana)();
|
19
|
+
const stakePoolAccount = (yield (0, solana_1.getAutoParsedMultipleAccountsInfo)(connection, constants_1.nxfinanceStakingIdlItem, [new web3_js_1.PublicKey('2P1eeegdbEhN3bnCroJJPXiH13i4rw1XYk8ftdh9meRY')]))[0];
|
20
|
+
yield cache.setItem(constants_1.stakingPoolKey, stakePoolAccount, {
|
21
|
+
prefix: constants_1.platformId,
|
22
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
23
|
+
});
|
24
|
+
});
|
25
|
+
const job = {
|
26
|
+
id: `${constants_1.platformId}-staking-pool`,
|
27
|
+
executor,
|
28
|
+
label: 'normal',
|
29
|
+
};
|
30
|
+
exports.default = job;
|
31
|
+
//# sourceMappingURL=stakingPoolJob.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"stakingPoolJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/nxfinance/stakingPoolJob.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AACvD,6CAA4C;AAG5C,+CAAuE;AACvE,2CAIqB;AACrB,iDAAsD;AAGtD,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IAErC,MAAM,gBAAgB,GAAG,CACvB,MAAM,IAAA,0CAAiC,EACrC,UAAU,EACV,mCAAuB,EACvB,CAAC,IAAI,mBAAS,CAAC,8CAA8C,CAAC,CAAC,CAChE,CACF,CAAC,CAAC,CAAC,CAAC;IAEL,MAAM,KAAK,CAAC,OAAO,CAAC,0BAAc,EAAE,gBAAgB,EAAE;QACpD,MAAM,EAAE,sBAAU;QAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;KAC5B,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AAEF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,eAAe;IAChC,QAAQ;IACR,KAAK,EAAE,QAAQ;CAChB,CAAC;AACF,kBAAe,GAAG,CAAC"}
|
@@ -62,3 +62,22 @@ export type LendingAccount = {
|
|
62
62
|
lastNoteRate: string;
|
63
63
|
totalReward: string;
|
64
64
|
};
|
65
|
+
export type StakingAccount = {
|
66
|
+
owner: string;
|
67
|
+
notes: string;
|
68
|
+
stakedTokens: string;
|
69
|
+
stakedNotes: string;
|
70
|
+
withdrawingTokens: string;
|
71
|
+
timeOfWithdrawApply: string;
|
72
|
+
claimableReward: string;
|
73
|
+
lastUpdateNoteTime: string;
|
74
|
+
lastDistributedAndNoteRate: string;
|
75
|
+
};
|
76
|
+
export type StakingPoolAccount = {
|
77
|
+
stakeTokenMint: string;
|
78
|
+
stakedTokens: string;
|
79
|
+
stakedNotes: string;
|
80
|
+
withdrawingTokens: string;
|
81
|
+
increaseNoteRatePerSecond: string;
|
82
|
+
maxMultipleOfNote: string;
|
83
|
+
};
|
@@ -6,6 +6,6 @@ export declare const orcaStakingPlatformId = "orca-staking";
|
|
6
6
|
export declare const orcaStakingPlatform: Platform;
|
7
7
|
export declare const poolsProgram: PublicKey;
|
8
8
|
export declare const aquafarmsProgram: PublicKey;
|
9
|
-
export declare const
|
9
|
+
export declare const positionsIdentifiers: string[];
|
10
10
|
export declare const whirlpoolPrefix = "orca-whirlpool";
|
11
11
|
export declare const whirlpoolProgram: PublicKey;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.whirlpoolProgram = exports.whirlpoolPrefix = exports.
|
3
|
+
exports.whirlpoolProgram = exports.whirlpoolPrefix = exports.positionsIdentifiers = exports.aquafarmsProgram = exports.poolsProgram = exports.orcaStakingPlatform = exports.orcaStakingPlatformId = exports.platform = exports.platformId = void 0;
|
4
4
|
const web3_js_1 = require("@solana/web3.js");
|
5
5
|
exports.platformId = 'orca';
|
6
6
|
exports.platform = {
|
@@ -19,7 +19,7 @@ exports.orcaStakingPlatform = {
|
|
19
19
|
};
|
20
20
|
exports.poolsProgram = new web3_js_1.PublicKey('9W959DqEETiGZocYWCQPaJ6sBmUzgfxXfqGeTEdp3aQP');
|
21
21
|
exports.aquafarmsProgram = new web3_js_1.PublicKey('82yxjeMsvaURa4MbZZ7WZZHfobirZYkH1zF8fmeGtyaQ');
|
22
|
-
exports.
|
22
|
+
exports.positionsIdentifiers = ['Orca Whirlpool Position', 'OWP'];
|
23
23
|
exports.whirlpoolPrefix = `${exports.platformId}-whirlpool`;
|
24
24
|
exports.whirlpoolProgram = new web3_js_1.PublicKey('whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc');
|
25
25
|
//# sourceMappingURL=constants.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/orca/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,MAAM,CAAC;AACpB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,6CAA6C;IACpD,WAAW,EAAE,MAAM;IACnB,OAAO,EAAE,sBAAsB;CAChC,CAAC;AAEW,QAAA,qBAAqB,GAAG,cAAc,CAAC;AACvC,QAAA,mBAAmB,GAAa;IAC3C,EAAE,EAAE,6BAAqB;IACzB,IAAI,EAAE,cAAc;IACpB,KAAK,EAAE,6CAA6C;IACpD,OAAO,EAAE,4BAA4B;CACtC,CAAC;AAEW,QAAA,YAAY,GAAG,IAAI,mBAAS,CACvC,8CAA8C,CAC/C,CAAC;AACW,QAAA,gBAAgB,GAAG,IAAI,mBAAS,CAC3C,8CAA8C,CAC/C,CAAC;AAEW,QAAA,
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/orca/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,MAAM,CAAC;AACpB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,6CAA6C;IACpD,WAAW,EAAE,MAAM;IACnB,OAAO,EAAE,sBAAsB;CAChC,CAAC;AAEW,QAAA,qBAAqB,GAAG,cAAc,CAAC;AACvC,QAAA,mBAAmB,GAAa;IAC3C,EAAE,EAAE,6BAAqB;IACzB,IAAI,EAAE,cAAc;IACpB,KAAK,EAAE,6CAA6C;IACpD,OAAO,EAAE,4BAA4B;CACtC,CAAC;AAEW,QAAA,YAAY,GAAG,IAAI,mBAAS,CACvC,8CAA8C,CAC/C,CAAC;AACW,QAAA,gBAAgB,GAAG,IAAI,mBAAS,CAC3C,8CAA8C,CAC/C,CAAC;AAEW,QAAA,oBAAoB,GAAG,CAAC,yBAAyB,EAAE,KAAK,CAAC,CAAC;AAC1D,QAAA,eAAe,GAAG,GAAG,kBAAU,YAAY,CAAC;AAC5C,QAAA,gBAAgB,GAAG,IAAI,mBAAS,CAC3C,6CAA6C,CAC9C,CAAC"}
|
@@ -136,9 +136,7 @@ function getOrcaNftFetcher(platformId, programId) {
|
|
136
136
|
}
|
137
137
|
}
|
138
138
|
}
|
139
|
-
if (!assetTokenA ||
|
140
|
-
!assetTokenB ||
|
141
|
-
(assetTokenA.value === null && assetTokenB.value === null))
|
139
|
+
if (!assetTokenA || !assetTokenB)
|
142
140
|
continue;
|
143
141
|
const assets = [assetTokenA, assetTokenB];
|
144
142
|
const assetsValue = (0, portfolio_core_1.getUsdValueSum)([
|
@@ -147,6 +145,8 @@ function getOrcaNftFetcher(platformId, programId) {
|
|
147
145
|
]);
|
148
146
|
const rewardAssetsValue = (0, portfolio_core_1.getUsdValueSum)(rewardAssets.map((a) => a.value));
|
149
147
|
const totalValue = (0, portfolio_core_1.getUsdValueSum)([assetsValue, rewardAssetsValue]);
|
148
|
+
if (totalValue === 0 || totalValue === null)
|
149
|
+
continue;
|
150
150
|
elements.push({
|
151
151
|
type: portfolio_core_1.PortfolioElementType.liquidity,
|
152
152
|
networkId: portfolio_core_1.NetworkId.solana,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getWhirlpoolPositions.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/orca/getWhirlpoolPositions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+DAOoC;AACpC,6CAA4C;AAC5C,2CAIqB;AACrB,iDAAsD;AACtD,+CAG4B;AAE5B,mDAAgE;AAChE,qGAA6E;AAC7E,wFAAyF;AAEzF,iDAIwB;AAEX,QAAA,qBAAqB,GAAG,iBAAiB,CACpD,sBAAc,EACd,4BAAgB,CACjB,CAAC;AAEF,SAAgB,iBAAiB,CAC/B,UAAkB,EAClB,SAAoB;IAEpB,OAAO,CACL,KAAY,EACZ,IAAiC,EACJ,EAAE;QAC/B,MAAM,MAAM,GAAG,I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AAC;QAEvC,MAAM,CAAC,WAAW,EAAE,UAAU,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;YAClD,KAAK,CAAC,mBAAmB,CAAC,CAAC,GAAG,WAAW,CAAC,EAAE,0BAAS,CAAC,MAAM,CAAC;YAC7D,IAAA,iCAAkB,EAAC,aAAa,EAAE,YAAY,CAAC;SAChD,CAAC,CAAC;QAEH,MAAM,QAAQ,GAAuB,EAAE,CAAC;QACxC,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,aAAa,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC;YAC1D,MAAM,YAAY,GAAG,aAAa,CAAC,KAAK,CAAC,CAAC;YAC1C,IAAI,CAAC,YAAY;gBAAE,SAAS;YAE5B,MAAM,aAAa,GAAG,YAAY,CAAC,GAAG,CAAC,YAAY,CAAC,SAAS,CAAC,QAAQ,EAAE,CAAC,CAAC;YAC1E,IAAI,CAAC,aAAa;gBAAE,SAAS;YAE7B,IACE,CAAC,aAAa,CAAC,UAAU;gBACzB,CAAC,aAAa,CAAC,UAAU;gBACzB,CAAC,aAAa,CAAC,gBAAgB;gBAE/B,SAAS;YAEX,MAAM,EAAE,YAAY,EAAE,YAAY,EAAE,GAAG,IAAA,uDAA4B,EACjE,YAAY,CAAC,SAAS,EACtB,aAAa,CAAC,gBAAgB,EAC9B,YAAY,CAAC,cAAc,EAC3B,YAAY,CAAC,cAAc,EAC3B,KAAK,CACN,CAAC;
|
1
|
+
{"version":3,"file":"getWhirlpoolPositions.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/orca/getWhirlpoolPositions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+DAOoC;AACpC,6CAA4C;AAC5C,2CAIqB;AACrB,iDAAsD;AACtD,+CAG4B;AAE5B,mDAAgE;AAChE,qGAA6E;AAC7E,wFAAyF;AAEzF,iDAIwB;AAEX,QAAA,qBAAqB,GAAG,iBAAiB,CACpD,sBAAc,E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,KAAK,EAAE,eAAe;gBACtB,IAAI,EAAE,cAAc;gBACpB,KAAK,EAAE,UAAU;gBACjB,IAAI,EAAE;oBACJ,WAAW,EAAE;wBACX;4BACE,MAAM;4BACN,WAAW;4BACX,YAAY;4BACZ,iBAAiB;4BACjB,KAAK,EAAE,UAAU;4BACjB,MAAM,EAAE,EAAE;yBACX;qBACF;iBACF;gBACD,IAAI;aACL,CAAC,CAAC;QACL,CAAC;QAED,OAAO,QAAQ,CAAC;IAClB,CAAC,CAAA,CAAC;AACJ,CAAC;AAtPD,8CAsPC"}
|
@@ -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.name ===
|
13
|
+
return constants_1.positionsIdentifiers.some((identifier) => { var _a; return (_a = nft.name) === null || _a === void 0 ? void 0 : _a.includes(identifier); });
|
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,
|
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,2CAAmD;AAEnD,SAAgB,gBAAgB,CAAC,GAA8B;IAC7D,OAAO,gCAAoB,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,EAAE,WAC9C,OAAA,MAAA,GAAG,CAAC,IAAI,0CAAE,QAAQ,CAAC,UAAU,C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