@triadxyz/poseidons-protocol 0.4.2 → 0.4.4

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.
@@ -1802,6 +1802,10 @@
1802
1802
  "name": "wheel_id",
1803
1803
  "type": "u8"
1804
1804
  },
1805
+ {
1806
+ "name": "spins",
1807
+ "type": "u64"
1808
+ },
1805
1809
  {
1806
1810
  "name": "timestamp",
1807
1811
  "type": "i64"
@@ -56,6 +56,7 @@ export type Wheel = {
56
56
  address: string;
57
57
  id: number;
58
58
  name: string;
59
+ cost: number;
59
60
  count: number;
60
61
  isActive: boolean;
61
62
  prizes: Prize[];
@@ -2093,6 +2093,10 @@ export type PoseidonsProtocol = {
2093
2093
  name: 'wheelId';
2094
2094
  type: 'u8';
2095
2095
  },
2096
+ {
2097
+ name: 'spins';
2098
+ type: 'u64';
2099
+ },
2096
2100
  {
2097
2101
  name: 'timestamp';
2098
2102
  type: 'i64';
@@ -77,6 +77,7 @@ const formatWheel = (account, address) => {
77
77
  id: account.id,
78
78
  name: account.name,
79
79
  count: account.count.toNumber(),
80
+ cost: account.cost.toNumber(),
80
81
  isActive: account.isActive,
81
82
  prizes: account.prizes.map((prize) => ({
82
83
  id: prize.id,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@triadxyz/poseidons-protocol",
3
- "version": "0.4.2",
3
+ "version": "0.4.4",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",