@sonarwatch/portfolio-plugins 0.11.164 → 0.11.166
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +8 -0
- package/package.json +2 -2
- package/src/index.js +4 -0
- package/src/index.js.map +1 -1
- package/src/plugins/drift/constants.d.ts +1 -0
- package/src/plugins/drift/constants.js +2 -1
- package/src/plugins/drift/constants.js.map +1 -1
- package/src/plugins/drift/index.js +2 -1
- package/src/plugins/drift/index.js.map +1 -1
- package/src/plugins/drift/premarketJob.d.ts +3 -0
- package/src/plugins/drift/premarketJob.js +52 -0
- package/src/plugins/drift/premarketJob.js.map +1 -0
- package/src/plugins/drift/struct.d.ts +150 -0
- package/src/plugins/drift/struct.js +149 -1
- package/src/plugins/drift/struct.js.map +1 -1
- package/src/plugins/drift/types.d.ts +4 -0
- package/src/plugins/kamino/airdropFetcher.d.ts +3 -0
- package/src/plugins/kamino/airdropFetcher.js +76 -0
- package/src/plugins/kamino/airdropFetcher.js.map +1 -0
- package/src/plugins/kamino/constants.d.ts +2 -0
- package/src/plugins/kamino/constants.js +3 -1
- package/src/plugins/kamino/constants.js.map +1 -1
- package/src/plugins/kamino/helpers/common.d.ts +6 -0
- package/src/plugins/kamino/helpers/common.js +21 -1
- package/src/plugins/kamino/helpers/common.js.map +1 -1
- package/src/plugins/kamino/index.js +2 -1
- package/src/plugins/kamino/index.js.map +1 -1
- package/src/plugins/nosana/constants.d.ts +7 -0
- package/src/plugins/nosana/constants.js +17 -0
- package/src/plugins/nosana/constants.js.map +1 -0
- package/src/plugins/nosana/helpers.d.ts +2 -0
- package/src/plugins/nosana/helpers.js +14 -0
- package/src/plugins/nosana/helpers.js.map +1 -0
- package/src/plugins/nosana/index.d.ts +6 -0
- package/src/plugins/nosana/index.js +12 -0
- package/src/plugins/nosana/index.js.map +1 -0
- package/src/plugins/nosana/stakingFetcher.d.ts +3 -0
- package/src/plugins/nosana/stakingFetcher.js +56 -0
- package/src/plugins/nosana/stakingFetcher.js.map +1 -0
- package/src/plugins/nosana/structs.d.ts +15 -0
- package/src/plugins/nosana/structs.js +17 -0
- package/src/plugins/nosana/structs.js.map +1 -0
- package/src/plugins/raydium/constants.d.ts +3 -0
- package/src/plugins/raydium/constants.js +4 -1
- package/src/plugins/raydium/constants.js.map +1 -1
- package/src/plugins/raydium/filters.d.ts +1 -0
- package/src/plugins/raydium/filters.js +11 -1
- package/src/plugins/raydium/filters.js.map +1 -1
- package/src/plugins/raydium/helpers.d.ts +2 -0
- package/src/plugins/raydium/helpers.js +10 -1
- package/src/plugins/raydium/helpers.js.map +1 -1
- package/src/plugins/raydium/index.js +2 -1
- package/src/plugins/raydium/index.js.map +1 -1
- package/src/plugins/raydium/stakingFetcher.d.ts +3 -0
- package/src/plugins/raydium/stakingFetcher.js +50 -0
- package/src/plugins/raydium/stakingFetcher.js.map +1 -0
- package/src/plugins/raydium/structs/staking.d.ts +12 -0
- package/src/plugins/raydium/structs/staking.js +15 -0
- package/src/plugins/raydium/structs/staking.js.map +1 -0
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"stakingFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/raydium/stakingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAA6E;AAC7E,gEAAqC;AAGrC,2CAA+D;AAC/D,iDAAsD;AACtD,+CAAgD;AAChD,uCAA2C;AAC3C,kFAA+E;AAC/E,qGAA6E;AAE7E,MAAM,SAAS,GAAG,IAAI,sBAAS,CAAC,SAAA,EAAE,EAAI,uBAAW,CAAA,CAAC,CAAC;AAEnD,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,YAAY,GAAG,MAAM,IAAA,2CAAoB,EAC7C,MAAM,EACN,qBAAW,EACX,IAAA,wBAAc,EAAC,KAAK,CAAC,CACtB,CAAC;IAEF,IAAI,CAAC,YAAY,IAAI,YAAY,CAAC,cAAc,CAAC,MAAM,EAAE;QAAE,OAAO,EAAE,CAAC;IAErE,MAAM,UAAU,GAAG,MAAM,KAAK,CAAC,aAAa,CAAC,mBAAO,EAAE,0BAAS,CAAC,MAAM,CAAC,CAAC;IACxE,MAAM,KAAK,GAAG,IAAA,gCAAsB,EAClC,mBAAO,EACP,YAAY,CAAC,cAAc,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,QAAQ,EAAE,EAC3D,0BAAS,CAAC,MAAM,EAChB,UAAU,CACX,CAAC;IAEF,OAAO;QACL;YACE,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,UAAU,EAAV,sBAAU;YACV,IAAI,EAAE,qCAAoB,CAAC,QAAQ;YACnC,KAAK,EAAE,QAAQ;YACf,KAAK,EAAE,KAAK,CAAC,KAAK;YAClB,IAAI,EAAE;gBACJ,MAAM,EAAE,CAAC,KAAK,CAAC;aAChB;SACF;KACF,CAAC;AACJ,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,UAAU;IAC3B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { BeetStruct } from '@metaplex-foundation/beet';
|
2
|
+
import { PublicKey } from '@solana/web3.js';
|
3
|
+
import BigNumber from 'bignumber.js';
|
4
|
+
export type Stake = {
|
5
|
+
state: BigNumber;
|
6
|
+
poolId: PublicKey;
|
7
|
+
stakerOwner: PublicKey;
|
8
|
+
depositBalance: BigNumber;
|
9
|
+
rewardDebt: BigNumber;
|
10
|
+
rewardDebtB: BigNumber;
|
11
|
+
};
|
12
|
+
export declare const stakeStruct: BeetStruct<Stake, Partial<Stake>>;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.stakeStruct = 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.stakeStruct = new beet_1.BeetStruct([
|
8
|
+
['state', solana_1.u64],
|
9
|
+
['poolId', beet_solana_1.publicKey],
|
10
|
+
['stakerOwner', beet_solana_1.publicKey],
|
11
|
+
['depositBalance', solana_1.u64],
|
12
|
+
['rewardDebt', solana_1.u64],
|
13
|
+
['rewardDebtB', solana_1.u64],
|
14
|
+
], (args) => args);
|
15
|
+
//# sourceMappingURL=staking.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"staking.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/raydium/structs/staking.ts"],"names":[],"mappings":";;;AAAA,oDAAuD;AACvD,kEAA6D;AAG7D,kDAA4C;AAW/B,QAAA,WAAW,GAAG,IAAI,iBAAU,CACvC;IACE,CAAC,OAAO,EAAE,YAAG,CAAC;IACd,CAAC,QAAQ,EAAE,uBAAS,CAAC;IACrB,CAAC,aAAa,EAAE,uBAAS,CAAC;IAC1B,CAAC,gBAAgB,EAAE,YAAG,CAAC;IACvB,CAAC,YAAY,EAAE,YAAG,CAAC;IACnB,CAAC,aAAa,EAAE,YAAG,CAAC;CACrB,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAa,CACxB,CAAC"}
|