@sonarwatch/portfolio-plugins 0.12.76 → 0.12.78

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/package.json +1 -1
  3. package/src/index.js +1 -0
  4. package/src/index.js.map +1 -1
  5. package/src/plugins/jupiter/exchange/dcaFetcher.js +13 -7
  6. package/src/plugins/jupiter/exchange/dcaFetcher.js.map +1 -1
  7. package/src/plugins/jupiter/exchange/filters.js +0 -1
  8. package/src/plugins/jupiter/exchange/filters.js.map +1 -1
  9. package/src/plugins/jupiter/launchpad/constants.js +0 -18
  10. package/src/plugins/jupiter/launchpad/constants.js.map +1 -1
  11. package/src/plugins/meteora/constants.d.ts +2 -0
  12. package/src/plugins/meteora/constants.js +3 -1
  13. package/src/plugins/meteora/constants.js.map +1 -1
  14. package/src/plugins/meteora/dlmmPositionsFetcher.js +5 -0
  15. package/src/plugins/meteora/dlmmPositionsFetcher.js.map +1 -1
  16. package/src/plugins/meteora/dlmmVaultsFetcher.d.ts +3 -0
  17. package/src/plugins/meteora/dlmmVaultsFetcher.js +157 -0
  18. package/src/plugins/meteora/dlmmVaultsFetcher.js.map +1 -0
  19. package/src/plugins/meteora/dlmmVaultsJob.d.ts +3 -0
  20. package/src/plugins/meteora/dlmmVaultsJob.js +44 -0
  21. package/src/plugins/meteora/dlmmVaultsJob.js.map +1 -0
  22. package/src/plugins/meteora/index.js +14 -2
  23. package/src/plugins/meteora/index.js.map +1 -1
  24. package/src/plugins/meteora/struct.d.ts +35 -0
  25. package/src/plugins/meteora/struct.js +34 -1
  26. package/src/plugins/meteora/struct.js.map +1 -1
  27. package/src/plugins/meteora/types.d.ts +5 -1
  28. package/src/plugins/meteora/types.js.map +1 -1
  29. package/src/plugins/nxfinance/constants.d.ts +1 -1
  30. package/src/plugins/nxfinance/constants.js +5 -2
  31. package/src/plugins/nxfinance/constants.js.map +1 -1
  32. package/src/plugins/nxfinance/positionsFetcher.js +1 -1
  33. package/src/plugins/nxfinance/positionsFetcher.js.map +1 -1
  34. package/src/plugins/sanctum/airdropFetcher.d.ts +3 -0
  35. package/src/plugins/sanctum/airdropFetcher.js +94 -0
  36. package/src/plugins/sanctum/airdropFetcher.js.map +1 -0
  37. package/src/plugins/sanctum/constants.d.ts +4 -0
  38. package/src/plugins/sanctum/constants.js +12 -1
  39. package/src/plugins/sanctum/constants.js.map +1 -1
  40. package/src/plugins/sanctum/index.d.ts +2 -0
  41. package/src/plugins/sanctum/index.js +7 -2
  42. package/src/plugins/sanctum/index.js.map +1 -1
  43. package/src/plugins/solend/constants.d.ts +4 -0
  44. package/src/plugins/solend/constants.js +5 -1
  45. package/src/plugins/solend/constants.js.map +1 -1
  46. package/src/plugins/solend/index.js +2 -1
  47. package/src/plugins/solend/index.js.map +1 -1
  48. package/src/plugins/solend/rewardsFetcher.d.ts +3 -0
  49. package/src/plugins/solend/rewardsFetcher.js +95 -0
  50. package/src/plugins/solend/rewardsFetcher.js.map +1 -0
  51. package/src/plugins/solend/structs.d.ts +8 -0
  52. package/src/plugins/solend/structs.js +8 -1
  53. package/src/plugins/solend/structs.js.map +1 -1
  54. package/src/plugins/solend/types.d.ts +23 -0
  55. package/src/utils/solana/beets/numbers.d.ts +11 -0
  56. package/src/utils/solana/beets/numbers.js +33 -1
  57. package/src/utils/solana/beets/numbers.js.map +1 -1
@@ -99,3 +99,26 @@ export type ReserveRewards = {
99
99
  borrow: RewardInfo[];
100
100
  };
101
101
  };
102
+ export type ExternalReward = {
103
+ rewardMint: string;
104
+ rewardSymbol: string;
105
+ reserveID: string;
106
+ marketID: string;
107
+ obligationID: string;
108
+ side: string;
109
+ tokenMint: string;
110
+ balance: string;
111
+ debt: string;
112
+ score: string;
113
+ lastSlot: number;
114
+ lastTx: 'string';
115
+ };
116
+ export type Obligation = {
117
+ obligationID: string;
118
+ lotNumber: number;
119
+ index: number;
120
+ quantity: string;
121
+ distributorPublicKey: string;
122
+ name: string;
123
+ incentivizer: string;
124
+ };
@@ -1,3 +1,4 @@
1
+ /// <reference types="node" />
1
2
  import { FixedSizeBeet, SupportedTypeDefinition } from '@metaplex-foundation/beet';
