@sonarwatch/portfolio-plugins 0.14.145 → 0.14.152

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (152) hide show
  1. package/CHANGELOG.md +2232 -2204
  2. package/README.md +3 -3
  3. package/package.json +1 -1
  4. package/src/plugins/allbridge/constants.d.ts +0 -6
  5. package/src/plugins/allbridge/constants.js +1 -9
  6. package/src/plugins/allbridge/constants.js.map +1 -1
  7. package/src/plugins/allbridge/helpers.d.ts +1 -1
  8. package/src/plugins/allbridge/helpers.js +1 -3
  9. package/src/plugins/allbridge/helpers.js.map +1 -1
  10. package/src/plugins/allbridge/positionsFetcher.js +2 -1
  11. package/src/plugins/allbridge/positionsFetcher.js.map +1 -1
  12. package/src/plugins/allbridge/structs.d.ts +13 -0
  13. package/src/plugins/allbridge/structs.js +14 -0
  14. package/src/plugins/allbridge/structs.js.map +1 -0
  15. package/src/plugins/allbridge/types.d.ts +0 -6
  16. package/src/plugins/balancer/helpers/pools.js +21 -21
  17. package/src/plugins/bonfida/constants.js +1 -1
  18. package/src/plugins/bonfida/constants.js.map +1 -1
  19. package/src/plugins/divvy/constants.d.ts +0 -2
  20. package/src/plugins/divvy/constants.js +1 -7
  21. package/src/plugins/divvy/constants.js.map +1 -1
  22. package/src/plugins/divvy/houseJob.js +6 -3
  23. package/src/plugins/divvy/houseJob.js.map +1 -1
  24. package/src/plugins/divvy/housePoolFetcher.js +9 -11
  25. package/src/plugins/divvy/housePoolFetcher.js.map +1 -1
  26. package/src/plugins/divvy/stakingFetcher.js +7 -12
  27. package/src/plugins/divvy/stakingFetcher.js.map +1 -1
  28. package/src/plugins/divvy/structs.d.ts +57 -0
  29. package/src/plugins/divvy/structs.js +57 -0
  30. package/src/plugins/divvy/structs.js.map +1 -0
  31. package/src/plugins/elemental/constants.d.ts +4 -2
  32. package/src/plugins/elemental/constants.js +3 -7
  33. package/src/plugins/elemental/constants.js.map +1 -1
  34. package/src/plugins/elemental/filters.d.ts +0 -1
  35. package/src/plugins/elemental/filters.js +1 -6
  36. package/src/plugins/elemental/filters.js.map +1 -1
  37. package/src/plugins/elemental/helpers.js +2 -2
  38. package/src/plugins/elemental/helpers.js.map +1 -1
  39. package/src/plugins/elemental/poolsJob.js +4 -4
  40. package/src/plugins/elemental/poolsJob.js.map +1 -1
  41. package/src/plugins/ensofi/constants.d.ts +4 -2
  42. package/src/plugins/ensofi/constants.js +3 -7
  43. package/src/plugins/ensofi/constants.js.map +1 -1
  44. package/src/plugins/ensofi/idl.d.ts +149 -6
  45. package/src/plugins/ensofi/idl.js +1074 -61
  46. package/src/plugins/ensofi/idl.js.map +1 -1
  47. package/src/plugins/ensofi/solanaLoansFetcher.js +23 -37
  48. package/src/plugins/ensofi/solanaLoansFetcher.js.map +1 -1
  49. package/src/plugins/ensofi/structs.d.ts +58 -0
  50. package/src/plugins/ensofi/structs.js +60 -0
  51. package/src/plugins/ensofi/structs.js.map +1 -0
  52. package/src/plugins/jupiter/governance/constants.js +3 -3
  53. package/src/plugins/jupiter/governance/constants.js.map +1 -1
  54. package/src/plugins/jupiter/launchpad/constants.d.ts +1 -0
  55. package/src/plugins/jupiter/launchpad/constants.js +8 -7
  56. package/src/plugins/jupiter/launchpad/constants.js.map +1 -1
  57. package/src/plugins/jupiter/pricingJob.js +2 -1
  58. package/src/plugins/jupiter/pricingJob.js.map +1 -1
  59. package/src/plugins/orca/getWhirlpoolPositions.js +7 -7
  60. package/src/plugins/orca/getWhirlpoolPositions.js.map +1 -1
  61. package/src/plugins/orca/types.d.ts +2 -0
  62. package/src/plugins/picasso/constants.d.ts +0 -2
  63. package/src/plugins/picasso/constants.js +1 -7
  64. package/src/plugins/picasso/constants.js.map +1 -1
  65. package/src/plugins/picasso/helpers.js +7 -4
  66. package/src/plugins/picasso/helpers.js.map +1 -1
  67. package/src/plugins/picasso/structs.d.ts +39 -0
  68. package/src/plugins/picasso/structs.js +37 -0
  69. package/src/plugins/picasso/structs.js.map +1 -0
  70. package/src/plugins/picasso/unstakingNftsJob.js +2 -1
  71. package/src/plugins/picasso/unstakingNftsJob.js.map +1 -1
  72. package/src/plugins/picasso/unstakingPositionsFetcher.js +4 -4
  73. package/src/plugins/picasso/unstakingPositionsFetcher.js.map +1 -1
  74. package/src/plugins/ratex/getPool.d.ts +1 -2
  75. package/src/plugins/ratex/getPool.js +4 -3
  76. package/src/plugins/ratex/getPool.js.map +1 -1
  77. package/src/plugins/ratex/helpers.d.ts +7 -4
  78. package/src/plugins/ratex/helpers.js +11 -31
  79. package/src/plugins/ratex/helpers.js.map +1 -1
  80. package/src/plugins/ratex/marketsJob.js +4 -9
  81. package/src/plugins/ratex/marketsJob.js.map +1 -1
  82. package/src/plugins/ratex/positionsFetcher.js +2 -2
  83. package/src/plugins/ratex/positionsFetcher.js.map +1 -1
  84. package/src/plugins/ratex/structs.d.ts +211 -0
  85. package/src/plugins/ratex/structs.js +203 -0
  86. package/src/plugins/ratex/structs.js.map +1 -0
  87. package/src/plugins/ratex/types.d.ts +5 -76
  88. package/src/plugins/raydium/ammV2ApiJob.js +24 -0
  89. package/src/plugins/raydium/ammV2ApiJob.js.map +1 -1
  90. package/src/plugins/raydium/constants.d.ts +1 -0
  91. package/src/plugins/raydium/constants.js +2 -1
  92. package/src/plugins/raydium/constants.js.map +1 -1
  93. package/src/plugins/raydium/getRaydiumCLMMPositions.js +9 -5
  94. package/src/plugins/raydium/getRaydiumCLMMPositions.js.map +1 -1
  95. package/src/plugins/raydium/types.d.ts +14 -4
  96. package/src/plugins/sanctum/s1AirdropFetcher.js +2 -2
  97. package/src/plugins/sanctum/s1AirdropFetcher.js.map +1 -1
  98. package/src/plugins/sharky/collectionsJob.js +8 -9
  99. package/src/plugins/sharky/collectionsJob.js.map +1 -1
  100. package/src/plugins/sharky/constants.d.ts +0 -2
  101. package/src/plugins/sharky/constants.js +1 -7
  102. package/src/plugins/sharky/constants.js.map +1 -1
  103. package/src/plugins/sharky/loansFetcher.js +25 -19
  104. package/src/plugins/sharky/loansFetcher.js.map +1 -1
  105. package/src/plugins/sharky/structs.d.ts +96 -0
  106. package/src/plugins/sharky/structs.js +103 -0
  107. package/src/plugins/sharky/structs.js.map +1 -0
  108. package/src/plugins/sharky/types.d.ts +0 -15
  109. package/src/plugins/sharky/types.js +0 -8
  110. package/src/plugins/sharky/types.js.map +1 -1
  111. package/src/plugins/stabble/constants.d.ts +0 -3
  112. package/src/plugins/stabble/constants.js +1 -13
  113. package/src/plugins/stabble/constants.js.map +1 -1
  114. package/src/plugins/stabble/poolsJob.js +14 -9
  115. package/src/plugins/stabble/poolsJob.js.map +1 -1
  116. package/src/plugins/stabble/structs.d.ts +43 -0
  117. package/src/plugins/stabble/structs.js +42 -0
  118. package/src/plugins/stabble/structs.js.map +1 -0
  119. package/src/plugins/sushiswap/helpers.js +24 -24
  120. package/src/plugins/uniswap-v2/helpers.js +22 -22
  121. package/src/plugins/zeta/constants.d.ts +0 -2
  122. package/src/plugins/zeta/constants.js +1 -7
  123. package/src/plugins/zeta/constants.js.map +1 -1
  124. package/src/plugins/zeta/stakingFetcher.js +6 -3
  125. package/src/plugins/zeta/stakingFetcher.js.map +1 -1
  126. package/src/plugins/zeta/structs.d.ts +24 -1
  127. package/src/plugins/zeta/structs.js +30 -1
  128. package/src/plugins/zeta/structs.js.map +1 -1
  129. package/src/plugins/zeta/types.d.ts +0 -26
  130. package/src/plugins/zeta/types.js +0 -7
  131. package/src/plugins/zeta/types.js.map +1 -1
  132. package/src/utils/sei/constants.js +8 -8
  133. package/src/utils/sei/getQueryBalanceByOwner.js +4 -4
  134. package/src/utils/solana/beets/ParsedGpa.d.ts +1 -0
  135. package/src/utils/solana/beets/ParsedGpa.js +9 -0
  136. package/src/utils/solana/beets/ParsedGpa.js.map +1 -1
  137. package/src/plugins/divvy/types.d.ts +0 -28
  138. package/src/plugins/divvy/types.js +0 -3
  139. package/src/plugins/divvy/types.js.map +0 -1
  140. package/src/plugins/picasso/types.d.ts +0 -17
  141. package/src/plugins/picasso/types.js +0 -3
  142. package/src/plugins/picasso/types.js.map +0 -1
  143. package/src/plugins/ratex/idl.json +0 -8806
  144. package/src/plugins/sharky/filters.d.ts +0 -8
  145. package/src/plugins/sharky/filters.js +0 -43
  146. package/src/plugins/sharky/filters.js.map +0 -1
  147. package/src/plugins/stabble/filters.d.ts +0 -5
  148. package/src/plugins/stabble/filters.js +0 -20
  149. package/src/plugins/stabble/filters.js.map +0 -1
  150. package/src/plugins/stabble/types.d.ts +0 -40
  151. package/src/plugins/stabble/types.js +0 -3
  152. package/src/plugins/stabble/types.js.map +0 -1
