@bitgo/public-types 4.27.0 → 4.28.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 +28 -1
- package/dist/src/schema/transactionRequest/intents/solDelegateIntent.d.ts +0 -1
- package/dist/src/schema/transactionRequest/intents/solDelegateIntent.js +0 -1
- package/dist/src/schema/transactionRequest/intents/solDelegateIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/solStakeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/solStakeIntent.js +2 -0
- package/dist/src/schema/transactionRequest/intents/solStakeIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/solUnstakeIntent.d.ts +27 -0
- package/dist/src/schema/transactionRequest/intents/solUnstakeIntent.js +2 -0
- package/dist/src/schema/transactionRequest/intents/solUnstakeIntent.js.map +1 -1
- package/package.json +1 -1
- package/src/schema/transactionRequest/intents/solDelegateIntent.ts +1 -2
- package/src/schema/transactionRequest/intents/solStakeIntent.ts +2 -0
- package/src/schema/transactionRequest/intents/solUnstakeIntent.ts +2 -0
@@ -3018,7 +3018,6 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
3018
3018
|
validatorAddress: t.StringC;
|
3019
3019
|
stakingAddresses: t.UnionC<[t.Type<string[], string[], unknown>, t.UndefinedC]>;
|
3020
3020
|
stakingAddress: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
3021
|
-
isMarinade: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
|
3022
3021
|
}>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
3023
3022
|
intentType: t.KeyofC<{
|
3024
3023
|
payment: t.LiteralC<"payment">;
|
@@ -3135,6 +3134,7 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
3135
3134
|
value: t.StringC;
|
3136
3135
|
symbol: t.StringC;
|
3137
3136
|
}>;
|
3137
|
+
isMarinade: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
|
3138
3138
|
}>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
3139
3139
|
intentType: t.KeyofC<{
|
3140
3140
|
payment: t.LiteralC<"payment">;
|
@@ -3201,6 +3201,33 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
3201
3201
|
symbol: string;
|
3202
3202
|
}, unknown>, t.UndefinedC]>;
|
3203
3203
|
isMarinade: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
|
3204
|
+
recipients: t.UnionC<[t.Type<({
|
3205
|
+
address: {
|
3206
|
+
address?: string | undefined;
|
3207
|
+
option?: {
|
3208
|
+
[x: string]: unknown;
|
3209
|
+
} | undefined;
|
3210
|
+
};
|
3211
|
+
amount: {
|
3212
|
+
value: string;
|
3213
|
+
symbol: string;
|
3214
|
+
};
|
3215
|
+
} & {
|
3216
|
+
data?: string | undefined;
|
3217
|
+
})[], ({
|
3218
|
+
address: {
|
3219
|
+
address?: string | undefined;
|
3220
|
+
option?: {
|
3221
|
+
[x: string]: unknown;
|
3222
|
+
} | undefined;
|
3223
|
+
};
|
3224
|
+
amount: {
|
3225
|
+
value: string;
|
3226
|
+
symbol: string;
|
3227
|
+
};
|
3228
|
+
} & {
|
3229
|
+
data?: string | undefined;
|
3230
|
+
})[], unknown>, t.UndefinedC]>;
|
3204
3231
|
}>]>, t.IntersectionC<[t.PartialC<{
|
3205
3232
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
3206
3233
|
}>, t.TypeC<{
|
@@ -48,6 +48,5 @@ export declare const SolDelegateIntent: t.IntersectionC<[t.IntersectionC<[t.Type
|
|
48
48
|
validatorAddress: t.StringC;
|
49
49
|
stakingAddresses: t.UnionC<[t.Type<string[], string[], unknown>, t.UndefinedC]>;
|
50
50
|
stakingAddress: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
51
|
-
isMarinade: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
|
52
51
|
}>]>;
|
53
52
|
export type SolDelegateIntent = t.TypeOf<typeof SolDelegateIntent>;
|
@@ -37,7 +37,6 @@ exports.SolDelegateIntent = t.intersection([
|
|
37
37
|
validatorAddress: t.string,
|
38
38
|
stakingAddresses: utils_1.optionalStringArray,
|
39
39
|
stakingAddress: utils_1.optionalString,
|
40
|
-
isMarinade: (0, utils_1.Optional)(t.boolean),
|
41
40
|
}),
|
42
41
|
]);
|
43
42
|
//# sourceMappingURL=solDelegateIntent.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"solDelegateIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/solDelegateIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,6CAA0C;AAC1C,6CAA2C;AAC3C,
|
1
|
+
{"version":3,"file":"solDelegateIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/solDelegateIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,6CAA0C;AAC1C,6CAA2C;AAC3C,0CAAqE;AAKxD,QAAA,iBAAiB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC9C,uBAAU;IACV,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,QAAQ;QAChC,gBAAgB,EAAE,CAAC,CAAC,MAAM;QAC1B,gBAAgB,EAAE,2BAAmB;QACrC,cAAc,EAAE,sBAAc;KAC/B,CAAC;CACH,CAAC,CAAC"}
|
@@ -53,5 +53,6 @@ export declare const SolStakeIntent: t.IntersectionC<[t.IntersectionC<[t.Interse
|
|
53
53
|
value: t.StringC;
|
54
54
|
symbol: t.StringC;
|
55
55
|
}>;
|
56
|
+
isMarinade: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
|
56
57
|
}>]>;
|
57
58
|
export type SolStakeIntent = t.TypeOf<typeof SolStakeIntent>;
|
@@ -28,12 +28,14 @@ const t = __importStar(require("io-ts"));
|
|
28
28
|
const solBuildOptions_1 = require("./solBuildOptions");
|
29
29
|
const stakeIntent_1 = require("./stakeIntent");
|
30
30
|
const amount_1 = require("./amount");
|
31
|
+
const utils_1 = require("../../../utils");
|
31
32
|
exports.SolStakeIntent = t.intersection([
|
32
33
|
stakeIntent_1.StakeIntent,
|
33
34
|
solBuildOptions_1.SolBuildOptions,
|
34
35
|
t.type({
|
35
36
|
validatorAddress: t.string,
|
36
37
|
amount: amount_1.Amount,
|
38
|
+
isMarinade: (0, utils_1.Optional)(t.boolean),
|
37
39
|
}),
|
38
40
|
]);
|
39
41
|
//# 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;
|
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;QACd,UAAU,EAAE,IAAA,gBAAQ,EAAC,CAAC,CAAC,OAAO,CAAC;KAChC,CAAC;CACH,CAAC,CAAC"}
|
@@ -65,5 +65,32 @@ export declare const SolUnstakeIntent: t.IntersectionC<[t.IntersectionC<[t.Inter
|
|
65
65
|
symbol: string;
|
66
66
|
}, unknown>, t.UndefinedC]>;
|
67
67
|
isMarinade: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
|
68
|
+
recipients: t.UnionC<[t.Type<({
|
69
|
+
address: {
|
70
|
+
address?: string | undefined;
|
71
|
+
option?: {
|
72
|
+
[x: string]: unknown;
|
73
|
+
} | undefined;
|
74
|
+
};
|
75
|
+
amount: {
|
76
|
+
value: string;
|
77
|
+
symbol: string;
|
78
|
+
};
|
79
|
+
} & {
|
80
|
+
data?: string | undefined;
|
81
|
+
})[], ({
|
82
|
+
address: {
|
83
|
+
address?: string | undefined;
|
84
|
+
option?: {
|
85
|
+
[x: string]: unknown;
|
86
|
+
} | undefined;
|
87
|
+
};
|
88
|
+
amount: {
|
89
|
+
value: string;
|
90
|
+
symbol: string;
|
91
|
+
};
|
92
|
+
} & {
|
93
|
+
data?: string | undefined;
|
94
|
+
})[], unknown>, t.UndefinedC]>;
|
68
95
|
}>]>;
|
69
96
|
export type SolUnstakeIntent = t.TypeOf<typeof SolUnstakeIntent>;
|
@@ -29,6 +29,7 @@ const solBuildOptions_1 = require("./solBuildOptions");
|
|
29
29
|
const amount_1 = require("./amount");
|
30
30
|
const unstakeIntent_1 = require("./unstakeIntent");
|
31
31
|
const utils_1 = require("../../../utils");
|
32
|
+
const recipientEntry_1 = require("./recipientEntry");
|
32
33
|
exports.SolUnstakeIntent = t.intersection([
|
33
34
|
unstakeIntent_1.UnstakeIntent,
|
34
35
|
solBuildOptions_1.SolBuildOptions,
|
@@ -39,6 +40,7 @@ exports.SolUnstakeIntent = t.intersection([
|
|
39
40
|
amount: (0, utils_1.Optional)(amount_1.Amount),
|
40
41
|
remainingStakingAmount: (0, utils_1.Optional)(amount_1.Amount),
|
41
42
|
isMarinade: (0, utils_1.Optional)(t.boolean),
|
43
|
+
recipients: (0, utils_1.Optional)(t.array(recipientEntry_1.RecipientEntry)),
|
42
44
|
}),
|
43
45
|
]);
|
44
46
|
//# sourceMappingURL=solUnstakeIntent.js.map
|
@@ -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;
|
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;QACxC,UAAU,EAAE,IAAA,gBAAQ,EAAC,CAAC,CAAC,OAAO,CAAC;QAC/B,UAAU,EAAE,IAAA,gBAAQ,EAAC,CAAC,CAAC,KAAK,CAAC,+BAAc,CAAC,CAAC;KAC9C,CAAC;CACH,CAAC,CAAC"}
|
package/package.json
CHANGED
@@ -2,7 +2,7 @@ import * as t from "io-ts";
|
|
2
2
|
import { SolBuildOptions } from "./solBuildOptions";
|
3
3
|
import { BaseIntent } from "./baseIntent";
|
4
4
|
import { intentTypes } from "./intentType";
|
5
|
-
import {
|
5
|
+
import { optionalString, optionalStringArray } from "../../../utils";
|
6
6
|
|
7
7
|
/**
|
8
8
|
* @title SOL Delegate Intent
|
@@ -15,7 +15,6 @@ export const SolDelegateIntent = t.intersection([
|
|
15
15
|
validatorAddress: t.string,
|
16
16
|
stakingAddresses: optionalStringArray,
|
17
17
|
stakingAddress: optionalString,
|
18
|
-
isMarinade: Optional(t.boolean),
|
19
18
|
}),
|
20
19
|
]);
|
21
20
|
|
@@ -2,6 +2,7 @@ import * as t from "io-ts";
|
|
2
2
|
import { SolBuildOptions } from "./solBuildOptions";
|
3
3
|
import { StakeIntent } from "./stakeIntent";
|
4
4
|
import { Amount } from "./amount";
|
5
|
+
import { Optional } from "../../../utils";
|
5
6
|
|
6
7
|
/**
|
7
8
|
* @title SOL Stake Intent
|
@@ -12,6 +13,7 @@ export const SolStakeIntent = t.intersection([
|
|
12
13
|
t.type({
|
13
14
|
validatorAddress: t.string,
|
14
15
|
amount: Amount,
|
16
|
+
isMarinade: Optional(t.boolean),
|
15
17
|
}),
|
16
18
|
]);
|
17
19
|
|
@@ -3,6 +3,7 @@ import { SolBuildOptions } from "./solBuildOptions";
|
|
3
3
|
import { Amount } from "./amount";
|
4
4
|
import { UnstakeIntent } from "./unstakeIntent";
|
5
5
|
import { Optional } from "../../../utils";
|
6
|
+
import { RecipientEntry } from "./recipientEntry";
|
6
7
|
|
7
8
|
/**
|
8
9
|
* @title SOL Unstake Intent
|
@@ -17,6 +18,7 @@ export const SolUnstakeIntent = t.intersection([
|
|
17
18
|
amount: Optional(Amount),
|
18
19
|
remainingStakingAmount: Optional(Amount),
|
19
20
|
isMarinade: Optional(t.boolean),
|
21
|
+
recipients: Optional(t.array(RecipientEntry)),
|
20
22
|
}),
|
21
23
|
]);
|
22
24
|
|