@sonarwatch/portfolio-plugins 0.14.66 → 0.14.68

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 (50) hide show
  1. package/CHANGELOG.md +1856 -1848
  2. package/README.md +3 -3
  3. package/package.json +1 -1
  4. package/src/plugins/alphafi/constants.d.ts +0 -6
  5. package/src/plugins/alphafi/constants.js +1 -48
  6. package/src/plugins/alphafi/constants.js.map +1 -1
  7. package/src/plugins/alphafi/poolsInfos.d.ts +665 -0
  8. package/src/plugins/alphafi/poolsInfos.js +790 -0
  9. package/src/plugins/alphafi/poolsInfos.js.map +1 -0
  10. package/src/plugins/alphafi/poolsJob.js +138 -79
  11. package/src/plugins/alphafi/poolsJob.js.map +1 -1
  12. package/src/plugins/alphafi/positionsFetcher.js +70 -101
  13. package/src/plugins/alphafi/positionsFetcher.js.map +1 -1
  14. package/src/plugins/alphafi/types.d.ts +3 -2
  15. package/src/plugins/balancer/helpers/pools.js +21 -21
  16. package/src/plugins/meteora/dlmmVaultsFetcher.js +1 -1
  17. package/src/plugins/meteora/dlmmVaultsFetcher.js.map +1 -1
  18. package/src/plugins/sanctum/constants.d.ts +1 -0
  19. package/src/plugins/sanctum/constants.js +10 -1
  20. package/src/plugins/sanctum/constants.js.map +1 -1
  21. package/src/plugins/sanctum/index.js +6 -2
  22. package/src/plugins/sanctum/index.js.map +1 -1
  23. package/src/plugins/sanctum/nclbAirdropFetcher.d.ts +3 -0
  24. package/src/plugins/sanctum/nclbAirdropFetcher.js +53 -0
  25. package/src/plugins/sanctum/nclbAirdropFetcher.js.map +1 -0
  26. package/src/plugins/sanctum/noCloudLeftBehindAllocation.json +710 -0
  27. package/src/plugins/superposition/constants.d.ts +8 -0
  28. package/src/plugins/superposition/constants.js +18 -0
  29. package/src/plugins/superposition/constants.js.map +1 -0
  30. package/src/plugins/superposition/index.d.ts +6 -0
  31. package/src/plugins/superposition/index.js +13 -0
  32. package/src/plugins/superposition/index.js.map +1 -0
  33. package/src/plugins/superposition/lendingFetcher.d.ts +3 -0
  34. package/src/plugins/superposition/lendingFetcher.js +40 -0
  35. package/src/plugins/superposition/lendingFetcher.js.map +1 -0
  36. package/src/plugins/superposition/marketsJob.d.ts +3 -0
  37. package/src/plugins/superposition/marketsJob.js +26 -0
  38. package/src/plugins/superposition/marketsJob.js.map +1 -0
  39. package/src/plugins/superposition/types.d.ts +54 -0
  40. package/src/plugins/superposition/types.js +3 -0
  41. package/src/plugins/superposition/types.js.map +1 -0
  42. package/src/plugins/sushiswap/helpers.js +24 -24
  43. package/src/plugins/typus/constants.js +28 -0
  44. package/src/plugins/typus/constants.js.map +1 -1
  45. package/src/plugins/typus/safuVaultsJob.js +1 -1
  46. package/src/plugins/typus/safuVaultsJob.js.map +1 -1
  47. package/src/plugins/uniswap-v2/helpers.js +22 -22
  48. package/src/plugins/zeta/airdropFetcher.js +14 -14
  49. package/src/utils/sei/constants.js +8 -8
  50. package/src/utils/sei/getQueryBalanceByOwner.js +4 -4
