@moneypot/hub 1.3.0-dev.12 → 1.3.0-dev.13
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.
|
@@ -78,11 +78,11 @@ export function MakeOutcomeBetPlugin({ betConfigs }) {
|
|
|
78
78
|
metadata: JSON
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
-
type
|
|
81
|
+
type HubMakeOutcomeBetSuccess {
|
|
82
82
|
bet: HubOutcomeBet!
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
union HubMakeOutcomeBetResult =
|
|
85
|
+
union HubMakeOutcomeBetResult = HubMakeOutcomeBetSuccess | HubBadHashChainError
|
|
86
86
|
|
|
87
87
|
type HubMakeOutcomeBetPayload {
|
|
88
88
|
result: HubMakeOutcomeBetResult!
|
|
@@ -340,7 +340,7 @@ export function MakeOutcomeBetPlugin({ betConfigs }) {
|
|
|
340
340
|
})
|
|
341
341
|
.then(exactlyOneRow);
|
|
342
342
|
return {
|
|
343
|
-
__typename: "
|
|
343
|
+
__typename: "HubMakeOutcomeBetSuccess",
|
|
344
344
|
betId: bet.id,
|
|
345
345
|
};
|
|
346
346
|
});
|
|
@@ -350,7 +350,7 @@ export function MakeOutcomeBetPlugin({ betConfigs }) {
|
|
|
350
350
|
});
|
|
351
351
|
},
|
|
352
352
|
},
|
|
353
|
-
|
|
353
|
+
HubMakeOutcomeBetSuccess: {
|
|
354
354
|
__assertStep: ObjectStep,
|
|
355
355
|
bet($data) {
|
|
356
356
|
const $betId = access($data, "betId");
|
|
@@ -362,7 +362,7 @@ export function MakeOutcomeBetPlugin({ betConfigs }) {
|
|
|
362
362
|
result($data) {
|
|
363
363
|
const $result = $data.get("result");
|
|
364
364
|
return polymorphicBranch($result, {
|
|
365
|
-
|
|
365
|
+
HubMakeOutcomeBetSuccess: {},
|
|
366
366
|
HubBadHashChainError: {},
|
|
367
367
|
});
|
|
368
368
|
},
|