@sonarwatch/portfolio-plugins 0.14.165 → 0.14.166

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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [0.14.166](https://github.com/sonarwatch/portfolio/compare/plugins-0.14.165...plugins-0.14.166) (2025-04-01)
6
+
7
+
8
+
5
9
  ## [0.14.165](https://github.com/sonarwatch/portfolio/compare/plugins-0.14.164...plugins-0.14.165) (2025-04-01)
6
10
 
7
11
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sonarwatch/portfolio-plugins",
3
- "version": "0.14.165",
3
+ "version": "0.14.166",
4
4
  "type": "commonjs",
5
5
  "types": "./src/index.d.ts",
6
6
  "peerDependencies": {
@@ -8,5 +8,6 @@ export declare const platformImg = "https://sonarwatch.github.io/portfolio/asset
8
8
  export declare const streamflowProgramId: PublicKey;
9
9
  export declare const pid: PublicKey;
10
10
  export declare const merklePid: PublicKey;
11
+ export declare const stakePid: PublicKey;
11
12
  export declare const airdropApi = "https://api.streamflow.foundation/v2/api/airdrop-recipients/check-eligibility";
12
13
  export declare const airdropStatics: AirdropStatics;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.airdropStatics = exports.airdropApi = exports.merklePid = exports.pid = exports.streamflowProgramId = exports.platformImg = exports.platformId = exports.streamMint = void 0;
3
+ exports.airdropStatics = exports.airdropApi = exports.stakePid = exports.merklePid = exports.pid = exports.streamflowProgramId = exports.platformImg = exports.platformId = exports.streamMint = void 0;
4
4
  const web3_js_1 = require("@solana/web3.js");
5
5
  exports.streamMint = 'STREAMribRwybYpMmSYoCsQUdr6MZNXEqHgm7p1gu9M';
6
6
  exports.platformId = 'streamflow';
@@ -8,6 +8,7 @@ exports.platformImg = 'https://sonarwatch.github.io/portfolio/assets/images/plat
8
8
  exports.streamflowProgramId = new web3_js_1.PublicKey('strmRqUCoQUgGUan5YhzUZa6KqdzwX5L6FpUxfmKg5m');
9
9
  exports.pid = new web3_js_1.PublicKey('aSTRM2NKoKxNnkmLWk9sz3k74gKBk9t7bpPrTGxMszH');
10
10
  exports.merklePid = new web3_js_1.PublicKey('MErKy6nZVoVAkryxAejJz2juifQ4ArgLgHmaJCQkU7N');
11
+ exports.stakePid = new web3_js_1.PublicKey('STAKEvGqQTtzJZH6BWDcbpzXXn2BBerPAgQ3EGLN2GH');
11
12
  exports.airdropApi = 'https://api.streamflow.foundation/v2/api/airdrop-recipients/check-eligibility';
12
13
  exports.airdropStatics = {
13
14
  claimLink: 'https://streamflow.foundation/',
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/streamflow/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,6CAA6C,CAAC;AAC3D,QAAA,UAAU,GAAG,YAAY,CAAC;AAC1B,QAAA,WAAW,GACtB,gFAAgF,CAAC;AACtE,QAAA,mBAAmB,GAAG,IAAI,mBAAS,CAC9C,6CAA6C,CAC9C,CAAC;AACW,QAAA,GAAG,GAAG,IAAI,mBAAS,CAAC,6CAA6C,CAAC,CAAC;AACnE,QAAA,SAAS,GAAG,IAAI,mBAAS,CACpC,6CAA6C,CAC9C,CAAC;AACW,QAAA,UAAU,GACrB,+EAA+E,CAAC;AAErE,QAAA,cAAc,GAAmB;IAC5C,SAAS,EAAE,gCAAgC;IAC3C,WAAW,EAAE,gCAAgC;IAC7C,WAAW,EAAE,YAAY;IACzB,EAAE,EAAE,oBAAoB;IACxB,KAAK,EACH,gFAAgF;IAClF,QAAQ,EAAE,aAAa;IACvB,UAAU,EAAE,aAAa;CAC1B,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/streamflow/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,6CAA6C,CAAC;AAC3D,QAAA,UAAU,GAAG,YAAY,CAAC;AAC1B,QAAA,WAAW,GACtB,gFAAgF,CAAC;AACtE,QAAA,mBAAmB,GAAG,IAAI,mBAAS,CAC9C,6CAA6C,CAC9C,CAAC;AACW,QAAA,GAAG,GAAG,IAAI,mBAAS,CAAC,6CAA6C,CAAC,CAAC;AACnE,QAAA,SAAS,GAAG,IAAI,mBAAS,CACpC,6CAA6C,CAC9C,CAAC;AACW,QAAA,QAAQ,GAAG,IAAI,mBAAS,CACnC,6CAA6C,CAC9C,CAAC;AAEW,QAAA,UAAU,GACrB,+EAA+E,CAAC;AAErE,QAAA,cAAc,GAAmB;IAC5C,SAAS,EAAE,gCAAgC;IAC3C,WAAW,EAAE,gCAAgC;IAC7C,WAAW,EAAE,YAAY;IACzB,EAAE,EAAE,oBAAoB;IACxB,KAAK,EACH,gFAAgF;IAClF,QAAQ,EAAE,aAAa;IACvB,UAAU,EAAE,aAAa;CAC1B,CAAC"}
@@ -8,8 +8,14 @@ const vestingFetcher_1 = __importDefault(require("./vestingFetcher"));
8
8
  const airdropFetcher_1 = require("./airdropFetcher");
9
9
  const merkleDistirbutorsJob_1 = __importDefault(require("./merkleDistirbutorsJob"));
10
10
  const merkleFetcher_1 = __importDefault(require("./merkleFetcher"));
11
- exports.jobs = [merkleDistirbutorsJob_1.default];
12
- exports.fetchers = [vestingFetcher_1.default, merkleFetcher_1.default];
11
+ const stakePoolsJob_1 = __importDefault(require("./stakePoolsJob"));
12
+ const stakingFetcher_1 = __importDefault(require("./stakingFetcher"));
13
+ exports.jobs = [merkleDistirbutorsJob_1.default, stakePoolsJob_1.default];
14
+ exports.fetchers = [
15
+ vestingFetcher_1.default,
16
+ merkleFetcher_1.default,
17
+ stakingFetcher_1.default,
18
+ ];
13
19
  exports.airdropFetchers = [
14
20
  airdropFetcher_1.airdropFetcherAptos,
15
21
  airdropFetcher_1.airdropFetcherEthereum,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/streamflow/index.ts"],"names":[],"mappings":";;;;;;AAEA,sEAA8C;AAC9C,qDAK0B;AAE1B,oFAA4D;AAC5D,oEAA6C;AAEhC,QAAA,IAAI,GAAU,CAAC,+BAAqB,CAAC,CAAC;AACtC,QAAA,QAAQ,GAAc,CAAC,wBAAc,EAAE,uBAAc,CAAC,CAAC;AACvD,QAAA,eAAe,GAAqB;IAC/C,oCAAmB;IACnB,uCAAsB;IACtB,qCAAoB;IACpB,kCAAiB;CAClB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/streamflow/index.ts"],"names":[],"mappings":";;;;;;AAEA,sEAA8C;AAC9C,qDAK0B;AAE1B,oFAA4D;AAC5D,oEAA6C;AAC7C,oEAA2C;AAC3C,sEAA8C;AAEjC,QAAA,IAAI,GAAU,CAAC,+BAAqB,EAAE,uBAAY,CAAC,CAAC;AACpD,QAAA,QAAQ,GAAc;IACjC,wBAAc;IACd,uBAAc;IACd,wBAAc;CACf,CAAC;AACW,QAAA,eAAe,GAAqB;IAC/C,oCAAmB;IACnB,uCAAsB;IACtB,qCAAoB;IACpB,kCAAiB;CAClB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"merkleDistirbutorsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/streamflow/merkleDistirbutorsJob.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAEvD,2CAAoD;AACpD,iDAAsD;AAGtD,kEAA+D;AAC/D,uCAAoD;AAEpD,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,cAAc,GAAG,MAAM,qBAAS,CAAC,KAAK,CAC1C,MAAM,EACN,iCAAuB,EACvB,qBAAS,CACV;SACE,SAAS,CAAC,sBAAsB,EAAE,CAAC,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;SACtE,iBAAiB,CAAC,GAAG,CAAC;SACtB,GAAG,EAAE,CAAC;IAET,MAAM,aAAa,GAAwC,EAAE,CAAC;IAC9D,KAAK,MAAM,MAAM,IAAI,cAAc,EAAE,CAAC;QACpC,kBAAkB;QAClB,IAAI,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC;YAAE,SAAS;QAE9D,yBAAyB;QACzB,IAAI,MAAM,CAAC,kBAAkB,CAAC,SAAS,CAAC,MAAM,CAAC,mBAAmB,CAAC;YACjE,SAAS;QAEX,aAAa,CAAC,IAAI,CAAC;YACjB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE;YACjC,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE;SAC7B,CAAC,CAAC;IACL,CAAC;IAED,MAAM,KAAK,CAAC,OAAO,CAAC,SAAS,EAAE,aAAa,EAAE;QAC5C,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,UAAU;IAC3B,QAAQ;IACR,MAAM,EAAE,CAAC,QAAQ,CAAC;CACnB,CAAC;AACF,kBAAe,GAAG,CAAC"}
1
+ {"version":3,"file":"merkleDistirbutorsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/streamflow/merkleDistirbutorsJob.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAEvD,2CAAoD;AACpD,iDAAsD;AAGtD,kEAA+D;AAC/D,uCAAoD;AAGpD,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';
2
+ declare const job: Job;
3
+ export default job;
@@ -0,0 +1,45 @@
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 ParsedGpa_1 = require("../../utils/solana/beets/ParsedGpa");
16
+ const structs_1 = require("./structs");
17
+ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
18
+ const client = (0, clients_1.getClientSolana)();
19
+ const stakePoolAccounts = yield ParsedGpa_1.ParsedGpa.build(client, structs_1.stakePoolStruct, constants_1.stakePid)
20
+ .addFilter('accountDiscriminator', [121, 34, 206, 21, 79, 127, 255, 28])
21
+ .addDataSizeFilter(296)
22
+ .run();
23
+ const stakePools = [];
24
+ for (const stakePool of stakePoolAccounts) {
25
+ // Empty Stake Pool
26
+ if (stakePool.totalStake.isZero())
27
+ continue;
28
+ stakePools.push({
29
+ address: stakePool.pubkey.toString(),
30
+ mint: stakePool.mint.toString(),
31
+ stakeMint: stakePool.stakeMint.toString(),
32
+ });
33
+ }
34
+ yield cache.setItem('stakePools', stakePools, {
35
+ prefix: constants_1.platformId,
36
+ networkId: portfolio_core_1.NetworkId.solana,
37
+ });
38
+ });
39
+ const job = {
40
+ id: `${constants_1.platformId}-stakePools`,
41
+ executor,
42
+ labels: ['normal'],
43
+ };
44
+ exports.default = job;
45
+ //# sourceMappingURL=stakePoolsJob.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stakePoolsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/streamflow/stakePoolsJob.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAEvD,2CAAmD;AACnD,iDAAsD;AAGtD,kEAA+D;AAC/D,uCAA4C;AAG5C,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,iBAAiB,GAAG,MAAM,qBAAS,CAAC,KAAK,CAC7C,MAAM,EACN,yBAAe,EACf,oBAAQ,CACT;SACE,SAAS,CAAC,sBAAsB,EAAE,CAAC,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC;SACvE,iBAAiB,CAAC,GAAG,CAAC;SACtB,GAAG,EAAE,CAAC;IAET,MAAM,UAAU,GAAoB,EAAE,CAAC;IACvC,KAAK,MAAM,SAAS,IAAI,iBAAiB,EAAE,CAAC;QAC1C,mBAAmB;QACnB,IAAI,SAAS,CAAC,UAAU,CAAC,MAAM,EAAE;YAAE,SAAS;QAE5C,UAAU,CAAC,IAAI,CAAC;YACd,OAAO,EAAE,SAAS,CAAC,MAAM,CAAC,QAAQ,EAAE;YACpC,IAAI,EAAE,SAAS,CAAC,IAAI,CAAC,QAAQ,EAAE;YAC/B,SAAS,EAAE,SAAS,CAAC,SAAS,CAAC,QAAQ,EAAE;SAC1C,CAAC,CAAC;IACL,CAAC;IAED,MAAM,KAAK,CAAC,OAAO,CAAC,YAAY,EAAE,UAAU,EAAE;QAC5C,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,aAAa;IAC9B,QAAQ;IACR,MAAM,EAAE,CAAC,QAAQ,CAAC;CACnB,CAAC;AACF,kBAAe,GAAG,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Fetcher } from '../../Fetcher';
2
+ declare const fetcher: Fetcher;
3
+ export default fetcher;
@@ -0,0 +1,67 @@
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 web3_js_1 = require("@solana/web3.js");
14
+ const constants_1 = require("./constants");
15
+ const clients_1 = require("../../utils/clients");
16
+ const structs_1 = require("./structs");
17
+ const MemoizedCache_1 = require("../../utils/misc/MemoizedCache");
18
+ const ElementRegistry_1 = require("../../utils/elementbuilder/ElementRegistry");
19
+ const ParsedGpa_1 = require("../../utils/solana/beets/ParsedGpa");
20
+ const stakePoolsMemo = new MemoizedCache_1.MemoizedCache('stakePools', {
21
+ prefix: constants_1.platformId,
22
+ networkId: portfolio_core_1.NetworkId.solana,
23
+ });
24
+ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
25
+ const client = (0, clients_1.getClientSolana)();
26
+ const stakePools = yield stakePoolsMemo.getItem(cache);
27
+ if (stakePools.length === 0)
28
+ throw new Error('No stakePools found in cache');
29
+ const stakeEntryAccounts = yield ParsedGpa_1.ParsedGpa.build(client, structs_1.stakeEntryStruct, constants_1.stakePid)
30
+ .addFilter('accountDiscriminator', [187, 127, 9, 35, 155, 68, 86, 40])
31
+ .addFilter('authority', new web3_js_1.PublicKey(owner))
32
+ .addDataSizeFilter(224)
33
+ .run();
34
+ const registry = new ElementRegistry_1.ElementRegistry(portfolio_core_1.NetworkId.solana, constants_1.platformId);
35
+ for (let i = 0; i < stakeEntryAccounts.length; i += 1) {
36
+ const stakeEntry = stakeEntryAccounts[i];
37
+ const stakePool = stakePools.find((pool) => pool.address === stakeEntry.stakePool.toString());
38
+ if (!stakePool)
39
+ continue;
40
+ if (stakeEntry.amount.isZero())
41
+ continue;
42
+ const element = registry.addElementMultiple({
43
+ label: 'Airdrop',
44
+ link: `https://app.streamflow.finance/staking/solana/mainnet/${stakeEntry.stakePool.toString()}`,
45
+ ref: stakeEntry.pubkey.toString(),
46
+ sourceRefs: [{ address: stakePool.address, name: 'Pool' }],
47
+ });
48
+ element.addAsset({
49
+ address: stakePool.mint,
50
+ amount: stakeEntry.amount,
51
+ attributes: {
52
+ lockedUntil: stakeEntry.createdTs
53
+ .plus(stakeEntry.duration)
54
+ .times(1000)
55
+ .toNumber(),
56
+ },
57
+ });
58
+ }
59
+ return registry.getElements(cache);
60
+ });
61
+ const fetcher = {
62
+ id: `${constants_1.platformId}-staking`,
63
+ networkId: portfolio_core_1.NetworkId.solana,
64
+ executor,
65
+ };
66
+ exports.default = fetcher;
67
+ //# sourceMappingURL=stakingFetcher.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stakingFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/streamflow/stakingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AACvD,6CAA4C;AAG5C,2CAAmD;AACnD,iDAAsD;AACtD,uCAA6C;AAC7C,kEAA+D;AAE/D,gFAA6E;AAC7E,kEAA+D;AAE/D,MAAM,cAAc,GAAG,IAAI,6BAAa,CAAkB,YAAY,EAAE;IACtE,MAAM,EAAE,sBAAU;IAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;CA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,SAAS;YAChB,IAAI,EAAE,yDAAyD,UAAU,CAAC,SAAS,CAAC,QAAQ,EAAE,EAAE;YAChG,GAAG,EAAE,UAAU,CAAC,MAAM,CAAC,QAAQ,EAAE;YACjC,UAAU,EAAE,CAAC,EAAE,OAAO,EAAE,SAAS,CAAC,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;SAC3D,CAAC,CAAC;QACH,OAAO,CAAC,QAAQ,CAAC;YACf,OAAO,EAAE,SAAS,CAAC,IAAI;YACvB,MAAM,EAAE,UAAU,CAAC,MAAM;YACzB,UAAU,EAAE;gBACV,WAAW,EAAE,UAAU,CAAC,SAAS;qBAC9B,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC;qBACzB,KAAK,CAAC,IAAI,CAAC;qBACX,QAAQ,EAAE;aACd;SACF,CAAC,CAAC;IACL,CAAC;IAED,OAAO,QAAQ,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AACrC,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"}
@@ -122,3 +122,40 @@ export type ClaimStatus = {
122
122
  buffer2: number[];
123
123
  };
