@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 HubMakeOutcomeBetOk {
81
+ type HubMakeOutcomeBetSuccess {
82
82
  bet: HubOutcomeBet!
83
83
  }
84
84
 
85
- union HubMakeOutcomeBetResult = HubMakeOutcomeBetOk | HubBadHashChainError
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: "HubMakeOutcomeBetOk",
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
- HubMakeOutcomeBetOk: {
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
- HubMakeOutcomeBetOk: {},
365
+ HubMakeOutcomeBetSuccess: {},
366
366
  HubBadHashChainError: {},
367
367
  });
368
368
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moneypot/hub",
3
- "version": "1.3.0-dev.12",
3
+ "version": "1.3.0-dev.13",
4
4
  "author": "moneypot.com",
5
5
  "homepage": "https://moneypot.com/hub",
6
6
  "keywords": [