@sonarwatch/portfolio-plugins 0.15.46 → 0.15.47

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 (64) hide show
  1. package/CHANGELOG.md +2935 -2926
  2. package/README.md +3 -3
  3. package/package.json +1 -1
  4. package/src/index.js +2 -0
  5. package/src/index.js.map +1 -1
  6. package/src/plugins/balancer/helpers/pools.js +21 -21
  7. package/src/plugins/byreal/clmmJob.d.ts +3 -0
  8. package/src/plugins/byreal/clmmJob.js +140 -0
  9. package/src/plugins/byreal/clmmJob.js.map +1 -0
  10. package/src/plugins/byreal/constants.d.ts +8 -0
  11. package/src/plugins/byreal/constants.js +11 -0
  12. package/src/plugins/byreal/constants.js.map +1 -0
  13. package/src/plugins/byreal/index.d.ts +4 -0
  14. package/src/plugins/byreal/index.js +11 -0
  15. package/src/plugins/byreal/index.js.map +1 -0
  16. package/src/plugins/byreal/resetFetcher.d.ts +3 -0
  17. package/src/plugins/byreal/resetFetcher.js +119 -0
  18. package/src/plugins/byreal/resetFetcher.js.map +1 -0
  19. package/src/plugins/byreal/structs.d.ts +53 -0
  20. package/src/plugins/byreal/structs.js +53 -0
  21. package/src/plugins/byreal/structs.js.map +1 -0
  22. package/src/plugins/carrot/constants.d.ts +1 -0
  23. package/src/plugins/carrot/constants.js +2 -1
  24. package/src/plugins/carrot/constants.js.map +1 -1
  25. package/src/plugins/carrot/crtYieldJob.d.ts +3 -0
  26. package/src/plugins/carrot/crtYieldJob.js +35 -0
  27. package/src/plugins/carrot/crtYieldJob.js.map +1 -0
  28. package/src/plugins/carrot/index.js +2 -1
  29. package/src/plugins/carrot/index.js.map +1 -1
  30. package/src/plugins/fragmetric/airdropFetcher.d.ts +2 -0
  31. package/src/plugins/fragmetric/airdropFetcher.js +48 -0
  32. package/src/plugins/fragmetric/airdropFetcher.js.map +1 -0
  33. package/src/plugins/fragmetric/constants.d.ts +10 -0
  34. package/src/plugins/fragmetric/constants.js +18 -1
  35. package/src/plugins/fragmetric/constants.js.map +1 -1
  36. package/src/plugins/fragmetric/index.d.ts +2 -0
  37. package/src/plugins/fragmetric/index.js +3 -1
  38. package/src/plugins/fragmetric/index.js.map +1 -1
  39. package/src/plugins/kamino/constants.js +4 -0
  40. package/src/plugins/kamino/constants.js.map +1 -1
  41. package/src/plugins/raydium/clmmFetcher.d.ts +4 -1
  42. package/src/plugins/raydium/clmmFetcher.js +81 -79
  43. package/src/plugins/raydium/clmmFetcher.js.map +1 -1
  44. package/src/plugins/raydium/constants.d.ts +1 -1
  45. package/src/plugins/raydium/constants.js +2 -2
  46. package/src/plugins/raydium/constants.js.map +1 -1
  47. package/src/plugins/sushiswap/helpers.js +24 -24
  48. package/src/plugins/switchboard/onDemandPricingJob.js +2 -1
  49. package/src/plugins/switchboard/onDemandPricingJob.js.map +1 -1
  50. package/src/plugins/tokens/fetchers/solana.js +3 -1
  51. package/src/plugins/tokens/fetchers/solana.js.map +1 -1
  52. package/src/plugins/uniswap-v2/helpers.js +22 -22
  53. package/src/plugins/voltr/constants.d.ts +6 -0
  54. package/src/plugins/voltr/constants.js +8 -0
  55. package/src/plugins/voltr/constants.js.map +1 -0
  56. package/src/plugins/voltr/index.d.ts +4 -0
  57. package/src/plugins/voltr/index.js +6 -0
  58. package/src/plugins/voltr/index.js.map +1 -0
  59. package/src/plugins/zeta/airdropFetcher.js +14 -14
  60. package/src/utils/sei/constants.js +8 -8
  61. package/src/utils/sei/getQueryBalanceByOwner.js +4 -4
  62. package/src/utils/solana/constants.d.ts +0 -1
  63. package/src/utils/solana/constants.js +1 -2
  64. package/src/utils/solana/constants.js.map +1 -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;
