@sonarwatch/portfolio-plugins 0.12.118 → 0.12.120
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +2197 -2189
- package/README.md +3 -3
- package/package.json +1 -1
- package/src/plugins/balancer/helpers/pools.js +21 -21
- package/src/plugins/banx/constants.d.ts +1 -1
- package/src/plugins/banx/constants.js +1 -1
- package/src/plugins/banx/constants.js.map +1 -1
- package/src/plugins/banx/stakingFetcher.js +16 -23
- package/src/plugins/banx/stakingFetcher.js.map +1 -1
- package/src/plugins/drift/depositsFetcher.js +26 -9
- package/src/plugins/drift/depositsFetcher.js.map +1 -1
- package/src/plugins/kamino/lendsFetcher.js +1 -1
- package/src/plugins/kamino/lendsFetcher.js.map +1 -1
- package/src/plugins/mango/banksJob.js +3 -8
- package/src/plugins/mango/banksJob.js.map +1 -1
- package/src/plugins/mango/boostFetcher.js +13 -3
- package/src/plugins/mango/boostFetcher.js.map +1 -1
- package/src/plugins/mango/collateralFetcher.js +21 -4
- package/src/plugins/mango/collateralFetcher.js.map +1 -1
- package/src/plugins/mango/constants.d.ts +2 -0
- package/src/plugins/mango/constants.js +8 -1
- package/src/plugins/mango/constants.js.map +1 -1
- package/src/plugins/nxfinance/constants.js +1 -0
- package/src/plugins/nxfinance/constants.js.map +1 -1
- package/src/plugins/picasso/helpers.js +0 -1
- package/src/plugins/picasso/helpers.js.map +1 -1
- package/src/plugins/picasso/unstakingPositionsFetcher.js +0 -1
- package/src/plugins/picasso/unstakingPositionsFetcher.js.map +1 -1
- package/src/plugins/sushiswap/helpers.js +24 -24
- package/src/plugins/tensor/helpers.d.ts +2 -0
- package/src/plugins/tensor/helpers.js +12 -1
- package/src/plugins/tensor/helpers.js.map +1 -1
- package/src/plugins/tensor/index.js +2 -0
- package/src/plugins/tensor/index.js.map +1 -1
- package/src/plugins/tensor/sharedEscrowFetcher.d.ts +3 -0
- package/src/plugins/tensor/sharedEscrowFetcher.js +52 -0
- package/src/plugins/tensor/sharedEscrowFetcher.js.map +1 -0
- package/src/plugins/uniswap-v2/helpers.js +22 -22
- package/src/plugins/x-staking-solana/constants.d.ts +2 -0
- package/src/plugins/x-staking-solana/constants.js +17 -1
- package/src/plugins/x-staking-solana/constants.js.map +1 -1
- package/src/plugins/x-staking-solana/index.js +5 -1
- package/src/plugins/x-staking-solana/index.js.map +1 -1
- package/src/utils/sei/constants.js +8 -8
- package/src/utils/sei/getQueryBalanceByOwner.js +4 -4
@@ -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;
|
@@ -3,8 +3,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
exports.findPowerUserAllocation = void 0;
|
6
|
+
exports.findMarginPDA = exports.findPowerUserAllocation = void 0;
|
7
|
+
const bn_js_1 = __importDefault(require("bn.js"));
|
8
|
+
const web3_js_1 = require("@solana/web3.js");
|
7
9
|
const powerUsers_json_1 = __importDefault(require("./powerUsers.json"));
|
10
|
+
const constants_1 = require("./constants");
|
8
11
|
function findPowerUserAllocation(owner) {
|
9
12
|
const users = powerUsers_json_1.default;
|
10
13
|
const amount = users[owner];
|
@@ -13,4 +16,12 @@ function findPowerUserAllocation(owner) {
|
|
13
16
|
return amount;
|
14
17
|
}
|
15
18
|
exports.findPowerUserAllocation = findPowerUserAllocation;
|
19
|
+
const findMarginPDA = (owner) => web3_js_1.PublicKey.findProgramAddressSync([
|
20
|
+
Buffer.from('margin'),
|
21
|
+
web3_js_1.PublicKey.findProgramAddressSync([], constants_1.tensorPid)[0].toBytes(),
|
22
|
+
new web3_js_1.PublicKey(owner).toBytes(),
|
23
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
24
|
+
new bn_js_1.default(0).toArrayLike(Uint8Array, 'le', 2),
|
25
|
+
], constants_1.tensorPid)[0];
|
26
|
+
exports.findMarginPDA = findMarginPDA;
|
16
27
|
//# sourceMappingURL=helpers.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/tensor/helpers.ts"],"names":[],"mappings":";;;;;;AAAA,wEAA2C;
|
1
|
+
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/tensor/helpers.ts"],"names":[],"mappings":";;;;;;AAAA,kDAAuB;AACvB,6CAA4C;AAC5C,wEAA2C;AAC3C,2CAAwC;AAExC,SAAgB,uBAAuB,CAAC,KAAa;IACnD,MAAM,KAAK,GAA8B,yBAAU,CAAC;IACpD,MAAM,MAAM,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC;IAC5B,IAAI,CAAC,MAAM;QAAE,OAAO,SAAS,CAAC;IAC9B,OAAO,MAAM,CAAC;AAChB,CAAC;AALD,0DAKC;AAEM,MAAM,aAAa,GAAG,CAAC,KAAa,EAAE,EAAE,CAC7C,mBAAS,CAAC,sBAAsB,CAC9B;IACE,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC;IACrB,mBAAS,CAAC,sBAAsB,CAAC,EAAE,EAAE,qBAAS,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE;IAC5D,IAAI,mBAAS,CAAC,KAAK,CAAC,CAAC,OAAO,EAAE;IAC9B,8DAA8D;IAC9D,IAAI,eAAE,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,UAAiB,EAAE,IAAI,EAAE,CAAC,CAAC;CAClD,EACD,qBAAS,CACV,CAAC,CAAC,CAAC,CAAC;AAVM,QAAA,aAAa,iBAUnB"}
|
@@ -8,10 +8,12 @@ const constants_1 = require("./constants");
|
|
8
8
|
const bidsFetcher_1 = __importDefault(require("./bidsFetcher"));
|
9
9
|
const locksFetcher_1 = __importDefault(require("./locksFetcher"));
|
10
10
|
const airdropPowerUsersFetcher_1 = __importDefault(require("./airdropPowerUsersFetcher"));
|
11
|
+
const sharedEscrowFetcher_1 = __importDefault(require("./sharedEscrowFetcher"));
|
11
12
|
exports.platforms = [constants_1.platform];
|
12
13
|
exports.fetchers = [
|
13
14
|
bidsFetcher_1.default,
|
14
15
|
locksFetcher_1.default,
|
15
16
|
airdropPowerUsersFetcher_1.default,
|
17
|
+
sharedEscrowFetcher_1.default,
|
16
18
|
];
|
17
19
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/tensor/index.ts"],"names":[],"mappings":";;;;;;AAIA,2CAAuC;AACvC,gEAAwC;AACxC,kEAA0C;AAC1C,0FAAiE;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/tensor/index.ts"],"names":[],"mappings":";;;;;;AAIA,2CAAuC;AACvC,gEAAwC;AACxC,kEAA0C;AAC1C,0FAAiE;AACjE,gFAAwD;AAE3C,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,QAAQ,GAAc;IACjC,qBAAW;IACX,sBAAY;IACZ,kCAAuB;IACvB,6BAAmB;CACpB,CAAC"}
|
@@ -0,0 +1,52 @@
|
|
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 portfolio_core_1 = require("@sonarwatch/portfolio-core");
|
16
|
+
const bignumber_js_1 = __importDefault(require("bignumber.js"));
|
17
|
+
const constants_1 = require("./constants");
|
18
|
+
const clients_1 = require("../../utils/clients");
|
19
|
+
const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/tokenPriceToAssetToken"));
|
20
|
+
const helpers_1 = require("./helpers");
|
21
|
+
const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
|
22
|
+
const client = (0, clients_1.getClientSolana)();
|
23
|
+
const marginPDA = (0, helpers_1.findMarginPDA)(owner);
|
24
|
+
const solRawBalance = yield client.getBalance(marginPDA);
|
25
|
+
if (!solRawBalance || solRawBalance === 0)
|
26
|
+
return [];
|
27
|
+
const rent = yield client.getMinimumBalanceForRentExemption(8);
|
28
|
+
const solTokenPrice = yield cache.getTokenPrice(portfolio_core_1.solanaNativeAddress, portfolio_core_1.NetworkId.solana);
|
29
|
+
const amount = new bignumber_js_1.default(solRawBalance)
|
30
|
+
.minus(rent)
|
31
|
+
.dividedBy(Math.pow(10, portfolio_core_1.solanaNetwork.native.decimals))
|
32
|
+
.toNumber();
|
33
|
+
const asset = (0, tokenPriceToAssetToken_1.default)(portfolio_core_1.solanaNativeAddress, amount, portfolio_core_1.NetworkId.solana, solTokenPrice);
|
34
|
+
return [
|
35
|
+
{
|
36
|
+
type: portfolio_core_1.PortfolioElementType.multiple,
|
37
|
+
label: 'Deposit',
|
38
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
39
|
+
platformId: constants_1.platformId,
|
40
|
+
name: 'Shared Escrow',
|
41
|
+
value: asset.value,
|
42
|
+
data: { assets: [asset] },
|
43
|
+
},
|
44
|
+
];
|
45
|
+
});
|
46
|
+
const fetcher = {
|
47
|
+
id: `${constants_1.platformId}-shared-escrow`,
|
48
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
49
|
+
executor,
|
50
|
+
};
|
51
|
+
exports.default = fetcher;
|
52
|
+
//# sourceMappingURL=sharedEscrowFetcher.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"sharedEscrowFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/tensor/sharedEscrowFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAKoC;AACpC,gEAAqC;AAGrC,2CAAyC;AACzC,iDAAsD;AACtD,qGAA6E;AAC7E,uCAA0C;AAE1C,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,SAAS,GAAG,IAAA,uBAAa,EAAC,KAAK,CAAC,CAAC;IAEvC,MAAM,aAAa,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;IAEzD,IAAI,CAAC,aAAa,IAAI,aAAa,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAErD,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,iCAAiC,CAAC,CAAC,CAAC,CAAC;IAE/D,MAAM,aAAa,GAAG,MAAM,KAAK,CAAC,aAAa,CAC7C,oCAAmB,EACnB,0BAAS,CAAC,MAAM,CACjB,CAAC;IAEF,MAAM,MAAM,GAAG,IAAI,sBAAS,CAAC,aAAa,CAAC;SACxC,KAAK,CAAC,IAAI,CAAC;SACX,SAAS,CAAC,SAAA,EAAE,EAAI,8BAAa,CAAC,MAAM,CAAC,QAAQ,CAAA,CAAC;SAC9C,QAAQ,EAAE,CAAC;IAEd,MAAM,KAAK,GAAG,IAAA,gCAAsB,EAClC,oCAAmB,EACnB,MAAM,EACN,0BAAS,CAAC,MAAM,EAChB,aAAa,CACd,CAAC;IAEF,OAAO;QACL;YACE,IAAI,EAAE,qCAAoB,CAAC,QAAQ;YACnC,KAAK,EAAE,SAAS;YAChB,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,UAAU,EAAV,sBAAU;YACV,IAAI,EAAE,eAAe;YACrB,KAAK,EAAE,KAAK,CAAC,KAAK;YAClB,IAAI,EAAE,EAAE,MAAM,EAAE,CAAC,KAAK,CAAC,EAAE;SAC1B;KACF,CAAC;AACJ,CAAC,CAAA,CAAC;AACF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,gBAAgB;IACjC,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -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;
|
@@ -3,6 +3,8 @@ export declare const stepFinancePlatformId = "stepfinance";
|
|
3
3
|
export declare const stepFinancePlatform: Platform;
|
4
4
|
export declare const allbridgePlatformId = "allbridge";
|
5
5
|
export declare const allbridgePlatform: Platform;
|
6
|
+
export declare const ligmaPlatformId = "ligma";
|
7
|
+
export declare const ligmaPlatform: Platform;
|
6
8
|
export declare const xStakingConfigs: StakingConfig[];
|
7
9
|
export type StakingConfig = {
|
8
10
|
mint: string;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.xStakingConfigs = exports.allbridgePlatform = exports.allbridgePlatformId = exports.stepFinancePlatform = exports.stepFinancePlatformId = void 0;
|
3
|
+
exports.xStakingConfigs = exports.ligmaPlatform = exports.ligmaPlatformId = exports.allbridgePlatform = exports.allbridgePlatformId = exports.stepFinancePlatform = exports.stepFinancePlatformId = void 0;
|
4
4
|
const constants_1 = require("../aurory/constants");
|
5
5
|
const constants_2 = require("../hawksight/constants");
|
6
6
|
const constants_3 = require("../whalesmarket/constants");
|
@@ -20,6 +20,14 @@ exports.allbridgePlatform = {
|
|
20
20
|
website: 'https://stake.allbridge.io/?chain=SOL',
|
21
21
|
twitter: 'https://twitter.com/Allbridge_io',
|
22
22
|
};
|
23
|
+
exports.ligmaPlatformId = 'ligma';
|
24
|
+
exports.ligmaPlatform = {
|
25
|
+
id: exports.allbridgePlatformId,
|
26
|
+
name: 'Ligma',
|
27
|
+
image: 'https://sonar.watch/img/platforms/ligma.webp',
|
28
|
+
website: 'https://stake.ligmanode.com/',
|
29
|
+
twitter: 'https://twitter.com/ligmanode',
|
30
|
+
};
|
23
31
|
exports.xStakingConfigs = [
|
24
32
|
{
|
25
33
|
mint: constants_1.auryMint,
|
@@ -61,5 +69,13 @@ exports.xStakingConfigs = [
|
|
61
69
|
xDecimals: 6,
|
62
70
|
platformId: constants_2.platformId,
|
63
71
|
},
|
72
|
+
{
|
73
|
+
mint: 'node3SHFNF7h6N9jbztfVcXrZcvAJdns1xAV8CbYFLG',
|
74
|
+
decimals: 6,
|
75
|
+
vault: 'ENz6c4ZVYedrcK5V4fh7vwDA1SvZDNDQb1j3KKQbbo8Q',
|
76
|
+
xMint: 'xNodeyB1u8WNrKQJqfucbKDMq7LYcAQfYXmqVdDj9M5',
|
77
|
+
xDecimals: 6,
|
78
|
+
platformId: exports.ligmaPlatformId,
|
79
|
+
},
|
64
80
|
];
|
65
81
|
//# sourceMappingURL=constants.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/x-staking-solana/constants.ts"],"names":[],"mappings":";;;AACA,mDAM6B;AAC7B,sDAA2E;AAC3E,yDAAiF;AAEpE,QAAA,qBAAqB,GAAG,aAAa,CAAC;AACtC,QAAA,mBAAmB,GAAa;IAC3C,EAAE,EAAE,6BAAqB;IACzB,IAAI,EAAE,cAAc;IACpB,KAAK,EAAE,oDAAoD;IAC3D,OAAO,EAAE,2BAA2B;IACpC,OAAO,EAAE,kCAAkC;CAC5C,CAAC;AAEW,QAAA,mBAAmB,GAAG,WAAW,CAAC;AAClC,QAAA,iBAAiB,GAAa;IACzC,EAAE,EAAE,2BAAmB;IACvB,IAAI,EAAE,WAAW;IACjB,KAAK,EAAE,kDAAkD;IACzD,OAAO,EAAE,uCAAuC;IAChD,OAAO,EAAE,kCAAkC;CAC5C,CAAC;AAEW,QAAA,eAAe,GAAoB;IAC9C;QACE,IAAI,EAAE,oBAAQ;QACd,QAAQ,EAAR,oBAAQ;QACR,KAAK,EAAE,uBAAW;QAClB,KAAK,EAAE,qBAAS;QAChB,SAAS,EAAE,CAAC;QACZ,UAAU,EAAE,sBAAgB;KAC7B;IACD;QACE,IAAI,EAAE,8CAA8C;QACpD,QAAQ,EAAE,CAAC;QACX,KAAK,EAAE,8CAA8C;QACrD,KAAK,EAAE,8CAA8C;QACrD,SAAS,EAAE,CAAC;QACZ,UAAU,EAAE,sBAAsB;KACnC;IACD;QACE,IAAI,EAAE,6CAA6C;QACnD,QAAQ,EAAE,CAAC;QACX,KAAK,EAAE,8CAA8C;QACrD,KAAK,EAAE,6CAA6C;QACpD,SAAS,EAAE,CAAC;QACZ,UAAU,EAAE,6BAAqB;KAClC;IACD;QACE,IAAI,EAAE,6CAA6C;QACnD,QAAQ,EAAE,CAAC;QACX,KAAK,EAAE,8CAA8C;QACrD,KAAK,EAAE,6CAA6C;QACpD,SAAS,EAAE,CAAC;QACZ,UAAU,EAAE,2BAAmB;KAChC;IACD;QACE,IAAI,EAAE,8CAA8C;QACpD,QAAQ,EAAE,CAAC;QACX,KAAK,EAAE,8CAA8C;QACrD,KAAK,EAAE,6CAA6C;QACpD,SAAS,EAAE,CAAC;QACZ,UAAU,EAAE,sBAAmB;KAChC;CACF,CAAC"}
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/x-staking-solana/constants.ts"],"names":[],"mappings":";;;AACA,mDAM6B;AAC7B,sDAA2E;AAC3E,yDAAiF;AAEpE,QAAA,qBAAqB,GAAG,aAAa,CAAC;AACtC,QAAA,mBAAmB,GAAa;IAC3C,EAAE,EAAE,6BAAqB;IACzB,IAAI,EAAE,cAAc;IACpB,KAAK,EAAE,oDAAoD;IAC3D,OAAO,EAAE,2BAA2B;IACpC,OAAO,EAAE,kCAAkC;CAC5C,CAAC;AAEW,QAAA,mBAAmB,GAAG,WAAW,CAAC;AAClC,QAAA,iBAAiB,GAAa;IACzC,EAAE,EAAE,2BAAmB;IACvB,IAAI,EAAE,WAAW;IACjB,KAAK,EAAE,kDAAkD;IACzD,OAAO,EAAE,uCAAuC;IAChD,OAAO,EAAE,kCAAkC;CAC5C,CAAC;AAEW,QAAA,eAAe,GAAG,OAAO,CAAC;AAC1B,QAAA,aAAa,GAAa;IACrC,EAAE,EAAE,2BAAmB;IACvB,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,8CAA8C;IACrD,OAAO,EAAE,8BAA8B;IACvC,OAAO,EAAE,+BAA+B;CACzC,CAAC;AACW,QAAA,eAAe,GAAoB;IAC9C;QACE,IAAI,EAAE,oBAAQ;QACd,QAAQ,EAAR,oBAAQ;QACR,KAAK,EAAE,uBAAW;QAClB,KAAK,EAAE,qBAAS;QAChB,SAAS,EAAE,CAAC;QACZ,UAAU,EAAE,sBAAgB;KAC7B;IACD;QACE,IAAI,EAAE,8CAA8C;QACpD,QAAQ,EAAE,CAAC;QACX,KAAK,EAAE,8CAA8C;QACrD,KAAK,EAAE,8CAA8C;QACrD,SAAS,EAAE,CAAC;QACZ,UAAU,EAAE,sBAAsB;KACnC;IACD;QACE,IAAI,EAAE,6CAA6C;QACnD,QAAQ,EAAE,CAAC;QACX,KAAK,EAAE,8CAA8C;QACrD,KAAK,EAAE,6CAA6C;QACpD,SAAS,EAAE,CAAC;QACZ,UAAU,EAAE,6BAAqB;KAClC;IACD;QACE,IAAI,EAAE,6CAA6C;QACnD,QAAQ,EAAE,CAAC;QACX,KAAK,EAAE,8CAA8C;QACrD,KAAK,EAAE,6CAA6C;QACpD,SAAS,EAAE,CAAC;QACZ,UAAU,EAAE,2BAAmB;KAChC;IACD;QACE,IAAI,EAAE,8CAA8C;QACpD,QAAQ,EAAE,CAAC;QACX,KAAK,EAAE,8CAA8C;QACrD,KAAK,EAAE,6CAA6C;QACpD,SAAS,EAAE,CAAC;QACZ,UAAU,EAAE,sBAAmB;KAChC;IACD;QACE,IAAI,EAAE,6CAA6C;QACnD,QAAQ,EAAE,CAAC;QACX,KAAK,EAAE,8CAA8C;QACrD,KAAK,EAAE,6CAA6C;QACpD,SAAS,EAAE,CAAC;QACZ,UAAU,EAAE,uBAAe;KAC5B;CACF,CAAC"}
|
@@ -6,7 +6,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.fetchers = exports.jobs = exports.platforms = void 0;
|
7
7
|
const constants_1 = require("./constants");
|
8
8
|
const stakingJob_1 = __importDefault(require("./stakingJob"));
|
9
|
-
exports.platforms = [
|
9
|
+
exports.platforms = [
|
10
|
+
constants_1.stepFinancePlatform,
|
11
|
+
constants_1.allbridgePlatform,
|
12
|
+
constants_1.ligmaPlatform,
|
13
|
+
];
|
10
14
|
exports.jobs = [stakingJob_1.default];
|
11
15
|
exports.fetchers = [];
|
12
16
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/x-staking-solana/index.ts"],"names":[],"mappings":";;;;;;AAGA,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/x-staking-solana/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAIqB;AACrB,8DAAuC;AAE1B,QAAA,SAAS,GAAe;IACnC,+BAAmB;IACnB,6BAAiB;IACjB,yBAAa;CACd,CAAC;AACW,QAAA,IAAI,GAAU,CAAC,oBAAW,CAAC,CAAC;AAC5B,QAAA,QAAQ,GAAc,EAAE,CAAC"}
|
@@ -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;
|