@sonarwatch/portfolio-plugins 0.12.125 → 0.12.126

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. package/CHANGELOG.md +2217 -2213
  2. package/README.md +3 -3
  3. package/package.json +1 -1
  4. package/src/index.js +5 -1
  5. package/src/index.js.map +1 -1
  6. package/src/plugins/balancer/helpers/pools.js +21 -21
  7. package/src/plugins/jupiter/governance/asrAirdropFetcher.d.ts +2 -2
  8. package/src/plugins/jupiter/governance/asrAirdropFetcher.js +3 -2
  9. package/src/plugins/jupiter/governance/asrAirdropFetcher.js.map +1 -1
  10. package/src/plugins/jupiter/index.js +4 -9
  11. package/src/plugins/jupiter/index.js.map +1 -1
  12. package/src/plugins/kamino/constants.js +12 -1
  13. package/src/plugins/kamino/constants.js.map +1 -1
  14. package/src/plugins/quarry/positionsFetcher.js +37 -5
  15. package/src/plugins/quarry/positionsFetcher.js.map +1 -1
  16. package/src/plugins/quarry/types.d.ts +1 -0
  17. package/src/plugins/sanctum/constants.d.ts +1 -1
  18. package/src/plugins/sanctum/constants.js +2 -2
  19. package/src/plugins/sanctum/constants.js.map +1 -1
  20. package/src/plugins/sanctum/index.d.ts +2 -2
  21. package/src/plugins/sanctum/index.js +4 -11
  22. package/src/plugins/sanctum/index.js.map +1 -1
  23. package/src/plugins/sanctum/s1AirdropFetcher.d.ts +3 -0
  24. package/src/plugins/sanctum/{airdropFetcher.js → s1AirdropFetcher.js} +7 -6
  25. package/src/plugins/sanctum/s1AirdropFetcher.js.map +1 -0
  26. package/src/plugins/sushiswap/helpers.js +24 -24
  27. package/src/plugins/thevault/constants.d.ts +3 -0
  28. package/src/plugins/thevault/constants.js +12 -0
  29. package/src/plugins/thevault/constants.js.map +1 -0
  30. package/src/plugins/thevault/index.d.ts +6 -0
  31. package/src/plugins/thevault/index.js +8 -0
  32. package/src/plugins/thevault/index.js.map +1 -0
  33. package/src/plugins/uniswap-v2/helpers.js +22 -22
  34. package/src/utils/sei/constants.js +8 -8
  35. package/src/utils/sei/getQueryBalanceByOwner.js +4 -4
  36. package/src/plugins/sanctum/airdropFetcher.d.ts +0 -3
  37. package/src/plugins/sanctum/airdropFetcher.js.map +0 -1
@@ -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;
@@ -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,3 +0,0 @@
1
- import { AirdropFetcher } from '../../AirdropFetcher';
2
- declare const airdropFetcher: AirdropFetcher;
3
- export default airdropFetcher;
@@ -1 +0,0 @@
1
- {"version":3,"file":"airdropFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/sanctum/airdropFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,gEAAqC;AACrC,kDAA6C;AAC7C,+DAAuD;AACvD,yDAI8B;AAC9B,oFAAiF;AACjF,iDAAsD;AAEtD,8DAA8E;AAC9E,2CAAuE;AAEvE,MAAM,QAAQ,GAA2B,CAAO,KAAa,EAAE,EAAE;IAC/D,MAAM,cAAc,GAA6C,MAAM,eAAK;SACzE,GAAG,CACF,GAAG,yBAAa,iDAAiD,KAAK,EAAE,EACxE;QACE,OAAO,EAAE,IAAI;KACd,CACF;SACA,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE;QACX,IAAI,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,QAAQ,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC;YAC5C,OAAO,IAAI,CAAC;QACd,CAAC;QACD,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;IAC1D,CAAC,CAAC,CAAC;IACL,IAAI,CAAC,cAAc,IAAI,OAAO,cAAc,CAAC,IAAI,KAAK,QAAQ;QAC5D,OAAO,IAAA,8BAAa,EAAC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