@sonarwatch/portfolio-plugins 0.14.1 → 0.14.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. package/CHANGELOG.md +1595 -1574
  2. package/README.md +3 -3
  3. package/package.json +2 -2
  4. package/src/index.js +4 -0
  5. package/src/index.js.map +1 -1
  6. package/src/plugins/balancer/helpers/pools.js +21 -21
  7. package/src/plugins/debridge/airdropFetcher.js +6 -0
  8. package/src/plugins/debridge/airdropFetcher.js.map +1 -1
  9. package/src/plugins/debridge/constants.d.ts +3 -1
  10. package/src/plugins/debridge/constants.js +4 -2
  11. package/src/plugins/debridge/constants.js.map +1 -1
  12. package/src/plugins/debridge/dlmmVaultsFetcher.d.ts +3 -0
  13. package/src/plugins/debridge/dlmmVaultsFetcher.js +158 -0
  14. package/src/plugins/debridge/dlmmVaultsFetcher.js.map +1 -0
  15. package/src/plugins/debridge/dlmmVaultsJob.d.ts +3 -0
  16. package/src/plugins/debridge/dlmmVaultsJob.js +42 -0
  17. package/src/plugins/debridge/dlmmVaultsJob.js.map +1 -0
  18. package/src/plugins/debridge/index.js +7 -2
  19. package/src/plugins/debridge/index.js.map +1 -1
  20. package/src/plugins/deepbook/airdropFetcher.js +36 -14
  21. package/src/plugins/deepbook/airdropFetcher.js.map +1 -1
  22. package/src/plugins/jupiter/exchange/custodiesJob.js +2 -2
  23. package/src/plugins/jupiter/exchange/custodiesJob.js.map +1 -1
  24. package/src/plugins/jupiter/exchange/filters.d.ts +1 -0
  25. package/src/plugins/jupiter/exchange/filters.js +10 -1
  26. package/src/plugins/jupiter/exchange/filters.js.map +1 -1
  27. package/src/plugins/jupiter/launchpad/constants.js +1 -1
  28. package/src/plugins/kamino/{s2AirdropFetcher.js → s2AirdropFetcher.old.js} +1 -1
  29. package/src/plugins/kamino/s2AirdropFetcher.old.js.map +1 -0
  30. package/src/plugins/native-stake/solana/constants.js +0 -1
  31. package/src/plugins/native-stake/solana/constants.js.map +1 -1
  32. package/src/plugins/native-stake/solana/solanaFetcher.js +11 -7
  33. package/src/plugins/native-stake/solana/solanaFetcher.js.map +1 -1
  34. package/src/plugins/nxfinance/positionsFetcher.js +1 -1
  35. package/src/plugins/nxfinance/positionsFetcher.js.map +1 -1
  36. package/src/plugins/scallop/cnyAirdropFetcher.js +1 -1
  37. package/src/plugins/scallop/cnyAirdropFetcher.js.map +1 -1
  38. package/src/plugins/scallop/constants.d.ts +9 -16
  39. package/src/plugins/scallop/constants.js +28 -44
  40. package/src/plugins/scallop/constants.js.map +1 -1
  41. package/src/plugins/scallop/index.js +7 -1
  42. package/src/plugins/scallop/index.js.map +1 -1
  43. package/src/plugins/scallop/lendingsFetcher.js +149 -79
  44. package/src/plugins/scallop/lendingsFetcher.js.map +1 -1
  45. package/src/plugins/scallop/marketJob.js.map +1 -1
  46. package/src/plugins/scallop/obligationsFetcher.js +2 -2
  47. package/src/plugins/scallop/obligationsFetcher.js.map +1 -1
  48. package/src/plugins/scallop/poolsJob.js +14 -5
  49. package/src/plugins/scallop/poolsJob.js.map +1 -1
  50. package/src/plugins/scallop/sCoinJob.js +2 -1
  51. package/src/plugins/scallop/sCoinJob.js.map +1 -1
  52. package/src/plugins/scallop/types/address.d.ts +1 -0
  53. package/src/plugins/scallop/types/basic.d.ts +4 -0
  54. package/src/plugins/scallop/types/coin.d.ts +18 -8
  55. package/src/plugins/scallop/types/coin.js +50 -2
  56. package/src/plugins/scallop/types/coin.js.map +1 -1
  57. package/src/plugins/scallop/types/data.d.ts +7 -5
  58. package/src/plugins/scallop/types/index.d.ts +2 -0
  59. package/src/plugins/scallop/types/index.js +2 -0
  60. package/src/plugins/scallop/types/index.js.map +1 -1
  61. package/src/plugins/scallop/types/spool.d.ts +10 -0
  62. package/src/plugins/scallop/types/spool.js +3 -0
  63. package/src/plugins/scallop/types/spool.js.map +1 -0
  64. package/src/plugins/scallop/types/sui.d.ts +2 -0
  65. package/src/plugins/scallop/types/sui.js +3 -0
  66. package/src/plugins/scallop/types/sui.js.map +1 -0
  67. package/src/plugins/scallop/types/vesca.d.ts +9 -12
  68. package/src/plugins/scallop/veScaFetcher.js +1 -1
  69. package/src/plugins/scallop/veScaFetcher.js.map +1 -1
  70. package/src/plugins/sushiswap/helpers.js +24 -24
  71. package/src/plugins/uniswap-v2/helpers.js +22 -22
  72. package/src/plugins/vaultka/constants.d.ts +8 -0
  73. package/src/plugins/vaultka/constants.js +31 -0
  74. package/src/plugins/vaultka/constants.js.map +1 -0
  75. package/src/plugins/vaultka/index.d.ts +6 -0
  76. package/src/plugins/vaultka/index.js +15 -0
  77. package/src/plugins/vaultka/index.js.map +1 -0
  78. package/src/plugins/vaultka/lendingFetcher.d.ts +3 -0
  79. package/src/plugins/vaultka/lendingFetcher.js +58 -0
  80. package/src/plugins/vaultka/lendingFetcher.js.map +1 -0
  81. package/src/plugins/vaultka/lendingJob.d.ts +3 -0
  82. package/src/plugins/vaultka/lendingJob.js +32 -0
  83. package/src/plugins/vaultka/lendingJob.js.map +1 -0
  84. package/src/plugins/vaultka/strategyFetcher.d.ts +3 -0
  85. package/src/plugins/vaultka/strategyFetcher.js +63 -0
  86. package/src/plugins/vaultka/strategyFetcher.js.map +1 -0
  87. package/src/plugins/vaultka/strategyJob.d.ts +3 -0
  88. package/src/plugins/vaultka/strategyJob.js +32 -0
  89. package/src/plugins/vaultka/strategyJob.js.map +1 -0
  90. package/src/plugins/vaultka/structs.d.ts +59 -0
  91. package/src/plugins/vaultka/structs.js +58 -0
  92. package/src/plugins/vaultka/structs.js.map +1 -0
  93. package/src/plugins/zeta/airdropFetcher.js +14 -14
  94. package/src/utils/sei/constants.js +8 -8
  95. package/src/utils/sei/getQueryBalanceByOwner.js +4 -4
  96. package/src/utils/sui/types.d.ts +4 -0
  97. package/src/plugins/kamino/s2AirdropFetcher.js.map +0 -1
  98. /package/src/plugins/kamino/{s2AirdropFetcher.d.ts → s2AirdropFetcher.old.d.ts} +0 -0
