@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.
@@ -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.NumberC;
3413
+ netuid: t.StringC;
3414
3414
  }>]>, t.TypeC<{
3415
- amountStaked: t.NumberC;
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<"unstake">;
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.NumberC;
3522
+ netuid: t.StringC;
3515
3523
  }>]>, t.TypeC<{
3516
- amountUnstaked: t.NumberC;
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.NumberC;
100
+ netuid: t.StringC;
101
101
  }>]>, t.TypeC<{
102
- amountStaked: t.NumberC;
102
+ amountStaked: t.StringC;
103
103
  }>]>;
104
104
  export type TaoStakeIntent = t.TypeOf<typeof TaoStakeIntent>;
@@ -31,7 +31,7 @@ exports.TaoStakeIntent = t.intersection([
31
31
  stakeIntent_1.StakeIntent,
32
32
  taoStakingBaseIntent_1.TaoStakingBaseIntent,
33
33
  t.type({
34
- amountStaked: t.number,
34
+ amountStaked: t.string,
35
35
  }),
36
36
  ]);
37
37
  //# sourceMappingURL=taoStakeIntent.js.map
@@ -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.NumberC;
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.number,
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<"unstake">;
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.NumberC;
108
+ netuid: t.StringC;
101
109
  }>]>, t.TypeC<{
102
- amountUnstaked: t.NumberC;
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 unstakeIntent_1 = require("./unstakeIntent");
28
+ const withdrawIntent_1 = require("./withdrawIntent");
29
29
  const taoStakingBaseIntent_1 = require("./taoStakingBaseIntent");
30
30
  exports.TaoUnstakeIntent = t.intersection([
31
- unstakeIntent_1.UnstakeIntent,
31
+ withdrawIntent_1.WithdrawIntent,
32
32
  taoStakingBaseIntent_1.TaoStakingBaseIntent,
33
33
  t.type({
34
- amountUnstaked: t.number,
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,mDAAgD;AAChD,iEAA8D;AAKjD,QAAA,gBAAgB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC7C,6BAAa;IACb,2CAAoB;IACpB,CAAC,CAAC,IAAI,CAAC;QACL,cAAc,EAAE,CAAC,CAAC,MAAM;KACzB,CAAC;CACH,CAAC,CAAC"}
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitgo/public-types",
3
- "version": "4.18.0",
3
+ "version": "4.18.2",
4
4
  "description": "Collection of types exposed externally as part of the BitGo public API",
5
5
  "license": "UNLICENSED",
6
6
  "author": "",
@@ -9,7 +9,7 @@ export const TaoStakeIntent = t.intersection([
9
9
  StakeIntent,
10
10
  TaoStakingBaseIntent,
11
11
  t.type({
12
- amountStaked: t.number,
12
+ amountStaked: t.string,
13
13
  }),
14
14
  ]);
15
15
 
@@ -10,7 +10,7 @@ export const TaoStakingBaseIntent = t.intersection([
10
10
  SubstrateAccountBaseBuildOptions,
11
11
  t.type({
12
12
  hotkey: t.string,
13
- netuid: t.number,
13
+ netuid: t.string,
14
14
  }),
15
15
  ]);
16
16
 
@@ -1,15 +1,15 @@
1
1
  import * as t from "io-ts";
2
- import { UnstakeIntent } from "./unstakeIntent";
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
- UnstakeIntent,
9
+ WithdrawIntent,
10
10
  TaoStakingBaseIntent,
11
11
  t.type({
12
- amountUnstaked: t.number,
12
+ amountUnstaked: t.string,
13
13
  }),
14
14
  ]);
15
15