@sonarwatch/portfolio-plugins 0.12.183 → 0.12.184

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. package/CHANGELOG.md +1534 -1530
  2. package/README.md +3 -3
  3. package/package.json +8 -8
  4. package/src/plugins/balancer/helpers/pools.js +21 -21
  5. package/src/plugins/cetus/dcaFetcher.js +2 -2
  6. package/src/plugins/cetus/dcaFetcher.js.map +1 -1
  7. package/src/plugins/cetus/helpers.js +1 -1
  8. package/src/plugins/cetus/helpers.js.map +1 -1
  9. package/src/plugins/cetus/limitFetcher.js +4 -4
  10. package/src/plugins/cetus/limitFetcher.js.map +1 -1
  11. package/src/plugins/deepbook/helpers.js +4 -4
  12. package/src/plugins/deepbook/helpers.js.map +1 -1
  13. package/src/plugins/haedal/vaultFetcher.js +2 -2
  14. package/src/plugins/haedal/vaultFetcher.js.map +1 -1
  15. package/src/plugins/mole/farmsFetcher.js +3 -3
  16. package/src/plugins/mole/farmsFetcher.js.map +1 -1
  17. package/src/plugins/navi/getAvailableRewards.js +5 -5
  18. package/src/plugins/navi/getAvailableRewards.js.map +1 -1
  19. package/src/plugins/scallop/lendingsFetcher.js +3 -5
  20. package/src/plugins/scallop/lendingsFetcher.js.map +1 -1
  21. package/src/plugins/scallop/obligationsFetcher.js +1 -1
  22. package/src/plugins/scallop/obligationsFetcher.js.map +1 -1
  23. package/src/plugins/scallop/poolsJob.js +1 -1
  24. package/src/plugins/scallop/poolsJob.js.map +1 -1
  25. package/src/plugins/scallop/types/coin.d.ts +1 -1
  26. package/src/plugins/sushiswap/helpers.js +24 -24
  27. package/src/plugins/tokens/fetchers/sui-nfts.js +2 -2
  28. package/src/plugins/tokens/fetchers/sui-nfts.js.map +1 -1
  29. package/src/plugins/typus/constants.js +30 -5
  30. package/src/plugins/typus/constants.js.map +1 -1
  31. package/src/plugins/typus/helpers.js +5 -6
  32. package/src/plugins/typus/helpers.js.map +1 -1
  33. package/src/plugins/typus/safu_helpers.js +14 -13
  34. package/src/plugins/typus/safu_helpers.js.map +1 -1
  35. package/src/plugins/uniswap-v2/helpers.js +22 -22
  36. package/src/plugins/zeta/airdropFetcher.js +14 -14
  37. package/src/utils/clients/getClientSui.js +1 -1
  38. package/src/utils/clients/getClientSui.js.map +1 -1
  39. package/src/utils/clients/types.d.ts +1 -1
  40. package/src/utils/sei/constants.js +8 -8
  41. package/src/utils/sei/getQueryBalanceByOwner.js +4 -4
  42. package/src/utils/sui/getDynamicFieldObject.d.ts +1 -1
  43. package/src/utils/sui/getDynamicFieldObjects.d.ts +1 -1
  44. package/src/utils/sui/getDynamicFieldObjects.js +1 -1
  45. package/src/utils/sui/getDynamicFieldObjects.js.map +1 -1
  46. package/src/utils/sui/getDynamicFieldObjectsSafe.d.ts +4 -0
  47. package/src/utils/sui/getDynamicFieldObjectsSafe.js +23 -0
  48. package/src/utils/sui/getDynamicFieldObjectsSafe.js.map +1 -0
  49. package/src/utils/sui/getDynamicFields.d.ts +1 -1
  50. package/src/utils/sui/getDynamicFields.js +1 -4
  51. package/src/utils/sui/getDynamicFields.js.map +1 -1
  52. package/src/utils/sui/getDynamicFieldsSafe.d.ts +3 -0
  53. package/src/utils/sui/getDynamicFieldsSafe.js +38 -0
  54. package/src/utils/sui/getDynamicFieldsSafe.js.map +1 -0
  55. package/src/utils/sui/getObject.d.ts +1 -1
  56. package/src/utils/sui/getObjectDeletedResponse.d.ts +1 -1
  57. package/src/utils/sui/getOwnedObjects.d.ts +1 -1
  58. package/src/utils/sui/mulitpleGetBalances.d.ts +1 -1
  59. package/src/utils/sui/multiGetObjects.d.ts +1 -1
  60. package/src/utils/sui/multipleGetDynamicFieldsObjects.d.ts +1 -1
  61. package/src/utils/sui/multipleGetDynamicFieldsObjects.js.map +1 -1
  62. package/src/utils/sui/multipleGetDynamicFieldsObjectsSafe.d.ts +4 -0
  63. package/src/utils/sui/multipleGetDynamicFieldsObjectsSafe.js +25 -0
  64. package/src/utils/sui/multipleGetDynamicFieldsObjectsSafe.js.map +1 -0
  65. package/src/utils/sui/queryEvents.d.ts +1 -1
  66. package/src/utils/sui/queryEventsSafe.d.ts +1 -1
  67. package/src/utils/sui/types.d.ts +7 -1
