@bitgo/public-types 5.2.0 → 5.4.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.
@@ -74,6 +74,7 @@ export * from "./mmiSignTransactionIntent";
74
74
  export * from "./nearStakeIntent";
75
75
  export * from "./nearUnstakeIntent";
76
76
  export * from "./nearWithdrawIntent";
77
+ export * from "./polyxStakeIntent";
77
78
  export * from "./paymentIntent";
78
79
  export * from "./recipientEntry";
79
80
  export * from "./signMessageIntent";
@@ -90,6 +90,7 @@ __exportStar(require("./mmiSignTransactionIntent"), exports);
90
90
  __exportStar(require("./nearStakeIntent"), exports);
91
91
  __exportStar(require("./nearUnstakeIntent"), exports);
92
92
  __exportStar(require("./nearWithdrawIntent"), exports);
93
+ __exportStar(require("./polyxStakeIntent"), exports);
93
94
  __exportStar(require("./paymentIntent"), exports);
94
95
  __exportStar(require("./recipientEntry"), exports);
95
96
  __exportStar(require("./signMessageIntent"), 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,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,kEAAgD;AAChD,6DAA2C;AAC3C,+CAA6B;AAC7B,oDAAkC;AAClC,gEAA8C;AAC9C,uDAAqC;AACrC,sDAAoC;AACpC,+DAA6C;AAC7C,wDAAsC;AACtC,gEAA8C;AAC9C,2DAAyC;AACzC,uDAAqC;AACrC,0DAAwC;AACxC,4DAA0C;AAC1C,wDAAsC;AACtC,sDAAoC;AACpC,g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DAAsC;AACtC,kDAAgC;AAChC,uEAAqD;AACrD,yDAAuC;AACvC,yDAAuC;AACvC,wDAAsC;AACtC,2DAAyC;AACzC,yDAAuC;AACvC,mDAAiC;AACjC,wDAAsC"}
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,kEAAgD;AAChD,6DAA2C;AAC3C,+CAA6B;AAC7B,oDAAkC;AAClC,gEAA8C;AAC9C,uDAAqC;AACrC,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,6DAA2C;AAC3C,8CAA4B;AAC5B,qDAAmC;AACnC,qDAAmC;AACnC,kDAAgC;AAChC,oDAAkC;AAClC,8CAA4B;AAC5B,qDAAmC;AACnC,kDAAgC;AAChC,2CAAyB;AACzB,+CAA6B;AAC7B,2DAAyC;AACzC,yDAAuC;AACvC,6DAA2C;AAC3C,oDAAkC;AAClC,sDAAoC;AACpC,uDAAqC;AACrC,qDAAmC;AACnC,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,qEAAmD;AACnD,wDAAsC;AACtC,+DAA6C;AAC7C,8DAA4C;AAC5C,wDAAsC;AACtC,2DAAyC;AACzC,yDAAuC;AACvC,mDAAiC;AACjC,qDAAmC;AACnC,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,wDAAsC;AACtC,2DAAyC;AACzC,yDAAuC;AACvC,mDAAiC;AACjC,wDAAsC"}
@@ -2781,6 +2781,180 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
2781
2781
  }>, t.PartialC<{
2782
2782
  data: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
2783
2783
  }>]>>;
