@bitgo/public-types 4.22.0 → 4.23.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.
@@ -57,6 +57,6 @@ export declare const IcpPaymentIntent: t.IntersectionC<[t.IntersectionC<[t.Inter
57
57
  data: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
58
58
  }>]>>;
59
59
  }>]>, t.PartialC<{
60
- memo: t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>;
60
+ memo: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
61
61
  }>]>;
62
62
  export type IcpPaymentIntent = t.TypeOf<typeof IcpPaymentIntent>;
@@ -30,7 +30,7 @@ const utils_1 = require("../../../utils");
30
30
  exports.IcpPaymentIntent = t.intersection([
31
31
  paymentIntent_1.PaymentIntent,
32
32
  t.partial({
33
- memo: utils_1.optionalNumber,
33
+ memo: utils_1.optionalString,
34
34
  }),
35
35
  ]);
36
36
  //# sourceMappingURL=icpPaymentIntent.js.map
@@ -2151,7 +2151,7 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
2151
2151
  data: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
2152
2152
  }>]>>;
2153
2153
  }>]>, t.PartialC<{
2154
- memo: t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>;
2154
+ memo: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
2155
2155
  }>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
2156
2156
  intentType: t.KeyofC<{
2157
2157
  payment: t.LiteralC<"payment">;
@@ -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">;
@@ -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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitgo/public-types",
3
- "version": "4.22.0",
3
+ "version": "4.23.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,6 @@
1
1
  import * as t from "io-ts";
2
2
  import { PaymentIntent } from "./paymentIntent";
3
- import { optionalNumber } from "../../../utils";
3
+ import { optionalString } from "../../../utils";
4
4
 
5
5
  /**
6
6
  * @title ICP Payment Intent
@@ -8,7 +8,7 @@ import { optionalNumber } from "../../../utils";
8
8
  export const IcpPaymentIntent = t.intersection([
9
9
  PaymentIntent,
10
10
  t.partial({
11
- memo: optionalNumber,
11
+ memo: optionalString,
12
12
  }),
13
13
  ]);
14
14
 
@@ -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