124
124
  export declare const claimStatusStruct: FixableBeetStruct<ClaimStatus, Partial<ClaimStatus>>;
125
+ export type StakePool = {
126
+ accountDiscriminator: number[];
127
+ bump: number;
128
+ nonce: number;
129
+ mint: PublicKey;
130
+ creator: PublicKey;
131
+ authority: PublicKey;
132
+ minWeight: BigNumber;
133
+ maxWeight: BigNumber;
134
+ minDuration: BigNumber;
135
+ maxDuration: BigNumber;
136
+ permissionless: boolean;
137
+ vault: PublicKey;
138
+ stakeMint: PublicKey;
139
+ totalStake: BigNumber;
140
+ totalEffectiveStake: BigNumber;
141
+ freezeStakeMint: boolean;
142
+ unstakePeriod: BigNumber;
143
+ buffer: number[];
144
+ };
145
+ export declare const stakePoolStruct: FixableBeetStruct<StakePool, Partial<StakePool>>;
146
+ export type StakeEntry = {
147
+ accountDiscriminator: number[];
148
+ nonce: number;
149
+ stakePool: PublicKey;
150
+ payer: PublicKey;
151
+ authority: PublicKey;
152
+ amount: BigNumber;
153
+ duration: BigNumber;
154
+ effectiveAmount: BigNumber;
155
+ createdTs: BigNumber;
156
+ closedTs: BigNumber;
157
+ priorTotalEffectiveStake: BigNumber;
158
+ unstakeTs: BigNumber;
159
+ buffer: number[];
160
+ };
161
+ export declare const stakeEntryStruct: FixableBeetStruct<StakeEntry, Partial<StakeEntry>>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.claimStatusStruct = exports.merkleDistributorStruct = exports.contractStruct = exports.OracleType = exports.vestingAccountStruct = void 0;
3
+ exports.stakeEntryStruct = exports.stakePoolStruct = exports.claimStatusStruct = exports.merkleDistributorStruct = exports.contractStruct = exports.OracleType = exports.vestingAccountStruct = 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");
@@ -121,4 +121,41 @@ exports.claimStatusStruct = new beet_1.FixableBeetStruct([
121
121
  ['closedTs', solana_1.u64],
122
122
  ['buffer2', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 22)], // Fixed-size array of 22 bytes
123
123
  ], (args) => args);