2784
+ }>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
2785
+ intentType: t.KeyofC<{
2786
+ payment: t.LiteralC<"payment">;
2787
+ transferToken: t.LiteralC<"transferToken">;
2788
+ consolidate: t.LiteralC<"consolidate">;
2789
+ consolidateToken: t.LiteralC<"consolidateToken">;
2790
+ fanout: t.LiteralC<"fanout">;
2791
+ stake: t.LiteralC<"stake">;
2792
+ unstake: t.LiteralC<"unstake">;
2793
+ delegate: t.LiteralC<"delegate">;
2794
+ undelegate: t.LiteralC<"undelegate">;
2795
+ switchValidator: t.LiteralC<"switchValidator">;
2796
+ claim: t.LiteralC<"claim">;
2797
+ stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
2798
+ pledge: t.LiteralC<"pledge">;
2799
+ voteDelegation: t.LiteralC<"voteDelegation">;
2800
+ vote: t.LiteralC<"vote">;
2801
+ createAccount: t.LiteralC<"createAccount">;
2802
+ updateAccount: t.LiteralC<"updateAccount">;
2803
+ addTrustLine: t.LiteralC<"addTrustLine">;
2804
+ removeTrustLine: t.LiteralC<"removeTrustLine">;
2805
+ signMessage: t.LiteralC<"signMessage">;
2806
+ signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
2807
+ enableToken: t.LiteralC<"enableToken">;
2808
+ authorize: t.LiteralC<"authorize">;
2809
+ acceleration: t.LiteralC<"acceleration">;
2810
+ fillNonce: t.LiteralC<"fillNonce">;
2811
+ walletRecovery: t.LiteralC<"walletRecovery">;
2812
+ contractCall: t.LiteralC<"contractCall">;
2813
+ deactivate: t.LiteralC<"deactivate">;
2814
+ customTx: t.LiteralC<"customTx">;
2815
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
2816
+ stakeWithCallData: t.LiteralC<"stakeWithCallData">;
2817
+ feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
2818
+ tokenApproval: t.LiteralC<"tokenApproval">;
2819
+ createBtcDelegation: t.LiteralC<"createBtcDelegation">;
2820
+ }>;
2821
+ }>, t.PartialC<{
2822
+ sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
2823
+ comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
2824
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
2825
+ }>]>, t.PartialC<{
2826
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
2827
+ }>, t.TypeC<{
2828
+ intentType: t.LiteralC<"createAccount">;
2829
+ }>, t.PartialC<{
2830
+ name: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
2831
+ }>]>, t.IntersectionC<[t.PartialC<{
2832
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
2833
+ }>, t.PartialC<{
2834
+ fee: t.UnionC<[t.Type<{
2835
+ amount: string | number;
2836
+ } & {
2837
+ unit?: "baseUnit" | "cpu" | "ram" | undefined;
2838
+ formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
2839
+ type?: "max" | "base" | "tip" | undefined;
2840
+ }, {
2841
+ amount: string | number;
2842
+ } & {
2843
+ unit?: "baseUnit" | "cpu" | "ram" | undefined;
2844
+ formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
2845
+ type?: "max" | "base" | "tip" | undefined;
2846
+ }, unknown>, t.UndefinedC]>;
2847
+ }>]>, t.PartialC<{
2848
+ memo: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
2849
+ }>, t.PartialC<{
2850
+ index: t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>;
2851
+ recipients: t.UnionC<[t.Type<({
2852
+ address: {
2853
+ address?: string | undefined;
2854
+ option?: {
2855
+ [x: string]: unknown;
2856
+ } | undefined;
2857
+ };
2858
+ amount: {
2859
+ value: string;
2860
+ symbol: string;
2861
+ };
2862
+ } & {
2863
+ data?: string | undefined;
2864
+ })[], ({
2865
+ address: {
2866
+ address?: string | undefined;
2867
+ option?: {
2868
+ [x: string]: unknown;
2869
+ } | undefined;
2870
+ };
2871
+ amount: {
2872
+ value: string;
2873
+ symbol: string;
2874
+ };
2875
+ } & {
2876
+ data?: string | undefined;
2877
+ })[], unknown>, t.UndefinedC]>;
2878
+ }>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
2879
+ intentType: t.KeyofC<{
2880
+ payment: t.LiteralC<"payment">;
2881
+ transferToken: t.LiteralC<"transferToken">;
2882
+ consolidate: t.LiteralC<"consolidate">;
2883
+ consolidateToken: t.LiteralC<"consolidateToken">;
2884
+ fanout: t.LiteralC<"fanout">;
2885
+ stake: t.LiteralC<"stake">;
2886
+ unstake: t.LiteralC<"unstake">;
2887
+ delegate: t.LiteralC<"delegate">;
2888
+ undelegate: t.LiteralC<"undelegate">;
2889
+ switchValidator: t.LiteralC<"switchValidator">;
2890
+ claim: t.LiteralC<"claim">;
2891
+ stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
2892
+ pledge: t.LiteralC<"pledge">;
2893
+ voteDelegation: t.LiteralC<"voteDelegation">;
2894
+ vote: t.LiteralC<"vote">;
2895
+ createAccount: t.LiteralC<"createAccount">;
2896
+ updateAccount: t.LiteralC<"updateAccount">;
2897
+ addTrustLine: t.LiteralC<"addTrustLine">;
2898
+ removeTrustLine: t.LiteralC<"removeTrustLine">;
2899
+ signMessage: t.LiteralC<"signMessage">;
2900
+ signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
2901
+ enableToken: t.LiteralC<"enableToken">;
2902
+ authorize: t.LiteralC<"authorize">;
2903
+ acceleration: t.LiteralC<"acceleration">;
2904
+ fillNonce: t.LiteralC<"fillNonce">;
2905
+ walletRecovery: t.LiteralC<"walletRecovery">;
2906
+ contractCall: t.LiteralC<"contractCall">;
2907
+ deactivate: t.LiteralC<"deactivate">;
2908
+ customTx: t.LiteralC<"customTx">;
2909
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
2910
+ stakeWithCallData: t.LiteralC<"stakeWithCallData">;
2911
+ feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
2912
+ tokenApproval: t.LiteralC<"tokenApproval">;
2913
+ createBtcDelegation: t.LiteralC<"createBtcDelegation">;
2914
+ }>;
2915
+ }>, t.PartialC<{
2916
+ sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
2917
+ comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
2918
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
2919
+ }>]>, t.TypeC<{
2920
+ stakingRequestId: t.StringC;
2921
+ }>]>, t.TypeC<{
2922
+ intentType: t.LiteralC<"stake">;
2923
+ }>]>, t.IntersectionC<[t.PartialC<{
2924
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
2925
+ }>, t.PartialC<{
2926
+ fee: t.UnionC<[t.Type<{
2927
+ amount: string | number;
2928
+ } & {
2929
+ unit?: "baseUnit" | "cpu" | "ram" | undefined;
2930
+ formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
2931
+ type?: "max" | "base" | "tip" | undefined;
2932
+ }, {
2933
+ amount: string | number;
2934
+ } & {
2935
+ unit?: "baseUnit" | "cpu" | "ram" | undefined;
2936
+ formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
2937
+ type?: "max" | "base" | "tip" | undefined;
2938
+ }, unknown>, t.UndefinedC]>;
2939
+ }>]>, t.TypeC<{
2940
+ recipients: t.ArrayC<t.IntersectionC<[t.TypeC<{
2941
+ address: t.PartialC<{
2942
+ address: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
2943
+ option: t.UnionC<[t.Type<{
2944
+ [x: string]: unknown;
2945
+ }, {
2946
+ [x: string]: unknown;
2947
+ }, unknown>, t.UndefinedC]>;
2948
+ }>;
2949
+ amount: t.TypeC<{
2950
+ value: t.StringC;
2951
+ symbol: t.StringC;
2952
+ }>;
2953
+ }>, t.PartialC<{
2954
+ data: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
2955
+ }>]>>;
2956
+ }>, t.PartialC<{
2957
+ addToStake: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
2784
2958
  }>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
