@bitgo/public-types 4.22.1 → 4.24.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.
@@ -2836,6 +2836,7 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
2836
2836
  validatorAddress: t.StringC;
2837
2837
  stakingAddresses: t.UnionC<[t.Type<string[], string[], unknown>, t.UndefinedC]>;
2838
2838
  stakingAddress: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
2839
+ isMarinade: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
2839
2840
  }>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
2840
2841
  intentType: t.KeyofC<{
2841
2842
  payment: t.LiteralC<"payment">;
@@ -3014,6 +3015,7 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
3014
3015
  value: string;
3015
3016
  symbol: string;
3016
3017
  }, unknown>, t.UndefinedC]>;
3018
+ isMarinade: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
3017
3019
  }>]>, t.IntersectionC<[t.PartialC<{
3018
3020
  nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
3019
3021
  }>, t.TypeC<{
@@ -47,5 +47,6 @@ export declare const SolDelegateIntent: t.IntersectionC<[t.IntersectionC<[t.Type
47
47
  validatorAddress: t.StringC;
48
48
  stakingAddresses: t.UnionC<[t.Type<string[], string[], unknown>, t.UndefinedC]>;
49
49
  stakingAddress: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
50
+ isMarinade: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
50
51
  }>]>;
51
52
  export type SolDelegateIntent = t.TypeOf<typeof SolDelegateIntent>;
@@ -37,6 +37,7 @@ exports.SolDelegateIntent = t.intersection([
37
37
  validatorAddress: t.string,
38
38
  stakingAddresses: utils_1.optionalStringArray,
39
39
  stakingAddress: utils_1.optionalString,
40
+ isMarinade: (0, utils_1.Optional)(t.boolean),
40
41
  }),
41
42
  ]);
42
43
  //# sourceMappingURL=solDelegateIntent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"solDelegateIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/solDelegateIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,6CAA0C;AAC1C,6CAA2C;AAC3C,0CAAqE;AAKxD,QAAA,iBAAiB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC9C,uBAAU;IACV,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,QAAQ;QAChC,gBAAgB,EAAE,CAAC,CAAC,MAAM;QAC1B,gBAAgB,EAAE,2BAAmB;QACrC,cAAc,EAAE,sBAAc;KAC/B,CAAC;CACH,CAAC,CAAC"}
1
+ {"version":3,"file":"solDelegateIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/solDelegateIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,6CAA0C;AAC1C,6CAA2C;AAC3C,0CAA+E;AAKlE,QAAA,iBAAiB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC9C,uBAAU;IACV,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,QAAQ;QAChC,gBAAgB,EAAE,CAAC,CAAC,MAAM;QAC1B,gBAAgB,EAAE,2BAAmB;QACrC,cAAc,EAAE,sBAAc;QAC9B,UAAU,EAAE,IAAA,gBAAQ,EAAC,CAAC,CAAC,OAAO,CAAC;KAChC,CAAC;CACH,CAAC,CAAC"}
@@ -63,5 +63,6 @@ export declare const SolUnstakeIntent: t.IntersectionC<[t.IntersectionC<[t.Inter
63
63
  value: string;
64
64
  symbol: string;
65
65
  }, unknown>, t.UndefinedC]>;
66
+ isMarinade: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
66
67
  }>]>;
67
68
  export type SolUnstakeIntent = t.TypeOf<typeof SolUnstakeIntent>;
@@ -38,6 +38,7 @@ exports.SolUnstakeIntent = t.intersection([
38
38
  t.partial({
39
39
  amount: (0, utils_1.Optional)(amount_1.Amount),
40
40
  remainingStakingAmount: (0, utils_1.Optional)(amount_1.Amount),
41
+ isMarinade: (0, utils_1.Optional)(t.boolean),
41
42
  }),
42
43
  ]);
43
44
  //# sourceMappingURL=solUnstakeIntent.js.map
@@ -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;AAK7B,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;KACzC,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;AAK7B,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;KAChC,CAAC;CACH,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitgo/public-types",
3
- "version": "4.22.1",
3
+ "version": "4.24.0",
4
4
  "description": "Collection of types exposed externally as part of the BitGo public API",
5
5
  "license": "UNLICENSED",
6
6
  "author": "",
@@ -2,7 +2,7 @@ import * as t from "io-ts";
2
2
  import { SolBuildOptions } from "./solBuildOptions";
3
3
  import { BaseIntent } from "./baseIntent";
4
4
  import { intentTypes } from "./intentType";
5
- import { optionalString, optionalStringArray } from "../../../utils";
5
+ import { Optional, optionalString, optionalStringArray } from "../../../utils";
6
6
 
7
7
  /**
8
8
  * @title SOL Delegate Intent
@@ -15,6 +15,7 @@ export const SolDelegateIntent = t.intersection([
15
15
  validatorAddress: t.string,
16
16
  stakingAddresses: optionalStringArray,
17
17
  stakingAddress: optionalString,
18
+ isMarinade: Optional(t.boolean),
18
19
  }),
19
20
  ]);
20
21
 
@@ -16,6 +16,7 @@ export const SolUnstakeIntent = t.intersection([
16
16
  t.partial({
17
17
  amount: Optional(Amount),
18
18
  remainingStakingAmount: Optional(Amount),
19
+ isMarinade: Optional(t.boolean),
19
20
  }),
20
21
  ]);
21
22