@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.
- package/dist/local-test.js +1 -1
- package/dist/types/trade.d.ts +1 -1
- package/dist/utils/helpers.js +1 -1
- package/package.json +1 -1
package/dist/local-test.js
CHANGED
|
@@ -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 {
|
package/dist/types/trade.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export type Market = {
|
|
|
21
21
|
isActive: boolean;
|
|
22
22
|
marketPrice: string;
|
|
23
23
|
isOfficial: boolean;
|
|
24
|
-
|
|
24
|
+
previousResolvedQuestion: ResolvedQuestion;
|
|
25
25
|
currentQuestionId: string;
|
|
26
26
|
currentQuestionStart: string;
|
|
27
27
|
currentQuestionEnd: string;
|
package/dist/utils/helpers.js
CHANGED
|
@@ -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
|
-
|
|
90
|
+
previousResolvedQuestion: accountToResolvedQuestion(account.previousResolvedQuestion),
|
|
91
91
|
currentQuestionId: account.currentQuestionId.toString(),
|
|
92
92
|
currentQuestionStart: account.currentQuestionStart.toString(),
|
|
93
93
|
currentQuestionEnd: account.currentQuestionEnd.toString(),
|