@bitgo/public-types 4.21.0 → 4.22.1
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/icpPaymentIntent.d.ts +1 -1
- package/dist/src/schema/transactionRequest/intents/icpPaymentIntent.js +1 -1
- 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/dist/src/schema/transactionRequest/intents/intent.d.ts +1 -1
- package/package.json +1 -1
- package/src/schema/transactionRequest/intents/icpPaymentIntent.ts +2 -2
- package/src/schema/transactionRequest/intents/icpSignatures.ts +2 -1
@@ -57,6 +57,6 @@ export declare const IcpPaymentIntent: t.IntersectionC<[t.IntersectionC<[t.Inter
|
|
57
57
|
data: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
58
58
|
}>]>>;
|
59
59
|
}>]>, t.PartialC<{
|
60
|
-
memo: t.UnionC<[t.Type<
|
60
|
+
memo: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
61
61
|
}>]>;
|
62
62
|
export type IcpPaymentIntent = t.TypeOf<typeof IcpPaymentIntent>;
|
@@ -30,7 +30,7 @@ const utils_1 = require("../../../utils");
|
|
30
30
|
exports.IcpPaymentIntent = t.intersection([
|
31
31
|
paymentIntent_1.PaymentIntent,
|
32
32
|
t.partial({
|
33
|
-
memo: utils_1.
|
33
|
+
memo: utils_1.optionalString,
|
34
34
|
}),
|
35
35
|
]);
|
36
36
|
//# sourceMappingURL=icpPaymentIntent.js.map
|
@@ -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"}
|
@@ -2151,7 +2151,7 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
2151
2151
|
data: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
2152
2152
|
}>]>>;
|
2153
2153
|
}>]>, t.PartialC<{
|
2154
|
-
memo: t.UnionC<[t.Type<
|
2154
|
+
memo: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
2155
2155
|
}>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
2156
2156
|
intentType: t.KeyofC<{
|
2157
2157
|
payment: t.LiteralC<"payment">;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as t from "io-ts";
|
2
2
|
import { PaymentIntent } from "./paymentIntent";
|
3
|
-
import {
|
3
|
+
import { optionalString } from "../../../utils";
|
4
4
|
|
5
5
|
/**
|
6
6
|
* @title ICP Payment Intent
|
@@ -8,7 +8,7 @@ import { optionalNumber } from "../../../utils";
|
|
8
8
|
export const IcpPaymentIntent = t.intersection([
|
9
9
|
PaymentIntent,
|
10
10
|
t.partial({
|
11
|
-
memo:
|
11
|
+
memo: optionalString,
|
12
12
|
}),
|
13
13
|
]);
|
14
14
|
|
@@ -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>;
|