@bitgo/public-types 4.21.0 → 4.22.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/icpSignatures.d.ts +8 -0
- package/dist/src/schema/transactionRequest/intents/icpSignatures.js +3 -3
- package/dist/src/schema/transactionRequest/intents/icpSignatures.js.map +1 -1
- package/package.json +1 -1
- package/src/schema/transactionRequest/intents/icpSignatures.ts +2 -1
@@ -1,4 +1,11 @@
|
|
1
1
|
import * as t from "io-ts";
|
2
|
+
export declare const SigningPayload: t.PartialC<{
|
3
|
+
account_identifier: t.PartialC<{
|
4
|
+
address: t.StringC;
|
5
|
+
}>;
|
6
|
+
hex_bytes: t.StringC;
|
7
|
+
signature_type: t.LiteralC<"ecdsa">;
|
8
|
+
}>;
|
2
9
|
export declare const Signatures: t.PartialC<{
|
3
10
|
signing_payload: t.PartialC<{
|
4
11
|
account_identifier: t.PartialC<{
|
@@ -15,3 +22,4 @@ export declare const Signatures: t.PartialC<{
|
|
15
22
|
hex_bytes: t.StringC;
|
16
23
|
}>;
|
17
24
|
export type Signatures = t.TypeOf<typeof Signatures>;
|
25
|
+
export type SigningPayload = t.TypeOf<typeof SigningPayload>;
|
@@ -23,12 +23,12 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
23
23
|
return result;
|
24
24
|
};
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
26
|
-
exports.Signatures = void 0;
|
26
|
+
exports.Signatures = exports.SigningPayload = void 0;
|
27
27
|
const t = __importStar(require("io-ts"));
|
28
28
|
const IcpAccountIdentifier = t.partial({
|
29
29
|
address: t.string,
|
30
30
|
});
|
31
|
-
|
31
|
+
exports.SigningPayload = t.partial({
|
32
32
|
account_identifier: IcpAccountIdentifier,
|
33
33
|
hex_bytes: t.string,
|
34
34
|
signature_type: t.literal("ecdsa"),
|
@@ -38,7 +38,7 @@ const IcpPublicKey = t.partial({
|
|
38
38
|
curve_type: t.string,
|
39
39
|
});
|
40
40
|
exports.Signatures = t.partial({
|
41
|
-
signing_payload: SigningPayload,
|
41
|
+
signing_payload: exports.SigningPayload,
|
42
42
|
signature_type: t.literal("ecdsa"),
|
43
43
|
public_key: IcpPublicKey,
|
44
44
|
hex_bytes: t.string,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"icpSignatures.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/icpSignatures.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAE3B,MAAM,oBAAoB,GAAG,CAAC,CAAC,OAAO,CAAC;IACrC,OAAO,EAAE,CAAC,CAAC,MAAM;CAClB,CAAC,CAAC;
|
1
|
+
{"version":3,"file":"icpSignatures.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/icpSignatures.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAE3B,MAAM,oBAAoB,GAAG,CAAC,CAAC,OAAO,CAAC;IACrC,OAAO,EAAE,CAAC,CAAC,MAAM;CAClB,CAAC,CAAC;AAEU,QAAA,cAAc,GAAG,CAAC,CAAC,OAAO,CAAC;IACtC,kBAAkB,EAAE,oBAAoB;IACxC,SAAS,EAAE,CAAC,CAAC,MAAM;IACnB,cAAc,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC;CACnC,CAAC,CAAC;AAEH,MAAM,YAAY,GAAG,CAAC,CAAC,OAAO,CAAC;IAC7B,SAAS,EAAE,CAAC,CAAC,MAAM;IACnB,UAAU,EAAE,CAAC,CAAC,MAAM;CACrB,CAAC,CAAC;AAEU,QAAA,UAAU,GAAG,CAAC,CAAC,OAAO,CAAC;IAClC,eAAe,EAAE,sBAAc;IAC/B,cAAc,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC;IAClC,UAAU,EAAE,YAAY;IACxB,SAAS,EAAE,CAAC,CAAC,MAAM;CACpB,CAAC,CAAC"}
|
package/package.json
CHANGED
@@ -4,7 +4,7 @@ const IcpAccountIdentifier = t.partial({
|
|
4
4
|
address: t.string,
|
5
5
|
});
|
6
6
|
|
7
|
-
const SigningPayload = t.partial({
|
7
|
+
export const SigningPayload = t.partial({
|
8
8
|
account_identifier: IcpAccountIdentifier,
|
9
9
|
hex_bytes: t.string,
|
10
10
|
signature_type: t.literal("ecdsa"),
|
@@ -23,3 +23,4 @@ export const Signatures = t.partial({
|
|
23
23
|
});
|
24
24
|
|
25
25
|
export type Signatures = t.TypeOf<typeof Signatures>;
|
26
|
+
export type SigningPayload = t.TypeOf<typeof SigningPayload>;
|