@sonarwatch/portfolio-plugins 0.11.221 → 0.11.222
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +1634 -1630
- package/README.md +3 -3
- package/package.json +2 -2
- package/src/index.js +4 -0
- package/src/index.js.map +1 -1
- package/src/plugins/balancer/helpers/pools.js +21 -21
- package/src/plugins/sushiswap/helpers.js +24 -24
- package/src/plugins/uniswap-v2/helpers.js +22 -22
- package/src/plugins/whalesmarket/constants.d.ts +5 -0
- package/src/plugins/whalesmarket/constants.js +15 -0
- package/src/plugins/whalesmarket/constants.js.map +1 -0
- package/src/plugins/whalesmarket/depositFetcher.d.ts +3 -0
- package/src/plugins/whalesmarket/depositFetcher.js +81 -0
- package/src/plugins/whalesmarket/depositFetcher.js.map +1 -0
- package/src/plugins/whalesmarket/filters.d.ts +10 -0
- package/src/plugins/whalesmarket/filters.js +16 -0
- package/src/plugins/whalesmarket/filters.js.map +1 -0
- package/src/plugins/whalesmarket/index.d.ts +6 -0
- package/src/plugins/whalesmarket/index.js +12 -0
- package/src/plugins/whalesmarket/index.js.map +1 -0
- package/src/plugins/whalesmarket/structs.d.ts +58 -0
- package/src/plugins/whalesmarket/structs.js +61 -0
- package/src/plugins/whalesmarket/structs.js.map +1 -0
- package/src/plugins/x-staking-solana/constants.d.ts +0 -2
- package/src/plugins/x-staking-solana/constants.js +3 -11
- package/src/plugins/x-staking-solana/constants.js.map +1 -1
- package/src/plugins/x-staking-solana/index.js +1 -4
- 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
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
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@sonarwatch/portfolio-plugins",
|
3
|
-
"version": "0.11.
|
3
|
+
"version": "0.11.222",
|
4
4
|
"type": "commonjs",
|
5
5
|
"generators": "./generators.json",
|
6
6
|
"dependencies": {
|
@@ -42,7 +42,7 @@
|
|
42
42
|
"web3-v1": "npm:web3@^1.5.0"
|
43
43
|
},
|
44
44
|
"peerDependencies": {
|
45
|
-
"@sonarwatch/portfolio-core": "0.11.
|
45
|
+
"@sonarwatch/portfolio-core": "0.11.222"
|
46
46
|
},
|
47
47
|
"main": "./src/index.js",
|
48
48
|
"types": "./src/index.d.ts"
|
package/src/index.js
CHANGED
@@ -115,6 +115,7 @@ const mole_1 = require("./plugins/mole");
|
|
115
115
|
const bonfida_1 = require("./plugins/bonfida");
|
116
116
|
const cropper_1 = require("./plugins/cropper");
|
117
117
|
const hedgehog_1 = require("./plugins/hedgehog");
|
118
|
+
const whalesmarket_1 = require("./plugins/whalesmarket");
|
118
119
|
var constants_1 = require("./plugins/tokens/constants");
|
119
120
|
Object.defineProperty(exports, "walletTokensPlatform", { enumerable: true, get: function () { return constants_1.walletTokensPlatform; } });
|
120
121
|
Object.defineProperty(exports, "walletNftsPlatform", { enumerable: true, get: function () { return constants_1.walletNftsPlatform; } });
|
@@ -223,6 +224,7 @@ exports.platforms = [
|
|
223
224
|
...bonfida_1.platforms,
|
224
225
|
...cropper_1.platforms,
|
225
226
|
...hedgehog_1.platforms,
|
227
|
+
...whalesmarket_1.platforms,
|
226
228
|
];
|
227
229
|
// JOBS //
|
228
230
|
exports.jobs = [
|
@@ -314,6 +316,7 @@ exports.jobs = [
|
|
314
316
|
...bonfida_1.jobs,
|
315
317
|
...cropper_1.jobs,
|
316
318
|
...hedgehog_1.jobs,
|
319
|
+
...whalesmarket_1.jobs,
|
317
320
|
];
|
318
321
|
// FETCHERS //
|
319
322
|
exports.fetchers = [
|
@@ -407,6 +410,7 @@ exports.fetchers = [
|
|
407
410
|
...bonfida_1.fetchers,
|
408
411
|
...cropper_1.fetchers,
|
409
412
|
...hedgehog_1.fetchers,
|
413
|
+
...whalesmarket_1.fetchers,
|
410
414
|
];
|
411
415
|
exports.fetchersByAddressSystem = (0, getFetchersByAddressSystem_1.getFetchersByAddressSystem)(exports.fetchers);
|
412
416
|
exports.airdropFetchers = [
|
package/src/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/plugins/src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAIA,wFAAqF;AACrF,sEAA8C;AAC9C,6CAI0B;AAC1B,yDAIgC;AAChC,uDAAgE;AAChE,iDAG4B;AAC5B,iDAI4B;AAC5B,2CAGyB;AACzB,6CAI0B;AAC1B,+CAI2B;AAC3B,yCAIwB;AACxB,+CAI2B;AAC3B,2CAIyB;AACzB,6CAI0B;AAC1B,2CAIyB;AACzB,6CAG0B;AAC1B,6CAI0B;AAC1B,yCAIwB;AACxB,2DAGiC;AACjC,6CAI0B;AAC1B,2CAKyB;AACzB,2CAIyB;AACzB,qDAA6D;AAC7D,qEAIsC;AACtC,uDAI+B;AAC/B,mDAI6B;AAC7B,qDAG8B;AAC9B,uDAG+B;AAC/B,2CAIyB;AACzB,6CAI0B;AAC1B,6CAG0B;AAC1B,yCAIwB;AACxB,+CAI2B;AAC3B,uDAG+B;AAC/B,yCAGwB;AACxB,2CAIyB;AACzB,iDAI4B;AAC5B,iDAI4B;AAC5B,6CAI0B;AAC1B,+CAI2B;AAC3B,qDAG8B;AAC9B,iDAI4B;AAC5B,iDAI4B;AAC5B,mDAG6B;AAC7B,yCAIwB;AACxB,2CAIyB;AACzB,iDAI4B;AAC5B,iDAI4B;AAC5B,+CAI2B;AAC3B,yCAIwB;AACxB,2CAIyB;AACzB,mDAI6B;AAC7B,2CAIyB;AACzB,2CAIyB;AACzB,sCAIsB;AACtB,+CAI2B;AAC3B,yCAIwB;AACxB,iDAI4B;AAC5B,yCAIwB;AACxB,mDAI6B;AAC7B,qDAI8B;AAC9B,2CAIyB;AACzB,2CAKyB;AACzB,yCAIwB;AACxB,+CAI2B;AAC3B,2CAIyB;AACzB,2CAIyB;AACzB,uDAI+B;AAC/B,6DAIkC;AAClC,2CAIyB;AACzB,yCAIwB;AACxB,mDAI6B;AAC7B,6CAI0B;AAC1B,iEAIoC;AACpC,6DAIkC;AAClC,yCAIwB;AACxB,uCAIuB;AACvB,+CAI2B;AAC3B,iDAI4B;AAC5B,mDAI6B;AAC7B,2CAIyB;AACzB,+CAI2B;AAC3B,uCAIuB;AACvB,iDAI4B;AAC5B,yCAIwB;AACxB,6CAI0B;AAC1B,yCAIwB;AACxB,mDAI6B;AAC7B,2CAIyB;AACzB,mDAI6B;AAC7B,2CAIyB;AACzB,6CAI0B;AAC1B,2CAIyB;AACzB,yCAIwB;AACxB,+CAI2B;AAC3B,+CAI2B;AAC3B,iDAI4B;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/plugins/src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAIA,wFAAqF;AACrF,sEAA8C;AAC9C,6CAI0B;AAC1B,yDAIgC;AAChC,uDAAgE;AAChE,iDAG4B;AAC5B,iDAI4B;AAC5B,2CAGyB;AACzB,6CAI0B;AAC1B,+CAI2B;AAC3B,yCAIwB;AACxB,+CAI2B;AAC3B,2CAIyB;AACzB,6CAI0B;AAC1B,2CAIyB;AACzB,6CAG0B;AAC1B,6CAI0B;AAC1B,yCAIwB;AACxB,2DAGiC;AACjC,6CAI0B;AAC1B,2CAKyB;AACzB,2CAIyB;AACzB,qDAA6D;AAC7D,qEAIsC;AACtC,uDAI+B;AAC/B,mDAI6B;AAC7B,qDAG8B;AAC9B,uDAG+B;AAC/B,2CAIyB;AACzB,6CAI0B;AAC1B,6CAG0B;AAC1B,yCAIwB;AACxB,+CAI2B;AAC3B,uDAG+B;AAC/B,yCAGwB;AACxB,2CAIyB;AACzB,iDAI4B;AAC5B,iDAI4B;AAC5B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a;IAChB,GAAG,kBAAe;IAClB,GAAG,cAAW;IACd,GAAG,mBAAgB;IACnB,GAAG,eAAY;IACf,GAAG,iBAAc;IACjB,GAAG,eAAY;IACf,GAAG,oBAAiB;IACpB,GAAG,gBAAa;IAChB,GAAG,oBAAiB;IACpB,GAAG,gBAAa;IAChB,GAAG,iBAAc;IACjB,GAAG,gBAAa;IAChB,GAAG,eAAY;IACf,GAAG,kBAAe;IAClB,GAAG,kBAAe;IAClB,GAAG,mBAAgB;IACnB,GAAG,uBAAoB;CACxB,CAAC;AACW,QAAA,uBAAuB,GAAG,IAAA,uDAA0B,EAAC,gBAAQ,CAAC,CAAC;AAE/D,QAAA,eAAe,GAAqB;IAC/C,sBAAmB;IACnB,sBAAmB;CACpB,CAAC;AACW,QAAA,8BAA8B,GACzC,IAAA,uDAA0B,EAAC,uBAAe,CAAC,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;
|
@@ -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.pid = exports.platform = exports.platformId = void 0;
|
4
|
+
const web3_js_1 = require("@solana/web3.js");
|
5
|
+
exports.platformId = 'whalesmarket';
|
6
|
+
exports.platform = {
|
7
|
+
id: exports.platformId,
|
8
|
+
name: 'Whales Market',
|
9
|
+
image: 'https://sonar.watch/img/platforms/whalesmarket.png',
|
10
|
+
defiLlamaId: 'whales-market', // from https://defillama.com/docs/api
|
11
|
+
website: 'https://app.whales.market/',
|
12
|
+
twitter: 'https://twitter.com/WhalesMarket',
|
13
|
+
};
|
14
|
+
exports.pid = new web3_js_1.PublicKey('stPdYNaJNsV3ytS9Xtx4GXXXRcVqVS6x66ZFa26K39S');
|
15
|
+
//# sourceMappingURL=constants.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/whalesmarket/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,cAAc,CAAC;AAC5B,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,eAAe;IACrB,KAAK,EAAE,oDAAoD;IAC3D,WAAW,EAAE,eAAe,EAAE,sCAAsC;IACpE,OAAO,EAAE,4BAA4B;IACrC,OAAO,EAAE,kCAAkC;CAC5C,CAAC;AAEW,QAAA,GAAG,GAAG,IAAI,mBAAS,CAAC,6CAA6C,CAAC,CAAC"}
|
@@ -0,0 +1,81 @@
|
|
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 constants_1 = require("./constants");
|
17
|
+
const clients_1 = require("../../utils/clients");
|
18
|
+
const solana_1 = require("../../utils/solana");
|
19
|
+
const structs_1 = require("./structs");
|
20
|
+
const filters_1 = require("./filters");
|
21
|
+
const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/tokenPriceToAssetToken"));
|
22
|
+
const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
|
23
|
+
const client = (0, clients_1.getClientSolana)();
|
24
|
+
const offers = yield (0, solana_1.getParsedProgramAccounts)(client, structs_1.offerStruct, constants_1.pid, (0, filters_1.offerFilter)(owner));
|
25
|
+
const mints = new Set();
|
26
|
+
offers.forEach((offer) => mints.add(offer.exToken.toString()));
|
27
|
+
const tokenPriceById = yield cache.getTokenPricesAsMap(Array.from(mints), portfolio_core_1.NetworkId.solana);
|
28
|
+
const buyOfferAssets = [];
|
29
|
+
const sellOfferAssets = [];
|
30
|
+
for (const offer of offers) {
|
31
|
+
if (offer.status === structs_1.OfferStatus.Closed || offer.collateral.isZero())
|
32
|
+
continue;
|
33
|
+
const mint = offer.exToken.toString();
|
34
|
+
const tokenPrice = tokenPriceById.get(mint);
|
35
|
+
if (!tokenPrice)
|
36
|
+
continue;
|
37
|
+
const amount = offer.collateral
|
38
|
+
.dividedBy(Math.pow(10, tokenPrice.decimals))
|
39
|
+
.toNumber();
|
40
|
+
const asset = (0, tokenPriceToAssetToken_1.default)(mint, amount, portfolio_core_1.NetworkId.solana, tokenPrice);
|
41
|
+
if (offer.offerType === structs_1.OfferType.Sell) {
|
42
|
+
sellOfferAssets.push(asset);
|
43
|
+
}
|
44
|
+
else {
|
45
|
+
buyOfferAssets.push(asset);
|
46
|
+
}
|
47
|
+
}
|
48
|
+
if (sellOfferAssets.length === 0 && buyOfferAssets.length === 0)
|
49
|
+
return [];
|
50
|
+
const elements = [];
|
51
|
+
if (sellOfferAssets.length > 0) {
|
52
|
+
elements.push({
|
53
|
+
type: portfolio_core_1.PortfolioElementType.multiple,
|
54
|
+
label: 'Deposit',
|
55
|
+
name: 'Sell offers',
|
56
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
57
|
+
platformId: constants_1.platformId,
|
58
|
+
data: { assets: sellOfferAssets },
|
59
|
+
value: (0, portfolio_core_1.getUsdValueSum)(sellOfferAssets.map((asset) => asset.value)),
|
60
|
+
});
|
61
|
+
}
|
62
|
+
if (buyOfferAssets.length > 0) {
|
63
|
+
elements.push({
|
64
|
+
type: portfolio_core_1.PortfolioElementType.multiple,
|
65
|
+
label: 'Deposit',
|
66
|
+
name: 'Buy offers',
|
67
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
68
|
+
platformId: constants_1.platformId,
|
69
|
+
data: { assets: buyOfferAssets },
|
70
|
+
value: (0, portfolio_core_1.getUsdValueSum)(buyOfferAssets.map((asset) => asset.value)),
|
71
|
+
});
|
72
|
+
}
|
73
|
+
return elements;
|
74
|
+
});
|
75
|
+
const fetcher = {
|
76
|
+
id: `${constants_1.platformId}-deposit`,
|
77
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
78
|
+
executor,
|
79
|
+
};
|
80
|
+
exports.default = fetcher;
|
81
|
+
//# sourceMappingURL=depositFetcher.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"depositFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/whalesmarket/depositFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAKoC;AAGpC,2CAA8C;AAC9C,iDAAsD;AACtD,+CAA8D;AAC9D,uCAAgE;AAChE,uCAAwC;AACxC,qGAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,MAAM,GAAG,MAAM,IAAA,iCAAwB,EA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AO,CAAC"}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.offerFilter = void 0;
|
4
|
+
const offerFilter = (owner) => [
|
5
|
+
{
|
6
|
+
memcmp: {
|
7
|
+
offset: 116,
|
8
|
+
bytes: owner,
|
9
|
+
},
|
10
|
+
},
|
11
|
+
{
|
12
|
+
dataSize: 181,
|
13
|
+
},
|
14
|
+
];
|
15
|
+
exports.offerFilter = offerFilter;
|
16
|
+
//# sourceMappingURL=filters.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"filters.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/whalesmarket/filters.ts"],"names":[],"mappings":";;;AAAO,MAAM,WAAW,GAAG,CAAC,KAAa,EAAE,EAAE,CAAC;IAC5C;QACE,MAAM,EAAE;YACN,MAAM,EAAE,GAAG;YACX,KAAK,EAAE,KAAK;SACb;KACF;IACD;QACE,QAAQ,EAAE,GAAG;KACd;CACF,CAAC;AAVW,QAAA,WAAW,eAUtB"}
|
@@ -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 depositFetcher_1 = __importDefault(require("./depositFetcher"));
|
9
|
+
exports.platforms = [constants_1.platform];
|
10
|
+
exports.jobs = [];
|
11
|
+
exports.fetchers = [depositFetcher_1.default];
|
12
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/whalesmarket/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAAuC;AACvC,sEAA8C;AAEjC,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,EAAE,CAAC;AACjB,QAAA,QAAQ,GAAc,CAAC,wBAAc,CAAC,CAAC"}
|
@@ -0,0 +1,58 @@
|
|
1
|
+
/// <reference types="node" />
|
2
|
+
import { BeetStruct } from '@metaplex-foundation/beet';
|
3
|
+
import BigNumber from 'bignumber.js';
|
4
|
+
import { PublicKey } from '@metaplex-foundation/js';
|
5
|
+
export declare enum OfferStatus {
|
6
|
+
Open = 0,
|
7
|
+
Closed = 1
|
8
|
+
}
|
9
|
+
export declare enum OfferType {
|
10
|
+
Buy = 0,
|
11
|
+
Sell = 1
|
12
|
+
}
|
13
|
+
export declare enum OrderStatus {
|
14
|
+
Open = 0,
|
15
|
+
Closed = 1,
|
16
|
+
Cancelled = 2
|
17
|
+
}
|
18
|
+
export type Offer = {
|
19
|
+
buffer: Buffer;
|
20
|
+
version: number;
|
21
|
+
id: BigNumber;
|
22
|
+
offerType: OfferType;
|
23
|
+
tokenConfig: PublicKey;
|
24
|
+
totalAmount: BigNumber;
|
25
|
+
price: BigNumber;
|
26
|
+
exToken: PublicKey;
|
27
|
+
collateral: BigNumber;
|
28
|
+
status: OfferStatus;
|
29
|
+
filledAmount: BigNumber;
|
30
|
+
isFullMatch: boolean;
|
31
|
+
authority: PublicKey;
|
32
|
+
bump: number;
|
33
|
+
config: PublicKey;
|
34
|
+
};
|
35
|
+
export declare const offerStruct: BeetStruct<Offer, Partial<Offer>>;
|
36
|
+
export type Order = {
|
37
|
+
version: number;
|
38
|
+
id: BigNumber;
|
39
|
+
config: PublicKey;
|
40
|
+
offer: PublicKey;
|
41
|
+
authority: PublicKey;
|
42
|
+
bump: number;
|
43
|
+
seller: PublicKey;
|
44
|
+
buyer: PublicKey;
|
45
|
+
status: OrderStatus;
|
46
|
+
amount: BigNumber;
|
47
|
+
};
|
48
|
+
export declare const orderStruct: BeetStruct<Order, Partial<Order>>;
|
49
|
+
export type ExToken = {
|
50
|
+
version: number;
|
51
|
+
bump: number;
|
52
|
+
isAccepted: boolean;
|
53
|
+
token: PublicKey;
|
54
|
+
config: PublicKey;
|
55
|
+
vaultToken: PublicKey;
|
56
|
+
vaultTokenBump: number;
|
57
|
+
};
|
58
|
+
export declare const exTokenStruct: BeetStruct<ExToken, Partial<ExToken>>;
|
@@ -0,0 +1,61 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.exTokenStruct = exports.orderStruct = exports.offerStruct = exports.OrderStatus = exports.OfferType = exports.OfferStatus = 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
|
+
var OfferStatus;
|
8
|
+
(function (OfferStatus) {
|
9
|
+
OfferStatus[OfferStatus["Open"] = 0] = "Open";
|
10
|
+
OfferStatus[OfferStatus["Closed"] = 1] = "Closed";
|
11
|
+
})(OfferStatus || (exports.OfferStatus = OfferStatus = {}));
|
12
|
+
var OfferType;
|
13
|
+
(function (OfferType) {
|
14
|
+
OfferType[OfferType["Buy"] = 0] = "Buy";
|
15
|
+
OfferType[OfferType["Sell"] = 1] = "Sell";
|
16
|
+
})(OfferType || (exports.OfferType = OfferType = {}));
|
17
|
+
var OrderStatus;
|
18
|
+
(function (OrderStatus) {
|
19
|
+
OrderStatus[OrderStatus["Open"] = 0] = "Open";
|
20
|
+
OrderStatus[OrderStatus["Closed"] = 1] = "Closed";
|
21
|
+
OrderStatus[OrderStatus["Cancelled"] = 2] = "Cancelled";
|
22
|
+
})(OrderStatus || (exports.OrderStatus = OrderStatus = {}));
|
23
|
+
exports.offerStruct = new beet_1.BeetStruct([
|
24
|
+
['buffer', (0, solana_1.blob)(8)],
|
25
|
+
['version', beet_1.u8],
|
26
|
+
['id', solana_1.u64],
|
27
|
+
['offerType', beet_1.u8],
|
28
|
+
['tokenConfig', beet_solana_1.publicKey],
|
29
|
+
['totalAmount', solana_1.u64],
|
30
|
+
['price', solana_1.u64],
|
31
|
+
['exToken', beet_solana_1.publicKey],
|
32
|
+
['collateral', solana_1.u64],
|
33
|
+
['status', beet_1.u8],
|
34
|
+
['filledAmount', solana_1.u64],
|
35
|
+
['isFullMatch', beet_1.bool],
|
36
|
+
['authority', beet_solana_1.publicKey],
|
37
|
+
['bump', beet_1.u8],
|
38
|
+
['config', beet_solana_1.publicKey],
|
39
|
+
], (args) => args);
|
40
|
+
exports.orderStruct = new beet_1.BeetStruct([
|
41
|
+
['version', beet_1.u8],
|
42
|
+
['id', solana_1.u64],
|
43
|
+
['config', beet_solana_1.publicKey],
|
44
|
+
['offer', beet_solana_1.publicKey],
|
45
|
+
['authority', beet_solana_1.publicKey],
|
46
|
+
['bump', beet_1.u8],
|
47
|
+
['seller', beet_solana_1.publicKey],
|
48
|
+
['buyer', beet_solana_1.publicKey],
|
49
|
+
['status', beet_1.u8],
|
50
|
+
['amount', solana_1.u64],
|
51
|
+
], (args) => args);
|
52
|
+
exports.exTokenStruct = new beet_1.BeetStruct([
|
53
|
+
['version', beet_1.u8],
|
54
|
+
['bump', beet_1.u8],
|
55
|
+
['isAccepted', beet_1.bool],
|
56
|
+
['token', beet_solana_1.publicKey],
|
57
|
+
['config', beet_solana_1.publicKey],
|
58
|
+
['vaultToken', beet_solana_1.publicKey],
|
59
|
+
['vaultTokenBump', beet_1.u8],
|
60
|
+
], (args) => args);
|
61
|
+
//# sourceMappingURL=structs.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"structs.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/whalesmarket/structs.ts"],"names":[],"mappings":";;;AAAA,oDAAiE;AACjE,kEAA6D;AAG7D,+CAA+C;AAE/C,IAAY,WAGX;AAHD,WAAY,WAAW;IACrB,6CAAI,CAAA;IACJ,iDAAM,CAAA;AACR,CAAC,EAHW,WAAW,2BAAX,WAAW,Q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,CAAC,OAAO,EAAE,uBAAS,CAAC;IACpB,CAAC,QAAQ,EAAE,SAAE,CAAC;IACd,CAAC,QAAQ,EAAE,YAAG,CAAC;CAChB,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAa,CACxB,CAAC;AAYW,QAAA,aAAa,GAAG,IAAI,iBAAU,CACzC;IACE,CAAC,SAAS,EAAE,SAAE,CAAC;IACf,CAAC,MAAM,EAAE,SAAE,CAAC;IACZ,CAAC,YAAY,EAAE,WAAI,CAAC;IACpB,CAAC,OAAO,EAAE,uBAAS,CAAC;IACpB,CAAC,QAAQ,EAAE,uBAAS,CAAC;IACrB,CAAC,YAAY,EAAE,uBAAS,CAAC;IACzB,CAAC,gBAAgB,EAAE,SAAE,CAAC;CACvB,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAe,CAC1B,CAAC"}
|
@@ -1,6 +1,4 @@
|
|
1
1
|
import { Platform } from '@sonarwatch/portfolio-core';
|
2
|
-
export declare const whalesMarketPlatformId = "whalesmarket";
|
3
|
-
export declare const whalesMarketPlatform: Platform;
|
4
2
|
export declare const stepFinancePlatformId = "stepfinance";
|
5
3
|
export declare const stepFinancePlatform: Platform;
|
6
4
|
export declare const allbridgePlatformId = "allbridge";
|
@@ -1,17 +1,9 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.xStakingConfigs = exports.allbridgePlatform = exports.allbridgePlatformId = exports.stepFinancePlatform = exports.stepFinancePlatformId =
|
3
|
+
exports.xStakingConfigs = 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
|
-
|
7
|
-
exports.whalesMarketPlatform = {
|
8
|
-
id: exports.whalesMarketPlatformId,
|
9
|
-
name: 'Whales Market',
|
10
|
-
image: 'https://sonar.watch/img/platforms/whalesmarket.png',
|
11
|
-
// defiLlamaId: 'foo-finance', // from https://defillama.com/docs/api
|
12
|
-
website: 'https://app.whales.market/',
|
13
|
-
twitter: 'https://twitter.com/WhalesMarket',
|
14
|
-
};
|
6
|
+
const constants_3 = require("../whalesmarket/constants");
|
15
7
|
exports.stepFinancePlatformId = 'stepfinance';
|
16
8
|
exports.stepFinancePlatform = {
|
17
9
|
id: exports.stepFinancePlatformId,
|
@@ -43,7 +35,7 @@ exports.xStakingConfigs = [
|
|
43
35
|
vault: 'Cm1KT2iqQ3LoxbmLy4WrQ9wE7WByJx6R512A28LbjGh9',
|
44
36
|
xMint: '3wCoTb3TArUdzmeTBPzPFyPBUP6EJXaW5LAzGsWCpySu',
|
45
37
|
xDecimals: 6,
|
46
|
-
platformId:
|
38
|
+
platformId: constants_3.platformId,
|
47
39
|
},
|
48
40
|
{
|
49
41
|
mint: 'StepAscQoEioFxxWGnh2sLBDFp9d8rvKz2Yp39iDpyT',
|
@@ -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;
|
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,mDAAmD;IAC1D,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,cAAc;IACpB,KAAK,EAAE,iDAAiD;IACxD,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"}
|
@@ -6,10 +6,7 @@ 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 = [
|
10
|
-
constants_1.whalesMarketPlatform,
|
11
|
-
constants_1.stepFinancePlatform,
|
12
|
-
];
|
9
|
+
exports.platforms = [constants_1.stepFinancePlatform, constants_1.allbridgePlatform];
|
13
10
|
exports.jobs = [stakingJob_1.default];
|
14
11
|
exports.fetchers = [];
|
15
12
|
//# 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,2CAAqE;AACrE,8DAAuC;AAE1B,QAAA,SAAS,GAAe,CAAC,+BAAmB,EAAE,6BAAiB,CAAC,CAAC;AACjE,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
|