@sonarwatch/portfolio-plugins 0.14.144 → 0.14.151

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 (44) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/package.json +1 -1
  3. package/src/plugins/bskt/constants.d.ts +1 -0
  4. package/src/plugins/bskt/constants.js +2 -1
  5. package/src/plugins/bskt/constants.js.map +1 -1
  6. package/src/plugins/bskt/index.js +5 -1
  7. package/src/plugins/bskt/index.js.map +1 -1
  8. package/src/plugins/bskt/stakingFetcher.d.ts +3 -0
  9. package/src/plugins/bskt/stakingFetcher.js +58 -0
  10. package/src/plugins/bskt/stakingFetcher.js.map +1 -0
  11. package/src/plugins/bskt/structs.d.ts +12 -0
  12. package/src/plugins/bskt/structs.js +12 -1
  13. package/src/plugins/bskt/structs.js.map +1 -1
  14. package/src/plugins/orca/getWhirlpoolPositions.js +1 -1
  15. package/src/plugins/orca/getWhirlpoolPositions.js.map +1 -1
  16. package/src/plugins/orca/types.d.ts +6 -2
  17. package/src/plugins/orca/whirlpoolsStatsJob.js +7 -3
  18. package/src/plugins/orca/whirlpoolsStatsJob.js.map +1 -1
  19. package/src/plugins/ratex/getPool.d.ts +1 -2
  20. package/src/plugins/ratex/getPool.js +4 -3
  21. package/src/plugins/ratex/getPool.js.map +1 -1
  22. package/src/plugins/ratex/helpers.d.ts +7 -4
  23. package/src/plugins/ratex/helpers.js +11 -31
  24. package/src/plugins/ratex/helpers.js.map +1 -1
  25. package/src/plugins/ratex/marketsJob.js +4 -9
  26. package/src/plugins/ratex/marketsJob.js.map +1 -1
  27. package/src/plugins/ratex/positionsFetcher.js +2 -2
  28. package/src/plugins/ratex/positionsFetcher.js.map +1 -1
  29. package/src/plugins/ratex/structs.d.ts +211 -0
  30. package/src/plugins/ratex/structs.js +203 -0
  31. package/src/plugins/ratex/structs.js.map +1 -0
  32. package/src/plugins/ratex/types.d.ts +5 -76
  33. package/src/plugins/zeta/constants.d.ts +0 -2
  34. package/src/plugins/zeta/constants.js +1 -7
  35. package/src/plugins/zeta/constants.js.map +1 -1
  36. package/src/plugins/zeta/stakingFetcher.js +6 -3
  37. package/src/plugins/zeta/stakingFetcher.js.map +1 -1
  38. package/src/plugins/zeta/structs.d.ts +24 -1
  39. package/src/plugins/zeta/structs.js +30 -1
  40. package/src/plugins/zeta/structs.js.map +1 -1
  41. package/src/plugins/zeta/types.d.ts +0 -26
  42. package/src/plugins/zeta/types.js +0 -7
  43. package/src/plugins/zeta/types.js.map +1 -1
  44. package/src/plugins/ratex/idl.json +0 -8806
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.claimStatusStruct = exports.crossMarginAccountStruct = exports.productLedgerStruct = exports.orderStateStruct = exports.positionStruct = exports.anchorDecimalStruct = exports.MarginAccountType = void 0;
3
+ exports.stakeAccountStruct = exports.claimStatusStruct = exports.crossMarginAccountStruct = exports.productLedgerStruct = exports.orderStateStruct = exports.positionStruct = exports.anchorDecimalStruct = exports.MarginAccountType = void 0;
4
4
  const beet_1 = require("@metaplex-foundation/beet");
5
5
  const beet_solana_1 = require("@metaplex-foundation/beet-solana");
6
6
  const solana_1 = require("../../utils/solana");
@@ -55,4 +55,33 @@ exports.claimStatusStruct = new beet_1.BeetStruct([
55
55
  ['claimedAt', solana_1.u64],
56
56
  ['claimedAmount', solana_1.u64],
57
57
  ], (args) => args);
