@bitgo/public-types 5.8.0 → 5.9.0

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.
@@ -3076,6 +3076,8 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
3076
3076
  }>]>>;
3077
3077
  }>]>, t.TypeC<{
3078
3078
  intentType: t.LiteralC<"unstake">;
3079
+ }>, t.PartialC<{
3080
+ stopStaking: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
3079
3081
  }>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
3080
3082
  intentType: t.KeyofC<{
3081
3083
  payment: t.LiteralC<"payment">;
@@ -78,5 +78,7 @@ export declare const PolyxUnstakeIntent: t.IntersectionC<[t.IntersectionC<[t.Int
78
78
  }>]>>;
79
79
  }>]>, t.TypeC<{
80
80
  intentType: t.LiteralC<"unstake">;
81
+ }>, t.PartialC<{
82
+ stopStaking: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
81
83
  }>]>;
82
84
  export type PolyxUnstakeIntent = t.TypeOf<typeof PolyxUnstakeIntent>;
@@ -27,10 +27,14 @@ exports.PolyxUnstakeIntent = void 0;
27
27
  const t = __importStar(require("io-ts"));
28
28
  const polyxBaseIntent_1 = require("./polyxBaseIntent");
29
29
  const intentType_1 = require("./intentType");
30
+ const utils_1 = require("../../../utils");
30
31
  exports.PolyxUnstakeIntent = t.intersection([
31
32
  polyxBaseIntent_1.PolyxBaseIntent,
32
33
  t.type({
33
34
  intentType: intentType_1.intentTypes.unstake,
34
35
  }),
36
+ t.partial({
37
+ stopStaking: utils_1.optionalBoolean,
38
+ }),
35
39
  ]);
36
40
  //# sourceMappingURL=polyxUnstakeIntent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"polyxUnstakeIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/polyxUnstakeIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,6CAA2C;AAK9B,QAAA,kBAAkB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC/C,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,OAAO;KAChC,CAAC;CACH,CAAC,CAAC"}
1
+ {"version":3,"file":"polyxUnstakeIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/polyxUnstakeIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,6CAA2C;AAC3C,0CAAiD;AAKpC,QAAA,kBAAkB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC/C,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,OAAO;KAChC,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,WAAW,EAAE,uBAAe;KAC7B,CAAC;CACH,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitgo/public-types",
3
- "version": "5.8.0",
3
+ "version": "5.9.0",
4
4
  "description": "Collection of types exposed externally as part of the BitGo public API",
5
5
  "license": "UNLICENSED",
6
6
  "author": "",
@@ -1,6 +1,7 @@
1
1
  import * as t from "io-ts";
2
2
  import { PolyxBaseIntent } from "./polyxBaseIntent";
3
3
  import { intentTypes } from "./intentType";
4
+ import { optionalBoolean } from "../../../utils";
4
5
 
5
6
  /**
6
7
  * @title POLYX Unstake Intent
@@ -10,6 +11,9 @@ export const PolyxUnstakeIntent = t.intersection([
10
11
  t.type({
11
12
  intentType: intentTypes.unstake,
12
13
  }),
14
+ t.partial({
15
+ stopStaking: optionalBoolean,
16
+ }),
13
17
  ]);
14
18
 
15
19
  export type PolyxUnstakeIntent = t.TypeOf<typeof PolyxUnstakeIntent>;