@sonarwatch/portfolio-plugins 0.14.138 → 0.14.139

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 (78) hide show
  1. package/CHANGELOG.md +2156 -2152
  2. package/README.md +3 -3
  3. package/package.json +1 -1
  4. package/src/index.js +356 -639
  5. package/src/index.js.map +1 -1
  6. package/src/orphanPlatforms.d.ts +1 -0
  7. package/src/orphanPlatforms.js +2 -1
  8. package/src/orphanPlatforms.js.map +1 -1
  9. package/src/plugins/balancer/helpers/pools.js +21 -21
  10. package/src/plugins/bluefin/index.d.ts +2 -2
  11. package/src/plugins/bluefin/index.js +2 -2
  12. package/src/plugins/bluefin/index.js.map +1 -1
  13. package/src/plugins/deepbook/index.d.ts +2 -0
  14. package/src/plugins/deepbook/index.js +2 -1
  15. package/src/plugins/deepbook/index.js.map +1 -1
  16. package/src/plugins/drift/index.d.ts +2 -1
  17. package/src/plugins/drift/index.js +3 -4
  18. package/src/plugins/drift/index.js.map +1 -1
  19. package/src/plugins/grass/index.d.ts +2 -2
  20. package/src/plugins/grass/index.js +2 -2
  21. package/src/plugins/grass/index.js.map +1 -1
  22. package/src/plugins/jupiter/exchange/dcaFetcher.js +1 -1
  23. package/src/plugins/jupiter/exchange/dcaFetcher.js.map +1 -1
  24. package/src/plugins/jupiter/exchange/limitFetcher.js +1 -1
  25. package/src/plugins/jupiter/exchange/limitFetcher.js.map +1 -1
  26. package/src/plugins/jupiter/exchange/perpetualFetcher.js +1 -1
  27. package/src/plugins/jupiter/exchange/perpetualFetcher.js.map +1 -1
  28. package/src/plugins/magiceden/index.d.ts +2 -2
  29. package/src/plugins/magiceden/index.js +2 -2
  30. package/src/plugins/magiceden/index.js.map +1 -1
  31. package/src/plugins/marinade/index.d.ts +2 -0
  32. package/src/plugins/marinade/index.js +2 -1
  33. package/src/plugins/marinade/index.js.map +1 -1
  34. package/src/plugins/parcl/index.d.ts +2 -1
  35. package/src/plugins/parcl/index.js +3 -4
  36. package/src/plugins/parcl/index.js.map +1 -1
  37. package/src/plugins/saber/index.d.ts +2 -0
  38. package/src/plugins/saber/index.js +2 -1
  39. package/src/plugins/saber/index.js.map +1 -1
  40. package/src/plugins/solayer/constants.js +1 -1
  41. package/src/plugins/solayer/constants.js.map +1 -1
  42. package/src/plugins/solayer/index.d.ts +2 -2
  43. package/src/plugins/solayer/index.js +2 -2
  44. package/src/plugins/solayer/index.js.map +1 -1
  45. package/src/plugins/sonic/index.d.ts +2 -2
  46. package/src/plugins/sonic/index.js +2 -2
  47. package/src/plugins/sonic/index.js.map +1 -1
  48. package/src/plugins/suilend/index.d.ts +2 -2
  49. package/src/plugins/suilend/index.js +2 -2
  50. package/src/plugins/suilend/index.js.map +1 -1
  51. package/src/plugins/suins/index.d.ts +2 -2
  52. package/src/plugins/suins/index.js +2 -2
  53. package/src/plugins/suins/index.js.map +1 -1
  54. package/src/plugins/sushiswap/helpers.js +24 -24
  55. package/src/plugins/switchboard/index.d.ts +2 -0
  56. package/src/plugins/switchboard/index.js +2 -1
  57. package/src/plugins/switchboard/index.js.map +1 -1
  58. package/src/plugins/tensor/index.d.ts +3 -1
  59. package/src/plugins/tensor/index.js +3 -2
  60. package/src/plugins/tensor/index.js.map +1 -1
  61. package/src/plugins/top-tokens/index.d.ts +4 -0
  62. package/src/plugins/top-tokens/index.js +3 -1
  63. package/src/plugins/top-tokens/index.js.map +1 -1
  64. package/src/plugins/uniswap-v2/helpers.js +22 -22
  65. package/src/plugins/uniswap-v2/index.d.ts +2 -0
  66. package/src/plugins/uniswap-v2/index.js +2 -1
  67. package/src/plugins/uniswap-v2/index.js.map +1 -1
  68. package/src/plugins/zeta/airdropFetcher.js +14 -14
  69. package/src/plugins/zeta/index.d.ts +2 -2
  70. package/src/plugins/zeta/index.js +2 -2
  71. package/src/plugins/zeta/index.js.map +1 -1
  72. package/src/utils/clients/getClientSolana.d.ts +7 -1
  73. package/src/utils/clients/getClientSolana.js +2 -1
  74. package/src/utils/clients/getClientSolana.js.map +1 -1
  75. package/src/utils/sei/constants.js +8 -8
  76. package/src/utils/sei/getQueryBalanceByOwner.js +4 -4
  77. package/src/utils/solana/getProgramAccounts.js +0 -1
  78. package/src/utils/solana/getProgramAccounts.js.map +1 -1
