@triadxyz/triad-protocol 1.6.6-beta → 1.6.7-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/wheel.d.ts CHANGED
@@ -51,7 +51,7 @@ export default class Wheel {
51
51
  * Get Spin Wheel
52
52
  *
53
53
  */
54
- getSpinWheel(amount: number): Promise<any[] | 999>;
54
+ getSpinWheel(amount: number): Promise<number[]>;
55
55
  /**
56
56
  * Swap Wheel Token
57
57
  * @param amount - Amount of tokens to buy
package/dist/wheel.js CHANGED
@@ -100,8 +100,8 @@ class Wheel {
100
100
  mint: constants_1.WHEEL_MINT
101
101
  })
102
102
  .instruction());
103
- return (0, sendVersionedTransaction_1.default)(this.provider, ixs, options, undefined, [], args.verifier);
104
103
  }
104
+ return (0, sendVersionedTransaction_1.default)(this.provider, ixs, options, undefined, [], args.verifier);
105
105
  });
106
106
  }
107
107
  /**
@@ -118,9 +118,9 @@ class Wheel {
118
118
  randomNumber <= p.rangeMax.toNumber() &&
119
119
  p.status.claimed);
120
120
  if (!prize) {
121
- return 999;
121
+ prizes.push(999);
122
122
  }
123
- prizes.push(prize.prize);
123
+ prizes.push(prize.prize.toNumber());
124
124
  }
125
125
  return prizes;
126
126
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@triadxyz/triad-protocol",
3
- "version": "1.6.6-beta",
3
+ "version": "1.6.7-beta",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",