@triadxyz/triad-protocol 0.4.1-beta → 0.4.2-beta

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/dist/stake.js CHANGED
@@ -91,7 +91,7 @@ class Stake {
91
91
  */
92
92
  getStakeByWallet(wallet, stakeVault, collections, ranks) {
93
93
  return __awaiter(this, void 0, void 0, function* () {
94
- const response = yield this.getStakes(stakeVault);
94
+ const response = (yield this.getStakes(stakeVault)).filter((item) => item.authority === wallet.toBase58());
95
95
  const data = [];
96
96
  for (const stake of response) {
97
97
  const getRank = (0, getRarity_1.getRarityRank)(ranks, stake.mint, stake.name);
package/dist/test.js CHANGED
@@ -63,10 +63,11 @@ const getStakeVault = () => __awaiter(void 0, void 0, void 0, function* () {
63
63
  const response = yield triadProtocol.stake.getStakeVaultByName(constants_1.STAKE_SEASON);
64
64
  console.log(response);
65
65
  });
66
- const getStakeaa = () => __awaiter(void 0, void 0, void 0, function* () {
66
+ const getStakeByWallet = () => __awaiter(void 0, void 0, void 0, function* () {
67
67
  const response = yield triadProtocol.stake.getStakeByWallet(new web3_js_1.PublicKey('HjJQdfTHgC3EBX3471w4st8BXbBmtbaMyCAXNgcUb7dq'), constants_1.STAKE_SEASON, 1, rarity_json_1.default);
68
68
  console.log(response);
69
69
  });
70
+ getStakeByWallet();
70
71
  const updateBoost = () => __awaiter(void 0, void 0, void 0, function* () {
71
72
  const response = (yield axios_1.default.get('https://api.triadfi.co/boost'))
72
73
  .data;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@triadxyz/triad-protocol",
3
- "version": "0.4.1-beta",
3
+ "version": "0.4.2-beta",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",