@@ -3,14 +3,14 @@ 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.airdropFetcher = exports.fetchers = exports.jobs = exports.platforms = void 0;
6
+ exports.airdropFetchers = exports.fetchers = exports.jobs = exports.platforms = void 0;
7
7
  const constants_1 = require("./constants");
8
8
  const obligationsFetcher_1 = __importDefault(require("./obligationsFetcher"));
9
9
  const marketsJob_1 = __importDefault(require("./marketsJob"));
10
10
  const airdropFetcher_1 = require("./airdropFetcher");
11
- Object.defineProperty(exports, "airdropFetcher", { enumerable: true, get: function () { return airdropFetcher_1.airdropFetcher; } });
12
11
  const burnEventsJob_1 = __importDefault(require("./burnEventsJob"));
13
12
  exports.platforms = [constants_1.platform];
14
13
  exports.jobs = [marketsJob_1.default, burnEventsJob_1.default];
15
14
  exports.fetchers = [obligationsFetcher_1.default];
15
+ exports.airdropFetchers = [airdropFetcher_1.airdropFetcher];
16
16
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/suilend/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAAuC;AACvC,8EAAsD;AACtD,8DAAsC;AACtC,qDAAkD;AAMzC,+FANA,+BAAc,OAMA;AALvB,oEAA2C;AAE9B,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,CAAC,oBAAU,EAAE,uBAAY,CAAC,CAAC;AACzC,QAAA,QAAQ,GAAc,CAAC,4BAAkB,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/suilend/index.ts"],"names":[],"mappings":";;;;;;AAIA,2CAAuC;AACvC,8EAAsD;AACtD,8DAAsC;AACtC,qDAAkD;AAClD,oEAA2C;AAE9B,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,CAAC,oBAAU,EAAE,uBAAY,CAAC,CAAC;AACzC,QAAA,QAAQ,GAAc,CAAC,4BAAkB,CAAC,CAAC;AAE3C,QAAA,eAAe,GAAqB,CAAC,+BAAc,CAAC,CAAC"}
@@ -1,8 +1,8 @@
1
1
  import { Platform } from '@sonarwatch/portfolio-core';
2
+ import { AirdropFetcher } from '../../AirdropFetcher';
2
3
  import { Fetcher } from '../../Fetcher';
3
4
  import { Job } from '../../Job';
4
- import { airdropFetcher } from './airdropFetcher';
5
5
  export declare const platforms: Platform[];
6
6
  export declare const jobs: Job[];
7
7
  export declare const fetchers: Fetcher[];
8
- export { airdropFetcher };
8
+ export declare const airdropFetchers: AirdropFetcher[];
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.airdropFetcher = exports.fetchers = exports.jobs = exports.platforms = void 0;
3
+ exports.airdropFetchers = exports.fetchers = exports.jobs = exports.platforms = void 0;
4
4
  const constants_1 = require("./constants");
5
5
  const airdropFetcher_1 = require("./airdropFetcher");
6
- Object.defineProperty(exports, "airdropFetcher", { enumerable: true, get: function () { return airdropFetcher_1.airdropFetcher; } });
7
6
  exports.platforms = [constants_1.platform];
8
7
  exports.jobs = [];
