@bitgo/public-types 5.9.0 → 5.10.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/intent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/solStakeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/solStakeIntent.js +5 -0
- package/dist/src/schema/transactionRequest/intents/solStakeIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/solUnstakeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/solUnstakeIntent.js +5 -0
- package/dist/src/schema/transactionRequest/intents/solUnstakeIntent.js.map +1 -1
- package/package.json +1 -1
- package/src/schema/transactionRequest/intents/solStakeIntent.ts +8 -0
- package/src/schema/transactionRequest/intents/solUnstakeIntent.ts +8 -0
|
@@ -3728,6 +3728,7 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
|
3728
3728
|
symbol: t.StringC;
|
|
3729
3729
|
}>;
|
|
3730
3730
|
isMarinade: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
|
|
3731
|
+
stakingType: t.UnionC<[t.LiteralC<"NATIVE">, t.LiteralC<"MARINADE">, t.LiteralC<"JITO">]>;
|
|
3731
3732
|
}>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
3732
3733
|
intentType: t.KeyofC<{
|
|
3733
3734
|
payment: t.LiteralC<"payment">;
|
|
@@ -3796,6 +3797,7 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
|
3796
3797
|
symbol: string;
|
|
3797
3798
|
}, unknown>, t.UndefinedC]>;
|
|
3798
3799
|
isMarinade: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
|
|
3800
|
+
stakingType: t.UnionC<[t.LiteralC<"NATIVE">, t.LiteralC<"MARINADE">, t.LiteralC<"JITO">]>;
|
|
3799
3801
|
recipients: t.UnionC<[t.Type<({
|
|
3800
3802
|
address: {
|
|
3801
3803
|
address?: string | undefined;
|
|
@@ -56,5 +56,6 @@ export declare const SolStakeIntent: t.IntersectionC<[t.IntersectionC<[t.Interse
|
|
|
56
56
|
symbol: t.StringC;
|
|
57
57
|
}>;
|
|
58
58
|
isMarinade: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
|
|
59
|
+
stakingType: t.UnionC<[t.LiteralC<"NATIVE">, t.LiteralC<"MARINADE">, t.LiteralC<"JITO">]>;
|
|
59
60
|
}>]>;
|
|
60
61
|
export type SolStakeIntent = t.TypeOf<typeof SolStakeIntent>;
|
|
@@ -36,6 +36,11 @@ exports.SolStakeIntent = t.intersection([
|
|
|
36
36
|
validatorAddress: t.string,
|
|
37
37
|
amount: amount_1.Amount,
|
|
38
38
|
isMarinade: (0, utils_1.Optional)(t.boolean),
|
|
39
|
+
stakingType: t.union([
|
|
40
|
+
t.literal("NATIVE"),
|
|
41
|
+
t.literal("MARINADE"),
|
|
42
|
+
t.literal("JITO"),
|
|
43
|
+
]),
|
|
39
44
|
}),
|
|
40
45
|
]);
|
|
41
46
|
//# sourceMappingURL=solStakeIntent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"solStakeIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/solStakeIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,+CAA4C;AAC5C,qCAAkC;AAClC,0CAA0C;AAK7B,QAAA,cAAc,GAAG,CAAC,CAAC,YAAY,CAAC;IAC3C,yBAAW;IACX,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QACL,gBAAgB,EAAE,CAAC,CAAC,MAAM;QAC1B,MAAM,EAAE,eAAM;
|
|
1
|
+
{"version":3,"file":"solStakeIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/solStakeIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,+CAA4C;AAC5C,qCAAkC;AAClC,0CAA0C;AAK7B,QAAA,cAAc,GAAG,CAAC,CAAC,YAAY,CAAC;IAC3C,yBAAW;IACX,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QACL,gBAAgB,EAAE,CAAC,CAAC,MAAM;QAC1B,MAAM,EAAE,eAAM;QAId,UAAU,EAAE,IAAA,gBAAQ,EAAC,CAAC,CAAC,OAAO,CAAC;QAC/B,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC;YACnB,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC;YACnB,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC;YACrB,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC;SAClB,CAAC;KACH,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -67,6 +67,7 @@ export declare const SolUnstakeIntent: t.IntersectionC<[t.IntersectionC<[t.Inter
|
|
|
67
67
|
symbol: string;
|
|
68
68
|
}, unknown>, t.UndefinedC]>;
|
|
69
69
|
isMarinade: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
|
|
70
|
+
stakingType: t.UnionC<[t.LiteralC<"NATIVE">, t.LiteralC<"MARINADE">, t.LiteralC<"JITO">]>;
|
|
70
71
|
recipients: t.UnionC<[t.Type<({
|
|
71
72
|
address: {
|
|
72
73
|
address?: string | undefined;
|
|
@@ -40,6 +40,11 @@ exports.SolUnstakeIntent = t.intersection([
|
|
|
40
40
|
amount: (0, utils_1.Optional)(amount_1.Amount),
|
|
41
41
|
remainingStakingAmount: (0, utils_1.Optional)(amount_1.Amount),
|
|
42
42
|
isMarinade: (0, utils_1.Optional)(t.boolean),
|
|
43
|
+
stakingType: t.union([
|
|
44
|
+
t.literal("NATIVE"),
|
|
45
|
+
t.literal("MARINADE"),
|
|
46
|
+
t.literal("JITO"),
|
|
47
|
+
]),
|
|
43
48
|
recipients: (0, utils_1.Optional)(t.array(recipientEntry_1.RecipientEntry)),
|
|
44
49
|
}),
|
|
45
50
|
]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"solUnstakeIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/solUnstakeIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,qCAAkC;AAClC,mDAAgD;AAChD,0CAA0C;AAC1C,qDAAkD;AAKrC,QAAA,gBAAgB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC7C,6BAAa;IACb,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QACL,cAAc,EAAE,CAAC,CAAC,MAAM;KACzB,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,MAAM,EAAE,IAAA,gBAAQ,EAAC,eAAM,CAAC;QACxB,sBAAsB,EAAE,IAAA,gBAAQ,EAAC,eAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"solUnstakeIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/solUnstakeIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,qCAAkC;AAClC,mDAAgD;AAChD,0CAA0C;AAC1C,qDAAkD;AAKrC,QAAA,gBAAgB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC7C,6BAAa;IACb,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QACL,cAAc,EAAE,CAAC,CAAC,MAAM;KACzB,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,MAAM,EAAE,IAAA,gBAAQ,EAAC,eAAM,CAAC;QACxB,sBAAsB,EAAE,IAAA,gBAAQ,EAAC,eAAM,CAAC;QAIxC,UAAU,EAAE,IAAA,gBAAQ,EAAC,CAAC,CAAC,OAAO,CAAC;QAC/B,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC;YACnB,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC;YACnB,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC;YACrB,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC;SAClB,CAAC;QACF,UAAU,EAAE,IAAA,gBAAQ,EAAC,CAAC,CAAC,KAAK,CAAC,+BAAc,CAAC,CAAC;KAC9C,CAAC;CACH,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -13,7 +13,15 @@ export const SolStakeIntent = t.intersection([
|
|
|
13
13
|
t.type({
|
|
14
14
|
validatorAddress: t.string,
|
|
15
15
|
amount: Amount,
|
|
16
|
+
/**
|
|
17
|
+
* @deprecated Use `stakingType` instead.
|
|
18
|
+
*/
|
|
16
19
|
isMarinade: Optional(t.boolean),
|
|
20
|
+
stakingType: t.union([
|
|
21
|
+
t.literal("NATIVE"),
|
|
22
|
+
t.literal("MARINADE"),
|
|
23
|
+
t.literal("JITO"),
|
|
24
|
+
]),
|
|
17
25
|
}),
|
|
18
26
|
]);
|
|
19
27
|
|
|
@@ -17,7 +17,15 @@ export const SolUnstakeIntent = t.intersection([
|
|
|
17
17
|
t.partial({
|
|
18
18
|
amount: Optional(Amount),
|
|
19
19
|
remainingStakingAmount: Optional(Amount),
|
|
20
|
+
/**
|
|
21
|
+
* @deprecated Use `stakingType` instead.
|
|
22
|
+
*/
|
|
20
23
|
isMarinade: Optional(t.boolean),
|
|
24
|
+
stakingType: t.union([
|
|
25
|
+
t.literal("NATIVE"),
|
|
26
|
+
t.literal("MARINADE"),
|
|
27
|
+
t.literal("JITO"),
|
|
28
|
+
]),
|
|
21
29
|
recipients: Optional(t.array(RecipientEntry)),
|
|
22
30
|
}),
|
|
23
31
|
]);
|