124
+ // Struct for StakePool
125
+ exports.stakePoolStruct = new beet_1.FixableBeetStruct([
126
+ ['accountDiscriminator', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 8)],
127
+ ['bump', beet_1.u8],
128
+ ['nonce', beet_1.u8],
129
+ ['mint', beet_solana_1.publicKey],
130
+ ['creator', beet_solana_1.publicKey],
131
+ ['authority', beet_solana_1.publicKey],
132
+ ['minWeight', solana_1.u64],
133
+ ['maxWeight', solana_1.u64],
134
+ ['minDuration', solana_1.u64],
135
+ ['maxDuration', solana_1.u64],
136
+ ['permissionless', beet_1.bool],
137
+ ['vault', beet_solana_1.publicKey],
138
+ ['stakeMint', beet_solana_1.publicKey],
139
+ ['totalStake', solana_1.u64],
140
+ ['totalEffectiveStake', solana_1.u64],
141
+ ['freezeStakeMint', beet_1.bool],
142
+ ['unstakePeriod', solana_1.u64],
143
+ ['buffer', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 55)], // Fixed-size array of 55 bytes
144
+ ], (args) => args);
145
+ // Struct for StakeEntry
146
+ exports.stakeEntryStruct = new beet_1.FixableBeetStruct([
147
+ ['accountDiscriminator', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 8)],
148
+ ['nonce', beet_1.u32],
149
+ ['stakePool', beet_solana_1.publicKey],
150
+ ['payer', beet_solana_1.publicKey],
151
+ ['authority', beet_solana_1.publicKey],
152
+ ['amount', solana_1.u64],
153
+ ['duration', solana_1.u64],
154
+ ['effectiveAmount', solana_1.u128],
155
+ ['createdTs', solana_1.u64],
156
+ ['closedTs', solana_1.u64],
157
+ ['priorTotalEffectiveStake', solana_1.u128],
158
+ ['unstakeTs', solana_1.u64],
159
+ ['buffer', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 40)], // Fixed-size array of 40 bytes
160
+ ], (args) => args);
124
161
  //# sourceMappingURL=structs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"structs.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/streamflow/structs.ts"],"names":[],"mappings":";;;AAEA,oDAOmC;AACnC,kEAA6D;AAC7D,+CAA+C;AA0ClC,QAAA,oBAAoB,GAAG,IAAI,wBAAiB,CACvD;IACE,CAAC,OAAO,EAAE,YAAG,CAAC;IACd,CAAC,SAAS,EAAE,SAAE,CAAC;IACf,CAAC,WAAW,EAAE,YAAG,CAAC;IAClB,CAAC,iBAAiB,EAAE,YAAG,CAAC;IACxB,CAAC,YAAY,EAAE,YAAG,CAAC;IACnB,CAAC,SAAS,EAAE,YAA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,4BAAqB,EAAC,SAAE,EAAE,EAAE,CAAC,CAAC,EAAE,+BAA+B;IAC3E,CAAC,SAAS,EAAE,IAAA,4BAAqB,EAAC,SAAE,EAAE,EAAE,CAAC,CAAC,EAAE,+BAA+B;CAC5E,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAyB,CACpC,CAAC;AAkBF,yBAAyB;AACZ,QAAA,iBAAiB,GAAG,IAAI,wBAAiB,CACpD;IACE,CAAC,sBAAsB,EAAE,IAAA,4BAAqB,EAAC,SAAE,EAAE,CAAC,CAAC,CAAC;IACtD,CAAC,UAAU,EAAE,uBAAS,CAAC;IACvB,CAAC,cAAc,EAAE,YAAG,CAAC;IACrB,CAAC,uBAAuB,EAAE,YAAG,CAAC;IAC9B,CAAC,gBAAgB,EAAE,YAAG,CAAC;IACvB,CAAC,aAAa,EAAE,YAAG,CAAC;IACpB,CAAC,qBAAqB,EAAE,YAAG,CAAC;IAC5B,CAAC,QAAQ,EAAE,WAAI,CAAC;IAChB,CAAC,aAAa,EAAE,uBAAS,CAAC;IAC1B,CAAC,aAAa,EAAE,UAAG,CAAC;IACpB,CAAC,UAAU,EAAE,YAAG,CAAC;IACjB,CAAC,SAAS,EAAE,IAAA,4BAAqB,EAAC,SAAE,EAAE,EAAE,CAAC,CAAC,EAAE,+BAA+B;CAC5E,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAmB,CAC9B,CAAC"}
