@sonarwatch/portfolio-plugins 0.12.30 → 0.12.31
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +1815 -1806
- 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/banx/calculateLoanRepayValue.d.ts +4 -0
- package/src/plugins/banx/calculateLoanRepayValue.js +37 -0
- package/src/plugins/banx/calculateLoanRepayValue.js.map +1 -0
- package/src/plugins/banx/collectionsJob.d.ts +3 -0
- package/src/plugins/banx/collectionsJob.js +40 -0
- package/src/plugins/banx/collectionsJob.js.map +1 -0
- package/src/plugins/banx/constants.d.ts +8 -0
- package/src/plugins/banx/constants.js +13 -1
- package/src/plugins/banx/constants.js.map +1 -1
- package/src/plugins/banx/filters.d.ts +2 -0
- package/src/plugins/banx/filters.js +26 -1
- package/src/plugins/banx/filters.js.map +1 -1
- package/src/plugins/banx/idl.d.ts +115 -0
- package/src/plugins/banx/idl.js +2256 -0
- package/src/plugins/banx/idl.js.map +1 -0
- package/src/plugins/banx/index.js +9 -2
- package/src/plugins/banx/index.js.map +1 -1
- package/src/plugins/banx/loansFetcher.d.ts +3 -0
- package/src/plugins/banx/loansFetcher.js +158 -0
- package/src/plugins/banx/loansFetcher.js.map +1 -0
- package/src/plugins/banx/offersFetcher.d.ts +3 -0
- package/src/plugins/banx/offersFetcher.js +99 -0
- package/src/plugins/banx/offersFetcher.js.map +1 -0
- package/src/plugins/banx/types.d.ts +200 -0
- package/src/plugins/citrus/collectionsJob.d.ts +3 -0
- package/src/plugins/citrus/collectionsJob.js +40 -0
- package/src/plugins/citrus/collectionsJob.js.map +1 -0
- package/src/plugins/citrus/constants.d.ts +12 -0
- package/src/plugins/citrus/constants.js +26 -0
- package/src/plugins/citrus/constants.js.map +1 -0
- package/src/plugins/citrus/filters.d.ts +2 -0
- package/src/plugins/citrus/filters.js +32 -0
- package/src/plugins/citrus/filters.js.map +1 -0
- package/src/plugins/citrus/idl.d.ts +73 -0
- package/src/plugins/citrus/idl.js +292 -0
- package/src/plugins/citrus/idl.js.map +1 -0
- package/src/plugins/citrus/index.d.ts +6 -0
- package/src/plugins/citrus/index.js +13 -0
- package/src/plugins/citrus/index.js.map +1 -0
- package/src/plugins/citrus/loansFetcher.d.ts +3 -0
- package/src/plugins/citrus/loansFetcher.js +150 -0
- package/src/plugins/citrus/loansFetcher.js.map +1 -0
- package/src/plugins/citrus/types.d.ts +54 -0
- package/src/plugins/citrus/types.js +3 -0
- package/src/plugins/citrus/types.js.map +1 -0
- package/src/plugins/sharky/collectionsJob.d.ts +3 -0
- package/src/plugins/sharky/collectionsJob.js +75 -0
- package/src/plugins/sharky/collectionsJob.js.map +1 -0
- package/src/plugins/sharky/constants.d.ts +12 -0
- package/src/plugins/sharky/constants.js +26 -0
- package/src/plugins/sharky/constants.js.map +1 -0
- package/src/plugins/sharky/filters.d.ts +6 -0
- package/src/plugins/sharky/filters.js +43 -0
- package/src/plugins/sharky/filters.js.map +1 -0
- package/src/plugins/sharky/idl.d.ts +135 -0
- package/src/plugins/sharky/idl.js +388 -0
- package/src/plugins/sharky/idl.js.map +1 -0
- package/src/plugins/sharky/index.d.ts +6 -0
- package/src/plugins/sharky/index.js +13 -0
- package/src/plugins/sharky/index.js.map +1 -0
- package/src/plugins/sharky/loansFetcher.d.ts +3 -0
- package/src/plugins/sharky/loansFetcher.js +141 -0
- package/src/plugins/sharky/loansFetcher.js.map +1 -0
- package/src/plugins/sharky/types.d.ts +66 -0
- package/src/plugins/sharky/types.js +11 -0
- package/src/plugins/sharky/types.js.map +1 -0
- package/src/plugins/sushiswap/helpers.js +24 -24
- package/src/plugins/uniswap-v2/helpers.js +22 -22
- package/src/utils/sei/constants.js +8 -8
- package/src/utils/sei/getQueryBalanceByOwner.js +4 -4
- package/src/utils/solana/das/getAssetBatchDas.d.ts +4 -0
- package/src/utils/solana/das/getAssetBatchDas.js +68 -0
- package/src/utils/solana/das/getAssetBatchDas.js.map +1 -0
- package/src/utils/solana/das/heliusAssetToAssetCollectible.d.ts +7 -1
- package/src/utils/solana/das/heliusAssetToAssetCollectible.js +13 -9
- package/src/utils/solana/das/heliusAssetToAssetCollectible.js.map +1 -1
- package/src/utils/solana/das/types.d.ts +5 -0
- package/src/utils/solana/getAutoParsedMultipleAccountsInfo.d.ts +4 -0
- package/src/utils/solana/getAutoParsedMultipleAccountsInfo.js +33 -0
- package/src/utils/solana/getAutoParsedMultipleAccountsInfo.js.map +1 -0
- package/src/utils/solana/getAutoParsedProgramAccounts.d.ts +4 -0
- package/src/utils/solana/getAutoParsedProgramAccounts.js +37 -0
- package/src/utils/solana/getAutoParsedProgramAccounts.js.map +1 -0
- package/src/utils/solana/getMultipleAccountsInfoSafe.d.ts +2 -2
- package/src/utils/solana/getMultipleAccountsInfoSafe.js +3 -3
- package/src/utils/solana/getMultipleAccountsInfoSafe.js.map +1 -1
- package/src/utils/solana/getParsedMultipleAccountsInfo.d.ts +2 -2
- package/src/utils/solana/getParsedMultipleAccountsInfo.js +2 -2
- package/src/utils/solana/getParsedMultipleAccountsInfo.js.map +1 -1
- package/src/utils/solana/index.d.ts +2 -0
- package/src/utils/solana/index.js +2 -0
- package/src/utils/solana/index.js.map +1 -1
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
package/src/index.js
CHANGED
@@ -121,6 +121,8 @@ const futarchy_1 = require("./plugins/futarchy");
|
|
121
121
|
const elixir_1 = require("./plugins/elixir");
|
122
122
|
const moonwalk_1 = require("./plugins/moonwalk");
|
123
123
|
const bluefin_1 = require("./plugins/bluefin");
|
124
|
+
const citrus_1 = require("./plugins/citrus");
|
125
|
+
const sharky_1 = require("./plugins/sharky");
|
124
126
|
var constants_1 = require("./plugins/tokens/constants");
|
125
127
|
Object.defineProperty(exports, "walletTokensPlatform", { enumerable: true, get: function () { return constants_1.walletTokensPlatform; } });
|
126
128
|
Object.defineProperty(exports, "walletNftsPlatform", { enumerable: true, get: function () { return constants_1.walletNftsPlatform; } });
|
@@ -235,6 +237,8 @@ exports.platforms = [
|
|
235
237
|
...elixir_1.platforms,
|
236
238
|
...moonwalk_1.platforms,
|
237
239
|
...bluefin_1.platforms,
|
240
|
+
...citrus_1.platforms,
|
241
|
+
...sharky_1.platforms,
|
238
242
|
];
|
239
243
|
// JOBS //
|
240
244
|
exports.jobs = [
|
@@ -332,6 +336,8 @@ exports.jobs = [
|
|
332
336
|
...elixir_1.jobs,
|
333
337
|
...moonwalk_1.jobs,
|
334
338
|
...bluefin_1.jobs,
|
339
|
+
...citrus_1.jobs,
|
340
|
+
...sharky_1.jobs,
|
335
341
|
];
|
336
342
|
// FETCHERS //
|
337
343
|
exports.fetchers = [
|
@@ -431,6 +437,8 @@ exports.fetchers = [
|
|
431
437
|
...elixir_1.fetchers,
|
432
438
|
...moonwalk_1.fetchers,
|
433
439
|
...bluefin_1.fetchers,
|
440
|
+
...citrus_1.fetchers,
|
441
|
+
...sharky_1.fetchers,
|
434
442
|
];
|
435
443
|
exports.fetchersByAddressSystem = (0, getFetchersByAddressSystem_1.getFetchersByAddressSystem)(exports.fetchers);
|
436
444
|
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,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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,gBAAa;IAChB,GAAG,eAAY;IACf,GAAG,kBAAe;IAClB,GAAG,kBAAe;IAClB,GAAG,mBAAgB;IACnB,GAAG,uBAAoB;IACvB,GAAG,mBAAgB;IACnB,GAAG,iBAAc;IACjB,GAAG,mBAAgB;IACnB,GAAG,kBAAe;IAClB,GAAG,iBAAc;IACjB,GAAG,iBAAc;CAClB,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;
|
@@ -0,0 +1,37 @@
|
|
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.calculateLoanRepayValue = void 0;
|
7
|
+
const bignumber_js_1 = __importDefault(require("bignumber.js"));
|
8
|
+
const BONDS = {
|
9
|
+
PROGRAM_PUBKEY: '4tdmkuY6EStxbS6Y8s5ueznL3VPMSugrvQuDeAHGZhSt',
|
10
|
+
ADMIN_PUBKEY: 'revJ8QJgQ3xCcZ6CMykjsmGMYdg8Pj9WnqgJZBHBwSK',
|
11
|
+
PROTOCOL_FEE_PERCENT: 100, // ? Base points
|
12
|
+
PROTOCOL_REPAY_FEE: 620, // ? Base points
|
13
|
+
};
|
14
|
+
const SOL_WAD = 1e9;
|
15
|
+
const SECONDS_IN_YEAR = 31536000;
|
16
|
+
const BASE_POINTS = 10000;
|
17
|
+
const wadMul = (x, y) => Math.floor((x * y) / SOL_WAD);
|
18
|
+
const wadDiv = (x, y) => Math.floor((x * SOL_WAD) / y);
|
19
|
+
const basePointsToWads = (basePoints) => Math.floor((basePoints * SOL_WAD) / BASE_POINTS);
|
20
|
+
const calculateCurrentInterestSolPure = ({ loanValue, startTime, currentTime, rateBasePoints, }) => {
|
21
|
+
const loanTime = currentTime - startTime;
|
22
|
+
const secondsInYearWad = SECONDS_IN_YEAR * SOL_WAD;
|
23
|
+
const yearsWad = wadDiv(loanTime * SOL_WAD, secondsInYearWad);
|
24
|
+
return wadMul(loanValue, wadMul(yearsWad, basePointsToWads(rateBasePoints)));
|
25
|
+
};
|
26
|
+
const calculateLoanRepayValue = (acc) => {
|
27
|
+
const loanValue = Number(acc.solAmount);
|
28
|
+
const calculatedInterest = calculateCurrentInterestSolPure({
|
29
|
+
loanValue,
|
30
|
+
startTime: Number(acc.soldAt),
|
31
|
+
currentTime: Date.now() / 1000,
|
32
|
+
rateBasePoints: Number(acc.amountOfBonds) + BONDS.PROTOCOL_REPAY_FEE,
|
33
|
+
});
|
34
|
+
return new bignumber_js_1.default(loanValue).plus(calculatedInterest);
|
35
|
+
};
|
36
|
+
exports.calculateLoanRepayValue = calculateLoanRepayValue;
|
37
|
+
//# sourceMappingURL=calculateLoanRepayValue.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"calculateLoanRepayValue.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/banx/calculateLoanRepayValue.ts"],"names":[],"mappings":";;;;;;AAAA,gEAAqC;AAIrC,MAAM,KAAK,GAAG;IACZ,cAAc,EAAE,8CAA8C;IAC9D,YAAY,EAAE,6CAA6C;IAC3D,oBAAoB,EAAE,GAAG,EAAE,gBAAgB;IAC3C,kBAAkB,EAAE,GAAG,EAAE,gBAAgB;CAC1C,CAAC;AAEF,MAAM,OAAO,GAAG,GAAG,CAAC;AACpB,MAAM,eAAe,GAAG,QAAQ,CAAC;AACjC,MAAM,WAAW,GAAG,KAAK,CAAC;AAE1B,MAAM,MAAM,GAAG,CAAC,CAAS,EAAE,CAAS,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC;AAEvE,MAAM,MAAM,GAAG,CAAC,CAAS,EAAE,CAAS,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC;AAEvE,MAAM,gBAAgB,GAAG,CAAC,UAAkB,EAAE,EAAE,CAC9C,IAAI,CAAC,KAAK,CAAC,CAAC,UAAU,GAAG,OAAO,CAAC,GAAG,WAAW,CAAC,CAAC;AAEnD,MAAM,+BAA+B,GAAG,CAAC,EACvC,SAAS,EACT,SAAS,EACT,WAAW,EACX,cAAc,GAMf,EAAE,EAAE;IACH,MAAM,QAAQ,GAAG,WAAW,GAAG,SAAS,CAAC;IACzC,MAAM,gBAAgB,GAAG,eAAe,GAAG,OAAO,CAAC;IAEnD,MAAM,QAAQ,GAAG,MAAM,CAAC,QAAQ,GAAG,OAAO,EAAE,gBAAgB,CAAC,CAAC;IAC9D,OAAO,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,QAAQ,EAAE,gBAAgB,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC;AAC/E,CAAC,CAAC;AAEK,MAAM,uBAAuB,GAAG,CACrC,GAA0C,EAC/B,EAAE;IACb,MAAM,SAAS,GAAG,MAAM,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAExC,MAAM,kBAAkB,GAAG,+BAA+B,CAAC;QACzD,SAAS;QACT,SAAS,EAAE,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC;QAC7B,WAAW,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI;QAC9B,cAAc,EAAE,MAAM,CAAC,GAAG,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,kBAAkB;KACrE,CAAC,CAAC;IAEH,OAAO,IAAI,sBAAS,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;AAC3D,CAAC,CAAC;AAbW,QAAA,uBAAuB,2BAalC"}
|
@@ -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
|
+
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 axios_1 = __importDefault(require("axios"));
|
17
|
+
const constants_1 = require("./constants");
|
18
|
+
const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
19
|
+
const res = yield axios_1.default
|
20
|
+
.get(constants_1.banxApiCollectionsUrl, {
|
21
|
+
timeout: 5000,
|
22
|
+
})
|
23
|
+
.catch((err) => {
|
24
|
+
throw Error(`BANX_API ERR: ${err}`);
|
25
|
+
});
|
26
|
+
if (!res) {
|
27
|
+
throw Error(`BANX_API NO RESPONSE`);
|
28
|
+
}
|
29
|
+
yield cache.setItem(constants_1.collectionsCacheKey, res.data.data, {
|
30
|
+
prefix: constants_1.cachePrefix,
|
31
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
32
|
+
});
|
33
|
+
});
|
34
|
+
const job = {
|
35
|
+
id: `${constants_1.platformId}-collections`,
|
36
|
+
executor,
|
37
|
+
label: 'normal',
|
38
|
+
};
|
39
|
+
exports.default = job;
|
40
|
+
//# sourceMappingURL=collectionsJob.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"collectionsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/banx/collectionsJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,kDAA0B;AAG1B,2CAKqB;AAGrB,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,GAAG,GAAG,MAAM,eAAK;SACpB,GAAG,CAAyB,iCAAqB,EAAE;QAClD,OAAO,EAAE,IAAI;KACd,CAAC;SACD,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;QACb,MAAM,KAAK,CAAC,iBAAiB,GAAG,EAAE,CAAC,CAAC;IACtC,CAAC,CAAC,CAAC;IAEL,IAAI,CAAC,GAAG,EAAE,CAAC;QACT,MAAM,KAAK,CAAC,sBAAsB,CAAC,CAAC;IACtC,CAAC;IAED,MAAM,KAAK,CAAC,OAAO,CAAC,+BAAmB,EAAE,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE;QACtD,MAAM,EAAE,uBAAW;QACnB,SAAS,EAAE,0BAAS,CAAC,MAAM;KAC5B,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AAEF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,cAAc;IAC/B,QAAQ;IACR,KAAK,EAAE,QAAQ;CAChB,CAAC;AAEF,kBAAe,GAAG,CAAC"}
|
@@ -1,8 +1,16 @@
|
|
1
1
|
import { PublicKey } from '@solana/web3.js';
|
2
2
|
import { Platform } from '@sonarwatch/portfolio-core';
|
3
|
+
import { IdlItem } from '@solanafm/explorer-kit-idls';
|
3
4
|
export declare const platformId = "banx";
|
4
5
|
export declare const platform: Platform;
|
5
6
|
export declare const banxPid: PublicKey;
|
6
7
|
export declare const banxMint = "BANXbTpN8U2cU41FjPxe2Ti37PiT5cCxLUKDQZuJeMMR";
|
7
8
|
export declare const banxDecimals = 9;
|
8
9
|
export declare const banxApiUrl = "https://api.banx.gg/tokenStake/v2?walletPubkey=";
|
10
|
+
export declare const banxApiCollectionsUrl = "https://api.banx.gg/bonds/preview?isPrivate=false&getAll=true";
|
11
|
+
export declare const collectionsCacheKey = "banx-collections";
|
12
|
+
export declare const cachePrefix = "banx";
|
13
|
+
export declare const bondOfferDataSize = 208;
|
14
|
+
export declare const bondTradeTransactionV3DataSize = 336;
|
15
|
+
export declare const collectionRefreshInterval = 3600000;
|
16
|
+
export declare const banxIdlItem: IdlItem;
|
@@ -1,7 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.banxApiUrl = exports.banxDecimals = exports.banxMint = exports.banxPid = exports.platform = exports.platformId = void 0;
|
3
|
+
exports.banxIdlItem = exports.collectionRefreshInterval = exports.bondTradeTransactionV3DataSize = exports.bondOfferDataSize = exports.cachePrefix = exports.collectionsCacheKey = exports.banxApiCollectionsUrl = exports.banxApiUrl = exports.banxDecimals = exports.banxMint = exports.banxPid = exports.platform = exports.platformId = void 0;
|
4
4
|
const web3_js_1 = require("@solana/web3.js");
|
5
|
+
const idl_1 = require("./idl");
|
5
6
|
exports.platformId = 'banx';
|
6
7
|
exports.platform = {
|
7
8
|
id: exports.platformId,
|
@@ -15,4 +16,15 @@ exports.banxPid = new web3_js_1.PublicKey('4tdmkuY6EStxbS6Y8s5ueznL3VPMSugrvQuDe
|
|
15
16
|
exports.banxMint = 'BANXbTpN8U2cU41FjPxe2Ti37PiT5cCxLUKDQZuJeMMR';
|
16
17
|
exports.banxDecimals = 9;
|
17
18
|
exports.banxApiUrl = 'https://api.banx.gg/tokenStake/v2?walletPubkey=';
|
19
|
+
exports.banxApiCollectionsUrl = 'https://api.banx.gg/bonds/preview?isPrivate=false&getAll=true';
|
20
|
+
exports.collectionsCacheKey = `${exports.platformId}-collections`;
|
21
|
+
exports.cachePrefix = `${exports.platformId}`;
|
22
|
+
exports.bondOfferDataSize = 208;
|
23
|
+
exports.bondTradeTransactionV3DataSize = 336;
|
24
|
+
exports.collectionRefreshInterval = 3600000;
|
25
|
+
exports.banxIdlItem = {
|
26
|
+
programId: exports.banxPid.toString(),
|
27
|
+
idl: idl_1.BanxIDL,
|
28
|
+
idlType: 'anchor',
|
29
|
+
};
|
18
30
|
//# sourceMappingURL=constants.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/banx/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/banx/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG5C,+BAAgC;AAEnB,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,EAAE,sCAAsC;IAC3D,OAAO,EAAE,kBAAkB;IAC3B,OAAO,EAAE,6BAA6B;CACvC,CAAC;AAEW,QAAA,OAAO,GAAG,IAAI,mBAAS,CAClC,8CAA8C,CAC/C,CAAC;AACW,QAAA,QAAQ,GAAG,8CAA8C,CAAC;AAC1D,QAAA,YAAY,GAAG,CAAC,CAAC;AACjB,QAAA,UAAU,GAAG,iDAAiD,CAAC;AAE/D,QAAA,qBAAqB,GAChC,+DAA+D,CAAC;AAErD,QAAA,mBAAmB,GAAG,GAAG,kBAAU,cAAc,CAAC;AAClD,QAAA,WAAW,GAAG,GAAG,kBAAU,EAAE,CAAC;AAE9B,QAAA,iBAAiB,GAAG,GAAG,CAAC;AACxB,QAAA,8BAA8B,GAAG,GAAG,CAAC;AACrC,QAAA,yBAAyB,GAAG,OAAO,CAAC;AAEpC,QAAA,WAAW,GAAG;IACzB,SAAS,EAAE,eAAO,CAAC,QAAQ,EAAE;IAC7B,GAAG,EAAE,aAAO;IACZ,OAAO,EAAE,QAAQ;CACP,CAAC"}
|
@@ -1,2 +1,4 @@
|
|
1
1
|
import { GetProgramAccountsFilter } from '@solana/web3.js';
|
2
2
|
export declare const stakeFilters: (owner: string) => GetProgramAccountsFilter[];
|
3
|
+
export declare const loanFiltersA: (owner: string) => GetProgramAccountsFilter[];
|
4
|
+
export declare const loanFiltersB: (owner: string) => GetProgramAccountsFilter[];
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.stakeFilters = void 0;
|
3
|
+
exports.loanFiltersB = exports.loanFiltersA = exports.stakeFilters = void 0;
|
4
|
+
const constants_1 = require("./constants");
|
4
5
|
const stakeFilters = (owner) => [
|
5
6
|
{
|
6
7
|
memcmp: {
|
@@ -11,4 +12,28 @@ const stakeFilters = (owner) => [
|
|
11
12
|
{ dataSize: 160 },
|
12
13
|
];
|
13
14
|
exports.stakeFilters = stakeFilters;
|
15
|
+
const loanFiltersA = (owner) => [
|
16
|
+
{
|
17
|
+
dataSize: constants_1.bondTradeTransactionV3DataSize,
|
18
|
+
},
|
19
|
+
{
|
20
|
+
memcmp: {
|
21
|
+
bytes: owner,
|
22
|
+
offset: 41,
|
23
|
+
},
|
24
|
+
},
|
25
|
+
];
|
26
|
+
exports.loanFiltersA = loanFiltersA;
|
27
|
+
const loanFiltersB = (owner) => [
|
28
|
+
{
|
29
|
+
dataSize: constants_1.bondTradeTransactionV3DataSize,
|
30
|
+
},
|
31
|
+
{
|
32
|
+
memcmp: {
|
33
|
+
bytes: owner,
|
34
|
+
offset: 147,
|
35
|
+
},
|
36
|
+
},
|
37
|
+
];
|
38
|
+
exports.loanFiltersB = loanFiltersB;
|
14
39
|
//# sourceMappingURL=filters.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"filters.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/banx/filters.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"filters.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/banx/filters.ts"],"names":[],"mappings":";;;AACA,2CAA6D;AAEtD,MAAM,YAAY,GAAG,CAAC,KAAa,EAA8B,EAAE,CAAC;IACzE;QACE,MAAM,EAAE;YACN,MAAM,EAAE,CAAC;YACT,KAAK,EAAE,KAAK;SACb;KACF;IACD,EAAE,QAAQ,EAAE,GAAG,EAAE;CAClB,CAAC;AARW,QAAA,YAAY,gBAQvB;AAEK,MAAM,YAAY,GAAG,CAAC,KAAa,EAA8B,EAAE,CAAC;IACzE;QACE,QAAQ,EAAE,0CAA8B;KACzC;IACD;QACE,MAAM,EAAE;YACN,KAAK,EAAE,KAAK;YACZ,MAAM,EAAE,EAAE;SACX;KACF;CACF,CAAC;AAVW,QAAA,YAAY,gBAUvB;AAEK,MAAM,YAAY,GAAG,CAAC,KAAa,EAA8B,EAAE,CAAC;IACzE;QACE,QAAQ,EAAE,0CAA8B;KACzC;IACD;QACE,MAAM,EAAE;YACN,KAAK,EAAE,KAAK;YACZ,MAAM,EAAE,GAAG;SACZ;KACF;CACF,CAAC;AAVW,QAAA,YAAY,gBAUvB"}
|
@@ -0,0 +1,115 @@
|
|
1
|
+
export declare const BanxIDL: {
|
2
|
+
version: string;
|
3
|
+
name: string;
|
4
|
+
accounts: ({
|
5
|
+
name: string;
|
6
|
+
type: {
|
7
|
+
kind: string;
|
8
|
+
fields: ({
|
9
|
+
name: string;
|
10
|
+
type: {
|
11
|
+
defined: string;
|
12
|
+
};
|
13
|
+
} | {
|
14
|
+
name: string;
|
15
|
+
type: string;
|
16
|
+
})[];
|
17
|
+
};
|
18
|
+
} | {
|
19
|
+
name: string;
|
20
|
+
type: {
|
21
|
+
kind: string;
|
22
|
+
fields: ({
|
23
|
+
name: string;
|
24
|
+
type: string;
|
25
|
+
} | {
|
26
|
+
name: string;
|
27
|
+
type: {
|
28
|
+
array: (string | number)[];
|
29
|
+
};
|
30
|
+
})[];
|
31
|
+
};
|
32
|
+
})[];
|
33
|
+
types: ({
|
34
|
+
name: string;
|
35
|
+
type: {
|
36
|
+
kind: string;
|
37
|
+
fields: ({
|
38
|
+
name: string;
|
39
|
+
type: string;
|
40
|
+
} | {
|
41
|
+
name: string;
|
42
|
+
type: {
|
43
|
+
defined: string;
|
44
|
+
};
|
45
|
+
})[];
|
46
|
+
variants?: undefined;
|
47
|
+
};
|
48
|
+
} | {
|
49
|
+
name: string;
|
50
|
+
type: {
|
51
|
+
kind: string;
|
52
|
+
fields: {
|
53
|
+
name: string;
|
54
|
+
type: {
|
55
|
+
vec: {
|
56
|
+
defined: string;
|
57
|
+
};
|
58
|
+
};
|
59
|
+
}[];
|
60
|
+
variants?: undefined;
|
61
|
+
};
|
62
|
+
} | {
|
63
|
+
name: string;
|
64
|
+
type: {
|
65
|
+
kind: string;
|
66
|
+
fields: {
|
67
|
+
name: string;
|
68
|
+
docs: string[];
|
69
|
+
type: {
|
70
|
+
vec: string;
|
71
|
+
};
|
72
|
+
}[];
|
73
|
+
variants?: undefined;
|
74
|
+
};
|
75
|
+
} | {
|
76
|
+
name: string;
|
77
|
+
type: {
|
78
|
+
kind: string;
|
79
|
+
fields: {
|
80
|
+
name: string;
|
81
|
+
docs: string[];
|
82
|
+
type: {
|
83
|
+
vec: {
|
84
|
+
array: (string | number)[];
|
85
|
+
};
|
86
|
+
};
|
87
|
+
}[];
|
88
|
+
variants?: undefined;
|
89
|
+
};
|
90
|
+
} | {
|
91
|
+
name: string;
|
92
|
+
type: {
|
93
|
+
kind: string;
|
94
|
+
variants: {
|
95
|
+
name: string;
|
96
|
+
}[];
|
97
|
+
fields?: undefined;
|
98
|
+
};
|
99
|
+
} | {
|
100
|
+
name: string;
|
101
|
+
type: {
|
102
|
+
kind: string;
|
103
|
+
variants: ({
|
104
|
+
name: string;
|
105
|
+
fields: string[];
|
106
|
+
} | {
|
107
|
+
name: string;
|
108
|
+
fields: {
|
109
|
+
defined: string;
|
110
|
+
}[];
|
111
|
+
})[];
|
112
|
+
fields?: undefined;
|
113
|
+
};
|
114
|
+
})[];
|
115
|
+
};
|