@sonarwatch/portfolio-plugins 0.11.149 → 0.11.151

Sign up to get free protection for your applications and to get access to all the features.
Files changed (143) hide show
  1. package/CHANGELOG.md +1331 -1323
  2. package/README.md +3 -3
  3. package/package.json +2 -2
  4. package/src/index.js +8 -12
  5. package/src/index.js.map +1 -1
  6. package/src/plugins/armada-staking/constants.js.map +1 -0
  7. package/src/plugins/armada-staking/filters.js.map +1 -0
  8. package/src/plugins/{spl-staking → armada-staking}/index.js +7 -1
  9. package/src/plugins/armada-staking/index.js.map +1 -0
  10. package/src/plugins/armada-staking/poolsJob.js.map +1 -0
  11. package/src/plugins/armada-staking/stakingFetcher.js.map +1 -0
  12. package/src/plugins/armada-staking/structs.js.map +1 -0
  13. package/src/plugins/armada-staking/types.js.map +1 -0
  14. package/src/plugins/balancer/helpers/pools.js +21 -21
  15. package/src/plugins/{realms → daos}/constants.d.ts +4 -2
  16. package/src/plugins/{realms → daos}/constants.js +10 -3
  17. package/src/plugins/daos/constants.js.map +1 -0
  18. package/src/plugins/daos/filters.js.map +1 -0
  19. package/src/plugins/daos/helpers.d.ts +10 -0
  20. package/src/plugins/{realms → daos}/helpers.js +21 -29
  21. package/src/plugins/daos/helpers.js.map +1 -0
  22. package/src/plugins/daos/index.js +13 -0
  23. package/src/plugins/daos/index.js.map +1 -0
  24. package/src/plugins/{realms/depositsFetcher.js → daos/realmsDepositsFetcher.js} +1 -1
  25. package/src/plugins/daos/realmsDepositsFetcher.js.map +1 -0
  26. package/src/plugins/{realms/programsJob.js → daos/realmsProgramsJob.js} +4 -4
  27. package/src/plugins/daos/realmsProgramsJob.js.map +1 -0
  28. package/src/plugins/daos/structs/realms.js.map +1 -0
  29. package/src/plugins/{realms → daos}/types.d.ts +1 -1
  30. package/src/plugins/daos/types.js.map +1 -0
  31. package/src/plugins/flexlend/depositsFetcher.js +63 -4
  32. package/src/plugins/flexlend/depositsFetcher.js.map +1 -1
  33. package/src/plugins/flexlend/struct.d.ts +18 -0
  34. package/src/plugins/flexlend/struct.js +18 -0
  35. package/src/plugins/flexlend/struct.js.map +1 -0
  36. package/src/plugins/hawksight/positionsFetcher.js +31 -13
  37. package/src/plugins/hawksight/positionsFetcher.js.map +1 -1
  38. package/src/plugins/meteora/poolsJob.js +25 -3
  39. package/src/plugins/meteora/poolsJob.js.map +1 -1
  40. package/src/plugins/orca/getWhirlpoolPositions.d.ts +2 -3
  41. package/src/plugins/orca/getWhirlpoolPositions.js +2 -14
  42. package/src/plugins/orca/getWhirlpoolPositions.js.map +1 -1
  43. package/src/plugins/orca/helpers.d.ts +2 -2
  44. package/src/plugins/orca/helpers.js +1 -1
  45. package/src/plugins/orca/helpers.js.map +1 -1
  46. package/src/plugins/raydium/getRaydiumCLMMPositions.d.ts +2 -3
  47. package/src/plugins/raydium/getRaydiumCLMMPositions.js +3 -3
  48. package/src/plugins/raydium/getRaydiumCLMMPositions.js.map +1 -1
  49. package/src/plugins/raydium/helpers.d.ts +2 -2
  50. package/src/plugins/raydium/helpers.js +6 -1
  51. package/src/plugins/raydium/helpers.js.map +1 -1
  52. package/src/plugins/solend/constants.d.ts +1 -0
  53. package/src/plugins/solend/constants.js +2 -1
  54. package/src/plugins/solend/constants.js.map +1 -1
  55. package/src/plugins/solend/helpers.d.ts +6 -0
  56. package/src/plugins/solend/helpers.js +132 -1
  57. package/src/plugins/solend/helpers.js.map +1 -1
  58. package/src/plugins/solend/marketsJob.js +6 -0
  59. package/src/plugins/solend/marketsJob.js.map +1 -1
  60. package/src/plugins/solend/obligationsFetcher.js +27 -156
  61. package/src/plugins/solend/obligationsFetcher.js.map +1 -1
  62. package/src/plugins/solend/reservesJob.js +15 -6
  63. package/src/plugins/solend/reservesJob.js.map +1 -1
  64. package/src/plugins/solend/types.d.ts +1 -1
  65. package/src/plugins/suilend/obligationsFetcher.js +2 -0
  66. package/src/plugins/suilend/obligationsFetcher.js.map +1 -1
  67. package/src/plugins/sushiswap/helpers.js +24 -24
  68. package/src/plugins/tokens/fetchers/solana-nfts-underlyings.js +26 -15
  69. package/src/plugins/tokens/fetchers/solana-nfts-underlyings.js.map +1 -1
  70. package/src/plugins/tokens/fetchers/solana.js +3 -1
  71. package/src/plugins/tokens/fetchers/solana.js.map +1 -1
  72. package/src/plugins/uniswap-v2/helpers.js +22 -22
  73. package/src/utils/sei/constants.js +8 -8
  74. package/src/utils/sei/getQueryBalanceByOwner.js +4 -4
  75. package/src/utils/solana/das/getAssetsByOwnerDas.d.ts +2 -2
  76. package/src/utils/solana/das/getAssetsByOwnerDas.js +3 -9
  77. package/src/utils/solana/das/getAssetsByOwnerDas.js.map +1 -1
  78. package/src/utils/solana/das/getDisplayOptions.d.ts +2 -0
  79. package/src/utils/solana/das/getDisplayOptions.js +16 -0
  80. package/src/utils/solana/das/getDisplayOptions.js.map +1 -0
  81. package/src/utils/solana/das/types.d.ts +8 -0
  82. package/src/plugins/phoenix/constants.d.ts +0 -7
  83. package/src/plugins/phoenix/constants.js +0 -17
  84. package/src/plugins/phoenix/constants.js.map +0 -1
  85. package/src/plugins/phoenix/helpers.d.ts +0 -6
  86. package/src/plugins/phoenix/helpers.js +0 -46
  87. package/src/plugins/phoenix/helpers.js.map +0 -1
  88. package/src/plugins/phoenix/helpers2.d.ts +0 -0
  89. package/src/plugins/phoenix/helpers2.js +0 -179
  90. package/src/plugins/phoenix/helpers2.js.map +0 -1
  91. package/src/plugins/phoenix/index.js +0 -10
  92. package/src/plugins/phoenix/index.js.map +0 -1
  93. package/src/plugins/phoenix/marketsJob.js +0 -39
  94. package/src/plugins/phoenix/marketsJob.js.map +0 -1
  95. package/src/plugins/phoenix/positionsFetcher.js +0 -64
  96. package/src/plugins/phoenix/positionsFetcher.js.map +0 -1
  97. package/src/plugins/phoenix/structs.d.ts +0 -67
  98. package/src/plugins/phoenix/structs.js +0 -82
  99. package/src/plugins/phoenix/structs.js.map +0 -1
  100. package/src/plugins/phoenix/types.d.ts +0 -29
  101. package/src/plugins/phoenix/types.js.map +0 -1
  102. package/src/plugins/realms/constants.js.map +0 -1
  103. package/src/plugins/realms/depositsFetcher.d.ts +0 -3
  104. package/src/plugins/realms/depositsFetcher.js.map +0 -1
  105. package/src/plugins/realms/filters.js.map +0 -1
  106. package/src/plugins/realms/helpers.d.ts +0 -11
  107. package/src/plugins/realms/helpers.js.map +0 -1
  108. package/src/plugins/realms/index.js +0 -13
  109. package/src/plugins/realms/index.js.map +0 -1
  110. package/src/plugins/realms/programsJob.d.ts +0 -3
  111. package/src/plugins/realms/programsJob.js.map +0 -1
  112. package/src/plugins/realms/structs/realms.js.map +0 -1
  113. package/src/plugins/realms/types.js.map +0 -1
  114. package/src/plugins/spl-staking/constants.js.map +0 -1
  115. package/src/plugins/spl-staking/filters.js.map +0 -1
  116. package/src/plugins/spl-staking/index.d.ts +0 -6
  117. package/src/plugins/spl-staking/index.js.map +0 -1
  118. package/src/plugins/spl-staking/poolsJob.js.map +0 -1
  119. package/src/plugins/spl-staking/stakingFetcher.js.map +0 -1
  120. package/src/plugins/spl-staking/structs.js.map +0 -1
  121. package/src/plugins/spl-staking/types.js +0 -3
  122. package/src/plugins/spl-staking/types.js.map +0 -1
  123. /package/src/plugins/{spl-staking → armada-staking}/constants.d.ts +0 -0
  124. /package/src/plugins/{spl-staking → armada-staking}/constants.js +0 -0
  125. /package/src/plugins/{spl-staking → armada-staking}/filters.d.ts +0 -0
  126. /package/src/plugins/{spl-staking → armada-staking}/filters.js +0 -0
  127. /package/src/plugins/{phoenix → armada-staking}/index.d.ts +0 -0
  128. /package/src/plugins/{spl-staking → armada-staking}/poolsJob.d.ts +0 -0
  129. /package/src/plugins/{spl-staking → armada-staking}/poolsJob.js +0 -0
  130. /package/src/plugins/{spl-staking → armada-staking}/stakingFetcher.d.ts +0 -0
  131. /package/src/plugins/{spl-staking → armada-staking}/stakingFetcher.js +0 -0
  132. /package/src/plugins/{spl-staking → armada-staking}/structs.d.ts +0 -0
  133. /package/src/plugins/{spl-staking → armada-staking}/structs.js +0 -0
  134. /package/src/plugins/{spl-staking → armada-staking}/types.d.ts +0 -0
  135. /package/src/plugins/{phoenix → armada-staking}/types.js +0 -0
  136. /package/src/plugins/{realms → daos}/filters.d.ts +0 -0
  137. /package/src/plugins/{realms → daos}/filters.js +0 -0
  138. /package/src/plugins/{realms → daos}/index.d.ts +0 -0
  139. /package/src/plugins/{phoenix/positionsFetcher.d.ts → daos/realmsDepositsFetcher.d.ts} +0 -0
  140. /package/src/plugins/{phoenix/marketsJob.d.ts → daos/realmsProgramsJob.d.ts} +0 -0
  141. /package/src/plugins/{realms → daos}/structs/realms.d.ts +0 -0
  142. /package/src/plugins/{realms → daos}/structs/realms.js +0 -0
  143. /package/src/plugins/{realms → daos}/types.js +0 -0
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.fetchers = exports.jobs = exports.platforms = void 0;
4
- // export const platforms: Platform[] = [platform];
5
- // export const jobs: Job[] = [marketsJob];
6
- // export const fetchers: Fetcher[] = [positionsFetcher];
7
- exports.platforms = [];
8
- exports.jobs = [];
9
- exports.fetchers = [];
10
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/phoenix/index.ts"],"names":[],"mappings":";;;AAOA,mDAAmD;AACnD,2CAA2C;AAC3C,yDAAyD;AAE5C,QAAA,SAAS,GAAe,EAAE,CAAC;AAC3B,QAAA,IAAI,GAAU,EAAE,CAAC;AACjB,QAAA,QAAQ,GAAc,EAAE,CAAC"}
@@ -1,39 +0,0 @@
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 structs_1 = require("./structs");
15
- const solana_1 = require("../../utils/solana");
16
- const helpers_1 = require("./helpers");
17
- const clients_1 = require("../../utils/clients");
18
- const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
19
- const connection = (0, clients_1.getClientSolana)();
20
- const marketsHeadersAccounts = yield (0, solana_1.getParsedProgramAccounts)(connection, structs_1.marketHeaderStruct, constants_1.phoenixPid, [
21
- {
22
- dataSize: 445536,
23
- },
24
- ]);
25
- yield cache.setItems(marketsHeadersAccounts.map((mha) => ({
26
- key: mha.pubkey.toString(),
27
- value: (0, helpers_1.marketHeaderAccountToMarketHeader)(mha),
28
- })), {
29
- prefix: constants_1.marketsCachePrefix,
30
- networkId: portfolio_core_1.NetworkId.solana,
31
- });
32
- });
33
- const job = {
34
- id: `${constants_1.platformId}-markets`,
35
- executor,
36
- label: 'normal',
37
- };
38
- exports.default = job;
39
- //# sourceMappingURL=marketsJob.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"marketsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/phoenix/marketsJob.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAGvD,2CAAyE;AACzE,uCAA+C;AAC/C,+CAA8D;AAC9D,uCAA8D;AAC9D,iDAAsD;AAEtD,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IACrC,MAAM,sBAAsB,GAAG,MAAM,IAAA,iCAAwB,EAC3D,UAAU,EACV,4BAAkB,EAClB,sBAAU,EACV;QACE;YACE,QAAQ,EAAE,MAAM;SACjB;KACF,CACF,CAAC;IAEF,MAAM,KAAK,CAAC,QAAQ,CAClB,sBAAsB,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;QACnC,GAAG,EAAE,GAAG,CAAC,MAAM,CAAC,QAAQ,EAAE;QAC1B,KAAK,EAAE,IAAA,2CAAiC,EAAC,GAAG,CAAC;KAC9C,CAAC,CAAC,EACH;QACE,MAAM,EAAE,8BAAkB;QAC1B,SAAS,EAAE,0BAAS,CAAC,MAAM;KAC5B,CACF,CAAC;AACJ,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"}
@@ -1,64 +0,0 @@
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 solana_1 = require("../../utils/solana");
16
- const structs_1 = require("./structs");
17
- const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
18
- const connection = (0, clients_1.getClientSolana)();
19
- const accounts = yield (0, solana_1.getParsedProgramAccounts)(connection, structs_1.seatStruct, constants_1.phoenixPid, [
20
- {
21
- dataSize: structs_1.seatStruct.byteSize,
22
- },
23
- {
24
- memcmp: {
25
- bytes: owner,
26
- offset: 40,
27
- },
28
- },
29
- ]);
30
- console.log('accounts:', accounts);
31
- if (accounts.length === 0)
32
- return [];
33
- const markets = yield (0, solana_1.getParsedProgramAccounts)(connection, structs_1.marketHeaderStruct, constants_1.phoenixPid, [
34
- {
35
- dataSize: 445536,
36
- },
37
- ]);
38
- console.log('marketHeaderStruct.byteSize:', structs_1.marketHeaderStruct.byteSize);
39
- console.log('markets:', markets);
40
- console.log('markets:', markets.length);
41
- const solTokenPrice = yield cache.getTokenPrice(portfolio_core_1.solanaNativeAddress, portfolio_core_1.NetworkId.solana);
42
- const assets = [];
43
- accounts.forEach((acc) => { });
44
- if (assets.length === 0)
45
- return [];
46
- const element = {
47
- networkId: portfolio_core_1.NetworkId.solana,
48
- label: 'Deposit',
49
- platformId: constants_1.platformId,
50
- type: portfolio_core_1.PortfolioElementType.multiple,
51
- value: (0, portfolio_core_1.getUsdValueSum)(assets.map((a) => a.value)),
52
- data: {
53
- assets,
54
- },
55
- };
56
- return [element];
57
- });
58
- const fetcher = {
59
- id: `${constants_1.platformId}-positions`,
60
- networkId: portfolio_core_1.NetworkId.solana,
61
- executor,
62
- };
63
- exports.default = fetcher;
64
- //# sourceMappingURL=positionsFetcher.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"positionsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/phoenix/positionsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAQoC;AAGpC,2CAA4E;AAE5E,iDAAsD;AACtD,+CAA8D;AAC9D,uCAA2D;AAG3D,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IACrC,MAAM,QAAQ,GAAG,MAAM,IAAA,iCAAwB,EAC7C,UAAU,EACV,oBAAU,EACV,sBAAU,EACV;QACE;YACE,QAAQ,EAAE,oBAAU,CAAC,QAAQ;SAC9B;QACD;YACE,MAAM,EAAE;gBACN,KAAK,EAAE,KAAK;gBACZ,MAAM,EAAE,EAAE;aACX;SAC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EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -1,67 +0,0 @@
1
- import { BeetArgsStruct, BeetStruct, COption, FixableBeetStruct } from '@metaplex-foundation/beet';
2
- import { PublicKey } from '@solana/web3.js';
3
- import BigNumber from 'bignumber.js';
4
- export type Seat = {
5
- discriminant: BigNumber;
6
- market: PublicKey;
7
- trader: PublicKey;
8
- approvalStatus: BigNumber;
9
- padding: BigNumber[];
10
- };
11
- export declare const seatStruct: BeetStruct<Seat, Partial<Seat>>;
12
- export type TokenParams = {
13
- decimals: number;
14
- vaultBump: number;
15
- mintKey: PublicKey;
16
- vaultKey: PublicKey;
17
- };
18
- export declare const tokenParamsStruct: BeetStruct<TokenParams, Partial<TokenParams>>;
19
- export type MarketSizeParams = {
20
- bidsSize: BigNumber;
21
- asksSize: BigNumber;
22
- numSeats: BigNumber;
23
- };
24
- export declare const marketSizeParamsBeet: BeetStruct<MarketSizeParams, Partial<MarketSizeParams>>;
25
- export type MarketHeaderAccount = {
26
- discriminant: BigNumber;
27
- status: BigNumber;
28
- marketSizeParams: MarketSizeParams;
29
- baseParams: TokenParams;
30
- baseLotSize: BigNumber;
31
- quoteParams: TokenParams;
32
- quoteLotSize: BigNumber;
33
- tickSizeInQuoteAtomsPerBaseUnit: BigNumber;
34
- authority: PublicKey;
35
- feeRecipient: PublicKey;
36
- marketSequenceNumber: BigNumber;
37
- successor: PublicKey;
38
- rawBaseUnitsPerBaseUnit: number;
39
- padding1: number;
40
- padding2: BigNumber[];
41
- };
42
- export declare const marketHeaderStruct: BeetStruct<MarketHeaderAccount, Partial<MarketHeaderAccount>>;
43
- export type CondensedOrder = {
44
- priceInTicks: BigNumber;
45
- sizeInBaseLots: BigNumber;
46
- lastValidSlot: COption<BigNumber>;
47
- lastValidUnixTimestampInSeconds: COption<BigNumber>;
48
- };
49
- export declare const condensedOrderBeet: FixableBeetStruct<CondensedOrder, Partial<CondensedOrder>>;
50
- export declare enum FailedMultipleLimitOrderBehavior {
51
- FailOnInsufficientFundsAndAmendOnCross = 0,
52
- FailOnInsufficientFundsAndFailOnCross = 1,
53
- SkipOnInsufficientFundsAndAmendOnCross = 2,
54
- SkipOnInsufficientFundsAndFailOnCross = 3
55
- }
56
- export type MultipleOrderPacket = {
57
- bids: CondensedOrder[];
58
- asks: CondensedOrder[];
59
- clientOrderId: COption<BigNumber>;
60
- failedMultipleLimitOrderBehavior: FailedMultipleLimitOrderBehavior;
61
- };
62
- export declare const multipleOrderPacketStruct: FixableBeetStruct<MultipleOrderPacket, Partial<MultipleOrderPacket>>;
63
- export type OrderId = {
64
- priceInTicks: BigNumber;
65
- orderSequenceNumber: BigNumber;
66
- };
67
- export declare const orderIdBeet: BeetArgsStruct<OrderId>;
@@ -1,82 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.orderIdBeet = exports.multipleOrderPacketStruct = exports.FailedMultipleLimitOrderBehavior = exports.condensedOrderBeet = exports.marketHeaderStruct = exports.marketSizeParamsBeet = exports.tokenParamsStruct = exports.seatStruct = void 0;
4
- const beet_1 = require("@metaplex-foundation/beet");
5
- const beet_solana_1 = require("@metaplex-foundation/beet-solana");
6
- const solana_1 = require("../../utils/solana");
7
- exports.seatStruct = new beet_1.BeetStruct([
8
- ['discriminant', solana_1.u64],
9
- ['market', beet_solana_1.publicKey],
10
- ['trader', beet_solana_1.publicKey],
11
- ['approvalStatus', solana_1.u64],
12
- ['padding', (0, beet_1.uniformFixedSizeArray)(solana_1.u64, 6)],
13
- ], (args) => args);
14
- exports.tokenParamsStruct = new beet_1.BeetStruct([
15
- ['decimals', beet_1.u32],
16
- ['vaultBump', beet_1.u32],
17
- ['mintKey', beet_solana_1.publicKey],
18
- ['vaultKey', beet_solana_1.publicKey],
19
- ], (args) => args);
20
- exports.marketSizeParamsBeet = new beet_1.BeetStruct([
21
- ['bidsSize', solana_1.u64],
22
- ['asksSize', solana_1.u64],
23
- ['numSeats', solana_1.u64],
24
- ], (args) => args);
25
- exports.marketHeaderStruct = new beet_1.BeetStruct([
26
- ['discriminant', solana_1.u64],
27
- ['status', solana_1.u64],
28
- ['marketSizeParams', exports.marketSizeParamsBeet],
29
- ['baseParams', exports.tokenParamsStruct],
30
- ['baseLotSize', solana_1.u64],
31
- ['quoteParams', exports.tokenParamsStruct],
32
- ['quoteLotSize', solana_1.u64],
33
- ['tickSizeInQuoteAtomsPerBaseUnit', solana_1.u64],
34
- ['authority', beet_solana_1.publicKey],
35
- ['feeRecipient', beet_solana_1.publicKey],
36
- ['marketSequenceNumber', solana_1.u64],
37
- ['successor', beet_solana_1.publicKey],
38
- ['rawBaseUnitsPerBaseUnit', beet_1.u32],
39
- ['padding1', beet_1.u32],
40
- ['padding2', (0, beet_1.uniformFixedSizeArray)(solana_1.u64, 32)],
41
- ], (args) => args);
42
- exports.condensedOrderBeet = new beet_1.FixableBeetStruct([
43
- ['priceInTicks', solana_1.u64],
44
- ['sizeInBaseLots', solana_1.u64],
45
- ['lastValidSlot', (0, beet_1.coption)(solana_1.u64)],
46
- ['lastValidUnixTimestampInSeconds', (0, beet_1.coption)(solana_1.u64)],
47
- ], (args) => args);
48
- var FailedMultipleLimitOrderBehavior;
49
- (function (FailedMultipleLimitOrderBehavior) {
50
- FailedMultipleLimitOrderBehavior[FailedMultipleLimitOrderBehavior["FailOnInsufficientFundsAndAmendOnCross"] = 0] = "FailOnInsufficientFundsAndAmendOnCross";
51
- FailedMultipleLimitOrderBehavior[FailedMultipleLimitOrderBehavior["FailOnInsufficientFundsAndFailOnCross"] = 1] = "FailOnInsufficientFundsAndFailOnCross";
52
- FailedMultipleLimitOrderBehavior[FailedMultipleLimitOrderBehavior["SkipOnInsufficientFundsAndAmendOnCross"] = 2] = "SkipOnInsufficientFundsAndAmendOnCross";
53
- FailedMultipleLimitOrderBehavior[FailedMultipleLimitOrderBehavior["SkipOnInsufficientFundsAndFailOnCross"] = 3] = "SkipOnInsufficientFundsAndFailOnCross";
54
- })(FailedMultipleLimitOrderBehavior || (exports.FailedMultipleLimitOrderBehavior = FailedMultipleLimitOrderBehavior = {}));
55
- exports.multipleOrderPacketStruct = new beet_1.FixableBeetStruct([
56
- ['bids', (0, beet_1.array)(exports.condensedOrderBeet)],
57
- ['asks', (0, beet_1.array)(exports.condensedOrderBeet)],
58
- ['clientOrderId', (0, beet_1.coption)(solana_1.u128)],
59
- ['failedMultipleLimitOrderBehavior', beet_1.u8],
60
- ], (args) => args);
61
- exports.orderIdBeet = new beet_1.BeetArgsStruct([
62
- ['priceInTicks', solana_1.u64],
63
- ['orderSequenceNumber', solana_1.u64],
64
- ], 'fIFOOrderId');
65
- // export type TraderState = {
66
- // quoteLotsLocked: bignum;
67
- // quoteLotsFree: bignum;
68
- // baseLotsLocked: bignum;
69
- // baseLotsFree: bignum;
70
- // padding: bignum[]; // size: 8
71
- // };
72
- // export const traderStateBeet = new BeetStruct<TraderState>(
73
- // [
74
- // ['quoteLotsLocked', u64],
75
- // ['quoteLotsFree', u64],
76
- // ['baseLotsLocked', u64],
77
- // ['baseLotsFree', u64],
78
- // ['padding', uniformFixedSizeArray(u64, 8)],
79
- // ],
80
- // (args) => args as TraderState
81
- // );
82
- //# sourceMappingURL=structs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"structs.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/phoenix/structs.ts"],"names":[],"mappings":";;;AAAA,oDAWmC;AACnC,kEAA6D;AAG7D,+CAA+C;AAUlC,QAAA,UAAU,GAAG,IAAI,iBAAU,CACtC;IACE,CAAC,cAAc,EAAE,YAAG,CAAC;IACrB,CAAC,QAAQ,EAAE,uBAAS,CAAC;IACrB,CAAC,QAAQ,EAAE,uBAAS,CAAC;IACrB,CAAC,gBAAgB,EAAE,YAAG,CAAC;IACvB,CAAC,SAAS,EAAE,IAAA,4BAAqB,EAAC,YAAG,EAAE,CAAC,CAAC,CAAC;CAC3C,EACD,CAAC,IAAI,EAAE,EA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- marketSizeParams: {
5
- bidsSize: string;
6
- asksSize: string;
7
- numSeats: string;
8
- };
9
- baseParams: {
10
- decimals: number;
11
- vaultBump: number;
12
- mintKey: string;
13
- vaultKey: string;
14
- };
15
- baseLotSize: string;
16
- quoteParams: {
17
- decimals: number;
18
- vaultBump: number;
19
- mintKey: string;
20
- vaultKey: string;
21
- };
22
- quoteLotSize: string;
23
- tickSizeInQuoteAtomsPerBaseUnit: string;
24
- authority: string;
25
- feeRecipient: string;
26
- marketSequenceNumber: string;
27
- successor: string;
28
- rawBaseUnitsPerBaseUnit: number;
29
- };
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/phoenix/types.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/realms/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAI/B,QAAA,UAAU,GAAG,QAAQ,CAAC;AAEtB,QAAA,cAAc,GAAa;IACtC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,8CAA8C;IACrD,WAAW,EAAE,gBAAgB;IAC7B,OAAO,EAAE,2BAA2B;CACrC,CAAC;AAEW,QAAA,iBAAiB,GAAG,uBAAuB,CAAC;AAC5C,QAAA,YAAY,GAAG,YAAY,CAAC;AAE5B,QAAA,aAAa,GAAe;IACvC;QACE,SAAS,EAAE,IAAI,mBAAS,CAAC,6CAA6C,CAAC,EAAE,WAAW;QACpF,IAAI,EAAE,6CAA6C;KACpD;IACD;QACE,SAAS,EAAE,IAAI,mBAAS,CAAC,8CAA8C,CAAC,EAAE,QAAQ;QAClF,IAAI,EAAE,6CAA6C;KACpD;IACD;QACE,SAAS,EAAE,IAAI,mBAAS,CAAC,6CAA6C,CAAC,EAAE,QAAQ;QACjF,IAAI,EAAE,6CAA6C;KACpD;IACD;QACE,SAAS,EAAE,IAAI,mBAAS,CAAC,8CAA8C,CAAC,EAAE,aAAa;QACvF,IAAI,EAAE,8CAA8C;KACrD;CACF,CAAC;AAEW,QAAA,UAAU,GAAG,IAAI,mBAAS,CACrC,6CAA6C,CAC9C,CAAC;AAEW,QAAA,gBAAgB,GAC3B,oDAAoD,CAAC"}
@@ -1,3 +0,0 @@
1
- import { Fetcher } from '../../Fetcher';
2
- declare const fetcher: Fetcher;
3
- export default fetcher;
@@ -1 +0,0 @@
1
- {"version":3,"file":"depositsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/realms/depositsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAMoC;AACpC,6CAA4C;AAG5C,2CAAyC;AACzC,iDAAsD;AACtD,+CAG4B;AAC5B,6CAA2D;AAC3D,uCAA+C;AAC/C,qGAA6E;AAC7E,uCAAwD;AAGxD,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,SAAS,GAAG,MAAM,KAAK,CAAC,OAAO,CAAY,MAAM,EAAE;QACvD,MAAM,EAAE,sBAAU;QAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;KAC5B,CAAC,CAAC;IAEH,IAAI,CAAC,SAAS;QAAE,OAAO,EAAE,CAAC;IAE1B,MAAM,cAAc,GAAG,SAAS,CAAC,WAAW,CAAC;IAC7C,MAAM,aAAa,GAAwB,IAAI,GAAG,EAAE,CAAC;IACrD,MAAM,QAAQ,GAAgB,IAAI,GAAG,EAAE,CAAC;IAExC,MAAM,oBAAoB,GAAgB,EAAE,CAAC;IAC7C,SAAS,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,aAAa,EAAE,EAAE;QAC7C,oBAAoB,CAAC,IAAI,CACvB,IAAA,qBAAW,EAAC,KAAK,EAAE,aAAa,CAAC,MAAM,EAAE,aAAa,CAAC,GAAG,CAAC,CAC5D,CAAC;QACF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Ae,OAAO,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"filters.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/realms/filters.ts"],"names":[],"mappings":";;;AAAA,6CAA2D;AAEpD,MAAM,kBAAkB,GAAG,CAAC,OAAe,EAAE,EAAE,CAAC;IACrD,EAAE,QAAQ,EAAE,mBAAU,CAAC,QAAQ,EAAE;IACjC;QACE,MAAM,EAAE;YACN,MAAM,EAAE,EAAE;YACV,KAAK,EAAE,OAAO;SACf;KACF;CACF,CAAC;AARW,QAAA,kBAAkB,sBAQ7B;AAEK,MAAM,mBAAmB,GAAG,CAAC,OAAe,EAAE,EAAE,CAAC;IACtD,EAAE,QAAQ,EAAE,oBAAW,CAAC,QAAQ,EAAE;IAClC;QACE,MAAM,EAAE;YACN,MAAM,EAAE,CAAC;YACT,KAAK,EAAE,OAAO;SACf;KACF;CACF,CAAC;AARW,QAAA,mBAAmB,uBAQ9B;AAEK,MAAM,uBAAuB,GAAG,GAAG,EAAE,CAAC;IAC3C;QACE,MAAM,EAAE;YACN,MAAM,EAAE,CAAC;YACT,KAAK,EAAE,GAAG;SACX;KACF;CACF,CAAC;AAPW,QAAA,uBAAuB,2BAOlC;AAEK,MAAM,sBAAsB,GAAG,GAAG,EAAE,CAAC,CAAC,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,CAAC;AAAnD,QAAA,sBAAsB,0BAA6B"}
@@ -1,11 +0,0 @@
1
- import { FindNftsByOwnerOutput, Metadata, Nft, Sft } from '@metaplex-foundation/js';
2
- import { PortfolioElement } from '@sonarwatch/portfolio-core';
3
- import BigNumber from 'bignumber.js';
4
- import { PublicKey } from '@solana/web3.js';
5
- import { Cache } from '../../Cache';
6
- import { LockupKind } from './structs/realms';
7
- export declare const votingEscrowIdentifier = "Voting Escrow Token Position";
8
- export declare function isAVotingEscrowPosition(nft: Metadata | Nft | Sft): boolean;
9
- export declare function getVoterPda(owner: string, registrar: string, vsr: string): PublicKey;
10
- export declare function getPositionFromVotingEscrowNFT(cache: Cache, nfts: FindNftsByOwnerOutput): Promise<PortfolioElement[]>;
11
- export declare function getLockedUntil(startTs: BigNumber, endTs: BigNumber, lockupKind: LockupKind): number | undefined;
@@ -1 +0,0 @@
1
- {"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/realms/helpers.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gDAOiC;AACjC,+DAKoC;AACpC,gEAAqC;AACrC,6CAA4C;AAE5C,iDAAsD;AAEtD,6CAA8C;AAC9C,qGAA6E;AAC7E,2CAAyC;AACzC,6FAAoE;AAEvD,QAAA,sBAAsB,GAAG,8BAA8B,CAAC;AAErE,SAAgB,uBAAuB,CAAC,GAAyB;IAC/D,OAAO,GAAG,IAAI,GAAG,CAAC,IAAI,KAAK,8BAAsB,CAAC;AACpD,CAAC;AAFD,0DAEC;AAED,SAAgB,WAAW,CACzB,KAAa,EACb,SAAiB,EACjB,GAAW;IAEX,OAAO,mBAAS,CAAC,sBAAsB,CACrC;QACE,IAAI,mBAAS,CAAC,SAAS,CAAC,CAAC,QAAQ,EAAE;QACnC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC;QAC7B,IAAI,mBAAS,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE;KAChC,EACD,IAAI,mBAAS,CAAC,GAAG,CAAC,CACnB,CAAC,CAAC,CAAC,CAAC;AACP,CAAC;AAbD,kCAaC;AAED,SAAsB,8BAA8B,CAClD,KAAY,EACZ,IAA2B;;QAE3B,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;QACjC,MAAM,QAAQ,GAAG,IAAI,aAAQ,CAAC,MAAM,CAAC,CAAC;QACtC,MAAM,MAAM,GAAqB,EAAE,CAAC;QACpC,MAAM,YAAY,GAA2B,IAAI,GAAG,EAAE,CAAC;QACvD,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;YACvB,IAAI,IAAA,eA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sBAAS,CAAC,OAAO,CAAC;YAC/B,KAAK,EAAE,IAAI,sBAAS,CAAC,KAAK,CAAC;YAC3B,IAAI;YACJ,UAAU;YACV,cAAc,EAAE,MAAM,CAAC,cAAc,CAAC;SACvC,CAAC;IACJ,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC"}
@@ -1,13 +0,0 @@
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.platforms = exports.fetchers = exports.jobs = void 0;
7
- const depositsFetcher_1 = __importDefault(require("./depositsFetcher"));
8
- const constants_1 = require("./constants");
9
- const programsJob_1 = __importDefault(require("./programsJob"));
10
- exports.jobs = [programsJob_1.default];
11
- exports.fetchers = [depositsFetcher_1.default];
12
- exports.platforms = [constants_1.realmsPlatform];
13
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/realms/index.ts"],"names":[],"mappings":";;;;;;AAGA,wEAAgD;AAChD,2CAA6C;AAC7C,gEAAwC;AAE3B,QAAA,IAAI,GAAU,CAAC,qBAAW,CAAC,CAAC;AAC5B,QAAA,QAAQ,GAAc,CAAC,yBAAe,CAAC,CAAC;AACxC,QAAA,SAAS,GAAe,CAAC,0BAAc,CAAC,CAAC"}
@@ -1,3 +0,0 @@
1
- import { Job } from '../../Job';
2
- declare const job: Job;
3
- export default job;
@@ -1 +0,0 @@
1
- {"version":3,"file":"programsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/realms/programsJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,kDAA6C;AAC7C,+DAAuD;AACvD,6CAA4C;AAG5C,2CAKqB;AACrB,+CAA8D;AAC9D,iDAAsD;AACtD,6CAAmD;AACnD,uCAAmD;AAGnD,MAAM,QAAQ,GAAgB,CAAO,KAAY,E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;KAC5B,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AAEF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,WAAW;IAC5B,QAAQ;IACR,KAAK,EAAE,QAAQ;CAChB,CAAC;AAEF,kBAAe,GAAG,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"realms.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/realms/structs/realms.ts"],"names":[],"mappings":";;;AAAA,oDAOmC;AACnC,kEAA6D;AAG7D,kDAAuD;AAEvD,IAAY,UAMX;AAND,WAAY,UAAU;IACpB,2CAAM,CAAA;IACN,6CAAO,CAAA;IACP,iDAAS,CAAA;IACT,6CAAO,CAAA;IACP,mDAAU,CAAA;AACZ,CAAC,EANW,UAAU,0BAAV,UAAU,QAMrB;AASY,QAAA,YAAY,GAAG,IAAI,iBAAU,CACxC;IACE,CAAC,SAAS,EAAE,YAAG,CAAC;IAChB,CAAC,OAAO,EAAE,YAAG,CAAC;IACd,CAAC,MAAM,EAAE,SAAE,CAAC;IACZ,CAAC,UAAU,EAAE,IAAA,4BAAqB,EAAC,SAAE,EAAE,EAAE,CAAC,CAAC;CAC5C,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAc,CACzB,CAAC;AAWW,QAAA,UAAU,GAAG,IAAI,iBAAU,CACtC;IACE,CAAC,SAAS,EAAE,SAAE,CAAC;IACf,CAAC,OAAO,EAAE,uBAAS,CAAC;IACpB,CAAC,MAAM,EAAE,uBAAS,CAAC;IACnB,CAAC,OAAO,EAAE,uBAAS,CAAC;IACpB,CAAC,QAAQ,EAAE,YAAG,CAAC;IACf,CAAC,SAAS,EAAE,IAAA,aAAI,EAAC,GAAG,CAAC,CAAC;CACvB,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAY,CACvB,CAAC;AAWW,QAAA,kBAAkB,GAAG,IAAI,iBAAU,CAC9C;IACE,CAAC,QAAQ,EAAE,oBAAY,CAAC;IACxB,CAAC,u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AAI,EAAE,EAAE,CAAC,IAAwB,CACnC,CAAC;AAgBW,QAAA,eAAe,GAAG,IAAI,iBAAU,CAC3C;IACE,CAAC,QAAQ,EAAE,IAAA,aAAI,EAAC,CAAC,CAAC,CAAC;IACnB,CAAC,qBAAqB,EAAE,uBAAS,CAAC;IAClC,CAAC,OAAO,EAAE,uBAAS,CAAC;IACpB,CAAC,yBAAyB,EAAE,uBAAS,CAAC;IACtC,CAAC,gBAAgB,EAAE,uBAAS,CAAC;IAC7B,CAAC,WAAW,EAAE,IAAA,4BAAqB,EAAC,SAAE,EAAE,EAAE,CAAC,CAAC;IAC5C,CAAC,aAAa,EAAE,IAAA,4BAAqB,EAAC,8BAAsB,EAAE,CAAC,CAAC,CAAC;IACjE,CAAC,YAAY,EAAE,YAAG,CAAC;IACnB,CAAC,MAAM,EAAE,SAAE,CAAC;IACZ,CAAC,WAAW,EAAE,IAAA,4BAAqB,EAAC,SAAE,EAAE,CAAC,CAAC,CAAC;IAC3C,CAAC,WAAW,EAAE,IAAA,4BAAqB,EAAC,YAAG,EAAE,EAAE,CAAC,CAAC;CAC9C,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAiB,CAC5B,CAAC;AAQW,QAAA,gBAAgB,GAAG,IAAI,iBAAU,CAC5C;IACE,CAAC,QAAQ,EAAE,IAAA,aAAI,EAAC,CAAC,CAAC,CAAC;IACnB,CAAC,QAAQ,EAAE,uBAAS,CAAC;IACrB,CAAC,SAAS,EAAE,IAAA,4BAAqB,EAAC,UAAG,EAAE,EAAE,CAAC,CAAC;CAC5C,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAkB,CAC7B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/realms/types.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/spl-staking/constants.ts"],"names":[],"m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,8CAA8C,EAAE,2BAAmB,CAAC;IACrE,CAAC,8CAA8C,EAAE,0BAAkB,CAAC;CACrE,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"filters.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/spl-staking/filters.ts"],"names":[],"mappings":";;;AAEO,MAAM,YAAY,GAAG,CAAC,KAAa,EAA8B,EAAE,CAAC;IACzE;QACE,MAAM,EAAE;YACN,MAAM,EAAE,CAAC;YACT,KAAK,EAAE,KAAK;SACb;KACF;IACD,EAAE,QAAQ,EAAE,GAAG,EAAE;CAClB,CAAC;AARW,QAAA,YAAY,gBAQvB"}
@@ -1,6 +0,0 @@
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[];
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/spl-staking/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAAgD;AAChD,0DAAkC;AAClC,sEAA8C;AAEjC,QAAA,SAAS,GAAe,CAAC,6BAAiB,CAAC,CAAC;AAC5C,QAAA,IAAI,GAAU,CAAC,kBAAQ,CAAC,CAAC;AACzB,QAAA,QAAQ,GAAc,CAAC,wBAAc,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"poolsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/spl-staking/poolsJob.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAGvD,iDAAsD;AACtD,+CAA8D;AAC9D,wDAA4D;AAC5D,2CAA6D;AAC7D,uCAA4C;AAG5C,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,KAAK,GAAG,MAAM,IAAA,iCAAwB,EAC1C,MAAM,EACN,yBAAe,EACf,oBAAQ,EACR,IAAA,wBAAc,EAAC,yBAAe,CAAC,QAAQ,CAAC,CACzC,CAAC;IAEF,MAAM,SAAS,GAAe,EAAE,CAAC;IACjC,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACzB,SAAS,CAAC,IAAI,CAAC;YACb,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE;YAC9B,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;SAC3B,CAAC,CAAC;IACL,CAAC;IAED,MAAM,KAAK,CAAC,OAAO,CAAC,oBAAQ,EAAE,SAAS,EAAE;QACvC,MAAM,EAAE,sBAAU;QAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;KAC5B,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AAEF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,QAAQ;IACzB,QAAQ;IACR,KAAK,EAAE,QAAQ;CAChB,CAAC;AACF,kBAAe,GAAG,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"stakingFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/spl-staking/stakingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAMoC;AAGpC,2CAA6E;AAC7E,+CAA8D;AAC9D,uCAAsD;AACtD,uCAAyC;AACzC,iDAAsD;AACtD,qGAA6E;AAG7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,KAAK,GAAG,MAAM,KAAK,CAAC,OAAO,CAAa,oBAAQ,EAAE;QACtD,MAAM,EAAE,sBAAU;QAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;KAC5B,CAAC,CAAC;IACH,IAAI,CAAC,KAAK;QAAE,OAAO,EAAE,CAAC;IAEtB,MAA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OAAO,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"structs.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/spl-staking/structs.ts"],"names":[],"mappings":";;;AAAA,oDAImC;AACnC,kEAA6D;AAG7D,+CAA0D;AAc7C,QAAA,yBAAyB,GAAG,IAAI,iBAAU,CACrD;IACE,CAAC,QAAQ,EAAE,IAAA,aAAI,EAAC,CAAC,CAAC,CAAC;IACnB,CAAC,OAAO,EAAE,uBAAS,CAAC;IACpB,CAAC,OAAO,EAAE,uBAAS,CAAC;IACpB,CAAC,WAAW,EAAE,uBAAS,CAAC;IACxB,CAAC,gBAAgB,EAAE,YAAG,CAAC;IACvB,CAAC,kBAAkB,EAAE,YAAG,CAAC;IACzB,CAAC,eAAe,EAAE,YAAG,CAAC;IACtB,CAAC,gBAAgB,EAAE,aAAI,CAAC;IACxB,CAAC,gBAAgB,EAAE,IAAA,4BAAqB,EAAC,aAAI,EAAE,EAAE,CAAC,CAAC;CACpD,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAA2B,CACtC,CAAC;AASW,QAAA,gBAAgB,GAAG,IAAI,iBAAU,CAC5C;IACE,CAAC,aAAa,EAAE,uBAAS,CAAC;IAC1B,CAAC,0BAA0B,EAAE,aAAI,CAAC;IAClC,CAAC,YAAY,EAAE,YAAG,CAAC;IACnB,CAAC,UAAU,EAAE,IAAA,4BAAqB,EAAC,SAAE,EAAE,CAAC,CAAC,CAAC;CAC3C,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAkB,CAC7B,CAAC;AAqBW,QAAA,eAAe,GAAG,IAAI,iBAAU,CAC3C;IACE,CAAC,QAAQ,EAAE,IAAA,aAAI,EAAC,CAAC,CAAC,CAAC;IACnB,CAAC,SAAS,EAAE,uBAAS,CAAC;IACtB,CAAC,WAAW,EAAE,uBAAS,CAAC;IACxB,CAAC,oBAAoB,EAAE,aAAI,CAAC;IAC5B,CAAC,OAAO,EAAE,uBAAS,CAAC;IACpB,CAAC,MAAM,EAAE,uBAAS,CAAC;IACnB,CAAC,WAAW,EAAE,uBAAS,CAAC;IACxB,CAAC,aAAa,EAAE,IAAA,4BAAqB,EAAC,wBAAgB,EAAE,EAAE,CAAC,CAAC;IAC5D,CAAC,YAAY,EAAE,YAAG,CAAC;IACnB,CAAC,WAAW,EAAE,YAAG,CAAC;IAClB,CAAC,aAAa,EAAE,YAAG,CAAC;IACpB,CAAC,aAAa,EAAE,YAAG,CAAC;IACpB,CAAC,OAAO,EAAE,SAAE,CAAC;IACb,CAAC,UAAU,EAAE,SAAE,CAAC;IAChB,CAAC,UAAU,EAAE,IAAA,4BAAqB,EAAC,SAAE,EAAE,CAAC,CAAC,CAAC;IAC1C,CAAC,WAAW,EAAE,IAAA,4BAAqB,EAAC,SAAE,EAAE,GAAG,CAAC,CAAC;CAC9C,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAiB,CAC5B,CAAC"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/spl-staking/types.ts"],"names":[],"mappings":""}
File without changes
File without changes
File without changes
File without changes
File without changes