1
+ {"version":3,"file":"structs.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/streamflow/structs.ts"],"names":[],"mappings":";;;AAEA,oDAOmC;AACnC,kEAA6D;AAC7D,+CAAqD;AA0CxC,QAAA,oBAAoB,GAAG,IAAI,wBAAiB,CACvD;IACE,CAAC,OAAO,EAAE,YAAG,CAAC;IACd,CAAC,SAAS,EAAE,SAAE,CAAC;IACf,CAAC,WAAW,EAAE,YAAG,CAAC;IAClB,CAAC,iBAAiB,EAAE,YAAG,CAAC;IACxB,CAAC,YAAY,EAAE,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AAC,IAAkB,CAC7B,CAAC"}
@@ -15,3 +15,6 @@ export type MerkleInfo = {
15
15
  address: string;
16
16
  mint: string;
17
17
  };
18
+ export type StakePoolInfo = MerkleInfo & {
19
+ stakeMint: string;
20
+ };
@@ -5,8 +5,7 @@ const constants_1 = require("../aurory/constants");
5
5
  const constants_2 = require("../hawksight/constants");
6
6
  const constants_3 = require("../whalesmarket/constants");
7
7
  const constants_4 = require("../allbridge/constants");
8
- const constants_5 = require("../streamflow/constants");
9
- const constants_6 = require("../sanctum/constants");
8
+ const constants_5 = require("../sanctum/constants");
10
9
  const stepfinancePlatformId = 'stepfinance';
