@sonarwatch/portfolio-plugins 0.11.97 → 0.11.98

Sign up to get free protection for your applications and to get access to all the features.
Files changed (95) hide show
  1. package/CHANGELOG.md +1091 -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/navi/collateralFetcher.js +8 -7
  17. package/src/plugins/navi/collateralFetcher.js.map +1 -1
  18. package/src/plugins/navi/reservesJob.js +5 -4
  19. package/src/plugins/navi/reservesJob.js.map +1 -1
  20. package/src/plugins/scallop/helpers.d.ts +0 -49
  21. package/src/plugins/scallop/helpers.js +1 -39
  22. package/src/plugins/scallop/helpers.js.map +1 -1
  23. package/src/plugins/scallop/lendingsFetcher.js +17 -14
  24. package/src/plugins/scallop/lendingsFetcher.js.map +1 -1
  25. package/src/plugins/scallop/marketJob.js +16 -16
  26. package/src/plugins/scallop/marketJob.js.map +1 -1
  27. package/src/plugins/scallop/obligationsFetcher.js +25 -21
  28. package/src/plugins/scallop/obligationsFetcher.js.map +1 -1
  29. package/src/plugins/scallop/poolsJob.js +7 -12
  30. package/src/plugins/scallop/poolsJob.js.map +1 -1
  31. package/src/plugins/scallop/spoolsMarketJob.js +8 -15
  32. package/src/plugins/scallop/spoolsMarketJob.js.map +1 -1
  33. package/src/plugins/scallop/types/coin.d.ts +1 -1
  34. package/src/plugins/scallop/types/market.d.ts +3 -4
  35. package/src/plugins/scallop/types/market.js.map +1 -1
  36. package/src/plugins/sushiswap/helpers.js +24 -24
  37. package/src/plugins/tokens/fetchers/sui-nfts.js +47 -107
  38. package/src/plugins/tokens/fetchers/sui-nfts.js.map +1 -1
  39. package/src/plugins/tokens/types.d.ts +0 -48
  40. package/src/plugins/turbos/clmmsPositionsFetcher.js +18 -16
  41. package/src/plugins/turbos/clmmsPositionsFetcher.js.map +1 -1
  42. package/src/plugins/turbos/helper.d.ts +3 -3
  43. package/src/plugins/turbos/helper.js +6 -4
  44. package/src/plugins/turbos/helper.js.map +1 -1
  45. package/src/plugins/turbos/poolsJob.js +10 -10
  46. package/src/plugins/turbos/poolsJob.js.map +1 -1
  47. package/src/plugins/uniswap-v2/helpers.js +22 -22
  48. package/src/utils/clients/getClientSui.d.ts +2 -2
  49. package/src/utils/clients/getClientSui.js +8 -3
  50. package/src/utils/clients/getClientSui.js.map +1 -1
  51. package/src/utils/clients/types.d.ts +2 -0
  52. package/src/utils/sei/constants.js +8 -8
  53. package/src/utils/sei/getQueryBalanceByOwner.js +4 -4
  54. package/src/utils/sui/getDynamicFieldObject.d.ts +4 -0
  55. package/src/utils/sui/{getMultipleObjectsSafe.js → getDynamicFieldObject.js} +9 -13
  56. package/src/utils/sui/getDynamicFieldObject.js.map +1 -0
  57. package/src/utils/sui/getDynamicFields.d.ts +3 -0
  58. package/src/utils/sui/getDynamicFields.js +38 -0
  59. package/src/utils/sui/getDynamicFields.js.map +1 -0
  60. package/src/utils/sui/getObject.d.ts +4 -0
  61. package/src/utils/sui/{getDynamicFieldsSafe.js → getObject.js} +8 -16
  62. package/src/utils/sui/getObject.js.map +1 -0
  63. package/src/utils/sui/getObjectDeletedResponse.d.ts +3 -0
  64. package/src/utils/sui/getObjectDeletedResponse.js +19 -0
  65. package/src/utils/sui/getObjectDeletedResponse.js.map +1 -0
  66. package/src/utils/sui/getObjectNotExistsResponse.d.ts +2 -0
  67. package/src/utils/sui/getObjectNotExistsResponse.js +14 -0
  68. package/src/utils/sui/getObjectNotExistsResponse.js.map +1 -0
  69. package/src/utils/sui/getOwnedObjects.d.ts +4 -0
  70. package/src/utils/sui/getOwnedObjects.js +36 -0
  71. package/src/utils/sui/getOwnedObjects.js.map +1 -0
  72. package/src/utils/sui/multiGetObjects.d.ts +4 -0
  73. package/src/utils/sui/multiGetObjects.js +32 -0
  74. package/src/utils/sui/multiGetObjects.js.map +1 -0
  75. package/src/utils/sui/queryEvents.d.ts +4 -0
  76. package/src/utils/sui/{queryEventSafe.js → queryEvents.js} +16 -12
  77. package/src/utils/sui/queryEvents.js.map +1 -0
  78. package/src/utils/sui/structs/kiosk.d.ts +7 -0
  79. package/src/utils/sui/structs/kiosk.js +3 -0
  80. package/src/utils/sui/structs/kiosk.js.map +1 -0
  81. package/src/utils/sui/structs/nft.d.ts +41 -0
  82. package/src/utils/sui/structs/nft.js +3 -0
  83. package/src/utils/sui/structs/nft.js.map +1 -0
  84. package/src/utils/sui/types.d.ts +23 -0
  85. package/src/utils/sui/types.js +3 -0
  86. package/src/utils/sui/types.js.map +1 -0
  87. package/src/utils/sui/getDynamicFieldsSafe.d.ts +0 -13
  88. package/src/utils/sui/getDynamicFieldsSafe.js.map +0 -1
  89. package/src/utils/sui/getFormattedCollectionNameAndId.d.ts +0 -4
  90. package/src/utils/sui/getFormattedCollectionNameAndId.js +0 -19
  91. package/src/utils/sui/getFormattedCollectionNameAndId.js.map +0 -1
  92. package/src/utils/sui/getMultipleObjectsSafe.d.ts +0 -67
  93. package/src/utils/sui/getMultipleObjectsSafe.js.map +0 -1
  94. package/src/utils/sui/queryEventSafe.d.ts +0 -14
  95. package/src/utils/sui/queryEventSafe.js.map +0 -1
@@ -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"}