58
+ const stakeStateStruct = (0, beet_1.dataEnum)([
59
+ [
60
+ 'Uninitialized',
61
+ new beet_1.FixableBeetArgsStruct([], 'StakeStateRecord["Uninitialized"]'),
62
+ ],
63
+ [
64
+ 'Vesting',
65
+ new beet_1.FixableBeetArgsStruct([
66
+ ['stakeStartEpoch', beet_1.u32],
67
+ ['lastClaimTs', solana_1.u64],
68
+ ], 'StakeStateRecord["Vesting"]'),
69
+ ],
70
+ [
71
+ 'Locked',
72
+ new beet_1.FixableBeetArgsStruct([], 'StakeStateRecord["Locked"]'),
73
+ ],
74
+ ]);
75
+ exports.stakeAccountStruct = new beet_1.FixableBeetStruct([
76
+ ['accountDiscriminator', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 8)],
77
+ ['name', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 10)],
78
+ ['vaultNonce', beet_1.u8],
79
+ ['bitInUse', beet_1.u8],
80
+ ['stakeState', stakeStateStruct],
81
+ ['initialStakeAmount', solana_1.u64],
82
+ ['amountStillStaked', solana_1.u64],
83
+ ['amountClaimed', solana_1.u64],
84
+ ['stakeDurationEpochs', beet_1.u32],
85
+ ['authority', beet_solana_1.publicKey], // 49
86
+ ], (args) => args);
58
87
  //# sourceMappingURL=structs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"structs.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/zeta/structs.ts"],"names":[],"mappings":";;;AAAA,oDAOmC;AACnC,kEAA6D;AAG7D,+CAAoD;AAEpD,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC3B,6DAAM,CAAA;IACN,uEAAW,CAAA;AACb,CAAC,EAHW,iBAAiB,iCAAjB,iBAAiB,QAG5B;AAQY,QAAA,mBAAmB,GAAG,IAAI,iBAAU,CAC/C;IACE,CAAC,OAAO,EAAE,UAAG,CAAC;IACd,CAAC,IAAI,EAAE,UAAG,CAAC;IACX,CAAC,IAAI,EAAE,UAAG,CAAC;IACX,CAAC,KAAK,EAAE,UAAG,CAAC;CACb,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAqB,CAChC,CAAC;AAMW,QAAA,cAAc,GAAG,IAAI,iBAAU,CAC1C;IACE,CAAC,MAAM,EAAE,YAAG,CAAC;IACb,CAAC,cAAc,EAAE,YAAG,CAAC;CACtB,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAgB,CAC3B,CAAC;AAOW,QAAA,gBAAgB,GAAG,IAAI,iBAAU,CAC5C;IACE,CAAC,eAAe,EAAE,YAAG,CAAC;IACtB,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AAC,SAAE,EAAE,IAAI,CAAC,CAAC;CAC7C,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAA0B,CACrC,CAAC;AASS,QAAA,iBAAiB,GAAG,IAAI,iBAAU,CAC7C;IACE,CAAC,QAAQ,EAAE,IAAA,aAAI,EAAC,CAAC,CAAC,CAAC;IACnB,CAAC,UAAU,EAAE,uBAAS,CAAC;IACvB,CAAC,WAAW,EAAE,YAAG,CAAC;IAClB,CAAC,eAAe,EAAE,YAAG,CAAC;CACvB,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAmB,CAC9B,CAAC"}
1
+ {"version":3,"file":"structs.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/zeta/structs.ts"],"names":[],"mappings":";;;AAAA,oDAWmC;AACnC,kEAA6D;AAG7D,+CAAoD;AAEpD,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC3B,6DAAM,CAAA;IACN,uEAAW,CAAA;AACb,CAAC,EAHW,iBAAiB,iCAAjB,iBAAiB,QAG5B;AAQY,QAAA,mBAAmB,GAAG,IAAI,iBAAU,CAC/C;IACE,CAAC,OAAO,EAAE,UAAG,CAAC;IACd,CAAC,IAAI,EAAE,UAAG,CAAC;IACX,CAAC,IAAI,EAAE,UAAG,CAAC;IACX,CAAC,KAAK,EAAE,UAAG,CAAC;CACb,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAqB,CAChC,CAAC;AAMW,QAAA,cAAc,GAAG,IAAI,iBAAU,CAC1C;IACE,CAAC,MAAM,EAAE,YAAG,CAAC;IACb,CAAC,cAAc,EAAE,YAAG,CAAC;CACtB,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAgB,CAC3B,CAAC;AAOW,QAAA,gBAAgB,GAAG,IAAI,iBAAU,CAC5C;IACE,CAAC,eAAe,EAAE,YAAG,CAAC;IACtB,CAAC,eAAe,EAAE,YAAG,CAAC;IACtB,CAAC,eAAe,EAAE,YAAG,CAAC;CACvB,EACD,CAAC,I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1,3 @@
1
- /// <reference types="node" />
2
1
  export type GQLResponse = {
3
2
  getAirdropFinalFrontend: GetAirdropFinalFrontend;
4
3
  };
@@ -13,28 +12,3 @@ export type GetAirdropFinalFrontend = {
13
12
  total_allocation: number;
14
13
  __typename: string;
15
14
  };
16
- export declare enum StakeStateName {
17
- Uninitialized = 0,
18
- Vesting = 1,
19
- Locked = 2
20
- }
21
- export type StakeState = {
22
- vesting?: {
23
- lastClaimTs: string;
24
- stakeStartEpoch: number;
25
- };
26
- locked?: null;
27
- uninitialized?: null;
28
- };
29
- export type StakeAccount = {
30
- buffer: Buffer;
31
- name: number[];
32
- vaultNonce: number;
33
- bitInUse: number;
34
- stakeState: StakeState;
35
- initialStakeAmount: string;
36
- amountStillStaked: string;
37
- amountClaimed: string;
38
- stakeDurationEpochs: number;
39
- authority: string;
40
- };
@@ -1,10 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.StakeStateName = void 0;
4
- var StakeStateName;
5
- (function (StakeStateName) {
6
- StakeStateName[StakeStateName["Uninitialized"] = 0] = "Uninitialized";
7
- StakeStateName[StakeStateName["Vesting"] = 1] = "Vesting";
8
- StakeStateName[StakeStateName["Locked"] = 2] = "Locked";
9
- })(StakeStateName || (exports.StakeStateName = StakeStateName = {}));
10
3
  //# sourceMappingURL=types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/zeta/types.ts"],"names":[],"mappings":";;;AAgBA,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,qEAAa,CAAA;IACb,yDAAO,CAAA;IACP,uDAAM,CAAA;AACR,CAAC,EAJW,cAAc,8BAAd,cAAc,QAIzB"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/zeta/types.ts"],"names":[],"mappings":""}