@bitgo/public-types 2.43.0 → 3.1.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.
Files changed (87) hide show
  1. package/dist/src/schema/transactionRequest/intents/accelerationIntent.d.ts +1 -0
  2. package/dist/src/schema/transactionRequest/intents/accountBaseCreateAccountIntent.d.ts +1 -0
  3. package/dist/src/schema/transactionRequest/intents/accountBaseUpdateAccountIntent.d.ts +1 -0
  4. package/dist/src/schema/transactionRequest/intents/adaPaymentIntent.d.ts +1 -0
  5. package/dist/src/schema/transactionRequest/intents/adaPledgeIntent.d.ts +1 -0
  6. package/dist/src/schema/transactionRequest/intents/adaStakeClaimRewardsIntent.d.ts +1 -0
  7. package/dist/src/schema/transactionRequest/intents/adaStakeIntent.d.ts +1 -0
  8. package/dist/src/schema/transactionRequest/intents/adaUnstakeIntent.d.ts +1 -0
  9. package/dist/src/schema/transactionRequest/intents/atomPaymentIntent.d.ts +1 -0
  10. package/dist/src/schema/transactionRequest/intents/atomStakeIntent.d.ts +1 -0
  11. package/dist/src/schema/transactionRequest/intents/atomUnstakeIntent.d.ts +1 -0
  12. package/dist/src/schema/transactionRequest/intents/atomWithdrawIntent.d.ts +1 -0
  13. package/dist/src/schema/transactionRequest/intents/baseIntent.d.ts +2 -0
  14. package/dist/src/schema/transactionRequest/intents/baseStakeIntent.d.ts +1 -0
  15. package/dist/src/schema/transactionRequest/intents/bscDelegateIntent.d.ts +1 -0
  16. package/dist/src/schema/transactionRequest/intents/bscStakeClaimRewardsIntent.d.ts +1 -0
  17. package/dist/src/schema/transactionRequest/intents/bscUndelegateIntent.d.ts +1 -0
  18. package/dist/src/schema/transactionRequest/intents/bscWithdrawUndelegateIntent.d.ts +1 -0
  19. package/dist/src/schema/transactionRequest/intents/consolidateTokenIntent.d.ts +1 -0
  20. package/dist/src/schema/transactionRequest/intents/cosmosPaymentIntent.d.ts +1 -0
  21. package/dist/src/schema/transactionRequest/intents/cosmosStakeIntent.d.ts +1 -0
  22. package/dist/src/schema/transactionRequest/intents/cosmosSwitchValidatorIntent.d.ts +1 -0
  23. package/dist/src/schema/transactionRequest/intents/cosmosUnstakeIntent.d.ts +1 -0
  24. package/dist/src/schema/transactionRequest/intents/cosmosWithdrawIntent.d.ts +1 -0
  25. package/dist/src/schema/transactionRequest/intents/dotBaseIntent.d.ts +1 -0
  26. package/dist/src/schema/transactionRequest/intents/dotCreateAccountIntent.d.ts +1 -0
  27. package/dist/src/schema/transactionRequest/intents/dotPaymentIntent.d.ts +1 -0
  28. package/dist/src/schema/transactionRequest/intents/dotStakingIntent.d.ts +1 -0
  29. package/dist/src/schema/transactionRequest/intents/dotUnstakingIntent.d.ts +1 -0
  30. package/dist/src/schema/transactionRequest/intents/dotWithdrawStakeIntent.d.ts +1 -0
  31. package/dist/src/schema/transactionRequest/intents/enableTokenIntent.d.ts +1 -0
  32. package/dist/src/schema/transactionRequest/intents/ethAccelerationIntent.d.ts +1 -0
  33. package/dist/src/schema/transactionRequest/intents/ethConsolidateTokenIntent.d.ts +1 -0
  34. package/dist/src/schema/transactionRequest/intents/ethFillNonceIntent.d.ts +1 -0
  35. package/dist/src/schema/transactionRequest/intents/ethPaymentIntent.d.ts +1 -0
  36. package/dist/src/schema/transactionRequest/intents/ethStakingIntent.d.ts +1 -0
  37. package/dist/src/schema/transactionRequest/intents/ethTransferTokenIntent.d.ts +1 -0
  38. package/dist/src/schema/transactionRequest/intents/fillNonceIntent.d.ts +1 -0
  39. package/dist/src/schema/transactionRequest/intents/index.d.ts +1 -0
  40. package/dist/src/schema/transactionRequest/intents/index.js +1 -0
  41. package/dist/src/schema/transactionRequest/intents/index.js.map +1 -1
  42. package/dist/src/schema/transactionRequest/intents/intent.d.ts +96 -0
  43. package/dist/src/schema/transactionRequest/intents/intent.js +2 -0
  44. package/dist/src/schema/transactionRequest/intents/intent.js.map +1 -1
  45. package/dist/src/schema/transactionRequest/intents/intentType.d.ts +2 -0
  46. package/dist/src/schema/transactionRequest/intents/intentType.js +1 -0
  47. package/dist/src/schema/transactionRequest/intents/intentType.js.map +1 -1
  48. package/dist/src/schema/transactionRequest/intents/lightningPaymentIntent.d.ts +1 -0
  49. package/dist/src/schema/transactionRequest/intents/mmiSignMessageIntent.d.ts +1 -0
  50. package/dist/src/schema/transactionRequest/intents/mmiSignTransactionIntent.d.ts +1 -0
  51. package/dist/src/schema/transactionRequest/intents/nearStakeIntent.d.ts +1 -0
  52. package/dist/src/schema/transactionRequest/intents/nearUnstakeIntent.d.ts +1 -0
  53. package/dist/src/schema/transactionRequest/intents/nearWithdrawIntent.d.ts +1 -0
  54. package/dist/src/schema/transactionRequest/intents/paymentIntent.d.ts +1 -0
  55. package/dist/src/schema/transactionRequest/intents/signMessageIntent.d.ts +1 -0
  56. package/dist/src/schema/transactionRequest/intents/solAuthorizeIntent.d.ts +1 -0
  57. package/dist/src/schema/transactionRequest/intents/solClaimIntent.d.ts +1 -0
  58. package/dist/src/schema/transactionRequest/intents/solCloseAssociatedTokenAccountIntent.d.ts +47 -0
  59. package/dist/src/schema/transactionRequest/intents/solCloseAssociatedTokenAccountIntent.js +40 -0
  60. package/dist/src/schema/transactionRequest/intents/solCloseAssociatedTokenAccountIntent.js.map +1 -0
  61. package/dist/src/schema/transactionRequest/intents/solCreateAssociatedTokenAccountIntent.d.ts +1 -0
  62. package/dist/src/schema/transactionRequest/intents/solDeactivateIntent.d.ts +1 -0
  63. package/dist/src/schema/transactionRequest/intents/solDelegateIntent.d.ts +1 -0
  64. package/dist/src/schema/transactionRequest/intents/solPaymentIntent.d.ts +1 -0
  65. package/dist/src/schema/transactionRequest/intents/solStakeIntent.d.ts +1 -0
  66. package/dist/src/schema/transactionRequest/intents/solUnstakeIntent.d.ts +1 -0
  67. package/dist/src/schema/transactionRequest/intents/stakeClaimRewardsIntent.d.ts +1 -0
  68. package/dist/src/schema/transactionRequest/intents/stakeIntent.d.ts +1 -0
  69. package/dist/src/schema/transactionRequest/intents/stakeSwitchValidatorIntent.d.ts +1 -0
  70. package/dist/src/schema/transactionRequest/intents/suiBuildOptions.d.ts +1 -0
  71. package/dist/src/schema/transactionRequest/intents/suiConsolidateIntent.d.ts +1 -0
  72. package/dist/src/schema/transactionRequest/intents/suiCustomTxIntent.d.ts +2 -0
  73. package/dist/src/schema/transactionRequest/intents/suiPaymentIntent.d.ts +2 -0
  74. package/dist/src/schema/transactionRequest/intents/suiStakingIntent.d.ts +1 -0
  75. package/dist/src/schema/transactionRequest/intents/suiUnstakingIntent.d.ts +1 -0
  76. package/dist/src/schema/transactionRequest/intents/tonDelegateIntent.d.ts +1 -0
  77. package/dist/src/schema/transactionRequest/intents/tonPaymentIntent.d.ts +1 -0
  78. package/dist/src/schema/transactionRequest/intents/tonUndelegateIntent.d.ts +1 -0
  79. package/dist/src/schema/transactionRequest/intents/transferTokenIntent.d.ts +1 -0
  80. package/dist/src/schema/transactionRequest/intents/unstakeIntent.d.ts +1 -0
  81. package/dist/src/schema/transactionRequest/intents/walletRecoveryIntent.d.ts +1 -0
  82. package/dist/src/schema/transactionRequest/intents/withdrawIntent.d.ts +1 -0
  83. package/package.json +2 -2
  84. package/src/schema/transactionRequest/intents/index.ts +1 -0
  85. package/src/schema/transactionRequest/intents/intent.ts +2 -0
  86. package/src/schema/transactionRequest/intents/intentType.ts +1 -0
  87. package/src/schema/transactionRequest/intents/solCloseAssociatedTokenAccountIntent.ts +21 -0