11
10
  const ligmaPlatformId = 'ligma';
12
11
  exports.xStakingConfigs = [
@@ -58,21 +57,13 @@ exports.xStakingConfigs = [
58
57
  xDecimals: 6,
59
58
  platformId: ligmaPlatformId,
60
59
  },
61
- {
62
- mint: 'STREAMribRwybYpMmSYoCsQUdr6MZNXEqHgm7p1gu9M',
63
- decimals: 6,
64
- vault: '6deYtxLRSkmSgpjFWe99qeMNSgB5AqVLFtUwCXN4oRg4',
65
- xMint: '8oNKiUVaHssErFLe8dDbgB6pXmXUxAvr3YFtVemBXeQP',
66
- xDecimals: 6,
67
- platformId: constants_5.platformId,
68
- },
69
60
  {
70
61
  mint: 'CLoUDKc4Ane7HeQcPpE3YHnznRxhMimJ4MyaUqyHFzAu',
71
62
  decimals: 9,
72
63
  vault: '5jbzpJeGZFpPFrwXAdeWn25UJiParK8rayQYJY3r14cv',
73
64
  xMint: 'sc1dNAxRBj5CNWaGC26AR7PEW75R36Umzt1V8vuP8kZ',
74
65
  xDecimals: 9,
75
- platformId: constants_6.platformId,
66
+ platformId: constants_5.platformId,
76
67
  },
77
68
  ];
