@bitgo/public-types 4.15.1 → 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.
Files changed (21) hide show
  1. package/dist/src/schema/transactionRequest/intents/index.d.ts +6 -0
  2. package/dist/src/schema/transactionRequest/intents/index.js +6 -0
  3. package/dist/src/schema/transactionRequest/intents/index.js.map +1 -1
  4. package/dist/src/schema/transactionRequest/intents/intent.d.ts +108 -1
  5. package/dist/src/schema/transactionRequest/intents/intent.js +4 -0
  6. package/dist/src/schema/transactionRequest/intents/intent.js.map +1 -1
  7. package/dist/src/schema/transactionRequest/intents/substrateAccountBaseBuildOptions.d.ts +19 -0
  8. package/dist/src/schema/transactionRequest/intents/substrateAccountBaseBuildOptions.js +37 -0
  9. package/dist/src/schema/transactionRequest/intents/substrateAccountBaseBuildOptions.js.map +1 -0
  10. package/dist/src/schema/transactionRequest/intents/substrateConsolidateIntent.d.ts +39 -0
  11. package/dist/src/schema/transactionRequest/intents/substrateConsolidateIntent.js +6 -0
  12. package/dist/src/schema/transactionRequest/intents/substrateConsolidateIntent.js.map +1 -0
  13. package/dist/src/schema/transactionRequest/intents/substratePaymentIntent.d.ts +74 -0
  14. package/dist/src/schema/transactionRequest/intents/substratePaymentIntent.js +34 -0
  15. package/dist/src/schema/transactionRequest/intents/substratePaymentIntent.js.map +1 -0
  16. package/package.json +2 -2
  17. package/src/schema/transactionRequest/intents/index.ts +6 -0
  18. package/src/schema/transactionRequest/intents/intent.ts +4 -0
  19. package/src/schema/transactionRequest/intents/substrateAccountBaseBuildOptions.ts +15 -0
  20. package/src/schema/transactionRequest/intents/substrateConsolidateIntent.ts +11 -0
  21. package/src/schema/transactionRequest/intents/substratePaymentIntent.ts +13 -0
@@ -86,6 +86,12 @@ export * from "./solUnstakeIntent";
86
86
  export * from "./stakeClaimRewardsIntent";
87
87
  export * from "./stakeIntent";
88
88
  export * from "./stakeSwitchValidatorIntent";
89
+ export * from "./substrateAccountBaseBuildOptions";
90
+ export * from "./substrateBaseIntent";
91
+ export * from "./substrateConsolidateIntent";
92
+ export * from "./substrateFeeOptionFormula";
93
+ export * from "./substrateFeeOptions";
94
+ export * from "./substratePaymentIntent";
89
95
  export * from "./suiBuildOptions";
90
96
  export * from "./suiConsolidateIntent";
91
97
  export * from "./suiCustomTxIntent";
@@ -102,6 +102,12 @@ __exportStar(require("./solUnstakeIntent"), exports);
102
102
  __exportStar(require("./stakeClaimRewardsIntent"), exports);
103
103
  __exportStar(require("./stakeIntent"), exports);
104
104
  __exportStar(require("./stakeSwitchValidatorIntent"), exports);
105
+ __exportStar(require("./substrateAccountBaseBuildOptions"), exports);
106
+ __exportStar(require("./substrateBaseIntent"), exports);
107
+ __exportStar(require("./substrateConsolidateIntent"), exports);
108
+ __exportStar(require("./substrateFeeOptionFormula"), exports);
109
+ __exportStar(require("./substrateFeeOptions"), exports);
110
+ __exportStar(require("./substratePaymentIntent"), exports);
105
111
  __exportStar(require("./suiBuildOptions"), exports);
106
112
  __exportStar(require("./suiConsolidateIntent"), exports);
