@bitgo/public-types 5.87.0 → 5.88.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/cantonPaymentIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/cantonPaymentIntent.js +3 -0
- package/dist/src/schema/transactionRequest/intents/cantonPaymentIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/intent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/transactionRequest.d.ts +4 -0
- package/package.json +1 -1
- package/src/schema/transactionRequest/intents/cantonPaymentIntent.ts +4 -1
|
@@ -81,5 +81,7 @@ export declare const CantonPaymentIntent: t.IntersectionC<[t.IntersectionC<[t.In
|
|
|
81
81
|
isTestTransaction: t.BooleanC;
|
|
82
82
|
}>]>]>, t.PartialC<{
|
|
83
83
|
memo: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
84
|
+
}>, t.TypeC<{
|
|
85
|
+
unspents: t.UnionC<[t.Type<string[], string[], unknown>, t.UndefinedC]>;
|
|
84
86
|
}>]>;
|
|
85
87
|
export type CantonPaymentIntent = t.TypeOf<typeof CantonPaymentIntent>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cantonPaymentIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/cantonPaymentIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,mDAAgD;AAChD,
|
|
1
|
+
{"version":3,"file":"cantonPaymentIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/cantonPaymentIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,mDAAgD;AAChD,0CAAqE;AAKxD,QAAA,mBAAmB,GAAG,CAAC,CAAC,YAAY,CAAC;IAChD,6BAAa;IACb,CAAC,CAAC,OAAO,CAAC;QACR,IAAI,EAAE,sBAAc;KACrB,CAAC;IACF,CAAC,CAAC,IAAI,CAAC;QACL,QAAQ,EAAE,2BAAmB;KAC9B,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -1271,6 +1271,8 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
|
1271
1271
|
isTestTransaction: t.BooleanC;
|
|
1272
1272
|
}>]>]>, t.PartialC<{
|
|
1273
1273
|
memo: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
1274
|
+
}>, t.TypeC<{
|
|
1275
|
+
unspents: t.UnionC<[t.Type<string[], string[], unknown>, t.UndefinedC]>;
|
|
1274
1276
|
}>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
1275
1277
|
intentType: t.KeyofC<{
|
|
1276
1278
|
payment: t.LiteralC<"payment">;
|
|
@@ -1369,6 +1369,8 @@ export declare const TransactionRequestLite: t.IntersectionC<[t.IntersectionC<[t
|
|
|
1369
1369
|
isTestTransaction: t.BooleanC;
|
|
1370
1370
|
}>]>]>, t.PartialC<{
|
|
1371
1371
|
memo: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
1372
|
+
}>, t.TypeC<{
|
|
1373
|
+
unspents: t.UnionC<[t.Type<string[], string[], unknown>, t.UndefinedC]>;
|
|
1372
1374
|
}>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
1373
1375
|
intentType: t.KeyofC<{
|
|
1374
1376
|
payment: t.LiteralC<"payment">;
|
|
@@ -11445,6 +11447,8 @@ export declare const TransactionRequest: t.UnionC<[t.IntersectionC<[t.Intersecti
|
|
|
11445
11447
|
isTestTransaction: t.BooleanC;
|
|
11446
11448
|
}>]>]>, t.PartialC<{
|
|
11447
11449
|
memo: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
11450
|
+
}>, t.TypeC<{
|
|
11451
|
+
unspents: t.UnionC<[t.Type<string[], string[], unknown>, t.UndefinedC]>;
|
|
11448
11452
|
}>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
11449
11453
|
intentType: t.KeyofC<{
|
|
11450
11454
|
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 { optionalString } from "../../../utils";
|
|
3
|
+
import { optionalString, optionalStringArray } from "../../../utils";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* @title CANTON Payment Intent
|
|
@@ -10,6 +10,9 @@ export const CantonPaymentIntent = t.intersection([
|
|
|
10
10
|
t.partial({
|
|
11
11
|
memo: optionalString,
|
|
12
12
|
}),
|
|
13
|
+
t.type({
|
|
14
|
+
unspents: optionalStringArray,
|
|
15
|
+
}),
|
|
13
16
|
]);
|
|
14
17
|
|
|
15
18
|
export type CantonPaymentIntent = t.TypeOf<typeof CantonPaymentIntent>;
|