@bitgo/public-types 6.25.0 → 6.26.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/cantonCommandIntent.d.ts +3 -1
- package/dist/src/schema/transactionRequest/intents/cantonCommandIntent.js +4 -1
- package/dist/src/schema/transactionRequest/intents/cantonCommandIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/intent.d.ts +3 -1
- package/dist/src/schema/transactionRequest/transactionRequest.d.ts +6 -2
- package/package.json +1 -1
- package/src/schema/transactionRequest/intents/cantonCommandIntent.ts +9 -1
|
@@ -81,8 +81,8 @@ export declare const CantonCommandIntent: t.IntersectionC<[t.IntersectionC<[t.Ty
|
|
|
81
81
|
ExerciseCommand: t.IntersectionC<[t.TypeC<{
|
|
82
82
|
templateId: t.StringC;
|
|
83
83
|
choice: t.StringC;
|
|
84
|
-
choiceArgument: t.RecordC<t.StringC, t.UnknownC>;
|
|
85
84
|
}>, t.PartialC<{
|
|
85
|
+
choiceArgument: t.RecordC<t.StringC, t.UnknownC>;
|
|
86
86
|
contractId: t.StringC;
|
|
87
87
|
}>]>;
|
|
88
88
|
}>]>;
|
|
@@ -98,5 +98,7 @@ export declare const CantonCommandIntent: t.IntersectionC<[t.IntersectionC<[t.Ty
|
|
|
98
98
|
resolveAll: t.BooleanC;
|
|
99
99
|
}>]>>;
|
|
100
100
|
}>]>;
|
|
101
|
+
}>, t.PartialC<{
|
|
102
|
+
token: t.StringC;
|
|
101
103
|
}>]>;
|
|
102
104
|
export type CantonCommandIntent = t.TypeOf<typeof CantonCommandIntent>;
|
|
@@ -38,9 +38,9 @@ const ExerciseCommand = t.type({
|
|
|
38
38
|
t.type({
|
|
39
39
|
templateId: t.string,
|
|
40
40
|
choice: t.string,
|
|
41
|
-
choiceArgument: t.record(t.string, t.unknown),
|
|
42
41
|
}),
|
|
43
42
|
t.partial({
|
|
43
|
+
choiceArgument: t.record(t.string, t.unknown),
|
|
44
44
|
contractId: t.string,
|
|
45
45
|
}),
|
|
46
46
|
]),
|
|
@@ -73,5 +73,8 @@ exports.CantonCommandIntent = t.intersection([
|
|
|
73
73
|
intentType: intentType_1.intentTypes.cantonCommand,
|
|
74
74
|
cantonCommandParams: CantonCommandParams,
|
|
75
75
|
}),
|
|
76
|
+
t.partial({
|
|
77
|
+
token: t.string,
|
|
78
|
+
}),
|
|
76
79
|
]);
|
|
77
80
|
//# sourceMappingURL=cantonCommandIntent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cantonCommandIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/cantonCommandIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA0C;AAC1C,6CAA2C;AAqB3C,MAAM,aAAa,GAAG,CAAC,CAAC,IAAI,CAAC;IAC3B,aAAa,EAAE,CAAC,CAAC,IAAI,CAAC;QACpB,UAAU,EAAE,CAAC,CAAC,MAAM;QACpB,eAAe,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC;KAC/C,CAAC;CACH,CAAC,CAAC;AAEH,MAAM,eAAe,GAAG,CAAC,CAAC,IAAI,CAAC;IAC7B,eAAe,EAAE,CAAC,CAAC,YAAY,CAAC;QAC9B,CAAC,CAAC,IAAI,CAAC;YACL,UAAU,EAAE,CAAC,CAAC,MAAM;YACpB,MAAM,EAAE,CAAC,CAAC,MAAM;
|
|
1
|
+
{"version":3,"file":"cantonCommandIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/cantonCommandIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA0C;AAC1C,6CAA2C;AAqB3C,MAAM,aAAa,GAAG,CAAC,CAAC,IAAI,CAAC;IAC3B,aAAa,EAAE,CAAC,CAAC,IA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ACF,CAAC,CAAC,OAAO,CAAC;QACR,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC;QACzB,gBAAgB,EAAE,CAAC,CAAC,KAAK,CAAC,mBAAmB,CAAC;KAC/C,CAAC;CACH,CAAC,CAAC;AAEU,QAAA,mBAAmB,GAAG,CAAC,CAAC,YAAY,CAAC;IAChD,uBAAU;IACV,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,aAAa;QACrC,mBAAmB,EAAE,mBAAmB;KACzC,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QAKR,KAAK,EAAE,CAAC,CAAC,MAAM;KAChB,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -1694,8 +1694,8 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
|
1694
1694
|
ExerciseCommand: t.IntersectionC<[t.TypeC<{
|
|
1695
1695
|
templateId: t.StringC;
|
|
1696
1696
|
choice: t.StringC;
|
|
1697
|
-
choiceArgument: t.RecordC<t.StringC, t.UnknownC>;
|
|
1698
1697
|
}>, t.PartialC<{
|
|
1698
|
+
choiceArgument: t.RecordC<t.StringC, t.UnknownC>;
|
|
1699
1699
|
contractId: t.StringC;
|
|
1700
1700
|
}>]>;
|
|
1701
1701
|
}>]>;
|
|
@@ -1711,6 +1711,8 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
|
1711
1711
|
resolveAll: t.BooleanC;
|
|
1712
1712
|
}>]>>;
|
|
1713
1713
|
}>]>;
|
|
1714
|
+
}>, t.PartialC<{
|
|
1715
|
+
token: t.StringC;
|
|
1714
1716
|
}>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
1715
1717
|
intentType: t.KeyofC<{
|
|
1716
1718
|
payment: t.LiteralC<"payment">;
|
|
@@ -1792,8 +1792,8 @@ export declare const TransactionRequestLite: t.IntersectionC<[t.IntersectionC<[t
|
|
|
1792
1792
|
ExerciseCommand: t.IntersectionC<[t.TypeC<{
|
|
1793
1793
|
templateId: t.StringC;
|
|
1794
1794
|
choice: t.StringC;
|
|
1795
|
-
choiceArgument: t.RecordC<t.StringC, t.UnknownC>;
|
|
1796
1795
|
}>, t.PartialC<{
|
|
1796
|
+
choiceArgument: t.RecordC<t.StringC, t.UnknownC>;
|
|
1797
1797
|
contractId: t.StringC;
|
|
1798
1798
|
}>]>;
|
|
1799
1799
|
}>]>;
|
|
@@ -1809,6 +1809,8 @@ export declare const TransactionRequestLite: t.IntersectionC<[t.IntersectionC<[t
|
|
|
1809
1809
|
resolveAll: t.BooleanC;
|
|
1810
1810
|
}>]>>;
|
|
1811
1811
|
}>]>;
|
|
1812
|
+
}>, t.PartialC<{
|
|
1813
|
+
token: t.StringC;
|
|
1812
1814
|
}>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
1813
1815
|
intentType: t.KeyofC<{
|
|
1814
1816
|
payment: t.LiteralC<"payment">;
|
|
@@ -15055,8 +15057,8 @@ export declare const TransactionRequest: t.UnionC<[t.IntersectionC<[t.Intersecti
|
|
|
15055
15057
|
ExerciseCommand: t.IntersectionC<[t.TypeC<{
|
|
15056
15058
|
templateId: t.StringC;
|
|
15057
15059
|
choice: t.StringC;
|
|
15058
|
-
choiceArgument: t.RecordC<t.StringC, t.UnknownC>;
|
|
15059
15060
|
}>, t.PartialC<{
|
|
15061
|
+
choiceArgument: t.RecordC<t.StringC, t.UnknownC>;
|
|
15060
15062
|
contractId: t.StringC;
|
|
15061
15063
|
}>]>;
|
|
15062
15064
|
}>]>;
|
|
@@ -15072,6 +15074,8 @@ export declare const TransactionRequest: t.UnionC<[t.IntersectionC<[t.Intersecti
|
|
|
15072
15074
|
resolveAll: t.BooleanC;
|
|
15073
15075
|
}>]>>;
|
|
15074
15076
|
}>]>;
|
|
15077
|
+
}>, t.PartialC<{
|
|
15078
|
+
token: t.StringC;
|
|
15075
15079
|
}>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
15076
15080
|
intentType: t.KeyofC<{
|
|
15077
15081
|
payment: t.LiteralC<"payment">;
|
package/package.json
CHANGED
|
@@ -33,9 +33,10 @@ const ExerciseCommand = t.type({
|
|
|
33
33
|
t.type({
|
|
34
34
|
templateId: t.string,
|
|
35
35
|
choice: t.string,
|
|
36
|
-
choiceArgument: t.record(t.string, t.unknown),
|
|
37
36
|
}),
|
|
38
37
|
t.partial({
|
|
38
|
+
// optional: no-arg choices omit it
|
|
39
|
+
choiceArgument: t.record(t.string, t.unknown),
|
|
39
40
|
// omit when contractId will be injected via resolveContracts at build time
|
|
40
41
|
contractId: t.string,
|
|
41
42
|
}),
|
|
@@ -75,6 +76,13 @@ export const CantonCommandIntent = t.intersection([
|
|
|
75
76
|
intentType: intentTypes.cantonCommand,
|
|
76
77
|
cantonCommandParams: CantonCommandParams,
|
|
77
78
|
}),
|
|
79
|
+
t.partial({
|
|
80
|
+
/**
|
|
81
|
+
* Optional registered coin/token identifier for the command target (e.g. "tcanton:stgusd1").
|
|
82
|
+
* This is not an auth/session token.
|
|
83
|
+
*/
|
|
84
|
+
token: t.string,
|
|
85
|
+
}),
|
|
78
86
|
]);
|
|
79
87
|
|
|
80
88
|
export type CantonCommandIntent = t.TypeOf<typeof CantonCommandIntent>;
|