package/README.md CHANGED
@@ -1,3 +1,3 @@
1
- # @sonarwatch/portfolio-plugins
2
-
3
- This library is @sonarwatch/portfolio-plugins
1
+ # @sonarwatch/portfolio-plugins
2
+
3
+ This library is @sonarwatch/portfolio-plugins
package/package.json CHANGED
@@ -1,20 +1,17 @@
1
1
  {
2
2
  "name": "@sonarwatch/portfolio-plugins",
3
- "version": "0.12.183",
3
+ "version": "0.12.184",
4
4
  "type": "commonjs",
5
5
  "types": "./src/index.d.ts",
6
6
  "peerDependencies": {
7
7
  "@sonarwatch/portfolio-core": "^0.13.0"
8
8
  },
9
9
  "dependencies": {
10
- "@solanafm/explorer-kit-idls": "^1.1.3",
11
- "@solanafm/explorer-kit": "^1.1.3",
12
10
  "@aave/contract-helpers": "^1.28.2",
13
11
  "@aave/math-utils": "^1.28.2",
14
12
  "@aptos-labs/ts-sdk": "^1.19.0",
15
13
  "@bonfida/spl-name-service": "^1.0.10",
16
14
  "@cosmjs/cosmwasm-stargate": "^0.31.1",
17
- "ethers": "^5.7.2",
18
15
  "@ethersproject/bignumber": "^5.7.0",
19
16
  "@ethersproject/constants": "^5.7.0",
20
17
  "@ethersproject/providers": "^5.7.2",
@@ -22,27 +19,30 @@
22
19
  "@metaplex-foundation/beet": "^0.7.1",
23
20
  "@metaplex-foundation/beet-solana": "^0.4.0",
24
21
  "@mysten/bcs": "^0.11.1",
25
- "@mysten/sui.js": "^0.50.1",
22
+ "@mysten/sui": "^1.12.0",
26
23
  "@onsol/tldparser": "^0.6.1",
27
24
  "@sei-js/core": "^3.0.1",
28
25
  "@sei-js/proto": "^3.0.1",
29
26
  "@solana/web3.js": "^1.91.8",
27
+ "@solanafm/explorer-kit": "^1.1.3",
28
+ "@solanafm/explorer-kit-idls": "^1.1.3",
30
29
  "axios": "^1.7.2",
31
30
  "bignumber.js": "^9.1.2",
32
31
  "bn.js": "^5.2.1",
33
32
  "buffer": "6.0.1",
34
33
  "decimal.js": "^10.4.3",
35
34
  "dsa-connect": "^0.6.47",
35
+ "ethers": "^5.7.2",
36
36
  "graphql": "^16.8.1",
37
37
  "graphql-request": "^6.1.0",
38
+ "ioredis": "^5.4.1",
39
+ "js-sha256": "^0.11.0",
38
40
  "long": "^5.2.3",
39
41
  "osmojs": "^16.5.1",
40
42
  "reflect-metadata": "^0.1.13",
41
43
  "unstorage": "^1.10.2",
42
44
  "viem": "^1.16.5",
43
- "ioredis": "^5.4.1",
44
- "web3-v1": "npm:web3@^1.5.0",
45
- "js-sha256": "^0.11.0"
45
+ "web3-v1": "npm:web3@^1.5.0"
46
46
  },
47
47
  "main": "./src/index.js"
48
48
  }
@@ -36,27 +36,27 @@ exports.getBalancerPoolsV2 = void 0;
36
36
  const graphql_request_1 = __importStar(require("graphql-request"));
