@bitgo/public-types 4.18.0 → 4.18.2
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 +13 -5
- package/dist/src/schema/transactionRequest/intents/taoStakeIntent.d.ts +2 -2
- package/dist/src/schema/transactionRequest/intents/taoStakeIntent.js +1 -1
- package/dist/src/schema/transactionRequest/intents/taoStakingBaseIntent.d.ts +1 -1
- package/dist/src/schema/transactionRequest/intents/taoStakingBaseIntent.js +1 -1
- package/dist/src/schema/transactionRequest/intents/taoUnstakeIntent.d.ts +11 -3
- package/dist/src/schema/transactionRequest/intents/taoUnstakeIntent.js +3 -3
- package/dist/src/schema/transactionRequest/intents/taoUnstakeIntent.js.map +1 -1
- package/package.json +1 -1
- package/src/schema/transactionRequest/intents/taoStakeIntent.ts +1 -1
- package/src/schema/transactionRequest/intents/taoStakingBaseIntent.ts +1 -1
- package/src/schema/transactionRequest/intents/taoUnstakeIntent.ts +3 -3
@@ -3410,9 +3410,9 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
3410
3410
|
}, unknown>, t.UndefinedC]>;
|
3411
3411
|
}>]>, t.TypeC<{
|
3412
3412
|
hotkey: t.StringC;
|
3413
|
-
netuid: t.
|
3413
|
+
netuid: t.StringC;
|
3414
3414
|
}>]>, t.TypeC<{
|
3415
|
-
amountStaked: t.
|
3415
|
+
amountStaked: t.StringC;
|
3416
3416
|
}>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
3417
3417
|
intentType: t.KeyofC<{
|
3418
3418
|
payment: t.LiteralC<"payment">;
|
@@ -3453,7 +3453,15 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
3453
3453
|
}>]>, t.TypeC<{
|
3454
3454
|
stakingRequestId: t.StringC;
|
3455
3455
|
}>]>, t.TypeC<{
|
3456
|
-
intentType: t.LiteralC<"
|
3456
|
+
intentType: t.LiteralC<"claim">;
|
3457
|
+
}>, t.PartialC<{
|
3458
|
+
amount: t.UnionC<[t.Type<{
|
3459
|
+
value: string;
|
3460
|
+
symbol: string;
|
3461
|
+
}, {
|
3462
|
+
value: string;
|
3463
|
+
symbol: string;
|
3464
|
+
}, unknown>, t.UndefinedC]>;
|
3457
3465
|
}>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
3458
3466
|
intentType: t.KeyofC<{
|
3459
3467
|
payment: t.LiteralC<"payment">;
|
@@ -3511,9 +3519,9 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
3511
3519
|
}, unknown>, t.UndefinedC]>;
|
3512
3520
|
}>]>, t.TypeC<{
|
3513
3521
|
hotkey: t.StringC;
|
3514
|
-
netuid: t.
|
3522
|
+
netuid: t.StringC;
|
3515
3523
|
}>]>, t.TypeC<{
|
3516
|
-
amountUnstaked: t.
|
3524
|
+
amountUnstaked: t.StringC;
|
3517
3525
|
}>]>, t.IntersectionC<[t.PartialC<{
|
3518
3526
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
3519
3527
|
}>, t.TypeC<{
|
@@ -97,8 +97,8 @@ export declare const TaoStakeIntent: t.IntersectionC<[t.IntersectionC<[t.Interse
|
|
97
97
|
}, unknown>, t.UndefinedC]>;
|
98
98
|
}>]>, t.TypeC<{
|
99
99
|
hotkey: t.StringC;
|
100
|
-
netuid: t.
|
100
|
+
netuid: t.StringC;
|
101
101
|
}>]>, t.TypeC<{
|
102
|
-
amountStaked: t.
|
102
|
+
amountStaked: t.StringC;
|
103
103
|
}>]>;
|
104
104
|
export type TaoStakeIntent = t.TypeOf<typeof TaoStakeIntent>;
|
@@ -56,6 +56,6 @@ export declare const TaoStakingBaseIntent: t.IntersectionC<[t.IntersectionC<[t.I
|
|
56
56
|
}, unknown>, t.UndefinedC]>;
|
57
57
|
}>]>, t.TypeC<{
|
58
58
|
hotkey: t.StringC;
|
59
|
-
netuid: t.
|
59
|
+
netuid: t.StringC;
|
60
60
|
}>]>;
|
61
61
|
export type TaoStakingBaseIntent = t.TypeOf<typeof TaoStakingBaseIntent>;
|
@@ -32,7 +32,7 @@ exports.TaoStakingBaseIntent = t.intersection([
|
|
32
32
|
substrateAccountBaseBuildOptions_1.SubstrateAccountBaseBuildOptions,
|
33
33
|
t.type({
|
34
34
|
hotkey: t.string,
|
35
|
-
netuid: t.
|
35
|
+
netuid: t.string,
|
36
36
|
}),
|
37
37
|
]);
|
38
38
|
//# sourceMappingURL=taoStakingBaseIntent.js.map
|
@@ -39,7 +39,15 @@ export declare const TaoUnstakeIntent: t.IntersectionC<[t.IntersectionC<[t.Inter
|
|
39
39
|
}>]>, t.TypeC<{
|
40
40
|
stakingRequestId: t.StringC;
|
41
41
|
}>]>, t.TypeC<{
|
42
|
-
intentType: t.LiteralC<"
|
42
|
+
intentType: t.LiteralC<"claim">;
|
43
|
+
}>, t.PartialC<{
|
44
|
+
amount: t.UnionC<[t.Type<{
|
45
|
+
value: string;
|
46
|
+
symbol: string;
|
47
|
+
}, {
|
48
|
+
value: string;
|
49
|
+
symbol: string;
|
50
|
+
}, unknown>, t.UndefinedC]>;
|
43
51
|
}>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
44
52
|
intentType: t.KeyofC<{
|
45
53
|
payment: t.LiteralC<"payment">;
|
@@ -97,8 +105,8 @@ export declare const TaoUnstakeIntent: t.IntersectionC<[t.IntersectionC<[t.Inter
|
|
97
105
|
}, unknown>, t.UndefinedC]>;
|
98
106
|
}>]>, t.TypeC<{
|
99
107
|
hotkey: t.StringC;
|
100
|
-
netuid: t.
|
108
|
+
netuid: t.StringC;
|
101
109
|
}>]>, t.TypeC<{
|
102
|
-
amountUnstaked: t.
|
110
|
+
amountUnstaked: t.StringC;
|
103
111
|
}>]>;
|
104
112
|
export type TaoUnstakeIntent = t.TypeOf<typeof TaoUnstakeIntent>;
|
@@ -25,13 +25,13 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
26
26
|
exports.TaoUnstakeIntent = void 0;
|
27
27
|
const t = __importStar(require("io-ts"));
|
28
|
-
const
|
28
|
+
const withdrawIntent_1 = require("./withdrawIntent");
|
29
29
|
const taoStakingBaseIntent_1 = require("./taoStakingBaseIntent");
|
30
30
|
exports.TaoUnstakeIntent = t.intersection([
|
31
|
-
|
31
|
+
withdrawIntent_1.WithdrawIntent,
|
32
32
|
taoStakingBaseIntent_1.TaoStakingBaseIntent,
|
33
33
|
t.type({
|
34
|
-
amountUnstaked: t.
|
34
|
+
amountUnstaked: t.string,
|
35
35
|
}),
|
36
36
|
]);
|
37
37
|
//# sourceMappingURL=taoUnstakeIntent.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"taoUnstakeIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/taoUnstakeIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,
|
1
|
+
{"version":3,"file":"taoUnstakeIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/taoUnstakeIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,qDAAkD;AAClD,iEAA8D;AAKjD,QAAA,gBAAgB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC7C,+BAAc;IACd,2CAAoB;IACpB,CAAC,CAAC,IAAI,CAAC;QACL,cAAc,EAAE,CAAC,CAAC,MAAM;KACzB,CAAC;CACH,CAAC,CAAC"}
|
package/package.json
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
import * as t from "io-ts";
|
2
|
-
import {
|
2
|
+
import { WithdrawIntent } from "./withdrawIntent";
|
3
3
|
import { TaoStakingBaseIntent } from "./taoStakingBaseIntent";
|
4
4
|
|
5
5
|
/**
|
6
6
|
* @title Tao Unstake Intent
|
7
7
|
*/
|
8
8
|
export const TaoUnstakeIntent = t.intersection([
|
9
|
-
|
9
|
+
WithdrawIntent,
|
10
10
|
TaoStakingBaseIntent,
|
11
11
|
t.type({
|
12
|
-
amountUnstaked: t.
|
12
|
+
amountUnstaked: t.string,
|
13
13
|
}),
|
14
14
|
]);
|
15
15
|
|