@@ -0,0 +1,6 @@
1
+ /// <reference types="@drift-labs/sdk/node_modules/@solana/web3.js" />
2
+ /// <reference types="jito-ts/node_modules/@solana/web3.js" />
3
+ import { PublicKey } from '@solana/web3.js';
4
+ export declare const platformId = "voltr";
5
+ export declare const vaultPid: PublicKey;
6
+ export declare const adaptorPid: PublicKey;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.adaptorPid = exports.vaultPid = exports.platformId = void 0;
4
+ const web3_js_1 = require("@solana/web3.js");
5
+ exports.platformId = 'voltr';
6
+ exports.vaultPid = new web3_js_1.PublicKey('EwAei87GBsgeLueC7mShT2TNbH3BYumP4RskusxUFBn6');
7
+ exports.adaptorPid = new web3_js_1.PublicKey('3BufioDyECNwuFJLRGCXNbZFrsnJnCsALMfDKjQEnk8x');
8
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/voltr/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAE/B,QAAA,UAAU,GAAG,OAAO,CAAC;AAErB,QAAA,QAAQ,GAAG,IAAI,mBAAS,CACnC,8CAA8C,CAC/C,CAAC;AACW,QAAA,UAAU,GAAG,IAAI,mBAAS,CACrC,8CAA8C,CAC/C,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { Fetcher } from '../../Fetcher';
2
+ import { Job } from '../../Job';
3
+ export declare const jobs: Job[];
4
+ export declare const fetchers: Fetcher[];
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.fetchers = exports.jobs = void 0;
4
+ exports.jobs = [];
5
+ exports.fetchers = [];
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/voltr/index.ts"],"names":[],"mappings":";;;AAGa,QAAA,IAAI,GAAU,EAAE,CAAC;AACjB,QAAA,QAAQ,GAAc,EAAE,CAAC"}
@@ -41,20 +41,20 @@ const getMultipleAccountsInfoSafe_1 = require("../../utils/solana/getMultipleAcc
41
41
  const helpers_1 = require("./helpers");
42
42
  const AirdropFetcher_1 = require("../../AirdropFetcher");
43
43
  const getClaimTransactions_1 = require("../../utils/solana/jupiter/getClaimTransactions");
44
- const query = (0, graphql_request_1.gql) `
45
- query GetAirdropFinalFrontend($authority: String!) {
46
- getAirdropFinalFrontend(authority: $authority) {
47
- authority
48
- community_allocation
49
- eligibility
50
- main_allocation
51
- og_allocation
52
- s1_allocation
53
- s2_allocation
54
- total_allocation
55
- __typename
56
- }
57
- }
44
+ const query = (0, graphql_request_1.gql) `
45
+ query GetAirdropFinalFrontend($authority: String!) {
46
+ getAirdropFinalFrontend(authority: $authority) {
47
+ authority
48
+ community_allocation
49
+ eligibility
50
+ main_allocation
51
+ og_allocation
52
+ s1_allocation
53
+ s2_allocation
54
+ total_allocation
55
+ __typename
56
+ }
57
+ }
58
58
  `;
59
59
  const executor = (owner) => __awaiter(void 0, void 0, void 0, function* () {
60
60
  const res = yield (0, graphql_request_1.default)(constants_1.graphqlApi, query, {
@@ -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;
@@ -11,4 +11,3 @@ export declare const usdcSolanaMint = "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTD
11
11
  export declare const usdcSolanaDecimals = 6;
12
12
  export declare const usdcSolanaFactor: BigNumber;
13
13
  export declare const emptyWithSol = "empty11111111111111111111111111111111111111";
14
- export declare const crtSolanaMint = "CRTx1JouZhzSU6XytsE42UQraoGqiHgxabocVfARTy2s";
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.crtSolanaMint = exports.emptyWithSol = exports.usdcSolanaFactor = exports.usdcSolanaDecimals = exports.usdcSolanaMint = exports.associatedTokenProgramId = exports.solanaToken2022PidPk = exports.solanaToken2022Pid = exports.solanaTokenPidPk = exports.solanaTokenPid = void 0;
6
+ exports.emptyWithSol = exports.usdcSolanaFactor = exports.usdcSolanaDecimals = exports.usdcSolanaMint = exports.associatedTokenProgramId = exports.solanaToken2022PidPk = exports.solanaToken2022Pid = exports.solanaTokenPidPk = exports.solanaTokenPid = void 0;
7
7
  const web3_js_1 = require("@solana/web3.js");
8
8
  const bignumber_js_1 = __importDefault(require("bignumber.js"));
9
9
  exports.solanaTokenPid = 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA';
@@ -15,5 +15,4 @@ exports.usdcSolanaMint = 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v';
15
15
  exports.usdcSolanaDecimals = 6;
16
16
  exports.usdcSolanaFactor = new bignumber_js_1.default(Math.pow(10, 6));
17
17
  exports.emptyWithSol = 'empty11111111111111111111111111111111111111';
18
- exports.crtSolanaMint = 'CRTx1JouZhzSU6XytsE42UQraoGqiHgxabocVfARTy2s';
19
18
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/solana/constants.ts"],"names":[],"mappings":";;;;;;AAAA,6CAA4C;AAC5C,gEAAqC;AAExB,QAAA,cAAc,GAAG,6CAA6C,CAAC;AAC/D,QAAA,gBAAgB,GAAG,IAAI,mBAAS,CAAC,sBAAc,CAAC,CAAC;AAEjD,QAAA,kBAAkB,GAAG,6CAA6C,CAAC;AACnE,QAAA,oBAAoB,GAAG,IAAI,mBAAS,CAAC,0BAAkB,CAAC,CAAC;AAEzD,QAAA,wBAAwB,GAAG,IAAI,mBAAS,CACnD,8CAA8C,CAC/C,CAAC;AAEW,QAAA,cAAc,GAAG,8CAA8C,CAAC;AAChE,QAAA,kBAAkB,GAAG,CAAC,CAAC;AACvB,QAAA,gBAAgB,GAAG,IAAI,sBAAS,CAAC,SAAA,EAAE,EAAI,CAAC,CAAA,CAAC,CAAC;AAC1C,QAAA,YAAY,GAAG,6CAA6C,CAAC;AAE7D,QAAA,aAAa,GAAG,8CAA8C,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/solana/constants.ts"],"names":[],"mappings":";;;;;;AAAA,6CAA4C;AAC5C,gEAAqC;AAExB,QAAA,cAAc,GAAG,6CAA6C,CAAC;AAC/D,QAAA,gBAAgB,GAAG,IAAI,mBAAS,CAAC,sBAAc,CAAC,CAAC;AAEjD,QAAA,kBAAkB,GAAG,6CAA6C,CAAC;AACnE,QAAA,oBAAoB,GAAG,IAAI,mBAAS,CAAC,0BAAkB,CAAC,CAAC;AAEzD,QAAA,wBAAwB,GAAG,IAAI,mBAAS,CACnD,8CAA8C,CAC/C,CAAC;AAEW,QAAA,cAAc,GAAG,8CAA8C,CAAC;AAChE,QAAA,kBAAkB,GAAG,CAAC,CAAC;AACvB,QAAA,gBAAgB,GAAG,IAAI,sBAAS,CAAC,SAAA,EAAE,EAAI,CAAC,CAAA,CAAC,CAAC;AAC1C,QAAA,YAAY,GAAG,6CAA6C,CAAC"}