@sonarwatch/portfolio-plugins 0.11.96 → 0.11.98

Sign up to get free protection for your applications and to get access to all the features.
Files changed (112) hide show
  1. package/CHANGELOG.md +1095 -1087
  2. package/README.md +3 -3
  3. package/package.json +3 -3
  4. package/src/plugins/aftermath/poolsJob.js +22 -20
  5. package/src/plugins/aftermath/poolsJob.js.map +1 -1
  6. package/src/plugins/balancer/helpers/pools.js +21 -21
  7. package/src/plugins/bucket/collateralFetcher.js +5 -8
  8. package/src/plugins/bucket/collateralFetcher.js.map +1 -1
  9. package/src/plugins/cetus/clmmsFetcher.js +5 -5
  10. package/src/plugins/cetus/clmmsFetcher.js.map +1 -1
  11. package/src/plugins/cetus/helpers.d.ts +4 -4
  12. package/src/plugins/cetus/helpers.js +23 -12
  13. package/src/plugins/cetus/helpers.js.map +1 -1
  14. package/src/plugins/cetus/poolsJob.js +5 -10
  15. package/src/plugins/cetus/poolsJob.js.map +1 -1
  16. package/src/plugins/jupiter/constants.d.ts +2 -0
  17. package/src/plugins/jupiter/constants.js +3 -1
  18. package/src/plugins/jupiter/constants.js.map +1 -1
  19. package/src/plugins/jupiter/filters.d.ts +1 -0
  20. package/src/plugins/jupiter/filters.js +11 -1
  21. package/src/plugins/jupiter/filters.js.map +1 -1
  22. package/src/plugins/jupiter/helpers.d.ts +1 -0
  23. package/src/plugins/jupiter/helpers.js +10 -1
  24. package/src/plugins/jupiter/helpers.js.map +1 -1
  25. package/src/plugins/jupiter/index.js +6 -1
  26. package/src/plugins/jupiter/index.js.map +1 -1
  27. package/src/plugins/jupiter/structs.d.ts +14 -0
  28. package/src/plugins/jupiter/structs.js +14 -1
  29. package/src/plugins/jupiter/structs.js.map +1 -1
  30. package/src/plugins/jupiter/voteFetcher.d.ts +3 -0
  31. package/src/plugins/jupiter/voteFetcher.js +56 -0
  32. package/src/plugins/jupiter/voteFetcher.js.map +1 -0
  33. package/src/plugins/navi/collateralFetcher.js +8 -7
  34. package/src/plugins/navi/collateralFetcher.js.map +1 -1
  35. package/src/plugins/navi/reservesJob.js +5 -4
  36. package/src/plugins/navi/reservesJob.js.map +1 -1
  37. package/src/plugins/scallop/helpers.d.ts +0 -49
  38. package/src/plugins/scallop/helpers.js +1 -39
  39. package/src/plugins/scallop/helpers.js.map +1 -1
  40. package/src/plugins/scallop/lendingsFetcher.js +17 -14
  41. package/src/plugins/scallop/lendingsFetcher.js.map +1 -1
  42. package/src/plugins/scallop/marketJob.js +16 -16
  43. package/src/plugins/scallop/marketJob.js.map +1 -1
  44. package/src/plugins/scallop/obligationsFetcher.js +25 -21
  45. package/src/plugins/scallop/obligationsFetcher.js.map +1 -1
  46. package/src/plugins/scallop/poolsJob.js +7 -12
  47. package/src/plugins/scallop/poolsJob.js.map +1 -1
  48. package/src/plugins/scallop/spoolsMarketJob.js +8 -15
  49. package/src/plugins/scallop/spoolsMarketJob.js.map +1 -1
  50. package/src/plugins/scallop/types/coin.d.ts +1 -1
  51. package/src/plugins/scallop/types/market.d.ts +3 -4
  52. package/src/plugins/scallop/types/market.js.map +1 -1
  53. package/src/plugins/sushiswap/helpers.js +24 -24
  54. package/src/plugins/tokens/fetchers/sui-nfts.js +47 -107
  55. package/src/plugins/tokens/fetchers/sui-nfts.js.map +1 -1
  56. package/src/plugins/tokens/types.d.ts +0 -48
  57. package/src/plugins/turbos/clmmsPositionsFetcher.js +18 -16
  58. package/src/plugins/turbos/clmmsPositionsFetcher.js.map +1 -1
  59. package/src/plugins/turbos/helper.d.ts +3 -3
  60. package/src/plugins/turbos/helper.js +6 -4
  61. package/src/plugins/turbos/helper.js.map +1 -1
  62. package/src/plugins/turbos/poolsJob.js +10 -10
  63. package/src/plugins/turbos/poolsJob.js.map +1 -1
  64. package/src/plugins/uniswap-v2/helpers.js +22 -22
  65. package/src/utils/clients/getClientSui.d.ts +2 -2
  66. package/src/utils/clients/getClientSui.js +8 -3
  67. package/src/utils/clients/getClientSui.js.map +1 -1
  68. package/src/utils/clients/types.d.ts +2 -0
  69. package/src/utils/sei/constants.js +8 -8
  70. package/src/utils/sei/getQueryBalanceByOwner.js +4 -4
  71. package/src/utils/sui/getDynamicFieldObject.d.ts +4 -0
  72. package/src/utils/sui/{getMultipleObjectsSafe.js → getDynamicFieldObject.js} +9 -13
  73. package/src/utils/sui/getDynamicFieldObject.js.map +1 -0
  74. package/src/utils/sui/getDynamicFields.d.ts +3 -0
  75. package/src/utils/sui/getDynamicFields.js +38 -0
  76. package/src/utils/sui/getDynamicFields.js.map +1 -0
  77. package/src/utils/sui/getObject.d.ts +4 -0
  78. package/src/utils/sui/{getDynamicFieldsSafe.js → getObject.js} +8 -16
  79. package/src/utils/sui/getObject.js.map +1 -0
  80. package/src/utils/sui/getObjectDeletedResponse.d.ts +3 -0
  81. package/src/utils/sui/getObjectDeletedResponse.js +19 -0
  82. package/src/utils/sui/getObjectDeletedResponse.js.map +1 -0
  83. package/src/utils/sui/getObjectNotExistsResponse.d.ts +2 -0
  84. package/src/utils/sui/getObjectNotExistsResponse.js +14 -0
  85. package/src/utils/sui/getObjectNotExistsResponse.js.map +1 -0
  86. package/src/utils/sui/getOwnedObjects.d.ts +4 -0
  87. package/src/utils/sui/getOwnedObjects.js +36 -0
  88. package/src/utils/sui/getOwnedObjects.js.map +1 -0
  89. package/src/utils/sui/multiGetObjects.d.ts +4 -0
  90. package/src/utils/sui/multiGetObjects.js +32 -0
  91. package/src/utils/sui/multiGetObjects.js.map +1 -0
  92. package/src/utils/sui/queryEvents.d.ts +4 -0
  93. package/src/utils/sui/{queryEventSafe.js → queryEvents.js} +16 -12
  94. package/src/utils/sui/queryEvents.js.map +1 -0
  95. package/src/utils/sui/structs/kiosk.d.ts +7 -0
  96. package/src/utils/sui/structs/kiosk.js +3 -0
  97. package/src/utils/sui/structs/kiosk.js.map +1 -0
  98. package/src/utils/sui/structs/nft.d.ts +41 -0
  99. package/src/utils/sui/structs/nft.js +3 -0
  100. package/src/utils/sui/structs/nft.js.map +1 -0
  101. package/src/utils/sui/types.d.ts +23 -0
  102. package/src/utils/sui/types.js +3 -0
  103. package/src/utils/sui/types.js.map +1 -0
  104. package/src/utils/sui/getDynamicFieldsSafe.d.ts +0 -13
  105. package/src/utils/sui/getDynamicFieldsSafe.js.map +0 -1
  106. package/src/utils/sui/getFormattedCollectionNameAndId.d.ts +0 -4
  107. package/src/utils/sui/getFormattedCollectionNameAndId.js +0 -19
  108. package/src/utils/sui/getFormattedCollectionNameAndId.js.map +0 -1
  109. package/src/utils/sui/getMultipleObjectsSafe.d.ts +0 -67
  110. package/src/utils/sui/getMultipleObjectsSafe.js.map +0 -1
  111. package/src/utils/sui/queryEventSafe.d.ts +0 -14
  112. package/src/utils/sui/queryEventSafe.js.map +0 -1
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.multiGetObjects = void 0;
13
+ const maxSize = 50;
14
+ function multiGetObjects(client, ids, options) {
15
+ return __awaiter(this, void 0, void 0, function* () {
16
+ if (ids.length === 0)
17
+ return [];
18
+ const items = [];
19
+ const idsToFetch = [...ids];
20
+ while (idsToFetch.length !== 0) {
21
+ const currIdsToFetch = idsToFetch.splice(0, maxSize);
22
+ const currItems = (yield client.multiGetObjects({
23
+ ids: currIdsToFetch,
24
+ options: Object.assign(Object.assign({}, options), { showType: true, showContent: true }),
25
+ }));
26
+ items.push(...currItems);
27
+ }
28
+ return items;
29
+ });
30
+ }
31
+ exports.multiGetObjects = multiGetObjects;
32
+ //# sourceMappingURL=multiGetObjects.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"multiGetObjects.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/sui/multiGetObjects.ts"],"names":[],"mappings":";;;;;;;;;;;;AAIA,MAAM,OAAO,GAAG,EAAE,CAAC;AAEnB,SAAsB,eAAe,CACnC,MAAiB,EACjB,GAAa,EACb,OAA8B;;QAE9B,IAAI,GAAG,CAAC,MAAM,KAAK,CAAC;YAAE,OAAO,EAAE,CAAC;QAEhC,MAAM,KAAK,GAAwB,EAAE,CAAC;QACtC,MAAM,UAAU,GAAG,CAAC,GAAG,GAAG,CAAC,CAAC;QAC5B,OAAO,UAAU,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAC/B,MAAM,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;YACrD,MAAM,SAAS,GAAG,CAAC,MAAM,MAAM,CAAC,eAAe,CAAC;gBAC9C,GAAG,EAAE,cAAc;gBACnB,OAAO,kCACF,OAAO,KACV,QAAQ,EAAE,IAAI,EACd,WAAW,EAAE,IAAI,GAClB;aACF,CAAC,CAAwB,CAAC;YAC3B,KAAK,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC,CAAC;QAC3B,CAAC;QACD,OAAO,KAAK,CAAC;IACf,CAAC;CAAA;AAtBD,0CAsBC"}
@@ -0,0 +1,4 @@
1
+ import { SuiEventFilter } from '@mysten/sui.js/client';
2
+ import { SuiClient } from '../clients/types';
3
+ import { Event } from './types';
4
+ export declare function queryEvents<K>(client: SuiClient, query: SuiEventFilter): Promise<Event<K>[]>;
@@ -9,22 +9,26 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- function queryEventsSafe(client, query) {
12
+ exports.queryEvents = void 0;
13
+ const maxPage = 25;
14
+ function queryEvents(client, query) {
13
15
  return __awaiter(this, void 0, void 0, function* () {
14
- const eventsData = [];
15
- let resp;
16
+ let page = 0;
17
+ let hasNextPage = true;
16
18
  let cursor;
19
+ const objects = [];
17
20
  do {
18
- resp = yield client.queryEvents({
19
- query,
21
+ const res = yield client.queryEvents({
20
22
  cursor,
23
+ query,
21
24
  });
22
- cursor = resp.nextCursor;
23
- if (resp.data.length > 0)
24
- eventsData.push(...resp.data);
25
- } while (resp.hasNextPage);
26
- return eventsData;
25
+ objects.push(...res.data);
26
+ cursor = res.nextCursor;
27
+ hasNextPage = res.hasNextPage;
28
+ page += 1;
29
+ } while (hasNextPage && page <= maxPage);
30
+ return objects;
27
31
  });
28
32
  }
29
- exports.default = queryEventsSafe;
30
- //# sourceMappingURL=queryEventSafe.js.map
33
+ exports.queryEvents = queryEvents;
34
+ //# sourceMappingURL=queryEvents.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"queryEvents.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/sui/queryEvents.ts"],"names":[],"mappings":";;;;;;;;;;;;AAIA,MAAM,OAAO,GAAG,EAAE,CAAC;AAEnB,SAAsB,WAAW,CAAI,MAAiB,EAAE,KAAqB;;QAC3E,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;AAlBD,kCAkBC"}
@@ -0,0 +1,7 @@
1
+ export type KioskStruct = {
2
+ id: {
3
+ id: string;
4
+ };
5
+ kiosk: string;
6
+ owner: string;
7
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=kiosk.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kiosk.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/utils/sui/structs/kiosk.ts"],"names":[],"mappings":""}
@@ -0,0 +1,41 @@
1
+ export type NftStruct = {
2
+ id?: {
3
+ id: string;
4
+ };
5
+ name?: string;
6
+ description?: string;
7
+ url?: string;
8
+ collection_id?: string;
9
+ animation_url?: string;
10
+ external_url?: string;
11
+ attributes_keys?: string[];
12
+ attributes_values?: string[];
13
+ amount?: number | string;
14
+ tick?: string;
15
+ attributes?: {
16
+ type: string;
17
+ fields: {
18
+ map: {
19
+ type: string;
20
+ fields: {
21
+ contents: Attribute[];
22
+ };
23
+ };
24
+ };
25
+ };
26
+ };
27
+ export type Attribute = {
28
+ type: string;
29
+ fields: {
30
+ key: string;
31
+ value: string;
32
+ };
33
+ };
34
+ export type NftDisplayData = {
35
+ name?: string;
36
+ description?: string;
37
+ creator?: string;
38
+ image_url?: string;
39
+ project_url?: string;
40
+ external_link?: string;
41
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=nft.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nft.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/utils/sui/structs/nft.ts"],"names":[],"mappings":""}
@@ -0,0 +1,23 @@
1
+ import { SuiEvent, SuiObjectData, SuiObjectResponse } from '@mysten/sui.js/client';
2
+ export type ParsedData<K> = {
3
+ hasPublicTransfer: boolean;
4
+ type: string;
5
+ dataType: 'moveObject';
6
+ fields: K;
7
+ };
8
+ export type ParsedDataPackage = {
9
+ dataType: 'package';
10
+ disassembled: {
11
+ [key: string]: unknown;
12
+ };
13
+ };
14
+ export type ObjectData<K> = SuiObjectData & {
15
+ type: string;
16
+ content: ParsedData<K> | null;
17
+ };
18
+ export type ObjectResponse<K> = SuiObjectResponse & {
19
+ data?: ObjectData<K> | null;
20
+ };
21
+ export type Event<K> = SuiEvent & {
22
+ parsedJson?: K;
23
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/sui/types.ts"],"names":[],"mappings":""}
@@ -1,13 +0,0 @@
1
- import { JsonRpcProvider } from '@mysten/sui.js';
2
- export default function getDynamicFieldsSafe(client: JsonRpcProvider, parentId: string): Promise<{
3
- type: "DynamicField" | "DynamicObject";
4
- objectType: string;
5
- objectId: string;
6
- version: number;
7
- digest: string;
8
- name: {
9
- type: string;
10
- value?: any;
11
- };
12
- bcsName: string;
13
- }[]>;
@@ -1 +0,0 @@
1
- {"version":3,"file":"getDynamicFieldsSafe.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/sui/getDynamicFieldsSafe.ts"],"names":[],"mappings":";;;;;;;;;;;AAEA,SAA8B,oBAAoB,CAChD,MAAuB,EACvB,QAAgB;;QAEhB,MAAM,aAAa,GAAG,EAAE,CAAC;QACzB,IAAI,IAAI,CAAC;QACT,IAAI,MAAM,CAAC;QACX,GAAG,CAAC;YACF,IAAI,GAAG,MAAM,MAAM,CAAC,gBAAgB,CAAC;gBACnC,QAAQ;gBACR,MAAM;aACP,CAAC,CAAC;YACH,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC;YACzB,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC;gBAAE,aAAa,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC;QAC7D,CAAC,QAAQ,IAAI,CAAC,WAAW,EAAE;QAC3B,OAAO,aAAa,CAAC;IACvB,CAAC;CAAA;AAhBD,uCAgBC"}
@@ -1,4 +0,0 @@
1
- export default function getFormattedCollectionNameAndId(type: string): {
2
- collectionName: string | undefined;
3
- collectionId: string | undefined;
4
- };
@@ -1,19 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const aptos_1 = require("../aptos");
4
- function getFormattedCollectionNameAndId(type) {
5
- const types = (0, aptos_1.parseTypeString)(type);
6
- let module;
7
- let tempTypes = types;
8
- while (tempTypes.struct && tempTypes.keys && tempTypes.keys.length === 1) {
9
- module = module ? `${module} ${tempTypes.struct}` : tempTypes.struct;
10
- [tempTypes] = tempTypes.keys;
11
- }
12
- module = module ? `${module} ${tempTypes.struct}` : tempTypes.struct;
13
- return {
14
- collectionName: module,
15
- collectionId: types.type,
16
- };
17
- }
18
- exports.default = getFormattedCollectionNameAndId;
19
- //# sourceMappingURL=getFormattedCollectionNameAndId.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getFormattedCollectionNameAndId.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/sui/getFormattedCollectionNameAndId.ts"],"names":[],"mappings":";;AAAA,oCAA2C;AAE3C,SAAwB,+BAA+B,CAAC,IAAY;IAIlE,MAAM,KAAK,GAAG,IAAA,uBAAe,EAAC,IAAI,CAAC,CAAC;IAEpC,IAAI,MAAM,CAAC;IACX,IAAI,SAAS,GAAG,KAAK,CAAC;IACtB,OAAO,SAAS,CAAC,MAAM,IAAI,SAAS,CAAC,IAAI,IAAI,SAAS,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACzE,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,GAAG,MAAM,IAAI,SAAS,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC;QACrE,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,IAAI,CAAC;IAC/B,CAAC;IACD,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,GAAG,MAAM,IAAI,SAAS,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC;IAErE,OAAO;QACL,cAAc,EAAE,MAAM;QACtB,YAAY,EAAE,KAAK,CAAC,IAAI;KACzB,CAAC;AACJ,CAAC;AAlBD,kDAkBC"}
@@ -1,67 +0,0 @@
1
- import { JsonRpcProvider } from '@mysten/sui.js';
2
- export default function getMultipleSuiObjectsSafe(client: JsonRpcProvider, ids: string[], options?: {
3
- showContent?: boolean;
4
- showType?: boolean;
5
- showBcs?: boolean;
6
- showDisplay?: boolean;
7
- showOwner?: boolean;
8
- showPreviousTransaction?: boolean;
9
- showStorageRebate?: boolean;
10
- }): Promise<{
11
- data?: {
12
- objectId: string;
13
- version: string;
14
- digest: string;
15
- type?: string | undefined;
16
- bcs?: {
17
- type: string;
18
- version: number;
19
- hasPublicTransfer: boolean;
20
- dataType: "moveObject";
21
- bcsBytes: string;
22
- } | {
23
- id: string;
24
- dataType: "package";
25
- moduleMap: Record<string, string>;
26
- } | undefined;
27
- owner?: {
28
- AddressOwner: string;
29
- } | {
30
- ObjectOwner: string;
31
- } | {
32
- Shared: {
33
- initial_shared_version: number;
34
- };
35
- } | "Immutable" | undefined;
36
- storageRebate?: string | undefined;
37
- previousTransaction?: string | undefined;
38
- content?: {
39
- type: string;
40
- fields: Record<string, any>;
41
- hasPublicTransfer: boolean;
42
- dataType: "moveObject";
43
- } | {
44
- disassembled: Record<string, string>;
45
- dataType: "package";
46
- } | undefined;
47
- display?: Record<string, string> | {
48
- data: Record<string, string> | null;
49
- error: {
50
- code: string;
51
- version?: number | undefined;
52
- digest?: string | undefined;
53
- error?: string | undefined;
54
- object_id?: string | undefined;
55
- parent_object_id?: string | undefined;
56
- } | null;
57
- } | undefined;
58
- } | undefined;
59
- error?: {
60
- code: string;
61
- version?: number | undefined;
62
- digest?: string | undefined;
63
- error?: string | undefined;
64
- object_id?: string | undefined;
65
- parent_object_id?: string | undefined;
66
- } | undefined;
67
- }[]>;
@@ -1 +0,0 @@
1
- {"version":3,"file":"getMultipleObjectsSafe.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/sui/getMultipleObjectsSafe.ts"],"names":[],"mappings":";;;;;;;;;;;AAEA,SAA8B,yBAAyB,CACrD,MAAuB,EACvB,GAAa,EACb,OAQC;;QAED,MAAM,OAAO,GAAG,EAAE,CAAC;QACnB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,GAAG,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC;YACzC,MAAM,aAAa,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC;YACrD,MAAM,WAAW,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC;gBAC/C,GAAG,EAAE,aAAa;gBAClB,OAAO;aACR,CAAC,CAAC;YACH,OAAO,CAAC,IAAI,CAAC,GAAG,WAAW,CAAC,CAAC;QAC/B,CAAC;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;CAAA;AAvBD,4CAuBC"}
@@ -1,14 +0,0 @@
1
- import { JsonRpcProvider, SuiEventFilter } from '@mysten/sui.js';
2
- export default function queryEventsSafe(client: JsonRpcProvider, query: SuiEventFilter): Promise<{
3
- id: {
4
- txDigest: string;
5
- eventSeq: string;
6
- };
7
- packageId: string;
8
- transactionModule: string;
9
- sender: string;
10
- type: string;
11
- parsedJson?: Record<string, any> | undefined;
12
- bcs?: string | undefined;
13
- timestampMs?: string | undefined;
14
- }[]>;
@@ -1 +0,0 @@
1
- {"version":3,"file":"queryEventSafe.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/sui/queryEventSafe.ts"],"names":[],"mappings":";;;;;;;;;;;AAEA,SAA8B,eAAe,CAC3C,MAAuB,EACvB,KAAqB;;QAErB,MAAM,UAAU,GAAG,EAAE,CAAC;QACtB,IAAI,IAAI,CAAC;QACT,IAAI,MAAM,CAAC;QACX,GAAG,CAAC;YACF,IAAI,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC;gBAC9B,KAAK;gBACL,MAAM;aACP,CAAC,CAAC;YACH,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC;YACzB,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC;gBAAE,UAAU,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC;QAC1D,CAAC,QAAQ,IAAI,CAAC,WAAW,EAAE;QAC3B,OAAO,UAAU,CAAC;IACpB,CAAC;CAAA;AAhBD,kCAgBC"}