@sonarwatch/portfolio-plugins 0.11.160 → 0.11.161

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 +1371 -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 +12 -8
  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 +1 @@
1
- {"version":3,"file":"dlmmHelper.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/meteora/dlmmHelper.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2BAA2B;AAC3B,6CAA4C;AAC5C,kDAAuB;AACvB,4DAAiC;AACjC,gEAAqC;AACrC,+CAAmE;AACnE,iDAAsD;AACtD,mCAMiB;AACjB,qCAA+E;AAC/E,2CAA4C;AAE/B,QAAA,kBAAkB,GAAG,IAAI,eAAE,CAAC,EAAE,CAAC,CAAC;AAChC,QAAA,YAAY,GAAG,EAAE,CAAC;AAClB,QAAA,eAAe,GAAG,KAAK,CAAC;AAErC,SAAgB,oBAAoB,CAAC,KAAgB;IACnD,MAAM,SAAS,GAAG,IAAI,eAAE,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC;IAC3C,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,SAAS,CAAC,MAAM,CAAC,0BAAkB,CAAC,CAAC;IAC/D,OAAO,SAAS,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,eAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;AACvE,CAAC;AAJD,oDAIC;AAED,SAAgB,6BAA6B,CAC3C,MAAiB,EACjB,SAAoB;IA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,oBAAO,CAAC,UAAU,CAAC,CAAC;SAC5B,GAAG,CAAC,IAAI,oBAAO,CAAC,KAAK,CAAC,CAAC;SACvB,QAAQ,EAAE,CAAC;AAChB,CAAC;AAND,oDAMC;AAED,SAAgB,6BAA6B,CAC3C,QAAsB,EACtB,IAAY,EACZ,aAAuB,EACvB,aAAuB,EACvB,gBAAwB,EACxB,iBAAyB;IAEzB,MAAM,eAAe,GAAG,uBAAe,CAAC,EAAE,CAAC;IAE3C,MAAM,YAAY,GAAG,eAAe,CAClC,yBAAa,EACb,eAAe,EACf,IAAI,EACJ,QAAQ,EACR,gBAAgB,EAChB,iBAAiB,EACjB,aAAa,EACb,aAAa,CACd,CAAC;IAEF,IAAI,CAAC,YAAY;QACf,OAAO,EAAE,YAAY,EAAE,IAAI,sBAAS,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,IAAI,sBAAS,CAAC,CAAC,CAAC,EAAE,CAAC;IAE5E,OAAO;QACL,YAAY,EAAE,YAAY,CAAC,YAAY;QACvC,YAAY,EAAE,YAAY,CAAC,YAAY;KACxC,CAAC;AACJ,CAAC;AA5BD,sEA4BC"}
@@ -51,6 +51,10 @@ export type PositionData = {
51
51
  positionBinData: PositionBinData[];
52
52
  upperBinId: number;
53
53
  lowerBinId: number;
54
+ feeX: BigNumber;
55
+ feeY: BigNumber;
56
+ rewardOne: BigNumber;
57
+ rewardTwo: BigNumber;
54
58
  };