@@ -12,15 +12,17 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
12
12
  return (mod && mod.__esModule) ? mod : { "default": mod };
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
+ /* eslint-disable @typescript-eslint/no-explicit-any */
16
+ /* eslint-disable @typescript-eslint/no-non-null-assertion */
15
17
  const portfolio_core_1 = require("@sonarwatch/portfolio-core");
16
18
  const utils_1 = require("@mysten/sui/utils");
17
19
  const bignumber_js_1 = __importDefault(require("bignumber.js"));
18
20
  const constants_1 = require("./constants");
19
21
  const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/tokenPriceToAssetToken"));
22
+ const types_1 = require("./types");
20
23
  const getOwnedObjects_1 = require("../../utils/sui/getOwnedObjects");
21
24
  const clients_1 = require("../../utils/clients");
22
25
  const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
23
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
24
26
  const elements = [];
25
27
  const borrowedAssets = [];
26
28
  const borrowedYields = [];
@@ -39,25 +41,31 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
39
41
  return [];
40
42
  }
41
43
  const poolValues = Object.values(pools);
42
- const sCoinValues = Object.values(sCoins);
43
44
  if (poolValues.length === 0) {
44
45
  return [];
45
46
  }
47
+ const sCoinValues = Object.values(sCoins);
48
+ // {'0x...': CoinMetaData }
49
+ const poolValuesMetadataMap = poolValues.reduce((acc, poolValue) => {
50
+ if (poolValue.metadata)
51
+ acc[poolValue.coinType] = poolValue.metadata;
52
+ return acc;
53
+ }, {});
46
54
  const client = (0, clients_1.getClientSui)();
47
55
  const filterOwnerObject = {
48
56
  MatchAny: [
49
57
  ...poolValues.map((value) => ({
50
- StructType: `0x2::coin::Coin<${constants_1.marketCoinPackageId}<${value.coinType}>>`,
58
+ StructType: `0x2::coin::Coin<${constants_1.marketCoinType}<${value.coinType}>>`,
51
59
  })),
52
60
  ...sCoinValues.map(({ coinType }) => ({
53
61
  StructType: `0x2::coin::Coin<${coinType}>`,
54
62
  })),
55
63
  {
56
- StructType: constants_1.spoolAccountPackageId,
64
+ StructType: constants_1.sPoolAccountType,
57
65
  },
58
66
  ],
59
67
  };
60
- const [allOwnedObjects, marketData, spoolData] = yield Promise.all([
68
+ const [allOwnedObjects, marketData, spoolData, addressData] = yield Promise.all([
61
69
  (0, getOwnedObjects_1.getOwnedObjects)(client, owner, { filter: filterOwnerObject }),
62
70
  cache.getItem(constants_1.marketKey, {
63
71
  prefix: constants_1.marketPrefix,
@@ -67,12 +75,18 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
67
75
  prefix: constants_1.spoolsPrefix,
68
76
  networkId: portfolio_core_1.NetworkId.sui,
69
77
  }),
78
+ cache.getItem(constants_1.addressKey, {
79
+ prefix: constants_1.addressPrefix,
80
+ networkId: portfolio_core_1.NetworkId.sui,
81
+ }),
70
82
  ]);
71
83
  const fetchedDataIncomplete = !marketData ||
72
84
  !spoolData ||
85
+ !addressData ||
73
86
  allOwnedObjects.length === 0 ||
74
87
  Object.keys(marketData).length === 0 ||
75
- Object.keys(spoolData).length === 0;
88
+ Object.keys(spoolData).length === 0 ||
89
+ Object.keys(addressData).length === 0;
76
90
  if (fetchedDataIncomplete) {
77
91
  return [];
78
92
  }
@@ -87,83 +101,140 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
87
101
  });