2785
2959
  intentType: t.KeyofC<{
2786
2960
  payment: t.LiteralC<"payment">;
@@ -59,6 +59,8 @@ const mmiSignMessageIntent_1 = require("./mmiSignMessageIntent");
59
59
  const nearStakeIntent_1 = require("./nearStakeIntent");
60
60
  const nearUnstakeIntent_1 = require("./nearUnstakeIntent");
61
61
  const nearWithdrawIntent_1 = require("./nearWithdrawIntent");
62
+ const polyxCreateAccountIntent_1 = require("./polyxCreateAccountIntent");
63
+ const polyxStakeIntent_1 = require("./polyxStakeIntent");
62
64
  const solAuthorizeIntent_1 = require("./solAuthorizeIntent");
63
65
  const solClaimIntent_1 = require("./solClaimIntent");
64
66
  const solCreateAssociatedTokenAccountIntent_1 = require("./solCreateAssociatedTokenAccountIntent");
@@ -143,6 +145,8 @@ exports.TransactionIntent = t.union([
143
145
  nearStakeIntent_1.NearStakeIntent,
144
146
  nearUnstakeIntent_1.NearUnstakeIntent,
145
147
  nearWithdrawIntent_1.NearWithdrawIntent,
148
+ polyxCreateAccountIntent_1.PolyxCreateAccountIntent,
149
+ polyxStakeIntent_1.PolyxStakeIntent,
146
150
  solAuthorizeIntent_1.SolAuthorizeIntent,
147
151
  solClaimIntent_1.SolClaimIntent,
148
152
  solCloseAssociatedTokenAccountIntent_1.SolCloseAssociatedTokenAccountIntent,
@@ -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;AACxD,uDAAoD;AACpD,2DAAwD;AACxD,6DAA0D;AAC1D,mFAAgF;AAChF,yEAAsE;AACtE,2DAAwD;AACxD,+DAA4D;AAC5D,+EAA4E;AAC5E,+DAA4D;AAC5D,2DAAwD;AACxD,+EAA4E;AAC5E,+D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pB,2CAAoB;IACpB,+CAAsB;IACtB,mCAAgB;IAChB,mCAAgB;IAChB,uCAAkB;IAClB,+CAAsB;IACtB,6CAAqB;IACrB,2CAAoB;IACpB,qDAAyB;IACzB,uCAAkB;IAClB,mCAAgB;IAChB,mCAAgB;IAChB,+CAAsB;IACtB,mDAAwB;IACxB,mCAAgB;IAChB,+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,uDAA0B;IAC1B,+CAAsB;IACtB,2CAAoB;IACpB,qCAAiB;IACjB,mCAAgB;IAChB,mCAAgB;IAChB,uCAAkB;IAClB,+BAAc;IACd,mCAAgB;IAChB,yCAAmB;IACnB,2CAAoB;IACpB,qCAAiB;IACjB,mCAAgB;IAChB,yCAAmB;IACnB,2CAAoB;IACpB,yDAA2B;IAC3B,6CAAqB;IACrB,iDAAuB;IACvB,uCAAkB;IAClB,uCAAkB;IAClB,uCAAkB;IAClB,yCAAmB;IACnB,+CAAsB;IACtB,2CAAoB;IAKpB,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,mFAAgF;AAChF,yEAAsE;AACtE,2DAAwD;AACxD,+DAA4D;AAC5D,+EAA4E;AAC5E,+DAA4D;AAC5D,2DAAwD;AACxD,+EAA4E;AAC5E,+DAA4D;AAC5D,iEAA8D;AAC9D,qEAAkE;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oB;IACpB,+CAAsB;IACtB,mCAAgB;IAChB,mCAAgB;IAChB,uCAAkB;IAClB,+CAAsB;IACtB,6CAAqB;IACrB,2CAAoB;IACpB,qDAAyB;IACzB,uCAAkB;IAClB,mCAAgB;IAChB,mCAAgB;IAChB,+CAAsB;IACtB,mDAAwB;IACxB,mCAAgB;IAChB,+CAAsB;IACtB,2CAAoB;IACpB,mDAAwB;IACxB,iCAAe;IACf,qCAAiB;IACjB,uCAAkB;IAClB,mDAAwB;IACxB,mCAAgB;IAChB,uCAAkB;IAClB,+BAAc;IACd,2EAAoC;IACpC,2CAAoB;IACpB,6EAAqC;IACrC,yCAAmB;IACnB,qCAAiB;IACjB,mCAAgB;IAChB,+BAAc;IACd,mCAAgB;IAChB,uDAA0B;IAC1B,+CAAsB;IACtB,2CAAoB;IACpB,qCAAiB;IACjB,mCAAgB;IAChB,mCAAgB;IAChB,uCAAkB;IAClB,+BAAc;IACd,mCAAgB;IAChB,yCAAmB;IACnB,2CAAoB;IACpB,qCAAiB;IACjB,mCAAgB;IAChB,yCAAmB;IACnB,2CAAoB;IACpB,yDAA2B;IAC3B,6CAAqB;IACrB,iDAAuB;IACvB,uCAAkB;IAClB,uCAAkB;IAClB,uCAAkB;IAClB,yCAAmB;IACnB,+CAAsB;IACtB,2CAAoB;IAKpB,uBAAU;CACX,CAAC,CAAC"}
@@ -0,0 +1,97 @@
1
+ import * as t from "io-ts";
2
+ export declare const PolyxCreateAccountIntent: 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
+ stakeWithCallData: t.LiteralC<"stakeWithCallData">;
35
+ feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
36
+ tokenApproval: t.LiteralC<"tokenApproval">;
37
+ createBtcDelegation: t.LiteralC<"createBtcDelegation">;
38
+ }>;
39
+ }>, t.PartialC<{
40
+ sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
41
+ comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
42
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
43
+ }>]>, t.PartialC<{
44
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
45
+ }>, t.TypeC<{
46
+ intentType: t.LiteralC<"createAccount">;
47
+ }>, t.PartialC<{
48
+ name: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
49
+ }>]>, t.IntersectionC<[t.PartialC<{
50
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
51
+ }>, t.PartialC<{
52
+ fee: t.UnionC<[t.Type<{
53
+ amount: string | number;
54
+ } & {
55
+ unit?: "baseUnit" | "cpu" | "ram" | undefined;
56
+ formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
57
+ type?: "max" | "base" | "tip" | undefined;
58
+ }, {
59
+ amount: string | number;
60
+ } & {
61
+ unit?: "baseUnit" | "cpu" | "ram" | undefined;
62
+ formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
63
+ type?: "max" | "base" | "tip" | undefined;
64
+ }, unknown>, t.UndefinedC]>;
65
+ }>]>, t.PartialC<{
66
+ memo: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
67
+ }>, t.PartialC<{
68
+ index: t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>;
69
+ recipients: t.UnionC<[t.Type<({
70
+ address: {
71
+ address?: string | undefined;
72
+ option?: {
73
+ [x: string]: unknown;
74
+ } | undefined;
75
+ };
76
+ amount: {
77
+ value: string;
78
+ symbol: string;
79
+ };
80
+ } & {
81
+ data?: string | undefined;
82
+ })[], ({
83
+ address: {
84
+ address?: string | undefined;
85
+ option?: {
86
+ [x: string]: unknown;
87
+ } | undefined;
88
+ };
89
+ amount: {
90
+ value: string;
91
+ symbol: string;
92
+ };
93
+ } & {
94
+ data?: string | undefined;
95
+ })[], unknown>, t.UndefinedC]>;
96
+ }>]>;
97
+ export type PolyxCreateAccountIntent = t.TypeOf<typeof PolyxCreateAccountIntent>;
@@ -0,0 +1,43 @@
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.PolyxCreateAccountIntent = void 0;
27
+ const t = __importStar(require("io-ts"));
28
+ const substrateAccountBaseBuildOptions_1 = require("./substrateAccountBaseBuildOptions");
29
+ const utils_1 = require("../../../utils");
30
+ const accountBaseCreateAccountIntent_1 = require("./accountBaseCreateAccountIntent");
31
+ const recipientEntry_1 = require("./recipientEntry");
32
+ exports.PolyxCreateAccountIntent = t.intersection([
33
+ accountBaseCreateAccountIntent_1.AccountBaseCreateAccountIntent,
34
+ substrateAccountBaseBuildOptions_1.SubstrateAccountBaseBuildOptions,
35
+ t.partial({
36
+ memo: utils_1.optionalString,
37
+ }),
38
+ t.partial({
39
+ index: utils_1.optionalNumber,
40
+ recipients: (0, utils_1.Optional)(t.array(recipientEntry_1.RecipientEntry)),
41
+ }),
42
+ ]);
43
+ //# sourceMappingURL=polyxCreateAccountIntent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"polyxCreateAccountIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/polyxCreateAccountIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,yFAAsF;AACtF,0CAA0E;AAC1E,qFAAkF;AAClF,qDAAkD;AAKrC,QAAA,wBAAwB,GAAG,CAAC,CAAC,YAAY,CAAC;IACrD,+DAA8B;IAC9B,mEAAgC;IAChC,CAAC,CAAC,OAAO,CAAC;QACR,IAAI,EAAE,sBAAc;KACrB,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,KAAK,EAAE,sBAAc;QAErB,UAAU,EAAE,IAAA,gBAAQ,EAAC,CAAC,CAAC,KAAK,CAAC,+BAAc,CAAC,CAAC;KAC9C,CAAC;CACH,CAAC,CAAC"}
@@ -0,0 +1,83 @@
1
+ import * as t from "io-ts";
2
+ export declare const PolyxStakeIntent: t.IntersectionC<[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
+ stakeWithCallData: t.LiteralC<"stakeWithCallData">;
35
+ feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
36
+ tokenApproval: t.LiteralC<"tokenApproval">;
37
+ createBtcDelegation: t.LiteralC<"createBtcDelegation">;
38
+ }>;
39
+ }>, t.PartialC<{
40
+ sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
41
+ comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
42
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
43
+ }>]>, t.TypeC<{
44
+ stakingRequestId: t.StringC;
45
+ }>]>, t.TypeC<{
46
+ intentType: t.LiteralC<"stake">;
47
+ }>]>, t.IntersectionC<[t.PartialC<{
48
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
49
+ }>, t.PartialC<{
50
+ fee: t.UnionC<[t.Type<{
51
+ amount: string | number;
52
+ } & {
53
+ unit?: "baseUnit" | "cpu" | "ram" | undefined;
54
+ formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
55
+ type?: "max" | "base" | "tip" | undefined;
56
+ }, {
57
+ amount: string | number;
58
+ } & {
59
+ unit?: "baseUnit" | "cpu" | "ram" | undefined;
60
+ formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
61
+ type?: "max" | "base" | "tip" | undefined;
62
+ }, unknown>, t.UndefinedC]>;
63
+ }>]>, t.TypeC<{
64
+ recipients: t.ArrayC<t.IntersectionC<[t.TypeC<{
65
+ address: t.PartialC<{
66
+ address: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
67
+ option: t.UnionC<[t.Type<{
68
+ [x: string]: unknown;
69
+ }, {
70
+ [x: string]: unknown;
71
+ }, unknown>, t.UndefinedC]>;
72
+ }>;
73
+ amount: t.TypeC<{
74
+ value: t.StringC;
75
+ symbol: t.StringC;
76
+ }>;
77
+ }>, t.PartialC<{
78
+ data: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
79
+ }>]>>;
80
+ }>, t.PartialC<{
81
+ addToStake: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
82
+ }>]>;
83
+ export type PolyxStakeIntent = t.TypeOf<typeof PolyxStakeIntent>;
@@ -0,0 +1,42 @@
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.PolyxStakeIntent = void 0;
27
+ const t = __importStar(require("io-ts"));
28
+ const substrateAccountBaseBuildOptions_1 = require("./substrateAccountBaseBuildOptions");
29
+ const stakeIntent_1 = require("./stakeIntent");
30
+ const recipientEntry_1 = require("./recipientEntry");
31
+ const utils_1 = require("../../../utils");
32
+ exports.PolyxStakeIntent = t.intersection([
33
+ stakeIntent_1.StakeIntent,
34
+ substrateAccountBaseBuildOptions_1.SubstrateAccountBaseBuildOptions,
35
+ t.type({
36
+ recipients: t.array(recipientEntry_1.RecipientEntry),
37
+ }),
38
+ t.partial({
39
+ addToStake: utils_1.optionalBoolean,
40
+ }),
41
+ ]);
42
+ //# sourceMappingURL=polyxStakeIntent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"polyxStakeIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/polyxStakeIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,yFAAsF;AACtF,+CAA4C;AAC5C,qDAAkD;AAClD,0CAAiD;AAKpC,QAAA,gBAAgB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC7C,yBAAW;IACX,mEAAgC;IAChC,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,+BAAc,CAAC;KACpC,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,UAAU,EAAE,uBAAe;KAC5B,CAAC;CACH,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitgo/public-types",
3
- "version": "5.2.0",
3
+ "version": "5.4.0",
4
4
  "description": "Collection of types exposed externally as part of the BitGo public API",
