@bitgo/public-types 4.16.0 → 4.16.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.
@@ -2812,7 +2812,114 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
2812
2812
|
value: string;
|
2813
2813
|
symbol: string;
|
2814
2814
|
}, unknown>, t.UndefinedC]>;
|
2815
|
-
}>]>, t.IntersectionC<[t.
|
2815
|
+
}>]>, t.IntersectionC<[t.PartialC<{
|
2816
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
2817
|
+
}>, t.TypeC<{
|
2818
|
+
intentType: t.LiteralC<"consolidate">;
|
2819
|
+
receiveAddress: t.StringC;
|
2820
|
+
}>, t.PartialC<{
|
2821
|
+
senderAddressIndex: t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>;
|
2822
|
+
consolidateId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
2823
|
+
recipients: t.UnionC<[t.Type<({
|
2824
|
+
address: {
|
2825
|
+
address?: string | undefined;
|
2826
|
+
option?: {
|
2827
|
+
[x: string]: unknown;
|
2828
|
+
} | undefined;
|
2829
|
+
};
|
2830
|
+
amount: {
|
2831
|
+
value: string;
|
2832
|
+
symbol: string;
|
2833
|
+
};
|
2834
|
+
} & {
|
2835
|
+
data?: string | undefined;
|
2836
|
+
})[], ({
|
2837
|
+
address: {
|
2838
|
+
address?: string | undefined;
|
2839
|
+
option?: {
|
2840
|
+
[x: string]: unknown;
|
2841
|
+
} | undefined;
|
2842
|
+
};
|
2843
|
+
amount: {
|
2844
|
+
value: string;
|
2845
|
+
symbol: string;
|
2846
|
+
};
|
2847
|
+
} & {
|
2848
|
+
data?: string | undefined;
|
2849
|
+
})[], unknown>, t.UndefinedC]>;
|
2850
|
+
keepAlive: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
|
2851
|
+
}>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
2852
|
+
intentType: t.KeyofC<{
|
2853
|
+
payment: t.LiteralC<"payment">;
|
2854
|
+
transferToken: t.LiteralC<"transferToken">;
|
2855
|
+
consolidate: t.LiteralC<"consolidate">;
|
2856
|
+
consolidateToken: t.LiteralC<"consolidateToken">;
|
2857
|
+
fanout: t.LiteralC<"fanout">;
|
2858
|
+
stake: t.LiteralC<"stake">;
|
2859
|
+
unstake: t.LiteralC<"unstake">;
|
2860
|
+
delegate: t.LiteralC<"delegate">;
|
2861
|
+
undelegate: t.LiteralC<"undelegate">;
|
2862
|
+
switchValidator: t.LiteralC<"switchValidator">;
|
2863
|
+
claim: t.LiteralC<"claim">;
|
2864
|
+
stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
|
2865
|
+
pledge: t.LiteralC<"pledge">;
|
2866
|
+
voteDelegation: t.LiteralC<"voteDelegation">;
|
2867
|
+
vote: t.LiteralC<"vote">;
|
2868
|
+
createAccount: t.LiteralC<"createAccount">;
|
2869
|
+
updateAccount: t.LiteralC<"updateAccount">;
|
2870
|
+
addTrustLine: t.LiteralC<"addTrustLine">;
|
2871
|
+
removeTrustLine: t.LiteralC<"removeTrustLine">;
|
2872
|
+
signMessage: t.LiteralC<"signMessage">;
|
2873
|
+
signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
|
2874
|
+
enableToken: t.LiteralC<"enableToken">;
|
2875
|
+
authorize: t.LiteralC<"authorize">;
|
2876
|
+
acceleration: t.LiteralC<"acceleration">;
|
2877
|
+
fillNonce: t.LiteralC<"fillNonce">;
|
2878
|
+
walletRecovery: t.LiteralC<"walletRecovery">;
|
2879
|
+
contractCall: t.LiteralC<"contractCall">;
|
2880
|
+
deactivate: t.LiteralC<"deactivate">;
|
2881
|
+
customTx: t.LiteralC<"customTx">;
|
2882
|
+
closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
|
2883
|
+
}>;
|
2884
|
+
}>, t.PartialC<{
|
2885
|
+
sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
2886
|
+
comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
2887
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
2888
|
+
}>]>, t.TypeC<{
|
2889
|
+
intentType: t.LiteralC<"payment">;
|
2890
|
+
recipients: t.ArrayC<t.IntersectionC<[t.TypeC<{
|
2891
|
+
address: t.PartialC<{
|
2892
|
+
address: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
2893
|
+
option: t.UnionC<[t.Type<{
|
2894
|
+
[x: string]: unknown;
|
2895
|
+
}, {
|
2896
|
+
[x: string]: unknown;
|
2897
|
+
}, unknown>, t.UndefinedC]>;
|
2898
|
+
}>;
|
2899
|
+
amount: t.TypeC<{
|
2900
|
+
value: t.StringC;
|
2901
|
+
symbol: t.StringC;
|
2902
|
+
}>;
|
2903
|
+
}>, t.PartialC<{
|
2904
|
+
data: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
2905
|
+
}>]>>;
|
2906
|
+
}>]>, t.IntersectionC<[t.PartialC<{
|
2907
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
2908
|
+
}>, t.PartialC<{
|
2909
|
+
fee: t.UnionC<[t.Type<{
|
2910
|
+
amount: string | number;
|
2911
|
+
} & {
|
2912
|
+
unit?: "baseUnit" | "cpu" | "ram" | undefined;
|
2913
|
+
formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
|
2914
|
+
type?: "max" | "base" | "tip" | undefined;
|
2915
|
+
}, {
|
2916
|
+
amount: string | number;
|
2917
|
+
} & {
|
2918
|
+
unit?: "baseUnit" | "cpu" | "ram" | undefined;
|
2919
|
+
formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
|
2920
|
+
type?: "max" | "base" | "tip" | undefined;
|
2921
|
+
}, unknown>, t.UndefinedC]>;
|
2922
|
+
}>]>]>, t.IntersectionC<[t.IntersectionC<[t.PartialC<{
|
2816
2923
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
2817
2924
|
}>, t.TypeC<{
|
2818
2925
|
intentType: t.LiteralC<"consolidate">;
|
@@ -66,6 +66,8 @@ const solUnstakeIntent_1 = require("./solUnstakeIntent");
|
|
66
66
|
const suiCustomTxIntent_1 = require("./suiCustomTxIntent");
|
67
67
|
const suiStakingIntent_1 = require("./suiStakingIntent");
|
68
68
|
const suiUnstakingIntent_1 = require("./suiUnstakingIntent");
|
69
|
+
const substrateConsolidateIntent_1 = require("./substrateConsolidateIntent");
|
70
|
+
const substratePaymentIntent_1 = require("./substratePaymentIntent");
|
69
71
|
const tonDelegateIntent_1 = require("./tonDelegateIntent");
|
70
72
|
const tonPaymentIntent_1 = require("./tonPaymentIntent");
|
71
73
|
const tonUndelegateIntent_1 = require("./tonUndelegateIntent");
|
@@ -138,6 +140,8 @@ exports.TransactionIntent = t.union([
|
|
138
140
|
solPaymentIntent_1.SolPaymentIntent,
|
139
141
|
solStakeIntent_1.SolStakeIntent,
|
140
142
|
solUnstakeIntent_1.SolUnstakeIntent,
|
143
|
+
substrateConsolidateIntent_1.SubstrateConsolidateIntent,
|
144
|
+
substratePaymentIntent_1.SubstratePaymentIntent,
|
141
145
|
suiConsolidateIntent_1.SuiConsolidateIntent,
|
142
146
|
suiCustomTxIntent_1.SuiCustomTxIntent,
|
143
147
|
suiPaymentIntent_1.SuiPaymentIntent,
|
@@ -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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;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,uCAAkB;IAClB,uCAAkB;IAClB,yCAAmB;IAKnB,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;AACxD,6DAA0D;AAC1D,6DAA0D;AAC1D,qDAAkD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Ac;IACd,mCAAgB;IAChB,uDAA0B;IAC1B,+CAAsB;IACtB,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;IAClB,uCAAkB;IAClB,yCAAmB;IAKnB,uBAAU;CACX,CAAC,CAAC"}
|
package/package.json
CHANGED
@@ -40,6 +40,8 @@ import { SolUnstakeIntent } from "./solUnstakeIntent";
|
|
40
40
|
import { SuiCustomTxIntent } from "./suiCustomTxIntent";
|
41
41
|
import { SuiStakingIntent } from "./suiStakingIntent";
|
42
42
|
import { SuiUnstakingIntent } from "./suiUnstakingIntent";
|
43
|
+
import { SubstrateConsolidateIntent } from "./substrateConsolidateIntent";
|
44
|
+
import { SubstratePaymentIntent } from "./substratePaymentIntent";
|
43
45
|
import { TonDelegateIntent } from "./tonDelegateIntent";
|
44
46
|
import { TonPaymentIntent } from "./tonPaymentIntent";
|
45
47
|
import { TonUndelegateIntent } from "./tonUndelegateIntent";
|
@@ -113,6 +115,8 @@ export const TransactionIntent = t.union([
|
|
113
115
|
SolPaymentIntent,
|
114
116
|
SolStakeIntent,
|
115
117
|
SolUnstakeIntent,
|
118
|
+
SubstrateConsolidateIntent,
|
119
|
+
SubstratePaymentIntent,
|
116
120
|
SuiConsolidateIntent,
|
117
121
|
SuiCustomTxIntent,
|
118
122
|
SuiPaymentIntent,
|