@sonarwatch/portfolio-plugins 0.14.131 → 0.14.133
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2136 -2128
- package/README.md +3 -3
- package/package.json +1 -1
- package/src/plugins/balancer/helpers/pools.js +21 -21
- package/src/plugins/citrus/loansFetcher.js +34 -68
- package/src/plugins/citrus/loansFetcher.js.map +1 -1
- package/src/plugins/debridge/dlmmVaultsFetcher.js +1 -0
- package/src/plugins/debridge/dlmmVaultsFetcher.js.map +1 -1
- package/src/plugins/jupiter/exchange/helpersPerps.d.ts +2 -0
- package/src/plugins/jupiter/exchange/helpersPerps.js +3 -1
- package/src/plugins/jupiter/exchange/helpersPerps.js.map +1 -1
- package/src/plugins/jupiter/exchange/perpetualFetcher.js +27 -1
- package/src/plugins/jupiter/exchange/perpetualFetcher.js.map +1 -1
- package/src/plugins/jupiter/exchange/structs.d.ts +35 -1
- package/src/plugins/jupiter/exchange/structs.js +36 -1
- package/src/plugins/jupiter/exchange/structs.js.map +1 -1
- package/src/plugins/jupiter/exchange/valueAverageFetcher.js +1 -1
- package/src/plugins/jupiter/exchange/valueAverageFetcher.js.map +1 -1
- package/src/plugins/jupiter/filters.d.ts +1 -0
- package/src/plugins/jupiter/filters.js +11 -1
- package/src/plugins/jupiter/filters.js.map +1 -1
- package/src/plugins/rain/banksFetcher.js +47 -0
- package/src/plugins/rain/banksFetcher.js.map +1 -0
- package/src/plugins/rain/collectionsJob.js +9 -7
- package/src/plugins/rain/collectionsJob.js.map +1 -1
- package/src/plugins/rain/constants.d.ts +7 -2
- package/src/plugins/rain/constants.js +11 -3
- package/src/plugins/rain/constants.js.map +1 -1
- package/src/plugins/rain/defiBorrowsFetcher.d.ts +3 -0
- package/src/plugins/rain/defiBorrowsFetcher.js +52 -0
- package/src/plugins/rain/defiBorrowsFetcher.js.map +1 -0
- package/src/plugins/rain/index.js +10 -3
- package/src/plugins/rain/index.js.map +1 -1
- package/src/plugins/rain/nftBorrowsFetcher.d.ts +3 -0
- package/src/plugins/rain/nftBorrowsFetcher.js +76 -0
- package/src/plugins/rain/nftBorrowsFetcher.js.map +1 -0
- package/src/plugins/rain/poolsFetcher.js +79 -42
- package/src/plugins/rain/poolsFetcher.js.map +1 -1
- package/src/plugins/rain/structs.d.ts +455 -0
- package/src/plugins/rain/structs.js +425 -0
- package/src/plugins/rain/structs.js.map +1 -0
- package/src/plugins/rain/types.d.ts +18 -144
- package/src/plugins/sharky/loansFetcher.js +38 -73
- package/src/plugins/sharky/loansFetcher.js.map +1 -1
- package/src/plugins/sushiswap/helpers.js +24 -24
- package/src/plugins/uniswap-v2/helpers.js +22 -22
- package/src/plugins/zeta/airdropFetcher.js +14 -14
- package/src/utils/elementbuilder/AssetCollectibleBuilder.d.ts +10 -0
- package/src/utils/elementbuilder/AssetCollectibleBuilder.js +53 -0
- package/src/utils/elementbuilder/AssetCollectibleBuilder.js.map +1 -0
- package/src/utils/elementbuilder/ElementBorrowlendBuilder.d.ts +9 -1
- package/src/utils/elementbuilder/ElementBorrowlendBuilder.js +41 -3
- package/src/utils/elementbuilder/ElementBorrowlendBuilder.js.map +1 -1
- package/src/utils/elementbuilder/ElementRegistry.js +9 -1
- package/src/utils/elementbuilder/ElementRegistry.js.map +1 -1
- package/src/utils/elementbuilder/Params.d.ts +14 -0
- package/src/utils/sei/constants.js +8 -8
- package/src/utils/sei/getQueryBalanceByOwner.js +4 -4
- package/src/utils/solana/das/heliusAssetToAssetCollectible.js +3 -2
- package/src/utils/solana/das/heliusAssetToAssetCollectible.js.map +1 -1
- package/src/plugins/rain/filters.d.ts +0 -7
- package/src/plugins/rain/filters.js +0 -53
- package/src/plugins/rain/filters.js.map +0 -1
- package/src/plugins/rain/helpers.d.ts +0 -9
- package/src/plugins/rain/helpers.js +0 -66
- package/src/plugins/rain/helpers.js.map +0 -1
- package/src/plugins/rain/loansFetcher.js +0 -139
- package/src/plugins/rain/loansFetcher.js.map +0 -1
- package/src/plugins/rain/structs/loan.d.ts +0 -86
- package/src/plugins/rain/structs/loan.js +0 -86
- package/src/plugins/rain/structs/loan.js.map +0 -1
- package/src/plugins/rain/structs/pool.d.ts +0 -79
- package/src/plugins/rain/structs/pool.js +0 -76
- package/src/plugins/rain/structs/pool.js.map +0 -1
- /package/src/plugins/rain/{loansFetcher.d.ts → banksFetcher.d.ts} +0 -0
@@ -1,76 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.poolStruct = exports.poolCollectionStruct = exports.poolLiquidationStruct = exports.poolConditionStruct = exports.curveStruct = exports.PoolStatus = 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 PoolStatus;
|
8
|
-
(function (PoolStatus) {
|
9
|
-
PoolStatus[PoolStatus["Ready"] = 0] = "Ready";
|
10
|
-
PoolStatus[PoolStatus["Disabled"] = 1] = "Disabled";
|
11
|
-
})(PoolStatus || (exports.PoolStatus = PoolStatus = {}));
|
12
|
-
exports.curveStruct = new beet_1.BeetStruct([
|
13
|
-
['baseInterest', beet_1.u16],
|
14
|
-
['interestRate', beet_1.u16],
|
15
|
-
['curveRate', beet_1.u16],
|
16
|
-
['curveRateDay', beet_1.u16],
|
17
|
-
['maxDuration', solana_1.u64],
|
18
|
-
['maxAmount', solana_1.u64],
|
19
|
-
], (args) => args);
|
20
|
-
exports.poolConditionStruct = new beet_1.BeetStruct([
|
21
|
-
['isEnabled', beet_1.bool],
|
22
|
-
['minAge', solana_1.u64],
|
23
|
-
['minLoan', solana_1.u64],
|
24
|
-
['minVolume', solana_1.u64],
|
25
|
-
['liquidationThreshold', beet_1.u16],
|
26
|
-
['padding1', beet_1.u16],
|
27
|
-
['padding2', beet_1.u16],
|
28
|
-
['padding3', beet_1.u8],
|
29
|
-
], (args) => args);
|
30
|
-
exports.poolLiquidationStruct = new beet_1.BeetStruct([
|
31
|
-
['loanLiquidation', beet_1.u16],
|
32
|
-
['mortgageLiquidation', beet_1.u16],
|
33
|
-
['isAutoSellEnabled', beet_1.bool],
|
34
|
-
['percentageMaxLoss', beet_1.u16],
|
35
|
-
], (args) => args);
|
36
|
-
exports.poolCollectionStruct = new beet_1.BeetStruct([
|
37
|
-
['collection', beet_1.u32],
|
38
|
-
['collectionLtv', beet_1.u16],
|
39
|
-
['exposure', beet_1.u16],
|
40
|
-
['amountUsed', solana_1.u64],
|
41
|
-
], (args) => args);
|
42
|
-
exports.poolStruct = new beet_1.BeetStruct([
|
43
|
-
['buffer', (0, solana_1.blob)(8)],
|
44
|
-
['bump', beet_1.u8],
|
45
|
-
['owner', beet_solana_1.publicKey],
|
46
|
-
['currency', beet_solana_1.publicKey],
|
47
|
-
['oraclePoolUsd', beet_solana_1.publicKey],
|
48
|
-
['oracleSolUsd', beet_solana_1.publicKey],
|
49
|
-
['status', beet_1.u8],
|
50
|
-
['isCompounded', beet_1.bool],
|
51
|
-
['isShared', beet_1.bool],
|
52
|
-
['totalAmount', solana_1.u64],
|
53
|
-
['borrowedAmount', solana_1.u64],
|
54
|
-
['availableAmount', solana_1.u64],
|
55
|
-
['usableAmount', solana_1.u64],
|
56
|
-
['loanCurve', exports.curveStruct],
|
57
|
-
['mortgageCurve', exports.curveStruct],
|
58
|
-
['isMortgageEnabled', beet_1.bool],
|
59
|
-
['nftLocked', solana_1.u64],
|
60
|
-
['totalLiquidations', solana_1.u64],
|
61
|
-
['totalLoans', solana_1.u64],
|
62
|
-
['totalMortgages', solana_1.u64],
|
63
|
-
['totalInterest', solana_1.u64],
|
64
|
-
['depositedAt', solana_1.u64],
|
65
|
-
['createdAt', solana_1.u64],
|
66
|
-
['updatedAt', solana_1.u64],
|
67
|
-
['collectionsUpdatedAt', solana_1.u64],
|
68
|
-
['lastLoanAt', solana_1.u64],
|
69
|
-
['lastMortgageAt', solana_1.u64],
|
70
|
-
['conditions', exports.poolConditionStruct],
|
71
|
-
['liquidation', exports.poolLiquidationStruct],
|
72
|
-
['whitelist', beet_solana_1.publicKey],
|
73
|
-
['padding', (0, beet_1.uniformFixedSizeArray)(solana_1.u64, 16)],
|
74
|
-
['collections', (0, beet_1.uniformFixedSizeArray)(exports.poolCollectionStruct, 50)],
|
75
|
-
], (args) => args);
|
76
|
-
//# sourceMappingURL=pool.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"pool.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/rain/structs/pool.ts"],"names":[],"mappings":";;;AAAA,oDAOmC;AACnC,kEAA6D;AAG7D,kDAAkD;AAElD,IAAY,UAGX;AAHD,WAAY,UAAU;IACpB,6CAAK,CAAA;IACL,mDAAQ,CAAA;AACV,CAAC,EAHW,UAAU,0BAAV,UAAU,QAGrB;AAWY,QAAA,WAAW,GAAG,IAAI,iBAAU,CACvC;IACE,CAAC,cAAc,EAAE,UAAG,CAAC;IACrB,CAAC,cAAc,EAAE,UAAG,CAAC;IACrB,CAAC,WAAW,EAAE,UAAG,CAAC;IAClB,CAAC,cAAc,EAAE,UAAG,CAAC;IACrB,CAAC,aAAa,EAAE,YAAG,CAAC;IACpB,CAAC,WAAW,EAAE,YAAG,CAAC;CACnB,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAa,CACxB,CAAC;AAaW,QAAA,mBAAmB,GAAG,IAAI,iBAAU,CAC/C;IACE,CAAC,WAAW,EAAE,WAAI,CAAC;IACnB,CAAC,QAAQ,EAAE,YAAG,CAAC;IACf,CAAC,SAAS,EAAE,YAAG,CAAC;IAChB,CAAC,WAAW,EAAE,YAAG,CAAC;IAClB,CAAC,sBAAsB,EAAE,UAAG,CAAC;IAC7B,CAAC,UAAU,EAAE,UAAG,CAAC;IACjB,CAAC,UAAU,EAAE,UAAG,CAAC;IACjB,CAAC,UAAU,EAAE,SAAE,CAAC;CACjB,EACD,CAAC,IAAI,EAAE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