@bitgo/public-types 4.28.0 → 4.28.1

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.
@@ -3018,7 +3018,6 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
3018
3018
  validatorAddress: t.StringC;
3019
3019
  stakingAddresses: t.UnionC<[t.Type<string[], string[], unknown>, t.UndefinedC]>;
3020
3020
  stakingAddress: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
3021
- isMarinade: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
3022
3021
  }>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
3023
3022
  intentType: t.KeyofC<{
3024
3023
  payment: t.LiteralC<"payment">;
@@ -3135,6 +3134,7 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
3135
3134
  value: t.StringC;
3136
3135
  symbol: t.StringC;
3137
3136
  }>;
3137
+ isMarinade: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
3138
3138
  }>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
3139
3139
  intentType: t.KeyofC<{
3140
3140
  payment: t.LiteralC<"payment">;
@@ -48,6 +48,5 @@ export declare const SolDelegateIntent: t.IntersectionC<[t.IntersectionC<[t.Type
48
48
  validatorAddress: t.StringC;
49
49
  stakingAddresses: t.UnionC<[t.Type<string[], string[], unknown>, t.UndefinedC]>;
50
50
  stakingAddress: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
51
- isMarinade: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
52
51
  }>]>;
53
52
  export type SolDelegateIntent = t.TypeOf<typeof SolDelegateIntent>;
@@ -37,7 +37,6 @@ 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),
41
40
  }),
42
41
  ]);
43
42
  //# 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,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"}
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"}
@@ -53,5 +53,6 @@ export declare const SolStakeIntent: t.IntersectionC<[t.IntersectionC<[t.Interse
53
53
  value: t.StringC;
54
54
  symbol: t.StringC;
55
55
  }>;
56
+ isMarinade: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
56
57
  }>]>;
57
58
  export type SolStakeIntent = t.TypeOf<typeof SolStakeIntent>;
@@ -28,12 +28,14 @@ const t = __importStar(require("io-ts"));
28
28
  const solBuildOptions_1 = require("./solBuildOptions");
29
29
  const stakeIntent_1 = require("./stakeIntent");
30
30
  const amount_1 = require("./amount");
31
+ const utils_1 = require("../../../utils");
31
32
  exports.SolStakeIntent = t.intersection([
32
33
  stakeIntent_1.StakeIntent,
33
34
  solBuildOptions_1.SolBuildOptions,
34
35
  t.type({
35
36
  validatorAddress: t.string,
36
37
  amount: amount_1.Amount,
38
+ isMarinade: (0, utils_1.Optional)(t.boolean),
37
39
  }),
38
40
  ]);
39
41
  //# 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;AAKrB,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;KACf,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;QACd,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.28.0",
3
+ "version": "4.28.1",
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 { Optional, optionalString, optionalStringArray } from "../../../utils";
5
+ import { optionalString, optionalStringArray } from "../../../utils";
6
6
 
7
7
  /**
8
8
  * @title SOL Delegate Intent
@@ -15,7 +15,6 @@ export const SolDelegateIntent = t.intersection([
15
15
  validatorAddress: t.string,
16
16
  stakingAddresses: optionalStringArray,
17
17
  stakingAddress: optionalString,
18
- isMarinade: Optional(t.boolean),
19
18
  }),
20
19
  ]);
21
20
 
@@ -2,6 +2,7 @@ import * as t from "io-ts";
2
2
  import { SolBuildOptions } from "./solBuildOptions";
3
3
  import { StakeIntent } from "./stakeIntent";
4
4
  import { Amount } from "./amount";
5
+ import { Optional } from "../../../utils";
5
6
 
6
7
  /**
7
8
  * @title SOL Stake Intent
@@ -12,6 +13,7 @@ export const SolStakeIntent = t.intersection([
12
13
  t.type({
13
14
  validatorAddress: t.string,
14
15
  amount: Amount,
16
+ isMarinade: Optional(t.boolean),
15
17
  }),
16
18
  ]);
17
19