5
5
  "license": "UNLICENSED",
6
6
  "author": "",
@@ -74,6 +74,7 @@ export * from "./mmiSignTransactionIntent";
74
74
  export * from "./nearStakeIntent";
75
75
  export * from "./nearUnstakeIntent";
76
76
  export * from "./nearWithdrawIntent";
77
+ export * from "./polyxStakeIntent";
77
78
  export * from "./paymentIntent";
78
79
  export * from "./recipientEntry";
79
80
  export * from "./signMessageIntent";
@@ -33,6 +33,8 @@ import { MmiSignMessageIntent } from "./mmiSignMessageIntent";
33
33
  import { NearStakeIntent } from "./nearStakeIntent";
34
34
  import { NearUnstakeIntent } from "./nearUnstakeIntent";
35
35
  import { NearWithdrawIntent } from "./nearWithdrawIntent";
36
+ import { PolyxCreateAccountIntent } from "./polyxCreateAccountIntent";
37
+ import { PolyxStakeIntent } from "./polyxStakeIntent";
36
38
  import { SolAuthorizeIntent } from "./solAuthorizeIntent";
37
39
  import { SolClaimIntent } from "./solClaimIntent";
38
40
  import { SolCreateAssociatedTokenAccountIntent } from "./solCreateAssociatedTokenAccountIntent";
