@sonarwatch/portfolio-plugins 0.11.97 → 0.11.99

Sign up to get free protection for your applications and to get access to all the features.
Files changed (144) hide show
  1. package/CHANGELOG.md +1095 -1087
  2. package/README.md +3 -3
  3. package/package.json +3 -3
  4. package/src/plugins/01/depostisFetcher.js +2 -1
  5. package/src/plugins/01/depostisFetcher.js.map +1 -1
  6. package/src/plugins/aave/helpers.js +2 -1
  7. package/src/plugins/aave/helpers.js.map +1 -1
  8. package/src/plugins/aftermath/poolsJob.js +22 -20
  9. package/src/plugins/aftermath/poolsJob.js.map +1 -1
  10. package/src/plugins/aptin/depositsFetcher.js +2 -1
  11. package/src/plugins/aptin/depositsFetcher.js.map +1 -1
  12. package/src/plugins/aries/depositsFetcher.js +2 -1
  13. package/src/plugins/aries/depositsFetcher.js.map +1 -1
  14. package/src/plugins/aurory/helpers.d.ts +1 -1
  15. package/src/plugins/aurory/helpers.js +1 -12
  16. package/src/plugins/aurory/helpers.js.map +1 -1
  17. package/src/plugins/aurory/stakingFetcher.js +1 -1
  18. package/src/plugins/aurory/stakingFetcher.js.map +1 -1
  19. package/src/plugins/balancer/helpers/pools.js +21 -21
  20. package/src/plugins/bucket/collateralFetcher.js +7 -9
  21. package/src/plugins/bucket/collateralFetcher.js.map +1 -1
  22. package/src/plugins/cetus/clmmsFetcher.js +5 -5
  23. package/src/plugins/cetus/clmmsFetcher.js.map +1 -1
  24. package/src/plugins/cetus/helpers.d.ts +4 -4
  25. package/src/plugins/cetus/helpers.js +23 -12
  26. package/src/plugins/cetus/helpers.js.map +1 -1
  27. package/src/plugins/cetus/poolsJob.js +5 -10
  28. package/src/plugins/cetus/poolsJob.js.map +1 -1
  29. package/src/plugins/compound/getPositionsV2Fetcher.js +2 -1
  30. package/src/plugins/compound/getPositionsV2Fetcher.js.map +1 -1
  31. package/src/plugins/compound/getPositionsV3Fetcher.js +2 -1
  32. package/src/plugins/compound/getPositionsV3Fetcher.js.map +1 -1
  33. package/src/plugins/drift/deposits.js +2 -1
  34. package/src/plugins/drift/deposits.js.map +1 -1
  35. package/src/plugins/flash/perpetualFetcher.js +2 -1
  36. package/src/plugins/flash/perpetualFetcher.js.map +1 -1
  37. package/src/plugins/flowmatic/stakingFetcher.js +2 -0
  38. package/src/plugins/flowmatic/stakingFetcher.js.map +1 -1
  39. package/src/plugins/genesysgo/stakingFetcher.js +2 -0
  40. package/src/plugins/genesysgo/stakingFetcher.js.map +1 -1
  41. package/src/plugins/jupiter/perpetualFetcher.js +2 -1
  42. package/src/plugins/jupiter/perpetualFetcher.js.map +1 -1
  43. package/src/plugins/kamino/lendsFetcher.js +6 -3
  44. package/src/plugins/kamino/lendsFetcher.js.map +1 -1
  45. package/src/plugins/maker/vaultsFetcher.js +2 -1
  46. package/src/plugins/maker/vaultsFetcher.js.map +1 -1
  47. package/src/plugins/mango/boostFetcher.js +2 -1
  48. package/src/plugins/mango/boostFetcher.js.map +1 -1
  49. package/src/plugins/mango/collateralFetcher.js +2 -1
  50. package/src/plugins/mango/collateralFetcher.js.map +1 -1
  51. package/src/plugins/mango/redeemFetcher.js +2 -1
  52. package/src/plugins/mango/redeemFetcher.js.map +1 -1
  53. package/src/plugins/maple/ethereumFetcher.js +2 -1
  54. package/src/plugins/maple/ethereumFetcher.js.map +1 -1
  55. package/src/plugins/marginfi/fetcherExecutor.js +2 -1
  56. package/src/plugins/marginfi/fetcherExecutor.js.map +1 -1
  57. package/src/plugins/morpho/aaveV3CollateralFetcher.js +2 -1
  58. package/src/plugins/morpho/aaveV3CollateralFetcher.js.map +1 -1
  59. package/src/plugins/navi/collateralFetcher.js +10 -8
  60. package/src/plugins/navi/collateralFetcher.js.map +1 -1
  61. package/src/plugins/navi/reservesJob.js +5 -4
  62. package/src/plugins/navi/reservesJob.js.map +1 -1
  63. package/src/plugins/port/obligationsFetcher.js +2 -1
  64. package/src/plugins/port/obligationsFetcher.js.map +1 -1
  65. package/src/plugins/scallop/helpers.d.ts +0 -49
  66. package/src/plugins/scallop/helpers.js +1 -39
  67. package/src/plugins/scallop/helpers.js.map +1 -1
  68. package/src/plugins/scallop/lendingsFetcher.js +19 -15
  69. package/src/plugins/scallop/lendingsFetcher.js.map +1 -1
  70. package/src/plugins/scallop/marketJob.js +16 -16
  71. package/src/plugins/scallop/marketJob.js.map +1 -1
  72. package/src/plugins/scallop/obligationsFetcher.js +27 -22
  73. package/src/plugins/scallop/obligationsFetcher.js.map +1 -1
  74. package/src/plugins/scallop/poolsJob.js +7 -12
  75. package/src/plugins/scallop/poolsJob.js.map +1 -1
  76. package/src/plugins/scallop/spoolsMarketJob.js +8 -15
  77. package/src/plugins/scallop/spoolsMarketJob.js.map +1 -1
  78. package/src/plugins/scallop/types/coin.d.ts +1 -1
  79. package/src/plugins/scallop/types/market.d.ts +3 -4
  80. package/src/plugins/scallop/types/market.js.map +1 -1
  81. package/src/plugins/solend/obligationsFetcher.js +2 -1
  82. package/src/plugins/solend/obligationsFetcher.js.map +1 -1
  83. package/src/plugins/sushiswap/helpers.js +24 -24
  84. package/src/plugins/thala/vaultsFetcher.js +2 -1
  85. package/src/plugins/thala/vaultsFetcher.js.map +1 -1
  86. package/src/plugins/tokens/fetchers/sui-nfts.js +47 -107
  87. package/src/plugins/tokens/fetchers/sui-nfts.js.map +1 -1
  88. package/src/plugins/tokens/types.d.ts +0 -48
  89. package/src/plugins/turbos/clmmsPositionsFetcher.js +18 -16
  90. package/src/plugins/turbos/clmmsPositionsFetcher.js.map +1 -1
  91. package/src/plugins/turbos/helper.d.ts +3 -3
  92. package/src/plugins/turbos/helper.js +6 -4
  93. package/src/plugins/turbos/helper.js.map +1 -1
  94. package/src/plugins/turbos/poolsJob.js +10 -10
  95. package/src/plugins/turbos/poolsJob.js.map +1 -1
  96. package/src/plugins/uniswap-v2/helpers.js +22 -22
  97. package/src/utils/clients/getClientSui.d.ts +2 -2
  98. package/src/utils/clients/getClientSui.js +8 -3
  99. package/src/utils/clients/getClientSui.js.map +1 -1
  100. package/src/utils/clients/types.d.ts +2 -0
  101. package/src/utils/sei/constants.js +8 -8
  102. package/src/utils/sei/getQueryBalanceByOwner.js +4 -4
  103. package/src/utils/sui/getDynamicFieldObject.d.ts +4 -0
  104. package/src/utils/sui/{getMultipleObjectsSafe.js → getDynamicFieldObject.js} +9 -13
  105. package/src/utils/sui/getDynamicFieldObject.js.map +1 -0
  106. package/src/utils/sui/getDynamicFields.d.ts +3 -0
  107. package/src/utils/sui/getDynamicFields.js +38 -0
  108. package/src/utils/sui/getDynamicFields.js.map +1 -0
  109. package/src/utils/sui/getObject.d.ts +4 -0
  110. package/src/utils/sui/{getDynamicFieldsSafe.js → getObject.js} +8 -16
  111. package/src/utils/sui/getObject.js.map +1 -0
  112. package/src/utils/sui/getObjectDeletedResponse.d.ts +3 -0
  113. package/src/utils/sui/getObjectDeletedResponse.js +19 -0
  114. package/src/utils/sui/getObjectDeletedResponse.js.map +1 -0
  115. package/src/utils/sui/getObjectNotExistsResponse.d.ts +2 -0
  116. package/src/utils/sui/getObjectNotExistsResponse.js +14 -0
  117. package/src/utils/sui/getObjectNotExistsResponse.js.map +1 -0
  118. package/src/utils/sui/getOwnedObjects.d.ts +4 -0
  119. package/src/utils/sui/getOwnedObjects.js +36 -0
  120. package/src/utils/sui/getOwnedObjects.js.map +1 -0
  121. package/src/utils/sui/multiGetObjects.d.ts +4 -0
  122. package/src/utils/sui/multiGetObjects.js +32 -0
  123. package/src/utils/sui/multiGetObjects.js.map +1 -0
  124. package/src/utils/sui/queryEvents.d.ts +4 -0
  125. package/src/utils/sui/{queryEventSafe.js → queryEvents.js} +16 -12
  126. package/src/utils/sui/queryEvents.js.map +1 -0
  127. package/src/utils/sui/structs/kiosk.d.ts +7 -0
  128. package/src/utils/sui/structs/kiosk.js +3 -0
  129. package/src/utils/sui/structs/kiosk.js.map +1 -0
  130. package/src/utils/sui/structs/nft.d.ts +41 -0
  131. package/src/utils/sui/structs/nft.js +3 -0
  132. package/src/utils/sui/structs/nft.js.map +1 -0
  133. package/src/utils/sui/types.d.ts +23 -0
  134. package/src/utils/sui/types.js +3 -0
  135. package/src/utils/sui/types.js.map +1 -0
  136. package/src/utils/sui/getDynamicFieldsSafe.d.ts +0 -13
  137. package/src/utils/sui/getDynamicFieldsSafe.js.map +0 -1
  138. package/src/utils/sui/getFormattedCollectionNameAndId.d.ts +0 -4
  139. package/src/utils/sui/getFormattedCollectionNameAndId.js +0 -19
  140. package/src/utils/sui/getFormattedCollectionNameAndId.js.map +0 -1
  141. package/src/utils/sui/getMultipleObjectsSafe.d.ts +0 -67
  142. package/src/utils/sui/getMultipleObjectsSafe.js.map +0 -1
  143. package/src/utils/sui/queryEventSafe.d.ts +0 -14
  144. 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"}