@@ -0,0 +1,8 @@
1
+ import { Platform } from '@sonarwatch/portfolio-core';
2
+ export declare const platformId = "superposition";
3
+ export declare const platform: Platform;
4
+ export declare const marketsCacheKey = "markets";
5
+ export declare const packageId = "0xccd1a84ccea93531d7f165b90134aa0415feb30e8757ab1632dac68c0055f5c2";
6
+ export declare const portfolioType = "0xccd1a84ccea93531d7f165b90134aa0415feb30e8757ab1632dac68c0055f5c2::portfolio::Portfolio";
7
+ export declare const collateralPositionType = "0xccd1a84ccea93531d7f165b90134aa0415feb30e8757ab1632dac68c0055f5c2::portfolio::PositionView";
8
+ export declare const liabilityPositionType = "0xccd1a84ccea93531d7f165b90134aa0415feb30e8757ab1632dac68c0055f5c2::portfolio::SupplyPosition";
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.liabilityPositionType = exports.collateralPositionType = exports.portfolioType = exports.packageId = exports.marketsCacheKey = exports.platform = exports.platformId = void 0;
4
+ exports.platformId = 'superposition';
5
+ exports.platform = {
6
+ id: exports.platformId,
7
+ name: 'Superposition',
8
+ image: 'https://sonar.watch/img/platforms/superposition.webp',
9
+ website: 'https://www.superposition.finance/',
10
+ twitter: 'https://x.com/superpositionfi',
11
+ defiLlamaId: 'superposition', // from https://defillama.com/docs/api
12
+ };
13
+ exports.marketsCacheKey = `markets`;
14
+ exports.packageId = '0xccd1a84ccea93531d7f165b90134aa0415feb30e8757ab1632dac68c0055f5c2';
15
+ exports.portfolioType = `${exports.packageId}::portfolio::Portfolio`;
16
+ exports.collateralPositionType = `${exports.packageId}::portfolio::PositionView`;
17
+ exports.liabilityPositionType = `${exports.packageId}::portfolio::SupplyPosition`;
18
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/superposition/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,eAAe,CAAC;AAC7B,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,eAAe;IACrB,KAAK,EAAE,sDAAsD;IAC7D,OAAO,EAAE,oCAAoC;IAC7C,OAAO,EAAE,+BAA+B;IACxC,WAAW,EAAE,eAAe,EAAE,sCAAsC;CACrE,CAAC;AACW,QAAA,eAAe,GAAG,SAAS,CAAC;AAE5B,QAAA,SAAS,GACpB,oEAAoE,CAAC;AAC1D,QAAA,aAAa,GAAG,GAAG,iBAAS,wBAAwB,CAAC;AACrD,QAAA,sBAAsB,GAAG,GAAG,iBAAS,2BAA2B,CAAC;AACjE,QAAA,qBAAqB,GAAG,GAAG,iBAAS,6BAA6B,CAAC"}
@@ -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,13 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.fetchers = exports.jobs = exports.platforms = void 0;
7
+ const constants_1 = require("./constants");
8
+ const marketsJob_1 = __importDefault(require("./marketsJob"));
9
+ const lendingFetcher_1 = __importDefault(require("./lendingFetcher"));
10
+ exports.platforms = [constants_1.platform];
11
+ exports.jobs = [marketsJob_1.default];
12
+ exports.fetchers = [lendingFetcher_1.default];
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/superposition/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAAuC;AACvC,8DAAsC;AACtC,sEAA8C;AAEjC,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,CAAC,oBAAU,CAAC,CAAC;AAC3B,QAAA,QAAQ,GAAc,CAAC,wBAAc,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Fetcher } from '../../Fetcher';
2
+ declare const fetcher: Fetcher;
3
+ export default fetcher;
@@ -0,0 +1,40 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ const portfolio_core_1 = require("@sonarwatch/portfolio-core");
13
+ const constants_1 = require("./constants");
14
+ const clients_1 = require("../../utils/clients");
15
+ const aptos_1 = require("../../utils/aptos");
16
+ const executor = (owner) => __awaiter(void 0, void 0, void 0, function* () {
17
+ const client = (0, clients_1.getClientAptos)();
18
+ const poolPositions = yield (0, aptos_1.getAccountResource)(client, owner, constants_1.portfolioType);
19
+ if (!poolPositions)
20
+ return [];
21
+ if (poolPositions.collaterals.items.length === 0 &&
22
+ poolPositions.liabilities.items.length === 0)
23
+ return [];
24
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
25
+ const supplyPositions = poolPositions.collaterals.items.length === 0
26
+ ? []
27
+ : yield (0, aptos_1.getTableItemsByKeys)(client, poolPositions.collaterals.indexes.handle, ['0x1::aptos_coin::AptosCoin'], '0x1::string::String', constants_1.collateralPositionType);
28
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
29
+ const supplyPositions2 = poolPositions.collaterals.items.length === 0
30
+ ? []
31
+ : yield (0, aptos_1.getTableItemsByKeys)(client, poolPositions.collaterals.keys.item_table.handle, ['0x1::aptos_coin::AptosCoin'], '0x1::string::String', constants_1.collateralPositionType);
32
+ return [];
33
+ });
34
+ const fetcher = {
35
+ id: `${constants_1.platformId}-lending`,
36
+ networkId: portfolio_core_1.NetworkId.aptos,
37
+ executor,
38
+ };
39
+ exports.default = fetcher;
40
+ //# sourceMappingURL=lendingFetcher.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lendingFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/superposition/lendingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AACvD,2CAAgF;AAEhF,iDAAqD;AAErD,6CAA4E;AAE5E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,EAAE;IACxD,MAAM,MAAM,GAAG,IAAA,wBAAc,GAAE,CAAC;IAChC,MAAM,aAAa,GAAG,MAAM,IAAA,0BAAkB,EAC5C,MAAM,EACN,KAAK,EACL,yBAAa,CACd,CAAC;IACF,IAAI,CAAC,aAAa;QAAE,OAAO,EAAE,CAAC;IAC9B,IACE,aAAa,CAAC,WAAW,CAAC,KAAK,CAAC,MAAM,KAAK,CAAC;QAC5C,aAAa,CAAC,WAAW,CAAC,KAAK,CAAC,MAAM,KAAK,CAAC;QAE5C,OAAO,EAAE,CAAC;IAEZ,6DAA6D;IAC7D,MAAM,eAAe,GACnB,aAAa,CAAC,WAAW,CAAC,KAAK,CAAC,MAAM,KAAK,CAAC;QAC1C,CAAC,CAAC,EAAE;QACJ,CAAC,CAAC,MAAM,IAAA,2BAAmB,EACvB,MAAM,EACN,aAAa,CAAC,WAAW,CAAC,OAAO,CAAC,MAAM,EACxC,CAAC,4BAA4B,CAAC,EAC9B,qBAAqB,EACrB,kCAAsB,CACvB,CAAC;IACR,6DAA6D;IAC7D,MAAM,gBAAgB,GACpB,aAAa,CAAC,WAAW,CAAC,KAAK,CAAC,MAAM,KAAK,CAAC;QAC1C,CAAC,CAAC,EAAE;QACJ,CAAC,CAAC,MAAM,IAAA,2BAAmB,EACvB,MAAM,EACN,aAAa,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,EAChD,CAAC,4BAA4B,CAAC,EAC9B,qBAAqB,EACrB,kCAAsB,CACvB,CAAC;IAER,OAAO,EAAE,CAAC;AACZ,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,UAAU;IAC3B,SAAS,EAAE,0BAAS,CAAC,KAAK;IAC1B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Job } from '../../Job';
2
+ declare const job: Job;
3
+ export default job;
@@ -0,0 +1,26 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ const portfolio_core_1 = require("@sonarwatch/portfolio-core");
13
+ const constants_1 = require("./constants");
14
+ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
15
+ yield cache.setItem(constants_1.marketsCacheKey, 'market_object', {
16
+ prefix: constants_1.platformId,
17
+ networkId: portfolio_core_1.NetworkId.solana,
18
+ });
19
+ });
20
+ const job = {
21
+ id: `${constants_1.platformId}-markets`,
22
+ executor,
23
+ label: 'normal',
24
+ };
25
+ exports.default = job;
26
+ //# sourceMappingURL=marketsJob.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"marketsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/superposition/marketsJob.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAGvD,2CAA0D;AAE1D,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,KAAK,CAAC,OAAO,CAAC,2BAAe,EAAE,eAAe,EAAE;QACpD,MAAM,EAAE,sBAAU;QAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;KAC5B,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AACF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,UAAU;IAC3B,QAAQ;IACR,KAAK,EAAE,QAAQ;CAChB,CAAC;AACF,kBAAe,GAAG,CAAC"}
@@ -0,0 +1,54 @@
1
+ export type Portfolio = {
2
+ collaterals: {
3
+ indexes: {
4
+ handle: string;
5
+ };
6
+ items: string[];
7
+ keys: {
8
+ item_table: {
9
+ handle: string;
10
+ };
11
+ items: {
12
+ account_address: string;
13
+ module_name: string;
14
+ struct_name: string;
15
+ }[];
16
+ };
17
+ };
18
+ liabilities: {
19
+ indexes: {
20
+ handle: string;
21
+ };
22
+ items: string[];
23
+ keys: {
24
+ item_table: {
25
+ handle: string;
26
+ };
27
+ items: {
28
+ account_address: string;
29
+ module_name: string;
30
+ struct_name: string;
31
+ }[];
32
+ };
33
+ };
34
+ };
35
+ export type Broker = {
36
+ available: string;
37
+ borrowed: string;
38
+ interest_rate_curve: {
39
+ r0: string;
40
+ r1: string;
41
+ r2: string;
42
+ r3: string;
43
+ u1: string;
44
+ u2: string;
45
+ };
46
+ interest_updated_at: string;
47
+ is_borrow_paused: boolean;
48
+ is_lend_paused: boolean;
49
+ is_paused: boolean;
50
+ is_redeem_paused: boolean;
51
+ is_repay_paused: boolean;
52
+ max_borrow: string;
53
+ max_deposit: string;
54
+ };
@@ -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/superposition/types.ts"],"names":[],"mappings":""}
@@ -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;
@@ -35,6 +35,20 @@ exports.vaultsIndexes = [
35
35
  '11',
36
36
  '12',
37
37
  '13',
38
+ '14',
39
+ '15',
40
+ '16',
41
+ '17',
42
+ '18',
43
+ '19',
44
+ '20',
45
+ '21',
46
+ '22',
47
+ '23',
48
+ '24',
49
+ '25',
50
+ '26',
51
+ '27',
38
52
  ];