@@ -118,6 +120,8 @@ export const TransactionIntent = t.union([
118
120
  NearStakeIntent,
119
121
  NearUnstakeIntent,
120
122
  NearWithdrawIntent,
123
+ PolyxCreateAccountIntent,
124
+ PolyxStakeIntent,
121
125
  SolAuthorizeIntent,
122
126
  SolClaimIntent,
123
127
  SolCloseAssociatedTokenAccountIntent,
@@ -0,0 +1,25 @@
1
+ import * as t from "io-ts";
2
+ import { SubstrateAccountBaseBuildOptions } from "./substrateAccountBaseBuildOptions";
3
+ import { Optional, optionalNumber, optionalString } from "../../../utils";
4
+ import { AccountBaseCreateAccountIntent } from "./accountBaseCreateAccountIntent";
5
+ import { RecipientEntry } from "./recipientEntry";
6
+
7
+ /**
8
+ * @title POLYX Create Account Intent
9
+ */
10
+ export const PolyxCreateAccountIntent = t.intersection([
11
+ AccountBaseCreateAccountIntent,
12
+ SubstrateAccountBaseBuildOptions,
13
+ t.partial({
14
+ memo: optionalString,
15
+ }),
16
+ t.partial({
17
+ index: optionalNumber,
18
+ // recipients array can be undefined or empty if txn is for anonymous proxy
19
+ recipients: Optional(t.array(RecipientEntry)),
20
+ }),
21
+ ]);
22
+
23
+ export type PolyxCreateAccountIntent = t.TypeOf<
24
+ typeof PolyxCreateAccountIntent
25
+ >;
@@ -0,0 +1,21 @@
1
+ import * as t from "io-ts";
2
+ import { SubstrateAccountBaseBuildOptions } from "./substrateAccountBaseBuildOptions";
3
+ import { StakeIntent } from "./stakeIntent";
4
+ import { RecipientEntry } from "./recipientEntry";
5
+ import { optionalBoolean } from "../../../utils";
6
+
7
+ /**
8
+ * @title POLYX Stake Intent
9
+ */
10
+ export const PolyxStakeIntent = t.intersection([
11
+ StakeIntent,
12
+ SubstrateAccountBaseBuildOptions,
13
+ t.type({
14
+ recipients: t.array(RecipientEntry),
15
+ }),
16
+ t.partial({
17
+ addToStake: optionalBoolean,
18
+ }),
19
+ ]);
20
+
21
+ export type PolyxStakeIntent = t.TypeOf<typeof PolyxStakeIntent>;