9
8
  exports.fetchers = [airdropFetcher_1.fetcher];
9
+ exports.airdropFetchers = [airdropFetcher_1.airdropFetcher];
10
10
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/suins/index.ts"],"names":[],"mappings":";;;AAGA,2CAAuC;AACvC,qDAAwE;AAK/D,+FALA,+BAAc,OAKA;AAHV,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,EAAE,CAAC;AACjB,QAAA,QAAQ,GAAc,CAAC,wBAAS,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/suins/index.ts"],"names":[],"mappings":";;;AAIA,2CAAuC;AACvC,qDAAwE;AAE3D,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,EAAE,CAAC;AACjB,QAAA,QAAQ,GAAc,CAAC,wBAAS,CAAC,CAAC;AAElC,QAAA,eAAe,GAAqB,CAAC,+BAAc,CAAC,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;
@@ -1,4 +1,6 @@
1
+ import { Platform } from '@sonarwatch/portfolio-core';
1
2
  import { Fetcher } from '../../Fetcher';
2
3
  import { Job } from '../../Job';
3
4
  export declare const jobs: Job[];
4
5
  export declare const fetchers: Fetcher[];
6
+ export declare const platforms: Platform[];
@@ -3,9 +3,10 @@ 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.fetchers = exports.jobs = void 0;
6
+ exports.platforms = exports.fetchers = exports.jobs = void 0;
7
7
  const pricingJob_1 = __importDefault(require("./pricingJob"));
8
8
  const onDemandPricingJob_1 = __importDefault(require("./onDemandPricingJob"));
9
9
  exports.jobs = [pricingJob_1.default, onDemandPricingJob_1.default];
10
10
  exports.fetchers = [];
11
+ exports.platforms = [];
11
12
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/switchboard/index.ts"],"names":[],"mappings":";;;;;;AAEA,8DAAsC;AACtC,8EAAsD;AAEzC,QAAA,IAAI,GAAU,CAAC,oBAAU,EAAE,4BAAkB,CAAC,CAAC;AAC/C,QAAA,QAAQ,GAAc,EAAE,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/switchboard/index.ts"],"names":[],"mappings":";;;;;;AAGA,8DAAsC;AACtC,8EAAsD;AAEzC,QAAA,IAAI,GAAU,CAAC,oBAAU,EAAE,4BAAkB,CAAC,CAAC;AAC/C,QAAA,QAAQ,GAAc,EAAE,CAAC;AAEzB,QAAA,SAAS,GAAe,EAAE,CAAC"}
@@ -1,6 +1,8 @@
1
1
  import { Platform } from '@sonarwatch/portfolio-core';
2
+ import { Job } from '../../Job';
2
3
  import { Fetcher } from '../../Fetcher';
3
4
  import { AirdropFetcher } from '../../AirdropFetcher';
4
5
  export declare const platforms: Platform[];
5
6
  export declare const fetchers: Fetcher[];
6
- export declare const tensorAirdropFetchers: AirdropFetcher[];
7
+ export declare const airdropFetchers: AirdropFetcher[];
8
+ export declare const jobs: Job[];
@@ -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.tensorAirdropFetchers = exports.fetchers = exports.platforms = void 0;
6
+ exports.jobs = exports.airdropFetchers = exports.fetchers = exports.platforms = void 0;
7
7
  const constants_1 = require("./constants");
8
8
  const bidsFetcher_1 = __importDefault(require("./bidsFetcher"));
9
9
  // import powerUserAirdropFetcher from './airdropPowerUsersFetcher';
@@ -17,8 +17,9 @@ exports.fetchers = [
17
17
  season4AirdropFetcher_1.s4Fetcher,
18
18
  sharedEscrowFetcher_1.default,
19
19
  ];