@@ -1,8 +0,0 @@
1
- /// <reference types="@drift-labs/sdk/node_modules/@solana/web3.js" />
2
- /// <reference types="jito-ts/node_modules/@solana/web3.js" />
3
- import { GetProgramAccountsFilter } from '@solana/web3.js';
4
- export declare function getLoanFilters(owner: string): [
5
- GetProgramAccountsFilter[],
6
- GetProgramAccountsFilter[],
7
- GetProgramAccountsFilter[]
8
- ];
@@ -1,43 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getLoanFilters = void 0;
4
- const constants_1 = require("./constants");
5
- function getLoanFilters(owner) {
6
- return [
7
- [
8
- {
9
- dataSize: constants_1.loanDataSize,
10
- },
11
- {
12
- memcmp: {
13
- bytes: owner,
14
- offset: 115,
15
- },
16
- },
17
- ],
18
- [
19
- {
20
- dataSize: constants_1.loanDataSize,
21
- },
22
- {
23
- memcmp: {
24
- bytes: owner,
25
- offset: 147,
26
- },
27
- },
28
- ],
29
- [
30
- {
31
- dataSize: constants_1.loanDataSize,
32
- },
33
- {
34
- memcmp: {
35
- bytes: owner,
36
- offset: 83,
37
- },
38
- },
39
- ],
40
- ];
41
- }
42
- exports.getLoanFilters = getLoanFilters;
43
- //# sourceMappingURL=filters.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"filters.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/sharky/filters.ts"],"names":[],"mappings":";;;AACA,2CAA2C;AAE3C,SAAgB,cAAc,CAC5B,KAAa;IAMb,OAAO;QACL;YACE;gBACE,QAAQ,EAAE,wBAAY;aACvB;YACD;gBACE,MAAM,EAAE;oBACN,KAAK,EAAE,KAAK;oBACZ,MAAM,EAAE,GAAG;iBACZ;aACF;SACF;QACD;YACE;gBACE,QAAQ,EAAE,wBAAY;aACvB;YACD;gBACE,MAAM,EAAE;oBACN,KAAK,EAAE,KAAK;oBACZ,MAAM,EAAE,GAAG;iBACZ;aACF;SACF;QACD;YACE;gBACE,QAAQ,EAAE,wBAAY;aACvB;YACD;gBACE,MAAM,EAAE;oBACN,KAAK,EAAE,KAAK;oBACZ,MAAM,EAAE,EAAE;iBACX;aACF;SACF;KACF,CAAC;AACJ,CAAC;AA1CD,wCA0CC"}
@@ -1,5 +0,0 @@
1
- /// <reference types="@drift-labs/sdk/node_modules/@solana/web3.js" />
2
- /// <reference types="jito-ts/node_modules/@solana/web3.js" />
3
- import { GetProgramAccountsFilter } from '@solana/web3.js';
4
- export declare const stableFilter: GetProgramAccountsFilter[];
5
- export declare const weightedFilter: GetProgramAccountsFilter[];
@@ -1,20 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.weightedFilter = exports.stableFilter = void 0;
4
- exports.stableFilter = [
5
- {
6
- memcmp: {
7
- offset: 40,
8
- bytes: 'stab1io8dHvK26KoHmTwwHyYmHRbUWbyEJx6CdrGabC',
9
- },
10
- },
11
- ];
12
- exports.weightedFilter = [
13
- {
14
- memcmp: {
15
- offset: 40,
16
- bytes: 'w8edo9a9TDw52c1rBmVbP6dNakaAuFiPjDd52ZJwwVi',
17
- },
18
- },
19
- ];
20
- //# sourceMappingURL=filters.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"filters.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/stabble/filters.ts"],"names":[],"mappings":";;;AAEa,QAAA,YAAY,GAA+B;IACtD;QACE,MAAM,EAAE;YACN,MAAM,EAAE,EAAE;YACV,KAAK,EAAE,6CAA6C;SACrD;KACF;CACF,CAAC;AAEW,QAAA,cAAc,GAA+B;IACxD;QACE,MAAM,EAAE;YACN,MAAM,EAAE,EAAE;YACV,KAAK,EAAE,6CAA6C;SACrD;KACF;CACF,CAAC"}
@@ -1,40 +0,0 @@
1
- export type StablePool = {
2
- owner: string;
3
- vault: string;
4
- mint: string;
5
- authorityBump: string;
6
- isActive: boolean;
7
- ampInitialFactor: string;
8
- ampTargetFactor: string;
9
- rampStartTs: string;
10
- rampStopTs: string;
11
- swapFee: string;
12
- tokens: StablePoolToken[];
13
- pendingOwner?: string;
14
- };
15
- export type StablePoolToken = {
16
- mint: string;
17
- decimals: string;
18
- scalingUp: boolean;
19
- scalingFactor: string;
20
- balance: string;
21
- };
22
- export type WeightedPool = {
23
- owner: string;
24
- vault: string;
25
- mint: string;
26
- authorityBump: string;
27
- isActive: boolean;
28
- invariant: string;
29
- swapFee: string;
30
- tokens: StablePoolToken[];
31
- pendingOwner?: string;
32
- };
33
- export type WeightedPoolToken = {
34
- mint: string;
35
- decimals: string;
36
- scalingUp: boolean;
37
- scalingFactor: string;
38
- balance: string;
39
- weight: string;
40
- };
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/stabble/types.ts"],"names":[],"mappings":""}