@bitgo/public-types 3.4.0 → 3.5.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.
@@ -3133,6 +3133,7 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
3133
3133
  value: t.StringC;
3134
3134
  symbol: t.StringC;
3135
3135
  }>;
3136
+ useSingleNominator: t.BooleanC;
3136
3137
  }>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
3137
3138
  intentType: t.KeyofC<{
3138
3139
  payment: t.LiteralC<"payment">;
@@ -3228,6 +3229,11 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
3228
3229
  }>]>, t.TypeC<{
3229
3230
  intentType: t.LiteralC<"delegate">;
3230
3231
  validatorAddress: t.StringC;
3232
+ useSingleNominator: t.BooleanC;
3233
+ singleNominatorAmount: t.TypeC<{
3234
+ value: t.StringC;
3235
+ symbol: t.StringC;
3236
+ }>;
3231
3237
  }>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
3232
3238
  intentType: t.KeyofC<{
3233
3239
  payment: t.LiteralC<"payment">;
@@ -42,5 +42,6 @@ export declare const TonDelegateIntent: t.IntersectionC<[t.IntersectionC<[t.Type
42
42
  value: t.StringC;
43
43
  symbol: t.StringC;
44
44
  }>;
45
+ useSingleNominator: t.BooleanC;
45
46
  }>]>;
46
47
  export type TonDelegateIntent = t.TypeOf<typeof TonDelegateIntent>;
@@ -34,6 +34,7 @@ exports.TonDelegateIntent = t.intersection([
34
34
  intentType: intentType_1.intentTypes.delegate,
35
35
  validatorAddress: t.string,
36
36
  amount: amount_1.Amount,
37
+ useSingleNominator: t.boolean,
37
38
  }),
38
39
  ]);
39
40
  //# sourceMappingURL=tonDelegateIntent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tonDelegateIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/tonDelegateIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA0C;AAC1C,qCAAkC;AAClC,6CAA2C;AAK9B,QAAA,iBAAiB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC9C,uBAAU;IACV,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,QAAQ;QAChC,gBAAgB,EAAE,CAAC,CAAC,MAAM;QAC1B,MAAM,EAAE,eAAM;KACf,CAAC;CACH,CAAC,CAAC"}
1
+ {"version":3,"file":"tonDelegateIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/tonDelegateIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA0C;AAC1C,qCAAkC;AAClC,6CAA2C;AAK9B,QAAA,iBAAiB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC9C,uBAAU;IACV,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,QAAQ;QAChC,gBAAgB,EAAE,CAAC,CAAC,MAAM;QAC1B,MAAM,EAAE,eAAM;QACd,kBAAkB,EAAE,CAAC,CAAC,OAAO;KAC9B,CAAC;CACH,CAAC,CAAC"}
@@ -38,5 +38,10 @@ export declare const TonUndelegateIntent: t.IntersectionC<[t.IntersectionC<[t.Ty
38
38
  }>]>, t.TypeC<{
39
39
  intentType: t.LiteralC<"delegate">;
40
40
  validatorAddress: t.StringC;
41
+ useSingleNominator: t.BooleanC;
42
+ singleNominatorAmount: t.TypeC<{
43
+ value: t.StringC;
44
+ symbol: t.StringC;
45
+ }>;
41
46
  }>]>;
42
47
  export type TonUndelegateIntent = t.TypeOf<typeof TonUndelegateIntent>;
@@ -27,11 +27,14 @@ exports.TonUndelegateIntent = 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 amount_1 = require("./amount");
30
31
  exports.TonUndelegateIntent = t.intersection([
31
32
  baseIntent_1.BaseIntent,
32
33
  t.type({
33
34
  intentType: intentType_1.intentTypes.delegate,
34
35
  validatorAddress: t.string,
36
+ useSingleNominator: t.boolean,
37
+ singleNominatorAmount: amount_1.Amount,
35
38
  }),
36
39
  ]);
37
40
  //# sourceMappingURL=tonUndelegateIntent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tonUndelegateIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/tonUndelegateIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA0C;AAC1C,6CAA2C;AAK9B,QAAA,mBAAmB,GAAG,CAAC,CAAC,YAAY,CAAC;IAChD,uBAAU;IACV,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,QAAQ;QAChC,gBAAgB,EAAE,CAAC,CAAC,MAAM;KAC3B,CAAC;CACH,CAAC,CAAC"}
1
+ {"version":3,"file":"tonUndelegateIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/tonUndelegateIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA0C;AAC1C,6CAA2C;AAC3C,qCAAkC;AAKrB,QAAA,mBAAmB,GAAG,CAAC,CAAC,YAAY,CAAC;IAChD,uBAAU;IACV,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,QAAQ;QAChC,gBAAgB,EAAE,CAAC,CAAC,MAAM;QAC1B,kBAAkB,EAAE,CAAC,CAAC,OAAO;QAC7B,qBAAqB,EAAE,eAAM;KAC9B,CAAC;CACH,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitgo/public-types",
3
- "version": "3.4.0",
3
+ "version": "3.5.0",
4
4
  "description": "Collection of types exposed externally as part of the BitGo public API",
5
5
  "license": "UNLICENSED",
6
6
  "author": "",
@@ -12,6 +12,7 @@ export const TonDelegateIntent = t.intersection([
12
12
  intentType: intentTypes.delegate,
13
13
  validatorAddress: t.string,
14
14
  amount: Amount,
15
+ useSingleNominator: t.boolean,
15
16
  }),
16
17
  ]);
17
18
 
@@ -1,6 +1,7 @@
1
1
  import * as t from "io-ts";
2
2
  import { BaseIntent } from "./baseIntent";
3
3
  import { intentTypes } from "./intentType";
4
+ import { Amount } from "./amount";
4
5
 
5
6
  /**
6
7
  * @title TON Undelegate Intent
@@ -10,6 +11,8 @@ export const TonUndelegateIntent = t.intersection([
10
11
  t.type({
11
12
  intentType: intentTypes.delegate,
12
13
  validatorAddress: t.string,
14
+ useSingleNominator: t.boolean,
15
+ singleNominatorAmount: Amount,
13
16
  }),
14
17
  ]);
15
18