@bitgo/public-types 5.84.1 → 5.85.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.
@@ -60,6 +60,7 @@ export declare const AccelerationIntent: t.IntersectionC<[t.IntersectionC<[t.Typ
60
60
  }>]>, t.TypeC<{
61
61
  intentType: t.LiteralC<"acceleration">;
62
62
  txid: t.StringC;
63
- senderAddress: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
63
+ }>, t.PartialC<{
64
+ senderAddress: t.StringC;
64
65
  }>]>;
65
66
  export type AccelerationIntent = t.TypeOf<typeof AccelerationIntent>;
@@ -27,13 +27,14 @@ exports.AccelerationIntent = void 0;
27
27
  const t = __importStar(require("io-ts"));
28
28
  const baseIntent_1 = require("./baseIntent");
29
29
  const intentType_1 = require("./intentType");
30
- const utils_1 = require("../../../utils");
31
30
  exports.AccelerationIntent = t.intersection([
32
31
  baseIntent_1.BaseIntent,
33
32
  t.type({
34
33
  intentType: intentType_1.intentTypes.acceleration,
35
34
  txid: t.string,
36
- senderAddress: utils_1.optionalString,
35
+ }),
36
+ t.partial({
37
+ senderAddress: t.string,
37
38
  }),
38
39
  ]);
39
40
  //# sourceMappingURL=accelerationIntent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"accelerationIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/accelerationIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA0C;AAC1C,6CAA2C;AAC3C,0CAAgD;AAEnC,QAAA,kBAAkB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC/C,uBAAU;IACV,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,YAAY;QACpC,IAAI,EAAE,CAAC,CAAC,MAAM;QACd,aAAa,EAAE,sBAAc;KAC9B,CAAC;CACH,CAAC,CAAC"}
