@sonarwatch/portfolio-plugins 0.12.26 → 0.12.28

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. package/CHANGELOG.md +1802 -1794
  2. package/README.md +3 -3
  3. package/package.json +1 -1
  4. package/src/plugins/balancer/helpers/pools.js +21 -21
  5. package/src/plugins/bluefin/positionFetcher.js +11 -6
  6. package/src/plugins/bluefin/positionFetcher.js.map +1 -1
  7. package/src/plugins/flash/perpetualFetcher.js +8 -13
  8. package/src/plugins/flash/perpetualFetcher.js.map +1 -1
  9. package/src/plugins/flash/poolJob.js +1 -1
  10. package/src/plugins/flash/poolJob.js.map +1 -1
  11. package/src/plugins/flash/structs.d.ts +2 -2
  12. package/src/plugins/flash/structs.js +2 -2
  13. package/src/plugins/flash/structs.js.map +1 -1
  14. package/src/plugins/jupiter/exchange/constants.d.ts +1 -0
  15. package/src/plugins/jupiter/exchange/constants.js +2 -1
  16. package/src/plugins/jupiter/exchange/constants.js.map +1 -1
  17. package/src/plugins/jupiter/exchange/custodiesJob.js +11 -4
  18. package/src/plugins/jupiter/exchange/custodiesJob.js.map +1 -1
  19. package/src/plugins/jupiter/exchange/perpetualFetcher.js +69 -100
  20. package/src/plugins/jupiter/exchange/perpetualFetcher.js.map +1 -1
  21. package/src/plugins/jupiter/types.d.ts +27 -2
  22. package/src/plugins/jupiter/types.js.map +1 -1
  23. package/src/plugins/kamino/constants.js +4 -0
  24. package/src/plugins/kamino/constants.js.map +1 -1
  25. package/src/plugins/sushiswap/helpers.js +24 -24
  26. package/src/plugins/uniswap-v2/helpers.js +22 -22
  27. package/src/utils/sei/constants.js +8 -8
  28. package/src/utils/sei/getQueryBalanceByOwner.js +4 -4
  29. package/src/utils/solana/pyth/helpers.d.ts +2 -2
  30. package/src/utils/solana/pyth/helpers.js +13 -7
  31. package/src/utils/solana/pyth/helpers.js.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"perpetualFetcher.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/jupiter/exch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AAI,EAAE,qCAAoB,CAAC,UAAU;YACrC,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,UAAU,EAAV,sBAAU;YACV,KAAK,EAAE,UAAU;YACjB,KAAK;YACL,IAAI,EAAE,GAAG,WAAW,IAAI,IAAI,IAAI,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,GAAG;YAC5D,IAAI,EAAE;gBACJ,cAAc;gBACd,aAAa;gBACb,cAAc;gBACd,cAAc;gBACd,aAAa;gBACb,cAAc;gBACd,eAAe,EAAE,IAAI;gBAErB,YAAY;gBACZ,WAAW;gBACX,WAAW;gBACX,KAAK;aACN;SACF,CAAC,CAAC;IACL,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,YAAY;IAC7B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"perpetualFetcher.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/jupiter/exchange/perpetualFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAQoC;AACpC,gEAAqC;AACrC,6CAA4C;AAG5C,oDAAyD;AACzD,kDAAgF;AAChF,wCAAuD;AAEvD,gEAAwE;AACxE,sDAAiE;AACjE,2CAKqB;AACrB,uCAAiD;AAEjD,MAAM,SAAS,GAAG,IAAI,sBAAS,CAAC,SAAA,EAAE,EAAI,CAAC,CAAA,CAAC,CAAC;AACzC,MAAM,QAAQ,GAAoB,CAChC,KAAa,EACb,KAAY,EACyB,EAAE;IACvC,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,gBAAgB,GAAG,MAAM,IAAA,iCAAwB,EACrD,MAAM,EACN,wBAAc,EACd,0BAAc,EACd,IAAA,mCAAyB,EAAC,KAAK,CAAC,CACjC,CAAC;IACF,IACE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QAAQ;YACnC,IAAI,EAAE;gBACJ,SAAS;gBACT,cAAc,EAAE,KAAK;gBACrB,KAAK;gBACL,gBAAgB,EAAE,EAAE;gBACpB,eAAe,EAAE,CAAC;aACnB;YACD,KAAK,EAAE,UAAU;YACjB,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,UAAU,EAAV,sBAAU;YACV,KAAK;SACN;KACF,CAAC;AACJ,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,YAAY;IAC7B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -1,8 +1,8 @@