78
69
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/x-staking-solana/constants.ts"],"names":[],"mappings":";;;AAAA,mDAM6B;AAC7B,sDAA2E;AAC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AAK,EAAE,8CAA8C;QACrD,SAAS,EAAE,CAAC;QACZ,UAAU,EAAE,sBAAmB;KAChC;IACD;QACE,IAAI,EAAE,8CAA8C;QACpD,QAAQ,EAAE,CAAC;QACX,KAAK,EAAE,8CAA8C;QACrD,KAAK,EAAE,6CAA6C;QACpD,SAAS,EAAE,CAAC;QACZ,UAAU,EAAE,sBAAiB;KAC9B;CACF,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/x-staking-solana/constants.ts"],"names":[],"mappings":";;;AAAA,mDAM6B;AAC7B,sDAA2E;AAC3E,yDAAiF;AACjF,sDAA2E;AAC3E,oDAAuE;AAEvE,MAAM,qBAAqB,GAAG,aAAa,CAAC;AAC5C,MAAM,eAAe,GAAG,OAAO,CAAC;AAEnB,QAAA,eAAe,GAAoB;IAC9C;QACE,IAAI,EAAE,oBAAQ;QACd,QAAQ,EAAR,oBAAQ;QACR,KAAK,EAAE,uBAAW;QAClB,KAAK,EAAE,qBAAS;QAChB,SAAS,EAAE,CAAC;QACZ,UAAU,EAAE,sBAAgB;KAC7B;IACD;QACE,IAAI,EAAE,8CAA8C;QACpD,QAAQ,EAAE,CAAC;QACX,KAAK,EAAE,8CAA8C;QACrD,KAAK,EAAE,8CAA8C;QACrD,SAAS,EAAE,CAAC;QACZ,UAAU,EAAE,sBAAsB;KACnC;IACD;QACE,IAAI,EAAE,6CAA6C;QACnD,QAAQ,EAAE,CAAC;QACX,KAAK,EAAE,8CAA8C;QACrD,KAAK,EAAE,6CAA6C;QACpD,SAAS,EAAE,CAAC;QACZ,UAAU,EAAE,qBAAqB;KAClC;IACD;QACE,IAAI,EAAE,6CAA6C;QACnD,QAAQ,EAAE,CAAC;QACX,KAAK,EAAE,8CAA8C;QACrD,KAAK,EAAE,6CAA6C;QACpD,SAAS,EAAE,CAAC;QACZ,UAAU,EAAE,sBAAmB;KAChC;IACD;QACE,IAAI,EAAE,8CAA8C;QACpD,QAAQ,EAA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