@sonarwatch/portfolio-plugins 0.12.146 → 0.12.148

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. package/CHANGELOG.md +1384 -1371
  2. package/README.md +3 -3
  3. package/package.json +1 -1
  4. package/src/plugins/aftermath/poolsJob.js +32 -14
  5. package/src/plugins/aftermath/poolsJob.js.map +1 -1
  6. package/src/plugins/aftermath/types.d.ts +7 -0
  7. package/src/plugins/balancer/helpers/pools.js +21 -21
  8. package/src/plugins/cetus/poolsJob.js +26 -26
  9. package/src/plugins/cetus/poolsJob.js.map +1 -1
  10. package/src/plugins/cropper/helpers.js +1 -1
  11. package/src/plugins/cropper/helpers.js.map +1 -1
  12. package/src/plugins/daos/helpers.js +1 -1
  13. package/src/plugins/daos/helpers.js.map +1 -1
  14. package/src/plugins/orca/helpers.js +1 -1
  15. package/src/plugins/orca/helpers.js.map +1 -1
  16. package/src/plugins/picasso/helpers.js +1 -1
  17. package/src/plugins/picasso/helpers.js.map +1 -1
  18. package/src/plugins/raydium/helpers.js +1 -1
  19. package/src/plugins/raydium/helpers.js.map +1 -1
  20. package/src/plugins/scallop/constants.d.ts +1 -1
  21. package/src/plugins/scallop/constants.js +1 -1
  22. package/src/plugins/scallop/constants.js.map +1 -1
  23. package/src/plugins/scallop/obligationsFetcher.js +1 -7
  24. package/src/plugins/scallop/obligationsFetcher.js.map +1 -1
  25. package/src/plugins/sushiswap/helpers.js +24 -24
  26. package/src/plugins/tokens/fetchers/sui-nfts.js +1 -0
  27. package/src/plugins/tokens/fetchers/sui-nfts.js.map +1 -1
  28. package/src/plugins/uniswap-v2/helpers.js +22 -22
  29. package/src/plugins/zeta/airdropFetcher.js +16 -16
  30. package/src/plugins/zeta/airdropFetcher.js.map +1 -1
  31. package/src/utils/sei/constants.js +8 -8
  32. package/src/utils/sei/getQueryBalanceByOwner.js +4 -4
  33. package/src/utils/solana/das/heliusAssetToAssetCollectible.js +8 -5
  34. package/src/utils/solana/das/heliusAssetToAssetCollectible.js.map +1 -1
  35. package/src/utils/sui/queryEvents.js +3 -1
  36. package/src/utils/sui/queryEvents.js.map +1 -1
  37. package/src/utils/sui/queryEventsSafe.js +2 -1
  38. package/src/utils/sui/queryEventsSafe.js.map +1 -1
