@bitgo/public-types 5.1.0 → 5.1.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/intent.d.ts +3 -1
- package/dist/src/schema/transactionRequest/intents/substratePaymentIntent.d.ts +3 -1
- package/dist/src/schema/transactionRequest/intents/substratePaymentIntent.js +4 -0
- package/dist/src/schema/transactionRequest/intents/substratePaymentIntent.js.map +1 -1
- package/package.json +1 -1
- package/src/schema/transactionRequest/intents/substratePaymentIntent.ts +4 -0
@@ -3507,7 +3507,9 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
3507
3507
|
formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
|
3508
3508
|
type?: "max" | "base" | "tip" | undefined;
|
3509
3509
|
}, unknown>, t.UndefinedC]>;
|
3510
|
-
}>]
|
3510
|
+
}>]>, t.PartialC<{
|
3511
|
+
memo: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
3512
|
+
}>]>, t.IntersectionC<[t.IntersectionC<[t.PartialC<{
|
3511
3513
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
3512
3514
|
}>, t.TypeC<{
|
3513
3515
|
intentType: t.LiteralC<"consolidate">;
|
@@ -74,5 +74,7 @@ export declare const SubstratePaymentIntent: t.IntersectionC<[t.IntersectionC<[t
|
|
74
74
|
formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
|
75
75
|
type?: "max" | "base" | "tip" | undefined;
|
76
76
|
}, unknown>, t.UndefinedC]>;
|
77
|
-
}>]
|
77
|
+
}>]>, t.PartialC<{
|
78
|
+
memo: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
79
|
+
}>]>;
|
78
80
|
export type SubstratePaymentIntent = t.TypeOf<typeof SubstratePaymentIntent>;
|
@@ -27,8 +27,12 @@ exports.SubstratePaymentIntent = void 0;
|
|
27
27
|
const t = __importStar(require("io-ts"));
|
28
28
|
const substrateAccountBaseBuildOptions_1 = require("./substrateAccountBaseBuildOptions");
|
29
29
|
const paymentIntent_1 = require("./paymentIntent");
|
30
|
+
const utils_1 = require("../../../utils");
|
30
31
|
exports.SubstratePaymentIntent = t.intersection([
|
31
32
|
paymentIntent_1.PaymentIntent,
|
32
33
|
substrateAccountBaseBuildOptions_1.SubstrateAccountBaseBuildOptions,
|
34
|
+
t.partial({
|
35
|
+
memo: utils_1.optionalString,
|
36
|
+
}),
|
33
37
|
]);
|
34
38
|
//# sourceMappingURL=substratePaymentIntent.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"substratePaymentIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/substratePaymentIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,yFAAsF;AACtF,mDAAgD;AAKnC,QAAA,sBAAsB,GAAG,CAAC,CAAC,YAAY,CAAC;IACnD,6BAAa;IACb,mEAAgC;
|
1
|
+
{"version":3,"file":"substratePaymentIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/substratePaymentIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,yFAAsF;AACtF,mDAAgD;AAChD,0CAAgD;AAKnC,QAAA,sBAAsB,GAAG,CAAC,CAAC,YAAY,CAAC;IACnD,6BAAa;IACb,mEAAgC;IAChC,CAAC,CAAC,OAAO,CAAC;QACR,IAAI,EAAE,sBAAc;KACrB,CAAC;CACH,CAAC,CAAC"}
|
package/package.json
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
import * as t from "io-ts";
|
2
2
|
import { SubstrateAccountBaseBuildOptions } from "./substrateAccountBaseBuildOptions";
|
3
3
|
import { PaymentIntent } from "./paymentIntent";
|
4
|
+
import { optionalString } from "../../../utils";
|
4
5
|
|
5
6
|
/**
|
6
7
|
* @title Substrate Payment Intent
|
@@ -8,6 +9,9 @@ import { PaymentIntent } from "./paymentIntent";
|
|
8
9
|
export const SubstratePaymentIntent = t.intersection([
|
9
10
|
PaymentIntent,
|
10
11
|
SubstrateAccountBaseBuildOptions,
|
12
|
+
t.partial({
|
13
|
+
memo: optionalString,
|
14
|
+
}),
|
11
15
|
]);
|
12
16
|
|
13
17
|
export type SubstratePaymentIntent = t.TypeOf<typeof SubstratePaymentIntent>;
|