@triadxyz/triad-protocol 2.1.0-beta → 2.1.1-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/trade.d.ts CHANGED
@@ -104,7 +104,7 @@ export default class Trade {
104
104
  waiting: Record<string, never>;
105
105
  });
106
106
  price: BN;
107
- padding1: number[];
107
+ version: BN;
108
108
  totalShares: BN;
109
109
  orderType: ({
110
110
  limit?: never;
@@ -2481,10 +2481,14 @@
2481
2481
  "name": "payout_fee",
2482
2482
  "type": "u16"
2483
2483
  },
2484
+ {
2485
+ "name": "version",
2486
+ "type": "u64"
2487
+ },
2484
2488
  {
2485
2489
  "name": "padding",
2486
2490
  "type": {
2487
- "array": ["u8", 88]
2491
+ "array": ["u8", 80]
2488
2492
  }
2489
2493
  }
2490
2494
  ]
@@ -2551,10 +2555,8 @@
2551
2555
  "type": "u64"
2552
2556
  },
2553
2557
  {
2554
- "name": "padding_1",
2555
- "type": {
2556
- "array": ["u8", 8]
2557
- }
2558
+ "name": "version",
2559
+ "type": "u64"
2558
2560
  },
2559
2561
  {
2560
2562
  "name": "total_shares",
@@ -28,6 +28,7 @@ export type Market = {
28
28
  marketLiquidityAtStart: string;
29
29
  payoutFee: number;
30
30
  customer: string;
31
+ version: number;
31
32
  };
32
33
  export type UserTrade = {
33
34
  user: string;
@@ -3202,10 +3202,14 @@ export type TriadProtocol = {
3202
3202
  name: 'payoutFee';
3203
3203
  type: 'u16';
3204
3204
  },
3205
+ {
3206
+ name: 'version';
3207
+ type: 'u64';
3208
+ },
3205
3209
  {
3206
3210
  name: 'padding';
3207
3211
  type: {
3208
- array: ['u8', 88];
3212
+ array: ['u8', 80];
3209
3213
  };
3210
3214
  }
3211
3215
  ];
@@ -3272,10 +3276,8 @@ export type TriadProtocol = {
3272
3276
  type: 'u64';
3273
3277
  },
3274
3278
  {
3275
- name: 'padding1';
3276
- type: {
3277
- array: ['u8', 8];
3278
- };
3279
+ name: 'version';
3280
+ type: 'u64';
3279
3281
  },
3280
3282
  {
3281
3283
  name: 'totalShares';
@@ -83,7 +83,8 @@ const formatMarket = (account, address) => {
83
83
  ? account.marketLiquidityAtStart.toString()
84
84
  : '0',
85
85
  payoutFee: account.payoutFee,
86
- customer: account.customerId === 0 ? 'Triad' : account.customerId.toString()
86
+ customer: account.customerId === 0 ? 'Triad' : account.customerId.toString(),
87
+ version: account.version.toNumber()
87
88
  };
88
89
  };
89
90
  exports.formatMarket = formatMarket;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@triadxyz/triad-protocol",
3
- "version": "2.1.0-beta",
3
+ "version": "2.1.1-beta",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",