@bitgo/public-types 5.1.1 → 5.3.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.
@@ -2781,6 +2781,100 @@ 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]>;
2784
2878
  }>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
2785
2879
  intentType: t.KeyofC<{
2786
2880
  payment: t.LiteralC<"payment">;
@@ -59,6 +59,7 @@ 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");
62
63
  const solAuthorizeIntent_1 = require("./solAuthorizeIntent");
63
64
  const solClaimIntent_1 = require("./solClaimIntent");
64
65
  const solCreateAssociatedTokenAccountIntent_1 = require("./solCreateAssociatedTokenAccountIntent");
@@ -143,6 +144,7 @@ exports.TransactionIntent = t.union([
143
144
  nearStakeIntent_1.NearStakeIntent,
144
145
  nearUnstakeIntent_1.NearUnstakeIntent,
145
146
  nearWithdrawIntent_1.NearWithdrawIntent,
147
+ polyxCreateAccountIntent_1.PolyxCreateAccountIntent,
146
148
  solAuthorizeIntent_1.SolAuthorizeIntent,
147
149
  solClaimIntent_1.SolClaimIntent,
148
150
  solCloseAssociatedTokenAccountIntent_1.SolCloseAssociatedTokenAccountIntent,
@@ -1 +1 @@
1
- {"version":3,"file":"intent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/intent.ts"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"intent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest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AA,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC;IACvC,2CAAoB;IACpB,mCAAgB;IAChB,uDAA0B;IAC1B,+BAAc;IACd,mCAAgB;IAChB,iDAAuB;IACvB,qCAAiB;IACjB,iCAAe;IACf,qCAAiB;IACjB,uCAAkB;IAClB,6DAA6B;IAC7B,mDAAwB;IACxB,qCAAiB;IACjB,yCAAmB;IACnB,yDAA2B;IAC3B,yCAAmB;IACnB,qCAAiB;IACjB,yDAA2B;IAC3B,yCAAmB;IACnB,2CAAoB;IACpB,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,mDAAwB;IACxB,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"}
@@ -8,6 +8,11 @@ export declare const AddWalletWebhookRequestBody: {
8
8
  listenToFailureStates: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
9
9
  txRequestStates: t.UnionC<[t.Type<("initialized" | "signed" | "delivered" | "rejected" | "pendingApproval" | "canceled" | "pendingDelivery" | "pendingUserSignature" | "pendingUserCommitment" | "pendingUserRShare" | "pendingUserGShare" | "readyToSend" | "failed")[], ("initialized" | "signed" | "delivered" | "rejected" | "pendingApproval" | "canceled" | "pendingDelivery" | "pendingUserSignature" | "pendingUserCommitment" | "pendingUserRShare" | "pendingUserGShare" | "readyToSend" | "failed")[], unknown>, t.UndefinedC]>;
10
10
  txRequestTransactionStates: t.UnionC<[t.Type<("initialized" | "pendingSignature" | "eddsaPendingCommitment" | "eddsaPendingRShare" | "eddsaPendingGShare" | "ecdsaMPCv2Round1" | "ecdsaMPCv2Round2" | "ecdsaMPCv2Round3" | "readyToCombineShares" | "signed" | "held" | "delivered" | "invalidSignature" | "rejected")[], ("initialized" | "pendingSignature" | "eddsaPendingCommitment" | "eddsaPendingRShare" | "eddsaPendingGShare" | "ecdsaMPCv2Round1" | "ecdsaMPCv2Round2" | "ecdsaMPCv2Round3" | "readyToCombineShares" | "signed" | "held" | "delivered" | "invalidSignature" | "rejected")[], unknown>, t.UndefinedC]>;
11
+ customHttpHeaders: t.UnionC<[t.Type<{
12
+ [x: string]: string;
13
+ }, {
14
+ [x: string]: string;
15
+ }, unknown>, t.UndefinedC]>;
11
16
  };
12
17
  export declare const AddWalletWebhookRequestBodyC: t.TypeC<{
13
18
  type: t.KeyofC<typeof import("./webhookType").WalletWebhookTypeEnum>;
@@ -18,5 +23,10 @@ export declare const AddWalletWebhookRequestBodyC: t.TypeC<{
18
23
  listenToFailureStates: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
19
24
  txRequestStates: t.UnionC<[t.Type<("initialized" | "signed" | "delivered" | "rejected" | "pendingApproval" | "canceled" | "pendingDelivery" | "pendingUserSignature" | "pendingUserCommitment" | "pendingUserRShare" | "pendingUserGShare" | "readyToSend" | "failed")[], ("initialized" | "signed" | "delivered" | "rejected" | "pendingApproval" | "canceled" | "pendingDelivery" | "pendingUserSignature" | "pendingUserCommitment" | "pendingUserRShare" | "pendingUserGShare" | "readyToSend" | "failed")[], unknown>, t.UndefinedC]>;
20
25
  txRequestTransactionStates: t.UnionC<[t.Type<("initialized" | "pendingSignature" | "eddsaPendingCommitment" | "eddsaPendingRShare" | "eddsaPendingGShare" | "ecdsaMPCv2Round1" | "ecdsaMPCv2Round2" | "ecdsaMPCv2Round3" | "readyToCombineShares" | "signed" | "held" | "delivered" | "invalidSignature" | "rejected")[], ("initialized" | "pendingSignature" | "eddsaPendingCommitment" | "eddsaPendingRShare" | "eddsaPendingGShare" | "ecdsaMPCv2Round1" | "ecdsaMPCv2Round2" | "ecdsaMPCv2Round3" | "readyToCombineShares" | "signed" | "held" | "delivered" | "invalidSignature" | "rejected")[], unknown>, t.UndefinedC]>;
26
+ customHttpHeaders: t.UnionC<[t.Type<{
27
+ [x: string]: string;
28
+ }, {
29
+ [x: string]: string;
30
+ }, unknown>, t.UndefinedC]>;
21
31
  }>;
22
32
  export type AddWalletWebhookRequestBody = t.TypeOf<typeof AddWalletWebhookRequestBodyC>;
@@ -39,6 +39,7 @@ exports.AddWalletWebhookRequestBody = {
39
39
  listenToFailureStates: (0, optional_1.Optional)(t.boolean),
40
40
  txRequestStates: (0, optional_1.Optional)(t.array(transactionRequestState_1.TransactionRequestState)),
41
41
  txRequestTransactionStates: (0, optional_1.Optional)(t.array(transactionState_1.TransactionState)),
42
+ customHttpHeaders: (0, optional_1.Optional)(t.record(t.string, t.string)),
42
43
  };
43
44
  exports.AddWalletWebhookRequestBodyC = t.type({
44
45
  ...exports.AddWalletWebhookRequestBody,
@@ -1 +1 @@
1
- {"version":3,"file":"addWalletWebhookRequest.js","sourceRoot":"","sources":["../../../../src/schema/webhook/addWalletWebhookRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA+D;AAC/D,mDAAgD;AAChD,2FAAwF;AACxF,6EAA0E;AAC1E,+CAAkD;AAErC,QAAA,2BAA2B,GAAG;IAEzC,IAAI,EAAE,+BAAiB;IAMvB,GAAG,EAAE,4BAAc;IAEnB,KAAK,EAAE,IAAA,mBAAQ,EAAC,CAAC,CAAC,MAAM,CAAC;IAOzB,gBAAgB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,8BAAgB,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC;IAMpE,QAAQ,EAAE,IAAA,mBAAQ,EAAC,CAAC,CAAC,OAAO,CAAC;IAE7B,qBAAqB,EAAE,IAAA,mBAAQ,EAAC,CAAC,CAAC,OAAO,CAAC;IAC1C,eAAe,EAAE,IAAA,mBAAQ,EAAC,CAAC,CAAC,KAAK,CAAC,iDAA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-1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitgo/public-types",
3
- "version": "5.1.1",
3
+ "version": "5.3.0",
4
4
  "description": "Collection of types exposed externally as part of the BitGo public API",
5
5
  "license": "UNLICENSED",
6
6
  "author": "",
@@ -33,6 +33,7 @@ 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";
36
37
  import { SolAuthorizeIntent } from "./solAuthorizeIntent";
37
38
  import { SolClaimIntent } from "./solClaimIntent";
38
39
  import { SolCreateAssociatedTokenAccountIntent } from "./solCreateAssociatedTokenAccountIntent";
@@ -118,6 +119,7 @@ export const TransactionIntent = t.union([
118
119
  NearStakeIntent,
119
120
  NearUnstakeIntent,
120
121
  NearWithdrawIntent,
122
+ PolyxCreateAccountIntent,
121
123
  SolAuthorizeIntent,
122
124
  SolClaimIntent,
123
125
  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
+ >;
@@ -33,6 +33,7 @@ export const AddWalletWebhookRequestBody = {
33
33
  listenToFailureStates: Optional(t.boolean),
34
34
  txRequestStates: Optional(t.array(TransactionRequestState)),
35
35
  txRequestTransactionStates: Optional(t.array(TransactionState)),
36
+ customHttpHeaders: Optional(t.record(t.string, t.string)),
36
37
  };
37
38
  export const AddWalletWebhookRequestBodyC = t.type({
38
39
  ...AddWalletWebhookRequestBody,