39
53
  exports.safuVaultsNames = {
40
54
  '0': 'SUI Daily Bull',
@@ -51,5 +65,19 @@ exports.safuVaultsNames = {
51
65
  '11': 'SOL Daily Bear',
52
66
  '12': 'SUI Daily Bull',
53
67
  '13': 'SUI Daily Bull',
68
+ '14': 'Daily All Weather',
69
+ '15': 'SUI Hourly Bear',
70
+ '16': 'SUI Daily Bear',
71
+ '17': 'BTC Daily Bull',
72
+ '18': 'BTC Daily Bear',
73
+ '19': 'ETH Daily Bull',
74
+ '20': 'ETH Daily Bear',
75
+ '21': 'SOL Daily Bull',
76
+ '22': 'SOL Daily Bear',
77
+ '23': 'SUI Daily Bear',
78
+ '24': 'TYPUS Daily Bull',
79
+ '25': 'TYPUS Daily Bull',
80
+ '26': 'TYPUS Daily Bear',
81
+ '27': 'TYPUS Daily Bear',
54
82
  };
55
83
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/typus/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,8CAA8C;IACrD,WAAW,EAAE,sBAAsB,EAAE,sCAAsC;IAC3E,OAAO,EAAE,wBAAwB;IACjC,OAAO,EAAE,kCAAkC;CAC5C,CAAC;AACW,QAAA,SAAS,GACpB,oEAAoE,CAAC;AAC1D,QAAA,kBAAkB,GAAG,GAAG,iBAAS,8BAA8B,CAAC;AAChE,QAAA,MAAM,GACjB,oEAAoE,CAAC;AAC1D,QAAA,gBAAgB,GAC3B,oEAAoE,CAAC;AAC1D,QAAA,iBAAiB,GAC5B,oEAAoE,CAAC;AAC1D,QAAA,qBAAqB,GAAG,GAAG,wBAAgB,6CAA6C,CAAC;AAEzF,QAAA,WAAW,GACtB,oEAAoE,CAAC;AAC1D,QAAA,gBAAgB,GAC3B,oEAAoE,CAAC;AAC1D,QAAA,cAAc,GACzB,oEAAoE,CAAC;AAC1D,QAAA,aAAa,GAAG,aAAa,CAAC;AAE9B,QAAA,aAAa,GAAG;IAC3B,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;CACL,CAAC;AACW,QAAA,eAAe,GAA8B;IACxD,GAAG,EAAE,gBAAgB;IACrB,GAAG,EAAE,gBAAgB;IACrB,GAAG,EAAE,mBAAmB;IACxB,GAAG,EAAE,mBAAmB;IACxB,GAAG,EAAE,iBAAiB;IACtB,GAAG,EAAE,iBAAiB;IACtB,GAAG,EAAE,gBAAgB;IACrB,GAAG,EAAE,gBAAgB;IACrB,GAAG,EAAE,gBAAgB;IACrB,GAAG,EAAE,gBAAgB;IACrB,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE,gBAAgB;CACvB,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/typus/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,8CAA8C;IACrD,WAAW,EAAE,sBAAsB,EAAE,sCAAsC;IAC3E,OAAO,EAAE,wBAAwB;IACjC,OAAO,EAAE,kCAAkC;CAC5C,CAAC;AACW,QAAA,SAAS,GACpB,oEAAoE,CAAC;AAC1D,QAAA,kBAAkB,GAAG,GAAG,iBAAS,8BAA8B,CAAC;AAChE,QAAA,MAAM,GACjB,oEAAoE,CAAC;AAC1D,QAAA,gBAAgB,GAC3B,oEAAoE,CAAC;AAC1D,QAAA,iBAAiB,GAC5B,oEAAoE,CAAC;AAC1D,QAAA,qBAAqB,GAAG,GAAG,wBAAgB,6CAA6C,CAAC;AAEzF,QAAA,WAAW,GACtB,oEAAoE,CAAC;AAC1D,QAAA,gBAAgB,GAC3B,oEAAoE,CAAC;AAC1D,QAAA,cAAc,GACzB,oEAAoE,CAAC;AAC1D,QAAA,aAAa,GAAG,aAAa,CAAC;AAE9B,QAAA,aAAa,GAAG;IAC3B,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;CACL,CAAC;AACW,QAAA,eAAe,GAA8B;IACxD,GAAG,EAAE,gBAAgB;IACrB,GAAG,EAAE,gBAAgB;IACrB,GAAG,EAAE,mBAAmB;IACxB,GAAG,EAAE,mBAAmB;IACxB,GAAG,EAAE,iBAAiB;IACtB,GAAG,EAAE,iBAAiB;IACtB,GAAG,EAAE,gBAAgB;IACrB,GAAG,EAAE,gBAAgB;IACrB,GAAG,EAAE,gBAAgB;IACrB,GAAG,EAAE,gBAAgB;IACrB,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE,mBAAmB;IACzB,IAAI,EAAE,iBAAiB;IACvB,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE,kBAAkB;IACxB,IAAI,EAAE,kBAAkB;IACxB,IAAI,EAAE,kBAAkB;IACxB,IAAI,EAAE,kBAAkB;CACzB,CAAC"}
@@ -9,10 +9,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
+ const portfolio_core_1 = require("@sonarwatch/portfolio-core");
12
13
  const constants_1 = require("./constants");
13
14
  const clients_1 = require("../../utils/clients");
14
15
  const safu_helpers_1 = require("./safu_helpers");
15
- const portfolio_core_1 = require("@sonarwatch/portfolio-core");
16
16
  const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
17
17
  const client = (0, clients_1.getClientSui)();
18
18
  const vaultsData = yield (0, safu_helpers_1.getVaultData)(client);
@@ -1 +1 @@
1
- {"version":3,"file":"safuVaultsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/typus/safuVaultsJob.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,2CAAwD;AAGxD,iDAAmD;AACnD,iDAA8C;AAC9C,+DAAuD;AAEvD,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,MAAM,GAAG,IAAA,sBAAY,GAAE,CAAC;IAE9B,MAAM,UAAU,GAAG,MAAM,IAAA,2BAAY,EAAC,MAAM,CAAC,CAAC;IAE9C,MAAM,KAAK,CAAC,OAAO,CAAC,yBAAa,EAAE,UAAU,EAAE;QAC7C,MAAM,EAAE,sBAAU;QAClB,SAAS,EAAE,0BAAS,CAAC,GAAG;KACzB,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AAEF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,cAAc;IAC/B,QAAQ;IACR,KAAK,EAAE,QAAQ;CAChB,CAAC;AACF,kBAAe,GAAG,CAAC"}
1
+ {"version":3,"file":"safuVaultsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/typus/safuVaultsJob.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AACvD,2CAAwD;AAGxD,iDAAmD;AACnD,iDAA8C;AAE9C,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,MAAM,GAAG,IAAA,sBAAY,GAAE,CAAC;IAE9B,MAAM,UAAU,GAAG,MAAM,IAAA,2BAAY,EAAC,MAAM,CAAC,CAAC;IAE9C,MAAM,KAAK,CAAC,OAAO,CAAC,yBAAa,EAAE,UAAU,EAAE;QAC7C,MAAM,EAAE,sBAAU;QAClB,SAAS,EAAE,0BAAS,CAAC,GAAG;KACzB,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AAEF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,cAAc;IAC/B,QAAQ;IACR,KAAK,EAAE,QAAQ;CAChB,CAAC;AACF,kBAAe,GAAG,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;
@@ -42,20 +42,20 @@ const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/token
42
42
  const clients_1 = require("../../utils/clients");
43
43
  const getMultipleAccountsInfoSafe_1 = require("../../utils/solana/getMultipleAccountsInfoSafe");
44
44
  const helpers_1 = require("./helpers");
45
- const query = (0, graphql_request_1.gql) `
46
- query GetAirdropFinalFrontend($authority: String!) {
47
- getAirdropFinalFrontend(authority: $authority) {
48
- authority
49
- community_allocation
50
- eligibility
51
- main_allocation
52
- og_allocation
53
- s1_allocation
54
- s2_allocation
55
- total_allocation
56
- __typename
57
- }
58
- }
45
+ const query = (0, graphql_request_1.gql) `
46
+ query GetAirdropFinalFrontend($authority: String!) {
47
+ getAirdropFinalFrontend(authority: $authority) {
48
+ authority
49
+ community_allocation
50
+ eligibility
51
+ main_allocation
52
+ og_allocation
53
+ s1_allocation
54
+ s2_allocation
55
+ total_allocation
56
+ __typename
57
+ }
58
+ }
59
59
  `;
60
60
  const networkId = portfolio_core_1.NetworkId.solana;
61
61
  const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
@@ -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;