@sonarwatch/portfolio-plugins 0.14.132 → 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.
Files changed (57) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/package.json +1 -1
  3. package/src/plugins/citrus/loansFetcher.js +34 -68
  4. package/src/plugins/citrus/loansFetcher.js.map +1 -1
  5. package/src/plugins/debridge/dlmmVaultsFetcher.js +1 -0
  6. package/src/plugins/debridge/dlmmVaultsFetcher.js.map +1 -1
  7. package/src/plugins/jupiter/exchange/valueAverageFetcher.js +1 -1
  8. package/src/plugins/jupiter/exchange/valueAverageFetcher.js.map +1 -1
  9. package/src/plugins/rain/banksFetcher.js +47 -0
  10. package/src/plugins/rain/banksFetcher.js.map +1 -0
  11. package/src/plugins/rain/collectionsJob.js +9 -7
  12. package/src/plugins/rain/collectionsJob.js.map +1 -1
  13. package/src/plugins/rain/constants.d.ts +7 -2
  14. package/src/plugins/rain/constants.js +11 -3
  15. package/src/plugins/rain/constants.js.map +1 -1
  16. package/src/plugins/rain/defiBorrowsFetcher.d.ts +3 -0
  17. package/src/plugins/rain/defiBorrowsFetcher.js +52 -0
  18. package/src/plugins/rain/defiBorrowsFetcher.js.map +1 -0
  19. package/src/plugins/rain/index.js +10 -3
  20. package/src/plugins/rain/index.js.map +1 -1
  21. package/src/plugins/rain/nftBorrowsFetcher.d.ts +3 -0
  22. package/src/plugins/rain/nftBorrowsFetcher.js +76 -0
  23. package/src/plugins/rain/nftBorrowsFetcher.js.map +1 -0
  24. package/src/plugins/rain/poolsFetcher.js +79 -42
  25. package/src/plugins/rain/poolsFetcher.js.map +1 -1
  26. package/src/plugins/rain/structs.d.ts +455 -0
  27. package/src/plugins/rain/structs.js +425 -0
  28. package/src/plugins/rain/structs.js.map +1 -0
  29. package/src/plugins/rain/types.d.ts +18 -144
  30. package/src/plugins/sharky/loansFetcher.js +38 -73
  31. package/src/plugins/sharky/loansFetcher.js.map +1 -1
  32. package/src/utils/elementbuilder/AssetCollectibleBuilder.d.ts +10 -0
  33. package/src/utils/elementbuilder/AssetCollectibleBuilder.js +53 -0
  34. package/src/utils/elementbuilder/AssetCollectibleBuilder.js.map +1 -0
  35. package/src/utils/elementbuilder/ElementBorrowlendBuilder.d.ts +9 -1
  36. package/src/utils/elementbuilder/ElementBorrowlendBuilder.js +41 -3
  37. package/src/utils/elementbuilder/ElementBorrowlendBuilder.js.map +1 -1
  38. package/src/utils/elementbuilder/ElementRegistry.js +9 -1
  39. package/src/utils/elementbuilder/ElementRegistry.js.map +1 -1
  40. package/src/utils/elementbuilder/Params.d.ts +14 -0
  41. package/src/utils/solana/das/heliusAssetToAssetCollectible.js +3 -2
  42. package/src/utils/solana/das/heliusAssetToAssetCollectible.js.map +1 -1
  43. package/src/plugins/rain/filters.d.ts +0 -7
  44. package/src/plugins/rain/filters.js +0 -53
  45. package/src/plugins/rain/filters.js.map +0 -1
  46. package/src/plugins/rain/helpers.d.ts +0 -9
  47. package/src/plugins/rain/helpers.js +0 -66
  48. package/src/plugins/rain/helpers.js.map +0 -1
  49. package/src/plugins/rain/loansFetcher.js +0 -139
  50. package/src/plugins/rain/loansFetcher.js.map +0 -1
  51. package/src/plugins/rain/structs/loan.d.ts +0 -86
  52. package/src/plugins/rain/structs/loan.js +0 -86
  53. package/src/plugins/rain/structs/loan.js.map +0 -1
  54. package/src/plugins/rain/structs/pool.d.ts +0 -79
  55. package/src/plugins/rain/structs/pool.js +0 -76
  56. package/src/plugins/rain/structs/pool.js.map +0 -1
  57. /package/src/plugins/rain/{loansFetcher.d.ts → banksFetcher.d.ts} +0 -0
