@sonarwatch/portfolio-plugins 0.12.35 → 0.12.37
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +10 -2
- package/package.json +1 -1
- package/src/index.js +8 -0
- package/src/index.js.map +1 -1
- package/src/orphanPlatorms.js +0 -8
- package/src/orphanPlatorms.js.map +1 -1
- package/src/plugins/01/depostisFetcher.js +1 -1
- package/src/plugins/01/depostisFetcher.js.map +1 -1
- package/src/plugins/aave/helpers.js +6 -1
- package/src/plugins/aave/helpers.js.map +1 -1
- package/src/plugins/allbridge/constants.d.ts +11 -0
- package/src/plugins/allbridge/constants.js +25 -0
- package/src/plugins/allbridge/constants.js.map +1 -0
- package/src/plugins/allbridge/helpers.d.ts +5 -0
- package/src/plugins/allbridge/helpers.js +25 -0
- package/src/plugins/allbridge/helpers.js.map +1 -0
- package/src/plugins/allbridge/idl.d.ts +58 -0
- package/src/plugins/allbridge/idl.js +476 -0
- package/src/plugins/allbridge/idl.js.map +1 -0
- package/src/plugins/allbridge/index.d.ts +6 -0
- package/src/plugins/allbridge/index.js +13 -0
- package/src/plugins/allbridge/index.js.map +1 -0
- package/src/plugins/allbridge/poolsJob.d.ts +3 -0
- package/src/plugins/allbridge/poolsJob.js +40 -0
- package/src/plugins/allbridge/poolsJob.js.map +1 -0
- package/src/plugins/allbridge/positionsFetcher.js +92 -0
- package/src/plugins/allbridge/positionsFetcher.js.map +1 -0
- package/src/plugins/allbridge/types.d.ts +38 -0
- package/src/plugins/allbridge/types.js +3 -0
- package/src/plugins/allbridge/types.js.map +1 -0
- package/src/plugins/aptin/depositsFetcher.js +6 -1
- package/src/plugins/aptin/depositsFetcher.js.map +1 -1
- package/src/plugins/aries/depositsFetcher.js +7 -1
- package/src/plugins/aries/depositsFetcher.js.map +1 -1
- package/src/plugins/banx/constants.d.ts +0 -1
- package/src/plugins/banx/constants.js +1 -2
- package/src/plugins/banx/constants.js.map +1 -1
- package/src/plugins/banx/{calculateLoanRepayValue.d.ts → helpers.d.ts} +1 -0
- package/src/plugins/banx/{calculateLoanRepayValue.js → helpers.js} +29 -2
- package/src/plugins/banx/helpers.js.map +1 -0
- package/src/plugins/banx/idl.d.ts +15 -7
- package/src/plugins/banx/idl.js +199 -268
- package/src/plugins/banx/idl.js.map +1 -1
- package/src/plugins/banx/loansFetcher.js +33 -28
- package/src/plugins/banx/loansFetcher.js.map +1 -1
- package/src/plugins/banx/offersFetcher.js +15 -16
- package/src/plugins/banx/offersFetcher.js.map +1 -1
- package/src/plugins/bucket/collateralFetcher.js +1 -1
- package/src/plugins/bucket/collateralFetcher.js.map +1 -1
- package/src/plugins/citrus/collectionsJob.js.map +1 -1
- package/src/plugins/citrus/constants.d.ts +0 -1
- package/src/plugins/citrus/constants.js +1 -2
- package/src/plugins/citrus/constants.js.map +1 -1
- package/src/plugins/citrus/loansFetcher.js +18 -20
- package/src/plugins/citrus/loansFetcher.js.map +1 -1
- package/src/plugins/clone/depositsFetcher.js +2 -2
- package/src/plugins/clone/depositsFetcher.js.map +1 -1
- package/src/plugins/compound/getPositionsV2Fetcher.js +1 -1
- package/src/plugins/compound/getPositionsV2Fetcher.js.map +1 -1
- package/src/plugins/compound/getPositionsV3Fetcher.js +5 -1
- package/src/plugins/compound/getPositionsV3Fetcher.js.map +1 -1
- package/src/plugins/drift/depositsFetcher.d.ts +3 -0
- package/src/plugins/drift/{deposits.js → depositsFetcher.js} +4 -4
- package/src/plugins/drift/depositsFetcher.js.map +1 -0
- package/src/plugins/drift/index.js +2 -2
- package/src/plugins/drift/index.js.map +1 -1
- package/src/plugins/flash/perpetualFetcher.js +1 -1
- package/src/plugins/flash/perpetualFetcher.js.map +1 -1
- package/src/plugins/flexlend/depositsFetcher.js +2 -2
- package/src/plugins/flexlend/depositsFetcher.js.map +1 -1
- package/src/plugins/jupiter/exchange/constants.d.ts +1 -0
- package/src/plugins/jupiter/exchange/constants.js +2 -1
- package/src/plugins/jupiter/exchange/constants.js.map +1 -1
- package/src/plugins/jupiter/exchange/limitFetcher.js +9 -6
- package/src/plugins/jupiter/exchange/limitFetcher.js.map +1 -1
- package/src/plugins/jupiter/exchange/perpetualFetcher.js +8 -8
- package/src/plugins/jupiter/exchange/perpetualFetcher.js.map +1 -1
- package/src/plugins/jupiter/exchange/structs.d.ts +21 -0
- package/src/plugins/jupiter/exchange/structs.js +21 -1
- package/src/plugins/jupiter/exchange/structs.js.map +1 -1
- package/src/plugins/jupiter/pricingJob.js +7 -22
- package/src/plugins/jupiter/pricingJob.js.map +1 -1
- package/src/plugins/kamino/lendsFetcher.js +21 -3
- package/src/plugins/kamino/lendsFetcher.js.map +1 -1
- package/src/plugins/maker/vaultsFetcher.js +1 -1
- package/src/plugins/maker/vaultsFetcher.js.map +1 -1
- package/src/plugins/mango/boostFetcher.js +1 -1
- package/src/plugins/mango/boostFetcher.js.map +1 -1
- package/src/plugins/mango/collateralFetcher.js +1 -1
- package/src/plugins/mango/collateralFetcher.js.map +1 -1
- package/src/plugins/mango/redeemFetcher.js +1 -1
- package/src/plugins/mango/redeemFetcher.js.map +1 -1
- package/src/plugins/maple/ethereumFetcher.js +1 -1
- package/src/plugins/maple/ethereumFetcher.js.map +1 -1
- package/src/plugins/marginfi/helpers.js +7 -1
- package/src/plugins/marginfi/helpers.js.map +1 -1
- package/src/plugins/mole/farmsFetcher.js +5 -1
- package/src/plugins/mole/farmsFetcher.js.map +1 -1
- package/src/plugins/morpho/aaveV3CollateralFetcher.js +1 -1
- package/src/plugins/morpho/aaveV3CollateralFetcher.js.map +1 -1
- package/src/plugins/native-stake/solana/solanaFetcher.js +2 -0
- package/src/plugins/native-stake/solana/solanaFetcher.js.map +1 -1
- package/src/plugins/navi/collateralFetcher.js +6 -1
- package/src/plugins/navi/collateralFetcher.js.map +1 -1
- package/src/plugins/nosana/stakingFetcher.js +8 -2
- package/src/plugins/nosana/stakingFetcher.js.map +1 -1
- package/src/plugins/port/obligationsFetcher.js +1 -1
- package/src/plugins/port/obligationsFetcher.js.map +1 -1
- package/src/plugins/rain/collectionsJob.js +6 -10
- package/src/plugins/rain/collectionsJob.js.map +1 -1
- package/src/plugins/rain/helpers.js +3 -1
- package/src/plugins/rain/helpers.js.map +1 -1
- package/src/plugins/rain/index.js +2 -1
- package/src/plugins/rain/index.js.map +1 -1
- package/src/plugins/rain/loansFetcher.js +61 -26
- package/src/plugins/rain/loansFetcher.js.map +1 -1
- package/src/plugins/rain/poolsFetcher.js +1 -1
- package/src/plugins/rain/poolsFetcher.js.map +1 -1
- package/src/plugins/rain/types.d.ts +3 -0
- package/src/plugins/sanctum/constants.d.ts +4 -0
- package/src/plugins/sanctum/constants.js +14 -0
- package/src/plugins/sanctum/constants.js.map +1 -0
- package/src/plugins/sanctum/index.d.ts +6 -0
- package/src/plugins/sanctum/index.js +12 -0
- package/src/plugins/sanctum/index.js.map +1 -0
- package/src/plugins/sanctum/lstsJob.d.ts +3 -0
- package/src/plugins/sanctum/lstsJob.js +36 -0
- package/src/plugins/sanctum/lstsJob.js.map +1 -0
- package/src/plugins/scallop/lendingsFetcher.js +1 -1
- package/src/plugins/scallop/lendingsFetcher.js.map +1 -1
- package/src/plugins/scallop/obligationsFetcher.js +1 -1
- package/src/plugins/scallop/obligationsFetcher.js.map +1 -1
- package/src/plugins/sharky/constants.d.ts +0 -1
- package/src/plugins/sharky/constants.js +3 -4
- package/src/plugins/sharky/constants.js.map +1 -1
- package/src/plugins/sharky/loansFetcher.js +21 -20
- package/src/plugins/sharky/loansFetcher.js.map +1 -1
- package/src/plugins/solend/helpers.js +7 -1
- package/src/plugins/solend/helpers.js.map +1 -1
- package/src/plugins/suilend/obligationsFetcher.js +7 -1
- package/src/plugins/suilend/obligationsFetcher.js.map +1 -1
- package/src/plugins/thala/vaultsFetcher.js +1 -1
- package/src/plugins/thala/vaultsFetcher.js.map +1 -1
- package/src/plugins/zeta/airdropFetcher.d.ts +3 -0
- package/src/plugins/zeta/airdropFetcher.js +105 -0
- package/src/plugins/zeta/airdropFetcher.js.map +1 -0
- package/src/plugins/zeta/constants.d.ts +3 -0
- package/src/plugins/zeta/constants.js +4 -1
- package/src/plugins/zeta/constants.js.map +1 -1
- package/src/plugins/zeta/index.js +2 -1
- package/src/plugins/zeta/index.js.map +1 -1
- package/src/plugins/zeta/types.d.ts +14 -0
- package/src/plugins/zeta/types.js +3 -0
- package/src/plugins/zeta/types.js.map +1 -0
- package/src/utils/misc/MemoizedCache.d.ts +12 -0
- package/src/utils/misc/MemoizedCache.js +35 -0
- package/src/utils/misc/MemoizedCache.js.map +1 -0
- package/src/utils/misc/arrayToMap.d.ts +1 -0
- package/src/utils/misc/arrayToMap.js +12 -0
- package/src/utils/misc/arrayToMap.js.map +1 -0
- package/src/utils/misc/pick.d.ts +2 -0
- package/src/utils/misc/pick.js +16 -0
- package/src/utils/misc/pick.js.map +1 -0
- package/src/utils/solana/getAutoParsedMultipleAccountsInfo.js +8 -3
- package/src/utils/solana/getAutoParsedMultipleAccountsInfo.js.map +1 -1
- package/src/plugins/banx/calculateLoanRepayValue.js.map +0 -1
- package/src/plugins/drift/deposits.js.map +0 -1
- /package/src/plugins/{drift/deposits.d.ts → allbridge/positionsFetcher.d.ts} +0 -0
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"obligationsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/suilend/obligationsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAQoC;AACpC,gEAAqC;AAGrC,2CAKqB;AACrB,iDAAmD;AACnD,qEAAkE;AAOlE,qEAAkE;AAClE,qGAA6E;AAC7E,uCAAgE;AAChE,mDAAkD;AAElD,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;;IACtE,MAAM,MAAM,GAAG,IAAA,sBAAY,GAAE,CAAC;IAE9B,MAAM,oBAAoB,GAAG,MAAM,IAAA,iCAAe,EAChD,MAAM,EACN,KAAK,EACL;QACE,MAAM,EAAE,EAAE,OAAO,EAAE,qBAAS,EAAE;KAC/B,CACF,CAAC;IACF,IAAI,oB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U,CACX,KACD,UAAU,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,IACjC,CAAC;QACP,CAAC,CAAC,CAAC;IACL,CAAC;IAED,IACE,cAAc,CAAC,MAAM,KAAK,CAAC;QAC3B,cAAc,CAAC,MAAM,KAAK,CAAC;QAC3B,YAAY,CAAC,MAAM,KAAK,CAAC;QAEzB,OAAO,EAAE,CAAC;IAEZ,MAAM,EAAE,aAAa,EAAE,aAAa,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,GACrE,IAAA,wCAAuB,EAAC;QACtB,cAAc;QACd,cAAc;QACd,YAAY;QACZ,YAAY;QACZ,eAAe;KAChB,CAAC,CAAC;IAEL,MAAM,OAAO,GAAqB;QAChC,IAAI,EAAE,qCAAoB,CAAC,UAAU;QACrC,SAAS,EAAE,0BAAS,CAAC,GAAG;QACxB,UAAU,EAAV,sBAAU;QACV,KAAK,EAAE,SAAS;QAChB,KAAK;QACL,IAAI,EAAE;YACJ,cAAc;YACd,aAAa;YACb,cAAc;YACd,cAAc;YACd,aAAa;YACb,cAAc;YACd,WAAW;YACX,YAAY;YACZ,WAAW;YACX,KAAK;SACN;KACF,CAAC;IACF,OAAO,CAAC,OAAO,CAAC,CAAC;AACnB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,cAAc;IAC/B,SAAS,EAAE,0BAAS,CAAC,GAAG;IACxB,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -48,7 +48,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
48
48
|
suppliedAssets.push((0, tokenPriceToAssetToken_1.default)(suppliedAsset, suppliedAmount, portfolio_core_1.NetworkId.aptos, suppliedTokenPrice));
|
49
49
|
const borrowedAmount = vaultData.debt / Math.pow(10, borrowedTokenPrice.decimals);
|
50
50
|
borrowedAssets.push((0, tokenPriceToAssetToken_1.default)(borrowedAsset, borrowedAmount, portfolio_core_1.NetworkId.aptos, borrowedTokenPrice));
|
51
|
-
const { borrowedValue, suppliedValue, value, healthRatio, rewardValue } = (0, portfolio_core_1.getElementLendingValues)(suppliedAssets, borrowedAssets, rewardAssets);
|
51
|
+
const { borrowedValue, suppliedValue, value, healthRatio, rewardValue } = (0, portfolio_core_1.getElementLendingValues)({ suppliedAssets, borrowedAssets, rewardAssets });
|
52
52
|
elements.push({
|
53
53
|
type: portfolio_core_1.PortfolioElementType.borrowlend,
|
54
54
|
networkId: portfolio_core_1.NetworkId.aptos,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"vaultsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/thala/vaultsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAQoC;AAGpC,2CAA+D;AAC/D,iDAAqD;AACrD,6CAAuE;AAEvE,qGAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,wBAAc,GAAE,CAAC;IAEpC,MAAM,SAAS,GAAG,MAAM,IAAA,2BAAmB,EAAC,UAAU,EAAE,KAAK,CAAC,CAAC;IAC/D,IAAI,CAAC,SAAS;QAAE,OAAO,EAAE,CAAC;IAE1B,MAAM,aAAa,GAAG,mBAAO,CAAC;IAC9B,MAAM,kBAAkB,GAAG,MAAM,KAAK,CAAC,aAAa,CAClD,aAAa,EACb,0BAAS,CAAC,KAAK,CAChB,CAAC;IACF,IAAI,CAAC,kBAAkB;QAAE,OAAO,EAAE,CAAC;IAEnC,MAAM,QAAQ,GAAuB,EAAE,CAAC;IACxC,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,SAAS,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC;QACtD,MAAM,QAAQ,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC;QAClC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,UAAU,C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,aAAa,EAAE;YACnE,MAAM,EAAE,sBAAU;SACnB,CAAC,CAAC;QACH,IAAI,CAAC,iBAAiB,IAAI,iBAAiB,KAAK,CAAC;YAAE,SAAS;QAE5D,MAAM,oBAAoB,GAAY;YACpC;gBACE,GAAG,EAAE,CAAC,IAAA,yBAAQ,EAAC,iBAAiB,CAAC;gBACjC,GAAG,EAAE,CAAC,iBAAiB;aACxB;SACF,CAAC;QACF,cAAc,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC;IAC5C,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,SAAS;IAC1B,SAAS,EAAE,0BAAS,CAAC,KAAK;IAC1B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -0,0 +1,105 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
15
|
+
}) : function(o, v) {
|
16
|
+
o["default"] = v;
|
17
|
+
});
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
19
|
+
if (mod && mod.__esModule) return mod;
|
20
|
+
var result = {};
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
22
|
+
__setModuleDefault(result, mod);
|
23
|
+
return result;
|
24
|
+
};
|
25
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
26
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
27
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
28
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
29
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
30
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
31
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
32
|
+
});
|
33
|
+
};
|
34
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
35
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
36
|
+
};
|
37
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
38
|
+
const portfolio_core_1 = require("@sonarwatch/portfolio-core");
|
39
|
+
const graphql_request_1 = __importStar(require("graphql-request"));
|
40
|
+
const constants_1 = require("./constants");
|
41
|
+
const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/tokenPriceToAssetToken"));
|
42
|
+
const query = (0, graphql_request_1.gql) `
|
43
|
+
query GetAirdropFinalFrontend($authority: String!) {
|
44
|
+
getAirdropFinalFrontend(authority: $authority) {
|
45
|
+
authority
|
46
|
+
community_allocation
|
47
|
+
eligibility
|
48
|
+
main_allocation
|
49
|
+
og_allocation
|
50
|
+
s1_allocation
|
51
|
+
s2_allocation
|
52
|
+
total_allocation
|
53
|
+
__typename
|
54
|
+
}
|
55
|
+
}
|
56
|
+
`;
|
57
|
+
const networkId = portfolio_core_1.NetworkId.solana;
|
58
|
+
const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
|
59
|
+
const res = yield (0, graphql_request_1.default)(constants_1.graphqlApi, query, {
|
60
|
+
authority: owner,
|
61
|
+
}, {
|
62
|
+
origin: 'https://token.zeta.markets',
|
63
|
+
referrer: 'https://token.zeta.markets/',
|
64
|
+
'X-Api-Key': 'da2-rrupjjccivdndc6rvltixlmsma',
|
65
|
+
}).catch(() => null);
|
66
|
+
if (!res)
|
67
|
+
return [];
|
68
|
+
const amount = res.getAirdropFinalFrontend.total_allocation;
|
69
|
+
if (amount === 0)
|
70
|
+
return [];
|
71
|
+
const tokenPrice = yield cache.getTokenPrice(constants_1.zexMint, networkId);
|
72
|
+
const asset = tokenPrice
|
73
|
+
? (0, tokenPriceToAssetToken_1.default)(tokenPrice.address, amount, networkId, tokenPrice)
|
74
|
+
: {
|
75
|
+
type: 'generic',
|
76
|
+
data: {
|
77
|
+
imageUri: 'https://statics.solscan.io/cdn/imgs/s60?ref=68747470733a2f2f7261772e67697468756275736572636f6e74656e742e636f6d2f7a6574616d61726b6574732f6272616e642f6d61737465722f6173736574732f7a6574612e706e67',
|
78
|
+
amount,
|
79
|
+
price: null,
|
80
|
+
name: 'ZEX',
|
81
|
+
},
|
82
|
+
value: null,
|
83
|
+
networkId,
|
84
|
+
attributes: {},
|
85
|
+
};
|
86
|
+
return [
|
87
|
+
{
|
88
|
+
type: 'multiple',
|
89
|
+
label: 'Airdrop',
|
90
|
+
networkId,
|
91
|
+
platformId: constants_1.platformId,
|
92
|
+
data: {
|
93
|
+
assets: [asset],
|
94
|
+
},
|
95
|
+
value: asset.value,
|
96
|
+
},
|
97
|
+
];
|
98
|
+
});
|
99
|
+
const fetcher = {
|
100
|
+
id: `${constants_1.platformId}-airdrop`,
|
101
|
+
networkId,
|
102
|
+
executor,
|
103
|
+
};
|
104
|
+
exports.default = fetcher;
|
105
|
+
//# sourceMappingURL=airdropFetcher.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"airdropFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/zeta/airdropFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;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AE;gBACJ,MAAM,EAAE,CAAC,KAAK,CAAC;aAChB;YACD,KAAK,EAAE,KAAK,CAAC,KAAK;SACnB;KACF,CAAC;AACJ,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,UAAU;IAC3B,SAAS;IACT,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -4,3 +4,6 @@ export declare const platformId = "zeta";
|
|
4
4
|
export declare const platform: Platform;
|
5
5
|
export declare const usdcMint = "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v";
|
6
6
|
export declare const programId: PublicKey;
|
7
|
+
export declare const graphqlApi = "https://api-gql.zeta.markets/graphql";
|
8
|
+
export declare const zexMint = "ZEXy1pqteRu3n13kdyh4LwPQknkFk3GzmMYMuNadWPo";
|
9
|
+
export declare const zexDecimals = 6;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.programId = exports.usdcMint = exports.platform = exports.platformId = void 0;
|
3
|
+
exports.zexDecimals = exports.zexMint = exports.graphqlApi = exports.programId = exports.usdcMint = exports.platform = exports.platformId = void 0;
|
4
4
|
const web3_js_1 = require("@solana/web3.js");
|
5
5
|
exports.platformId = 'zeta';
|
6
6
|
exports.platform = {
|
@@ -12,4 +12,7 @@ exports.platform = {
|
|
12
12
|
};
|
13
13
|
exports.usdcMint = 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v';
|
14
14
|
exports.programId = new web3_js_1.PublicKey('ZETAxsqBRek56DhiGXrn75yj2NHU3aYUnxvHXpkf3aD');
|
15
|
+
exports.graphqlApi = 'https://api-gql.zeta.markets/graphql';
|
16
|
+
exports.zexMint = 'ZEXy1pqteRu3n13kdyh4LwPQknkFk3GzmMYMuNadWPo';
|
17
|
+
exports.zexDecimals = 6;
|
15
18
|
//# sourceMappingURL=constants.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/zeta/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,4CAA4C;IACnD,WAAW,EAAE,MAAM;IACnB,OAAO,EAAE,2BAA2B;CACrC,CAAC;AAEW,QAAA,QAAQ,GAAG,8CAA8C,CAAC;AAC1D,QAAA,SAAS,GAAG,IAAI,mBAAS,CACpC,6CAA6C,CAC9C,CAAC"}
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/zeta/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,4CAA4C;IACnD,WAAW,EAAE,MAAM;IACnB,OAAO,EAAE,2BAA2B;CACrC,CAAC;AAEW,QAAA,QAAQ,GAAG,8CAA8C,CAAC;AAC1D,QAAA,SAAS,GAAG,IAAI,mBAAS,CACpC,6CAA6C,CAC9C,CAAC;AACW,QAAA,UAAU,GAAG,sCAAsC,CAAC;AACpD,QAAA,OAAO,GAAG,6CAA6C,CAAC;AACxD,QAAA,WAAW,GAAG,CAAC,CAAC"}
|
@@ -5,8 +5,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
6
|
exports.platforms = exports.fetchers = exports.jobs = void 0;
|
7
7
|
const depositsFetcher_1 = __importDefault(require("./depositsFetcher"));
|
8
|
+
const airdropFetcher_1 = __importDefault(require("./airdropFetcher"));
|
8
9
|
const constants_1 = require("./constants");
|
9
10
|
exports.jobs = [];
|
10
|
-
exports.fetchers = [depositsFetcher_1.default];
|
11
|
+
exports.fetchers = [depositsFetcher_1.default, airdropFetcher_1.default];
|
11
12
|
exports.platforms = [constants_1.platform];
|
12
13
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/zeta/index.ts"],"names":[],"mappings":";;;;;;AAGA,wEAAgD;AAChD,2CAAuC;AAE1B,QAAA,IAAI,GAAU,EAAE,CAAC;AACjB,QAAA,QAAQ,GAAc,CAAC,yBAAe,CAAC,CAAC;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/zeta/index.ts"],"names":[],"mappings":";;;;;;AAGA,wEAAgD;AAChD,sEAA8C;AAC9C,2CAAuC;AAE1B,QAAA,IAAI,GAAU,EAAE,CAAC;AACjB,QAAA,QAAQ,GAAc,CAAC,yBAAe,EAAE,wBAAc,CAAC,CAAC;AACxD,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC"}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
export type GQLResponse = {
|
2
|
+
getAirdropFinalFrontend: GetAirdropFinalFrontend;
|
3
|
+
};
|
4
|
+
export type GetAirdropFinalFrontend = {
|
5
|
+
authority: string;
|
6
|
+
community_allocation: number;
|
7
|
+
eligibility: string;
|
8
|
+
main_allocation: number;
|
9
|
+
og_allocation: number;
|
10
|
+
s1_allocation: number;
|
11
|
+
s2_allocation: number;
|
12
|
+
total_allocation: number;
|
13
|
+
__typename: string;
|
14
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/zeta/types.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { StorageValue } from 'unstorage';
|
2
|
+
import { Cache, TransactionOptions } from '../../Cache';
|
3
|
+
export declare class MemoizedCache<T extends StorageValue, K = T> {
|
4
|
+
private readonly key;
|
5
|
+
private readonly opts;
|
6
|
+
private readonly transform;
|
7
|
+
private readonly ttl;
|
8
|
+
private item;
|
9
|
+
private lastUpdate;
|
10
|
+
constructor(key: string, opts: TransactionOptions, transform?: (i: T | undefined) => K, ttl?: number);
|
11
|
+
getItem: (cache: Cache) => Promise<K>;
|
12
|
+
}
|
@@ -0,0 +1,35 @@
|
|
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
|
+
exports.MemoizedCache = void 0;
|
13
|
+
const defaultMemoizedCacheRefreshInterval = 3600000;
|
14
|
+
// T is the type of stored item in cache
|
15
|
+
// K is the type of the item after transformation
|
16
|
+
class MemoizedCache {
|
17
|
+
constructor(key, opts, transform, ttl = defaultMemoizedCacheRefreshInterval) {
|
18
|
+
this.getItem = (cache) => __awaiter(this, void 0, void 0, function* () {
|
19
|
+
const now = Date.now();
|
20
|
+
if (!this.item || this.lastUpdate + this.ttl < now) {
|
21
|
+
const rawItem = yield cache.getItem(this.key, this.opts);
|
22
|
+
this.item = this.transform ? this.transform(rawItem) : rawItem;
|
23
|
+
this.lastUpdate = now;
|
24
|
+
}
|
25
|
+
return this.item;
|
26
|
+
});
|
27
|
+
this.key = key;
|
28
|
+
this.opts = opts;
|
29
|
+
this.transform = transform;
|
30
|
+
this.ttl = ttl;
|
31
|
+
this.lastUpdate = 0;
|
32
|
+
}
|
33
|
+
}
|
34
|
+
exports.MemoizedCache = MemoizedCache;
|
35
|
+
//# sourceMappingURL=MemoizedCache.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"MemoizedCache.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/misc/MemoizedCache.ts"],"names":[],"mappings":";;;;;;;;;;;;AAGA,MAAM,mCAAmC,GAAG,OAAO,CAAC;AAEpD,wCAAwC;AACxC,iDAAiD;AACjD,MAAa,aAAa;IASxB,YACE,GAAW,EACX,IAAwB,EACxB,SAAmC,EACnC,MAAc,mCAAmC;QASnD,YAAO,GAAG,CAAO,KAAY,EAAE,EAAE;YAC/B,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;YAEvB,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,GAAG,GAAG,GAAG,EAAE,CAAC;gBACnD,MAAM,OAAO,GAAG,MAAM,KAAK,CAAC,OAAO,CAAI,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;gBAC5D,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,CAAE,OAAa,CAAC;gBACtE,IAAI,CAAC,UAAU,GAAG,GAAG,CAAC;YACxB,CAAC;YAED,OAAO,IAAI,CAAC,IAAI,CAAC;QACnB,CAAC,CAAA,CAAC;QAjBA,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,UAAU,GAAG,CAAC,CAAC;IACtB,CAAC;CAaF;AAjCD,sCAiCC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const arrayToMap: <T>(array: T[], keyField: keyof T) => Map<string, T>;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.arrayToMap = void 0;
|
4
|
+
const arrayToMap = (array, keyField) => {
|
5
|
+
const map = new Map();
|
6
|
+
array.forEach((item) => {
|
7
|
+
map.set(item[keyField], item);
|
8
|
+
});
|
9
|
+
return map;
|
10
|
+
};
|
11
|
+
exports.arrayToMap = arrayToMap;
|
12
|
+
//# sourceMappingURL=arrayToMap.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"arrayToMap.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/misc/arrayToMap.ts"],"names":[],"mappings":";;;AAAO,MAAM,UAAU,GAAG,CACxB,KAAU,EACV,QAAiB,EACD,EAAE;IAClB,MAAM,GAAG,GAAG,IAAI,GAAG,EAAa,CAAC;IACjC,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;QACrB,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAW,EAAE,IAAI,CAAC,CAAC;IAC1C,CAAC,CAAC,CAAC;IACH,OAAO,GAAG,CAAC;AACb,CAAC,CAAC;AATW,QAAA,UAAU,cASrB"}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.pickFromArray = exports.pick = void 0;
|
4
|
+
const pick = (obj, keys) => {
|
5
|
+
const result = {};
|
6
|
+
keys.forEach((key) => {
|
7
|
+
if (key in obj) {
|
8
|
+
result[key] = obj[key];
|
9
|
+
}
|
10
|
+
});
|
11
|
+
return result;
|
12
|
+
};
|
13
|
+
exports.pick = pick;
|
14
|
+
const pickFromArray = (items, keys) => items.map((item) => (0, exports.pick)(item, keys));
|
15
|
+
exports.pickFromArray = pickFromArray;
|
16
|
+
//# sourceMappingURL=pick.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"pick.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/misc/pick.ts"],"names":[],"mappings":";;;AAAO,MAAM,IAAI,GAAG,CAClB,GAAM,EACN,IAAS,EACG,EAAE;IACd,MAAM,MAAM,GAAG,EAAgB,CAAC;IAChC,IAAI,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;QACnB,IAAI,GAAG,IAAI,GAAG,EAAE,CAAC;YACf,MAAM,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC;QACzB,CAAC;IACH,CAAC,CAAC,CAAC;IACH,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC;AAXW,QAAA,IAAI,QAWf;AAEK,MAAM,aAAa,GAAG,CAC3B,KAAU,EACV,IAAS,EACK,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,YAAI,EAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC;AAH5C,QAAA,aAAa,iBAG+B"}
|
@@ -22,10 +22,15 @@ function getAutoParsedMultipleAccountsInfo(connection, idlItem, publicKeys, comm
|
|
22
22
|
return accountsInfo.map((accountInfo, i) => {
|
23
23
|
if (!accountInfo)
|
24
24
|
return null;
|
25
|
-
|
26
|
-
|
25
|
+
try {
|
26
|
+
const parsedAccount = eventParser.parseAccount(accountInfo.data.toString('base64'));
|
27
|
+
if (parsedAccount === null)
|
28
|
+
return null;
|
29
|
+
return Object.assign({ pubkey: publicKeys[i], lamports: accountInfo.lamports }, parsedAccount.data);
|
30
|
+
}
|
31
|
+
catch (err) {
|
27
32
|
return null;
|
28
|
-
|
33
|
+
}
|
29
34
|
});
|
30
35
|
});
|
31
36
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getAutoParsedMultipleAccountsInfo.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/solana/getAutoParsedMultipleAccountsInfo.ts"],"names":[],"mappings":";;;;;;;;;;;;AAOA,yDAIgC;AAChC,+EAA4E;AAG5E,SAAsB,iCAAiC,CACrD,UAAsB,EACtB,OAAgB,EAChB,UAAuB,EACvB,kBAA2D;;QAE3D,MAAM,MAAM,GAAG,IAAI,6BAAc,CAAC,OAAO,EAAE,OAAO,CAAC,SAAS,CAAC,QAAQ,EAAE,CAAC,CAAC;QACzE,MAAM,WAAW,GAAG,MAAM,CAAC,YAAY,CAAC,yBAAU,CAAC,OAAO,CAAC,CAAC;QAE5D,IAAI,CAAC,WAAW,IAAI,CAAC,IAAA,mCAAoB,EAAC,WAAW,CAAC;YAAE,OAAO,EAAE,CAAC;QAElE,MAAM,YAAY,GAAG,MAAM,IAAA,yDAA2B,EACpD,UAAU,EACV,UAAU,EACV,kBAAkB,CACnB,CAAC;QAEF,OAAO,YAAY,CAAC,GAAG,CAAC,CAAC,WAAW,EAAE,CAAC,EAAE,EAAE;YACzC,IAAI,CAAC,WAAW;gBAAE,OAAO,IAAI,CAAC;YAE9B,MAAM,aAAa,GAAG,WAAW,CAAC,YAAY,CAC5C,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CACpC,CAAC;
|
1
|
+
{"version":3,"file":"getAutoParsedMultipleAccountsInfo.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/solana/getAutoParsedMultipleAccountsInfo.ts"],"names":[],"mappings":";;;;;;;;;;;;AAOA,yDAIgC;AAChC,+EAA4E;AAG5E,SAAsB,iCAAiC,CACrD,UAAsB,EACtB,OAAgB,EAChB,UAAuB,EACvB,kBAA2D;;QAE3D,MAAM,MAAM,GAAG,IAAI,6BAAc,CAAC,OAAO,EAAE,OAAO,CAAC,SAAS,CAAC,QAAQ,EAAE,CAAC,CAAC;QACzE,MAAM,WAAW,GAAG,MAAM,CAAC,YAAY,CAAC,yBAAU,CAAC,OAAO,CAAC,CAAC;QAE5D,IAAI,CAAC,WAAW,IAAI,CAAC,IAAA,mCAAoB,EAAC,WAAW,CAAC;YAAE,OAAO,EAAE,CAAC;QAElE,MAAM,YAAY,GAAG,MAAM,IAAA,yDAA2B,EACpD,UAAU,EACV,UAAU,EACV,kBAAkB,CACnB,CAAC;QAEF,OAAO,YAAY,CAAC,GAAG,CAAC,CAAC,WAAW,EAAE,CAAC,EAAE,EAAE;YACzC,IAAI,CAAC,WAAW;gBAAE,OAAO,IAAI,CAAC;YAE9B,IAAI,CAAC;gBACH,MAAM,aAAa,GAAG,WAAW,CAAC,YAAY,CAC5C,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CACpC,CAAC;gBACF,IAAI,aAAa,KAAK,IAAI;oBAAE,OAAO,IAAI,CAAC;gBAExC,uBACE,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,EACrB,QAAQ,EAAE,WAAW,CAAC,QAAQ,IAC1B,aAAa,CAAC,IAAU,EAC5B;YACJ,CAAC;YAAC,OAAO,GAAG,EAAE,CAAC;gBACb,OAAO,IAAI,CAAC;YACd,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;CAAA;AAnCD,8EAmCC"}
|
@@ -1 +0,0 @@
|
|
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,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