2
3
  import BigNumber from 'bignumber.js';
3
4
  export declare const f32: FixedSizeBeet<BigNumber>;
@@ -7,6 +8,16 @@ export declare const u64: FixedSizeBeet<BigNumber>;
7
8
  export declare const u128: FixedSizeBeet<BigNumber>;
8
9
  export declare const u256: FixedSizeBeet<BigNumber>;
9
10
  export declare const u512: FixedSizeBeet<BigNumber>;
11
+ export declare const u64Str: FixedSizeBeet<string>;
12
+ export declare const u128Str: FixedSizeBeet<string>;
13
+ export declare const u256Str: FixedSizeBeet<string>;
14
+ export declare const u512Str: FixedSizeBeet<string>;
15
+ export declare const publicKeyStr: {
16
+ write(buf: Buffer, offset: number, value: string): void;
17
+ read(buf: Buffer, offset: number): string;
18
+ byteSize: number;
19
+ description: string;
20
+ };
10
21
  export declare const i64: FixedSizeBeet<BigNumber>;
11
22
  export declare const i128: FixedSizeBeet<BigNumber>;
12
23
  export declare const i256: FixedSizeBeet<BigNumber>;
@@ -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.numbersTypeMap = exports.i80f48 = exports.i512 = exports.i256 = exports.i128 = exports.i64 = exports.u512 = exports.u256 = exports.u128 = exports.u64 = exports.fp64 = exports.f64 = exports.f32 = void 0;
6
+ exports.numbersTypeMap = exports.i80f48 = exports.i512 = exports.i256 = exports.i128 = exports.i64 = exports.publicKeyStr = exports.u512Str = exports.u256Str = exports.u128Str = exports.u64Str = exports.u512 = exports.u256 = exports.u128 = exports.u64 = exports.fp64 = exports.f64 = exports.f32 = void 0;
7
+ const beet_solana_1 = require("@metaplex-foundation/beet-solana");
8
+ const web3_js_1 = require("@solana/web3.js");
7
9
  const bignumber_js_1 = __importDefault(require("bignumber.js"));
8
10
  const bn_js_1 = require("bn.js");
9
11
  const decimal_js_1 = __importDefault(require("decimal.js"));
@@ -24,6 +26,22 @@ function unsignedLargeBeet(byteSize, description) {
24
26
  description,
25
27
  };
26
28
  }
29
+ function unsignedLargeBeetStr(byteSize, description) {
30
+ return {
31
+ write(buf, offset, value) {
32
+ const bn = new bn_js_1.BN(value);
33
+ const bytesArray = bn.toArray('le', this.byteSize);
34
+ const bytesArrayBuf = Buffer.from(bytesArray);
35
+ bytesArrayBuf.copy(buf, offset, 0, this.byteSize);
36
+ },
37
+ read(buf, offset) {
38
+ const subarray = buf.subarray(offset, offset + this.byteSize);
39
+ return new bn_js_1.BN(subarray, 'le').toString();
40
+ },
41
+ byteSize,
42
+ description,
43
+ };
44
+ }
27
45
  function unsignedSplittedFloatLargeBeet(integerSize, floatSize, description) {
28
46
  const byteSize = integerSize + floatSize;
29
47
  const bitSize = byteSize * 8;
@@ -64,6 +82,20 @@ exports.u64 = unsignedLargeBeet(8, 'u64');
64
82
  exports.u128 = unsignedLargeBeet(16, 'u128');
65
83
  exports.u256 = unsignedLargeBeet(32, 'u256');
66
84
  exports.u512 = unsignedLargeBeet(64, 'u512');
85
+ exports.u64Str = unsignedLargeBeetStr(8, 'u64');
86
+ exports.u128Str = unsignedLargeBeetStr(16, 'u128');
87
+ exports.u256Str = unsignedLargeBeetStr(32, 'u256');
88
+ exports.u512Str = unsignedLargeBeetStr(64, 'u512');
89
+ exports.publicKeyStr = {
90
+ write(buf, offset, value) {
91
+ beet_solana_1.publicKey.write(buf, offset, new web3_js_1.PublicKey(value));
92
+ },
93
+ read(buf, offset) {
94
+ return beet_solana_1.publicKey.read(buf, offset).toString();
95
+ },
96
+ byteSize: beet_solana_1.publicKey.byteSize,
97
+ description: beet_solana_1.publicKey.description,
98
+ };
67
99
  function signedLargeBeet(byteSize, description) {
68
100
  const bitSize = byteSize * 8;
69
101
  return {
@@ -1 +1 @@
1
- {"version":3,"file":"numbers.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/utils/solana/beets/numbers.ts"],"names":[],"mappings":";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