@@ -0,0 +1,425 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.nftLoanStruct = exports.switchboardOracleStruct = exports.switchboardOnDemandOracleStruct = exports.sharedBankStruct = exports.requestLoanStruct = exports.requestDeletedEventStruct = exports.pythV2OracleStruct = exports.poolDeletedEventStruct = exports.marginfiDelegatorStruct = exports.marginSwapLoanStruct = exports.limitConfigStruct = exports.emptyOracleStruct = exports.emptyDelegatorStruct = exports.curveAprConfigStruct = exports.curveAprStruct = exports.currencyDeletedEventStruct = exports.currencyConfigFakeStruct = exports.currencyConfigStruct = exports.conditionConfigStruct = exports.classicLoanStruct = exports.vaultStruct = exports.userStatsStruct = exports.requestStruct = exports.quoteStruct = exports.poolStruct = exports.defiLoanStruct = exports.currencyStruct = exports.configStruct = exports.bankStruct = exports.SetPoolConfig = exports.SetCurrencyConfig = exports.SetConfig = exports.QuoteType = exports.QuoteStep = exports.PoolStatus = exports.OracleType = exports.OracleConfig = exports.LoanStatus = exports.LoanKindConfig = exports.LoanKind = exports.DelegatorType = exports.CurveType = exports.CurveConfig = exports.BankType = exports.personalBankStruct = exports.poolConditionStruct = exports.delegatorStruct = exports.poolCurrencyStruct = exports.poolLimitStruct = exports.poolLiquidationStruct = void 0;
4
+ const beet_solana_1 = require("@metaplex-foundation/beet-solana");
5
+ const beet_1 = require("@metaplex-foundation/beet");
6
+ const solana_1 = require("../../utils/solana");
7
+ exports.poolLiquidationStruct = new beet_1.BeetStruct([
8
+ ['loanLiquidation', beet_1.u16],
9
+ ['mortgageLiquidation', beet_1.u16],
10
+ ['isAutoSellEnabled', beet_1.u8],
11
+ ['padding1', beet_1.u8],
12
+ ['padding2', beet_1.u16],
13
+ ], (args) => args);
14
+ exports.poolLimitStruct = new beet_1.FixableBeetStruct([
15
+ ['minDuration', beet_1.u32],
16
+ ['maxDuration', beet_1.u32],
17
+ ['maxAmountUsd', beet_1.u32],
18
+ ['minAmountUsd', beet_1.u32],
19
+ ['reserved', (0, beet_1.uniformFixedSizeArray)(solana_1.u64, 10)],
20
+ ], (args) => args);
21
+ exports.poolCurrencyStruct = new beet_1.BeetStruct([
22
+ ['currency', beet_1.u32],
23
+ ['currencyLtv', beet_1.u16],
24
+ ['exposure', beet_1.u16],
25
+ ['borrowedAmount', solana_1.u64],
26
+ ], (args) => args);
27
+ exports.delegatorStruct = new beet_1.BeetStruct([
28
+ ['delegatorType', beet_1.u8],
29
+ ['delegatedAmount', solana_1.u64],
30
+ ], (args) => args);
31
+ exports.poolConditionStruct = new beet_1.FixableBeetStruct([
32
+ ['minAge', solana_1.u64],
33
+ ['minLoan', solana_1.u64],
34
+ ['minVolume', solana_1.u64],
35
+ ['unused', solana_1.u64],
36
+ ['liquidationThreshold', beet_1.u16],
37
+ ['isEnabled', beet_1.u8],
38
+ ['padding1', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 5)],
39
+ ['whitelist', beet_solana_1.publicKey],
40
+ ['reserved', (0, beet_1.uniformFixedSizeArray)(solana_1.u64, 10)],
41
+ ], (args) => args);
42
+ exports.personalBankStruct = new beet_1.FixableBeetStruct([
43
+ ['reserved', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 32)],
44
+ ['reserved1', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 32)],
45
+ ['reserved2', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 16)],
46
+ ], (args) => args);
47
+ var BankType;
48
+ (function (BankType) {
49
+ BankType[BankType["Personal"] = 0] = "Personal";
50
+ BankType[BankType["Shared"] = 1] = "Shared";
51
+ })(BankType || (exports.BankType = BankType = {}));
52
+ var CurveConfig;
53
+ (function (CurveConfig) {
54
+ CurveConfig[CurveConfig["Apr"] = 0] = "Apr";
55
+ })(CurveConfig || (exports.CurveConfig = CurveConfig = {}));
56
+ var CurveType;
57
+ (function (CurveType) {
58
+ CurveType[CurveType["Apr"] = 0] = "Apr";
59
+ })(CurveType || (exports.CurveType = CurveType = {}));
60
+ var DelegatorType;
61
+ (function (DelegatorType) {
62
+ DelegatorType[DelegatorType["Empty"] = 0] = "Empty";
63
+ DelegatorType[DelegatorType["Marginfi"] = 1] = "Marginfi";
64
+ })(DelegatorType || (exports.DelegatorType = DelegatorType = {}));
65
+ var LoanKind;
66
+ (function (LoanKind) {
67
+ LoanKind[LoanKind["Classic"] = 0] = "Classic";
68
+ LoanKind[LoanKind["MarginSwap"] = 1] = "MarginSwap";
69
+ LoanKind[LoanKind["Request"] = 2] = "Request";
70
+ })(LoanKind || (exports.LoanKind = LoanKind = {}));
71
+ var LoanKindConfig;
72
+ (function (LoanKindConfig) {
73
+ LoanKindConfig[LoanKindConfig["Classic"] = 0] = "Classic";
74
+ LoanKindConfig[LoanKindConfig["MarginSwap"] = 1] = "MarginSwap";
75
+ })(LoanKindConfig || (exports.LoanKindConfig = LoanKindConfig = {}));
76
+ var LoanStatus;
77
+ (function (LoanStatus) {
78
+ LoanStatus[LoanStatus["Ongoing"] = 0] = "Ongoing";
79
+ LoanStatus[LoanStatus["Repaid"] = 1] = "Repaid";
80
+ LoanStatus[LoanStatus["Liquidated"] = 2] = "Liquidated";
81
+ LoanStatus[LoanStatus["Sold"] = 3] = "Sold";
82
+ })(LoanStatus || (exports.LoanStatus = LoanStatus = {}));
83
+ var OracleConfig;
84
+ (function (OracleConfig) {
85
+ OracleConfig[OracleConfig["None"] = 0] = "None";
86
+ OracleConfig[OracleConfig["Pyth"] = 1] = "Pyth";
87
+ OracleConfig[OracleConfig["Switchboard"] = 2] = "Switchboard";
88
+ OracleConfig[OracleConfig["SwitchboardOnDemand"] = 3] = "SwitchboardOnDemand";
89
+ })(OracleConfig || (exports.OracleConfig = OracleConfig = {}));
90
+ var OracleType;
91
+ (function (OracleType) {
92
+ OracleType[OracleType["Empty"] = 0] = "Empty";
93
+ OracleType[OracleType["Pyth"] = 1] = "Pyth";
94
+ OracleType[OracleType["Switchboard"] = 2] = "Switchboard";
95
+ OracleType[OracleType["SwitchboardOnDemand"] = 3] = "SwitchboardOnDemand";
96
+ })(OracleType || (exports.OracleType = OracleType = {}));
97
+ var PoolStatus;
98
+ (function (PoolStatus) {
99
+ PoolStatus[PoolStatus["Enabled"] = 0] = "Enabled";
100
+ PoolStatus[PoolStatus["Disabled"] = 1] = "Disabled";
101
+ })(PoolStatus || (exports.PoolStatus = PoolStatus = {}));
102
+ var QuoteStep;
103
+ (function (QuoteStep) {
104
+ QuoteStep[QuoteStep["Open"] = 0] = "Open";
105
+ QuoteStep[QuoteStep["Start"] = 1] = "Start";
106
+ QuoteStep[QuoteStep["End"] = 2] = "End";
107
+ QuoteStep[QuoteStep["Close"] = 3] = "Close";
108
+ })(QuoteStep || (exports.QuoteStep = QuoteStep = {}));
109
+ var QuoteType;
110
+ (function (QuoteType) {
111
+ QuoteType[QuoteType["None"] = 0] = "None";
112
+ QuoteType[QuoteType["MarginSwap"] = 1] = "MarginSwap";
113
+ QuoteType[QuoteType["InstantSell"] = 2] = "InstantSell";
114
+ QuoteType[QuoteType["Liquidate"] = 3] = "Liquidate";
115
+ })(QuoteType || (exports.QuoteType = QuoteType = {}));
116
+ var SetConfig;
117
+ (function (SetConfig) {
118
+ SetConfig[SetConfig["UpdateMinDuration"] = 0] = "UpdateMinDuration";
119
+ SetConfig[SetConfig["UpdateMaxDuration"] = 1] = "UpdateMaxDuration";
120
+ SetConfig[SetConfig["UpdateMaxAmountUsd"] = 2] = "UpdateMaxAmountUsd";
121
+ SetConfig[SetConfig["UpdateMinAmountUsd"] = 3] = "UpdateMinAmountUsd";
122
+ })(SetConfig || (exports.SetConfig = SetConfig = {}));
123
+ var SetCurrencyConfig;
124
+ (function (SetCurrencyConfig) {
125
+ SetCurrencyConfig[SetCurrencyConfig["UpdateIsLocked"] = 0] = "UpdateIsLocked";
126
+ SetCurrencyConfig[SetCurrencyConfig["UpdateOracle"] = 1] = "UpdateOracle";
127
+ })(SetCurrencyConfig || (exports.SetCurrencyConfig = SetCurrencyConfig = {}));
128
+ var SetPoolConfig;
129
+ (function (SetPoolConfig) {
130
+ SetPoolConfig[SetPoolConfig["EnablePool"] = 0] = "EnablePool";
131
+ SetPoolConfig[SetPoolConfig["DisablePool"] = 1] = "DisablePool";
132
+ SetPoolConfig[SetPoolConfig["EnableAutoSell"] = 2] = "EnableAutoSell";
133
+ SetPoolConfig[SetPoolConfig["DisableAutoSell"] = 3] = "DisableAutoSell";
134
+ SetPoolConfig[SetPoolConfig["UpdateCurve"] = 4] = "UpdateCurve";
135
+ SetPoolConfig[SetPoolConfig["UpdateCurrencies"] = 5] = "UpdateCurrencies";
136
+ SetPoolConfig[SetPoolConfig["UpdateConditions"] = 6] = "UpdateConditions";
137
+ SetPoolConfig[SetPoolConfig["UpdateLimits"] = 7] = "UpdateLimits";
138
+ })(SetPoolConfig || (exports.SetPoolConfig = SetPoolConfig = {}));
139
+ exports.bankStruct = new beet_1.FixableBeetStruct([
140
+ ['accountDiscriminator', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 8)],
141
+ ['owner', beet_solana_1.publicKey],
142
+ ['mint', beet_solana_1.publicKey],
143
+ ['vault', beet_solana_1.publicKey],
144
+ ['authority', beet_solana_1.publicKey],
145
+ ['bankType', beet_1.u8],
146
+ ['bankTypeDetail', exports.personalBankStruct],
147
+ ['totalLiquidity', solana_1.u64],
148
+ ['availableLiquidity', solana_1.u64],
149
+ ['delegatedLiquidity', solana_1.u64],
150
+ ['cooldownLiquidity', solana_1.u64],
151
+ ['cooldownPeriod', solana_1.u64],
152
+ ['delegators', (0, beet_1.uniformFixedSizeArray)(exports.delegatorStruct, 8)],
153
+ ['createdAt', solana_1.u64],
154
+ ['depositedAt', solana_1.u64],
155
+ ['withdrawnAt', solana_1.u64],
156
+ ['borrowedAt', solana_1.u64],
157
+ ['repaidAt', solana_1.u64],
158
+ ['frozenUntil', solana_1.u64],
159
+ ['reserved', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 512)],
160
+ ], (args) => args);
161
+ exports.configStruct = new beet_1.FixableBeetStruct([
162
+ ['accountDiscriminator', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 8)],
163
+ ['minDuration', beet_1.u32],
164
+ ['maxDuration', beet_1.u32],
165
+ ['maxAmountUsd', beet_1.u32],
166
+ ['minAmountUsd', beet_1.u32],
167
+ ['admins', (0, beet_1.uniformFixedSizeArray)(beet_solana_1.publicKey, 10)],
168
+ ['managers', (0, beet_1.uniformFixedSizeArray)(beet_solana_1.publicKey, 10)],
169
+ ['reserved', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 512)],
170
+ ], (args) => args);
171
+ exports.currencyStruct = new beet_1.FixableBeetStruct([
172
+ ['accountDiscriminator', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 8)],
173
+ ['currencyId', beet_1.u32],
174
+ ['padding1', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 4)],
175
+ ['mint', beet_solana_1.publicKey],
176
+ ['tokenProgram', beet_solana_1.publicKey],
177
+ ['isLocked', beet_1.u8],
178
+ ['decimals', beet_1.u8],
179
+ ['padding2', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 6)],
180
+ ['oracles', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 5)],
181
+ ['padding3', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 3)],
182
+ ['currentLoan', solana_1.u64],
183
+ ['createdAt', solana_1.u64],
184
+ ['updatedAt', solana_1.u64],
185
+ ['reserved', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 128)],
186
+ ], (args) => args);
187
+ exports.defiLoanStruct = new beet_1.FixableBeetStruct([
188
+ ['accountDiscriminator', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 8)],
189
+ ['kind', beet_1.u8],
190
+ ['kind', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 64)],
191
+ ['status', beet_1.u8],
192
+ ['isCustom', beet_1.u8],
193
+ ['padding1', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 6)],
194
+ ['borrower', beet_solana_1.publicKey],
195
+ ['bank', beet_solana_1.publicKey],
196
+ ['pool', beet_solana_1.publicKey],
197
+ ['collateral', beet_solana_1.publicKey],
198
+ ['principal', beet_solana_1.publicKey],
199
+ ['referrer', beet_solana_1.publicKey],
200
+ ['interest', solana_1.u64],
201
+ ['borrowedAmount', solana_1.u64],
202
+ ['collateralAmount', solana_1.u64],
203
+ ['duration', beet_1.u32],
204
+ ['currency', beet_1.u32],
205
+ ['liquidation', beet_1.u16],
206
+ ['padding2', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 6)],
207
+ ['createdAt', solana_1.u64],
208
+ ['expiredAt', solana_1.u64],
209
+ ['repaidAt', solana_1.u64],
210
+ ['liquidatedAt', solana_1.u64],
211
+ ['soldAmount', solana_1.u64],
212
+ ['reserved', (0, beet_1.uniformFixedSizeArray)(solana_1.u64, 9)],
213
+ ], (args) => args);
214
+ exports.poolStruct = new beet_1.FixableBeetStruct([
215
+ ['accountDiscriminator', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 8)],
216
+ ['owner', beet_solana_1.publicKey],
217
+ ['seed', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 32)],
218
+ ['status', beet_1.u8],
219
+ ['bump', beet_1.u8],
220
+ ['padding1', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 6)],
221
+ ['currentLoan', solana_1.u64],
222
+ ['curve', beet_1.u8],
223
+ ['conditions', exports.poolConditionStruct],
224
+ ['liquidation', exports.poolLiquidationStruct],
225
+ ['limits', exports.poolLimitStruct],
226
+ ['totalLiquidations', solana_1.u64],
227
+ ['totalLoans', solana_1.u64],
228
+ ['totalInterest', solana_1.u64],
229
+ ['createdAt', solana_1.u64],
230
+ ['updatedAt', solana_1.u64],
231
+ ['currenciesUpdatedAt', solana_1.u64],
232
+ ['lastLoanAt', solana_1.u64],
233
+ ['reserved', (0, beet_1.uniformFixedSizeArray)(solana_1.u64, 14)],
234
+ ['currencies', (0, beet_1.uniformFixedSizeArray)(exports.poolCurrencyStruct, 64)],
235
+ ], (args) => args);
236
+ exports.quoteStruct = new beet_1.FixableBeetStruct([
237
+ ['accountDiscriminator', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 8)],
238
+ ['quoteType', beet_1.u8],
239
+ ['quoteStep', beet_1.u8],
240
+ ['padding1', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 6)],
241
+ ['quote', beet_solana_1.publicKey],
242
+ ['payer', beet_solana_1.publicKey],
243
+ ['borrower', beet_solana_1.publicKey],
244
+ ['loan', beet_solana_1.publicKey],
245
+ ['inVault', beet_solana_1.publicKey],
246
+ ['outVault', beet_solana_1.publicKey],
247
+ ['borrowedAmount', solana_1.u64],
248
+ ['inAmountJup', solana_1.u64],
249
+ ['minSwappedAmount', solana_1.u64],
250
+ ['tempValue', solana_1.u64],
251
+ ['dataLength', solana_1.u64],
252
+ ['jupVec', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 512)],
253
+ ['slot', solana_1.u64],
254
+ ['createdAt', solana_1.u64],
255
+ ['bump', beet_1.u8],
256
+ ['padding2', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 7)],
257
+ ], (args) => args);
258
+ exports.requestStruct = new beet_1.FixableBeetStruct([
259
+ ['accountDiscriminator', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 8)],
260
+ ['payer', beet_solana_1.publicKey],
261
+ ['borrower', beet_solana_1.publicKey],
262
+ ['request', beet_solana_1.publicKey],
263
+ ['collateral', beet_solana_1.publicKey],
264
+ ['principal', beet_solana_1.publicKey],
265
+ ['requestVault', beet_solana_1.publicKey],
266
+ ['collateralAmount', solana_1.u64],
267
+ ['principalAmount', solana_1.u64],
268
+ ['interest', solana_1.u64],
269
+ ['duration', beet_1.u32],
270
+ ['padding1', beet_1.u16],
271
+ ['padding2', beet_1.u8],
272
+ ['bump', beet_1.u8],
273
+ ['createdAt', solana_1.u64],
274
+ ['reserved', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 128)],
275
+ ], (args) => args);
276
+ exports.userStatsStruct = new beet_1.FixableBeetStruct([
277
+ ['accountDiscriminator', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 8)],
278
+ ['owner', beet_solana_1.publicKey],
279
+ ['totalLoan', solana_1.u64],
280
+ ['totalLiquidation', solana_1.u64],
281
+ ['currentLoan', solana_1.u64],
282
+ ['totalVolume', solana_1.u64],
283
+ ['points', solana_1.u64],
284
+ ['creditScore', solana_1.u64],
285
+ ['referrer', beet_solana_1.publicKey],
286
+ ['createdAt', solana_1.u64],
287
+ ['bump', beet_1.u8],
288
+ ['padding1', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 7)],
289
+ ['reserved', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 128)],
290
+ ], (args) => args);
291
+ exports.vaultStruct = new beet_1.FixableBeetStruct([
292
+ ['accountDiscriminator', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 8)],
293
+ ['mint', beet_solana_1.publicKey],
294
+ ['tokenAccount', beet_solana_1.publicKey],
295
+ ['tokenProgram', beet_solana_1.publicKey],
296
+ ['oracles', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 5)],
297
+ ['padding1', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 3)],
298
+ ['ixGate', solana_1.u64],
299
+ ['vaultBump', beet_1.u8],
300
+ ['tokenAccountBump', beet_1.u8],
301
+ ['decimals', beet_1.u8],
302
+ ['padding2', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 13)],
303
+ ['deposited', solana_1.u64],
304
+ ['maxDeposit', solana_1.u64],
305
+ ['withdrawalWindow', solana_1.u64],
306
+ ['withdrawalWindowLimit', solana_1.u64],
307
+ ['withdrawalWindowStart', solana_1.u64],
308
+ ['withdrawalWindowAccumulator', solana_1.u64],
309
+ ['createdAt', solana_1.u64],
310
+ ['updatedAt', solana_1.u64],
311
+ ['depositedAt', solana_1.u64],
312
+ ['withdrawnAt', solana_1.u64],
313
+ ['reserved', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 512)],
314
+ ], (args) => args);
315
+ exports.classicLoanStruct = new beet_1.FixableBeetStruct([['reserved', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 64)]], (args) => args);
316
+ exports.conditionConfigStruct = new beet_1.BeetStruct([
317
+ ['minAge', solana_1.u64],
318
+ ['minLoan', solana_1.u64],
319
+ ['minVolume', solana_1.u64],
320
+ ['liquidationThreshold', beet_1.u16],
321
+ ['isEnabled', beet_1.u8],
322
+ ['whitelist', beet_solana_1.publicKey],
323
+ ], (args) => args);
324
+ exports.currencyConfigStruct = new beet_1.BeetStruct([
325
+ ['currency', beet_1.u32],
326
+ ['currencyLtv', beet_1.u16],
327
+ ['exposure', beet_1.u16],
328
+ ], (args) => args);
329
+ exports.currencyConfigFakeStruct = new beet_1.BeetStruct([
330
+ ['currency', beet_1.u32],
331
+ ['currencyLtv', beet_1.u16],
332
+ ['exposure', beet_1.u16],
333
+ ['borrowedAmount', solana_1.u64],
334
+ ], (args) => args);
335
+ exports.currencyDeletedEventStruct = new beet_1.BeetStruct([['currency', beet_solana_1.publicKey]], (args) => args);
336
+ exports.curveAprStruct = new beet_1.FixableBeetStruct([
337
+ ['apr', beet_1.u32],
338
+ ['padding2', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 4)],
339
+ ['padding1', (0, beet_1.uniformFixedSizeArray)(solana_1.u64, 9)],
340
+ ], (args) => args);
341
+ exports.curveAprConfigStruct = new beet_1.BeetStruct([['apr', beet_1.u32]], (args) => args);
342
+ exports.emptyDelegatorStruct = new beet_1.FixableBeetStruct([
343
+ ['reserved', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 32)],
344
+ ['reserved1', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 32)],
345
+ ['reserved2', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 32)],
346
+ ['reserved3', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 24)],
347
+ ], (args) => args);
348
+ exports.emptyOracleStruct = new beet_1.FixableBeetStruct([
349
+ ['reserved', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 32)],
350
+ ['reserved1', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 32)],
351
+ ['reserved2', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 32)],
352
+ ['reserved3', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 24)],
353
+ ], (args) => args);
354
+ exports.limitConfigStruct = new beet_1.BeetStruct([
355
+ ['minDuration', beet_1.u32],
356
+ ['maxDuration', beet_1.u32],
357
+ ['maxAmountUsd', beet_1.u32],
358
+ ['minAmountUsd', beet_1.u32],
359
+ ], (args) => args);
360
+ exports.marginSwapLoanStruct = new beet_1.FixableBeetStruct([
361
+ ['downPayment', solana_1.u64],
362
+ ['reserved', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 32)],
363
+ ['reserved1', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 24)],
364
+ ], (args) => args);
365
+ exports.marginfiDelegatorStruct = new beet_1.FixableBeetStruct([
366
+ ['marginfiBank', beet_solana_1.publicKey],
367
+ ['reserved1', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 32)],
368
+ ['reserved2', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 32)],
369
+ ['reserved3', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 24)],
370
+ ], (args) => args);
371
+ exports.poolDeletedEventStruct = new beet_1.BeetStruct([['pool', beet_solana_1.publicKey]], (args) => args);
372
+ exports.pythV2OracleStruct = new beet_1.FixableBeetStruct([
373
+ ['feedId', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 32)],
374
+ ['reserved', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 32)],
375
+ ['reserved1', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 32)],
376
+ ['reserved2', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 24)],
377
+ ], (args) => args);
378
+ exports.requestDeletedEventStruct = new beet_1.BeetStruct([['request', beet_solana_1.publicKey]], (args) => args);
379
+ exports.requestLoanStruct = new beet_1.FixableBeetStruct([['reserved', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 64)]], (args) => args);
380
+ exports.sharedBankStruct = new beet_1.FixableBeetStruct([
381
+ ['lpMint', beet_solana_1.publicKey],
382
+ ['lpRate', solana_1.u128],
383
+ ['lpSupply', solana_1.u64],
384
+ ['padding1', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 8)],
385
+ ['lpDecimals', beet_1.u8],
386
+ ['padding2', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 15)],
387
+ ], (args) => args);
388
+ exports.switchboardOnDemandOracleStruct = new beet_1.FixableBeetStruct([
389
+ ['account', beet_solana_1.publicKey],
390
+ ['reserved', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 32)],
391
+ ['reserved1', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 32)],
392
+ ['reserved2', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 24)],
393
+ ], (args) => args);
394
+ exports.switchboardOracleStruct = new beet_1.FixableBeetStruct([
395
+ ['account', beet_solana_1.publicKey],
396
+ ['reserved', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 32)],
397
+ ['reserved1', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 32)],
398
+ ['reserved2', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 24)],
399
+ ], (args) => args);
400
+ exports.nftLoanStruct = new beet_1.FixableBeetStruct([
401
+ ['accountDiscriminator', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 8)],
402
+ ['kind', beet_1.u8],
403
+ ['kind', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 64)],
404
+ ['status', beet_1.u8],
405
+ ['isCustom', beet_1.u8],
406
+ ['padding1', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 6)],
407
+ ['borrower', beet_solana_1.publicKey],
408
+ ['bank', beet_solana_1.publicKey],
409
+ ['pool', beet_solana_1.publicKey],
410
+ ['collateral', beet_solana_1.publicKey],
411
+ ['principal', beet_solana_1.publicKey],
412
+ ['referrer', beet_solana_1.publicKey],
413
+ ['interest', solana_1.u64],
414
+ ['borrowedAmount', solana_1.u64],
415
+ ['duration', beet_1.u32],
416
+ ['collection', beet_1.u32],
417
+ ['liquidation', beet_1.u16],
418
+ ['padding2', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 6)],
419
+ ['createdAt', solana_1.u64],
420
+ ['expiredAt', solana_1.u64],
421
+ ['repaidAt', solana_1.u64],
422
+ ['liquidatedAt', solana_1.u64],
423
+ ['reserved', (0, beet_1.uniformFixedSizeArray)(solana_1.u64, 10)],
424
+ ], (args) => args);
425
+ //# sourceMappingURL=structs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"structs.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/rain/structs.ts"],"names":[],"mappings":";;;AAAA,kEAA6D;AAE7D,oDAOmC;AAEnC,+CAA+C;AAElC,QAAA,qBAAqB,GAAG,IAAI,iBAAU,CACjD;IACE,CAAC,iBAAiB,EAAE,UAAG,CAAC;IACxB,CAAC,qBAAqB,EAAE,UAAG,CAAC;IAC5B,CAAC,mBAAmB,EAAE,SAAE,CAAC;IACzB,CAAC,UAAU,EAAE,SAAE,CAAC;IAChB,CAAC,UAAU,EAAE,UAAG,CAAC;CAClB,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAuB,CAClC,CAAC;AACW,QAAA,eAAe,GAAG,IAAI,wBAAiB,CAClD;IACE,CAAC,aAAa,EAAE,UAAG,CAAC;IACpB,CAAC,aAAa,EAAE,UAAG,CAAC;IACpB,CAAC,cAAc,EAAE,UAAG,CAAC;IACrB,CAAC,cAAc,EAAE,UAAG,CAAC;IACrB,CAAC,UAAU,EAAE,IAAA,4BAAqB,EAAC,YAAG,EAAE,EAAE,CAAC,CAAC;CAC7C,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAiB,CAC5B,CAAC;AAEW,QAAA,kBAAkB,GAAG,IAAI,iBAAU,CAC9C;IACE,CAAC,UAAU,EAAE,UAAG,CAAC;IACjB,CAAC,aAAa,EAAE,UAAG,CAAC;IACpB,CAAC,UAAU,EAAE,UAAG,CAAC;IACjB,CAAC,gBAAgB,EAAE,YAAG,CAAC;CACxB,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAoB,CAC/B,CAAC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AAS,CAAC;IACvB,CAAC,UAAU,EAAE,YAAG,CAAC;IACjB,CAAC,gBAAgB,EAAE,YAAG,CAAC;IACvB,CAAC,UAAU,EAAE,UAAG,CAAC;IACjB,CAAC,YAAY,EAAE,UAAG,CAAC;IACnB,CAAC,aAAa,EAAE,UAAG,CAAC;IACpB,CAAC,UAAU,EAAE,IAAA,4BAAqB,EAAC,SAAE,EAAE,CAAC,CAAC,CAAC;IAC1C,CAAC,WAAW,EAAE,YAAG,CAAC;IAClB,CAAC,WAAW,EAAE,YAAG,CAAC;IAClB,CAAC,UAAU,EAAE,YAAG,CAAC;IACjB,CAAC,cAAc,EAAE,YAAG,CAAC;IACrB,CAAC,UAAU,EAAE,IAAA,4BAAqB,EAAC,YAAG,EAAE,EAAE,CAAC,CAAC;CAC7C,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAe,CAC1B,CAAC"}
@@ -1,157 +1,31 @@
1
- import { PoolStatus } from './structs/pool';
2
- export type PoolResponse = {
3
- pubkey: string;
4
- pool: Pool;
5
- };
6
1
  export type CollectionResponse = {
7
2
  collections: Collection[];
8
3
  };
