@triadxyz/triad-protocol 0.7.2-beta.devnet → 0.7.3-beta.devnet

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.
@@ -168,6 +168,7 @@ const getMarkets = () => __awaiter(void 0, void 0, void 0, function* () {
168
168
  const markets = yield triadProtocol.trade.getMarkets();
169
169
  console.log(markets);
170
170
  });
171
+ getMarkets();
171
172
  const initializeAllMarkets = () => __awaiter(void 0, void 0, void 0, function* () {
172
173
  for (const market of markets) {
173
174
  try {
@@ -199,7 +200,6 @@ const openOrder = () => __awaiter(void 0, void 0, void 0, function* () {
199
200
  console.log(response);
200
201
  }
201
202
  });
202
- openOrder();
203
203
  const closeOrder = () => __awaiter(void 0, void 0, void 0, function* () {
204
204
  for (const order of yield getOrders()) {
205
205
  try {
@@ -21,7 +21,7 @@ export type Market = {
21
21
  isActive: boolean;
22
22
  marketPrice: string;
23
23
  isOfficial: boolean;
24
- resolvedQuestions: ResolvedQuestion[];
24
+ previousResolvedQuestion: ResolvedQuestion;
25
25
  currentQuestionId: string;
26
26
  currentQuestionStart: string;
27
27
  currentQuestionEnd: string;
@@ -87,7 +87,7 @@ const accountToMarket = (account, address) => {
87
87
  isActive: account.isActive,
88
88
  marketPrice: account.marketPrice.toString(),
89
89
  isOfficial: account.isOfficial,
90
- resolvedQuestions: account.resolvedQuestions.map(accountToResolvedQuestion),
90
+ previousResolvedQuestion: accountToResolvedQuestion(account.previousResolvedQuestion),
91
91
  currentQuestionId: account.currentQuestionId.toString(),
92
92
  currentQuestionStart: account.currentQuestionStart.toString(),
93
93
  currentQuestionEnd: account.currentQuestionEnd.toString(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@triadxyz/triad-protocol",
3
- "version": "0.7.2-beta.devnet",
3
+ "version": "0.7.3-beta.devnet",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",