20
- exports.tensorAirdropFetchers = [
20
+ exports.airdropFetchers = [
21
21
  powerUserAirdropFetcher_1.powerUserAirdropFetcher,
22
22
  season4AirdropFetcher_1.airdropS4Fetcher,
23
23
  ];
24
+ exports.jobs = [];
24
25
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/tensor/index.ts"],"names":[],"mappings":";;;;;;AAIA,2CAAuC;AACvC,gEAAwC;AACxC,oEAAoE;AACpE,gFAAwD;AACxD,uEAGmC;AACnC,mEAAsE;AAGzD,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,QAAQ,GAAc;IACjC,qBAAW;IACX,0CAAgB;IAChB,iCAAS;IACT,6BAAmB;CACpB,CAAC;AAEW,QAAA,qBAAqB,GAAqB;IACrD,iDAAuB;IACvB,wCAAgB;CACjB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/tensor/index.ts"],"names":[],"mappings":";;;;;;AAKA,2CAAuC;AACvC,gEAAwC;AACxC,oEAAoE;AACpE,gFAAwD;AACxD,uEAGmC;AACnC,mEAAsE;AAGzD,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,QAAQ,GAAc;IACjC,qBAAW;IACX,0CAAgB;IAChB,iCAAS;IACT,6BAAmB;CACpB,CAAC;AAEW,QAAA,eAAe,GAAqB;IAC/C,iDAAuB;IACvB,wCAAgB;CACjB,CAAC;AAEW,QAAA,IAAI,GAAU,EAAE,CAAC"}
@@ -1,2 +1,6 @@
1
+ import { Platform } from '@sonarwatch/portfolio-core';
2
+ import { Fetcher } from '../../Fetcher';
1
3
  import { Job } from '../../Job';
2
4
  export declare const jobs: Job[];
5
+ export declare const platforms: Platform[];
6
+ export declare const fetchers: Fetcher[];
@@ -3,7 +3,9 @@ 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.jobs = void 0;
6
+ exports.fetchers = exports.platforms = exports.jobs = void 0;
7
7
  const topTokensJob_1 = __importDefault(require("./topTokensJob"));
8
8
  exports.jobs = [topTokensJob_1.default];
9
+ exports.platforms = [];
10
+ exports.fetchers = [];
9
11
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/top-tokens/index.ts"],"names":[],"mappings":";;;;;;AACA,kEAA0C;AAE7B,QAAA,IAAI,GAAU,CAAC,sBAAY,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/top-tokens/index.ts"],"names":[],"mappings":";;;;;;AAGA,kEAA0C;AAE7B,QAAA,IAAI,GAAU,CAAC,sBAAY,CAAC,CAAC;AAC7B,QAAA,SAAS,GAAe,EAAE,CAAC;AAC3B,QAAA,QAAQ,GAAc,EAAE,CAAC"}
@@ -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,4 +1,6 @@
1
+ import { Platform } from '@sonarwatch/portfolio-core';
1
2
  import { Fetcher } from '../../Fetcher';
2
3
  import { Job } from '../../Job';
3
4
  export declare const jobs: Job[];
4
5
  export declare const fetchers: Fetcher[];
6
+ export declare const platforms: Platform[];
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.fetchers = exports.jobs = void 0;
3
+ exports.platforms = exports.fetchers = exports.jobs = void 0;
4
4
  // import { NetworkId } from '@sonarwatch/portfolio-core';
5
5
  // import { theGraphUrl } from './constants';
6
6
  // import getPoolsJob from './getPoolsJob';
@@ -12,4 +12,5 @@ exports.jobs = [
12
12
  exports.fetchers = [
13
13
  // getPositionsV2Fetcher(NetworkId.ethereum, platformId, 'V2'),
14
14
  ];
15
+ exports.platforms = [];
15
16
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/uniswap-v2/index.ts"],"names":[],"mappings":";;;AAEA,0DAA0D;AAC1D,6CAA6C;AAC7C,2CAA2C;AAC3C,qDAAqD;AACrD,+DAA+D;AAElD,QAAA,IAAI,GAAU;AACzB,kEAAkE;CACnE,CAAC;AACW,QAAA,QAAQ,GAAc;AACjC,+DAA+D;CAChE,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/uniswap-v2/index.ts"],"names":[],"mappings":";;;AAGA,0DAA0D;AAC1D,6CAA6C;AAC7C,2CAA2C;AAC3C,qDAAqD;AACrD,+DAA+D;AAElD,QAAA,IAAI,GAAU;AACzB,kEAAkE;CACnE,CAAC;AACW,QAAA,QAAQ,GAAc;AACjC,+DAA+D;CAChE,CAAC;AAEW,QAAA,SAAS,GAAe,EAAE,CAAC"}
@@ -40,20 +40,20 @@ const clients_1 = require("../../utils/clients");
40
40
  const getMultipleAccountsInfoSafe_1 = require("../../utils/solana/getMultipleAccountsInfoSafe");
41
41
  const helpers_1 = require("./helpers");
42
42
  const AirdropFetcher_1 = require("../../AirdropFetcher");
43
- const query = (0, graphql_request_1.gql) `
44
- query GetAirdropFinalFrontend($authority: String!) {
45
- getAirdropFinalFrontend(authority: $authority) {
46
- authority
47
- community_allocation
48
- eligibility
49
- main_allocation
50
- og_allocation
51
- s1_allocation
52
- s2_allocation
53
- total_allocation
54
- __typename
55
- }
56
- }
43
+ const query = (0, graphql_request_1.gql) `
44
+ query GetAirdropFinalFrontend($authority: String!) {
45
+ getAirdropFinalFrontend(authority: $authority) {
46
+ authority
47
+ community_allocation
48
+ eligibility
49
+ main_allocation
50
+ og_allocation
51
+ s1_allocation
52
+ s2_allocation
53
+ total_allocation
54
+ __typename
55
+ }
56
+ }
57
57
  `;
58
58
  const networkId = portfolio_core_1.NetworkId.solana;
59
59
  const executor = (owner) => __awaiter(void 0, void 0, void 0, function* () {
@@ -1,8 +1,8 @@
1
1
  import { Platform } from '@sonarwatch/portfolio-core';
2
+ import { AirdropFetcher } from '../../AirdropFetcher';
2
3
  import { Fetcher } from '../../Fetcher';
3
4
  import { Job } from '../../Job';
4
- import { airdropFetcher } from './airdropFetcher';
5
5
  export declare const jobs: Job[];
6
6
  export declare const fetchers: Fetcher[];
7
7
  export declare const platforms: Platform[];
8
- export { airdropFetcher };
8
+ export declare const airdropFetchers: AirdropFetcher[];
@@ -3,13 +3,13 @@ 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.airdropFetcher = exports.platforms = exports.fetchers = exports.jobs = void 0;
6
+ exports.airdropFetchers = exports.platforms = exports.fetchers = exports.jobs = void 0;
7
7
  const depositsFetcher_1 = __importDefault(require("./depositsFetcher"));
8
8
  const airdropFetcher_1 = require("./airdropFetcher");
9
- Object.defineProperty(exports, "airdropFetcher", { enumerable: true, get: function () { return airdropFetcher_1.airdropFetcher; } });
10
9
  const stakingFetcher_1 = __importDefault(require("./stakingFetcher"));
11
10
  const constants_1 = require("./constants");
12
11
  exports.jobs = [];
13
12
  exports.fetchers = [depositsFetcher_1.default, airdropFetcher_1.fetcher, stakingFetcher_1.default];
14
13
  exports.platforms = [constants_1.platform];
14
+ exports.airdropFetchers = [airdropFetcher_1.airdropFetcher];
15
15
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/zeta/index.ts"],"names":[],"mappings":";;;;;;AAGA,wEAAgD;AAChD,qDAA2D;AAOlD,+FAPA,+BAAc,OAOA;AANvB,sEAA8C;AAC9C,2CAAuC;AAE1B,QAAA,IAAI,GAAU,EAAE,CAAC;AACjB,QAAA,QAAQ,GAAc,CAAC,yBAAe,EAAE,wBAAO,EAAE,wBAAc,CAAC,CAAC;AACjE,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/zeta/index.ts"],"names":[],"mappings":";;;;;;AAIA,wEAAgD;AAChD,qDAA2D;AAC3D,sEAA8C;AAC9C,2CAAuC;AAE1B,QAAA,IAAI,GAAU,EAAE,CAAC;AACjB,QAAA,QAAQ,GAAc,CAAC,yBAAe,EAAE,wBAAO,EAAE,wBAAc,CAAC,CAAC;AACjE,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AAEnC,QAAA,eAAe,GAAqB,CAAC,+BAAc,CAAC,CAAC"}
@@ -1,2 +1,8 @@
1
+ /// <reference types="@drift-labs/sdk/node_modules/@solana/web3.js" />
2
+ /// <reference types="jito-ts/node_modules/@solana/web3.js" />
3
+ import { Commitment } from '@solana/web3.js';
1
4
  import { SolanaClient } from './types';
2
- export default function getClientSolana(): SolanaClient;
5
+ export type SolanaClientParams = {
6
+ commitment?: Commitment;
7
+ };
8
+ export default function getClientSolana(params?: SolanaClientParams): SolanaClient;
@@ -4,7 +4,7 @@ const portfolio_core_1 = require("@sonarwatch/portfolio-core");
4
4
  const web3_js_1 = require("@solana/web3.js");
5
5
  const getBasicAuthHeaders_1 = require("../misc/getBasicAuthHeaders");
6
6
  const constants_1 = require("./constants");
7
- function getClientSolana() {
7
+ function getClientSolana(params) {
8
8
  const rpcEndpoint = (0, constants_1.getRpcEndpoint)(portfolio_core_1.NetworkId.solana);
9
9
  const httpHeaders = rpcEndpoint.basicAuth
10
10
  ? (0, getBasicAuthHeaders_1.getBasicAuthHeaders)(rpcEndpoint.basicAuth.username, rpcEndpoint.basicAuth.password)
@@ -31,6 +31,7 @@ function getClientSolana() {
31
31
  };
32
32
  }
33
33
  return new web3_js_1.Connection(rpcEndpoint.url, {
34
+ commitment: (params === null || params === void 0 ? void 0 : params.commitment) || 'confirmed',
34
35
  httpHeaders,
35
36
  fetchMiddleware,
36
37
  });
@@ -1 +1 @@
1
- {"version":3,"file":"getClientSolana.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/clients/getClientSolana.ts"],"names":[],"mappings":";;AAAA,+DAAuD;AACvD,6CAA8D;AAC9D,qEAAkE;AAClE,2CAA6C;AAG7C,SAAwB,eAAe;IACrC,MAAM,WAAW,GAAG,IAAA,0BAAc,EAAC,0BAAS,CAAC,MAAM,CAAC,CAAC;IACrD,MAAM,WAAW,GAAG,WAAW,CAAC,SAAS;QACvC,CAAC,CAAC,IAAA,yCAAmB,EACjB,WAAW,CAAC,SAAS,CAAC,QAAQ,EAC9B,WAAW,CAAC,SAAS,CAAC,QAAQ,CAC/B;QACH,CAAC,CAAC,SAAS,CAAC;IAEd,IAAI,eAA4C,CAAC;IACjD,IAAI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,KAAK,MAAM,EAAE,CAAC;QACjD,MAAM,IAAI,GAA2B;YACnC,KAAK,EAAE,CAAC;SACT,CAAC;QACF,eAAe,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;;YACtC,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,CAAA,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,IAAI,0CAAE,QAAQ,EAAE,KAAI,IAAI,CAAC,CAAC;YAC9D,IAAI,OAAO,MAAM,KAAK,QAAQ;gBAAE,OAAO;YACvC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC;gBAAE,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;YACpC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;YAClB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YACnB,IAAI,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC;gBAC5B,sCAAsC;gBACtC,OAAO,CAAC,GAAG,CAAC,iBAAiB,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;YACrE,CAAC;YACD,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QACpB,CAAC,CAAC;IACJ,CAAC;IAED,OAAO,IAAI,oBAAU,CAAC,WAAW,CAAC,GAAG,EAAE;QACrC,WAAW;QACX,eAAe;KAChB,CAAC,CAAC;AACL,CAAC;AAhCD,kCAgCC"}
1
+ {"version":3,"file":"getClientSolana.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/clients/getClientSolana.ts"],"names":[],"mappings":";;AAAA,+DAAuD;AACvD,6CAA0E;AAC1E,qEAAkE;AAClE,2CAA6C;AAO7C,SAAwB,eAAe,CACrC,MAA2B;IAE3B,MAAM,WAAW,GAAG,IAAA,0BAAc,EAAC,0BAAS,CAAC,MAAM,CAAC,CAAC;IACrD,MAAM,WAAW,GAAG,WAAW,CAAC,SAAS;QACvC,CAAC,CAAC,IAAA,yCAAmB,EACjB,WAAW,CAAC,SAAS,CAAC,QAAQ,EAC9B,WAAW,CAAC,SAAS,CAAC,QAAQ,CAC/B;QACH,CAAC,CAAC,SAAS,CAAC;IAEd,IAAI,eAA4C,CAAC;IACjD,IAAI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,KAAK,MAAM,EAAE,CAAC;QACjD,MAAM,IAAI,GAA2B;YACnC,KAAK,EAAE,CAAC;SACT,CAAC;QACF,eAAe,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;;YACtC,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,CAAA,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,IAAI,0CAAE,QAAQ,EAAE,KAAI,IAAI,CAAC,CAAC;YAC9D,IAAI,OAAO,MAAM,KAAK,QAAQ;gBAAE,OAAO;YACvC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC;gBAAE,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;YACpC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;YAClB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YACnB,IAAI,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC;gBAC5B,sCAAsC;gBACtC,OAAO,CAAC,GAAG,CAAC,iBAAiB,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;YACrE,CAAC;YACD,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QACpB,CAAC,CAAC;IACJ,CAAC;IAED,OAAO,IAAI,oBAAU,CAAC,WAAW,CAAC,GAAG,EAAE;QACrC,UAAU,EAAE,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,UAAU,KAAI,WAAW;QAC7C,WAAW;QACX,eAAe;KAChB,CAAC,CAAC;AACL,CAAC;AAnCD,kCAmCC"}
@@ -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;
@@ -13,7 +13,6 @@ exports.getProgramAccounts = void 0;
13
13
  function getProgramAccounts(connection, programId, filters, maxAccounts = 0) {
14
14
  return __awaiter(this, void 0, void 0, function* () {
15
15
  const config = {
16
- commitment: 'confirmed',
17
16
  encoding: 'base64',
18
17
  filters,
19
18
  };
@@ -1 +1 @@
1
- {"version":3,"file":"getProgramAccounts.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/solana/getProgramAccounts.ts"],"names":[],"mappings":";;;;;;;;;;;;AAOA,SAAsB,kBAAkB,CACtC,UAAsB,EACtB,SAAoB,EACpB,OAAoC,EACpC,WAAW,GAAG,CAAC;;QAEf,MAAM,MAAM,GAA6B;YACvC,UAAU,EAAE,WAAW;YACvB,QAAQ,EAAE,QAAQ;YAClB,OAAO;SACR,CAAC;QAEF,IAAI,WAAW,IAAI,CAAC;YAAE,OAAO,UAAU,CAAC,kBAAkB,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;QAE9E,MAAM,WAAW,GAAG,MAAM,UAAU,CAAC,kBAAkB,CAAC,SAAS,kCAC5D,MAAM,KACT,SAAS,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,IACnC,CAAC;QACH,IAAI,WAAW,CAAC,MAAM,GAAG,WAAW;YAClC,MAAM,IAAI,KAAK,CAAC,6BAA6B,WAAW,CAAC,MAAM,GAAG,CAAC,CAAC;QAEtE,OAAO,UAAU,CAAC,kBAAkB,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;IAC1D,CAAC;CAAA;AAtBD,gDAsBC"}
1
+ {"version":3,"file":"getProgramAccounts.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/solana/getProgramAccounts.ts"],"names":[],"mappings":";;;;;;;;;;;;AAOA,SAAsB,kBAAkB,CACtC,UAAsB,EACtB,SAAoB,EACpB,OAAoC,EACpC,WAAW,GAAG,CAAC;;QAEf,MAAM,MAAM,GAA6B;YACvC,QAAQ,EAAE,QAAQ;YAClB,OAAO;SACR,CAAC;QAEF,IAAI,WAAW,IAAI,CAAC;YAAE,OAAO,UAAU,CAAC,kBAAkB,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;QAE9E,MAAM,WAAW,GAAG,MAAM,UAAU,CAAC,kBAAkB,CAAC,SAAS,kCAC5D,MAAM,KACT,SAAS,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,IACnC,CAAC;QACH,IAAI,WAAW,CAAC,MAAM,GAAG,WAAW;YAClC,MAAM,IAAI,KAAK,CAAC,6BAA6B,WAAW,CAAC,MAAM,GAAG,CAAC,CAAC;QAEtE,OAAO,UAAU,CAAC,kBAAkB,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;IAC1D,CAAC;CAAA;AArBD,gDAqBC"}