107
113
  __exportStar(require("./suiCustomTxIntent"), 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,+CAA6B;AAC7B,oDAAkC;AAClC,gEAA8C;AAC9C,uDAAqC;AACrC,sDAAoC;AACpC,+DAA6C;AAC7C,wDAAsC;AACtC,gEAA8C;AAC9C,2DAAyC;AACzC,uDAAqC;AACrC,0DA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ceRoot":"","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,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,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,qEAAmD;AACnD,wDAAsC;AACtC,+DAA6C;AAC7C,8DAA4C;AAC5C,wDAAsC;AACtC,2DAAyC;AACzC,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,mDAAiC"}
@@ -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.IntersectionC<[t.PartialC<{
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,2DAAwD;AACxD,+DAA4D;AAC5D,+EAA4E;AAC5E,+DAA4D;AAC5D,2DAAwD;AACxD,+EAA4E;AAC5E,+DAA4D;AAC5D,iEAA8D;AAC9D,qEAAkE;AAClE,yDAAsD;AACtD,yDAAsD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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;AAClD,mGAAgG;AAChG,+DAA4D;AAC5D,2DAAwD;AACxD,yDAAsD;AACtD,qDAAkD;AAClD,yDAAsD;AACtD,2DAAwD;AACxD,yDAAsD;AACtD,6DAA0D;AAC1D,6EAA0E;AAC1E,qEAAkE;A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ChB,yCAAmB;IACnB,2CAAoB;IACpB,yDAA2B;IAC3B,6CAAqB;IACrB,iDAAuB;IACvB,uCAAkB;IAClB,uCAAkB;IAClB,uCAAkB;IAClB,yCAAmB;IAKnB,uBAAU;CACX,CAAC,CAAC"}
@@ -0,0 +1,19 @@
1
+ import * as t from "io-ts";
2
+ export declare const SubstrateAccountBaseBuildOptions: t.IntersectionC<[t.PartialC<{
3
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
4
+ }>, t.PartialC<{
5
+ fee: t.UnionC<[t.Type<{
6
+ amount: string | number;
7
+ } & {
8
+ unit?: "baseUnit" | "cpu" | "ram" | undefined;
9
+ formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
10
+ type?: "max" | "base" | "tip" | undefined;
11
+ }, {
12
+ amount: string | number;
13
+ } & {
14
+ unit?: "baseUnit" | "cpu" | "ram" | undefined;
15
+ formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
16
+ type?: "max" | "base" | "tip" | undefined;
17
+ }, unknown>, t.UndefinedC]>;
18
+ }>]>;
19
+ export type SubstrateAccountBaseBuildOptions = t.TypeOf<typeof SubstrateAccountBaseBuildOptions>;
@@ -0,0 +1,37 @@
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.SubstrateAccountBaseBuildOptions = void 0;
27
+ const t = __importStar(require("io-ts"));
28
+ const accountBaseBuildOptions_1 = require("./accountBaseBuildOptions");
29
+ const substrateFeeOptions_1 = require("./substrateFeeOptions");
30
+ const utils_1 = require("../../../utils");
31
+ exports.SubstrateAccountBaseBuildOptions = t.intersection([
32
+ accountBaseBuildOptions_1.AccountBaseBuildOptions,
33
+ t.partial({
34
+ fee: (0, utils_1.Optional)(substrateFeeOptions_1.SubstrateFeeOptions),
35
+ }),
36
+ ]);
37
+ //# sourceMappingURL=substrateAccountBaseBuildOptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"substrateAccountBaseBuildOptions.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/substrateAccountBaseBuildOptions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uEAAoE;AACpE,+DAA4D;AAC5D,0CAA0C;AAE7B,QAAA,gCAAgC,GAAG,CAAC,CAAC,YAAY,CAAC;IAC7D,iDAAuB;IACvB,CAAC,CAAC,OAAO,CAAC;QACR,GAAG,EAAE,IAAA,gBAAQ,EAAC,yCAAmB,CAAC;KACnC,CAAC;CACH,CAAC,CAAC"}
@@ -0,0 +1,39 @@
1
+ import * as t from "io-ts";
2
+ export declare const SubstrateConsolidateIntent: t.IntersectionC<[t.PartialC<{
3
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
4
+ }>, t.TypeC<{
5
+ intentType: t.LiteralC<"consolidate">;
6
+ receiveAddress: t.StringC;
7
+ }>, t.PartialC<{
8
+ senderAddressIndex: t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>;
9
+ consolidateId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
10
+ recipients: t.UnionC<[t.Type<({
11
+ address: {
12
+ address?: string | undefined;
13
+ option?: {
14
+ [x: string]: unknown;
15
+ } | undefined;
16
+ };
17
+ amount: {
18
+ value: string;
19
+ symbol: string;
20
+ };
21
+ } & {
22
+ data?: string | undefined;
23
+ })[], ({
24
+ address: {
25
+ address?: string | undefined;
26
+ option?: {
27
+ [x: string]: unknown;
28
+ } | undefined;
29
+ };
30
+ amount: {
31
+ value: string;
32
+ symbol: string;
33
+ };
34
+ } & {
35
+ data?: string | undefined;
36
+ })[], unknown>, t.UndefinedC]>;
37
+ keepAlive: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
38
+ }>]>;
39
+ export type SubstrateConsolidateIntent = t.TypeOf<typeof SubstrateConsolidateIntent>;
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SubstrateConsolidateIntent = void 0;
4
+ const accountBaseConsolidateIntent_1 = require("./accountBaseConsolidateIntent");
5
+ exports.SubstrateConsolidateIntent = accountBaseConsolidateIntent_1.AccountBaseConsolidateIntent;
6
+ //# sourceMappingURL=substrateConsolidateIntent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"substrateConsolidateIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/substrateConsolidateIntent.ts"],"names":[],"mappings":";;;AACA,iFAA8E;AAKjE,QAAA,0BAA0B,GAAG,2DAA4B,CAAC"}
@@ -0,0 +1,74 @@
1
+ import * as t from "io-ts";
2
+ export declare const SubstratePaymentIntent: 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
+ intentType: t.LiteralC<"payment">;
41
+ recipients: t.ArrayC<t.IntersectionC<[t.TypeC<{
42
+ address: t.PartialC<{
43
+ address: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
44
+ option: t.UnionC<[t.Type<{
45
+ [x: string]: unknown;
46
+ }, {
47
+ [x: string]: unknown;
48
+ }, unknown>, t.UndefinedC]>;
49
+ }>;
50
+ amount: t.TypeC<{
51
+ value: t.StringC;
52
+ symbol: t.StringC;
53
+ }>;
54
+ }>, t.PartialC<{
55
+ data: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
56
+ }>]>>;
57
+ }>]>, t.IntersectionC<[t.PartialC<{
58
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
59
+ }>, t.PartialC<{
60
+ fee: t.UnionC<[t.Type<{
61
+ amount: string | number;
62
+ } & {
63
+ unit?: "baseUnit" | "cpu" | "ram" | undefined;
64
+ formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
65
+ type?: "max" | "base" | "tip" | undefined;
66
+ }, {
67
+ amount: string | number;
68
+ } & {
69
+ unit?: "baseUnit" | "cpu" | "ram" | undefined;
70
+ formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
71
+ type?: "max" | "base" | "tip" | undefined;
72
+ }, unknown>, t.UndefinedC]>;
73
+ }>]>]>;
74
+ export type SubstratePaymentIntent = t.TypeOf<typeof SubstratePaymentIntent>;
@@ -0,0 +1,34 @@
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.SubstratePaymentIntent = void 0;
27
+ const t = __importStar(require("io-ts"));
28
+ const substrateAccountBaseBuildOptions_1 = require("./substrateAccountBaseBuildOptions");
29
+ const paymentIntent_1 = require("./paymentIntent");
30
+ exports.SubstratePaymentIntent = t.intersection([
31
+ paymentIntent_1.PaymentIntent,
32
+ substrateAccountBaseBuildOptions_1.SubstrateAccountBaseBuildOptions,
33
+ ]);
34
+ //# sourceMappingURL=substratePaymentIntent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"substratePaymentIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/substratePaymentIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,yFAAsF;AACtF,mDAAgD;AAKnC,QAAA,sBAAsB,GAAG,CAAC,CAAC,YAAY,CAAC;IACnD,6BAAa;IACb,mEAAgC;CACjC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitgo/public-types",
3
- "version": "4.15.1",
3
+ "version": "4.16.1",
4
4
  "description": "Collection of types exposed externally as part of the BitGo public API",
