@bitgo/public-types 5.7.0 → 5.9.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 +3 -0
- package/dist/src/schema/transactionRequest/intents/mmiSignMessageIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/polyxUnstakeIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/polyxUnstakeIntent.js +4 -0
- package/dist/src/schema/transactionRequest/intents/polyxUnstakeIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/signMessageIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/signMessageIntent.js +1 -0
- package/dist/src/schema/transactionRequest/intents/signMessageIntent.js.map +1 -1
- package/package.json +1 -1
- package/src/schema/transactionRequest/intents/polyxUnstakeIntent.ts +4 -0
- package/src/schema/transactionRequest/intents/signMessageIntent.ts +5 -0
@@ -2559,6 +2559,7 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
2559
2559
|
intentType: t.LiteralC<"signMessage">;
|
2560
2560
|
messageRaw: t.StringC;
|
2561
2561
|
messageEncoded: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
2562
|
+
messageStandardType: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
2562
2563
|
}>]>, t.TypeC<{
|
2563
2564
|
custodianMessageId: t.StringC;
|
2564
2565
|
}>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
@@ -3075,6 +3076,8 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
3075
3076
|
}>]>>;
|
3076
3077
|
}>]>, t.TypeC<{
|
3077
3078
|
intentType: t.LiteralC<"unstake">;
|
3079
|
+
}>, t.PartialC<{
|
3080
|
+
stopStaking: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
|
3078
3081
|
}>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
3079
3082
|
intentType: t.KeyofC<{
|
3080
3083
|
payment: t.LiteralC<"payment">;
|
@@ -45,6 +45,7 @@ export declare const MmiSignMessageIntent: t.IntersectionC<[t.IntersectionC<[t.I
|
|
45
45
|
intentType: t.LiteralC<"signMessage">;
|
46
46
|
messageRaw: t.StringC;
|
47
47
|
messageEncoded: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
48
|
+
messageStandardType: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
48
49
|
}>]>, t.TypeC<{
|
49
50
|
custodianMessageId: t.StringC;
|
50
51
|
}>]>;
|
@@ -78,5 +78,7 @@ export declare const PolyxUnstakeIntent: t.IntersectionC<[t.IntersectionC<[t.Int
|
|
78
78
|
}>]>>;
|
79
79
|
}>]>, t.TypeC<{
|
80
80
|
intentType: t.LiteralC<"unstake">;
|
81
|
+
}>, t.PartialC<{
|
82
|
+
stopStaking: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
|
81
83
|
}>]>;
|
82
84
|
export type PolyxUnstakeIntent = t.TypeOf<typeof PolyxUnstakeIntent>;
|
@@ -27,10 +27,14 @@ exports.PolyxUnstakeIntent = void 0;
|
|
27
27
|
const t = __importStar(require("io-ts"));
|
28
28
|
const polyxBaseIntent_1 = require("./polyxBaseIntent");
|
29
29
|
const intentType_1 = require("./intentType");
|
30
|
+
const utils_1 = require("../../../utils");
|
30
31
|
exports.PolyxUnstakeIntent = t.intersection([
|
31
32
|
polyxBaseIntent_1.PolyxBaseIntent,
|
32
33
|
t.type({
|
33
34
|
intentType: intentType_1.intentTypes.unstake,
|
34
35
|
}),
|
36
|
+
t.partial({
|
37
|
+
stopStaking: utils_1.optionalBoolean,
|
38
|
+
}),
|
35
39
|
]);
|
36
40
|
//# sourceMappingURL=polyxUnstakeIntent.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"polyxUnstakeIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/polyxUnstakeIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,6CAA2C;
|
1
|
+
{"version":3,"file":"polyxUnstakeIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/polyxUnstakeIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,6CAA2C;AAC3C,0CAAiD;AAKpC,QAAA,kBAAkB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC/C,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,OAAO;KAChC,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,WAAW,EAAE,uBAAe;KAC7B,CAAC;CACH,CAAC,CAAC"}
|
@@ -45,5 +45,6 @@ export declare const SignMessageIntent: t.IntersectionC<[t.IntersectionC<[t.Type
|
|
45
45
|
intentType: t.LiteralC<"signMessage">;
|
46
46
|
messageRaw: t.StringC;
|
47
47
|
messageEncoded: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
48
|
+
messageStandardType: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
48
49
|
}>]>;
|
49
50
|
export type SignMessageIntent = t.TypeOf<typeof SignMessageIntent>;
|
@@ -34,6 +34,7 @@ exports.SignMessageIntent = t.intersection([
|
|
34
34
|
intentType: intentType_1.intentTypes.signMessage,
|
35
35
|
messageRaw: t.string,
|
36
36
|
messageEncoded: utils_1.optionalString,
|
37
|
+
messageStandardType: utils_1.optionalString,
|
37
38
|
}),
|
38
39
|
]);
|
39
40
|
//# sourceMappingURL=signMessageIntent.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"signMessageIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/signMessageIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA0C;AAC1C,6CAA2C;AAC3C,0CAAgD;AAEnC,QAAA,iBAAiB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC9C,uBAAU;IACV,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,WAAW;QAKnC,UAAU,EAAE,CAAC,CAAC,MAAM;QAKpB,cAAc,EAAE,sBAAc;
|
1
|
+
{"version":3,"file":"signMessageIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/signMessageIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA0C;AAC1C,6CAA2C;AAC3C,0CAAgD;AAEnC,QAAA,iBAAiB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC9C,uBAAU;IACV,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,WAAW;QAKnC,UAAU,EAAE,CAAC,CAAC,MAAM;QAKpB,cAAc,EAAE,sBAAc;QAK9B,mBAAmB,EAAE,sBAAc;KACpC,CAAC;CACH,CAAC,CAAC"}
|
package/package.json
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
import * as t from "io-ts";
|
2
2
|
import { PolyxBaseIntent } from "./polyxBaseIntent";
|
3
3
|
import { intentTypes } from "./intentType";
|
4
|
+
import { optionalBoolean } from "../../../utils";
|
4
5
|
|
5
6
|
/**
|
6
7
|
* @title POLYX Unstake Intent
|
@@ -10,6 +11,9 @@ export const PolyxUnstakeIntent = t.intersection([
|
|
10
11
|
t.type({
|
11
12
|
intentType: intentTypes.unstake,
|
12
13
|
}),
|
14
|
+
t.partial({
|
15
|
+
stopStaking: optionalBoolean,
|
16
|
+
}),
|
13
17
|
]);
|
14
18
|
|
15
19
|
export type PolyxUnstakeIntent = t.TypeOf<typeof PolyxUnstakeIntent>;
|
@@ -17,6 +17,11 @@ export const SignMessageIntent = t.intersection([
|
|
17
17
|
* @example for EVM: \x19Ethereum Signed Message:\n12test message
|
18
18
|
*/
|
19
19
|
messageEncoded: optionalString,
|
20
|
+
/**
|
21
|
+
* The type of message standard, e.g. 'EIP191', 'EIP712', 'CIP8' etc.
|
22
|
+
* @example for EVM: EIP191
|
23
|
+
*/
|
24
|
+
messageStandardType: optionalString,
|
20
25
|
}),
|
21
26
|
]);
|
22
27
|
|