1
1
  /// <reference types="node" />
2
- export type CustodyInfo = Custody & {
2
+ export type CustodyInfo = ParsedCustody & {
3
3
  pubkey: string;
4
4
  };
5
- type Custody = {
5
+ type ParsedCustody = {
6
6
  buffer: Buffer;
7
7
  pool: string;
8
8
  mint: string;
@@ -18,6 +18,31 @@ type Custody = {
18
18
  bump: number;
19
19
  tokenAccountBump: number;
20
20
  };
21
+ export type PerpetualPoolInfo = ParsedPerpetualPool & {
22
+ pubkey: string;
23
+ };
24
+ type ParsedPerpetualPool = {
25
+ buffer: Buffer;
26
+ name: number;
27
+ custodies: string[];
28
+ aumUsd: string;
29
+ fees: ParsedFees;
30
+ maxRequestExecutionSec: string;
31
+ bump: number;
32
+ lpTokenBump: number;
33
+ inceptionTime: string;
34
+ };
35
+ type ParsedFees = {
36
+ increasePositionBps: string;
37
+ decreasePositionBps: string;
38
+ addRemoveLiquidityBps: string;
39
+ swapBps: string;
40
+ taxBps: string;
41
+ stableSwapBps: string;
42
+ stableSwapTaxBps: string;
43
+ liquidationRewardBps: string;
44
+ protocolShareBps: string;
45
+ };
21
46
  declare enum OracleType {
22
47
  None = 0,
23
48
  Test = 1,
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/jupiter/types.ts"],"names":[],"mappings":";;AAqBA,IAAK,UAIJ;AAJD,WAAK,UAAU;IACb,2CAAI,CAAA;IACJ,2CAAI,CAAA;IACJ,2CAAI,CAAA;AACN,CAAC,EAJI,UAAU,KAAV,UAAU,QAId"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/jupiter/types.ts"],"names":[],"mappings":";;AAgDA,IAAK,UAIJ;AAJD,WAAK,UAAU;IACb,2CAAI,CAAA;IACJ,2CAAI,CAAA;IACJ,2CAAI,CAAA;AACN,CAAC,EAJI,UAAU,KAAV,UAAU,QAId"}
@@ -47,6 +47,10 @@ exports.lendingConfigs = new Map([
47
47
  'he1iusmfkpAdwvxLNGV8Y1iSbj4rUy6yMhEA3fotn9A',
48
48
  'So11111111111111111111111111111111111111112',
49
49
  ],
50
+ [
51
+ 'vSoLxydx6akxyMD9XEcPvGYNGq6Nn66oqVb3UkGkei7',
52
+ 'So11111111111111111111111111111111111111112',
53
+ ],
50
54
  ],
51
55
  leveragePairs: [
52
56
  [
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/kamino/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAI/B,QAAA,UAAU,GAAG,QAAQ,CAAC;AACtB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,qCAAqC,kBAAU,MAAM;IAC5D,OAAO,EAAE,yBAAyB;IAClC,WAAW,EAAE,uBAAuB;CACrC,CAAC;AAEW,QAAA,QAAQ,GAAG,6CAA6C,CAAC;AACzD,QAAA,YAAY,GAAG,CAAC,CAAC;AACjB,QAAA,SAAS,GAAG,IAAI,mBAAS,CACpC,8CAA8C,CAC/C,CAAC;AAEW,QAAA,gBAAgB,GAC3B,iDAAiD,CAAC;AAEvC,QAAA,cAAc,GAAG,8CAA8C,CAAC;AAEhE,QAAA,kB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CAA8C;oBAC9C,8CAA8C;iBAC/C;gBACD;oBACE,8CAA8C;oBAC9C,8CAA8C;iBAC/C;gBACD;oBACE,6CAA6C;oBAC7C,8CAA8C;iBAC/C;gBACD;oBACE,6CAA6C;oBAC7C,8CAA8C;iBAC/C;gBACD;oBACE,6CAA6C;oBAC7C,8CAA8C;iBAC/C;gBACD;oBACE,8CAA8C;oBAC9C,8CAA8C;iBAC/C;gBACD;oBACE,8CAA8C;oBAC9C,8CAA8C;iBAC/C;aACF;SACF;KACF;IACD,CAAC,8CAA8C,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;IACxE,CAAC,8CAA8C,EAAE,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC;CAC9E,CAAC,CAAC;AAEU,QAAA,UAAU,GAAG,SAAS,CAAC;AACvB,QAAA,WAAW,GAAG,UAAU,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;
@@ -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,5 +1,5 @@
1
1
  /// <reference types="node" />
2
- import { PublicKey, AccountInfo } from '@solana/web3.js';
2
+ import { PublicKey } from '@solana/web3.js';
3
3
  import { TokenPriceSource } from '@sonarwatch/portfolio-core';
4
4
  import { Base, MappingData, PermissionData, PriceData } from './structs';
5
5
  import { SolanaClient } from '../../clients/types';
@@ -12,7 +12,7 @@ export declare function parseBaseData(data: Buffer): Base | undefined;
12
12
  export declare const parseMappingData: (data: Buffer) => MappingData;
13
13
  export declare const parsePriceData: (data: Buffer, currentSlot?: number) => PriceData;
14
14
  export declare const parsePermissionData: (data: Buffer) => PermissionData;
15
- export declare function getPythPricesDatasMap(pubkeys: PublicKey[], accounts: (AccountInfo<Buffer> | null)[]): Map<string, PriceData>;
15
+ export declare function getPythPricesAsMap(connection: SolanaClient, feedAddresses: PublicKey[]): Promise<Map<string, number>>;
16
16
  export declare function getPythPrices(connection: SolanaClient, feedAddresses: PublicKey[]): Promise<(number | null)[]>;
17
17
  export declare function getPythPrice(connection: SolanaClient, feedAddress: PublicKey): Promise<number | null>;
18
18
  export declare function getPythTokenPriceSources(connection: SolanaClient, params: {
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.getPythTokenPriceSources = exports.getPythPrice = exports.getPythPrices = exports.getPythPricesDatasMap = exports.parsePermissionData = exports.parsePriceData = exports.parseMappingData = exports.parseBaseData = exports.MAX_SLOT_DIFFERENCE = exports.Version = exports.Version2 = exports.Magic = void 0;
12
+ exports.getPythTokenPriceSources = exports.getPythPrice = exports.getPythPrices = exports.getPythPricesAsMap = exports.parsePermissionData = exports.parsePriceData = exports.parseMappingData = exports.parseBaseData = exports.MAX_SLOT_DIFFERENCE = exports.Version = exports.Version2 = exports.Magic = void 0;
13
13
  const web3_js_1 = require("@solana/web3.js");
14
14
  const portfolio_core_1 = require("@sonarwatch/portfolio-core");
15
15
  const structs_1 = require("./structs");
@@ -242,13 +242,19 @@ const parsePermissionData = (data) => {
242
242
  };
243
243
  };
244
244
  exports.parsePermissionData = parsePermissionData;
245
- function getPythPricesDatasMap(pubkeys, accounts) {
246
- const pricesDatas = accounts.map((account) => account ? (0, exports.parsePriceData)(account.data) : undefined);
247
- const priceMap = new Map();
248
- pricesDatas.forEach((prices, index) => prices ? priceMap.set(pubkeys[index].toString(), prices) : undefined);
249
- return priceMap;
245
+ function getPythPricesAsMap(connection, feedAddresses) {
246
+ return __awaiter(this, void 0, void 0, function* () {
247
+ const prices = yield getPythPrices(connection, feedAddresses);
248
+ const priceMap = new Map();
249
+ feedAddresses.forEach((feedAddress, i) => {
250
+ const price = prices[i];
251
+ if (price)
252
+ priceMap.set(feedAddress.toString(), price);
253
+ });
254
+ return priceMap;
255
+ });
250
256
  }
251
- exports.getPythPricesDatasMap = getPythPricesDatasMap;
257
+ exports.getPythPricesAsMap = getPythPricesAsMap;
252
258
  function getPythPrices(connection, feedAddresses) {
253
259
  return __awaiter(this, void 0, void 0, function* () {
254
260
  const accounts = yield (0, getMultipleAccountsInfoSafe_1.getMultipleAccountsInfoSafe)(connection, feedAddresses);
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/utils/solana/pyth/helpers.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAyD;AACzD,+DAAyE;AACzE,uCAYmB;AACnB,uCAA4D;AAE5D,gFAA6E;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