55
59
  export type LbPosition = {
56
60
  publicKey: PublicKey;
@@ -74,6 +78,10 @@ export type LMRewards = {
74
78
  rewardOne: BigNumber;
75
79
  rewardTwo: BigNumber;
76
80
  };
81
+ export type SwapFee = {
82
+ feeX: BigNumber;
83
+ feeY: BigNumber;
84
+ };
77
85
  export interface BinLiquidity {
78
86
  binId: number;
79
87
  xAmount: BigNumber;
@@ -1,11 +1,6 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.fetchers = exports.jobs = exports.platforms = void 0;
7
- const limitFetcher_1 = __importDefault(require("./jupiter/limitFetcher"));
8
- const dcaFetcher_1 = __importDefault(require("./jupiter/dcaFetcher"));
9
4
  const constants_1 = require("./clobs-solana/constants");
10
5
  // import { NetworkId } from '@sonarwatch/portfolio-core';
11
6
  // import openbookFetcher from './clobs-solana/openbookFetcher';
@@ -34,23 +29,21 @@ exports.jobs = [
34
29
  // },
35
30
  ];
36
31
  exports.fetchers = [
37
- limitFetcher_1.default,
38
- dcaFetcher_1.default,
39
- // openbookFetcher,
40
- // {
41
- // id: `${platformId}-${serumPlatform.id}V3`,
42
- // executor: getSerumFetcherExecutor(clobVersions.serumV3),
43
- // networkId: NetworkId.solana,
44
- // },
45
- // {
46
- // id: `${platformId}-${serumPlatform.id}V2`,
47
- // executor: getSerumFetcherExecutor(clobVersions.serumV2),
48
- // networkId: NetworkId.solana,
49
- // },
50
- // {
51
- // id: `${platformId}-${serumPlatform.id}V1`,
52
- // executor: getSerumFetcherExecutor(clobVersions.serumV1),
53
- // networkId: NetworkId.solana,
54
- // },
32
+ // openbookFetcher,
33
+ // {
34
+ // id: `${platformId}-${serumPlatform.id}V3`,
35
+ // executor: getSerumFetcherExecutor(clobVersions.serumV3),
36
+ // networkId: NetworkId.solana,
37
+ // },
38
+ // {
39
+ // id: `${platformId}-${serumPlatform.id}V2`,
40
+ // executor: getSerumFetcherExecutor(clobVersions.serumV2),
41
+ // networkId: NetworkId.solana,
42
+ // },
43
+ // {
44
+ // id: `${platformId}-${serumPlatform.id}V1`,
45
+ // executor: getSerumFetcherExecutor(clobVersions.serumV1),
46
+ // networkId: NetworkId.solana,
47
+ // },
55
48
  ];
56
49
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/orders/index.ts"],"names":[],"mappings":";;;;;;AAGA,0EAAkD;AAClD,sEAA8C;AAC9C,wDAA2E;AAC3E,0DAA0D;AAC1D,gEAAgE;AAChE,2DAA2D;AAC3D,gFAAgF;AAChF,4CAA4C;AAC5C,sFAAsF;AACtF,mDAAmD;AAEtC,QAAA,SAAS,GAAe,CAAC,4BAAgB,EAAE,yBAAa,CAAC,CAAC;AAC1D,QAAA,IAAI,GAAU;AACzB,IAAI;AACJ,4CAA4C;AAC5C,6DAA6D;AAC7D,KAAK;AACL,IAAI;AACJ,yCAAyC;AACzC,0DAA0D;AAC1D,KAAK;AACL,IAAI;AACJ,yCAAyC;AACzC,0DAA0D;AAC1D,KAAK;AACL,IAAI;AACJ,yCAAyC;AACzC,0DAA0D;AAC1D,KAAK;CACN,CAAC;AACW,QAAA,QAAQ,GAAc;IACjC,sBAAY;IACZ,oBAAU;IACV,mBAAmB;IACnB,IAAI;IACJ,+CAA+C;IAC/C,6DAA6D;IAC7D,iCAAiC;IACjC,KAAK;IACL,IAAI;IACJ,+CAA+C;IAC/C,6DAA6D;IAC7D,iCAAiC;IACjC,KAAK;IACL,IAAI;IACJ,+CAA+C;IAC/C,6DAA6D;IAC7D,iCAAiC;IACjC,KAAK;CACN,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/orders/index.ts"],"names":[],"mappings":";;;AAGA,wDAA2E;AAC3E,0DAA0D;AAC1D,gEAAgE;AAChE,2DAA2D;AAC3D,gFAAgF;AAChF,4CAA4C;AAC5C,sFAAsF;AACtF,mDAAmD;AAEtC,QAAA,SAAS,GAAe,CAAC,4BAAgB,EAAE,yBAAa,CAAC,CAAC;AAC1D,QAAA,IAAI,GAAU;AACzB,IAAI;AACJ,4CAA4C;AAC5C,6DAA6D;AAC7D,KAAK;AACL,IAAI;AACJ,yCAAyC;AACzC,0DAA0D;AAC1D,KAAK;AACL,IAAI;AACJ,yCAAyC;AACzC,0DAA0D;AAC1D,KAAK;AACL,IAAI;AACJ,yCAAyC;AACzC,0DAA0D;AAC1D,KAAK;CACN,CAAC;AACW,QAAA,QAAQ,GAAc;AACjC,mBAAmB;AACnB,IAAI;AACJ,+CAA+C;AAC/C,6DAA6D;AAC7D,iCAAiC;AACjC,KAAK;AACL,IAAI;AACJ,+CAA+C;AAC/C,6DAA6D;AAC7D,iCAAiC;AACjC,KAAK;AACL,IAAI;AACJ,+CAA+C;AAC/C,6DAA6D;AAC7D,iCAAiC;AACjC,KAAK;CACN,CAAC"}
@@ -54,30 +54,30 @@ function sushiV3PairToUniV2(pair) {
54
54
  }
55
55
  function getV3PairsAddresses(url, length = 300) {
56
56
  return __awaiter(this, void 0, void 0, function* () {
57
- const query = (0, graphql_request_1.gql) `
58
- {
59
- pools(
60
- orderBy: totalValueLockedUSD
61
- first: ${length}
62
- orderDirection: desc
63
- where: { volumeUSD_not: "0", liquidity_not: "0" }
64
- ) {
65
- id
66
- token0Price
67
- token1Price
68
- liquidity
69
- token0 {
70
- id
71
- totalSupply
72
- decimals
73
- }
74
- token1 {
75
- id
76
- totalSupply
77
- decimals
78
- }
79
- }
80
- }
57
+ const query = (0, graphql_request_1.gql) `
58
+ {
59
+ pools(
60
+ orderBy: totalValueLockedUSD
61
+ first: ${length}
62
+ orderDirection: desc
63
+ where: { volumeUSD_not: "0", liquidity_not: "0" }
64
+ ) {
65
+ id
66
+ token0Price
67
+ token1Price
68
+ liquidity
69
+ token0 {
70
+ id
71
+ totalSupply
72
+ decimals
73
+ }
74
+ token1 {
75
+ id
76
+ totalSupply
77
+ decimals
78
+ }
79
+ }
80
+ }
81
81
  `;
82
82
  const res = yield (0, graphql_request_1.default)(url, query);
83
83
  const pools = res.pools;
@@ -40,28 +40,28 @@ function getPairKey(version) {
40
40
  exports.getPairKey = getPairKey;
41
41
  function getPairsV2FromTheGraph(url, length = 300) {
42
42
  return __awaiter(this, void 0, void 0, function* () {
43
- const query = (0, graphql_request_1.gql) `
44
- {
45
- pairs(
46
- orderBy: reserveUSD
47
- first: ${length}
48
- orderDirection: desc
49
- where: { trackedReserveETH_not: "0" }
50
- ) {
51
- id
52
- reserve0
53
- reserve1
54
- totalSupply
55
- token0 {
56
- id
57
- decimals
58
- }
59
- token1 {
60
- id
61
- decimals
62
- }
63
- }
64
- }
43
+ const query = (0, graphql_request_1.gql) `
44
+ {
45
+ pairs(
46
+ orderBy: reserveUSD
47
+ first: ${length}
48
+ orderDirection: desc
49
+ where: { trackedReserveETH_not: "0" }
50
+ ) {
51
+ id
52
+ reserve0
53
+ reserve1
54
+ totalSupply
55
+ token0 {
56
+ id
57
+ decimals
58
+ }
59
+ token1 {
60
+ id
61
+ decimals
62
+ }
63
+ }
64
+ }
65
65
  `;
66
66
  const res = yield (0, graphql_request_1.default)(url, query);
67
67
  const pairs = res.pairs;
@@ -0,0 +1,3 @@
1
+ import { NetworkIdType } from '@sonarwatch/portfolio-core';
2
+ import { Fetcher } from '../../Fetcher';
3
+ export default function getPositionsV2Fetcher(networkId: NetworkIdType): Fetcher;
@@ -0,0 +1,52 @@
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
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ const portfolio_core_1 = require("@sonarwatch/portfolio-core");
16
+ const constants_1 = require("./constants");
17
+ const clients_1 = require("../../utils/clients");
18
+ const helpers_1 = require("./helpers");
19
+ const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/tokenPriceToAssetToken"));
20
+ function getPositionsV2Fetcher(networkId) {
21
+ const executor = (owner, cache) => __awaiter(this, void 0, void 0, function* () {
22
+ const allocation = yield (0, helpers_1.getAllocation)(owner, networkId);
23
+ if (allocation === 0)
24
+ return [];
25
+ const client = (0, clients_1.getClientSolana)();
26
+ const account = yield client.getAccountInfo((0, helpers_1.getAccountPubkey)(owner));
27
+ if (account)
28
+ return [];
29
+ const tokenPrice = yield cache.getTokenPrice(constants_1.wMint, portfolio_core_1.NetworkId.solana);
30
+ const asset = (0, tokenPriceToAssetToken_1.default)(constants_1.wMint, allocation, portfolio_core_1.NetworkId.solana, tokenPrice);
31
+ return [
32
+ {
33
+ type: portfolio_core_1.PortfolioElementType.multiple,
34
+ label: 'Rewards',
35
+ networkId: portfolio_core_1.NetworkId.solana,
36
+ platformId: constants_1.platformId,
37
+ name: 'Airdrop',
38
+ data: {
39
+ assets: [Object.assign(Object.assign({}, asset), { attributes: { isClaimable: true } })],
40
+ },
41
+ value: asset.value,
42
+ },
43
+ ];
44
+ });
45
+ return {
46
+ id: `${constants_1.platformId}-airdrop`,
47
+ networkId: portfolio_core_1.NetworkId.solana,
48
+ executor,
49
+ };
50
+ }
51
+ exports.default = getPositionsV2Fetcher;
52
+ //# sourceMappingURL=airdropFetcher.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"airdropFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/wormhole/airdropFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAIoC;AAGpC,2CAAgD;AAChD,iDAAsD;AACtD,uCAA4D;AAC5D,qGAA6E;AAE7E,SAAwB,qBAAqB,CAC3C,SAAwB;IAExB,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;QACtE,MAAM,UAAU,GAAG,MAAM,IAAA,uBAAa,EAAC,KAAK,EAAE,SAAS,CAAC,CAAC;QACzD,IAAI,UAAU,KAAK,CAAC;YAAE,OAAO,EAAE,CAAC;QAEhC,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;QACjC,MAAM,OAAO,GAAG,MAAM,MAAM,CAAC,cAAc,CAAC,IAAA,0BAAgB,EAAC,KAAK,CAAC,CAAC,CAAC;QAErE,IAAI,OAAO;YAAE,OAAO,EAAE,CAAC;QAEvB,MAAM,UAAU,GAAG,MAAM,KAAK,CAAC,aAAa,CAAC,iBAAK,EAAE,0BAAS,CAAC,MAAM,CAAC,CAAC;QACtE,MAAM,KAAK,GAAG,IAAA,gCAAsB,EAClC,iBAAK,EACL,UAAU,EACV,0BAAS,CAAC,MAAM,EAChB,UAAU,CACX,CAAC;QAEF,OAAO;YACL;gBACE,IAAI,EAAE,qCAAoB,CAAC,QAAQ;gBACnC,KAAK,EAAE,SAAS;gBAChB,SAAS,EAAE,0BAAS,CAAC,MAAM;gBAC3B,UAAU,EAAV,sBAAU;gBACV,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE;oBACJ,MAAM,EAAE,iCAAM,KAAK,KAAE,UAAU,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,IAAG;iBAC1D;gBACD,KAAK,EAAE,KAAK,CAAC,KAAK;aACnB;SACF,CAAC;IACJ,CAAC,CAAA,CAAC;IAEF,OAAO;QACL,EAAE,EAAE,GAAG,sBAAU,UAAU;QAC3B,SAAS,EAAE,0BAAS,CAAC,MAAM;QAC3B,QAAQ;KACT,CAAC;AACJ,CAAC;AAxCD,wCAwCC"}
@@ -0,0 +1,6 @@
1
+ import { Platform } from '@sonarwatch/portfolio-core';
2
+ export declare const platformId = "wormhole";
3
+ export declare const platform: Platform;
4
+ export declare const apiUrl = "https://prod-flat-files-min.wormhole.com/";
5
+ export declare const wMint = "85VBFQZC9TZkfaptBWjvUw7YbZjy52A6mjtPGjstQAmQ";
6
+ export declare const wDecimal = 6;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.wDecimal = exports.wMint = exports.apiUrl = exports.platform = exports.platformId = void 0;
4
+ exports.platformId = 'wormhole';
5
+ exports.platform = {
6
+ id: exports.platformId,
7
+ name: 'Wormhole',
8
+ image: 'https://sonar.watch/img/platforms/wormhole.png',
9
+ website: 'https://airdrop.wormhole.com/',
10
+ twitter: 'https://twitter.com/wormhole',
11
+ };
12
+ exports.apiUrl = 'https://prod-flat-files-min.wormhole.com/';
13
+ exports.wMint = '85VBFQZC9TZkfaptBWjvUw7YbZjy52A6mjtPGjstQAmQ';
14
+ exports.wDecimal = 6;
15
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/wormhole/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,UAAU,CAAC;AACxB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,gDAAgD;IACvD,OAAO,EAAE,+BAA+B;IACxC,OAAO,EAAE,8BAA8B;CACxC,CAAC;AAEW,QAAA,MAAM,GAAG,2CAA2C,CAAC;AACrD,QAAA,KAAK,GAAG,8CAA8C,CAAC;AACvD,QAAA,QAAQ,GAAG,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { NetworkIdType } from '@sonarwatch/portfolio-core';
2
+ import { PublicKey } from '@solana/web3.js';
3
+ export declare function getAllocation(owner: string, network: NetworkIdType): Promise<number>;
4
+ export declare function getAccountPubkey(owner: string): PublicKey;
@@ -0,0 +1,45 @@
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
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.getAccountPubkey = exports.getAllocation = void 0;
16
+ const portfolio_core_1 = require("@sonarwatch/portfolio-core");
17
+ const axios_1 = __importDefault(require("axios"));
18
+ const web3_js_1 = require("@solana/web3.js");
19
+ const constants_1 = require("./constants");
20
+ const extensionByAddressSystem = new Map([
21
+ [portfolio_core_1.NetworkId.solana, '_1'],
22
+ [portfolio_core_1.NetworkId.ethereum, '_2'],
23
+ [portfolio_core_1.NetworkId.polygon, '_2'],
24
+ [portfolio_core_1.NetworkId.avalanche, '_2'],
25
+ [portfolio_core_1.NetworkId.bnb, '_2'],
26
+ [portfolio_core_1.NetworkId.sui, '_21'],
27
+ [portfolio_core_1.NetworkId.aptos, '_22'],
28
+ ]);
29
+ function getAllocation(owner, network) {
30
+ return __awaiter(this, void 0, void 0, function* () {
31
+ const extension = extensionByAddressSystem.get(network);
32
+ if (!extension)
33
+ return 0;
34
+ const allocationsRes = yield axios_1.default
35
+ .get(`${constants_1.apiUrl}${owner}${extension}.json`)
36
+ .catch(() => null);
37
+ return allocationsRes ? allocationsRes.data.amount : 0;
38
+ });
39
+ }
40
+ exports.getAllocation = getAllocation;
41
+ function getAccountPubkey(owner) {
42
+ return new web3_js_1.PublicKey('GyxMPFeekoY6t5WwgbXFn9vqG3uEAqJp2mDkia6Ws9z7');
43
+ }
44
+ exports.getAccountPubkey = getAccountPubkey;
45
+ //# sourceMappingURL=helpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/wormhole/helpers.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+DAAsE;AACtE,kDAA6C;AAC7C,6CAA4C;AAC5C,2CAAqC;AAGrC,MAAM,wBAAwB,GAA+B,IAAI,GAAG,CAAC;IACnE,CAAC,0BAAS,CAAC,MAAM,EAAE,IAAI,CAAC;IACxB,CAAC,0BAAS,CAAC,QAAQ,EAAE,IAAI,CAAC;IAC1B,CAAC,0BAAS,CAAC,OAAO,EAAE,IAAI,CAAC;IACzB,CAAC,0BAAS,CAAC,SAAS,EAAE,IAAI,CAAC;IAC3B,CAAC,0BAAS,CAAC,GAAG,EAAE,IAAI,CAAC;IACrB,CAAC,0BAAS,CAAC,GAAG,EAAE,KAAK,CAAC;IACtB,CAAC,0BAAS,CAAC,KAAK,EAAE,KAAK,CAAC;CACzB,CAAC,CAAC;AAEH,SAAsB,aAAa,CACjC,KAAa,EACb,OAAsB;;QAEtB,MAAM,SAAS,GAAG,wBAAwB,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QACxD,IAAI,CAAC,SAAS;YAAE,OAAO,CAAC,CAAC;QAEzB,MAAM,cAAc,GAA6C,MAAM,eAAK;aACzE,GAAG,CAAC,GAAG,kBAAM,GAAG,KAAK,GAAG,SAAS,OAAO,CAAC;aACzC,KAAK,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC;QAErB,OAAO,cAAc,CAAC,CAAC,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;IACzD,CAAC;CAAA;AAZD,sCAYC;AAED,SAAgB,gBAAgB,CAAC,KAAa;IAC5C,OAAO,IAAI,mBAAS,CAAC,8CAA8C,CAAC,CAAC;AACvE,CAAC;AAFD,4CAEC"}
@@ -0,0 +1,6 @@
1
+ import { Platform } from '@sonarwatch/portfolio-core';
2
+ import { Fetcher } from '../../Fetcher';
3
+ import { Job } from '../../Job';
4
+ export declare const platforms: Platform[];
5
+ export declare const jobs: Job[];
6
+ export declare const fetchers: Fetcher[];
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.fetchers = exports.jobs = exports.platforms = void 0;
4
+ const constants_1 = require("./constants");
5
+ exports.platforms = [constants_1.platform];
6
+ exports.jobs = [];
7
+ exports.fetchers = [];
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/wormhole/index.ts"],"names":[],"mappings":";;;AAGA,2CAAuC;AAE1B,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,EAAE,CAAC;AACjB,QAAA,QAAQ,GAAc,EAAE,CAAC"}
@@ -0,0 +1,9 @@
1
+ export type AllocationResponse = {
2
+ index: number;
3
+ address: string;
4
+ chain: string;
5
+ chain_id: number;
6
+ amount: number;
7
+ preimage: string;
8
+ hashes: string;
9
+ };
@@ -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/plugins/wormhole/types.ts"],"names":[],"mappings":""}
@@ -1,16 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.poolQueryMsg = exports.minterQueryMsg = exports.tokenInfoQueryMsg = exports.infoQueryMsg = void 0;
4
- exports.infoQueryMsg = JSON.parse(`{
5
- "info": {}
4
+ exports.infoQueryMsg = JSON.parse(`{
5
+ "info": {}
6
6
  }`);
7
- exports.tokenInfoQueryMsg = JSON.parse(`{
8
- "token_info": {}
7
+ exports.tokenInfoQueryMsg = JSON.parse(`{
8
+ "token_info": {}
9
9
  }`);
10
- exports.minterQueryMsg = JSON.parse(`{
11
- "minter": {}
10
+ exports.minterQueryMsg = JSON.parse(`{
11
+ "minter": {}
12
12
  }`);
13
- exports.poolQueryMsg = JSON.parse(`{
14
- "pool": {}
13
+ exports.poolQueryMsg = JSON.parse(`{
14
+ "pool": {}
15
15
  }`);
16
16
  //# sourceMappingURL=constants.js.map
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  function getQueryBalanceByOwner(owner) {
4
- return JSON.parse(`{
5
- "balance": {
6
- "address": "${owner}"
7
- }
4
+ return JSON.parse(`{
5
+ "balance": {
6
+ "address": "${owner}"
7
+ }
8
8
  }`);
9
9
  }
10
10
  exports.default = getQueryBalanceByOwner;
@@ -1,63 +0,0 @@
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
- var __importDefault = (this && this.__importDefault) || function (mod) {
12
- return (mod && mod.__esModule) ? mod : { "default": mod };
13
- };
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- const portfolio_core_1 = require("@sonarwatch/portfolio-core");
16
- const axios_1 = __importDefault(require("axios"));
17
- const web3_js_1 = require("@solana/web3.js");
18
- const bignumber_js_1 = __importDefault(require("bignumber.js"));
19
- const constants_1 = require("./constants");
20
- const clients_1 = require("../../utils/clients");
21
- const getParsedAccountInfo_1 = require("../../utils/solana/getParsedAccountInfo");
22
- const helpers_1 = require("./helpers");
23
- const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/tokenPriceToAssetToken"));
24
- const aidrop_1 = require("./structs/aidrop");
25
- const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
26
- const client = (0, clients_1.getClientSolana)();
27
- const claimProofRes = yield axios_1.default
28
- .get(constants_1.merkleApi + owner)
29
- .catch(() => null);
30
- const jupTokenPrice = yield cache.getTokenPrice(constants_1.jupMint, portfolio_core_1.NetworkId.solana);
31
- if (claimProofRes && claimProofRes.data) {
32
- const claimStatus = (0, helpers_1.deriveClaimStatus)(new web3_js_1.PublicKey(owner), new web3_js_1.PublicKey(claimProofRes.data.merkle_tree), constants_1.merkleDistributorPid)[0];
33
- const account = yield (0, getParsedAccountInfo_1.getParsedAccountInfo)(client, aidrop_1.claimStatusStruct, claimStatus);
34
- if (!account) {
35
- const amount = new bignumber_js_1.default(claimProofRes.data.amount)
36
- .dividedBy(Math.pow(10, constants_1.jupDecimals))
37
- .toNumber();
38
- const asset = (0, tokenPriceToAssetToken_1.default)(constants_1.jupMint, amount, portfolio_core_1.NetworkId.solana, jupTokenPrice);
39
- return [
40
- {
41
- type: portfolio_core_1.PortfolioElementType.multiple,
42
- label: 'Rewards',
43
- networkId: portfolio_core_1.NetworkId.solana,
44
- platformId: constants_1.platformId,
45
- name: 'Airdrop',
46
- data: {
47
- assets: [Object.assign(Object.assign({}, asset), { attributes: { isClaimable: true } })],
48
- },
49
- value: asset.value,
50
- },
51
- ];
52
- }
53
- return [];
54
- }
55
- return [];
56
- });
57
- const fetcher = {
58
- id: `${constants_1.platformId}-airdrop`,
59
- networkId: portfolio_core_1.NetworkId.solana,
60
- executor,
61
- };
62
- exports.default = fetcher;
63
- //# sourceMappingURL=airdropFetcher.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"airdropFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/jupiter/airdropFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAA6E;AAC7E,kDAA6C;AAC7C,6CAA4C;AAC5C,gEAAqC;AAGrC,2CAMqB;AACrB,iDAAsD;AAEtD,kFAA+E;AAC/E,uCAA8C;AAC9C,qGAA6E;AAC7E,6CAAqD;AAErD,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EA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,CAAC,KAAK;iBACnB;aACF,CAAC;QACJ,CAAC;QACD,OAAO,EAAE,CAAC;IACZ,CAAC;IACD,OAAO,EAAE,CAAC;AACZ,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,UAAU;IAC3B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -1,25 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.custodiesKey = exports.merkleApi = exports.jupDecimals = exports.jupMint = exports.merkleDistributorPid = exports.lockerPubkey = exports.voteProgramId = exports.valueAverageProgramId = exports.perpsProgramId = exports.jlpToken = exports.jlpPool = exports.jupiterPlatform = exports.platformId = void 0;
4
- const web3_js_1 = require("@solana/web3.js");
5
- exports.platformId = 'jupiter';
6
- exports.jupiterPlatform = {
7
- id: exports.platformId,
8
- name: 'Jupiter',
9
- image: 'https://sonar.watch/img/platforms/jupiter.png',
10
- defiLlamaId: 'parent#jupiter',
11
- website: 'https://jup.ag/',
12
- twitter: 'https://twitter.com/JupiterExchange',
13
- };
14
- exports.jlpPool = new web3_js_1.PublicKey('5BUwFW4nRbftYTDMbgxykoFWqWHPzahFSNAaaaJtVKsq');
15
- exports.jlpToken = new web3_js_1.PublicKey('27G8MtK7VtTcCHkpASjSDdkWWYfoqT6ggEuKidVJidD4');
16
- exports.perpsProgramId = new web3_js_1.PublicKey('PERPHjGBqRHArX4DySjwM6UJHiR3sWAatqfdBS2qQJu');
17
- exports.valueAverageProgramId = new web3_js_1.PublicKey('JVAp1DSLnM4Qh8qM1QasQ8x56ccb9S3DhbyEckybTF9');
18
- exports.voteProgramId = new web3_js_1.PublicKey('voTpe3tHQ7AjQHMapgSue2HJFAh2cGsdokqN3XqmVSj');
19
- exports.lockerPubkey = new web3_js_1.PublicKey('CVMdMd79no569tjc5Sq7kzz8isbfCcFyBS5TLGsrZ5dN');
20
- exports.merkleDistributorPid = new web3_js_1.PublicKey('meRjbQXFNf5En86FXT2YPz1dQzLj4Yb3xK8u1MVgqpb');
21
- exports.jupMint = 'JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN';
22
- exports.jupDecimals = 6;
23
- exports.merkleApi = 'https://worker.jup.ag/jup-claim-proof/JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN/';
24
- exports.custodiesKey = 'custodies';
25
- //# sourceMappingURL=constants.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/jupiter/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,SAAS,CAAC;AACvB,QAAA,eAAe,GAAa;IACvC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,+CAA+C;IACtD,WAAW,EAAE,gBAAgB;IAC7B,OAAO,EAAE,iBAAiB;IAC1B,OAAO,EAAE,qCAAqC;CAC/C,CAAC;AAEW,QAAA,OAAO,GAAG,IAAI,mBAAS,CAClC,8CAA8C,CAC/C,CAAC;AACW,QAAA,QAAQ,GAAG,IAAI,mBAAS,CACnC,8CAA8C,CAC/C,CAAC;AAEW,QAAA,cAAc,GAAG,IAAI,mBAAS,CACzC,6CAA6C,CAC9C,CAAC;AAEW,QAAA,qBAAqB,GAAG,IAAI,mBAAS,CAChD,6CAA6C,CAC9C,CAAC;AAEW,QAAA,aAAa,GAAG,IAAI,mBAAS,CACxC,6CAA6C,CAC9C,CAAC;AACW,QAAA,YAAY,GAAG,IAAI,mBAAS,CACvC,8CAA8C,CAC/C,CAAC;AAEW,QAAA,oBAAoB,GAAG,IAAI,mBAAS,CAC/C,6CAA6C,CAC9C,CAAC;AAEW,QAAA,OAAO,GAAG,6CAA6C,CAAC;AACxD,QAAA,WAAW,GAAG,CAAC,CAAC;AAEhB,QAAA,SAAS,GACpB,oFAAoF,CAAC;AAC1E,QAAA,YAAY,GAAG,WAAW,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"custodiesJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/jupiter/custodiesJob.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAGvD,iDAAsD;AACtD,+CAA8D;AAC9D,wDAAkE;AAClE,2CAAuE;AACvE,qDAA8D;AAE9D,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,iBAAiB,GAAG,MAAM,IAAA,iCAAwB,EACtD,MAAM,EACN,0BAAa,EACb,0BAAc,EACd,IAAA,8BAAoB,EAAC,0BAAa,CAAC,CACpC,CAAC;IACF,IAAI,iBAAiB,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO;IAE3C,MAAM,QAAQ,GAAG,iBAAiB,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,iBAC9C,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,QAAQ,EAAE,IACzB,GAAe,EACnB,CAAC,CAAC;IAEJ,MAAM,KAAK,CAAC,OAAO,CAAC,wBAAY,EAAE,QAAQ,EAAE;QAC1C,MAAM,EAAE,sBAAU;QAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;KAC5B,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AAEF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,YAAY;IAC7B,QAAQ;IACR,KAAK,EAAE,QAAQ;CAChB,CAAC;AACF,kBAAe,GAAG,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"perpetualFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/jupiter/perpetualFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAQoC;AACpC,gEAAqC;AACrC,6CAA4C;AAG5C,2CAA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,GAAG,WAAW,IAAI,IAAI,IAAI,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,GAAG;YAC5D,IAAI,EAAE;gBACJ,cAAc;gBACd,aAAa;gBACb,cAAc;gBACd,cAAc;gBACd,aAAa;gBACb,cAAc;gBACd,eAAe,EAAE,IAAI;gBAErB,YAAY;gBACZ,WAAW;gBACX,WAAW;gBACX,KAAK;aACN;SACF,CAAC,CAAC;IACL,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,YAAY;IAC7B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"poolJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/jupiter/poolJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAIoC;AACpC,gEAAqC;AAIrC,iDAAsD;AACtD,+CAG4B;AAC5B,2CAA4D;AAC5D,qDAA0E;AAE1E,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IACjC,MAAM,WAAW,GAAG,CAClB,MAAM,IAAA,sCAA6B,EAAC,MAAM,EAAE,gCAAmB,EAAE,CAAC,mBAAO,CAAC,CAAC,CAC5E,CAAC,CAAC,CAAC,CAAC;IACL,IAAI,CAAC,WAAW;QAAE,OAAO;IAEzB,MAAM,iBAAiB,GAAG,MAAM,IAAA,sCAA6B,EAC3D,MAAM,EACN,0BAAa,EACb,WAAW,CAAC,SAAS,CACtB,CAAC;IAEF,MAAM,KAAK,GAAa,EAAE,CAAC;IAC3B,MAAM,uBAAuB,GAAgB,EAAE,CAAC;IAChD,iBAAiB,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;QAChC,IAAI,GAAG,EAAE,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ACZ,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AAEF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,OAAO;IACxB,QAAQ;IACR,KAAK,EAAE,QAAQ;CAChB,CAAC;AACF,kBAAe,GAAG,CAAC"}
@@ -1,14 +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 ClaimStatus = {
6
- buffer: Buffer;
7
- claimant: PublicKey;
8
- lockedAmount: BigNumber;
9
- lockedAmountWithdrawn: BigNumber;
10
- unlockedAmount: BigNumber;
11
- closable: Buffer;
12
- admin: PublicKey;
13
- };
14
- export declare const claimStatusStruct: BeetStruct<ClaimStatus, Partial<ClaimStatus>>;