@sonarwatch/portfolio-plugins 0.14.23 → 0.14.25
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +1684 -1676
- package/README.md +3 -3
- package/package.json +1 -1
- package/src/index.js +0 -4
- package/src/index.js.map +1 -1
- package/src/plugins/balancer/helpers/pools.js +21 -21
- package/src/plugins/cyberfrogs/constants.js +1 -1
- package/src/plugins/cyberfrogs/constants.js.map +1 -1
- package/src/plugins/cyberfrogs/thorDepositFetcher.js +1 -0
- package/src/plugins/cyberfrogs/thorDepositFetcher.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/sushiswap/helpers.js +24 -24
- package/src/plugins/uniswap-v2/helpers.js +22 -22
- package/src/plugins/zeta/airdropFetcher.js +14 -14
- package/src/utils/misc/getSourceWeight.d.ts +1 -1
- package/src/utils/misc/getSourceWeight.js +3 -3
- package/src/utils/misc/getSourceWeight.js.map +1 -1
- package/src/utils/sei/constants.js +8 -8
- package/src/utils/sei/getQueryBalanceByOwner.js +4 -4
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"stakingIdl.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/nxfinance/stak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I,EAAE,oBAAoB;YAC1B,GAAG,EAAE,iCAAiC;SACvC;QACD;YACE,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,6BAA6B;YACnC,GAAG,EAAE,+BAA+B;SACrC;QACD;YACE,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,4BAA4B;YAClC,GAAG,EAAE,+BAA+B;SACrC;KACF;CACF,CAAC"}
|
@@ -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
|
+
};
|
@@ -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;
|
@@ -42,20 +42,20 @@ const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/token
|
|
42
42
|
const clients_1 = require("../../utils/clients");
|
43
43
|
const getMultipleAccountsInfoSafe_1 = require("../../utils/solana/getMultipleAccountsInfoSafe");
|
44
44
|
const helpers_1 = require("./helpers");
|
45
|
-
const query = (0, graphql_request_1.gql) `
|
46
|
-
query GetAirdropFinalFrontend($authority: String!) {
|
47
|
-
getAirdropFinalFrontend(authority: $authority) {
|
48
|
-
authority
|
49
|
-
community_allocation
|
50
|
-
eligibility
|
51
|
-
main_allocation
|
52
|
-
og_allocation
|
53
|
-
s1_allocation
|
54
|
-
s2_allocation
|
55
|
-
total_allocation
|
56
|
-
__typename
|
57
|
-
}
|
58
|
-
}
|
45
|
+
const query = (0, graphql_request_1.gql) `
|
46
|
+
query GetAirdropFinalFrontend($authority: String!) {
|
47
|
+
getAirdropFinalFrontend(authority: $authority) {
|
48
|
+
authority
|
49
|
+
community_allocation
|
50
|
+
eligibility
|
51
|
+
main_allocation
|
52
|
+
og_allocation
|
53
|
+
s1_allocation
|
54
|
+
s2_allocation
|
55
|
+
total_allocation
|
56
|
+
__typename
|
57
|
+
}
|
58
|
+
}
|
59
59
|
`;
|
60
60
|
const networkId = portfolio_core_1.NetworkId.solana;
|
61
61
|
const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
|
@@ -3,7 +3,7 @@ import BigNumber from 'bignumber.js';
|
|
3
3
|
* Get the weight of a new TokenPriceSource depending on the size of the pool in USD$ value
|
4
4
|
*
|
5
5
|
* @param {BigNumber | number} poolTvl Pool total value locked (in USD$)
|
6
|
-
* @param {number} [trustValue=
|
6
|
+
* @param {number} [trustValue=100000000] Value (in USD$) from which the weight is 1
|
7
7
|
*
|
8
8
|
* @returns weight between 0 and 1
|
9
9
|
*/
|
@@ -9,11 +9,11 @@ const constants_1 = require("./constants");
|
|
9
9
|
* Get the weight of a new TokenPriceSource depending on the size of the pool in USD$ value
|
10
10
|
*
|
11
11
|
* @param {BigNumber | number} poolTvl Pool total value locked (in USD$)
|
12
|
-
* @param {number} [trustValue=
|
12
|
+
* @param {number} [trustValue=100000000] Value (in USD$) from which the weight is 1
|
13
13
|
*
|
14
14
|
* @returns weight between 0 and 1
|
15
15
|
*/
|
16
|
-
function getSourceWeight(poolTvl, trustValue =
|
16
|
+
function getSourceWeight(poolTvl, trustValue = 100000000) {
|
17
17
|
const fPoolTvl = new bignumber_js_1.default(poolTvl);
|
18
18
|
if (fPoolTvl.isGreaterThanOrEqualTo(trustValue))
|
19
19
|
return 1;
|
@@ -21,7 +21,7 @@ function getSourceWeight(poolTvl, trustValue = 1000000000) {
|
|
21
21
|
return 0;
|
22
22
|
return fPoolTvl
|
23
23
|
.dividedBy(trustValue)
|
24
|
-
.decimalPlaces(
|
24
|
+
.decimalPlaces(6, bignumber_js_1.default.ROUND_CEIL)
|
25
25
|
.toNumber();
|
26
26
|
}
|
27
27
|
exports.default = getSourceWeight;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getSourceWeight.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/misc/getSourceWeight.ts"],"names":[],"mappings":";;;;;AAAA,gEAAqC;AACrC,2CAA4C;AAE5C;;;;;;;GAOG;AACH,SAAwB,eAAe,CACrC,OAA2B,EAC3B,UAAU,GAAG,
|
1
|
+
{"version":3,"file":"getSourceWeight.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/misc/getSourceWeight.ts"],"names":[],"mappings":";;;;;AAAA,gEAAqC;AACrC,2CAA4C;AAE5C;;;;;;;GAOG;AACH,SAAwB,eAAe,CACrC,OAA2B,EAC3B,UAAU,GAAG,SAAS;IAEtB,MAAM,QAAQ,GAAG,IAAI,sBAAS,CAAC,OAAO,CAAC,CAAC;IACxC,IAAI,QAAQ,CAAC,sBAAsB,CAAC,UAAU,CAAC;QAAE,OAAO,CAAC,CAAC;IAC1D,IAAI,QAAQ,CAAC,mBAAmB,CAAC,yBAAa,CAAC;QAAE,OAAO,CAAC,CAAC;IAC1D,OAAO,QAAQ;SACZ,SAAS,CAAC,UAAU,CAAC;SACrB,aAAa,CAAC,CAAC,EAAE,sBAAS,CAAC,UAAU,CAAC;SACtC,QAAQ,EAAE,CAAC;AAChB,CAAC;AAXD,kCAWC"}
|
@@ -1,16 +1,16 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.poolQueryMsg = exports.minterQueryMsg = exports.tokenInfoQueryMsg = exports.infoQueryMsg = void 0;
|
4
|
-
exports.infoQueryMsg = JSON.parse(`{
|
5
|
-
"info": {}
|
4
|
+
exports.infoQueryMsg = JSON.parse(`{
|
5
|
+
"info": {}
|
6
6
|
}`);
|
7
|
-
exports.tokenInfoQueryMsg = JSON.parse(`{
|
8
|
-
"token_info": {}
|
7
|
+
exports.tokenInfoQueryMsg = JSON.parse(`{
|
8
|
+
"token_info": {}
|
9
9
|
}`);
|
10
|
-
exports.minterQueryMsg = JSON.parse(`{
|
11
|
-
"minter": {}
|
10
|
+
exports.minterQueryMsg = JSON.parse(`{
|
11
|
+
"minter": {}
|
12
12
|
}`);
|
13
|
-
exports.poolQueryMsg = JSON.parse(`{
|
14
|
-
"pool": {}
|
13
|
+
exports.poolQueryMsg = JSON.parse(`{
|
14
|
+
"pool": {}
|
15
15
|
}`);
|
16
16
|
//# sourceMappingURL=constants.js.map
|
@@ -1,10 +1,10 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
function getQueryBalanceByOwner(owner) {
|
4
|
-
return JSON.parse(`{
|
5
|
-
"balance": {
|
6
|
-
"address": "${owner}"
|
7
|
-
}
|
4
|
+
return JSON.parse(`{
|
5
|
+
"balance": {
|
6
|
+
"address": "${owner}"
|
7
|
+
}
|
8
8
|
}`);
|
9
9
|
}
|
10
10
|
exports.default = getQueryBalanceByOwner;
|