37
37
  function getBalancerPoolsV2(url) {
38
38
  return __awaiter(this, void 0, void 0, function* () {
39
- const query = (0, graphql_request_1.gql) `
40
- query pools {
41
- pools(
42
- first: 1000
43
- orderBy: totalLiquidity
44
- orderDirection: desc
45
- where: { totalLiquidity_gt: "500" }
46
- ) {
47
- id
48
- address
49
- symbol
50
- totalLiquidity
51
- totalShares
52
- tokens {
53
- balance
54
- decimals
55
- symbol
56
- address
57
- }
58
- }
59
- }
39
+ const query = (0, graphql_request_1.gql) `
40
+ query pools {
41
+ pools(
42
+ first: 1000
43
+ orderBy: totalLiquidity
44
+ orderDirection: desc
45
+ where: { totalLiquidity_gt: "500" }
46
+ ) {
47
+ id
48
+ address
49
+ symbol
50
+ totalLiquidity
51
+ totalShares
52
+ tokens {
53
+ balance
54
+ decimals
55
+ symbol
56
+ address
57
+ }
58
+ }
59
+ }
60
60
  `;
61
61
  const res = yield (0, graphql_request_1.default)(url, query);
62
62
  const pools = res.pools;
@@ -16,7 +16,7 @@ const multiGetObjects_1 = require("../../utils/sui/multiGetObjects");
16
16
  const ElementRegistry_1 = require("../../utils/elementbuilder/ElementRegistry");
17
17
  const helpers_1 = require("./helpers");
18
18
  const getDynamicFieldObject_1 = require("../../utils/sui/getDynamicFieldObject");
19
- const getDynamicFields_1 = require("../../utils/sui/getDynamicFields");
19
+ const getDynamicFieldsSafe_1 = require("../../utils/sui/getDynamicFieldsSafe");
20
20
  const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
21
21
  var _a, _b;
22
22
  const client = (0, clients_1.getClientSui)();
@@ -29,7 +29,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
29
29
  });
30
30
  if (!userIndexField || userIndexField.error)
31
31
  return [];
32
- const fields = yield (0, getDynamicFields_1.getDynamicFields)(client, ((_b = (_a = userIndexField.data) === null || _a === void 0 ? void 0 : _a.content) === null || _b === void 0 ? void 0 : _b.fields)
32
+ const fields = yield (0, getDynamicFieldsSafe_1.getDynamicFieldsSafe)(client, ((_b = (_a = userIndexField.data) === null || _a === void 0 ? void 0 : _a.content) === null || _b === void 0 ? void 0 : _b.fields)
33
33
  .value.fields.id.id);
34
34
  if (!fields.length)
35
35
  return [];
@@ -1 +1 @@
1
- {"version":3,"file":"dcaFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/cetus/dcaFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAGvD,2CAA2D;AAC3D,iDAAmD;AAEnD,qEAAkE;AAClE,gFAA6E;AAC7E,uCAAqD;AACrD,iFAA8E;AAC9E,uEAAoE;AAGpE,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;;IACtE,MAAM,MAAM,GAAG,IAAA,sBAAY,GAAE,CAAC;IAE9B,MAAM,cAAc,GAAG,MAAM,IAAA,6CAAqB,EAAC,MAAM,EAAE;QACzD,QAAQ,EAAE,4BAAgB;QAC1B,IAAI,EAAE;YACJ,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,KAAK;SACb;KACF,CAAC,CAAC;IAEH,IAAI,CA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CAAC,YAAY;YAErD,OAAO,CAAC,QAAQ;QAClB,IAAI,WAAW,CAAC,YAAY,KAAK,GAAG,IAAI,WAAW,CAAC,aAAa,KAAK,GAAG;YACvE,OAAO,CAAC,cAAc;QACxB,IACE,WAAW,CAAC,sBAAsB,KAAK,GAAG;YAC1C,WAAW,CAAC,aAAa,KAAK,GAAG;YAEjC,OAAO,CAAC,UAAU;QAEpB,MAAM,SAAS,GAAG,IAAA,kCAAwB,EAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAE5D,IAAI,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,UAAU,KAAK,GAAG;YAC9C,OAAO,CAAC,QAAQ,CAAC;gBACf,OAAO,EAAE,SAAS,CAAC,cAAc,CAAC,CAAC,CAAC;gBACpC,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,UAAU;aAC7C,CAAC,CAAC;QAEL,IAAI,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,WAAW,KAAK,GAAG;YAC/C,OAAO,CAAC,QAAQ,CAAC;gBACf,OAAO,EAAE,SAAS,CAAC,cAAc,CAAC,CAAC,CAAC;gBACpC,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,WAAW;aAC9C,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IAEH,OAAO,eAAe,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5C,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,MAAM;IACvB,SAAS,EAAE,0BAAS,CAAC,GAAG;IACxB,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -8,7 +8,7 @@ exports.buildNFT = exports.buildPosition = exports.getPoolFromObject = exports.a
8
8
  const decimal_js_1 = __importDefault(require("decimal.js"));
9
9
  const bignumber_js_1 = __importDefault(require("bignumber.js"));
10
10
  const portfolio_core_1 = require("@sonarwatch/portfolio-core");
11
- const utils_1 = require("@mysten/sui.js/utils");
11
+ const utils_1 = require("@mysten/sui/utils");
12
12
  const types_1 = require("./types");
13
13
  const getObjectDeletedResponse_1 = require("../../utils/sui/getObjectDeletedResponse");
14
14
  const getObjectNotExistsResponse_1 = require("../../utils/sui/getObjectNotExistsResponse");
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/cetus/helpers.ts"],"names":[],"mappings":";AAAA,sCAAsC;;;;;;AAEtC,4DAAiC;AACjC,gEAAqC;AACrC,+DAAwD;AACxD,gDAA4D;AAC5D,mCAQiB;AAEjB,uFAAoF;AACpF,2FAAwF;AACxF,+DAA4D;AAE5D,SAAgB,OAAO,CAAC,GAAc;IACpC,OAAO,IAAI,oBAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAC,GAAG,CAAC,oBAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AAC9D,CAAC;AAFD,0BAEC;AAiBD,SAAgB,WAAW,CACzB,OAAe,EACf,GAAG,IAAe;IAElB,MAAM,QAAQ,GAAa,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QAC7D,CAAC,CAAE,IAAI,CAAC,GAAG,EAAe;QAC1B,CAAC,CAAC,EAAE,CAAC;IACP,MAAM,MAAM,GAAG,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAElD,IAAI,MAAM,GAAW,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAEvC,IAAI,QAAQ,IAAI,QAAQ,CAAC,MAAM,EAAE,CAAC;QAChC,MAAM,IAAI,IAAI,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC;IACvC,CAAC;IAED,OAAO,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AS,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC;QACpC,GAAG,CAAC,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC;QAC1B,GAAG,CAAC,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC;QAC1B,GAAG,CAAC,WAAW,GAAG,MAAM,CAAC,aAAa,CAAC,CAAC;IAC1C,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC;AAnBD,4BAmBC"}
@@ -10,16 +10,16 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  const portfolio_core_1 = require("@sonarwatch/portfolio-core");
13
- const transactions_1 = require("@mysten/sui.js/transactions");
13
+ const transactions_1 = require("@mysten/sui/transactions");
14
14
  const constants_1 = require("./constants");
15
15
  const clients_1 = require("../../utils/clients");
16
16
  const multiGetObjects_1 = require("../../utils/sui/multiGetObjects");
17
- const multipleGetDynamicFieldsObjects_1 = require("../../utils/sui/multipleGetDynamicFieldsObjects");
17
+ const multipleGetDynamicFieldsObjectsSafe_1 = require("../../utils/sui/multipleGetDynamicFieldsObjectsSafe");
18
18
  const ElementRegistry_1 = require("../../utils/elementbuilder/ElementRegistry");
19
19
  const helpers_1 = require("./helpers");
20
20
  const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
21
21
  const client = (0, clients_1.getClientSui)();
22
- const tx = new transactions_1.TransactionBlock();
22
+ const tx = new transactions_1.Transaction();
23
23
  tx.moveCall({
24
24
  target: `${constants_1.limitPackageId}::limit_order::get_orders_indexer_by_owner`,
25
25
  arguments: [tx.pure.address(owner), tx.object(constants_1.limitUserIndexId)],
@@ -32,7 +32,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
32
32
  if (!dir.events.length)
33
33
  return [];
34
34
  const ordersTableIds = dir.events.map((e) => e.parsedJson.orders_table_id);
35
- const fields = yield (0, multipleGetDynamicFieldsObjects_1.multipleGetDynamicFieldsObjects)(client, ordersTableIds);
35
+ const fields = yield (0, multipleGetDynamicFieldsObjectsSafe_1.multipleGetDynamicFieldsObjectsSafe)(client, ordersTableIds);
36
36
  if (!fields.length)
37
37
  return [];
38
38
  const orders = yield (0, multiGetObjects_1.multiGetObjects)(client, fields.flat().map((o) => { var _a, _b; return ((_b = (_a = o.data) === null || _a === void 0 ? void 0 : _a.content) === null || _b === void 0 ? void 0 : _b.fields).name; }));
@@ -1 +1 @@
1
- {"version":3,"file":"limitFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/cetus/limitFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AACvD,8DAA+D;AAG/D,2CAKqB;AACrB,iDAAmD;AAEnD,qEAAkE;AAClE,qGAAkG;AAClG,gFAA6E;AAC7E,uCAAqD;AAErD,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,sBAAY,GAAE,CAAC;IAE9B,MAAM,EAAE,GAAG,IAAI,+BAAgB,EAAE,CAAC;IAClC,EAAE,CAAC,QAAQ,CAAC;QACV,MAAM,EAAE,GAAG,0BAAc,4CAA4C;QACrE,SAAS,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,4BAAgB,CAAC,CAAC;QAChE,aAAa,EAAE,EAAE;KAClB,CAAC,CAAC;IAEH,MAAM,GAAG,GAAG,MAAM,MAAM,CAAC,0BAA0B,CAAC;QAClD,MAAM,EAAE,8BAAkB;QAC1B,gBAAgB,EAAE,EAAE;KACrB,CAAC,CAAC;IAEH,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM;QAAE,OAAO,EAAE,CAAC;IAElC,MAAM,cAAc,GAAG,GAAG,CAAC,MAAM,CAAC,GAAG,CACnC,CAAC,CAAC,EAAE,EAAE,CAAE,CAAC,CAAC,UAA0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,QAAQ;IACzB,SAAS,EAAE,0BAAS,CAAC,GAAG;IACxB,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -14,10 +14,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.getAllPools = exports.getUserPosition = void 0;
16
16
  const bcs_1 = require("@mysten/bcs");
17
- const transactions_1 = require("@mysten/sui.js/transactions");
17
+ const transactions_1 = require("@mysten/sui/transactions");
18
18
  const bignumber_js_1 = __importDefault(require("bignumber.js"));
19
19
  const constants_1 = require("./constants");
20
- const queryEventsSafe_1 = require("../../utils/sui/queryEventsSafe");
20
+ const queryEvents_1 = require("../../utils/sui/queryEvents");
21
21
  const SUI_ADDRESS_LENGTH = 32;
22
22
  const DUMMY_ADDRESS = normalizeSuiAddress('0x0');
23
23
  function normalizeSuiAddress(value, forceAdd0x = false) {
@@ -107,7 +107,7 @@ export const listOpenOrders = async (
107
107
  }; */
108
108
  const getUserPosition = (pool, accountCap, suiClient) => __awaiter(void 0, void 0, void 0, function* () {
109
109
  var _a, _b;
110
- const tx = new transactions_1.TransactionBlock();
110
+ const tx = new transactions_1.Transaction();
111
111
  const cap = checkAccountCap(accountCap);
112
112
  tx.moveCall({
113
113
  typeArguments: [pool.baseAsset, pool.quoteAsset],
@@ -127,7 +127,7 @@ const getUserPosition = (pool, accountCap, suiClient) => __awaiter(void 0, void
127
127
  });
128
128
  exports.getUserPosition = getUserPosition;
129
129
  const getAllPools = (suiClient) => __awaiter(void 0, void 0, void 0, function* () {
130
- const events = yield (0, queryEventsSafe_1.queryEventsSafe)(suiClient, {
130
+ const events = yield (0, queryEvents_1.queryEvents)(suiClient, {
131
131
  MoveEventType: `${constants_1.PACKAGE_ID}::${constants_1.MODULE_CLOB}::PoolCreated`,
132
132
  });
133
133
  return events
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/deepbook/hel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,CAAC,CAAC,KAAK,IAAI,CAAkB,CAAC;AAChD,CAAC,CAAA,CAAC;AArBW,QAAA,WAAW,eAqBtB"}
@@ -16,12 +16,12 @@ const portfolio_core_1 = require("@sonarwatch/portfolio-core");
16
16
  const bignumber_js_1 = __importDefault(require("bignumber.js"));
17
17
  const constants_1 = require("./constants");
18
18
  const clients_1 = require("../../utils/clients");
19
- const getDynamicFieldObjects_1 = require("../../utils/sui/getDynamicFieldObjects");
19
+ const getDynamicFieldObjectsSafe_1 = require("../../utils/sui/getDynamicFieldObjectsSafe");
20
20
  const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/tokenPriceToAssetToken"));
21
21
  const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
22
22
  var _a, _b;
23
23
  const client = (0, clients_1.getClientSui)();
24
- const test = yield (0, getDynamicFieldObjects_1.getDynamicFieldObjects)(client, constants_1.usersInfosOwner);
24
+ const test = yield (0, getDynamicFieldObjectsSafe_1.getDynamicFieldObjectsSafe)(client, constants_1.usersInfosOwner);
25
25
  const userInfos = test.filter((object) => { var _a, _b; return ((_b = (_a = object.data) === null || _a === void 0 ? void 0 : _a.content) === null || _b === void 0 ? void 0 : _b.fields.name) === owner; });
26
26
  if (userInfos.length !== 1)
27
27
  return [];
@@ -1 +1 @@
1
- {"version":3,"file":"vaultFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/haedal/vaultFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAIoC;AACpC,gEAAqC;AAGrC,2CAA0D;AAC1D,iDAAmD;AACnD,mFAAgF;AAEhF,qGAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;;IACtE,MAAM,MAAM,GAAG,IAAA,sBAAY,GAAE,CAAC;IAE9B,MAAM,IAAI,GAAG,MAAM,IAAA,+CAAsB,EAAW,MAAM,EAAE,2BAAe,CAAC,CAAC;IAC7E,MAAM,SAAS,GA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,UAAU,GAAG,MAAM,KAAK,CAAC,aAAa,CAAC,iCAAgB,EAAE,0BAAS,CAAC,GAAG,CAAC,CAAC;IAC9E,MAAM,KAAK,GAAG,IAAA,gCAAsB,EAClC,iCAAgB,EAChB,MAAM,CAAC,QAAQ,EAAE,EACjB,0BAAS,CAAC,GAAG,EACb,UAAU,CACX,CAAC;IAEF,OAAO;QACL;YACE,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,SAAS;YAChB,UAAU,EAAV,sBAAU;YACV,SAAS,EAAE,0BAAS,CAAC,GAAG;YACxB,IAAI,EAAE;gBACJ,MAAM,EAAE,CAAC,KAAK,CAAC;aAChB;YACD,KAAK,EAAE,KAAK,CAAC,KAAK;YAClB,IAAI,EAAE,cAAc;SACrB;KACF,CAAC;AACJ,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,QAAQ;IACzB,SAAS,EAAE,0BAAS,CAAC,GAAG;IACxB,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -12,7 +12,7 @@ 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
- const transactions_1 = require("@mysten/sui.js/transactions");
15
+ const transactions_1 = require("@mysten/sui/transactions");
16
16
  const portfolio_core_1 = require("@sonarwatch/portfolio-core");
17
17
  const bignumber_js_1 = __importDefault(require("bignumber.js"));
18
18
  const constants_1 = require("./constants");
@@ -60,14 +60,14 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
60
60
  const func = borrowingInterest.isReverse
61
61
  ? 'position_info_reverse'
62
62
  : 'position_info';
63
- const tx = new transactions_1.TransactionBlock();
63
+ const tx = new transactions_1.Transaction();
64
64
  tx.moveCall({
65
65
  target: `${packageObjectId}::${module}::${func}`,
66
66
  arguments: [
67
67
  tx.object(borrowingInterest.workerInfo),
68
68
  tx.object(data.others.globalStorage),
69
69
  tx.object(borrowingInterest.pool),
70
- tx.pure(positionId),
70
+ tx.pure.u64(positionId),
71
71
  ],
72
72
  typeArguments: [
73
73
  borrowingInterest.isReverse
@@ -1 +1 @@
1
- {"version":3,"file":"farmsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/mole/farmsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,8DAA+D;AAC/D,+DASoC;AACpC,gEAAqC;AAGrC,2CAA8E;AAC9E,iDAAmD;AAEnD,uCAAiD;AACjD,qGAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,sBAAY,GAAE,CAAC;IAE9B,MAAM,QAAQ,GAAuB,EAAE,CAAC;IAExC,MAAM,CAAC,IAAI,EAAE,SAAS,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QAC1C,KAAK,CAAC,OAAO,CAAW,mBAAO,EAAE;YAC/B,MAAM,EAAE,wBAAY;YACpB,SAAS,EAAE,0BAAS,CAAC,GAAG;SACzB,CAAC;QACF,KAAK,CAAC,OAAO,CAAoB,wBAAY,EAAE;YAC7C,MAAM,EAAE,wBAAY;YACpB,SAAS,EAAE,0BAAS,CAAC,GAAG;SACzB,CAAC;KACH,CAAC,CAAC;IAEH,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC,IAAI,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,MAAM,IAAI,CAAC,SAAS;QACpE,OAAO,EAAE,CAAC;IAEZ,MAAM,UAAU,GAAa,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CACjD,IAAA,uCAAsB,EAAC,CAAC,CAAC,SAAS,CAAC,CACpC,CAAC;IACF,MAAM,WAAW,GAA4B,MAAM,KAAK,CAAC,mBAAmB,CAC1E,UAAU,EACV,0BAAS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};
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.getAvailableRewards = void 0;
16
- const transactions_1 = require("@mysten/sui.js/transactions");
16
+ const transactions_1 = require("@mysten/sui/transactions");
17
17
  const bcs_1 = require("@mysten/bcs");
18
18
  const bignumber_js_1 = __importDefault(require("bignumber.js"));
19
19
  const portfolio_core_1 = require("@sonarwatch/portfolio-core");
@@ -39,16 +39,16 @@ bcs.registerStructType('IncentivePoolInfoByPhase', {
39
39
  pools: 'vector<IncentivePoolInfo>',
40
40
  });
41
41
  function getTransactionBlock(owner, optionType) {
42
- const tx = new transactions_1.TransactionBlock();
42
+ const tx = new transactions_1.Transaction();
43
43
  tx.moveCall({
44
44
  target: constants_1.incentiveFunction,
45
45
  arguments: [
46
46
  tx.object(portfolio_core_1.suiClockAddress),
47
47
  tx.object(constants_1.incentiveObjectId),
48
48
  tx.object(constants_1.incentiveStorageObjectId),
49
- tx.pure(0),
50
- tx.pure(optionType),
51
- tx.pure(owner),
49
+ tx.pure.u64(0),
50
+ tx.pure.u64(optionType),
51
+ tx.pure.address(owner),
52
52
  ],
53
53
  });
54
54
  return tx;
@@ -1 +1 @@
1
- {"version":3,"file":"getAvailableRewards.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/navi/getAvailableRewards.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,8DAA+D;AAC/D,qCAAoD;AACpD,gEAAqC;AACrC,+DAA6D;AAE7D,2CAMqB;AAGrB,MAAM,GAAG,GAAG,IAAI,SAAG,CAAC,IAAA,sBAAgB,GAAE,CAAC,CAAC;AAExC,GAAG,CAAC,kBAAkB,CAAC,mBAAmB,EAAE;IAC1C,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,SAAS;IAChB,KAAK,EAAE,KAAK;IACZ,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,KAAK;IACb,SAAS,EAAE,KAAK;IAChB,YAAY,EAAE,KAAK;IACnB,QAAQ,EAAE,IAAI;IACd,M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CAAC,CAAC;QACL,CAAC,CAAC;QAEF,qBAAqB,CAAC,OAAO,CAAC,oBAAoB,CAAC,CAAC;QACpD,qBAAqB,CAAC,OAAO,CAAC,oBAAoB,CAAC,CAAC;QAEpD,OAAO,OAAO,CAAC;IACjB,CAAC;CAAA;AA5BD,kDA4BC"}
1
+ {"version":3,"file":"getAvailableRewards.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/navi/getAvailableRewards.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2DAAuD;AACvD,qCAAoD;AACpD,gEAAqC;AACrC,+DAA6D;AAE7D,2CAMqB;AAGrB,MAAM,GAAG,GAAG,IAAI,SAAG,CAAC,IAAA,sBAAgB,GAAE,CAAC,CAAC;AAExC,GAAG,CAAC,kBAAkB,CAAC,mBAAmB,EAAE;IAC1C,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,SAAS;IAChB,KAAK,EAAE,KAAK;IACZ,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,KAAK;IACb,SAAS,EAAE,KAAK;IAChB,YAAY,EAAE,KAAK;IACnB,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,MAAM;IACd,WAAW,EAAE,KAAK;IAClB,SAAS,EAAE,MAAM;IACjB,KAAK,EAAE,MAAM;CACd,CAAC,CAAC;AAEH,GAAG,CAAC,kBAAkB,CAAC,0BAA0B,EAAE;IACjD,KAAK,EAAE,KAAK;IACZ,KAAK,EAAE,2BAA2B;CACnC,CAAC,CAAC;AAEH,SAAS,mBAAmB,CAAC,KAAa,EAAE,UAAkB;IAC5D,MAAM,EAAE,GAAG,IAAI,0BAAW,EAAE,CAAC;IAE7B,EAAE,CAAC,QAAQ,CAAC;QACV,MAAM,EAAE,6BAAiB;QACzB,SAAS,EAAE;YACT,EAAE,CAAC,MAAM,CAAC,gCAAe,CAAC;YAC1B,EAAE,CAAC,MAAM,CAAC,6BAAiB,CAAC;YAC5B,EAAE,CAAC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C,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;YACvE,kBAAkB,CAAC,MAAM,EAAE,mBAAmB,CAAC,KAAK,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC;YAChE,kBAAkB,CAAC,MAAM,EAAE,mBAAmB,CAAC,KAAK,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC;SACjE,CAAC,CAAC;QAEH,MAAM,oBAAoB,GAAG,CAAC,CAAoB,EAAE,EAAE;YACpD,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;gBACvB,MAAM,KAAK,GAAG,IAAI,CAAC,KAAkC,CAAC;gBACtD,MAAM,EAAE,QAAQ,EAAE,GAAG,wBAAY,CAAC,KAAK,CAAC,CAAC;gBACzC,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;gBAC7C,OAAO,CAAC,GAAG,CACT,QAAQ,EACR,SAAS;oBACP,IAAI,sBAAS,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,sBAAU,CAAC,CAAC,QAAQ,EAAE,CACtE,CAAC;YACJ,CAAC,CAAC,CAAC;QACL,CAAC,CAAC;QAEF,qBAAqB,CAAC,OAAO,CAAC,oBAAoB,CAAC,CAAC;QACpD,qBAAqB,CAAC,OAAO,CAAC,oBAAoB,CAAC,CAAC;QAEpD,OAAO,OAAO,CAAC;IACjB,CAAC;CAAA;AA5BD,kDA4BC"}
@@ -13,7 +13,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  const portfolio_core_1 = require("@sonarwatch/portfolio-core");
16
- const utils_1 = require("@mysten/sui.js/utils");
16
+ const utils_1 = require("@mysten/sui/utils");
17
17
  const bignumber_js_1 = __importDefault(require("bignumber.js"));
18
18
  const constants_1 = require("./constants");
19
19
  const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/tokenPriceToAssetToken"));
@@ -125,10 +125,8 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
125
125
  return false;
126
126
  const parsed = (0, utils_1.parseStructTag)(objType);
127
127
  const subParsed = parsed.typeParams[0];
128
- if (parsed.name !== 'Coin' ||
129
- !constants_1.sCoinToCoinName[subParsed.name.toLowerCase()])
130
- return false;
131
- return true;
128
+ return !(parsed.name !== 'Coin' ||
129
+ !constants_1.sCoinToCoinName[subParsed.name.toLowerCase()]);
132
130
  })
133
131
  .forEach((sCoin) => {
134
132
  var _a, _b, _c, _d;
@@ -1 +1 @@
1
- {"version":3,"file":"lendingsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/scallop/lendingsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAUoC;AACpC,gDAA0E;AAC1E,gEAAqC;AAKrC,2CAeqB;AACrB,qGAA6E;AAS7E,qEAAkE;AAClE,iDAAmD;AAEnD,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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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,+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;KACzB,CAAC,CAAC;IACH,IAAI,CAAC,KAAK,IAAI,CAAC,MAAM,EAAE,CAAC;QACtB,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,KAAK,CAA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AY;IACvB,EAAE,EAAE,GAAG,sBAAU,WAAW;IAC5B,SAAS,EAAE,0BAAS,CAAC,GAAG;IACxB,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -13,7 +13,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  const portfolio_core_1 = require("@sonarwatch/portfolio-core");
16
- const utils_1 = require("@mysten/sui.js/utils");
16
+ const utils_1 = require("@mysten/sui/utils");
17
17
  const bignumber_js_1 = __importDefault(require("bignumber.js"));
18
18
  const constants_1 = require("./constants");
19
19
  const helpers_1 = require("./helpers");
@@ -1 +1 @@
1
- {"version":3,"file":"obligationsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/scallop/obligationsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DASoC;AACpC,gDAA0D;AAC1D,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,GAAG,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;IAClD,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAEtC,MAAM,iBAAiB,GAAwB;QAC7C,QAA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AAC"}
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,GAAG,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;IAClD,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAEtC,MAAM,iBAAiB,GAAwB;QAC7C,QAAQ,EAAE;YACR;gBACE,UAAU,EAAE,kCAAsB;aACnC;SACF;KACF,CAAC;IAEF,MAAM,MAAM,GAAG,IAAA,sBAAY,GAAE,CAAC;IAC9B,MAAM,CAAC,mBAAmB,EAAE,UAAU,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QAC1D,IAAA,iCAAe,EAAsB,MAAM,EAAE,KAAK,EAAE;YAClD,MAAM,EAAE,iBAAiB;SAC1B,CAAC;QACF,KAAK,CAAC,OAAO,CAAkB,qBAAS,EAAE;YACxC,MAAM,EAAN,wBAAM;YACN,SAAS,EAAE,0BAAS,CAAC,GAAG;SACzB,CAAC;KACH,CAAC,CAAC;IACH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C,MAAM,KAAK,CAAC;YAEzB,SAAS;QACX,MAAM,EAAE,aAAa,EAAE,WAAW,EAAE,aAAa,EAAE,KAAK,EAAE,WAAW,EAAE,GACrE,IAAA,wCAAuB,EAAC,EAAE,cAAc,EAAE,cAAc,EAAE,YAAY,EAAE,CAAC,CAAC;QAC5E,QAAQ,CAAC,IAAI,CAAC;YACZ,IAAI,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"}
@@ -10,7 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  const portfolio_core_1 = require("@sonarwatch/portfolio-core");
13
- const utils_1 = require("@mysten/sui.js/utils");
13
+ const utils_1 = require("@mysten/sui/utils");
14
14
  const constants_1 = require("./constants");
15
15
  const getObject_1 = require("../../utils/sui/getObject");
16
16
  const clients_1 = require("../../utils/clients");
@@ -1 +1 @@
1
- {"version":3,"file":"poolsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/scallop/poolsJob.ts"],"names":[],"mappings":";;;;;;;;;;;AA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,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"}
@@ -1,4 +1,4 @@
1
- import { CoinMetadata } from '@mysten/sui.js/client';
1
+ import { CoinMetadata } from '@mysten/sui/client';
2
2
  import { CoinNames, MARKET_COIN_NAMES } from '../constants';
3
3
  export declare const SUPPORTED_SPOOL_COIN_NAMES: readonly ["ssui", "susdc"];
4
4
  export type MarketCoinNames = (typeof MARKET_COIN_NAMES)[number];