@@ -0,0 +1,47 @@
1
+ import * as t from "io-ts";
2
+ export declare const SolCloseAssociatedTokenAccountIntent: 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
+ vote: t.LiteralC<"vote">;
18
+ createAccount: t.LiteralC<"createAccount">;
19
+ updateAccount: t.LiteralC<"updateAccount">;
20
+ addTrustLine: t.LiteralC<"addTrustLine">;
21
+ removeTrustLine: t.LiteralC<"removeTrustLine">;
22
+ signMessage: t.LiteralC<"signMessage">;
23
+ signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
24
+ enableToken: t.LiteralC<"enableToken">;
25
+ authorize: t.LiteralC<"authorize">;
26
+ acceleration: t.LiteralC<"acceleration">;
27
+ fillNonce: t.LiteralC<"fillNonce">;
28
+ walletRecovery: t.LiteralC<"walletRecovery">;
29
+ contractCall: t.LiteralC<"contractCall">;
30
+ deactivate: t.LiteralC<"deactivate">;
31
+ customTx: t.LiteralC<"customTx">;
32
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
33
+ }>;
34
+ }>, t.PartialC<{
35
+ sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
36
+ comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
37
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
38
+ }>]>, t.IntersectionC<[t.PartialC<{
39
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
40
+ }>, t.TypeC<{
41
+ memo: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
42
+ }>]>, t.TypeC<{
43
+ intentType: t.LiteralC<"closeAssociatedTokenAccount">;
44
+ accountAddress: t.StringC;
45
+ destinationAddress: t.StringC;
46
+ }>]>;
47
+ export type SolCloseAssociatedTokenAccountIntent = t.TypeOf<typeof SolCloseAssociatedTokenAccountIntent>;
@@ -0,0 +1,40 @@
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.SolCloseAssociatedTokenAccountIntent = void 0;
27
+ const t = __importStar(require("io-ts"));
28
+ const baseIntent_1 = require("./baseIntent");
29
+ const intentType_1 = require("./intentType");
30
+ const solBuildOptions_1 = require("./solBuildOptions");
31
+ exports.SolCloseAssociatedTokenAccountIntent = t.intersection([
32
+ baseIntent_1.BaseIntent,
33
+ solBuildOptions_1.SolBuildOptions,
34
+ t.type({
35
+ intentType: intentType_1.intentTypes.closeAssociatedTokenAccount,
36
+ accountAddress: t.string,
37
+ destinationAddress: t.string,
38
+ }),
39
+ ]);
40
+ //# sourceMappingURL=solCloseAssociatedTokenAccountIntent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"solCloseAssociatedTokenAccountIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/solCloseAssociatedTokenAccountIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA0C;AAC1C,6CAA2C;AAC3C,uDAAoD;AAKvC,QAAA,oCAAoC,GAAG,CAAC,CAAC,YAAY,CAAC;IACjE,uBAAU;IACV,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,2BAA2B;QACnD,cAAc,EAAE,CAAC,CAAC,MAAM;QACxB,kBAAkB,EAAE,CAAC,CAAC,MAAM;KAC7B,CAAC;CACH,CAAC,CAAC"}
@@ -29,6 +29,7 @@ export declare const SolCreateAssociatedTokenAccountIntent: t.IntersectionC<[t.I
29
29
  contractCall: t.LiteralC<"contractCall">;
30
30
  deactivate: t.LiteralC<"deactivate">;
31
31
  customTx: t.LiteralC<"customTx">;
32
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
32
33
  }>;