9
- export type Pool = {
10
- owner: string;
11
- currency: string;
12
- oraclePoolUsd: string;
13
- oracleSolUsd: string;
14
- status: PoolStatus;
15
- isCompounded: boolean;
16
- isShared: boolean;
17
- totalAmount: string;
18
- borrowedAmount: string;
19
- availableAmount: string;
20
- usableAmount: string;
21
- loanCurve: Curve;
22
- mortgageCurve: Curve;
23
- isMortgageEnabled: boolean;
24
- nftLocked: string;
25
- totalLiquidations: string;
26
- totalLoans: string;
27
- totalMortgages: string;
28
- totalInterest: string;
29
- depositedAt: string;
30
- createdAt: string;
31
- updatedAt: string;
32
- collectionsUpdatedAt: string;
33
- lastLoanAt: string;
34
- lastMortgageAt: string;
35
- conditions: PoolCondition;
36
- liquidation: PoolLiquidation;
37
- whitelist: string;
38
- padding: string[];
39
- collections: PoolCollection[];
40
- };
41
- export type PoolCollection = {
42
- collection: string;
43
- collectionLtv: number;
44
- exposure: number;
45
- amountUsed: string;
46
- };
47
- export type PoolLiquidation = {
48
- loanLiquidation: number;
49
- mortgageLiquidation: number;
50
- isAutoSellEnabled: boolean;
51
- percentageMaxLoss: number;
52
- };
53
- export type PoolCondition = {
54
- isEnabled: boolean;
55
- minAge: string;
56
- minLoan: string;
57
- minVolume: number;
58
- liquidationThreshold: number;
59
- padding1: number;
60
- padding2: number;
61
- padding3: number;
62
- };
63
- export type Curve = {
64
- baseInterest: number;
65
- interestRate: number;
66
- curveRate: number;
67
- curveRateDay: number;
68
- maxDuration: string;
69
- maxAmount: string;
70
- };
71
4
  export type Collection = {
72
5
  collectionId: number;
73
- pubkey: string;
74
- slug: string;
75
6
  name: string;
76
- thumbnail: string;
77
- banner: string;
78
- nftLocked: string;
79
- supply: string;
7
+ whitelistType: {
8
+ __t: 'CreatorWhitelist' | 'CollectionWhitelist';
9
+ pubkey: string;
10
+ };
80
11
  floorPrice: string;
12
+ supply: string;
13
+ currentLoan: string;
14
+ maxLoan: string;
81
15
  isLocked: boolean;
82
- offChainData: {
16
+ createdAt: string;
17
+ updatedAt: string;
18
+ pubkey: string;
19
+ metadata: {
20
+ tensorSlug: string;
21
+ collectionName: string;
83
22
  collectionNameMe: string;
84
23
  collectionNameTensor: string;
85
- collectionName: string;
86
- image: string;
87
- collectionSolanart: string;
24
+ banner: string;
25
+ thumbnail: string;
26
+ lookupTable: string;
88
27
  isMortgageEnabled: boolean;
89
- isPnft: boolean;
90
- isClaimable: boolean;
91
- collectionHyperspace: string;
92
- sharkyApy: number;
93
- _id: string;
28
+ url: string;
29
+ magicEdenSlug: string;
94
30
  };
95
- createdAt: string;
96
- updatedAt: string;
97
- deletedAt: string;
98
- version: number;
99
- mintIn: string;
100
- isDefi: boolean;
101
- };
102
- export type PickedCollection = Pick<Collection, 'collectionId' | 'name' | 'floorPrice'>;
103
- export type LoansResponse = {
104
- user: string;
105
- platform: string;
106
- limit: number;
107
- offset: number;
108
- isAdmin: number;
109
- totalCount: number;
110
- ongoingCount: number;
111
- loans: Loan[];
112
- };
113
- export type Loan = {
114
- pubkey: string;
115
- kind: string;
116
- status: string;
117
- borrower: string;
118
- lender: string;
119
- pool: string;
120
- mint: string;
121
- currency: string;
122
- isCustom: boolean;
123
- isFrozen: boolean;
124
- isCompressedLoan: boolean;
125
- isDefi: boolean;
126
- collateralAmount: string;
127
- collateralDecimals: number;
128
- price: string;
129
- interest: string;
130
- amount: string;
131
- duration: string;
132
- collectionId: number;
133
- liquidation: number;
134
- marketplace: string;
135
- sale: Sale;
136
- listing: Listing;
137
- createdAt: Date;
138
- expiredAt: Date;
139
- repaidAt: Date;
140
- soldAt: Date;
141
- liquidatedAt: Date;
142
- updatedAt: Date;
143
- deletedAt: null;
144
- version: number;
145
- amountUsd: string;
146
- };
147
- export type Listing = {
148
- isListed: boolean;
149
- price: string;
150
- _id: string;
151
- };
152
- export type Sale = {
153
- isForSale: boolean;
154
- salePrice: string;
155
- currency: string;
156
- _id: string;
157
31
  };