@bitgo/public-types 4.7.1 → 4.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (23) hide show
  1. package/dist/src/schema/transactionRequest/intents/{ethLikeClaimIntent.d.ts → ethLikeStakeIntent.d.ts} +34 -3
  2. package/dist/src/schema/transactionRequest/intents/{ethLikeClaimIntent.js → ethLikeStakeIntent.js} +4 -4
  3. package/dist/src/schema/transactionRequest/intents/ethLikeStakeIntent.js.map +1 -0
  4. package/dist/src/schema/transactionRequest/intents/index.d.ts +1 -3
  5. package/dist/src/schema/transactionRequest/intents/index.js +1 -3
  6. package/dist/src/schema/transactionRequest/intents/index.js.map +1 -1
  7. package/dist/src/schema/transactionRequest/intents/intent.d.ts +0 -117
  8. package/dist/src/schema/transactionRequest/intents/intent.js +2 -6
  9. package/dist/src/schema/transactionRequest/intents/intent.js.map +1 -1
  10. package/package.json +1 -1
  11. package/src/schema/transactionRequest/intents/ethLikeStakeIntent.ts +25 -0
  12. package/src/schema/transactionRequest/intents/index.ts +1 -3
  13. package/src/schema/transactionRequest/intents/intent.ts +2 -6
  14. package/dist/src/schema/transactionRequest/intents/ethLikeClaimIntent.js.map +0 -1
  15. package/dist/src/schema/transactionRequest/intents/ethLikeDelegateIntent.d.ts +0 -77
  16. package/dist/src/schema/transactionRequest/intents/ethLikeDelegateIntent.js +0 -44
  17. package/dist/src/schema/transactionRequest/intents/ethLikeDelegateIntent.js.map +0 -1
  18. package/dist/src/schema/transactionRequest/intents/ethLikeUndelegateIntent.d.ts +0 -77
  19. package/dist/src/schema/transactionRequest/intents/ethLikeUndelegateIntent.js +0 -44
  20. package/dist/src/schema/transactionRequest/intents/ethLikeUndelegateIntent.js.map +0 -1
  21. package/src/schema/transactionRequest/intents/ethLikeClaimIntent.ts +0 -25
  22. package/src/schema/transactionRequest/intents/ethLikeDelegateIntent.ts +0 -30
  23. package/src/schema/transactionRequest/intents/ethLikeUndelegateIntent.ts +0 -30
@@ -1,5 +1,5 @@
1
1
  import * as t from "io-ts";
