@sonarwatch/portfolio-plugins 0.11.160 → 0.11.162

Sign up to get free protection for your applications and to get access to all the features.
Files changed (134) hide show
  1. package/CHANGELOG.md +1375 -1367
  2. package/README.md +3 -3
  3. package/package.json +2 -2
  4. package/src/index.js +8 -0
  5. package/src/index.js.map +1 -1
  6. package/src/plugins/balancer/helpers/pools.js +21 -21
  7. package/src/plugins/banx/constants.d.ts +8 -0
  8. package/src/plugins/banx/constants.js +18 -0
  9. package/src/plugins/banx/constants.js.map +1 -0
  10. package/src/plugins/banx/filters.d.ts +2 -0
  11. package/src/plugins/banx/filters.js +14 -0
  12. package/src/plugins/banx/filters.js.map +1 -0
  13. package/src/plugins/banx/index.d.ts +6 -0
  14. package/src/plugins/banx/index.js +12 -0
  15. package/src/plugins/banx/index.js.map +1 -0
  16. package/src/plugins/banx/stakingFetcher.js +65 -0
  17. package/src/plugins/banx/stakingFetcher.js.map +1 -0
  18. package/src/plugins/banx/structs.d.ts +26 -0
  19. package/src/plugins/banx/structs.js +29 -0
  20. package/src/plugins/banx/structs.js.map +1 -0
  21. package/src/plugins/banx/types.d.ts +65 -0
  22. package/src/plugins/banx/types.js +3 -0
  23. package/src/plugins/banx/types.js.map +1 -0
  24. package/src/plugins/flash/custodiesJob.js +1 -1
  25. package/src/plugins/flash/custodiesJob.js.map +1 -1
  26. package/src/plugins/flash/perpetualFetcher.js +3 -3
  27. package/src/plugins/flash/perpetualFetcher.js.map +1 -1
  28. package/src/plugins/flash/structs.d.ts +1 -1
  29. package/src/plugins/flash/types.d.ts +1 -1
  30. package/src/plugins/jupiter/exchange/constants.d.ts +11 -0
  31. package/src/plugins/jupiter/exchange/constants.js +21 -0
  32. package/src/plugins/jupiter/exchange/constants.js.map +1 -0
  33. package/src/plugins/jupiter/{custodiesJob.d.ts → exchange/custodiesJob.d.ts} +1 -1
  34. package/src/plugins/jupiter/{custodiesJob.js → exchange/custodiesJob.js} +5 -5
  35. package/src/plugins/jupiter/exchange/custodiesJob.js.map +1 -0
  36. package/src/plugins/{orders/jupiter → jupiter/exchange}/dcaFetcher.js +7 -10
  37. package/src/plugins/jupiter/exchange/dcaFetcher.js.map +1 -0
  38. package/src/plugins/jupiter/exchange/filters.d.ts +4 -0
  39. package/src/plugins/jupiter/exchange/filters.js +46 -0
  40. package/src/plugins/jupiter/exchange/filters.js.map +1 -0
  41. package/src/plugins/{orders/jupiter → jupiter/exchange}/limitFetcher.js +10 -20
  42. package/src/plugins/jupiter/exchange/limitFetcher.js.map +1 -0
  43. package/src/plugins/jupiter/{perpetualFetcher.d.ts → exchange/perpetualFetcher.d.ts} +1 -1
  44. package/src/plugins/jupiter/{perpetualFetcher.js → exchange/perpetualFetcher.js} +16 -16
  45. package/src/plugins/jupiter/exchange/perpetualFetcher.js.map +1 -0
  46. package/src/plugins/jupiter/{poolJob.d.ts → exchange/poolJob.d.ts} +1 -1
  47. package/src/plugins/jupiter/{poolJob.js → exchange/poolJob.js} +5 -5
  48. package/src/plugins/jupiter/exchange/poolJob.js.map +1 -0
  49. package/src/plugins/jupiter/{structs/perpetuals.d.ts → exchange/structs.d.ts} +71 -1
  50. package/src/plugins/jupiter/{structs/perpetuals.js → exchange/structs.js} +69 -2
  51. package/src/plugins/jupiter/exchange/structs.js.map +1 -0
  52. package/src/plugins/jupiter/{valueAverageFetcher.d.ts → exchange/valueAverageFetcher.d.ts} +1 -1
  53. package/src/plugins/jupiter/{valueAverageFetcher.js → exchange/valueAverageFetcher.js} +8 -8
  54. package/src/plugins/jupiter/exchange/valueAverageFetcher.js.map +1 -0
  55. package/src/plugins/jupiter/filters.d.ts +0 -1
  56. package/src/plugins/jupiter/filters.js +1 -11
  57. package/src/plugins/jupiter/filters.js.map +1 -1
  58. package/src/plugins/jupiter/governance/constants.d.ts +3 -0
  59. package/src/plugins/jupiter/governance/constants.js +12 -0
  60. package/src/plugins/jupiter/governance/constants.js.map +1 -0
  61. package/src/plugins/jupiter/{voteFetcher.d.ts → governance/voteFetcher.d.ts} +1 -1
  62. package/src/plugins/jupiter/{voteFetcher.js → governance/voteFetcher.js} +10 -9
  63. package/src/plugins/jupiter/governance/voteFetcher.js.map +1 -0
  64. package/src/plugins/jupiter/helpers.js +1 -1
  65. package/src/plugins/jupiter/helpers.js.map +1 -1
  66. package/src/plugins/jupiter/index.js +19 -9
  67. package/src/plugins/jupiter/index.js.map +1 -1
  68. package/src/plugins/jupiter/launchpad/allocationsFetcher.d.ts +3 -0
  69. package/src/plugins/jupiter/launchpad/allocationsFetcher.js +79 -0
  70. package/src/plugins/jupiter/launchpad/allocationsFetcher.js.map +1 -0
  71. package/src/plugins/jupiter/{constants.d.ts → launchpad/constants.d.ts} +10 -9
  72. package/src/plugins/jupiter/launchpad/constants.js +31 -0
  73. package/src/plugins/jupiter/launchpad/constants.js.map +1 -0
  74. package/src/plugins/jupiter/{structs/vote.d.ts → launchpad/structs.d.ts} +10 -0
  75. package/src/plugins/jupiter/{structs/vote.js → launchpad/structs.js} +11 -2
  76. package/src/plugins/jupiter/launchpad/structs.js.map +1 -0
  77. package/src/plugins/jupiter/pricingJob.js +1 -1
  78. package/src/plugins/jupiter/pricingJob.js.map +1 -1
  79. package/src/plugins/meteora/dlmmHelper.d.ts +6 -5
  80. package/src/plugins/meteora/dlmmHelper.js +107 -83
  81. package/src/plugins/meteora/dlmmHelper.js.map +1 -1
  82. package/src/plugins/meteora/types.d.ts +8 -0
  83. package/src/plugins/orders/index.js +16 -23
  84. package/src/plugins/orders/index.js.map +1 -1
  85. package/src/plugins/sushiswap/helpers.js +24 -24
  86. package/src/plugins/uniswap-v2/helpers.js +22 -22
  87. package/src/plugins/wormhole/airdropFetcher.d.ts +3 -0
  88. package/src/plugins/wormhole/airdropFetcher.js +52 -0
  89. package/src/plugins/wormhole/airdropFetcher.js.map +1 -0
  90. package/src/plugins/wormhole/constants.d.ts +6 -0
  91. package/src/plugins/wormhole/constants.js +15 -0
  92. package/src/plugins/wormhole/constants.js.map +1 -0
  93. package/src/plugins/wormhole/helpers.d.ts +4 -0
  94. package/src/plugins/wormhole/helpers.js +45 -0
  95. package/src/plugins/wormhole/helpers.js.map +1 -0
  96. package/src/plugins/wormhole/index.d.ts +6 -0
  97. package/src/plugins/wormhole/index.js +8 -0
  98. package/src/plugins/wormhole/index.js.map +1 -0
  99. package/src/plugins/wormhole/types.d.ts +9 -0
  100. package/src/plugins/wormhole/types.js +3 -0
  101. package/src/plugins/wormhole/types.js.map +1 -0
  102. package/src/utils/sei/constants.js +8 -8
  103. package/src/utils/sei/getQueryBalanceByOwner.js +4 -4
  104. package/src/plugins/jupiter/airdropFetcher.js +0 -63
  105. package/src/plugins/jupiter/airdropFetcher.js.map +0 -1
  106. package/src/plugins/jupiter/constants.js +0 -25
  107. package/src/plugins/jupiter/constants.js.map +0 -1
  108. package/src/plugins/jupiter/custodiesJob.js.map +0 -1
  109. package/src/plugins/jupiter/perpetualFetcher.js.map +0 -1
  110. package/src/plugins/jupiter/poolJob.js.map +0 -1
  111. package/src/plugins/jupiter/structs/aidrop.d.ts +0 -14
  112. package/src/plugins/jupiter/structs/aidrop.js +0 -16
  113. package/src/plugins/jupiter/structs/aidrop.js.map +0 -1
  114. package/src/plugins/jupiter/structs/perpetuals.js.map +0 -1
  115. package/src/plugins/jupiter/structs/valueAverage.d.ts +0 -31
  116. package/src/plugins/jupiter/structs/valueAverage.js +0 -33
  117. package/src/plugins/jupiter/structs/valueAverage.js.map +0 -1
  118. package/src/plugins/jupiter/structs/vote.js.map +0 -1
  119. package/src/plugins/jupiter/valueAverageFetcher.js.map +0 -1
  120. package/src/plugins/jupiter/voteFetcher.js.map +0 -1
  121. package/src/plugins/orders/jupiter/constants.d.ts +0 -3
  122. package/src/plugins/orders/jupiter/constants.js +0 -7
  123. package/src/plugins/orders/jupiter/constants.js.map +0 -1
  124. package/src/plugins/orders/jupiter/dcaFetcher.js.map +0 -1
  125. package/src/plugins/orders/jupiter/filters.d.ts +0 -3
  126. package/src/plugins/orders/jupiter/filters.js +0 -36
  127. package/src/plugins/orders/jupiter/filters.js.map +0 -1
  128. package/src/plugins/orders/jupiter/limitFetcher.js.map +0 -1
  129. package/src/plugins/orders/jupiter/struct.d.ts +0 -47
  130. package/src/plugins/orders/jupiter/struct.js +0 -48
  131. package/src/plugins/orders/jupiter/struct.js.map +0 -1
  132. /package/src/plugins/{jupiter/airdropFetcher.d.ts → banx/stakingFetcher.d.ts} +0 -0
  133. /package/src/plugins/{orders/jupiter → jupiter/exchange}/dcaFetcher.d.ts +0 -0
  134. /package/src/plugins/{orders/jupiter → jupiter/exchange}/limitFetcher.d.ts +0 -0
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.claimStatusStruct = void 0;
4
- const beet_1 = require("@metaplex-foundation/beet");
5
- const beet_solana_1 = require("@metaplex-foundation/beet-solana");
6
- const solana_1 = require("../../../utils/solana");
7
- exports.claimStatusStruct = new beet_1.BeetStruct([
8
- ['buffer', (0, solana_1.blob)(8)],
9
- ['claimant', beet_solana_1.publicKey],
10
- ['lockedAmount', solana_1.u64],
11
- ['lockedAmountWithdrawn', solana_1.u64],
12
- ['unlockedAmount', solana_1.u64],
13
- ['closable', (0, solana_1.blob)(1)],
14
- ['admin', beet_solana_1.publicKey],
15
- ], (args) => args);
16
- //# sourceMappingURL=aidrop.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"aidrop.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/jupiter/structs/aidrop.ts"],"names":[],"mappings":";;;AAAA,oDAAuD;AAGvD,kEAA6D;AAC7D,kDAAkD;AAYrC,QAAA,iBAAiB,GAAG,IAAI,iBAAU,CAC7C;IACE,CAAC,QAAQ,EAAE,IAAA,aAAI,EAAC,CAAC,CAAC,CAAC;IACnB,CAAC,UAAU,EAAE,uBAAS,CAAC;IACvB,CAAC,cAAc,EAAE,YAAG,CAAC;IACrB,CAAC,uBAAuB,EAAE,YAAG,CAAC;IAC9B,CAAC,gBAAgB,EAAE,YAAG,CAAC;IACvB,CAAC,UAAU,EAAE,IAAA,aAAI,EAAC,CAAC,CAAC,CAAC;IACrB,CAAC,OAAO,EAAE,uBAAS,CAAC;CACrB,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAmB,CAC9B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"perpetuals.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/jupiter/structs/perpetuals.ts"],"names":[],"mappings":";;;AAAA,oDAOmC;AAGnC,kEAA6D;AAC7D,kDAA6D;AAQhD,QAAA,WAAW,GAAG,IAAI,iBAAU,CACvC;IACE,CAAC,WAAW,EAAE,aAAI,CAAC;IACnB,CAAC,sBAAsB,EAAE,aAAI,CAAC;IAC9B,CAAC,gBAAgB,EAAE,YAAG,CAAC;CACxB,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAa,CACxB,CAAC;AAQW,QAAA,aAAa,GAAG,IAAI,iBAAU,CACzC;IACE,CAAC,aAAa,EAAE,YAAG,CAAC;IACpB,CAAC,WAAW,EAAE,YAAG,CAAC;IAClB,CAAC,gBAAgB,EAAE,YAAG,CAAC;CACxB,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAe,CAC1B,CAAC;AAcW,QAAA,UAAU,GAAG,IAAI,iBAAU,CACtC;IACE,CAAC,qBAAqB,EAAE,YAAG,CAAC;IAC5B,CAAC,qBAAqB,EAAE,YAAG,CAAC;IAC5B,CAAC,uBAAuB,EAAE,YAAG,CAAC;IAC9B,CAAC,SAAS,EAAE,YAAG,CAAC;IAChB,CAAC,QAAQ,EAAE,YAAG,CAAC;IACf,CAAC,eAAe,EAAE,YAAG,CAAC;IACtB,CAAC,kBAAkB,EAAE,YAAG,CAAC;IACzB,CAAC,sBAAsB,EAAE,YAAG,CAAC;IAC7B,CAAC,kBAAkB,EAAE,YAAG,CAAC;CAC1B,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAY,CACvB,CAAC;AAgBW,QAAA,mBAAmB,GAAG,IAAI,wBAAiB,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CAAC,IAAI,EAAE,EAAE,CAAC,IAAgB,CAC3B,CAAC"}
@@ -1,31 +0,0 @@
1
- /// <reference types="node" />
2
- import { BeetStruct } from '@metaplex-foundation/beet';
3
- import BigNumber from 'bignumber.js';
4
- import { PublicKey } from '@solana/web3.js';
5
- export type ValueAverage = {
6
- buffer: Buffer;
7
- isStale: boolean;
8
- idx: BigNumber;
9
- bump: number;
10
- user: PublicKey;
11
- inputMint: PublicKey;
12
- outputMint: PublicKey;
13
- incrementUsdcValue: BigNumber;
14
- orderInterval: BigNumber;
15
- inputVault: PublicKey;
16
- outputVault: PublicKey;
17
- autoWithdraw: boolean;
18
- feeDataAccount: PublicKey;
19
- referralFeeAccount: PublicKey;
20
- createdAt: BigNumber;
21
- inDeposited: BigNumber;
22
- inLeft: BigNumber;
23
- inUsed: BigNumber;
24
- inWithdrawn: BigNumber;
25
- outReceived: BigNumber;
26
- outWithdrawn: BigNumber;
27
- supposedUsdcValue: BigNumber;
28
- nextOrderAt: BigNumber;
29
- outBalanceBeforeSwap: BigNumber;
30
- };
31
- export declare const valueAverageStruct: BeetStruct<ValueAverage, Partial<ValueAverage>>;
@@ -1,33 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.valueAverageStruct = void 0;
4
- const beet_1 = require("@metaplex-foundation/beet");
5
- const beet_solana_1 = require("@metaplex-foundation/beet-solana");
6
- const solana_1 = require("../../../utils/solana");
7
- exports.valueAverageStruct = new beet_1.BeetStruct([
8
- ['buffer', (0, solana_1.blob)(8)], // 8
9
- ['isStale', beet_1.bool], // 1
10
- ['idx', solana_1.u64], // 8
11
- ['bump', beet_1.u8], // 1
12
- ['user', beet_solana_1.publicKey],
13
- ['inputMint', beet_solana_1.publicKey],
14
- ['outputMint', beet_solana_1.publicKey],
15
- ['incrementUsdcValue', solana_1.u64],
16
- ['orderInterval', solana_1.i64],
17
- ['inputVault', beet_solana_1.publicKey],
18
- ['outputVault', beet_solana_1.publicKey],
19
- ['autoWithdraw', beet_1.bool],
20
- ['feeDataAccount', beet_solana_1.publicKey],
21
- ['referralFeeAccount', beet_solana_1.publicKey],
22
- ['createdAt', solana_1.i64],
23
- ['inDeposited', solana_1.u64],
24
- ['inLeft', solana_1.u64],
25
- ['inUsed', solana_1.u64],
26
- ['inWithdrawn', solana_1.u64],
27
- ['outReceived', solana_1.u64],
28
- ['outWithdrawn', solana_1.u64],
29
- ['supposedUsdcValue', solana_1.u64],
30
- ['nextOrderAt', solana_1.i64],
31
- ['outBalanceBeforeSwap', solana_1.u64],
32
- ], (args) => args);
33
- //# sourceMappingURL=valueAverage.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"valueAverage.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/jupiter/structs/valueAverage.ts"],"names":[],"mappings":";;;AAAA,oDAAiE;AACjE,kEAA6D;AAG7D,kDAAuD;AA6B1C,QAAA,kBAAkB,GAAG,IAAI,iBAAU,CAC9C;IACE,CAAC,QAAQ,EAAE,IAAA,aAAI,EAAC,CAAC,CAAC,CAAC,EAAE,IAAI;IACzB,CAAC,SAAS,EAAE,WAAI,CAAC,EAAE,IAAI;IACvB,CAAC,KAAK,EAAE,YAAG,CAAC,EAAE,IAAI;IAClB,CAAC,MAAM,EAAE,SAAE,CAAC,EAAE,IAAI;IAClB,CAAC,MAAM,EAAE,uBAAS,CAAC;IACnB,CAAC,WAAW,EAAE,uBAAS,CAAC;IACxB,CAAC,YAAY,EAAE,uBAAS,CAAC;IACzB,CAAC,oBAAoB,EAAE,YAAG,CAAC;IAC3B,CAAC,eAAe,EAAE,YAAG,CAAC;IACtB,CAAC,YAAY,EAAE,uBAAS,CAAC;IACzB,CAAC,aAAa,EAAE,uBAAS,CAAC;IAC1B,CAAC,cAAc,EAAE,WAAI,CAAC;IACtB,CAAC,gBAAgB,EAAE,uBAAS,CAAC;IAC7B,CAAC,oBAAoB,EAAE,uBAAS,CAAC;IACjC,CAAC,WAAW,EAAE,YAAG,CAAC;IAClB,CAAC,aAAa,EAAE,YAAG,CAAC;IACpB,CAAC,QAAQ,EAAE,YAAG,CAAC;IACf,CAAC,QAAQ,EAAE,YAAG,CAAC;IACf,CAAC,aAAa,EAAE,YAAG,CAAC;IACpB,CAAC,aAAa,EAAE,YAAG,CAAC;IACpB,CAAC,cAAc,EAAE,YAAG,CAAC;IACrB,CAAC,mBAAmB,EAAE,YAAG,CAAC;IAC1B,CAAC,aAAa,EAAE,YAAG,CAAC;IACpB,CAAC,sBAAsB,EAAE,YAAG,CAAC;CAC9B,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAoB,CAC/B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"vote.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/jupiter/structs/vote.ts"],"names":[],"mappings":";;;AAAA,oDAKmC;AACnC,kEAA6D;AAG7D,kDAA6D;AAgBhD,QAAA,YAAY,GAAG,IAAI,iBAAU,CACxC;IACE,CAAC,QAAQ,EAAE,IAAA,aAAI,EAAC,CAAC,CAAC,CAAC;IACnB,CAAC,QAAQ,EAAE,uBAAS,CAAC;IACrB,CAAC,OAAO,EAAE,uBAAS,CAAC;IACpB,CAAC,MAAM,EAAE,SAAE,CAAC;IACZ,CAAC,QAAQ,EAAE,uBAAS,CAAC;IACrB,CAAC,QAAQ,EAAE,YAAG,CAAC;IACf,CAAC,iBAAiB,EAAE,YAAG,CAAC;IACxB,CAAC,cAAc,EAAE,YAAG,CAAC;IACrB,CAAC,cAAc,EAAE,uBAAS,CAAC;IAC3B,CAAC,WAAW,EAAE,WAAI,CAAC;IACnB,CAAC,SAAS,EAAE,IAAA,4BAAqB,EAAC,aAAI,EAAE,EAAE,CAAC,CAAC;CAC7C,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAc,CACzB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"valueAverageFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/jupiter/valueAverageFet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C,QAAQ;YACnC,KAAK,EAAE,QAAQ;YACf,IAAI,EAAE,MAAM;YACZ,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,UAAU,EAAV,sBAAU;YACV,IAAI,EAAE,EAAE,MAAM,EAAE,CAAC,KAAK,CAAC,EAAE;YACzB,KAAK,EAAE,KAAK,CAAC,KAAK;SACnB;KACF,CAAC;AACJ,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,OAAO;IACxB,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -1,3 +0,0 @@
1
- import { PublicKey } from '@solana/web3.js';
2
- export declare const limitProgramId: PublicKey;
3
- export declare const dcaProgramId: PublicKey;
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.dcaProgramId = exports.limitProgramId = void 0;
4
- const web3_js_1 = require("@solana/web3.js");
5
- exports.limitProgramId = new web3_js_1.PublicKey('jupoNjAxXgZ4rjzxzPMP4oxduvQsQtZzyknqvzYNrNu');
6
- exports.dcaProgramId = new web3_js_1.PublicKey('DCA265Vj8a9CEuX1eb1LWRnDT7uK6q1xMipnNyatn23M');
7
- //# sourceMappingURL=constants.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/orders/jupiter/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAE/B,QAAA,cAAc,GAAG,IAAI,mBAAS,CACzC,6CAA6C,CAC9C,CAAC;AACW,QAAA,YAAY,GAAG,IAAI,mBAAS,CACvC,8CAA8C,CAC/C,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"dcaFetcher.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/orders/jupiter/dcaFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+D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EAAE,CAAC;IACpC,KAAK,MAAM,KAAK,IAAI,aAAa,CAAC,IAAI,EAAE,EAAE,CAAC;QACzC,MAAM,UAAU,GAAG,cAAc,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QAC7C,IAAI,CAAC,UAAU;YAAE,SAAS;QAC1B,MAAM,MAAM,GAAG,aAAa,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QACxC,IAAI,CAAC,MAAM;YAAE,SAAS;QACtB,MAAM,KAAK,GAAG,IAAA,gCAAsB,EAClC,UAAU,CAAC,OAAO,EAClB,MAAM,CAAC,SAAS,CAAC,SAAA,EAAE,EAAI,UAAU,CAAC,QAAQ,CAAA,CAAC,CAAC,QAAQ,EAAE,EACtD,0BAAS,CAAC,MAAM,EAChB,UAAU,CACX,CAAC;QACF,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACrB,CAAC;IACD,OAAO;QACL;YACE,IAAI,EAAE,UAAU;YAChB,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,UAAU,EAAE,2BAAe,CAAC,EAAE;YAC9B,KAAK,EAAE,IAAA,+BAAc,EAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;YACzD,KAAK,EAAE,SAAS;YAChB,IAAI,EAAE,eAAe,QAAQ,CAAC,MAAM,GAAG;YACvC,IAAI,EAAE,EAAE,MAAM,EAAE;SACjB;KACF,CAAC;AACJ,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,cAAc;IAC/B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -1,3 +0,0 @@
1
- import { GetProgramAccountsFilter } from '@solana/web3.js';
2
- export declare const jupiterLimitsFilter: (owner: string) => GetProgramAccountsFilter[];
3
- export declare const jupiterDCAFilter: (owner: string) => GetProgramAccountsFilter[];
@@ -1,36 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.jupiterDCAFilter = exports.jupiterLimitsFilter = void 0;
4
- const struct_1 = require("./struct");
5
- const jupiterLimitsFilter = (owner) => [
6
- {
7
- memcmp: {
8
- offset: 0,
9
- bytes: 'PXZJQQ2HEmx',
10
- },
11
- },
12
- {
13
- memcmp: {
14
- offset: 104,
15
- bytes: '2',
16
- },
17
- },
18
- {
19
- memcmp: {
20
- offset: 8,
21
- bytes: owner,
22
- },
23
- },
24
- ];
25
- exports.jupiterLimitsFilter = jupiterLimitsFilter;
26
- const jupiterDCAFilter = (owner) => [
27
- {
28
- memcmp: {
29
- offset: 8,
30
- bytes: owner,
31
- },
32
- },
33
- { dataSize: struct_1.dcaStruct.byteSize },
34
- ];
35
- exports.jupiterDCAFilter = jupiterDCAFilter;
36
- //# sourceMappingURL=filters.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"filters.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/orders/jupiter/filters.ts"],"names":[],"mappings":";;;AACA,qCAAqC;AAE9B,MAAM,mBAAmB,GAAG,CACjC,KAAa,EACe,EAAE,CAAC;IAC/B;QACE,MAAM,EAAE;YACN,MAAM,EAAE,CAAC;YACT,KAAK,EAAE,aAAa;SACrB;KACF;IACD;QACE,MAAM,EAAE;YACN,MAAM,EAAE,GAAG;YACX,KAAK,EAAE,GAAG;SACX;KACF;IACD;QACE,MAAM,EAAE;YACN,MAAM,EAAE,CAAC;YACT,KAAK,EAAE,KAAK;SACb;KACF;CACF,CAAC;AArBW,QAAA,mBAAmB,uBAqB9B;AAEK,MAAM,gBAAgB,GAAG,CAAC,KAAa,EAA8B,EAAE,CAAC;IAC7E;QACE,MAAM,EAAE;YACN,MAAM,EAAE,CAAC;YACT,KAAK,EAAE,KAAK;SACb;KACF;IACD,EAAE,QAAQ,EAAE,kBAAS,CAAC,QAAQ,EAAE;CACjC,CAAC;AARW,QAAA,gBAAgB,oBAQ3B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"limitFetcher.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/orders/jupiter/limitFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAKoC;AAIpC,4CAA0C;AAC1C,oDAAyD;AACzD,qCAA4C;AAC5C,kDAAiE;AACjE,uCAAgD;AAChD,wGAAgF;AAChF,2CAA6C;AAC7C,uDAA0D;AAE1D,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,mBAAmB,GAAG,MAAM,IAAA,iCAAwB,EACxD,MAAM,EACN,yBAAgB,EAChB,0BAAc,EACd,IAAA,6BAAmB,EAAC,KAAK,CAAC,CAC3B,CAAC;IACF,IAAI,mBAAmB,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAEhD,MAAM,WAAW,GAAgB,IAAI,GAAG,EAAE,CAAC;IAC3C,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,mBAAmB,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC;QACvD,WAAW,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,QAAQ,EAAE,CAAC,CAAC;IAC/D,CAAC;IACD,MAAM,iBAAiB,GAAG,MAAM,KAAK,CAAC,cAAc,CAClD,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,EACvB,0BAAS,CAAC,MAAM,CACjB,CAAC;IAEF,MAAM,cAAc,GAA4B,IAAI,GAAG,EAAE,CAAC;IAC1D,iBAAiB,CAAC,OAAO,CAAC,CAAC,EAAE,EAAE,EAAE;QAC/B,IAAI,CAAC,EAAE;YAAE,OAAO;QAChB,cAAc,CAAC,GAAG,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,CAA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AC;IACzC,CAAC;IAED,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAEnC,MAAM,OAAO,GAA6B;QACxC,IAAI,EAAE,UAAU;QAChB,SAAS,EAAE,0BAAS,CAAC,MAAM;QAC3B,UAAU,EAAE,2BAAe,CAAC,EAAE;QAC9B,KAAK;QACL,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,EAAE,MAAM,EAAE;KACjB,CAAC;IAEF,OAAO,CAAC,OAAO,CAAC,CAAC;AACnB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,gBAAgB;IACjC,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -1,47 +0,0 @@
1
- /// <reference types="node" />
2
- import { BeetStruct } from '@metaplex-foundation/beet';
3
- import { PublicKey } from '@solana/web3.js';
4
- import BigNumber from 'bignumber.js';
5
- export type LimitOrder = {
6
- buffer: Buffer;
7
- maker: PublicKey;
8
- inputMint: PublicKey;
9
- outputMint: PublicKey;
10
- waiting: boolean;
11
- oriMakingAmount: BigNumber;
12
- oriTakingAmount: BigNumber;
13
- makingAmount: BigNumber;
14
- takingAmount: BigNumber;
15
- makerInputAccount: PublicKey;
16
- makerOutputAccount: PublicKey;
17
- reserve: PublicKey;
18
- uid: BigNumber;
19
- expiredAt: BigNumber;
20
- referral: PublicKey;
21
- };
22
- export declare const limitOrderStruct: BeetStruct<LimitOrder, Partial<LimitOrder>>;
23
- export type DCA = {
24
- buffer: Buffer;
25
- user: PublicKey;
26
- inputMint: PublicKey;
27
- outputMint: PublicKey;
28
- idx: BigNumber;
29
- nextCycleAt: BigNumber;
30
- inDeposited: BigNumber;
31
- inWithdrawn: BigNumber;
32
- outWithdrawn: BigNumber;
33
- inUsed: BigNumber;
34
- outReceived: BigNumber;
35
- inAmountPerCycle: BigNumber;
36
- cycleFrequency: BigNumber;
37
- nextCycleAmountLeft: BigNumber;
38
- inAccount: PublicKey;
39
- outAccount: PublicKey;
40
- minOutAmount: BigNumber;
41
- maxOutAmount: BigNumber;
42
- keeperInBalanceBeforeBorrow: BigNumber;
43
- dcaOutBalanceBeforeSwap: BigNumber;
44
- createdAt: BigNumber;
45
- bump: number;
46
- };
47
- export declare const dcaStruct: BeetStruct<DCA, Partial<DCA>>;
@@ -1,48 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.dcaStruct = exports.limitOrderStruct = void 0;
4
- const beet_1 = require("@metaplex-foundation/beet");
5
- const beet_solana_1 = require("@metaplex-foundation/beet-solana");
6
- const solana_1 = require("../../../utils/solana");
7
- exports.limitOrderStruct = new beet_1.BeetStruct([
8
- ['buffer', (0, solana_1.blob)(8)],
9
- ['maker', beet_solana_1.publicKey],
10
- ['inputMint', beet_solana_1.publicKey],
11
- ['outputMint', beet_solana_1.publicKey],
12
- ['waiting', beet_1.bool],
13
- ['oriMakingAmount', solana_1.u64],
14
- ['oriTakingAmount', solana_1.u64],
15
- ['makingAmount', solana_1.u64],
16
- ['takingAmount', solana_1.u64],
17
- ['makerInputAccount', beet_solana_1.publicKey],
18
- ['makerOutputAccount', beet_solana_1.publicKey],
19
- ['reserve', beet_solana_1.publicKey],
20
- ['uid', solana_1.u64],
21
- ['expiredAt', solana_1.i64],
22
- ['referral', beet_solana_1.publicKey],
23
- ], (args) => args);
24
- exports.dcaStruct = new beet_1.BeetStruct([
25
- ['buffer', (0, solana_1.blob)(8)],
26
- ['user', beet_solana_1.publicKey],
27
- ['inputMint', beet_solana_1.publicKey],
28
- ['outputMint', beet_solana_1.publicKey],
29
- ['idx', solana_1.u64],
30
- ['nextCycleAt', solana_1.i64],
31
- ['inDeposited', solana_1.u64],
32
- ['inWithdrawn', solana_1.u64],
33
- ['outWithdrawn', solana_1.u64],
34
- ['inUsed', solana_1.u64],
35
- ['outReceived', solana_1.u64],
36
- ['inAmountPerCycle', solana_1.u64],
37
- ['cycleFrequency', solana_1.i64],
38
- ['nextCycleAmountLeft', solana_1.u64],
39
- ['inAccount', beet_solana_1.publicKey],
40
- ['outAccount', beet_solana_1.publicKey],
41
- ['minOutAmount', solana_1.u64],
42
- ['maxOutAmount', solana_1.u64],
43
- ['keeperInBalanceBeforeBorrow', solana_1.u64],
44
- ['dcaOutBalanceBeforeSwap', solana_1.u64],
45
- ['createdAt', solana_1.i64],
46
- ['bump', beet_1.u8],
47
- ], (args) => args);
48
- //# sourceMappingURL=struct.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"struct.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/orders/jupiter/struct.ts"],"names":[],"mappings":";;;AAAA,oDAAiE;AACjE,kEAA6D;AAG7D,kDAAuD;AAoB1C,QAAA,gBAAgB,GAAG,IAAI,iBAAU,CAC5C;IACE,CAAC,QAAQ,EAAE,IAAA,aAAI,EAAC,CAAC,CAAC,CAAC;IACnB,CAAC,OAAO,EAAE,uBAAS,CAAC;IACpB,CAAC,WAAW,EAAE,uBAAS,CAAC;IACxB,CAAC,YAAY,EAAE,uBAAS,CAAC;IACzB,CAAC,SAAS,EAAE,WAAI,CAAC;IACjB,CAAC,iBAAiB,EAAE,YAAG,CAAC;IACxB,CAAC,iBAAiB,EAAE,YAAG,CAAC;IACxB,CAAC,cAAc,EAAE,YAAG,CAAC;IACrB,CAAC,cAAc,EAAE,YAAG,CAAC;IACrB,CAAC,mBAAmB,EAAE,uBAAS,CAAC;IAChC,CAAC,oBAAoB,EAAE,uBAAS,CAAC;IACjC,CAAC,SAAS,EAAE,uBAAS,CAAC;IACtB,CAAC,KAAK,EAAE,YAAG,CAAC;IACZ,CAAC,WAAW,EAAE,YAAG,CAAC;IAClB,CAAC,UAAU,EAAE,uBAAS,CAAC;CACxB,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAkB,CAC7B,CAAC;AA2BW,QAAA,S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