@sonarwatch/portfolio-plugins 0.11.177 → 0.11.178

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. package/CHANGELOG.md +1439 -1435
  2. package/README.md +3 -3
  3. package/package.json +2 -2
  4. package/src/index.js +4 -0
  5. package/src/index.js.map +1 -1
  6. package/src/plugins/balancer/helpers/pools.js +21 -21
  7. package/src/plugins/flexlend/helpers.d.ts +1 -0
  8. package/src/plugins/flexlend/helpers.js +6 -1
  9. package/src/plugins/flexlend/helpers.js.map +1 -1
  10. package/src/plugins/flexlend/index.js +2 -1
  11. package/src/plugins/flexlend/index.js.map +1 -1
  12. package/src/plugins/flexlend/liftFetcher.d.ts +3 -0
  13. package/src/plugins/flexlend/liftFetcher.js +67 -0
  14. package/src/plugins/flexlend/liftFetcher.js.map +1 -0
  15. package/src/plugins/flexlend/struct.d.ts +14 -2
  16. package/src/plugins/flexlend/struct.js +16 -3
  17. package/src/plugins/flexlend/struct.js.map +1 -1
  18. package/src/plugins/jito/airdropFetcher.d.ts +3 -0
  19. package/src/plugins/jito/airdropFetcher.js +67 -0
  20. package/src/plugins/jito/airdropFetcher.js.map +1 -0
  21. package/src/plugins/jito/constants.d.ts +8 -0
  22. package/src/plugins/jito/constants.js +18 -0
  23. package/src/plugins/jito/constants.js.map +1 -0
  24. package/src/plugins/jito/index.d.ts +6 -0
  25. package/src/plugins/jito/index.js +12 -0
  26. package/src/plugins/jito/index.js.map +1 -0
  27. package/src/plugins/jito/structs.d.ts +12 -0
  28. package/src/plugins/jito/structs.js +14 -0
  29. package/src/plugins/jito/structs.js.map +1 -0
  30. package/src/plugins/jito/types.d.ts +11 -0
  31. package/src/plugins/jito/types.js +3 -0
  32. package/src/plugins/jito/types.js.map +1 -0
  33. package/src/plugins/native-stake/solana/solanaFetcher.js +23 -1
  34. package/src/plugins/native-stake/solana/solanaFetcher.js.map +1 -1
  35. package/src/plugins/sushiswap/helpers.js +24 -24
  36. package/src/plugins/uniswap-v2/helpers.js +22 -22
  37. package/src/utils/sei/constants.js +8 -8
  38. package/src/utils/sei/getQueryBalanceByOwner.js +4 -4
@@ -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;
@@ -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;