5
5
  "license": "UNLICENSED",
6
6
  "author": "",
@@ -36,6 +36,6 @@
36
36
  "prettier": "^3.2.4",
37
37
  "semantic-release": "23.0.2",
38
38
  "typescript": "5.6.3",
39
- "vitest": "1.3.0"
39
+ "vitest": "1.6.1"
40
40
  }
41
41
  }
@@ -86,6 +86,12 @@ export * from "./solUnstakeIntent";
86
86
  export * from "./stakeClaimRewardsIntent";
87
87
  export * from "./stakeIntent";
88
88
  export * from "./stakeSwitchValidatorIntent";
89
+ export * from "./substrateAccountBaseBuildOptions";
90
+ export * from "./substrateBaseIntent";
91
+ export * from "./substrateConsolidateIntent";
92
+ export * from "./substrateFeeOptionFormula";
93
+ export * from "./substrateFeeOptions";
94
+ export * from "./substratePaymentIntent";
89
95
  export * from "./suiBuildOptions";
90
96
  export * from "./suiConsolidateIntent";
91
97
  export * from "./suiCustomTxIntent";
@@ -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,
@@ -0,0 +1,15 @@
1
+ import * as t from "io-ts";
2
+ import { AccountBaseBuildOptions } from "./accountBaseBuildOptions";
3
+ import { SubstrateFeeOptions } from "./substrateFeeOptions";
4
+ import { Optional } from "../../../utils";
5
+
6
+ export const SubstrateAccountBaseBuildOptions = t.intersection([
7
+ AccountBaseBuildOptions,
8
+ t.partial({
9
+ fee: Optional(SubstrateFeeOptions),
10
+ }),
11
+ ]);
12
+
13
+ export type SubstrateAccountBaseBuildOptions = t.TypeOf<
14
+ typeof SubstrateAccountBaseBuildOptions
15
+ >;
@@ -0,0 +1,11 @@
1
+ import * as t from "io-ts";
2
+ import { AccountBaseConsolidateIntent } from "./accountBaseConsolidateIntent";
3
+
4
+ /**
5
+ * @title Substrate Consolidate Intent
6
+ */
7
+ export const SubstrateConsolidateIntent = AccountBaseConsolidateIntent;
8
+
9
+ export type SubstrateConsolidateIntent = t.TypeOf<
10
+ typeof SubstrateConsolidateIntent
11
+ >;
@@ -0,0 +1,13 @@
1
+ import * as t from "io-ts";
2
+ import { SubstrateAccountBaseBuildOptions } from "./substrateAccountBaseBuildOptions";
3
+ import { PaymentIntent } from "./paymentIntent";
4
+
5
+ /**
6
+ * @title Substrate Payment Intent
7
+ */
8
+ export const SubstratePaymentIntent = t.intersection([
9
+ PaymentIntent,
10
+ SubstrateAccountBaseBuildOptions,
11
+ ]);
12
+
13
+ export type SubstratePaymentIntent = t.TypeOf<typeof SubstratePaymentIntent>;