@triadxyz/triad-protocol 1.4.9-beta → 1.5.0-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.
@@ -15,7 +15,7 @@ export type Market = {
15
15
  openedOrders: string;
16
16
  nextOrderId: string;
17
17
  feeBps: number;
18
- isActive: boolean;
18
+ isAllowedToPayout: boolean;
19
19
  nftHoldersFeeAvailable: string;
20
20
  nftHoldersFeeClaimed: string;
21
21
  marketFeeAvailable: string;
@@ -78,7 +78,7 @@ const formatMarket = (account, address) => {
78
78
  openedOrders: account.openedOrders.toString(),
79
79
  nextOrderId: account.nextOrderId.toString(),
80
80
  feeBps: account.feeBps,
81
- isActive: account.isActive,
81
+ isAllowedToPayout: account.isAllowedToPayout,
82
82
  marketStart: account.marketStart.toString(),
83
83
  marketEnd: account.marketEnd.toString(),
84
84
  question: Buffer.from(account.question).toString().replace(/\0+$/, ''),
@@ -111,7 +111,7 @@ const accountToMarketV1 = (account, address) => {
111
111
  openedOrders: account.openOrdersCount.toString(),
112
112
  nextOrderId: account.nextOrderId.toString(),
113
113
  feeBps: account.feeBps,
114
- isActive: account.isActive,
114
+ isAllowedToPayout: account.isActive,
115
115
  marketStart: account.currentQuestionStart.toString(),
116
116
  marketEnd: account.currentQuestionEnd.toString(),
117
117
  question: Buffer.from(account.currentQuestion)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@triadxyz/triad-protocol",
3
- "version": "1.4.9-beta",
3
+ "version": "1.5.0-beta",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",