@bitgo/public-types 5.57.0 → 5.58.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.
- package/dist/src/schema/transactionRequest/intents/intent.d.ts +5 -0
- package/dist/src/schema/transactionRequest/intents/vetValidatorRegistrationIntent.d.ts +5 -0
- package/dist/src/schema/transactionRequest/intents/vetValidatorRegistrationIntent.js +2 -0
- package/dist/src/schema/transactionRequest/intents/vetValidatorRegistrationIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/transactionRequest.d.ts +10 -0
- package/package.json +1 -1
- package/src/schema/transactionRequest/intents/vetValidatorRegistrationIntent.ts +3 -1
|
@@ -6578,6 +6578,11 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
|
6578
6578
|
}>]>, t.TypeC<{
|
|
6579
6579
|
intentType: t.LiteralC<"validatorRegistration">;
|
|
6580
6580
|
}>]>, t.TypeC<{
|
|
6581
|
+
amount: t.TypeC<{
|
|
6582
|
+
value: t.StringC;
|
|
6583
|
+
symbol: t.StringC;
|
|
6584
|
+
}>;
|
|
6585
|
+
}>, t.TypeC<{
|
|
6581
6586
|
validatorAddress: import("io-ts-types").NonEmptyStringC;
|
|
6582
6587
|
stakingPeriod: t.NumberC;
|
|
6583
6588
|
stakingContractAddress: import("io-ts-types").NonEmptyStringC;
|
|
@@ -53,6 +53,11 @@ export declare const VetValidatorRegistrationIntent: t.IntersectionC<[t.Intersec
|
|
|
53
53
|
}>]>, t.TypeC<{
|
|
54
54
|
intentType: t.LiteralC<"validatorRegistration">;
|
|
55
55
|
}>]>, t.TypeC<{
|
|
56
|
+
amount: t.TypeC<{
|
|
57
|
+
value: t.StringC;
|
|
58
|
+
symbol: t.StringC;
|
|
59
|
+
}>;
|
|
60
|
+
}>, t.TypeC<{
|
|
56
61
|
validatorAddress: import("io-ts-types").NonEmptyStringC;
|
|
57
62
|
stakingPeriod: t.NumberC;
|
|
58
63
|
stakingContractAddress: import("io-ts-types").NonEmptyStringC;
|
|
@@ -27,8 +27,10 @@ exports.VetValidatorRegistrationIntent = void 0;
|
|
|
27
27
|
const t = __importStar(require("io-ts"));
|
|
28
28
|
const validatorRegistrationIntent_1 = require("./validatorRegistrationIntent");
|
|
29
29
|
const io_ts_types_1 = require("io-ts-types");
|
|
30
|
+
const baseIntent_1 = require("./baseIntent");
|
|
30
31
|
exports.VetValidatorRegistrationIntent = t.intersection([
|
|
31
32
|
validatorRegistrationIntent_1.ValidatorRegistrationIntent,
|
|
33
|
+
baseIntent_1.BaseIntentWithAmount,
|
|
32
34
|
t.type({
|
|
33
35
|
validatorAddress: io_ts_types_1.NonEmptyString,
|
|
34
36
|
stakingPeriod: t.number,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vetValidatorRegistrationIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/vetValidatorRegistrationIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,+EAA4E;AAC5E,6CAA6C;
|
|
1
|
+
{"version":3,"file":"vetValidatorRegistrationIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/vetValidatorRegistrationIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,+EAA4E;AAC5E,6CAA6C;AAC7C,6CAAoD;AAWvC,QAAA,8BAA8B,GAAG,CAAC,CAAC,YAAY,CAAC;IAC3D,yDAA2B;IAC3B,iCAAoB;IACpB,CAAC,CAAC,IAAI,CAAC;QACL,gBAAgB,EAAE,4BAAc;QAChC,aAAa,EAAE,CAAC,CAAC,MAAM;QACvB,sBAAsB,EAAE,4BAAc;KACvC,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -6676,6 +6676,11 @@ export declare const TransactionRequestLite: t.IntersectionC<[t.IntersectionC<[t
|
|
|
6676
6676
|
}>]>, t.TypeC<{
|
|
6677
6677
|
intentType: t.LiteralC<"validatorRegistration">;
|
|
6678
6678
|
}>]>, t.TypeC<{
|
|
6679
|
+
amount: t.TypeC<{
|
|
6680
|
+
value: t.StringC;
|
|
6681
|
+
symbol: t.StringC;
|
|
6682
|
+
}>;
|
|
6683
|
+
}>, t.TypeC<{
|
|
6679
6684
|
validatorAddress: import("io-ts-types").NonEmptyStringC;
|
|
6680
6685
|
stakingPeriod: t.NumberC;
|
|
6681
6686
|
stakingContractAddress: import("io-ts-types").NonEmptyStringC;
|
|
@@ -14402,6 +14407,11 @@ export declare const TransactionRequest: t.UnionC<[t.IntersectionC<[t.Intersecti
|
|
|
14402
14407
|
}>]>, t.TypeC<{
|
|
14403
14408
|
intentType: t.LiteralC<"validatorRegistration">;
|
|
14404
14409
|
}>]>, t.TypeC<{
|
|
14410
|
+
amount: t.TypeC<{
|
|
14411
|
+
value: t.StringC;
|
|
14412
|
+
symbol: t.StringC;
|
|
14413
|
+
}>;
|
|
14414
|
+
}>, t.TypeC<{
|
|
14405
14415
|
validatorAddress: import("io-ts-types").NonEmptyStringC;
|
|
14406
14416
|
stakingPeriod: t.NumberC;
|
|
14407
14417
|
stakingContractAddress: import("io-ts-types").NonEmptyStringC;
|
package/package.json
CHANGED
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
import * as t from "io-ts";
|
|
2
2
|
import { ValidatorRegistrationIntent } from "./validatorRegistrationIntent";
|
|
3
3
|
import { NonEmptyString } from "io-ts-types";
|
|
4
|
+
import { BaseIntentWithAmount } from "./baseIntent";
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* @title VET Validator Registration Intent
|
|
7
8
|
*
|
|
8
9
|
* Intent for adding validator with stake amount from endorser
|
|
9
|
-
*
|
|
10
|
+
* @param {Amount} amount - The amount of VET to stake
|
|
10
11
|
* @param {string} validatorAddress - The address of the validator
|
|
11
12
|
* @param {number} stakingPeriod - The staking period which can be one of the three -- 60480 (7 days), 129600 (15 days) or 259200 (30 days).
|
|
12
13
|
* @param {string} stakingContractAddress - The address of the staking contract
|
|
13
14
|
*/
|
|
14
15
|
export const VetValidatorRegistrationIntent = t.intersection([
|
|
15
16
|
ValidatorRegistrationIntent,
|
|
17
|
+
BaseIntentWithAmount,
|
|
16
18
|
t.type({
|
|
17
19
|
validatorAddress: NonEmptyString,
|
|
18
20
|
stakingPeriod: t.number,
|