@bitgo/public-types 6.18.0 → 6.19.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/defiDepositIntent.d.ts +4 -1
- package/dist/src/schema/transactionRequest/intents/defiDepositIntent.js +5 -1
- package/dist/src/schema/transactionRequest/intents/defiDepositIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/intent.d.ts +4 -1
- package/dist/src/schema/transactionRequest/transactionRequest.d.ts +8 -2
- package/package.json +1 -1
- package/src/schema/transactionRequest/intents/defiDepositIntent.ts +7 -2
|
@@ -70,7 +70,10 @@ export declare const DefiDepositIntent: t.IntersectionC<[t.IntersectionC<[t.Type
|
|
|
70
70
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
71
71
|
}>]>, t.TypeC<{
|
|
72
72
|
intentType: t.LiteralC<"defi-deposit">;
|
|
73
|
-
|
|
73
|
+
vaultId: t.StringC;
|
|
74
74
|
amount: t.StringC;
|
|
75
|
+
operationId: t.StringC;
|
|
76
|
+
}>, t.PartialC<{
|
|
77
|
+
clientIdempotencyKey: t.StringC;
|
|
75
78
|
}>]>;
|
|
76
79
|
export type DefiDepositIntent = t.TypeOf<typeof DefiDepositIntent>;
|
|
@@ -30,8 +30,12 @@ exports.DefiDepositIntent = t.intersection([
|
|
|
30
30
|
baseIntent_1.BaseIntent,
|
|
31
31
|
t.type({
|
|
32
32
|
intentType: t.literal("defi-deposit"),
|
|
33
|
-
|
|
33
|
+
vaultId: t.string,
|
|
34
34
|
amount: t.string,
|
|
35
|
+
operationId: t.string,
|
|
36
|
+
}),
|
|
37
|
+
t.partial({
|
|
38
|
+
clientIdempotencyKey: t.string,
|
|
35
39
|
}),
|
|
36
40
|
]);
|
|
37
41
|
//# sourceMappingURL=defiDepositIntent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defiDepositIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/defiDepositIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA0C;AAE7B,QAAA,iBAAiB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC9C,uBAAU;IACV,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC;QACrC,
|
|
1
|
+
{"version":3,"file":"defiDepositIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/defiDepositIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA0C;AAE7B,QAAA,iBAAiB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC9C,uBAAU;IACV,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC;QACrC,OAAO,EAAE,CAAC,CAAC,MAAM;QAEjB,MAAM,EAAE,CAAC,CAAC,MAAM;QAEhB,WAAW,EAAE,CAAC,CAAC,MAAM;KACtB,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,oBAAoB,EAAE,CAAC,CAAC,MAAM;KAC/B,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -2782,8 +2782,11 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
|
2782
2782
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
2783
2783
|
}>]>, t.TypeC<{
|
|
2784
2784
|
intentType: t.LiteralC<"defi-deposit">;
|
|
2785
|
-
|
|
2785
|
+
vaultId: t.StringC;
|
|
2786
2786
|
amount: t.StringC;
|
|
2787
|
+
operationId: t.StringC;
|
|
2788
|
+
}>, t.PartialC<{
|
|
2789
|
+
clientIdempotencyKey: t.StringC;
|
|
2787
2790
|
}>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
2788
2791
|
intentType: t.KeyofC<{
|
|
2789
2792
|
payment: t.LiteralC<"payment">;
|
|
@@ -2880,8 +2880,11 @@ export declare const TransactionRequestLite: t.IntersectionC<[t.IntersectionC<[t
|
|
|
2880
2880
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
2881
2881
|
}>]>, t.TypeC<{
|
|
2882
2882
|
intentType: t.LiteralC<"defi-deposit">;
|
|
2883
|
-
|
|
2883
|
+
vaultId: t.StringC;
|
|
2884
2884
|
amount: t.StringC;
|
|
2885
|
+
operationId: t.StringC;
|
|
2886
|
+
}>, t.PartialC<{
|
|
2887
|
+
clientIdempotencyKey: t.StringC;
|
|
2885
2888
|
}>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
2886
2889
|
intentType: t.KeyofC<{
|
|
2887
2890
|
payment: t.LiteralC<"payment">;
|
|
@@ -16072,8 +16075,11 @@ export declare const TransactionRequest: t.UnionC<[t.IntersectionC<[t.Intersecti
|
|
|
16072
16075
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
16073
16076
|
}>]>, t.TypeC<{
|
|
16074
16077
|
intentType: t.LiteralC<"defi-deposit">;
|
|
16075
|
-
|
|
16078
|
+
vaultId: t.StringC;
|
|
16076
16079
|
amount: t.StringC;
|
|
16080
|
+
operationId: t.StringC;
|
|
16081
|
+
}>, t.PartialC<{
|
|
16082
|
+
clientIdempotencyKey: t.StringC;
|
|
16077
16083
|
}>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
16078
16084
|
intentType: t.KeyofC<{
|
|
16079
16085
|
payment: t.LiteralC<"payment">;
|
package/package.json
CHANGED
|
@@ -5,9 +5,14 @@ export const DefiDepositIntent = t.intersection([
|
|
|
5
5
|
BaseIntent,
|
|
6
6
|
t.type({
|
|
7
7
|
intentType: t.literal("defi-deposit"),
|
|
8
|
-
|
|
9
|
-
// Raw amount string in base units
|
|
8
|
+
vaultId: t.string,
|
|
9
|
+
// Raw amount string in base units of the underlying asset.
|
|
10
10
|
amount: t.string,
|
|
11
|
+
// UUID binding this deposit to an existing operation row.
|
|
12
|
+
operationId: t.string,
|
|
13
|
+
}),
|
|
14
|
+
t.partial({
|
|
15
|
+
clientIdempotencyKey: t.string,
|
|
11
16
|
}),
|
|
12
17
|
]);
|
|
13
18
|
|