1
+ {"version":3,"file":"accelerationIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/accelerationIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA0C;AAC1C,6CAA2C;AAE9B,QAAA,kBAAkB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC/C,uBAAU;IACV,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,YAAY;QACpC,IAAI,EAAE,CAAC,CAAC,MAAM;KACf,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,aAAa,EAAE,CAAC,CAAC,MAAM;KACxB,CAAC;CACH,CAAC,CAAC"}
@@ -60,7 +60,8 @@ export declare const EthAccelerationIntent: t.IntersectionC<[t.IntersectionC<[t.
60
60
  }>]>, t.TypeC<{
61
61
  intentType: t.LiteralC<"acceleration">;
62
62
  txid: t.StringC;
63
- senderAddress: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
63
+ }>, t.PartialC<{
64
+ senderAddress: t.StringC;
64
65
  }>]>, t.IntersectionC<[t.PartialC<{
65
66
  nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
66
67
  }>, t.PartialC<{
@@ -59,7 +59,8 @@ export declare const EthFillNonceIntent: t.IntersectionC<[t.IntersectionC<[t.Int
59
59
  }>]>, t.TypeC<{
60
60
  intentType: t.LiteralC<"fillNonce">;
61
61
  nonce: t.UnionC<[t.StringC, t.NumberC]>;
62
- senderAddress: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
62
+ }>, t.PartialC<{
63
+ senderAddress: t.StringC;
63
64
  }>]>, t.PartialC<{
64
65
  feeOptions: t.UnionC<[t.Type<{
65
66
  unit?: "baseUnit" | "cpu" | "ram" | undefined;
@@ -59,6 +59,7 @@ export declare const FillNonceIntent: t.IntersectionC<[t.IntersectionC<[t.TypeC<
59
59
  }>]>, t.TypeC<{
60
60
  intentType: t.LiteralC<"fillNonce">;
61
61
  nonce: t.UnionC<[t.StringC, t.NumberC]>;
62
- senderAddress: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
62
+ }>, t.PartialC<{
63
+ senderAddress: t.StringC;
63
64
  }>]>;
64
65
  export type FillNonceIntent = t.TypeOf<typeof FillNonceIntent>;
@@ -27,13 +27,14 @@ exports.FillNonceIntent = void 0;
27
27
  const t = __importStar(require("io-ts"));
28
28
  const baseIntent_1 = require("./baseIntent");
29
29
  const intentType_1 = require("./intentType");
30
- const utils_1 = require("../../../utils");
31
30
  exports.FillNonceIntent = t.intersection([
32
31
  baseIntent_1.BaseIntentWithoutNonce,
33
32
  t.type({
34
33
  intentType: intentType_1.intentTypes.fillNonce,
35
34
  nonce: t.union([t.string, t.number]),
36
- senderAddress: utils_1.optionalString,
35
+ }),
36
+ t.partial({
37
+ senderAddress: t.string,
37
38
  }),
38
39
  ]);
39
40
  //# sourceMappingURL=fillNonceIntent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"fillNonceIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/fillNonceIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAAsD;AACtD,6CAA2C;AAC3C,0CAAgD;AAEnC,QAAA,eAAe,GAAG,CAAC,CAAC,YAAY,CAAC;IAC5C,mCAAsB;IACtB,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,SAAS;QACjC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC;QACpC,aAAa,EAAE,sBAAc;KAC9B,CAAC;CACH,CAAC,CAAC"}
1
+ {"version":3,"file":"fillNonceIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/fillNonceIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAAsD;AACtD,6CAA2C;AAE9B,QAAA,eAAe,GAAG,CAAC,CAAC,YAAY,CAAC;IAC5C,mCAAsB;IACtB,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,SAAS;QACjC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC;KACrC,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,aAAa,EAAE,CAAC,CAAC,MAAM;KACxB,CAAC;CACH,CAAC,CAAC"}
@@ -2583,7 +2583,8 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
2583
2583
  }>]>, t.TypeC<{
2584
2584
  intentType: t.LiteralC<"acceleration">;
2585
2585
  txid: t.StringC;
2586
- senderAddress: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
2586
+ }>, t.PartialC<{
2587
+ senderAddress: t.StringC;
2587
2588
  }>]>, t.IntersectionC<[t.PartialC<{
2588
2589
  nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
2589
2590
  }>, t.PartialC<{
@@ -2890,7 +2891,8 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
2890
2891
  }>]>, t.TypeC<{
2891
2892
  intentType: t.LiteralC<"fillNonce">;
2892
2893
  nonce: t.UnionC<[t.StringC, t.NumberC]>;
2893
- senderAddress: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
2894
+ }>, t.PartialC<{
2895
+ senderAddress: t.StringC;
2894
2896
  }>]>, t.PartialC<{
2895
2897
  feeOptions: t.UnionC<[t.Type<{
2896
2898
  unit?: "baseUnit" | "cpu" | "ram" | undefined;
@@ -2681,7 +2681,8 @@ export declare const TransactionRequestLite: t.IntersectionC<[t.IntersectionC<[t
2681
2681
  }>]>, t.TypeC<{
2682
2682
  intentType: t.LiteralC<"acceleration">;
2683
2683
  txid: t.StringC;
2684
- senderAddress: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
2684
+ }>, t.PartialC<{
2685
+ senderAddress: t.StringC;
2685
2686
  }>]>, t.IntersectionC<[t.PartialC<{
2686
2687
  nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
2687
2688
  }>, t.PartialC<{
@@ -2988,7 +2989,8 @@ export declare const TransactionRequestLite: t.IntersectionC<[t.IntersectionC<[t
2988
2989
  }>]>, t.TypeC<{
2989
2990
  intentType: t.LiteralC<"fillNonce">;
2990
2991
  nonce: t.UnionC<[t.StringC, t.NumberC]>;
2991
- senderAddress: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
2992
+ }>, t.PartialC<{
2993
+ senderAddress: t.StringC;
2992
2994
  }>]>, t.PartialC<{
2993
2995
  feeOptions: t.UnionC<[t.Type<{
2994
2996
  unit?: "baseUnit" | "cpu" | "ram" | undefined;
@@ -12671,7 +12673,8 @@ export declare const TransactionRequest: t.UnionC<[t.IntersectionC<[t.Intersecti
12671
12673
  }>]>, t.TypeC<{
12672
12674
  intentType: t.LiteralC<"acceleration">;
12673
12675
  txid: t.StringC;
12674
- senderAddress: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
12676
+ }>, t.PartialC<{
12677
+ senderAddress: t.StringC;
12675
12678
  }>]>, t.IntersectionC<[t.PartialC<{
12676
12679
  nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
12677
12680
  }>, t.PartialC<{
@@ -12978,7 +12981,8 @@ export declare const TransactionRequest: t.UnionC<[t.IntersectionC<[t.Intersecti
12978
12981
  }>]>, t.TypeC<{
12979
12982
  intentType: t.LiteralC<"fillNonce">;
12980
12983
  nonce: t.UnionC<[t.StringC, t.NumberC]>;
12981
- senderAddress: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
12984
+ }>, t.PartialC<{
12985
+ senderAddress: t.StringC;
12982
12986
  }>]>, t.PartialC<{
12983
12987
  feeOptions: t.UnionC<[t.Type<{
12984
12988
  unit?: "baseUnit" | "cpu" | "ram" | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitgo/public-types",
3
- "version": "5.84.1",
3
+ "version": "5.85.0",
4
4
  "description": "Collection of types exposed externally as part of the BitGo public API",
5
5
  "license": "UNLICENSED",
6
6
  "author": "",
@@ -1,14 +1,15 @@
1
1
  import * as t from "io-ts";
2
2
  import { BaseIntent } from "./baseIntent";
3
3
  import { intentTypes } from "./intentType";
4
- import { optionalString } from "../../../utils";
5
4
 
6
5
  export const AccelerationIntent = t.intersection([
7
6
  BaseIntent,
8
7
  t.type({
9
8
  intentType: intentTypes.acceleration,
10
9
  txid: t.string,
11
- senderAddress: optionalString,
10
+ }),
11
+ t.partial({
12
+ senderAddress: t.string,
12
13
  }),
13
14
  ]);
14
15
 
@@ -1,14 +1,15 @@
1
1
  import * as t from "io-ts";
2
2
  import { BaseIntentWithoutNonce } from "./baseIntent";
3
3
  import { intentTypes } from "./intentType";
4
- import { optionalString } from "../../../utils";
5
4
 
6
5
  export const FillNonceIntent = t.intersection([
7
6
  BaseIntentWithoutNonce,
8
7
  t.type({
9
8
  intentType: intentTypes.fillNonce,
10
9
  nonce: t.union([t.string, t.number]),
11
- senderAddress: optionalString,
10
+ }),
11
+ t.partial({
12
+ senderAddress: t.string,
12
13
  }),
13
14
  ]);
14
15