33
34
  }>, t.PartialC<{
34
35
  sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
@@ -29,6 +29,7 @@ export declare const SolDeactivateIntent: t.IntersectionC<[t.IntersectionC<[t.Ty
29
29
  contractCall: t.LiteralC<"contractCall">;
30
30
  deactivate: t.LiteralC<"deactivate">;
31
31
  customTx: t.LiteralC<"customTx">;
32
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
32
33
  }>;
33
34
  }>, t.PartialC<{
34
35
  sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
@@ -29,6 +29,7 @@ export declare const SolDelegateIntent: t.IntersectionC<[t.IntersectionC<[t.Type
29
29
  contractCall: t.LiteralC<"contractCall">;
30
30
  deactivate: t.LiteralC<"deactivate">;
31
31
  customTx: t.LiteralC<"customTx">;
32
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
32
33
  }>;
33
34
  }>, t.PartialC<{
34
35
  sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
@@ -29,6 +29,7 @@ export declare const SolPaymentIntent: t.IntersectionC<[t.IntersectionC<[t.Inter
29
29
  contractCall: t.LiteralC<"contractCall">;
30
30
  deactivate: t.LiteralC<"deactivate">;
31
31
  customTx: t.LiteralC<"customTx">;
32
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
32
33
  }>;
33
34
  }>, t.PartialC<{
34
35
  sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
@@ -29,6 +29,7 @@ export declare const SolStakeIntent: t.IntersectionC<[t.IntersectionC<[t.Interse
29
29
  contractCall: t.LiteralC<"contractCall">;
30
30
  deactivate: t.LiteralC<"deactivate">;
31
31
  customTx: t.LiteralC<"customTx">;
32
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
32
33
  }>;
33
34
  }>, t.PartialC<{
34
35
  sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
@@ -29,6 +29,7 @@ export declare const SolUnstakeIntent: t.IntersectionC<[t.IntersectionC<[t.Inter
29
29
  contractCall: t.LiteralC<"contractCall">;
30
30
  deactivate: t.LiteralC<"deactivate">;
31
31
  customTx: t.LiteralC<"customTx">;
32
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
32
33
  }>;
33
34
  }>, t.PartialC<{
34
35
  sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
@@ -29,6 +29,7 @@ export declare const StakeClaimRewardsIntent: t.IntersectionC<[t.IntersectionC<[
29
29
  contractCall: t.LiteralC<"contractCall">;
30
30
  deactivate: t.LiteralC<"deactivate">;
31
31
  customTx: t.LiteralC<"customTx">;
32
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
32
33
  }>;
33
34
  }>, t.PartialC<{
34
35
  sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
@@ -29,6 +29,7 @@ export declare const StakeIntent: t.IntersectionC<[t.IntersectionC<[t.Intersecti
29
29
  contractCall: t.LiteralC<"contractCall">;
30
30
  deactivate: t.LiteralC<"deactivate">;
31
31
  customTx: t.LiteralC<"customTx">;
32
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
32
33
  }>;
33
34
  }>, t.PartialC<{
34
35
  sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
@@ -29,6 +29,7 @@ export declare const StakeSwitchValidatorIntent: t.IntersectionC<[t.Intersection
29
29
  contractCall: t.LiteralC<"contractCall">;
30
30
  deactivate: t.LiteralC<"deactivate">;
31
31
  customTx: t.LiteralC<"customTx">;
32
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
32
33
  }>;
33
34
  }>, t.PartialC<{
34
35
  sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
@@ -29,6 +29,7 @@ export declare const SuiBuildOptions: t.IntersectionC<[t.IntersectionC<[t.TypeC<
29
29
  contractCall: t.LiteralC<"contractCall">;
30
30
  deactivate: t.LiteralC<"deactivate">;
31
31
  customTx: t.LiteralC<"customTx">;
32
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
32
33
  }>;
33
34
  }>, t.PartialC<{
34
35
  sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
@@ -65,6 +65,7 @@ export declare const SuiConsolidateIntent: t.IntersectionC<[t.IntersectionC<[t.P
65
65
  contractCall: t.LiteralC<"contractCall">;
66
66
  deactivate: t.LiteralC<"deactivate">;
67
67
  customTx: t.LiteralC<"customTx">;
68
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
68
69
  }>;
69
70
  }>, t.PartialC<{
70
71
  sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
@@ -29,6 +29,7 @@ export declare const SuiCustomTxIntent: t.IntersectionC<[t.IntersectionC<[t.Type
29
29
  contractCall: t.LiteralC<"contractCall">;
30
30
  deactivate: t.LiteralC<"deactivate">;
31
31
  customTx: t.LiteralC<"customTx">;
32
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
32
33
  }>;
33
34
  }>, t.PartialC<{
34
35
  sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
@@ -64,6 +65,7 @@ export declare const SuiCustomTxIntent: t.IntersectionC<[t.IntersectionC<[t.Type
64
65
  contractCall: t.LiteralC<"contractCall">;
65
66
  deactivate: t.LiteralC<"deactivate">;
66
67
  customTx: t.LiteralC<"customTx">;
68
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
67
69
  }>;
68
70
  }>, t.PartialC<{
69
71
  sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
@@ -29,6 +29,7 @@ export declare const SuiPaymentIntent: t.IntersectionC<[t.IntersectionC<[t.Inter
29
29
  contractCall: t.LiteralC<"contractCall">;
30
30
  deactivate: t.LiteralC<"deactivate">;
31
31
  customTx: t.LiteralC<"customTx">;
32
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
32
33
  }>;
33
34
  }>, t.PartialC<{
34
35
  sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
@@ -82,6 +83,7 @@ export declare const SuiPaymentIntent: t.IntersectionC<[t.IntersectionC<[t.Inter
82
83
  contractCall: t.LiteralC<"contractCall">;
83
84
  deactivate: t.LiteralC<"deactivate">;
84
85
  customTx: t.LiteralC<"customTx">;
86
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
85
87
  }>;
86
88
  }>, t.PartialC<{
87
89
  sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
@@ -29,6 +29,7 @@ export declare const SuiStakingIntent: t.IntersectionC<[t.IntersectionC<[t.Inter
29
29
  contractCall: t.LiteralC<"contractCall">;
30
30
  deactivate: t.LiteralC<"deactivate">;
31
31
  customTx: t.LiteralC<"customTx">;
32
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
32
33
  }>;
33
34
  }>, t.PartialC<{
34
35
  sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
@@ -29,6 +29,7 @@ export declare const SuiUnstakingIntent: t.IntersectionC<[t.IntersectionC<[t.Int
29
29
  contractCall: t.LiteralC<"contractCall">;
30
30
  deactivate: t.LiteralC<"deactivate">;
31
31
  customTx: t.LiteralC<"customTx">;
32
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
32
33
  }>;
33
34
  }>, t.PartialC<{
34
35
  sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
@@ -29,6 +29,7 @@ export declare const TonDelegateIntent: t.IntersectionC<[t.IntersectionC<[t.Type
29
29
  contractCall: t.LiteralC<"contractCall">;
30
30
  deactivate: t.LiteralC<"deactivate">;
31
31
  customTx: t.LiteralC<"customTx">;
32
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
32
33
  }>;
33
34
  }>, t.PartialC<{
34
35
  sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
@@ -29,6 +29,7 @@ export declare const TonPaymentIntent: t.IntersectionC<[t.IntersectionC<[t.Inter
29
29
  contractCall: t.LiteralC<"contractCall">;
30
30
  deactivate: t.LiteralC<"deactivate">;
31
31
  customTx: t.LiteralC<"customTx">;
32
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
32
33
  }>;
33
34
  }>, t.PartialC<{
34
35
  sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
@@ -29,6 +29,7 @@ export declare const TonUndelegateIntent: t.IntersectionC<[t.IntersectionC<[t.Ty
29
29
  contractCall: t.LiteralC<"contractCall">;
30
30
  deactivate: t.LiteralC<"deactivate">;
31
31
  customTx: t.LiteralC<"customTx">;
32
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
32
33
  }>;
33
34
  }>, t.PartialC<{
34
35
  sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
@@ -29,6 +29,7 @@ export declare const TransferTokenIntent: t.IntersectionC<[t.IntersectionC<[t.Ty
29
29
  contractCall: t.LiteralC<"contractCall">;
30
30
  deactivate: t.LiteralC<"deactivate">;
31
31
  customTx: t.LiteralC<"customTx">;
32
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
32
33
  }>;
33
34
  }>, t.PartialC<{
34
35
  sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
@@ -29,6 +29,7 @@ export declare const UnstakeIntent: t.IntersectionC<[t.IntersectionC<[t.Intersec
29
29
  contractCall: t.LiteralC<"contractCall">;
30
30
  deactivate: t.LiteralC<"deactivate">;
31
31
  customTx: t.LiteralC<"customTx">;
32
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
32
33
  }>;
33
34
  }>, t.PartialC<{
34
35
  sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
@@ -29,6 +29,7 @@ export declare const WalletRecoveryIntent: t.IntersectionC<[t.IntersectionC<[t.T
29
29
  contractCall: t.LiteralC<"contractCall">;
30
30
  deactivate: t.LiteralC<"deactivate">;
31
31
  customTx: t.LiteralC<"customTx">;
32
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
32
33
  }>;
33
34
  }>, t.PartialC<{
34
35
  sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
@@ -29,6 +29,7 @@ export declare const WithdrawIntent: t.IntersectionC<[t.IntersectionC<[t.Interse
29
29
  contractCall: t.LiteralC<"contractCall">;
30
30
  deactivate: t.LiteralC<"deactivate">;
31
31
  customTx: t.LiteralC<"customTx">;
32
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
32
33
  }>;
33
34
  }>, t.PartialC<{
34
35
  sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitgo/public-types",
3
- "version": "2.43.0",
3
+ "version": "3.1.0",
4
4
  "description": "Collection of types exposed externally as part of the BitGo public API",
5
5
  "license": "UNLICENSED",
6
6
  "author": "",
@@ -24,7 +24,7 @@
24
24
  "dependencies": {
25
25
  "@api-ts/io-ts-http": "1.0.0",
26
26
  "fp-ts": "2.16.2",
27
- "io-ts": "2.1.3",
27
+ "io-ts": "npm:@bitgo-forks/io-ts@2.1.4",
28
28
  "io-ts-types": "0.5.16",
29
29
  "monocle-ts": "2.3.13",
30
30
  "newtype-ts": "0.3.5"
@@ -68,6 +68,7 @@ export * from "./signMessageIntent";
68
68
  export * from "./solAuthorizeIntent";
69
69
  export * from "./solBuildOptions";
70
70
  export * from "./solClaimIntent";
71
+ export * from "./solCloseAssociatedTokenAccountIntent";
71
72
  export * from "./solConsolidateIntent";
72
73
  export * from "./solCreateAssociatedTokenAccountIntent";
73
74
  export * from "./solDeactivateIntent";
@@ -54,6 +54,7 @@ import { EthConsolidateTokenIntent } from "./ethConsolidateTokenIntent";
54
54
  import { EthTransferTokenIntent } from "./ethTransferTokenIntent";
55
55
  import { BaseIntent } from "./baseIntent";
56
56
  import { DotConsolidateIntent } from "./dotConsolidateIntent";
57
+ import { SolCloseAssociatedTokenAccountIntent } from "./solCloseAssociatedTokenAccountIntent";
57
58
 
58
59
  export const TransactionIntent = t.union([
59
60
  AdaConsolidateIntent,
@@ -94,6 +95,7 @@ export const TransactionIntent = t.union([
94
95
  NearWithdrawIntent,
95
96
  SolAuthorizeIntent,
96
97
  SolClaimIntent,
98
+ SolCloseAssociatedTokenAccountIntent,
97
99
  SolConsolidateIntent,
98
100
  SolCreateAssociatedTokenAccountIntent,
99
101
  SolDeactivateIntent,
@@ -29,6 +29,7 @@ export const intentTypes = {
29
29
  contractCall: t.literal("contractCall"),
30
30
  deactivate: t.literal("deactivate"),
31
31
  customTx: t.literal("customTx"),
32
+ closeAssociatedTokenAccount: t.literal("closeAssociatedTokenAccount"),
32
33
  };
33
34
 
34
35
  export const IntentType = t.keyof(intentTypes);
@@ -0,0 +1,21 @@
1
+ import * as t from "io-ts";
2
+ import { BaseIntent } from "./baseIntent";
3
+ import { intentTypes } from "./intentType";
4
+ import { SolBuildOptions } from "./solBuildOptions";
5
+
6
+ /**
7
+ * @title SOL Close Associated Token Account Intent
8
+ */
9
+ export const SolCloseAssociatedTokenAccountIntent = t.intersection([
10
+ BaseIntent,
11
+ SolBuildOptions,
12
+ t.type({
13
+ intentType: intentTypes.closeAssociatedTokenAccount,
14
+ accountAddress: t.string,
15
+ destinationAddress: t.string,
16
+ }),
17
+ ]);
18
+
19
+ export type SolCloseAssociatedTokenAccountIntent = t.TypeOf<
20
+ typeof SolCloseAssociatedTokenAccountIntent
21
+ >;