@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.
- package/dist/src/schema/transactionRequest/intents/intent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/tonDelegateIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/tonDelegateIntent.js +1 -0
- package/dist/src/schema/transactionRequest/intents/tonDelegateIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/tonUndelegateIntent.d.ts +5 -0
- package/dist/src/schema/transactionRequest/intents/tonUndelegateIntent.js +3 -0
- package/dist/src/schema/transactionRequest/intents/tonUndelegateIntent.js.map +1 -1
- package/package.json +1 -1
- package/src/schema/transactionRequest/intents/tonDelegateIntent.ts +1 -0
- package/src/schema/transactionRequest/intents/tonUndelegateIntent.ts +3 -0
@@ -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">;
|
@@ -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;
|
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;
|
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,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
|
|