@@ -40,28 +40,28 @@ function getPairKey(version) {
40
40
  exports.getPairKey = getPairKey;
41
41
  function getPairsV2FromTheGraph(url, length = 300) {
42
42
  return __awaiter(this, void 0, void 0, function* () {
43
- const query = (0, graphql_request_1.gql) `
44
- {
45
- pairs(
46
- orderBy: reserveUSD
47
- first: ${length}
48
- orderDirection: desc
49
- where: { trackedReserveETH_not: "0" }
50
- ) {
51
- id
52
- reserve0
53
- reserve1
54
- totalSupply
55
- token0 {
56
- id
57
- decimals
58
- }
59
- token1 {
60
- id
61
- decimals
62
- }
63
- }
64
- }
43
+ const query = (0, graphql_request_1.gql) `
44
+ {
45
+ pairs(
46
+ orderBy: reserveUSD
47
+ first: ${length}
48
+ orderDirection: desc
49
+ where: { trackedReserveETH_not: "0" }
50
+ ) {
51
+ id
52
+ reserve0
53
+ reserve1
54
+ totalSupply
55
+ token0 {
56
+ id
57
+ decimals
58
+ }
59
+ token1 {
60
+ id
61
+ decimals
62
+ }
63
+ }
64
+ }
65
65
  `;
66
66
  const res = yield (0, graphql_request_1.default)(url, query);
67
67
  const pairs = res.pairs;
@@ -42,20 +42,20 @@ const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/token
42
42
  const clients_1 = require("../../utils/clients");
43
43
  const getMultipleAccountsInfoSafe_1 = require("../../utils/solana/getMultipleAccountsInfoSafe");
44
44
  const helpers_1 = require("./helpers");
45
- const query = (0, graphql_request_1.gql) `
46
- query GetAirdropFinalFrontend($authority: String!) {
47
- getAirdropFinalFrontend(authority: $authority) {
48
- authority
49
- community_allocation
50
- eligibility
51
- main_allocation
52
- og_allocation
53
- s1_allocation
54
- s2_allocation
55
- total_allocation
56
- __typename
57
- }
58
- }
45
+ const query = (0, graphql_request_1.gql) `
46
+ query GetAirdropFinalFrontend($authority: String!) {
47
+ getAirdropFinalFrontend(authority: $authority) {
48
+ authority
49
+ community_allocation
50
+ eligibility
51
+ main_allocation
52
+ og_allocation
53
+ s1_allocation
54
+ s2_allocation
55
+ total_allocation
56
+ __typename
57
+ }
58
+ }
59
59
  `;
60
60
  const networkId = portfolio_core_1.NetworkId.solana;
61
61
  const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
@@ -66,10 +66,10 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
66
66
  referrer: 'https://token.zeta.markets/',
67
67
  'X-Api-Key': 'da2-rrupjjccivdndc6rvltixlmsma',
68
68
  }).catch(() => null);
69
- if (!res)
69
+ if (!res || !res.getAirdropFinalFrontend)
70
70
  return [];
71
71
  const amount = res.getAirdropFinalFrontend.total_allocation;
72
- if (amount === 0)
72
+ if (!amount || amount === 0)
73
73
  return [];
74
74
  const claimStatuses = (0, helpers_1.deriveZetaClaimStatuses)(owner, constants_1.distributors);
75
75
  const client = (0, clients_1.getClientSolana)();
@@ -1 +1 @@
1
- {"version":3,"file":"airdropFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/zeta/airdropFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+DAAuE;AACvE,mEAA+C;AAG/C,2CAA4E;AAE5E,qGAA6E;AAC7E,iDAAsD;AACtD,gGAA6F;AAC7F,uCAAoD;AAEpD,MAAM,KAAK,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;CAchB,CAAC;AAEF,MAAM,SAAS,GAAG,0BAAS,CAAC,MAAM,CAAC;AAEnC,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,GAAG,GAAG,MAAM,IAAA,yBAAO,EACvB,sBAAU,EACV,KAAK,EACL;QACE,SAAS,EAAE,KAAK;KACjB,EACD;QACE,MAAM,EAAE,4BAA4B;QACpC,QAAQ,EAAE,6B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BACJ,MAAM,EAAE,CAAC,KAAK,CAAC;aAChB;YACD,KAAK,EAAE,KAAK,CAAC,KAAK;SACnB;KACF,CAAC;AACJ,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,UAAU;IAC3B,SAAS;IACT,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"airdropFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/zeta/airdropFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+DAAuE;AACvE,mEAA+C;AAG/C,2CAA4E;AAE5E,qGAA6E;AAC7E,iDAAsD;AACtD,gGAA6F;AAC7F,uCAAoD;AAEpD,MAAM,KAAK,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;CAchB,CAAC;AAEF,MAAM,SAAS,GAAG,0BAAS,CAAC,MAAM,CAAC;AAEnC,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,GAAG,GAAG,MAAM,IAAA,yBAAO,EACvB,sBAAU,EACV,KAAK,EACL;QACE,SAAS,EAAE,KAAK;KACjB,EACD;QACE,MAAM,EAAE,4BAA4B;QACpC,QAAQ,EAAE,6BAA6B;QACvC,WAAW,EAAE,gCAAgC;KAC9C,CACF,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC;IACpB,IAAI,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,uBAAuB;QAAE,OAAO,EAAE,CAAC;IAEpD,MAAM,MAAM,GAAG,GAAG,CAAC,uBAAuB,CAAC,gBAAgB,CAAC;IAC5D,IAAI,CAAC,MAAM,IAAI,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAEvC,MAAM,aAAa,GAAG,IAAA,iCAAuB,EAAC,KAAK,EAAE,wBAAY,CAAC,CAAC;IAEnE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IACjC,MAAM,oBAAoB,GAAG,MAAM,IAAA,yDAA2B,EAC5D,MAAM,EACN,aAAa,CACd,CAAC;IAEF,IAAI,oBAAoB,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC;QAAE,OAAO,EAAE,CAAC;IAE/D,MAAM,UAAU,GAAG,MAAM,KAAK,CAAC,aAAa,CAAC,mBAAO,EAAE,SAAS,CAAC,CAAC;IACjE,MAAM,KAAK,GAAmB,UAAU;QACtC,CAAC,CAAC,IAAA,gCAAsB,EACpB,UAAU,CAAC,OAAO,EAClB,MAAM,EACN,SAAS,EACT,UAAU,EACV,SAAS,EACT,EAAE,WAAW,EAAE,aAAa,EAAE,CAC/B;QACH,CAAC,CAAC;YACE,IAAI,EAAE,SAAS;YACf,QAAQ,EACN,8HAA8H;YAChI,IAAI,EAAE,KAAK;YACX,IAAI,EAAE;gBACJ,OAAO,EAAE,mBAAO;gBAChB,MAAM;gBACN,KAAK,EAAE,IAAI;aACZ;YACD,KAAK,EAAE,IAAI;YACX,SAAS;YACT,UAAU,EAAE,EAAE,WAAW,EAAE,aAAa,EAAE;SAC3C,CAAC;IAEN,OAAO;QACL;YACE,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,SAAS;YAChB,SAAS;YACT,UAAU,EAAV,sBAAU;YACV,IAAI,EAAE;gBACJ,MAAM,EAAE,CAAC,KAAK,CAAC;aAChB;YACD,KAAK,EAAE,KAAK,CAAC,KAAK;SACnB;KACF,CAAC;AACJ,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,UAAU;IAC3B,SAAS;IACT,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -1,16 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.poolQueryMsg = exports.minterQueryMsg = exports.tokenInfoQueryMsg = exports.infoQueryMsg = void 0;
4
- exports.infoQueryMsg = JSON.parse(`{
5
- "info": {}
4
+ exports.infoQueryMsg = JSON.parse(`{
5
+ "info": {}
6
6
  }`);
7
- exports.tokenInfoQueryMsg = JSON.parse(`{
8
- "token_info": {}
7
+ exports.tokenInfoQueryMsg = JSON.parse(`{
8
+ "token_info": {}
9
9
  }`);
10
- exports.minterQueryMsg = JSON.parse(`{
11
- "minter": {}
10
+ exports.minterQueryMsg = JSON.parse(`{
11
+ "minter": {}
12
12
  }`);
13
- exports.poolQueryMsg = JSON.parse(`{
14
- "pool": {}
13
+ exports.poolQueryMsg = JSON.parse(`{
14
+ "pool": {}
15
15
  }`);
16
16
  //# sourceMappingURL=constants.js.map
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  function getQueryBalanceByOwner(owner) {
4
- return JSON.parse(`{
5
- "balance": {
6
- "address": "${owner}"
7
- }
4
+ return JSON.parse(`{
5
+ "balance": {
6
+ "address": "${owner}"
7
+ }
8
8
  }`);
9
9
  }
10
10
  exports.default = getQueryBalanceByOwner;
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.heliusAssetToAssetCollectible = void 0;
4
4
  const portfolio_core_1 = require("@sonarwatch/portfolio-core");
5
5
  function heliusAssetToAssetCollectible(asset, props) {
6
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
6
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
7
7
  // Tags
8
8
  const tags = [];
9
9
  if (asset.compression.compressed)
@@ -55,20 +55,23 @@ function heliusAssetToAssetCollectible(asset, props) {
55
55
  attributes: {
56
56
  tags: tags.length > 0 ? tags : [],
57
57
  },
58
+ name: asset.content.metadata.name ||
59
+ (collection === null || collection === void 0 ? void 0 : collection.name) ||
60
+ ((_h = props === null || props === void 0 ? void 0 : props.collection) === null || _h === void 0 ? void 0 : _h.name),
58
61
  data: {
59
62
  address: asset.id,
60
63
  amount,
61
- price: (_j = (_h = props === null || props === void 0 ? void 0 : props.collection) === null || _h === void 0 ? void 0 : _h.floorPrice) !== null && _j !== void 0 ? _j : null,
64
+ price: (_k = (_j = props === null || props === void 0 ? void 0 : props.collection) === null || _j === void 0 ? void 0 : _j.floorPrice) !== null && _k !== void 0 ? _k : null,
62
65
  name: asset.content.metadata.name ||
63
66
  (collection === null || collection === void 0 ? void 0 : collection.name) ||
64
- ((_k = props === null || props === void 0 ? void 0 : props.collection) === null || _k === void 0 ? void 0 : _k.name),
67
+ ((_l = props === null || props === void 0 ? void 0 : props.collection) === null || _l === void 0 ? void 0 : _l.name),
65
68
  dataUri: asset.content.json_uri,
66
- imageUri: (_l = asset.content.links) === null || _l === void 0 ? void 0 : _l.image,
69
+ imageUri: (_m = asset.content.links) === null || _m === void 0 ? void 0 : _m.image,
67
70
  attributes: asset.content.metadata.attributes,
68
71
  collection,
69
72
  },
70
73
  networkId: portfolio_core_1.NetworkId.solana,
71
- value: (_o = (_m = props === null || props === void 0 ? void 0 : props.collection) === null || _m === void 0 ? void 0 : _m.floorPrice) !== null && _o !== void 0 ? _o : null,
74
+ value: (_p = (_o = props === null || props === void 0 ? void 0 : props.collection) === null || _o === void 0 ? void 0 : _o.floorPrice) !== null && _p !== void 0 ? _p : null,
72
75
  };
73
76
  }
74
77
  exports.heliusAssetToAssetCollectible = heliusAssetToAssetCollectible;
@@ -1 +1 @@
1
- {"version":3,"file":"heliusAssetToAssetCollectible.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/utils/solana/das/heliusAssetToAssetCollectible.ts"],"names":[],"mappings":";;;AAAA,+DAKoC;AAGpC,SAAgB,6BAA6B,CAC3C,KAAkB,EAClB,KAGC;;IAED,OAAO;IACP,MAAM,IAAI,GAAyB,EAAE,CAAC;IACtC,IAAI,KAAK,CAAC,WAAW,CAAC,UAAU;QAAE,IAAI,CAAC,IAAI,CAAC,YAAY,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,CAAC,UAAU;YAC7C,UAAU;SACX;QACD,SAAS,EAAE,0BAAS,CAAC,MAAM;QAC3B,KAAK,EAAE,MAAA,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,UAAU,0CAAE,UAAU,mCAAI,IAAI;KAC7C,CAAC;AACJ,CAAC;AA7ED,sEA6EC"}
1
+ {"version":3,"file":"heliusAssetToAssetCollectible.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/utils/solana/das/heliusAssetToAssetCollectible.ts"],"names":[],"mappings":";;;AAAA,+DAKoC;AAGpC,SAAgB,6BAA6B,CAC3C,KAAkB,EAClB,KAGC;;IAED,OAAO;IACP,MAAM,IAAI,GAAyB,EAAE,CAAC;IACtC,IAAI,KAAK,CAAC,WAAW,CAAC,UAAU;QAAE,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IAC1D,IAAI,KAAK,CAAC,WAAW;QAAE,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;IAEhD,IAAI,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,IAAI,0CAAE,MAAM;QAAE,IAAI,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC;IAElD,IAAI,MAAM,GAAG,CAAC,CAAC;IACf,IAAI,UAA6C,CAAC;IAElD,MAAM,QAAQ,GAAG,MAAA,KAAK,CAAC,UAAU,0CAAE,QAAQ,CAAC;IAC5C,MAAM,OAAO,GAAG,MAAA,KAAK,CAAC,UAAU,0CAAE,OAAO,CAAC;IAC1C,IAAI,QAAQ,KAAK,SAAS,IAAI,QAAQ,KAAK,CAAC;QAAE,OAAO,IAAI,CAAC;IAE1D,SAAS;IACT,IAAI,OAAO,IAAI,OAAO,KAAK,CAAC,EAAE,CAAC;QAC7B,MAAM,GAAG,OAAO,CAAC;QACjB,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACnB,CAAC;IAED,IAAI,KAAK,CAAC,KAAK,EAAE,CA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ACD,IAAI,EACF,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI;aAC3B,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,IAAI,CAAA;aAChB,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,UAAU,0CAAE,IAAI,CAAA;QACzB,IAAI,EAAE;YACJ,OAAO,EAAE,KAAK,CAAC,EAAE;YACjB,MAAM;YACN,KAAK,EAAE,MAAA,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,UAAU,0CAAE,UAAU,mCAAI,IAAI;YAC5C,IAAI,EACF,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI;iBAC3B,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,IAAI,CAAA;iBAChB,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,UAAU,0CAAE,IAAI,CAAA;YACzB,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,QAAQ;YAC/B,QAAQ,EAAE,MAAA,KAAK,CAAC,OAAO,CAAC,KAAK,0CAAE,KAAK;YACpC,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,UAAU;YAC7C,UAAU;SACX;QACD,SAAS,EAAE,0BAAS,CAAC,MAAM;QAC3B,KAAK,EAAE,MAAA,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,UAAU,0CAAE,UAAU,mCAAI,IAAI;KAC7C,CAAC;AACJ,CAAC;AAjFD,sEAiFC"}
@@ -15,10 +15,12 @@ function queryEvents(client, query) {
15
15
  let hasNextPage = true;
16
16
  let cursor;
17
17
  const objects = [];
18
+ let res;
18
19
  do {
19
- const res = yield client.queryEvents({
20
+ res = yield client.queryEvents({
20
21
  cursor,
21
22
  query,
23
+ limit: 50,
22
24
  });
23
25
  objects.push(...res.data);
24
26
  cursor = res.nextCursor;
@@ -1 +1 @@
1
- {"version":3,"file":"queryEvents.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/sui/queryEvents.ts"],"names":[],"mappings":";;;;;;;;;;;;AAIA,SAAsB,WAAW,CAAI,MAAiB,EAAE,KAAqB;;QAC3E,IAAI,WAAW,GAAG,IAAI,CAAC;QACvB,IAAI,MAAkC,CAAC;QAEvC,MAAM,OAAO,GAAG,EAAE,CAAC;QAEnB,GAAG,CAAC;YACF,MAAM,GAAG,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC;gBACnC,MAAM;gBACN,KAAK;aACN,CAAC,CAAC;YACH,OAAO,CAAC,IAAI,CAAC,GAAG,GAAG,CAAC,IAAI,CAAC,CAAC;YAC1B,MAAM,GAAG,GAAG,CAAC,UAAU,CAAC;YACxB,WAAW,GAAG,GAAG,CAAC,WAAW,CAAC;QAChC,CAAC,QAAQ,WAAW,EAAE;QACtB,OAAO,OAAqB,CAAC;IAC/B,CAAC;CAAA;AAhBD,kCAgBC"}
1
+ {"version":3,"file":"queryEvents.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/sui/queryEvents.ts"],"names":[],"mappings":";;;;;;;;;;;;AAIA,SAAsB,WAAW,CAAI,MAAiB,EAAE,KAAqB;;QAC3E,IAAI,WAAW,GAAG,IAAI,CAAC;QACvB,IAAI,MAAkC,CAAC;QAEvC,MAAM,OAAO,GAAG,EAAE,CAAC;QAEnB,IAAI,GAAG,CAAC;QACR,GAAG,CAAC;YACF,GAAG,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC;gBAC7B,MAAM;gBACN,KAAK;gBACL,KAAK,EAAE,EAAE;aACV,CAAC,CAAC;YACH,OAAO,CAAC,IAAI,CAAC,GAAG,GAAG,CAAC,IAAI,CAAC,CAAC;YAC1B,MAAM,GAAG,GAAG,CAAC,UAAU,CAAC;YACxB,WAAW,GAAG,GAAG,CAAC,WAAW,CAAC;QAChC,CAAC,QAAQ,WAAW,EAAE;QACtB,OAAO,OAAqB,CAAC;IAC/B,CAAC;CAAA;AAlBD,kCAkBC"}
@@ -16,9 +16,10 @@ function queryEventsSafe(client, query) {
16
16
  let page = 0;
17
17
  let hasNextPage = true;
18
18
  let cursor;
19
+ let res;
19
20
  const objects = [];
20
21
  do {
21
- const res = yield client.queryEvents({
22
+ res = yield client.queryEvents({
22
23
  cursor,
23
24
  query,
24
25
  });
@@ -1 +1 @@
1
- {"version":3,"file":"queryEventsSafe.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/sui/queryEventsSafe.ts"],"names":[],"mappings":";;;;;;;;;;;;AAIA,MAAM,OAAO,GAAG,EAAE,CAAC;AAEnB,SAAsB,eAAe,CACnC,MAAiB,EACjB,KAAqB;;QAErB,IAAI,IAAI,GAAG,CAAC,CAAC;QACb,IAAI,WAAW,GAAG,IAAI,CAAC;QACvB,IAAI,MAAkC,CAAC;QAEvC,MAAM,OAAO,GAAG,EAAE,CAAC;QAEnB,GAAG,CAAC;YACF,MAAM,GAAG,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC;gBACnC,MAAM;gBACN,KAAK;aACN,CAAC,CAAC;YACH,OAAO,CAAC,IAAI,CAAC,GAAI,GAAG,CAAC,IAAmB,CAAC,CAAC;YAC1C,MAAM,GAAG,GAAG,CAAC,UAAU,CAAC;YACxB,WAAW,GAAG,GAAG,CAAC,WAAW,CAAC;YAC9B,IAAI,IAAI,CAAC,CAAC;QACZ,CAAC,QAAQ,WAAW,IAAI,IAAI,IAAI,OAAO,EAAE;QACzC,OAAO,OAAO,CAAC;IACjB,CAAC;CAAA;AArBD,0CAqBC"}
1
+ {"version":3,"file":"queryEventsSafe.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/sui/queryEventsSafe.ts"],"names":[],"mappings":";;;;;;;;;;;;AAIA,MAAM,OAAO,GAAG,EAAE,CAAC;AAEnB,SAAsB,eAAe,CACnC,MAAiB,EACjB,KAAqB;;QAErB,IAAI,IAAI,GAAG,CAAC,CAAC;QACb,IAAI,WAAW,GAAG,IAAI,CAAC;QACvB,IAAI,MAAkC,CAAC;QACvC,IAAI,GAAG,CAAC;QACR,MAAM,OAAO,GAAG,EAAE,CAAC;QAEnB,GAAG,CAAC;YACF,GAAG,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC;gBAC7B,MAAM;gBACN,KAAK;aACN,CAAC,CAAC;YACH,OAAO,CAAC,IAAI,CAAC,GAAI,GAAG,CAAC,IAAmB,CAAC,CAAC;YAC1C,MAAM,GAAG,GAAG,CAAC,UAAU,CAAC;YACxB,WAAW,GAAG,GAAG,CAAC,WAAW,CAAC;YAC9B,IAAI,IAAI,CAAC,CAAC;QACZ,CAAC,QAAQ,WAAW,IAAI,IAAI,IAAI,OAAO,EAAE;QACzC,OAAO,OAAO,CAAC;IACjB,CAAC;CAAA;AArBD,0CAqBC"}