2
- export declare const EthLikeClaimIntent: t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
2
+ export declare const EthLikeStakeIntent: t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
3
3
  intentType: t.KeyofC<{
4
4
  payment: t.LiteralC<"payment">;
5
5
  transferToken: t.LiteralC<"transferToken">;
@@ -39,7 +39,38 @@ export declare const EthLikeClaimIntent: t.IntersectionC<[t.IntersectionC<[t.Int
39
39
  }>]>, t.TypeC<{
40
40
  stakingRequestId: t.StringC;
41
41
  }>]>, t.TypeC<{
42
- intentType: t.LiteralC<"stakeClaimRewards">;
42
+ intentType: t.KeyofC<{
43
+ payment: t.LiteralC<"payment">;
44
+ transferToken: t.LiteralC<"transferToken">;
45
+ consolidate: t.LiteralC<"consolidate">;
46
+ consolidateToken: t.LiteralC<"consolidateToken">;
47
+ fanout: t.LiteralC<"fanout">;
48
+ stake: t.LiteralC<"stake">;
49
+ unstake: t.LiteralC<"unstake">;
50
+ delegate: t.LiteralC<"delegate">;
51
+ undelegate: t.LiteralC<"undelegate">;
52
+ switchValidator: t.LiteralC<"switchValidator">;
53
+ claim: t.LiteralC<"claim">;
54
+ stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
55
+ pledge: t.LiteralC<"pledge">;
56
+ voteDelegation: t.LiteralC<"voteDelegation">;
57
+ vote: t.LiteralC<"vote">;
58
+ createAccount: t.LiteralC<"createAccount">;
59
+ updateAccount: t.LiteralC<"updateAccount">;
60
+ addTrustLine: t.LiteralC<"addTrustLine">;
61
+ removeTrustLine: t.LiteralC<"removeTrustLine">;
62
+ signMessage: t.LiteralC<"signMessage">;
63
+ signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
64
+ enableToken: t.LiteralC<"enableToken">;
65
+ authorize: t.LiteralC<"authorize">;
66
+ acceleration: t.LiteralC<"acceleration">;
67
+ fillNonce: t.LiteralC<"fillNonce">;
68
+ walletRecovery: t.LiteralC<"walletRecovery">;
69
+ contractCall: t.LiteralC<"contractCall">;
70
+ deactivate: t.LiteralC<"deactivate">;
71
+ customTx: t.LiteralC<"customTx">;
72
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
73
+ }>;
43
74
  }>, t.PartialC<{
44
75
  recipients: t.UnionC<[t.Type<({
45
76
  address: {
@@ -69,4 +100,4 @@ export declare const EthLikeClaimIntent: t.IntersectionC<[t.IntersectionC<[t.Int
69
100
  data?: string | undefined;
70
101
  })[], unknown>, t.UndefinedC]>;
71
102
  }>]>;
72
- export type EthLikeClaimIntent = t.TypeOf<typeof EthLikeClaimIntent>;
103
+ export type EthLikeStakeIntent = t.TypeOf<typeof EthLikeStakeIntent>;
@@ -23,19 +23,19 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.EthLikeClaimIntent = void 0;
26
+ exports.EthLikeStakeIntent = void 0;
27
27
  const t = __importStar(require("io-ts"));
28
28
  const baseStakeIntent_1 = require("./baseStakeIntent");
29
29
  const intentType_1 = require("./intentType");
30
30
  const utils_1 = require("../../../utils");
31
31
  const recipientEntry_1 = require("./recipientEntry");
32
- exports.EthLikeClaimIntent = t.intersection([
32
+ exports.EthLikeStakeIntent = t.intersection([
33
33
  baseStakeIntent_1.BaseStakeIntent,
34
34
  t.type({
35
- intentType: intentType_1.intentTypes.stakeClaimRewards,
35
+ intentType: intentType_1.IntentType,
36
36
  }),
37
37
  t.partial({
38
38
  recipients: (0, utils_1.Optional)(t.array(recipientEntry_1.RecipientEntry)),
39
39
  }),
40
40
  ]);
41
- //# sourceMappingURL=ethLikeClaimIntent.js.map
41
+ //# sourceMappingURL=ethLikeStakeIntent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ethLikeStakeIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/ethLikeStakeIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,6CAA0C;AAC1C,0CAA0C;AAC1C,qDAAkD;AAUrC,QAAA,kBAAkB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC/C,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,uBAAU;KACvB,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,UAAU,EAAE,IAAA,gBAAQ,EAAC,CAAC,CAAC,KAAK,CAAC,+BAAc,CAAC,CAAC;KAC9C,CAAC;CACH,CAAC,CAAC"}
@@ -50,9 +50,7 @@ export * from "./ethBuildOptions";
50
50
  export * from "./ethConsolidateIntent";
51
51
  export * from "./ethConsolidateTokenIntent";
52
52
  export * from "./ethFillNonceIntent";
53
- export * from "./ethLikeClaimIntent";
54
- export * from "./ethLikeDelegateIntent";
55
- export * from "./ethLikeUndelegateIntent";
53
+ export * from "./ethLikeStakeIntent";
56
54
  export * from "./ethPaymentIntent";
57
55
  export * from "./ethStakingIntent";
58
56
  export * from "./ethTransferTokenIntent";
@@ -66,9 +66,7 @@ __exportStar(require("./ethBuildOptions"), exports);
66
66
  __exportStar(require("./ethConsolidateIntent"), exports);
67
67
  __exportStar(require("./ethConsolidateTokenIntent"), exports);
68
68
  __exportStar(require("./ethFillNonceIntent"), exports);
69
- __exportStar(require("./ethLikeClaimIntent"), exports);
70
- __exportStar(require("./ethLikeDelegateIntent"), exports);
71
- __exportStar(require("./ethLikeUndelegateIntent"), exports);
69
+ __exportStar(require("./ethLikeStakeIntent"), exports);
72
70
  __exportStar(require("./ethPaymentIntent"), exports);
73
71
  __exportStar(require("./ethStakingIntent"), exports);
74
72
  __exportStar(require("./ethTransferTokenIntent"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,4DAA0C;AAC1C,iEAA+C;AAC/C,mEAAiD;AACjD,mEAAi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AA6C;AAC7C,oDAAkC;AAClC,yDAAuC;AACvC,sDAAoC;AACpC,kDAAgC;AAChC,qDAAmC;AACnC,qDAAmC;AACnC,uDAAqC;AACrC,qEAAmD;AACnD,8CAA4B;AAC5B,oDAAkC;AAClC,wDAAsC;AACtC,4DAA0C;AAC1C,yDAAuC;AACvC,sDAAoC;AACpC,qDAAmC;AACnC,wDAAsC;AACtC,wDAAsC;AACtC,kDAAgC;AAChC,uEAAqD;AACrD,yDAAuC;AACvC,yDAAuC;AACvC,mDAAiC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,4DAA0C;AAC1C,iEAA+C;AAC/C,mEAAiD;AACjD,mEAAiD;AACjD,yDAAuC;AACvC,qDAAmC;AACnC,oDAAkC;AAClC,+DAA6C;AAC7C,mDAAiC;AACjC,qDAAmC;AACnC,4DAA0C;AAC1C,4CAA0B;AAC1B,2CAAyB;AACzB,sDAAoC;AACpC,oDAAkC;AAClC,sDAAoC;AACpC,uDAAqC;AACrC,+CAA6B;AAC7B,oDAAkC;AAClC,gEAA8C;AAC9C,sDAAoC;AACpC,+DAA6C;AAC7C,wDAAsC;AACtC,gEAA8C;AAC9C,2DAAyC;AACzC,uDAAqC;AACrC,0DAAwC;AACxC,4DAA0C;AAC1C,wDAAsC;AACtC,sDAAoC;AACpC,gEAA8C;AAC9C,wDAAsC;AACtC,yDAAuC;AACvC,+DAA6C;AAC7C,kDAAgC;AAChC,yDAAuC;AACvC,2DAAyC;AACzC,wDAAsC;AACtC,kDAAgC;AAChC,qDAAmC;AACnC,6CAA2B;AAC3B,qDAAmC;AACnC,uDAAqC;AACrC,2DAAyC;AACzC,sDAAoC;AACpC,sDAAoC;AACpC,0DAAwC;AACxC,oDAAkC;AAClC,yDAAuC;AACvC,8DAA4C;AAC5C,uDAAqC;AACrC,uDAAqC;AACrC,qDAAmC;AACnC,qDAAmC;AACnC,2DAAyC;AACzC,8CAA4B;AAC5B,qDAAmC;AACnC,qDAAmC;AACnC,kDAAgC;AAChC,oDAAkC;AAClC,8CAA4B;AAC5B,2CAAyB;AACzB,+CAA6B;AAC7B,2DAAyC;AACzC,yDAAuC;AACvC,6DAA2C;AAC3C,oDAAkC;AAClC,sDAAoC;AACpC,uDAAqC;AACrC,kDAAgC;AAChC,mDAAiC;AACjC,sDAAoC;AACpC,uDAAqC;AACrC,oDAAkC;AAClC,mDAAiC;AACjC,yEAAuD;AACvD,yDAAuC;AACvC,0EAAwD;AACxD,wDAAsC;AACtC,sDAAoC;AACpC,qDAAmC;AACnC,mDAAiC;AACjC,qDAAmC;AACnC,4DAA0C;AAC1C,gDAA8B;AAC9B,+DAA6C;AAC7C,oDAAkC;AAClC,yDAAuC;AACvC,sDAAoC;AACpC,kDAAgC;AAChC,qDAAmC;AACnC,qDAAmC;AACnC,uDAAqC;AACrC,qEAAmD;AACnD,8CAA4B;AAC5B,oDAAkC;AAClC,wDAAsC;AACtC,4DAA0C;AAC1C,yDAAuC;AACvC,sDAAoC;AACpC,qDAAmC;AACnC,wDAAsC;AACtC,wDAAsC;AACtC,kDAAgC;AAChC,uEAAqD;AACrD,yDAAuC;AACvC,yDAAuC;AACvC,mDAAiC"}
@@ -3649,41 +3649,6 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
3649
3649
  }>]>, t.TypeC<{
3650
3650
  stakingRequestId: t.StringC;
3651
3651
  }>]>, t.TypeC<{
3652
- intentType: t.LiteralC<"delegate">;
3653
- validatorAddress: t.StringC;
3654
- amount: t.TypeC<{
3655
- value: t.StringC;
3656
- symbol: t.StringC;
3657
- }>;
3658
- }>, t.PartialC<{
3659
- recipients: t.UnionC<[t.Type<({
3660
- address: {
3661
- address?: string | undefined;
3662
- option?: {
3663
- [x: string]: unknown;
3664
- } | undefined;
3665
- };
3666
- amount: {
3667
- value: string;
3668
- symbol: string;
3669
- };
3670
- } & {
3671
- data?: string | undefined;
3672
- })[], ({
3673
- address: {
3674
- address?: string | undefined;
3675
- option?: {
3676
- [x: string]: unknown;
3677
- } | undefined;
3678
- };
3679
- amount: {
3680
- value: string;
3681
- symbol: string;
3682
- };
3683
- } & {
3684
- data?: string | undefined;
3685
- })[], unknown>, t.UndefinedC]>;
3686
- }>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
3687
3652
  intentType: t.KeyofC<{
3688
3653
  payment: t.LiteralC<"payment">;
3689
3654
  transferToken: t.LiteralC<"transferToken">;
@@ -3716,88 +3681,6 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
3716
3681
  customTx: t.LiteralC<"customTx">;
3717
3682
  closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
3718
3683
  }>;
3719
- }>, t.PartialC<{
3720
- sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
3721
- comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
3722
- nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
3723
- }>]>, t.TypeC<{
3724
- stakingRequestId: t.StringC;
3725
- }>]>, t.TypeC<{
3726
- intentType: t.LiteralC<"undelegate">;
3727
- validatorAddress: t.StringC;
3728
- amount: t.TypeC<{
3729
- value: t.StringC;
3730
- symbol: t.StringC;
3731
- }>;
3732
- }>, t.PartialC<{
3733
- recipients: t.UnionC<[t.Type<({
3734
- address: {
3735
- address?: string | undefined;
3736
- option?: {
3737
- [x: string]: unknown;
3738
- } | undefined;
3739
- };
3740
- amount: {
3741
- value: string;
3742
- symbol: string;
3743
- };
3744
- } & {
3745
- data?: string | undefined;
3746
- })[], ({
3747
- address: {
3748
- address?: string | undefined;
3749
- option?: {
3750
- [x: string]: unknown;
3751
- } | undefined;
3752
- };
3753
- amount: {
3754
- value: string;
3755
- symbol: string;
3756
- };
3757
- } & {
3758
- data?: string | undefined;
3759
- })[], unknown>, t.UndefinedC]>;
3760
- }>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
3761
- intentType: t.KeyofC<{
3762
- payment: t.LiteralC<"payment">;
3763
- transferToken: t.LiteralC<"transferToken">;
3764
- consolidate: t.LiteralC<"consolidate">;
3765
- consolidateToken: t.LiteralC<"consolidateToken">;
3766
- fanout: t.LiteralC<"fanout">;
3767
- stake: t.LiteralC<"stake">;
3768
- unstake: t.LiteralC<"unstake">;
3769
- delegate: t.LiteralC<"delegate">;
3770
- undelegate: t.LiteralC<"undelegate">;
3771
- switchValidator: t.LiteralC<"switchValidator">;
3772
- claim: t.LiteralC<"claim">;
3773
- stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
3774
- pledge: t.LiteralC<"pledge">;
3775
- voteDelegation: t.LiteralC<"voteDelegation">;
3776
- vote: t.LiteralC<"vote">;
3777
- createAccount: t.LiteralC<"createAccount">;
3778
- updateAccount: t.LiteralC<"updateAccount">;
3779
- addTrustLine: t.LiteralC<"addTrustLine">;
3780
- removeTrustLine: t.LiteralC<"removeTrustLine">;
3781
- signMessage: t.LiteralC<"signMessage">;
3782
- signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
3783
- enableToken: t.LiteralC<"enableToken">;
3784
- authorize: t.LiteralC<"authorize">;
3785
- acceleration: t.LiteralC<"acceleration">;
3786
- fillNonce: t.LiteralC<"fillNonce">;
3787
- walletRecovery: t.LiteralC<"walletRecovery">;
3788
- contractCall: t.LiteralC<"contractCall">;
3789
- deactivate: t.LiteralC<"deactivate">;
3790
- customTx: t.LiteralC<"customTx">;
3791
- closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
3792
- }>;
3793
- }>, t.PartialC<{
3794
- sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
3795
- comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
3796
- nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
3797
- }>]>, t.TypeC<{
3798
- stakingRequestId: t.StringC;
3799
- }>]>, t.TypeC<{
3800
- intentType: t.LiteralC<"stakeClaimRewards">;
3801
3684
  }>, t.PartialC<{
3802
3685
  recipients: t.UnionC<[t.Type<({
3803
3686
  address: {
@@ -87,9 +87,7 @@ const baseStakeIntentWithCalldata_1 = require("./baseStakeIntentWithCalldata");
87
87
  const coredaoDelegateIntent_1 = require("./coredaoDelegateIntent");
88
88
  const coredaoUndelegateIntent_1 = require("./coredaoUndelegateIntent");
89
89
  const coredaoClaimIntent_1 = require("./coredaoClaimIntent");
90
- const ethLikeDelegateIntent_1 = require("./ethLikeDelegateIntent");
91
- const ethLikeUndelegateIntent_1 = require("./ethLikeUndelegateIntent");
92
- const ethLikeClaimIntent_1 = require("./ethLikeClaimIntent");
90
+ const ethLikeStakeIntent_1 = require("./ethLikeStakeIntent");
93
91
  exports.TransactionIntent = t.union([
94
92
  adaConsolidateIntent_1.AdaConsolidateIntent,
95
93
  adaPaymentIntent_1.AdaPaymentIntent,
@@ -152,9 +150,7 @@ exports.TransactionIntent = t.union([
152
150
  coredaoDelegateIntent_1.CoreDaoDelegateIntent,
153
151
  coredaoUndelegateIntent_1.CoreDaoUndelegateIntent,
154
152
  coredaoClaimIntent_1.CoreDaoClaimIntent,
155
- ethLikeDelegateIntent_1.EthLikeDelegateIntent,
156
- ethLikeUndelegateIntent_1.EthLikeUndelegateIntent,
157
- ethLikeClaimIntent_1.EthLikeClaimIntent,
153
+ ethLikeStakeIntent_1.EthLikeStakeIntent,
158
154
  baseIntent_1.BaseIntent,
159
155
  ]);
160
156
  //# sourceMappingURL=intent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"intent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/intent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,iEAA8D;AAC9D,yDAAsD;AACtD,qDAAkD;AAClD,uEAAoE;AACpE,2DAAwD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AAsB;IACtB,mCAAgB;IAChB,mCAAgB;IAChB,uCAAkB;IAClB,+CAAsB;IACtB,6CAAqB;IACrB,2CAAoB;IACpB,qDAAyB;IACzB,uCAAkB;IAClB,mCAAgB;IAChB,mCAAgB;IAChB,+CAAsB;IACtB,+CAAsB;IACtB,2CAAoB;IACpB,mDAAwB;IACxB,iCAAe;IACf,qCAAiB;IACjB,uCAAkB;IAClB,uCAAkB;IAClB,+BAAc;IACd,2EAAoC;IACpC,2CAAoB;IACpB,6EAAqC;IACrC,yCAAmB;IACnB,qCAAiB;IACjB,mCAAgB;IAChB,+BAAc;IACd,mCAAgB;IAChB,2CAAoB;IACpB,qCAAiB;IACjB,mCAAgB;IAChB,mCAAgB;IAChB,uCAAkB;IAClB,2CAAoB;IACpB,qCAAiB;IACjB,mCAAgB;IAChB,yCAAmB;IACnB,2CAAoB;IACpB,yDAA2B;IAC3B,6CAAqB;IACrB,iDAAuB;IACvB,uCAAkB;IAClB,6CAAqB;IACrB,iDAAuB;IACvB,uCAAkB;IAKlB,uBAAU;CACX,CAAC,CAAC"}
1
+ {"version":3,"file":"intent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/intent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,iEAA8D;AAC9D,yDAAsD;AACtD,qDAAkD;AAClD,uEAAoE;AACpE,2DAAwD;AACxD,uDAAoD;AACpD,2DAAwD;AACxD,6DAA0D;AAC1D,2DAAwD;AACxD,+DAA4D;AAC5D,+EAA4E;AAC5E,+DAA4D;AAC5D,2DAAwD;AACxD,+EAA4E;AAC5E,+DAA4D;AAC5D,iEAA8D;AAC9D,qEAAkE;AAClE,yDAAsD;AACtD,yDAAsD;AACtD,6DAA0D;AAC1D,qEAAkE;AAClE,mEAAgE;AAChE,6DAA0D;AAC1D,yDAAsD;AACtD,yDAAsD;AACtD,qEAAkE;AAClE,iEAA8D;AAC9D,uDAAoD;AACpD,2DAAwD;A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AChB,2CAAoB;IACpB,qCAAiB;IACjB,mCAAgB;IAChB,mCAAgB;IAChB,uCAAkB;IAClB,2CAAoB;IACpB,qCAAiB;IACjB,mCAAgB;IAChB,yCAAmB;IACnB,2CAAoB;IACpB,yDAA2B;IAC3B,6CAAqB;IACrB,iDAAuB;IACvB,uCAAkB;IAClB,uCAAkB;IAKlB,uBAAU;CACX,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitgo/public-types",
3
- "version": "4.7.1",
3
+ "version": "4.8.0",
4
4
  "description": "Collection of types exposed externally as part of the BitGo public API",
5
5
  "license": "UNLICENSED",
6
6
  "author": "",
@@ -0,0 +1,25 @@
1
+ import * as t from "io-ts";
2
+ import { BaseStakeIntent } from "./baseStakeIntent";
3
+ import { IntentType } from "./intentType";
4
+ import { Optional } from "../../../utils";
5
+ import { RecipientEntry } from "./recipientEntry";
6
+
7
+ /**
8
+ * @title EthLike Stake Intent
9
+ *
10
+ * @description The intent for stake requests and transactions for EthLike
11
+ *
12
+ * @param {string} intentType The type of intent
13
+ * @param {RecipientEntry[]} recipients The recipients of the staking transaction
14
+ */
15
+ export const EthLikeStakeIntent = t.intersection([
16
+ BaseStakeIntent,
17
+ t.type({
18
+ intentType: IntentType,
19
+ }),
20
+ t.partial({
21
+ recipients: Optional(t.array(RecipientEntry)),
22
+ }),
23
+ ]);
24
+
25
+ export type EthLikeStakeIntent = t.TypeOf<typeof EthLikeStakeIntent>;
@@ -50,9 +50,7 @@ export * from "./ethBuildOptions";
50
50
  export * from "./ethConsolidateIntent";
51
51
  export * from "./ethConsolidateTokenIntent";
52
52
  export * from "./ethFillNonceIntent";
53
- export * from "./ethLikeClaimIntent";
54
- export * from "./ethLikeDelegateIntent";
55
- export * from "./ethLikeUndelegateIntent";
53
+ export * from "./ethLikeStakeIntent";
56
54
  export * from "./ethPaymentIntent";
57
55
  export * from "./ethStakingIntent";
58
56
  export * from "./ethTransferTokenIntent";
@@ -61,9 +61,7 @@ import { BaseStakeIntentWithCalldata } from "./baseStakeIntentWithCalldata";
61
61
  import { CoreDaoDelegateIntent } from "./coredaoDelegateIntent";
62
62
  import { CoreDaoUndelegateIntent } from "./coredaoUndelegateIntent";
63
63
  import { CoreDaoClaimIntent } from "./coredaoClaimIntent";
64
- import { EthLikeDelegateIntent } from "./ethLikeDelegateIntent";
65
- import { EthLikeUndelegateIntent } from "./ethLikeUndelegateIntent";
66
- import { EthLikeClaimIntent } from "./ethLikeClaimIntent";
64
+ import { EthLikeStakeIntent } from "./ethLikeStakeIntent";
67
65
 
68
66
  export const TransactionIntent = t.union([
69
67
  AdaConsolidateIntent,
@@ -127,9 +125,7 @@ export const TransactionIntent = t.union([
127
125
  CoreDaoDelegateIntent,
128
126
  CoreDaoUndelegateIntent,
129
127
  CoreDaoClaimIntent,
130
- EthLikeDelegateIntent,
131
- EthLikeUndelegateIntent,
132
- EthLikeClaimIntent,
128
+ EthLikeStakeIntent,
133
129
 
134
130
  /**
135
131
  * Catch all for past intents that have not been converted to codecs
@@ -1 +0,0 @@
1
- {"version":3,"file":"ethLikeClaimIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/ethLikeClaimIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,6CAA2C;AAC3C,0CAA0C;AAC1C,qDAAkD;AAUrC,QAAA,kBAAkB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC/C,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,iBAAiB;KAC1C,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,UAAU,EAAE,IAAA,gBAAQ,EAAC,CAAC,CAAC,KAAK,CAAC,+BAAc,CAAC,CAAC;KAC9C,CAAC;CACH,CAAC,CAAC"}
@@ -1,77 +0,0 @@
1
- import * as t from "io-ts";
2
- export declare const EthLikeDelegateIntent: t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
3
- intentType: t.KeyofC<{
4
- payment: t.LiteralC<"payment">;
5
- transferToken: t.LiteralC<"transferToken">;
6
- consolidate: t.LiteralC<"consolidate">;
7
- consolidateToken: t.LiteralC<"consolidateToken">;
8
- fanout: t.LiteralC<"fanout">;
9
- stake: t.LiteralC<"stake">;
10
- unstake: t.LiteralC<"unstake">;
11
- delegate: t.LiteralC<"delegate">;
12
- undelegate: t.LiteralC<"undelegate">;
13
- switchValidator: t.LiteralC<"switchValidator">;
14
- claim: t.LiteralC<"claim">;
15
- stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
16
- pledge: t.LiteralC<"pledge">;
17
- voteDelegation: t.LiteralC<"voteDelegation">;
18
- vote: t.LiteralC<"vote">;
19
- createAccount: t.LiteralC<"createAccount">;
20
- updateAccount: t.LiteralC<"updateAccount">;
21
- addTrustLine: t.LiteralC<"addTrustLine">;
22
- removeTrustLine: t.LiteralC<"removeTrustLine">;
23
- signMessage: t.LiteralC<"signMessage">;
24
- signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
25
- enableToken: t.LiteralC<"enableToken">;
26
- authorize: t.LiteralC<"authorize">;
27
- acceleration: t.LiteralC<"acceleration">;
28
- fillNonce: t.LiteralC<"fillNonce">;
29
- walletRecovery: t.LiteralC<"walletRecovery">;
30
- contractCall: t.LiteralC<"contractCall">;
31
- deactivate: t.LiteralC<"deactivate">;
32
- customTx: t.LiteralC<"customTx">;
33
- closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
34
- }>;
35
- }>, t.PartialC<{
36
- sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
37
- comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
38
- nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
39
- }>]>, t.TypeC<{
40
- stakingRequestId: t.StringC;
41
- }>]>, t.TypeC<{
42
- intentType: t.LiteralC<"delegate">;
43
- validatorAddress: t.StringC;
44
- amount: t.TypeC<{
45
- value: t.StringC;
46
- symbol: t.StringC;
47
- }>;
48
- }>, t.PartialC<{
49
- recipients: t.UnionC<[t.Type<({
50
- address: {
51
- address?: string | undefined;
52
- option?: {
53
- [x: string]: unknown;
54
- } | undefined;
55
- };
56
- amount: {
57
- value: string;
58
- symbol: string;
59
- };
60
- } & {
61
- data?: string | undefined;
62
- })[], ({
63
- address: {
64
- address?: string | undefined;
65
- option?: {
66
- [x: string]: unknown;
67
- } | undefined;
68
- };
69
- amount: {
70
- value: string;
71
- symbol: string;
72
- };
73
- } & {
74
- data?: string | undefined;
75
- })[], unknown>, t.UndefinedC]>;
76
- }>]>;
77
- export type EthLikeDelegateIntent = t.TypeOf<typeof EthLikeDelegateIntent>;
@@ -1,44 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.EthLikeDelegateIntent = void 0;
27
- const t = __importStar(require("io-ts"));
28
- const baseStakeIntent_1 = require("./baseStakeIntent");
29
- const intentType_1 = require("./intentType");
30
- const amount_1 = require("./amount");
31
- const recipientEntry_1 = require("./recipientEntry");
32
- const utils_1 = require("../../../utils");
33
- exports.EthLikeDelegateIntent = t.intersection([
34
- baseStakeIntent_1.BaseStakeIntent,
35
- t.type({
36
- intentType: intentType_1.intentTypes.delegate,
37
- validatorAddress: t.string,
38
- amount: amount_1.Amount,
39
- }),
40
- t.partial({
41
- recipients: (0, utils_1.Optional)(t.array(recipientEntry_1.RecipientEntry)),
42
- }),
43
- ]);
44
- //# sourceMappingURL=ethLikeDelegateIntent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ethLikeDelegateIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/ethLikeDelegateIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,6CAA2C;AAC3C,qCAAkC;AAClC,qDAAkD;AAClD,0CAA0C;AAY7B,QAAA,qBAAqB,GAAG,CAAC,CAAC,YAAY,CAAC;IAClD,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,QAAQ;QAChC,gBAAgB,EAAE,CAAC,CAAC,MAAM;QAC1B,MAAM,EAAE,eAAM;KACf,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,UAAU,EAAE,IAAA,gBAAQ,EAAC,CAAC,CAAC,KAAK,CAAC,+BAAc,CAAC,CAAC;KAC9C,CAAC;CACH,CAAC,CAAC"}
@@ -1,77 +0,0 @@
1
- import * as t from "io-ts";
2
- export declare const EthLikeUndelegateIntent: t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
3
- intentType: t.KeyofC<{
4
- payment: t.LiteralC<"payment">;
5
- transferToken: t.LiteralC<"transferToken">;
6
- consolidate: t.LiteralC<"consolidate">;
7
- consolidateToken: t.LiteralC<"consolidateToken">;
8
- fanout: t.LiteralC<"fanout">;
9
- stake: t.LiteralC<"stake">;
10
- unstake: t.LiteralC<"unstake">;
11
- delegate: t.LiteralC<"delegate">;
12
- undelegate: t.LiteralC<"undelegate">;
13
- switchValidator: t.LiteralC<"switchValidator">;
14
- claim: t.LiteralC<"claim">;
15
- stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
16
- pledge: t.LiteralC<"pledge">;
17
- voteDelegation: t.LiteralC<"voteDelegation">;
18
- vote: t.LiteralC<"vote">;
19
- createAccount: t.LiteralC<"createAccount">;
20
- updateAccount: t.LiteralC<"updateAccount">;
21
- addTrustLine: t.LiteralC<"addTrustLine">;
22
- removeTrustLine: t.LiteralC<"removeTrustLine">;
23
- signMessage: t.LiteralC<"signMessage">;
24
- signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
25
- enableToken: t.LiteralC<"enableToken">;
26
- authorize: t.LiteralC<"authorize">;
27
- acceleration: t.LiteralC<"acceleration">;
28
- fillNonce: t.LiteralC<"fillNonce">;
29
- walletRecovery: t.LiteralC<"walletRecovery">;
30
- contractCall: t.LiteralC<"contractCall">;
31
- deactivate: t.LiteralC<"deactivate">;
32
- customTx: t.LiteralC<"customTx">;
33
- closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
34
- }>;
35
- }>, t.PartialC<{
36
- sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
37
- comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
38
- nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
39
- }>]>, t.TypeC<{
40
- stakingRequestId: t.StringC;
41
- }>]>, t.TypeC<{
42
- intentType: t.LiteralC<"undelegate">;
43
- validatorAddress: t.StringC;
44
- amount: t.TypeC<{
45
- value: t.StringC;
46
- symbol: t.StringC;
47
- }>;
48
- }>, t.PartialC<{
49
- recipients: t.UnionC<[t.Type<({
50
- address: {
51
- address?: string | undefined;
52
- option?: {
53
- [x: string]: unknown;
54
- } | undefined;
55
- };
56
- amount: {
57
- value: string;
58
- symbol: string;
59
- };
60
- } & {
61
- data?: string | undefined;
62
- })[], ({
63
- address: {
64
- address?: string | undefined;
65
- option?: {
66
- [x: string]: unknown;
67
- } | undefined;
68
- };
69
- amount: {
70
- value: string;
71
- symbol: string;
72
- };
73
- } & {
74
- data?: string | undefined;
75
- })[], unknown>, t.UndefinedC]>;
76
- }>]>;
77
- export type EthLikeUndelegateIntent = t.TypeOf<typeof EthLikeUndelegateIntent>;
@@ -1,44 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.EthLikeUndelegateIntent = void 0;
27
- const t = __importStar(require("io-ts"));
28
- const baseStakeIntent_1 = require("./baseStakeIntent");
29
- const amount_1 = require("./amount");
30
- const intentType_1 = require("./intentType");
31
- const utils_1 = require("../../../utils");
32
- const recipientEntry_1 = require("./recipientEntry");
33
- exports.EthLikeUndelegateIntent = t.intersection([
34
- baseStakeIntent_1.BaseStakeIntent,
35
- t.type({
36
- intentType: intentType_1.intentTypes.undelegate,
37
- validatorAddress: t.string,
38
- amount: amount_1.Amount,
39
- }),
40
- t.partial({
41
- recipients: (0, utils_1.Optional)(t.array(recipientEntry_1.RecipientEntry)),
42
- }),
43
- ]);
44
- //# sourceMappingURL=ethLikeUndelegateIntent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ethLikeUndelegateIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/ethLikeUndelegateIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,qCAAkC;AAClC,6CAA2C;AAC3C,0CAA0C;AAC1C,qDAAkD;AAYrC,QAAA,uBAAuB,GAAG,CAAC,CAAC,YAAY,CAAC;IACpD,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,UAAU;QAClC,gBAAgB,EAAE,CAAC,CAAC,MAAM;QAC1B,MAAM,EAAE,eAAM;KACf,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,UAAU,EAAE,IAAA,gBAAQ,EAAC,CAAC,CAAC,KAAK,CAAC,+BAAc,CAAC,CAAC;KAC9C,CAAC;CACH,CAAC,CAAC"}
@@ -1,25 +0,0 @@
1
- import * as t from "io-ts";
2
- import { BaseStakeIntent } from "./baseStakeIntent";
3
- import { intentTypes } from "./intentType";
4
- import { Optional } from "../../../utils";
5
- import { RecipientEntry } from "./recipientEntry";
6
-
7
- /**
8
- * @title EthLike Claim Rewards Intent
9
- *
10
- * @description The intent for claim rewards requests and transactions for EthLike
11
- *
12
- * @param {string} intentType The type of intent (always set to stakeClaimRewards)
13
- * @param {RecipientEntry[]} recipients The recipients of the claimed rewards
14
- */
15
- export const EthLikeClaimIntent = t.intersection([
16
- BaseStakeIntent,
17
- t.type({
18
- intentType: intentTypes.stakeClaimRewards,
19
- }),
20
- t.partial({
21
- recipients: Optional(t.array(RecipientEntry)),
22
- }),
23
- ]);
24
-
25
- export type EthLikeClaimIntent = t.TypeOf<typeof EthLikeClaimIntent>;
@@ -1,30 +0,0 @@
1
- import * as t from "io-ts";
2
- import { BaseStakeIntent } from "./baseStakeIntent";
3
- import { intentTypes } from "./intentType";
4
- import { Amount } from "./amount";
5
- import { RecipientEntry } from "./recipientEntry";
6
- import { Optional } from "../../../utils";
7
-
8
- /**
9
- * @title EthLike Delegate Intent
10
- *
11
- * @description The intent for delegate (stake) requests and transactions for EthLike
12
- *
13
- * @param {string} intentType The type of intent (always set to delegate)
14
- * @param {string} validatorAddress The address of the validator
15
- * @param {Amount} amount The amount to delegate
16
- * @param {RecipientEntry[]} recipients The recipients of the delegated amount
17
- */
18
- export const EthLikeDelegateIntent = t.intersection([
19
- BaseStakeIntent,
20
- t.type({
21
- intentType: intentTypes.delegate,
22
- validatorAddress: t.string,
23
- amount: Amount,
24
- }),
25
- t.partial({
26
- recipients: Optional(t.array(RecipientEntry)),
27
- }),
28
- ]);
29
-
30
- export type EthLikeDelegateIntent = t.TypeOf<typeof EthLikeDelegateIntent>;
@@ -1,30 +0,0 @@
1
- import * as t from "io-ts";
2
- import { BaseStakeIntent } from "./baseStakeIntent";
3
- import { Amount } from "./amount";
4
- import { intentTypes } from "./intentType";
5
- import { Optional } from "../../../utils";
6
- import { RecipientEntry } from "./recipientEntry";
7
-
8
- /**
9
- * @title EthLike Undelegate Intent
10
- *
11
- * @description The intent for undelegate (unstake) requests and transactions for Eth Like
12
- *
13
- * @param {string} intentType The type of intent (always set to undelegate)
14
- * @param {string} validatorAddress The address of the validator
15
- * @param {Amonut} amount The amount to undelegate from the validator
16
- * @param {RecipientEntry[]} recipients The recipients of the undelegated amount
17
- */
18
- export const EthLikeUndelegateIntent = t.intersection([
19
- BaseStakeIntent,
20
- t.type({
21
- intentType: intentTypes.undelegate,
22
- validatorAddress: t.string,
23
- amount: Amount,
24
- }),
25
- t.partial({
26
- recipients: Optional(t.array(RecipientEntry)),
27
- }),
28
- ]);
29
-
30
- export type EthLikeUndelegateIntent = t.TypeOf<typeof EthLikeUndelegateIntent>;