@bitgo/public-types 5.8.0 → 5.10.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">;
@@ -3726,6 +3728,7 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
3726
3728
  symbol: t.StringC;
3727
3729
  }>;
3728
3730
  isMarinade: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
3731
+ stakingType: t.UnionC<[t.LiteralC<"NATIVE">, t.LiteralC<"MARINADE">, t.LiteralC<"JITO">]>;
3729
3732
  }>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
3730
3733
  intentType: t.KeyofC<{
3731
3734
  payment: t.LiteralC<"payment">;
@@ -3794,6 +3797,7 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
3794
3797
  symbol: string;
3795
3798
  }, unknown>, t.UndefinedC]>;
3796
3799
  isMarinade: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
3800
+ stakingType: t.UnionC<[t.LiteralC<"NATIVE">, t.LiteralC<"MARINADE">, t.LiteralC<"JITO">]>;
3797
3801
  recipients: t.UnionC<[t.Type<({
3798
3802
  address: {
3799
3803
  address?: string | undefined;
@@ -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"}
@@ -56,5 +56,6 @@ export declare const SolStakeIntent: t.IntersectionC<[t.IntersectionC<[t.Interse
56
56
  symbol: t.StringC;
57
57
  }>;
58
58
  isMarinade: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
59
+ stakingType: t.UnionC<[t.LiteralC<"NATIVE">, t.LiteralC<"MARINADE">, t.LiteralC<"JITO">]>;
59
60
  }>]>;
60
61
  export type SolStakeIntent = t.TypeOf<typeof SolStakeIntent>;
@@ -36,6 +36,11 @@ exports.SolStakeIntent = t.intersection([
36
36
  validatorAddress: t.string,
37
37
  amount: amount_1.Amount,
38
38
  isMarinade: (0, utils_1.Optional)(t.boolean),
39
+ stakingType: t.union([
40
+ t.literal("NATIVE"),
41
+ t.literal("MARINADE"),
42
+ t.literal("JITO"),
43
+ ]),
39
44
  }),
40
45
  ]);
41
46
  //# sourceMappingURL=solStakeIntent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"solStakeIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/solStakeIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,+CAA4C;AAC5C,qCAAkC;AAClC,0CAA0C;AAK7B,QAAA,cAAc,GAAG,CAAC,CAAC,YAAY,CAAC;IAC3C,yBAAW;IACX,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QACL,gBAAgB,EAAE,CAAC,CAAC,MAAM;QAC1B,MAAM,EAAE,eAAM;QACd,UAAU,EAAE,IAAA,gBAAQ,EAAC,CAAC,CAAC,OAAO,CAAC;KAChC,CAAC;CACH,CAAC,CAAC"}
1
+ {"version":3,"file":"solStakeIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/solStakeIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,+CAA4C;AAC5C,qCAAkC;AAClC,0CAA0C;AAK7B,QAAA,cAAc,GAAG,CAAC,CAAC,YAAY,CAAC;IAC3C,yBAAW;IACX,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QACL,gBAAgB,EAAE,CAAC,CAAC,MAAM;QAC1B,MAAM,EAAE,eAAM;QAId,UAAU,EAAE,IAAA,gBAAQ,EAAC,CAAC,CAAC,OAAO,CAAC;QAC/B,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC;YACnB,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC;YACnB,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC;YACrB,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC;SAClB,CAAC;KACH,CAAC;CACH,CAAC,CAAC"}
@@ -67,6 +67,7 @@ export declare const SolUnstakeIntent: t.IntersectionC<[t.IntersectionC<[t.Inter
67
67
  symbol: string;
68
68
  }, unknown>, t.UndefinedC]>;
69
69
  isMarinade: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
70
+ stakingType: t.UnionC<[t.LiteralC<"NATIVE">, t.LiteralC<"MARINADE">, t.LiteralC<"JITO">]>;
70
71
  recipients: t.UnionC<[t.Type<({
71
72
  address: {
72
73
  address?: string | undefined;
@@ -40,6 +40,11 @@ exports.SolUnstakeIntent = t.intersection([
40
40
  amount: (0, utils_1.Optional)(amount_1.Amount),
41
41
  remainingStakingAmount: (0, utils_1.Optional)(amount_1.Amount),
42
42
  isMarinade: (0, utils_1.Optional)(t.boolean),
43
+ stakingType: t.union([
44
+ t.literal("NATIVE"),
45
+ t.literal("MARINADE"),
46
+ t.literal("JITO"),
47
+ ]),
43
48
  recipients: (0, utils_1.Optional)(t.array(recipientEntry_1.RecipientEntry)),
44
49
  }),
45
50
  ]);
@@ -1 +1 @@
1
- {"version":3,"file":"solUnstakeIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/solUnstakeIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,qCAAkC;AAClC,mDAAgD;AAChD,0CAA0C;AAC1C,qDAAkD;AAKrC,QAAA,gBAAgB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC7C,6BAAa;IACb,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QACL,cAAc,EAAE,CAAC,CAAC,MAAM;KACzB,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,MAAM,EAAE,IAAA,gBAAQ,EAAC,eAAM,CAAC;QACxB,sBAAsB,EAAE,IAAA,gBAAQ,EAAC,eAAM,CAAC;QACxC,UAAU,EAAE,IAAA,gBAAQ,EAAC,CAAC,CAAC,OAAO,CAAC;QAC/B,UAAU,EAAE,IAAA,gBAAQ,EAAC,CAAC,CAAC,KAAK,CAAC,+BAAc,CAAC,CAAC;KAC9C,CAAC;CACH,CAAC,CAAC"}
1
+ {"version":3,"file":"solUnstakeIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/solUnstakeIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,qCAAkC;AAClC,mDAAgD;AAChD,0CAA0C;AAC1C,qDAAkD;AAKrC,QAAA,gBAAgB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC7C,6BAAa;IACb,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QACL,cAAc,EAAE,CAAC,CAAC,MAAM;KACzB,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,MAAM,EAAE,IAAA,gBAAQ,EAAC,eAAM,CAAC;QACxB,sBAAsB,EAAE,IAAA,gBAAQ,EAAC,eAAM,CAAC;QAIxC,UAAU,EAAE,IAAA,gBAAQ,EAAC,CAAC,CAAC,OAAO,CAAC;QAC/B,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC;YACnB,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC;YACnB,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC;YACrB,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC;SAClB,CAAC;QACF,UAAU,EAAE,IAAA,gBAAQ,EAAC,CAAC,CAAC,KAAK,CAAC,+BAAc,CAAC,CAAC;KAC9C,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.10.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>;
@@ -13,7 +13,15 @@ export const SolStakeIntent = t.intersection([
13
13
  t.type({
14
14
  validatorAddress: t.string,
15
15
  amount: Amount,
16
+ /**
17
+ * @deprecated Use `stakingType` instead.
18
+ */
16
19
  isMarinade: Optional(t.boolean),
20
+ stakingType: t.union([
21
+ t.literal("NATIVE"),
22
+ t.literal("MARINADE"),
23
+ t.literal("JITO"),
24
+ ]),
17
25
  }),
18
26
  ]);
19
27
 
@@ -17,7 +17,15 @@ export const SolUnstakeIntent = t.intersection([
17
17
  t.partial({
18
18
  amount: Optional(Amount),
19
19
  remainingStakingAmount: Optional(Amount),
20
+ /**
21
+ * @deprecated Use `stakingType` instead.
22
+ */
20
23
  isMarinade: Optional(t.boolean),
24
+ stakingType: t.union([
25
+ t.literal("NATIVE"),
26
+ t.literal("MARINADE"),
27
+ t.literal("JITO"),
28
+ ]),
21
29
  recipients: Optional(t.array(RecipientEntry)),
22
30
  }),
23
31
  ]);