88
102
  // get user lending assets
89
103
  const lendingAssets = {};
90
- const stakedAccount = {};
91
- for (const ownedMarketCoin of allOwnedObjects) {
92
- const objType = (_a = ownedMarketCoin.data) === null || _a === void 0 ? void 0 : _a.type;
104
+ const stakedAccounts = {};
105
+ const isSpoolAccount = (obj) => {
106
+ var _a;
107
+ const objType = (_a = obj.data) === null || _a === void 0 ? void 0 : _a.type;
93
108
  if (!objType)
94
- continue;
95
- const parsed = (0, utils_1.parseStructTag)(objType);
96
- const coinType = (0, utils_1.normalizeStructTag)(objType.substring(objType.indexOf('MarketCoin<') + 11, objType.indexOf('>')));
97
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
98
- const fields = (_c = (_b = ownedMarketCoin.data) === null || _b === void 0 ? void 0 : _b.content) === null || _c === void 0 ? void 0 : _c.fields;
99
- const coinName = (_e = (_d = poolValues
100
- .find((value) => value.coinType === coinType)) === null || _d === void 0 ? void 0 : _d.metadata) === null || _e === void 0 ? void 0 : _e.symbol.toLowerCase();
101
- if (!coinName || !fields)
102
- continue;
103
- if (!lendingAssets[coinName]) {
104
- lendingAssets[coinName] = { coinType, amount: new bignumber_js_1.default(0) };
105
- }
106
- if (fields['stakes']) {
107
- if (!stakedAccount[`s${coinName}`]) {
108
- stakedAccount[`s${coinName}`] = [];
109
- }
110
- stakedAccount[`s${coinName}`].push({
111
- points: fields['points'],
112
- index: fields['index'],
113
- stakes: fields['stakes'],
114
- });
115
- }
116
- const balance = (0, bignumber_js_1.default)((_f = (parsed.name === 'Coin' ? fields['balance'] : fields['stakes'])) !== null && _f !== void 0 ? _f : 0);
117
- lendingAssets[coinName] = Object.assign(Object.assign({}, lendingAssets[coinName]), { amount: lendingAssets[coinName].amount.plus(balance) });
118
- }
119
- // add support for new sCoin
120
- allOwnedObjects
121
- .filter((obj) => {
109
+ return false;
110
+ const { address, module, name } = (0, utils_1.parseStructTag)((0, utils_1.normalizeStructTag)(objType));
111
+ return `${address}::${module}::${name}` === constants_1.sPoolAccountType;
112
+ };
113
+ const isSCoin = (obj) => {
122
114
  var _a;
123
115
  const objType = (_a = obj.data) === null || _a === void 0 ? void 0 : _a.type;
124
116
  if (!objType)
125
117
  return false;
126
118
  const parsed = (0, utils_1.parseStructTag)(objType);
127
- const subParsed = parsed.typeParams[0];
128
- return !(parsed.name !== 'Coin' ||
129
- !constants_1.sCoinToCoinName[subParsed.name.toLowerCase()]);
130
- })
131
- .forEach((sCoin) => {
132
- var _a, _b, _c, _d;
133
- if (!sCoin.data)
134
- return;
135
- const types = (0, utils_1.parseStructTag)(sCoin.data.type);
136
- const firstCoin = types.typeParams[0];
137
- const coinName = firstCoin.name.toLowerCase();
138
- const coinType = `${firstCoin.address}::${firstCoin.module}::${firstCoin.name}`;
139
- const lendingAssetName = constants_1.sCoinToCoinName[coinName];
140
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
141
- const fields = (_b = (_a = sCoin.data) === null || _a === void 0 ? void 0 : _a.content) === null || _b === void 0 ? void 0 : _b.fields;
142
- if (!lendingAssets[lendingAssetName]) {
143
- lendingAssets[lendingAssetName] = {
144
- amount: new bignumber_js_1.default((_c = fields['balance']) !== null && _c !== void 0 ? _c : 0),
145
- coinType,
146
- };
119
+ const isCoin = parsed.name === 'Coin';
120
+ const sCoinTypeParsed = parsed.typeParams[0];
121
+ const isObjectSCoin = !!types_1.sCoinToCoinName[sCoinTypeParsed.name.toLowerCase()];
122
+ return isCoin && isObjectSCoin;
123
+ };
124
+ const isMarketCoin = (obj) => {
125
+ var _a;
126
+ const objType = (_a = obj.data) === null || _a === void 0 ? void 0 : _a.type;
127
+ if (!objType)
128
+ return false;
129
+ const { address, module, name } = (0, utils_1.parseStructTag)(objType);
130
+ const isCoin = name === 'Coin';
131
+ const isObjectMarketCoin = address === addressData.mainnet.core.object &&
132
+ module === 'reserve' &&
133
+ name === 'MarketCoin';
134
+ return isCoin && isObjectMarketCoin;
135
+ };
136
+ allOwnedObjects.forEach((obj) => {
137
+ var _a, _b, _c, _d, _e, _f, _g, _h;
138
+ if (isMarketCoin(obj)) {
139
+ const marketCoinObj = obj.data;
140
+ if (!marketCoinObj)
141
+ return;
142
+ // access underlying asset type from market coin struct
143
+ // 0x2::coin::Coin<T>
144
+ const { address, module, name } = (0, utils_1.parseStructTag)((0, utils_1.normalizeStructTag)(marketCoinObj.type)).typeParams[0];
145
+ const coinType = `${address}::${module}::${name}`;
146
+ const coinName = (_a = poolValuesMetadataMap[coinType]) === null || _a === void 0 ? void 0 : _a.symbol.toLowerCase();
147
+ if (!coinName)
148
+ return;
149
+ const coinBalance = (0, bignumber_js_1.default)((_c = (_b = marketCoinObj.content) === null || _b === void 0 ? void 0 : _b.fields.balance) !== null && _c !== void 0 ? _c : 0);
150
+ if (!coinName)
151
+ return;
152
+ if (lendingAssets[coinName]) {
153
+ lendingAssets[coinName].amount =
154
+ lendingAssets[coinName].amount.plus(coinBalance);
155
+ }
156
+ else {
157
+ lendingAssets[coinName] = { coinType, amount: coinBalance };
158
+ }
147
159
  }
148
- else {
149
- lendingAssets[lendingAssetName].amount = lendingAssets[lendingAssetName].amount.plus(new bignumber_js_1.default((_d = fields['balance']) !== null && _d !== void 0 ? _d : 0));
160
+ else if (isSpoolAccount(obj)) {
161
+ const spoolObj = obj.data;
162
+ const fields = (_d = spoolObj === null || spoolObj === void 0 ? void 0 : spoolObj.content) === null || _d === void 0 ? void 0 : _d.fields;
163
+ if (!fields)
164
+ return;
165
+ // parse market coin struct inside the spoolAccount struct
166
+ // 0x...::spool_account::SpoolAccount<0x..::reserve::MarketCoin<T>>
167
+ const marketCoinStruct = (0, utils_1.parseStructTag)((0, utils_1.normalizeStructTag)(spoolObj.type))
168
+ .typeParams[0];
169
+ const { address, module, name } = marketCoinStruct
170
+ .typeParams[0];
171
+ const stakeType = `${address}::${module}::${name}`;
172
+ const coinName = (_e = poolValuesMetadataMap[stakeType]) === null || _e === void 0 ? void 0 : _e.symbol.toLowerCase();
173
+ if (!coinName)
174
+ return;
175
+ // sui -> ssui, usdc -> susdc, ...
176
+ const spoolName = `s${coinName}`;
177
+ const { stakes, points, index } = fields;
178
+ if (!stakedAccounts[spoolName]) {
179
+ stakedAccounts[spoolName] = [];
180
+ }
181
+ stakedAccounts[spoolName].push({
182
+ stakes,
183
+ points,
184
+ index,
185
+ });
186
+ const stakeBalance = (0, bignumber_js_1.default)(stakes);
187
+ if (lendingAssets[coinName]) {
188
+ lendingAssets[coinName].amount =
189
+ lendingAssets[coinName].amount.plus(stakeBalance);
190
+ }
191
+ else {
192
+ lendingAssets[coinName] = { coinType: stakeType, amount: stakeBalance };
193
+ }
194
+ }
195
+ else if (isSCoin(obj)) {
196
+ const marketCoinObj = obj.data;
197
+ if (!marketCoinObj)
198
+ return;
199
+ // access underlying asset type from market coin struct
200
+ // 0x2::coin::Coin<T>
201
+ const { address, module, name } = (0, utils_1.parseStructTag)((0, utils_1.normalizeStructTag)(marketCoinObj.type)).typeParams[0];
202
+ // convert sCoinType to coinType
203
+ const sCoinType = `${address}::${module}::${name}`;
204
+ const coinType = types_1.sCoinTypeToCoinTypeMap[sCoinType];
205
+ if (!coinType)
206
+ return;
207
+ const coinName = (_f = poolValuesMetadataMap[coinType]) === null || _f === void 0 ? void 0 : _f.symbol.toLowerCase();
208
+ if (!coinName)
209
+ return;
210
+ const coinBalance = (0, bignumber_js_1.default)((_h = (_g = marketCoinObj.content) === null || _g === void 0 ? void 0 : _g.fields.balance) !== null && _h !== void 0 ? _h : 0);
211
+ if (lendingAssets[coinName]) {
212
+ lendingAssets[coinName].amount =
213
+ lendingAssets[coinName].amount.plus(coinBalance);
214
+ }
215
+ else {
216
+ lendingAssets[coinName] = { coinType, amount: coinBalance };
217
+ }
150
218
  }
151
219
  });
152
220
  let pendingReward = (0, bignumber_js_1.default)(0);
153
- for (const spoolCoin of Object.keys(stakedAccount)) {
154
- for (const { points, index, stakes } of stakedAccount[spoolCoin]) {
155
- if (spoolData[spoolCoin]) {
156
- const increasedPointRate = spoolData[spoolCoin].currentPointIndex
157
- ? (0, bignumber_js_1.default)((0, bignumber_js_1.default)(spoolData[spoolCoin].currentPointIndex).minus(index)).dividedBy(constants_1.baseIndexRate)
221
+ constants_1.marketCoinNames.forEach((marketCoin) => {
222
+ if (!stakedAccounts[marketCoin])
223
+ return;
224
+ stakedAccounts[marketCoin].forEach(({ points, index, stakes }) => {
225
+ if (spoolData[marketCoin]) {
226
+ const { currentPointIndex, exchangeRateNumerator, exchangeRateDenominator, } = spoolData[marketCoin];
227
+ const increasedPointRate = currentPointIndex
228
+ ? (0, bignumber_js_1.default)((0, bignumber_js_1.default)(currentPointIndex).minus(index)).dividedBy(constants_1.baseIndexRate)
158
229
  : 0;
159
230
  pendingReward = pendingReward.plus((0, bignumber_js_1.default)(stakes)
160
231
  .multipliedBy(increasedPointRate)
161
232
  .plus(points)
162
- .multipliedBy(spoolData[spoolCoin].exchangeRateNumerator)
163
- .dividedBy(spoolData[spoolCoin].exchangeRateDenominator));
233
+ .multipliedBy(exchangeRateNumerator)
234
+ .dividedBy(exchangeRateDenominator));
164
235
  }
165
- }
166
- }
236
+ });
237
+ });
167
238
  const tokenAddresses = Object.values(lendingAssets).map((value) => value.coinType);
168
239
  const tokenPrices = yield cache.getTokenPricesAsMap([...tokenAddresses, portfolio_core_1.suiNetwork.native.address], portfolio_core_1.NetworkId.sui);
169
240
  if (pendingReward.isGreaterThan(0)) {
@@ -177,27 +248,26 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
177
248
  });
178
249
  rewardAssets.push(Object.assign({}, rewardAssetToken));
179
250
  }
180
- for (const [assetName, assetValue] of Object.entries(lendingAssets)) {
181
- if (assetValue.amount.isZero())
182
- continue;
183
- const market = marketData[assetName];
184
- if (!market)
185
- continue;
251
+ Object.entries(lendingAssets)
252
+ .filter(([assetName, assetValue]) => assetValue.amount.isGreaterThan(0) && marketData[assetName])
253
+ .forEach(([assetName, assetValue]) => {
254
+ var _a, _b, _c, _d;
255
+ const { supplyInterestRate } = marketData[assetName];
186
256
  const addressMove = (0, portfolio_core_1.formatMoveTokenAddress)(assetValue.coinType);
187
257
  const tokenPrice = tokenPrices.get(addressMove);
188
258
  const lendingAmount = assetValue.amount
189
- .multipliedBy((_g = lendingRate.get(assetName)) !== null && _g !== void 0 ? _g : 0)
190
- .shiftedBy(-1 * ((_k = (_j = (_h = pools[assetName]) === null || _h === void 0 ? void 0 : _h.metadata) === null || _j === void 0 ? void 0 : _j.decimals) !== null && _k !== void 0 ? _k : 0))
259
+ .multipliedBy((_a = lendingRate.get(assetName)) !== null && _a !== void 0 ? _a : 0)
260
+ .shiftedBy(-1 * ((_d = (_c = (_b = pools[assetName]) === null || _b === void 0 ? void 0 : _b.metadata) === null || _c === void 0 ? void 0 : _c.decimals) !== null && _d !== void 0 ? _d : 0))
191
261
  .toNumber();
192
262
  const assetToken = (0, tokenPriceToAssetToken_1.default)(addressMove, lendingAmount, portfolio_core_1.NetworkId.sui, tokenPrice);
193
263
  suppliedYields.push([
194
264
  {
195
- apy: (0, portfolio_core_1.aprToApy)(market.supplyInterestRate),
196
- apr: market.supplyInterestRate,
265
+ apy: (0, portfolio_core_1.aprToApy)(supplyInterestRate),
266
+ apr: supplyInterestRate,
197
267
  },
198
268
  ]);
199
269
  suppliedAssets.push(assetToken);
200
- }
270
+ });
201
271
  if (suppliedAssets.length === 0 &&
202
272
  borrowedAssets.length === 0 &&
203
273
  rewardAssets.length === 0) {
@@ -1 +1 @@
1
- {"version":3,"file":"lendingsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/scallop/lendingsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAUoC;AACpC,6CAAuE;AACvE,gEAAqC;AAIrC,2CAeqB;AACrB,qGAA6E;AAS7E,qEAAkE;AAClE,iDAAmD;AAGnD,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;;IACtE,MAAM,QAAQ,GAAuB,EAAE,CAAC;IACxC,MAAM,cAAc,GAAqB,EAAE,CAAC;IAC5C,MAAM,cAAc,GAAc,EAAE,CAAC;IACrC,MAAM,cAAc,GAAqB,EAAE,CAAC;IAC5C,MAAM,cAAc,GAAc,EAAE,CAAC;IACrC,MAAM,YAAY,GAAqB,EAAE,CAAC;IAE1C,MAAM,KAAK,GAAG,MAAM,KAAK,CAAC,OAAO,CAAQ,oBAAQ,EAAE;QACjD,MAAM,EAAE,uBAAW;QACnB,SAAS,EAAE,0BAAS,CAAC,GAAG;KACzB,CAAC,CAAC;IAEH,MAAM,MAAM,GAAG,MAAM,KAAK,CAAC,OAAO,CAAoB,oBAAQ,EAAE;QAC9D,MAAM,EAAE,uBAAW;QACnB,SAAS,EAAE,0BAAS,CAAC,GAAG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d,cAAc;YACd,aAAa;YACb,cAAc;YACd,WAAW;YACX,YAAY;YACZ,WAAW;YACX,KAAK;SACN;KACF,CAAC,CAAC;IACH,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,WAAW;IAC5B,SAAS,EAAE,0BAAS,CAAC,GAAG;IACxB,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"lendingsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/scallop/lendingsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,uDAAuD;AACvD,6DAA6D;AAC7D,+DAUoC;AACpC,6CAAuE;AACvE,gEAAqC;AAQrC,2CAgBqB;AACrB,qGAA6E;AAC7E,mCAiBiB;AACjB,qEAAkE;AAClE,iDAAmD;AAGnD,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,QAAQ,GAAuB,EAAE,CAAC;IACxC,MAAM,cAAc,GAAqB,EAAE,CAAC;IAC5C,MAAM,cAAc,GAAc,EAAE,CAAC;IACrC,MAAM,cAAc,GAAqB,EAAE,CAAC;IAC5C,MAAM,cAAc,GAAc,EAAE,CAAC;IACrC,MAAM,YAAY,GAAqB,EAAE,CAAC;IAE1C,MAAM,KAAK,GAAG,MAAM,KAAK,CAAC,OAAO,CAAQ,oBAAQ,EAAE;QACjD,MAAM,EAAE,uBAAW;QACnB,SAAS,EAAE,0BAAS,CAAC,GAAG;KACzB,CAAC,CAAC;IAEH,MAAM,MAAM,GAAG,MAAM,KAAK,CAAC,OAAO,CAAoB,oBAAQ,EAAE;QAC9D,MAAM,EAAE,uBAAW;QACnB,SAAS,EAAE,0BAAS,CAAC,GAAG;KACzB,CAAC,CAAC;IACH,IAAI,CAAC,KAAK,IAAI,CAAC,MAAM,EAAE,CAAC;QACtB,OAAO,EAAE,CAAC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AAC,QAAQ;YAChD,cAAc,EAAE,cAAc,CAAC,QAAQ,EAAE;YACzC,kBAAkB,EAAE,IAAI,CAAC,GAAG,CAC1B,oBAAoB,EACpB,uBAAuB,CACxB;YACD,kBAAkB,EAAE,UAAU,CAAC,QAAQ,EAAE;YACzC,IAAI;YACJ,IAAI;YACJ,gBAAgB;YAChB,OAAO;SACR,CAAC;IACJ,CAAC;IAED,MAAM,KAAK,CAAC,OAAO,CAAC,qBAAS,EAAE,MAAM,EAAE;QACrC,MAAM,EAAN,wBAAM;QACN,SAAS,EAAE,0BAAS,CAAC,GAAG;KACzB,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AAEF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,wBAAM;IACV,QAAQ;IACR,KAAK,EAAE,QAAQ;CAChB,CAAC;AAEF,kBAAe,GAAG,CAAC"}
@@ -39,7 +39,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
39
39
  const filterOwnerObject = {
40
40
  MatchAny: [
41
41
  {
42
- StructType: constants_1.obligationKeyPackageId,
42
+ StructType: constants_1.obligationKeyType,
43
43
  },
44
44
  ],
45
45
  };
@@ -173,7 +173,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
173
173
  networkId: portfolio_core_1.NetworkId.sui,
174
174
  platformId: constants_1.platformId,
175
175
  label: 'Lending',
176
- name: `${(0, helpers_1.shortenAddress)(account, 5, 3)} Obligations`,
176
+ name: `Obligation ID: ${(0, helpers_1.shortenAddress)(account, 5, 3)}`,
177
177
  value,
178
178
  data: {
179
179
  borrowedAssets,
@@ -1 +1 @@
1
- {"version":3,"file":"obligationsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/scallop/obligationsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DASoC;AACpC,6CAAuD;AACvD,gEAAqC;AAIrC,2CAOqB;AAQrB,uCAA2C;AAC3C,qGAA6E;AAC7E,6EAAqD;A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AAI,EAAE,qCAAoB,CAAC,UAAU;YACrC,SAAS,EAAE,0BAAS,CAAC,GAAG;YACxB,UAAU,EAAV,sBAAU;YACV,KAAK,EAAE,SAAS;YAChB,IAAI,EAAE,GAAG,IAAA,wBAAc,EAAC,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC,cAAc;YACpD,KAAK;YACL,IAAI,EAAE;gBACJ,cAAc;gBACd,aAAa;gBACb,cAAc;gBACd,cAAc;gBACd,aAAa;gBACb,cAAc;gBACd,WAAW;gBACX,YAAY;gBACZ,WAAW;gBACX,KAAK;aACN;SACF,CAAC,CAAC;IACL,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,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"}
1
+ {"version":3,"file":"obligationsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/scallop/obligationsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DASoC;AACpC,6CAAuD;AACvD,gEAAqC;AAIrC,2CAOqB;AAQrB,uCAA2C;AAC3C,qGAA6E;AAC7E,6EAAqD;AAErD,qEAAkE;AAClE,yDAAsD;AACtD,iFAA8E;AAC9E,iDAAmD;AAEnD,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;;IACtE,MAAM,QAAQ,GAAuB,EAAE,CAAC;IACxC,MAAM,YAAY,GAAqB,EAAE,CAAC;IAE1C,MAAM,gBAAgB,GAAG,MAAM,KAAK,CAAC,OAAO,CAAQ,oBAAQ,EAAE;QAC5D,MAAM,EAAE,uBAAW;QACnB,SAAS,EAAE,0BAAS,CAAC,GAAG;KACzB,CAAC,CAAC;IACH,IAAI,CAAC,gBAAgB;QAAE,OAAO,EAAE,CAAC;IAEjC,MAAM,SAAS,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AC,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"}
@@ -12,11 +12,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  const portfolio_core_1 = require("@sonarwatch/portfolio-core");
13
13
  const utils_1 = require("@mysten/sui/utils");
14
14
  const constants_1 = require("./constants");
15
+ const types_1 = require("./types");
15
16
  const getObject_1 = require("../../utils/sui/getObject");
16
17
  const clients_1 = require("../../utils/clients");
17
18
  const SUI_TYPE = (0, utils_1.normalizeStructTag)(utils_1.SUI_TYPE_ARG);
18
19
  const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
19
- var _a, _b, _c;
20
+ var _a, _b;
20
21
  const address = yield cache.getItem(constants_1.addressKey, {
21
22
  prefix: constants_1.addressPrefix,
22
23
  networkId: portfolio_core_1.NetworkId.sui,
@@ -39,12 +40,20 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
39
40
  }
40
41
  else {
41
42
  const object = yield (0, getObject_1.getObject)(client, detail.metaData);
42
- const objType = (0, utils_1.normalizeStructTag)(((_a = object.data) === null || _a === void 0 ? void 0 : _a.type) || '');
43
- const objFields = (_c = (_b = object.data) === null || _b === void 0 ? void 0 : _b.content) === null || _c === void 0 ? void 0 : _c.fields;
44
- if (!objType || !objFields)
43
+ const objectData = object.data;
44
+ if (!objectData || !objectData.type)
45
45
  return;
46
+ const metadataStruct = (0, utils_1.parseStructTag)((0, utils_1.normalizeStructTag)(objectData.type)); // 0x2::coin::CoinMetadata<T>
47
+ const { address: packageId, module, name, } = metadataStruct.typeParams[0];
48
+ const objFields = (_a = objectData.content) === null || _a === void 0 ? void 0 : _a.fields;
49
+ if (!objFields)
50
+ return;
51
+ // manually map wormhole usdc symbol into wusdc
52
+ const coinType = `${packageId}::${module}::${name}`;
53
+ objFields.symbol =
54
+ (_b = types_1.wormholeCoinTypeToSymbolMap[coinType]) !== null && _b !== void 0 ? _b : objFields.symbol;
46
55
  coinTypes[coinName] = {
47
- coinType: objType.substring(objType.indexOf('<') + 1, objType.indexOf('>')),
56
+ coinType,
48
57
  metadata: objFields,
49
58
  };
50
59
  }
@@ -1 +1 @@
1
- {"version":3,"file":"poolsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/scallop/poolsJob.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AACvD,6CAAqE;AAIrE,2CAKqB;AAErB,yDAAsD;AACtD,iDAAmD;AAEnD,MAAM,QAAQ,GAAG,IAAA,0BAAkB,EAAC,oBAAY,CAAC,CAAC;AAElD,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;;IACnD,MAAM,OAAO,GAAG,MAAM,KAAK,CAAC,OAAO,CAAc,sBAAU,EAAE;QAC3D,MAAM,EAAE,yBAAa;QACrB,SAAS,EAAE,0BAAS,CAAC,GAAG;KACzB,CAAC,CAAC;IAEH,IAAI,CAAC,OAAO;QAAE,OAAO;IAErB,MAAM,SAAS,GAAU,EAAE,CAAC;IAC5B,MAAM,KAAK,GAAG,IAAI,GAAG,CACnB,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAC3C,CAAC;IACF,MAAM,SAAS,GAAa,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC;IACrD,MAAM,MAAM,GAAG,IAAA,sBAAY,GAAE,CAAC;IAC9B,KAAK,MAAM,QAAQ,IAAI,SAAS,EAAE,CAAC;QACjC,MAAM,MAAM,GAAG,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QACnC,IAAI,CAAC,MAAM;YAAE,SAAS;QACtB,IAAI,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,CAAC;YACjC,SAAS,CAAC,Q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OAAO;YAE5C,MAAM,cAAc,GAAG,IAAA,sBAAc,EACnC,IAAA,0BAAkB,EAAC,UAAU,CAAC,IAAI,CAAC,CACpC,CAAC,CAAC,6BAA6B;YAChC,MAAM,EACJ,OAAO,EAAE,SAAS,EAClB,MAAM,EACN,IAAI,GACL,GAAG,cAAc,CAAC,UAAU,CAAC,CAAC,CAAc,CAAC;YAC9C,MAAM,SAAS,GAAG,MAAA,UAAU,CAAC,OAAO,0CAAE,MAAM,CAAC;YAC7C,IAAI,CAAC,SAAS;gBAAE,OAAO;YAEvB,+CAA+C;YAC/C,MAAM,QAAQ,GAAG,GAAG,SAAS,KAAK,MAAM,KAAK,IAAI,EAAE,CAAC;YACpD,SAAS,CAAC,MAAM;gBACd,MAAA,mCAA2B,CAAC,QAAQ,CAAC,mCAAI,SAAS,CAAC,MAAM,CAAC;YAC5D,SAAS,CAAC,QAAQ,CAAC,GAAG;gBACpB,QAAQ;gBACR,QAAQ,EAAE,SAAS;aACpB,CAAC;QACJ,CAAC;IACH,CAAC;IAED,MAAM,KAAK,CAAC,OAAO,CAAC,oBAAQ,EAAE,SAAS,EAAE;QACvC,MAAM,EAAN,uBAAM;QACN,SAAS,EAAE,0BAAS,CAAC,GAAG;KACzB,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AAEF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,uBAAM;IACV,QAAQ;IACR,KAAK,EAAE,QAAQ;CAChB,CAAC;AACF,kBAAe,GAAG,CAAC"}
@@ -11,10 +11,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  const portfolio_core_1 = require("@sonarwatch/portfolio-core");
13
13
  const constants_1 = require("./constants");
14
+ const types_1 = require("./types");
14
15
  const clients_1 = require("../../utils/clients");
15
16
  const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
16
17
  const client = (0, clients_1.getClientSui)();
17
- const sCoinTypes = Object.entries(constants_1.sCoinTypesMap).reduce((prev, curr) => {
18
+ const sCoinTypes = Object.entries(types_1.sCoinTypesMap).reduce((prev, curr) => {
18
19
  const [coinName, coinType] = curr;
19
20
  // eslint-disable-next-line no-param-reassign
20
21
  prev[coinName] = {
@@ -1 +1 @@
1
- {"version":3,"file":"sCoinJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/scallop/sCoinJob.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAEvD,2CAKqB;AAGrB,iDAAmD;AAEnD,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,MAAM,GAAG,IAAA,sBAAY,GAAE,CAAC;IAE9B,MAAM,UAAU,GAAsB,MAAM,CAAC,OAAO,CAAC,yBAAa,CAAC,CAAC,MAAM,CACxE,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE;QACb,MAAM,CAAC,QAAQ,EAAE,QAAQ,CAAC,GAAG,IAAI,CAAC;QAClC,6CAA6C;QAC7C,IAAI,CAAC,QAAsB,CAAC,GAAG;YAC7B,QAAQ;YACR,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,OAAO,IAAI,CAAC;IACd,CAAC,EACD,EAAuB,CACxB,CAAC;IAEF,kCAAkC;IAClC,MAAM,OAAO,CAAC,GAAG,CACf,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,CAAO,CAAC,QAAQ,EAAE,gBAAgB,CAAC,EAAE,EAAE;QACpE,MAAM,EAAE,QAAQ,EAAE,GAAG,gBAAgB,CAAC;QACtC,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC;QAC5D,UAAU,CAAC,QAAsB,CAAC,CAAC,QAAQ,GAAG,QAAQ,CAAC;IACzD,CAAC,CAAA,CAAC,CACH,CAAC;IACF,MAAM,KAAK,CAAC,OAAO,CAAC,oBAAQ,EAAE,UAAU,EAAE;QACxC,MAAM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AK,CAAC,OAAO,CAAC,oBAAQ,EAAE,UAAU,EAAE;QACxC,MAAM,EAAN,uBAAM;QACN,SAAS,EAAE,0BAAS,CAAC,GAAG;KACzB,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AAEF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,uBAAM;IACV,QAAQ;IACR,KAAK,EAAE,QAAQ;CAChB,CAAC;AACF,kBAAe,GAAG,CAAC"}
@@ -24,6 +24,7 @@ export interface Core {
24
24
  coins: Map<string, Coin>;
25
25
  oracles: Oracle;
26
26
  packages: Map<string, Package>;
27
+ object: string;
27
28
  }
28
29
  export interface Coin {
29
30
  id: string;
@@ -27,3 +27,7 @@ export type WitTable = {
27
27
  with_keys: boolean;
28
28
  };
29
29
  };
30
+ export type ExtendedBasicField<T> = {
31
+ type: string;
32
+ fields: T;
33
+ };
@@ -1,13 +1,23 @@
1
1
  import { CoinMetadata } from '@mysten/sui/client';
2
- import { CoinNames, MARKET_COIN_NAMES } from '../constants';
3
- export declare const SUPPORTED_SPOOL_COIN_NAMES: readonly ["ssui", "susdc"];
4
- export type MarketCoinNames = (typeof MARKET_COIN_NAMES)[number];
5
- export type SupportedSpoolCoinNames = (typeof SUPPORTED_SPOOL_COIN_NAMES)[number];
6
- export type AllCoinNames = CoinNames | MarketCoinNames;
7
- export type UserCoinBalance = {
8
- [k in AllCoinNames]?: string;
9
- };
2
+ import { coinNames, marketCoinNames, scoinNames } from '../constants';
3
+ export type MarketCoinNames = (typeof marketCoinNames)[number];
4
+ export type PoolCoinNames = (typeof coinNames)[number];
5
+ export type SCoinNames = (typeof scoinNames)[number];
10
6
  export type CoinTypeMetadata = {
11
7
  coinType: string;
12
8
  metadata: CoinMetadata | null;
13
9
  };
10
+ type SCoinToCoinNameType = {
11
+ [T in SCoinNames]: PoolCoinNames;
12
+ };
13
+ type SCoinTypesMapType = {
14
+ [T in SCoinNames]: string;
15
+ };
16
+ export declare const sCoinToCoinName: SCoinToCoinNameType;
17
+ export declare const sCoinTypesMap: SCoinTypesMapType;
18
+ export type SCoinTypeValue = (typeof sCoinTypesMap)[SCoinNames];
19
+ export declare const sCoinTypeToCoinTypeMap: {
20
+ [T in SCoinTypeValue]: string;
21
+ };
22
+ export declare const wormholeCoinTypeToSymbolMap: Record<string, SCoinTypeValue>;
23
+ export {};