@bitgo/public-types 2.38.0 → 2.40.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 (244) hide show
  1. package/dist/src/schema/lightning/payment.d.ts +20 -0
  2. package/dist/src/schema/lightning/payment.js +43 -0
  3. package/dist/src/schema/lightning/payment.js.map +1 -0
  4. package/dist/src/schema/transactionRequest/intents/accelerationIntent.d.ts +4 -3
  5. package/dist/src/schema/transactionRequest/intents/accountBaseBuildOptions.d.ts +1 -1
  6. package/dist/src/schema/transactionRequest/intents/accountBaseBuildOptions.js +1 -1
  7. package/dist/src/schema/transactionRequest/intents/accountBaseBuildOptions.js.map +1 -1
  8. package/dist/src/schema/transactionRequest/intents/accountBaseConsolidateIntent.d.ts +13 -10
  9. package/dist/src/schema/transactionRequest/intents/accountBaseConsolidateIntent.js +2 -0
  10. package/dist/src/schema/transactionRequest/intents/accountBaseConsolidateIntent.js.map +1 -1
  11. package/dist/src/schema/transactionRequest/intents/accountBaseCreateAccountIntent.d.ts +5 -3
  12. package/dist/src/schema/transactionRequest/intents/accountBaseCreateAccountIntent.js +2 -0
  13. package/dist/src/schema/transactionRequest/intents/accountBaseCreateAccountIntent.js.map +1 -1
  14. package/dist/src/schema/transactionRequest/intents/accountBaseUpdateAccountIntent.d.ts +5 -3
  15. package/dist/src/schema/transactionRequest/intents/accountBaseUpdateAccountIntent.js +2 -0
  16. package/dist/src/schema/transactionRequest/intents/accountBaseUpdateAccountIntent.js.map +1 -1
  17. package/dist/src/schema/transactionRequest/intents/adaConsolidateIntent.d.ts +14 -11
  18. package/dist/src/schema/transactionRequest/intents/adaConsolidateIntent.js +1 -1
  19. package/dist/src/schema/transactionRequest/intents/adaConsolidateIntent.js.map +1 -1
  20. package/dist/src/schema/transactionRequest/intents/adaPaymentIntent.d.ts +8 -6
  21. package/dist/src/schema/transactionRequest/intents/adaPledgeIntent.d.ts +4 -3
  22. package/dist/src/schema/transactionRequest/intents/adaStakeClaimRewardsIntent.d.ts +4 -3
  23. package/dist/src/schema/transactionRequest/intents/adaStakeIntent.d.ts +6 -4
  24. package/dist/src/schema/transactionRequest/intents/adaStakeIntent.js +3 -1
  25. package/dist/src/schema/transactionRequest/intents/adaStakeIntent.js.map +1 -1
  26. package/dist/src/schema/transactionRequest/intents/adaUnstakeIntent.d.ts +6 -4
  27. package/dist/src/schema/transactionRequest/intents/adaUnstakeIntent.js +3 -1
  28. package/dist/src/schema/transactionRequest/intents/adaUnstakeIntent.js.map +1 -1
  29. package/dist/src/schema/transactionRequest/intents/address.d.ts +2 -1
  30. package/dist/src/schema/transactionRequest/intents/address.js +1 -1
  31. package/dist/src/schema/transactionRequest/intents/address.js.map +1 -1
  32. package/dist/src/schema/transactionRequest/intents/atomPaymentIntent.d.ts +8 -6
  33. package/dist/src/schema/transactionRequest/intents/atomStakeIntent.d.ts +16 -12
  34. package/dist/src/schema/transactionRequest/intents/atomStakeIntent.js +2 -0
  35. package/dist/src/schema/transactionRequest/intents/atomStakeIntent.js.map +1 -1
  36. package/dist/src/schema/transactionRequest/intents/atomUnstakeIntent.d.ts +16 -12
  37. package/dist/src/schema/transactionRequest/intents/atomUnstakeIntent.js +2 -0
  38. package/dist/src/schema/transactionRequest/intents/atomUnstakeIntent.js.map +1 -1
  39. package/dist/src/schema/transactionRequest/intents/atomWithdrawIntent.d.ts +5 -3
  40. package/dist/src/schema/transactionRequest/intents/baseIntent.d.ts +7 -5
  41. package/dist/src/schema/transactionRequest/intents/baseIntent.js +19 -11
  42. package/dist/src/schema/transactionRequest/intents/baseIntent.js.map +1 -1
  43. package/dist/src/schema/transactionRequest/intents/baseStakeIntent.d.ts +4 -3
  44. package/dist/src/schema/transactionRequest/intents/bscDelegateIntent.d.ts +4 -3
  45. package/dist/src/schema/transactionRequest/intents/bscStakeClaimRewardsIntent.d.ts +4 -3
  46. package/dist/src/schema/transactionRequest/intents/bscUndelegateIntent.d.ts +4 -3
  47. package/dist/src/schema/transactionRequest/intents/bscWithdrawIntent.d.ts +5 -3
  48. package/dist/src/schema/transactionRequest/intents/consolidateTokenIntent.d.ts +31 -27
  49. package/dist/src/schema/transactionRequest/intents/consolidateTokenIntent.js +2 -0
  50. package/dist/src/schema/transactionRequest/intents/consolidateTokenIntent.js.map +1 -1
  51. package/dist/src/schema/transactionRequest/intents/cosmosPaymentIntent.d.ts +8 -6
  52. package/dist/src/schema/transactionRequest/intents/cosmosStakeIntent.d.ts +16 -12
  53. package/dist/src/schema/transactionRequest/intents/cosmosStakeIntent.js +2 -0
  54. package/dist/src/schema/transactionRequest/intents/cosmosStakeIntent.js.map +1 -1
  55. package/dist/src/schema/transactionRequest/intents/cosmosSwitchValidatorIntent.d.ts +4 -3
  56. package/dist/src/schema/transactionRequest/intents/cosmosUnstakeIntent.d.ts +16 -12
  57. package/dist/src/schema/transactionRequest/intents/cosmosUnstakeIntent.js +2 -0
  58. package/dist/src/schema/transactionRequest/intents/cosmosUnstakeIntent.js.map +1 -1
  59. package/dist/src/schema/transactionRequest/intents/cosmosWithdrawIntent.d.ts +5 -3
  60. package/dist/src/schema/transactionRequest/intents/dotAccountBaseBuildOptions.d.ts +10 -8
  61. package/dist/src/schema/transactionRequest/intents/dotAccountBaseBuildOptions.js +1 -1
  62. package/dist/src/schema/transactionRequest/intents/dotAccountBaseBuildOptions.js.map +1 -1
  63. package/dist/src/schema/transactionRequest/intents/dotBaseIntent.d.ts +23 -18
  64. package/dist/src/schema/transactionRequest/intents/dotBaseIntent.js +1 -1
  65. package/dist/src/schema/transactionRequest/intents/dotBaseIntent.js.map +1 -1
  66. package/dist/src/schema/transactionRequest/intents/dotConsolidateIntent.d.ts +39 -0
  67. package/dist/src/schema/transactionRequest/intents/dotConsolidateIntent.js +6 -0
  68. package/dist/src/schema/transactionRequest/intents/dotConsolidateIntent.js.map +1 -0
  69. package/dist/src/schema/transactionRequest/intents/dotCreateAccountIntent.d.ts +27 -20
  70. package/dist/src/schema/transactionRequest/intents/dotCreateAccountIntent.js +2 -0
  71. package/dist/src/schema/transactionRequest/intents/dotCreateAccountIntent.js.map +1 -1
  72. package/dist/src/schema/transactionRequest/intents/dotFeeOptionFormula.d.ts +14 -0
  73. package/dist/src/schema/transactionRequest/intents/dotFeeOptionFormula.js +35 -0
  74. package/dist/src/schema/transactionRequest/intents/dotFeeOptionFormula.js.map +1 -0
  75. package/dist/src/schema/transactionRequest/intents/dotFeeOptions.d.ts +4 -3
  76. package/dist/src/schema/transactionRequest/intents/dotFeeOptions.js +11 -7
  77. package/dist/src/schema/transactionRequest/intents/dotFeeOptions.js.map +1 -1
  78. package/dist/src/schema/transactionRequest/intents/dotPaymentIntent.d.ts +19 -15
  79. package/dist/src/schema/transactionRequest/intents/dotProxy.d.ts +1 -1
  80. package/dist/src/schema/transactionRequest/intents/dotProxy.js +1 -1
  81. package/dist/src/schema/transactionRequest/intents/dotProxy.js.map +1 -1
  82. package/dist/src/schema/transactionRequest/intents/dotStakingIntent.d.ts +15 -11
  83. package/dist/src/schema/transactionRequest/intents/dotStakingIntent.js +2 -0
  84. package/dist/src/schema/transactionRequest/intents/dotStakingIntent.js.map +1 -1
  85. package/dist/src/schema/transactionRequest/intents/dotUnstakingIntent.d.ts +15 -11
  86. package/dist/src/schema/transactionRequest/intents/dotUnstakingIntent.js +2 -0
  87. package/dist/src/schema/transactionRequest/intents/dotUnstakingIntent.js.map +1 -1
  88. package/dist/src/schema/transactionRequest/intents/dotWithdrawStakeIntent.d.ts +15 -11
  89. package/dist/src/schema/transactionRequest/intents/eip1559FeeOptions.d.ts +1 -1
  90. package/dist/src/schema/transactionRequest/intents/eip1559FeeOptions.js +1 -1
  91. package/dist/src/schema/transactionRequest/intents/eip1559FeeOptions.js.map +1 -1
  92. package/dist/src/schema/transactionRequest/intents/enableTokenIntent.d.ts +7 -5
  93. package/dist/src/schema/transactionRequest/intents/ethAccelerationIntent.d.ts +8 -7
  94. package/dist/src/schema/transactionRequest/intents/ethBuildOptions.d.ts +125 -23
  95. package/dist/src/schema/transactionRequest/intents/ethBuildOptions.js +13 -3
  96. package/dist/src/schema/transactionRequest/intents/ethBuildOptions.js.map +1 -1
  97. package/dist/src/schema/transactionRequest/intents/ethConsolidateIntent.d.ts +74 -0
  98. package/dist/src/schema/transactionRequest/intents/ethConsolidateIntent.js +34 -0
  99. package/dist/src/schema/transactionRequest/intents/ethConsolidateIntent.js.map +1 -0
  100. package/dist/src/schema/transactionRequest/intents/ethConsolidateTokenIntent.d.ts +105 -0
  101. package/dist/src/schema/transactionRequest/intents/ethConsolidateTokenIntent.js +43 -0
  102. package/dist/src/schema/transactionRequest/intents/ethConsolidateTokenIntent.js.map +1 -0
  103. package/dist/src/schema/transactionRequest/intents/ethFillNonceIntent.d.ts +20 -19
  104. package/dist/src/schema/transactionRequest/intents/ethFillNonceIntent.js +2 -8
  105. package/dist/src/schema/transactionRequest/intents/ethFillNonceIntent.js.map +1 -1
  106. package/dist/src/schema/transactionRequest/intents/ethPaymentIntent.d.ts +27 -25
  107. package/dist/src/schema/transactionRequest/intents/ethPaymentIntent.js +2 -1
  108. package/dist/src/schema/transactionRequest/intents/ethPaymentIntent.js.map +1 -1
  109. package/dist/src/schema/transactionRequest/intents/ethStakingIntent.d.ts +22 -21
  110. package/dist/src/schema/transactionRequest/intents/ethTransferTokenIntent.d.ts +103 -0
  111. package/dist/src/schema/transactionRequest/intents/ethTransferTokenIntent.js +34 -0
  112. package/dist/src/schema/transactionRequest/intents/ethTransferTokenIntent.js.map +1 -0
  113. package/dist/src/schema/transactionRequest/intents/feeOption.d.ts +2 -1
  114. package/dist/src/schema/transactionRequest/intents/feeOption.js +1 -1
  115. package/dist/src/schema/transactionRequest/intents/feeOption.js.map +1 -1
  116. package/dist/src/schema/transactionRequest/intents/fillNonceIntent.d.ts +3 -2
  117. package/dist/src/schema/transactionRequest/intents/index.d.ts +8 -0
  118. package/dist/src/schema/transactionRequest/intents/index.js +8 -0
  119. package/dist/src/schema/transactionRequest/intents/index.js.map +1 -1
  120. package/dist/src/schema/transactionRequest/intents/intent.d.ts +1147 -394
  121. package/dist/src/schema/transactionRequest/intents/intent.js +17 -1
  122. package/dist/src/schema/transactionRequest/intents/intent.js.map +1 -1
  123. package/dist/src/schema/transactionRequest/intents/lightningPaymentIntent.d.ts +12 -4
  124. package/dist/src/schema/transactionRequest/intents/lightningPaymentIntent.js +2 -2
  125. package/dist/src/schema/transactionRequest/intents/lightningPaymentIntent.js.map +1 -1
  126. package/dist/src/schema/transactionRequest/intents/mmiSignMessageIntent.d.ts +4 -3
  127. package/dist/src/schema/transactionRequest/intents/mmiSignTransactionIntent.d.ts +58 -0
  128. package/dist/src/schema/transactionRequest/intents/mmiSignTransactionIntent.js +35 -0
  129. package/dist/src/schema/transactionRequest/intents/mmiSignTransactionIntent.js.map +1 -0
  130. package/dist/src/schema/transactionRequest/intents/nearStakeIntent.d.ts +8 -6
  131. package/dist/src/schema/transactionRequest/intents/nearUnstakeIntent.d.ts +8 -6
  132. package/dist/src/schema/transactionRequest/intents/nearWithdrawIntent.d.ts +9 -6
  133. package/dist/src/schema/transactionRequest/intents/paymentIntent.d.ts +8 -6
  134. package/dist/src/schema/transactionRequest/intents/recipientEntry.d.ts +4 -3
  135. package/dist/src/schema/transactionRequest/intents/recipientEntry.js +9 -5
  136. package/dist/src/schema/transactionRequest/intents/recipientEntry.js.map +1 -1
  137. package/dist/src/schema/transactionRequest/intents/signMessageIntent.d.ts +4 -3
  138. package/dist/src/schema/transactionRequest/intents/solAuthorizeIntent.d.ts +4 -3
  139. package/dist/src/schema/transactionRequest/intents/solBuildOptions.d.ts +1 -1
  140. package/dist/src/schema/transactionRequest/intents/solClaimIntent.d.ts +6 -4
  141. package/dist/src/schema/transactionRequest/intents/solConsolidateIntent.d.ts +13 -10
  142. package/dist/src/schema/transactionRequest/intents/solCreateAssociatedTokenAccountIntent.d.ts +8 -6
  143. package/dist/src/schema/transactionRequest/intents/solDeactivateIntent.d.ts +4 -3
  144. package/dist/src/schema/transactionRequest/intents/solDelegateIntent.d.ts +4 -3
  145. package/dist/src/schema/transactionRequest/intents/solPaymentIntent.d.ts +9 -7
  146. package/dist/src/schema/transactionRequest/intents/solStakeIntent.d.ts +5 -4
  147. package/dist/src/schema/transactionRequest/intents/solUnstakeIntent.d.ts +6 -4
  148. package/dist/src/schema/transactionRequest/intents/solUnstakeIntent.js +2 -0
  149. package/dist/src/schema/transactionRequest/intents/solUnstakeIntent.js.map +1 -1
  150. package/dist/src/schema/transactionRequest/intents/stakeClaimRewardsIntent.d.ts +4 -3
  151. package/dist/src/schema/transactionRequest/intents/stakeIntent.d.ts +4 -3
  152. package/dist/src/schema/transactionRequest/intents/stakeSwitchValidatorIntent.d.ts +4 -3
  153. package/dist/src/schema/transactionRequest/intents/suiBuildOptions.d.ts +4 -3
  154. package/dist/src/schema/transactionRequest/intents/suiConsolidateIntent.d.ts +79 -0
  155. package/dist/src/schema/transactionRequest/intents/suiConsolidateIntent.js +34 -0
  156. package/dist/src/schema/transactionRequest/intents/suiConsolidateIntent.js.map +1 -0
  157. package/dist/src/schema/transactionRequest/intents/suiCustomTxIntent.d.ts +7 -5
  158. package/dist/src/schema/transactionRequest/intents/suiPaymentIntent.d.ts +96 -0
  159. package/dist/src/schema/transactionRequest/intents/suiPaymentIntent.js +34 -0
  160. package/dist/src/schema/transactionRequest/intents/suiPaymentIntent.js.map +1 -0
  161. package/dist/src/schema/transactionRequest/intents/suiStakingIntent.d.ts +16 -13
  162. package/dist/src/schema/transactionRequest/intents/suiStakingIntent.js +1 -1
  163. package/dist/src/schema/transactionRequest/intents/suiStakingIntent.js.map +1 -1
  164. package/dist/src/schema/transactionRequest/intents/suiUnstakingIntent.d.ts +6 -3
  165. package/dist/src/schema/transactionRequest/intents/suiUnstakingIntent.js +2 -0
  166. package/dist/src/schema/transactionRequest/intents/suiUnstakingIntent.js.map +1 -1
  167. package/dist/src/schema/transactionRequest/intents/tokenData.d.ts +5 -4
  168. package/dist/src/schema/transactionRequest/intents/tokenEnablement.d.ts +3 -2
  169. package/dist/src/schema/transactionRequest/intents/tokenEnablement.js +8 -4
  170. package/dist/src/schema/transactionRequest/intents/tokenEnablement.js.map +1 -1
  171. package/dist/src/schema/transactionRequest/intents/tokenRecipientEntry.d.ts +9 -7
  172. package/dist/src/schema/transactionRequest/intents/tokenRecipientEntryItem.d.ts +4 -3
  173. package/dist/src/schema/transactionRequest/intents/tokenRecipientEntryItem.js +9 -5
  174. package/dist/src/schema/transactionRequest/intents/tokenRecipientEntryItem.js.map +1 -1
  175. package/dist/src/schema/transactionRequest/intents/tonConsolidateIntent.d.ts +13 -10
  176. package/dist/src/schema/transactionRequest/intents/tonDelegateIntent.d.ts +4 -3
  177. package/dist/src/schema/transactionRequest/intents/tonPaymentIntent.d.ts +9 -7
  178. package/dist/src/schema/transactionRequest/intents/tonPaymentIntent.js +1 -1
  179. package/dist/src/schema/transactionRequest/intents/tonPaymentIntent.js.map +1 -1
  180. package/dist/src/schema/transactionRequest/intents/tonUndelegateIntent.d.ts +4 -3
  181. package/dist/src/schema/transactionRequest/intents/transferTokenIntent.d.ts +11 -43
  182. package/dist/src/schema/transactionRequest/intents/transferTokenIntent.js +0 -2
  183. package/dist/src/schema/transactionRequest/intents/transferTokenIntent.js.map +1 -1
  184. package/dist/src/schema/transactionRequest/intents/unstakeIntent.d.ts +4 -3
  185. package/dist/src/schema/transactionRequest/intents/unsupportedTokenRecipientEntryItem.d.ts +1 -1
  186. package/dist/src/schema/transactionRequest/intents/unsupportedTokenRecipientEntryItem.js +1 -1
  187. package/dist/src/schema/transactionRequest/intents/unsupportedTokenRecipientEntryItem.js.map +1 -1
  188. package/dist/src/schema/transactionRequest/intents/walletRecoveryIntent.d.ts +4 -3
  189. package/dist/src/schema/transactionRequest/intents/withdrawIntent.d.ts +5 -3
  190. package/dist/src/schema/transactionRequest/intents/withdrawIntent.js +2 -0
  191. package/dist/src/schema/transactionRequest/intents/withdrawIntent.js.map +1 -1
  192. package/dist/src/schema/transactions/sendTransactions.d.ts +0 -56
  193. package/dist/src/schema/transactions/sendTransactions.js +0 -12
  194. package/dist/src/schema/transactions/sendTransactions.js.map +1 -1
  195. package/package.json +1 -1
  196. package/src/schema/lightning/payment.ts +23 -0
  197. package/src/schema/transactionRequest/intents/accountBaseBuildOptions.ts +1 -1
  198. package/src/schema/transactionRequest/intents/accountBaseConsolidateIntent.ts +2 -0
  199. package/src/schema/transactionRequest/intents/accountBaseCreateAccountIntent.ts +2 -0
  200. package/src/schema/transactionRequest/intents/accountBaseUpdateAccountIntent.ts +2 -0
  201. package/src/schema/transactionRequest/intents/adaConsolidateIntent.ts +1 -1
  202. package/src/schema/transactionRequest/intents/adaStakeIntent.ts +3 -1
  203. package/src/schema/transactionRequest/intents/adaUnstakeIntent.ts +3 -1
  204. package/src/schema/transactionRequest/intents/address.ts +3 -1
  205. package/src/schema/transactionRequest/intents/atomStakeIntent.ts +2 -0
  206. package/src/schema/transactionRequest/intents/atomUnstakeIntent.ts +2 -0
  207. package/src/schema/transactionRequest/intents/baseIntent.ts +20 -12
  208. package/src/schema/transactionRequest/intents/consolidateTokenIntent.ts +2 -0
  209. package/src/schema/transactionRequest/intents/cosmosStakeIntent.ts +2 -0
  210. package/src/schema/transactionRequest/intents/cosmosUnstakeIntent.ts +2 -0
  211. package/src/schema/transactionRequest/intents/dotAccountBaseBuildOptions.ts +1 -1
  212. package/src/schema/transactionRequest/intents/dotBaseIntent.ts +1 -1
  213. package/src/schema/transactionRequest/intents/dotConsolidateIntent.ts +6 -0
  214. package/src/schema/transactionRequest/intents/dotCreateAccountIntent.ts +2 -0
  215. package/src/schema/transactionRequest/intents/dotFeeOptionFormula.ts +12 -0
  216. package/src/schema/transactionRequest/intents/dotFeeOptions.ts +11 -7
  217. package/src/schema/transactionRequest/intents/dotProxy.ts +1 -1
  218. package/src/schema/transactionRequest/intents/dotStakingIntent.ts +2 -0
  219. package/src/schema/transactionRequest/intents/dotUnstakingIntent.ts +2 -0
  220. package/src/schema/transactionRequest/intents/eip1559FeeOptions.ts +1 -1
  221. package/src/schema/transactionRequest/intents/ethBuildOptions.ts +26 -2
  222. package/src/schema/transactionRequest/intents/ethConsolidateIntent.ts +10 -0
  223. package/src/schema/transactionRequest/intents/ethConsolidateTokenIntent.ts +21 -0
  224. package/src/schema/transactionRequest/intents/ethFillNonceIntent.ts +2 -10
  225. package/src/schema/transactionRequest/intents/ethPaymentIntent.ts +2 -1
  226. package/src/schema/transactionRequest/intents/ethTransferTokenIntent.ts +10 -0
  227. package/src/schema/transactionRequest/intents/feeOption.ts +3 -1
  228. package/src/schema/transactionRequest/intents/index.ts +8 -0
  229. package/src/schema/transactionRequest/intents/intent.ts +17 -1
  230. package/src/schema/transactionRequest/intents/lightningPaymentIntent.ts +2 -2
  231. package/src/schema/transactionRequest/intents/mmiSignTransactionIntent.ts +13 -0
  232. package/src/schema/transactionRequest/intents/recipientEntry.ts +9 -5
  233. package/src/schema/transactionRequest/intents/solUnstakeIntent.ts +2 -0
  234. package/src/schema/transactionRequest/intents/suiConsolidateIntent.ts +10 -0
  235. package/src/schema/transactionRequest/intents/suiPaymentIntent.ts +10 -0
  236. package/src/schema/transactionRequest/intents/suiStakingIntent.ts +1 -1
  237. package/src/schema/transactionRequest/intents/suiUnstakingIntent.ts +2 -0
  238. package/src/schema/transactionRequest/intents/tokenEnablement.ts +8 -4
  239. package/src/schema/transactionRequest/intents/tokenRecipientEntryItem.ts +9 -5
  240. package/src/schema/transactionRequest/intents/tonPaymentIntent.ts +1 -1
  241. package/src/schema/transactionRequest/intents/transferTokenIntent.ts +0 -2
  242. package/src/schema/transactionRequest/intents/unsupportedTokenRecipientEntryItem.ts +1 -1
  243. package/src/schema/transactionRequest/intents/withdrawIntent.ts +2 -0
  244. package/src/schema/transactions/sendTransactions.ts +0 -14
@@ -1,5 +1,5 @@
1
1
  import * as t from "io-ts";
2
- export declare const SolDelegateIntent: t.IntersectionC<[t.TypeC<{
2
+ export declare const SolDelegateIntent: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
3
3
  intentType: t.KeyofC<{
4
4
  payment: t.LiteralC<"payment">;
5
5
  transferToken: t.LiteralC<"transferToken">;
@@ -30,10 +30,11 @@ export declare const SolDelegateIntent: t.IntersectionC<[t.TypeC<{
30
30
  deactivate: t.LiteralC<"deactivate">;
31
31
  customTx: t.LiteralC<"customTx">;
32
32
  }>;
33
+ }>, t.PartialC<{
33
34
  sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
34
35
  comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
35
- nonce: t.UnionC<[t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>, t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>]>;
36
- }>, t.IntersectionC<[t.TypeC<{
36
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
37
+ }>]>, t.IntersectionC<[t.PartialC<{
37
38
  nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
38
39
  }>, t.TypeC<{
39
40
  memo: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
@@ -1,5 +1,5 @@
1
1
  import * as t from "io-ts";
2
- export declare const SolPaymentIntent: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
2
+ export declare const SolPaymentIntent: t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
3
3
  intentType: t.KeyofC<{
4
4
  payment: t.LiteralC<"payment">;
5
5
  transferToken: t.LiteralC<"transferToken">;
@@ -30,13 +30,14 @@ export declare const SolPaymentIntent: t.IntersectionC<[t.IntersectionC<[t.TypeC
30
30
  deactivate: t.LiteralC<"deactivate">;
31
31
  customTx: t.LiteralC<"customTx">;
32
32
  }>;
33
+ }>, t.PartialC<{
33
34
  sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
34
35
  comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
35
- nonce: t.UnionC<[t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>, t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>]>;
36
- }>, t.TypeC<{
36
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
37
+ }>]>, t.TypeC<{
37
38
  intent: t.LiteralC<"payment">;
38
- recipients: t.ArrayC<t.TypeC<{
39
- address: t.TypeC<{
39
+ recipients: t.ArrayC<t.IntersectionC<[t.TypeC<{
40
+ address: t.PartialC<{
40
41
  address: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
41
42
  option: t.UnionC<[t.Type<{
42
43
  [x: string]: unknown;
@@ -48,9 +49,10 @@ export declare const SolPaymentIntent: t.IntersectionC<[t.IntersectionC<[t.TypeC
48
49
  value: t.StringC;
49
50
  symbol: t.StringC;
50
51
  }>;
52
+ }>, t.PartialC<{
51
53
  data: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
52
- }>>;
53
- }>]>, t.IntersectionC<[t.TypeC<{
54
+ }>]>>;
55
+ }>]>, t.IntersectionC<[t.PartialC<{
54
56
  nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
55
57
  }>, t.TypeC<{
56
58
  memo: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
@@ -1,5 +1,5 @@
1
1
  import * as t from "io-ts";
2
- export declare const SolStakeIntent: t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
2
+ export declare const SolStakeIntent: t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
3
3
  intentType: t.KeyofC<{
4
4
  payment: t.LiteralC<"payment">;
5
5
  transferToken: t.LiteralC<"transferToken">;
@@ -30,14 +30,15 @@ export declare const SolStakeIntent: t.IntersectionC<[t.IntersectionC<[t.Interse
30
30
  deactivate: t.LiteralC<"deactivate">;
31
31
  customTx: t.LiteralC<"customTx">;
32
32
  }>;
33
+ }>, t.PartialC<{
33
34
  sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
34
35
  comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
35
- nonce: t.UnionC<[t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>, t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>]>;
36
- }>, t.TypeC<{
36
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
37
+ }>]>, t.TypeC<{
37
38
  stakingRequestId: t.StringC;
38
39
  }>]>, t.TypeC<{
39
40
  intentType: t.LiteralC<"stake">;
40
- }>]>, t.IntersectionC<[t.TypeC<{
41
+ }>]>, t.IntersectionC<[t.PartialC<{
41
42
  nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
42
43
  }>, t.TypeC<{
43
44
  memo: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
@@ -1,5 +1,5 @@
1
1
  import * as t from "io-ts";
2
- export declare const SolUnstakeIntent: t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
2
+ export declare const SolUnstakeIntent: t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
3
3
  intentType: t.KeyofC<{
4
4
  payment: t.LiteralC<"payment">;
5
5
  transferToken: t.LiteralC<"transferToken">;
@@ -30,19 +30,21 @@ export declare const SolUnstakeIntent: t.IntersectionC<[t.IntersectionC<[t.Inter
30
30
  deactivate: t.LiteralC<"deactivate">;
31
31
  customTx: t.LiteralC<"customTx">;
32
32
  }>;
33
+ }>, t.PartialC<{
33
34
  sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
34
35
  comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
35
- nonce: t.UnionC<[t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>, t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>]>;
36
- }>, t.TypeC<{
36
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
37
+ }>]>, t.TypeC<{
37
38
  stakingRequestId: t.StringC;
38
39
  }>]>, t.TypeC<{
39
40
  intentType: t.LiteralC<"unstake">;
40
- }>]>, t.IntersectionC<[t.TypeC<{
41
+ }>]>, t.IntersectionC<[t.PartialC<{
41
42
  nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
42
43
  }>, t.TypeC<{
43
44
  memo: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
44
45
  }>]>, t.TypeC<{
45
46
  stakingAddress: t.StringC;
47
+ }>, t.PartialC<{
46
48
  amount: t.UnionC<[t.Type<{
47
49
  value: string;
48
50
  symbol: string;
@@ -34,6 +34,8 @@ exports.SolUnstakeIntent = t.intersection([
34
34
  solBuildOptions_1.SolBuildOptions,
35
35
  t.type({
36
36
  stakingAddress: t.string,
37
+ }),
38
+ t.partial({
37
39
  amount: (0, utils_1.Optional)(amount_1.Amount),
38
40
  remainingStakingAmount: (0, utils_1.Optional)(amount_1.Amount),
39
41
  }),
@@ -1 +1 @@
1
- {"version":3,"file":"solUnstakeIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/solUnstakeIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,qCAAkC;AAClC,mDAAgD;AAChD,0CAA0C;AAE7B,QAAA,gBAAgB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC7C,6BAAa;IACb,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QACL,cAAc,EAAE,CAAC,CAAC,MAAM;QACxB,MAAM,EAAE,IAAA,gBAAQ,EAAC,eAAM,CAAC;QACxB,sBAAsB,EAAE,IAAA,gBAAQ,EAAC,eAAM,CAAC;KACzC,CAAC;CACH,CAAC,CAAC"}
1
+ {"version":3,"file":"solUnstakeIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/solUnstakeIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,qCAAkC;AAClC,mDAAgD;AAChD,0CAA0C;AAE7B,QAAA,gBAAgB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC7C,6BAAa;IACb,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QACL,cAAc,EAAE,CAAC,CAAC,MAAM;KACzB,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,MAAM,EAAE,IAAA,gBAAQ,EAAC,eAAM,CAAC;QACxB,sBAAsB,EAAE,IAAA,gBAAQ,EAAC,eAAM,CAAC;KACzC,CAAC;CACH,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import * as t from "io-ts";
2
- export declare const StakeClaimRewardsIntent: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
2
+ export declare const StakeClaimRewardsIntent: t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
3
3
  intentType: t.KeyofC<{
4
4
  payment: t.LiteralC<"payment">;
5
5
  transferToken: t.LiteralC<"transferToken">;
@@ -30,10 +30,11 @@ export declare const StakeClaimRewardsIntent: t.IntersectionC<[t.IntersectionC<[
30
30
  deactivate: t.LiteralC<"deactivate">;
31
31
  customTx: t.LiteralC<"customTx">;
32
32
  }>;
33
+ }>, t.PartialC<{
33
34
  sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
34
35
  comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
35
- nonce: t.UnionC<[t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>, t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>]>;
36
- }>, t.TypeC<{
36
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
37
+ }>]>, t.TypeC<{
37
38
  stakingRequestId: t.StringC;
38
39
  }>]>, t.TypeC<{
39
40
  intentType: t.LiteralC<"stakeClaimRewards">;
@@ -1,5 +1,5 @@
1
1
  import * as t from "io-ts";
2
- export declare const StakeIntent: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
2
+ export declare const StakeIntent: t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
3
3
  intentType: t.KeyofC<{
4
4
  payment: t.LiteralC<"payment">;
5
5
  transferToken: t.LiteralC<"transferToken">;
@@ -30,10 +30,11 @@ export declare const StakeIntent: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
30
30
  deactivate: t.LiteralC<"deactivate">;
31
31
  customTx: t.LiteralC<"customTx">;
32
32
  }>;
33
+ }>, t.PartialC<{
33
34
  sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
34
35
  comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
35
- nonce: t.UnionC<[t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>, t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>]>;
36
- }>, t.TypeC<{
36
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
37
+ }>]>, t.TypeC<{
37
38
  stakingRequestId: t.StringC;
38
39
  }>]>, t.TypeC<{
39
40
  intentType: t.LiteralC<"stake">;
@@ -1,5 +1,5 @@
1
1
  import * as t from "io-ts";
2
- export declare const StakeSwitchValidatorIntent: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
2
+ export declare const StakeSwitchValidatorIntent: t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
3
3
  intentType: t.KeyofC<{
4
4
  payment: t.LiteralC<"payment">;
5
5
  transferToken: t.LiteralC<"transferToken">;
@@ -30,10 +30,11 @@ export declare const StakeSwitchValidatorIntent: t.IntersectionC<[t.Intersection
30
30
  deactivate: t.LiteralC<"deactivate">;
31
31
  customTx: t.LiteralC<"customTx">;
32
32
  }>;
33
+ }>, t.PartialC<{
33
34
  sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
34
35
  comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
35
- nonce: t.UnionC<[t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>, t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>]>;
36
- }>, t.TypeC<{
36
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
37
+ }>]>, t.TypeC<{
37
38
  stakingRequestId: t.StringC;
38
39
  }>]>, t.TypeC<{
39
40
  intentType: t.LiteralC<"switchValidator">;
@@ -1,5 +1,5 @@
1
1
  import * as t from "io-ts";
2
- export declare const SuiBuildOptions: t.IntersectionC<[t.TypeC<{
2
+ export declare const SuiBuildOptions: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
3
3
  intentType: t.KeyofC<{
4
4
  payment: t.LiteralC<"payment">;
5
5
  transferToken: t.LiteralC<"transferToken">;
@@ -30,10 +30,11 @@ export declare const SuiBuildOptions: t.IntersectionC<[t.TypeC<{
30
30
  deactivate: t.LiteralC<"deactivate">;
31
31
  customTx: t.LiteralC<"customTx">;
32
32
  }>;
33
+ }>, t.PartialC<{
33
34
  sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
34
35
  comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
35
- nonce: t.UnionC<[t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>, t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>]>;
36
- }>, t.TypeC<{
36
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
37
+ }>]>, t.TypeC<{
37
38
  feeOptions: t.TypeC<{
38
39
  gasLimit: t.NumberC;
39
40
  }>;
@@ -0,0 +1,79 @@
1
+ import * as t from "io-ts";
2
+ export declare const SuiConsolidateIntent: t.IntersectionC<[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
+ }>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
39
+ intentType: t.KeyofC<{
40
+ payment: t.LiteralC<"payment">;
41
+ transferToken: t.LiteralC<"transferToken">;
42
+ consolidate: t.LiteralC<"consolidate">;
43
+ consolidateToken: t.LiteralC<"consolidateToken">;
44
+ fanout: t.LiteralC<"fanout">;
45
+ stake: t.LiteralC<"stake">;
46
+ unstake: t.LiteralC<"unstake">;
47
+ delegate: t.LiteralC<"delegate">;
48
+ undelegate: t.LiteralC<"undelegate">;
49
+ switchValidator: t.LiteralC<"switchValidator">;
50
+ claim: t.LiteralC<"claim">;
51
+ stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
52
+ pledge: t.LiteralC<"pledge">;
53
+ vote: t.LiteralC<"vote">;
54
+ createAccount: t.LiteralC<"createAccount">;
55
+ updateAccount: t.LiteralC<"updateAccount">;
56
+ addTrustLine: t.LiteralC<"addTrustLine">;
57
+ removeTrustLine: t.LiteralC<"removeTrustLine">;
58
+ signMessage: t.LiteralC<"signMessage">;
59
+ signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
60
+ enableToken: t.LiteralC<"enableToken">;
61
+ authorize: t.LiteralC<"authorize">;
62
+ acceleration: t.LiteralC<"acceleration">;
63
+ fillNonce: t.LiteralC<"fillNonce">;
64
+ walletRecovery: t.LiteralC<"walletRecovery">;
65
+ contractCall: t.LiteralC<"contractCall">;
66
+ deactivate: t.LiteralC<"deactivate">;
67
+ customTx: t.LiteralC<"customTx">;
68
+ }>;
69
+ }>, t.PartialC<{
70
+ sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
71
+ comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
72
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
73
+ }>]>, t.TypeC<{
74
+ feeOptions: t.TypeC<{
75
+ gasLimit: t.NumberC;
76
+ }>;
77
+ lockedAmount: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
78
+ }>]>]>;
79
+ export type SuiConsolidateIntent = t.TypeOf<typeof SuiConsolidateIntent>;
@@ -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.SuiConsolidateIntent = void 0;
27
+ const t = __importStar(require("io-ts"));
28
+ const suiBuildOptions_1 = require("./suiBuildOptions");
29
+ const accountBaseConsolidateIntent_1 = require("./accountBaseConsolidateIntent");
30
+ exports.SuiConsolidateIntent = t.intersection([
31
+ accountBaseConsolidateIntent_1.AccountBaseConsolidateIntent,
32
+ suiBuildOptions_1.SuiBuildOptions,
33
+ ]);
34
+ //# sourceMappingURL=suiConsolidateIntent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"suiConsolidateIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/suiConsolidateIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,iFAA8E;AAEjE,QAAA,oBAAoB,GAAG,CAAC,CAAC,YAAY,CAAC;IACjD,2DAA4B;IAC5B,iCAAe;CAChB,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import * as t from "io-ts";
2
- export declare const SuiCustomTxIntent: t.IntersectionC<[t.TypeC<{
2
+ export declare const SuiCustomTxIntent: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
3
3
  intentType: t.KeyofC<{
4
4
  payment: t.LiteralC<"payment">;
5
5
  transferToken: t.LiteralC<"transferToken">;
@@ -30,10 +30,11 @@ export declare const SuiCustomTxIntent: t.IntersectionC<[t.TypeC<{
30
30
  deactivate: t.LiteralC<"deactivate">;
31
31
  customTx: t.LiteralC<"customTx">;
32
32
  }>;
33
+ }>, t.PartialC<{
33
34
  sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
34
35
  comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
35
- nonce: t.UnionC<[t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>, t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>]>;
36
- }>, t.IntersectionC<[t.TypeC<{
36
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
37
+ }>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
37
38
  intentType: t.KeyofC<{
38
39
  payment: t.LiteralC<"payment">;
39
40
  transferToken: t.LiteralC<"transferToken">;
@@ -64,10 +65,11 @@ export declare const SuiCustomTxIntent: t.IntersectionC<[t.TypeC<{
64
65
  deactivate: t.LiteralC<"deactivate">;
65
66
  customTx: t.LiteralC<"customTx">;
66
67
  }>;
68
+ }>, t.PartialC<{
67
69
  sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
68
70
  comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
69
- nonce: t.UnionC<[t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>, t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>]>;
70
- }>, t.TypeC<{
71
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
72
+ }>]>, t.TypeC<{
71
73
  feeOptions: t.TypeC<{
72
74
  gasLimit: t.NumberC;
73
75
  }>;
@@ -0,0 +1,96 @@
1
+ import * as t from "io-ts";
2
+ export declare const SuiPaymentIntent: 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
+ 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
+ }>;
33
+ }>, t.PartialC<{
34
+ sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
35
+ comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
36
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
37
+ }>]>, t.TypeC<{
38
+ intent: t.LiteralC<"payment">;
39
+ recipients: t.ArrayC<t.IntersectionC<[t.TypeC<{
40
+ address: t.PartialC<{
41
+ address: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
42
+ option: t.UnionC<[t.Type<{
43
+ [x: string]: unknown;
44
+ }, {
45
+ [x: string]: unknown;
46
+ }, unknown>, t.UndefinedC]>;
47
+ }>;
48
+ amount: t.TypeC<{
49
+ value: t.StringC;
50
+ symbol: t.StringC;
51
+ }>;
52
+ }>, t.PartialC<{
53
+ data: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
54
+ }>]>>;
55
+ }>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
56
+ intentType: t.KeyofC<{
57
+ payment: t.LiteralC<"payment">;
58
+ transferToken: t.LiteralC<"transferToken">;
59
+ consolidate: t.LiteralC<"consolidate">;
60
+ consolidateToken: t.LiteralC<"consolidateToken">;
61
+ fanout: t.LiteralC<"fanout">;
62
+ stake: t.LiteralC<"stake">;
63
+ unstake: t.LiteralC<"unstake">;
64
+ delegate: t.LiteralC<"delegate">;
65
+ undelegate: t.LiteralC<"undelegate">;
66
+ switchValidator: t.LiteralC<"switchValidator">;
67
+ claim: t.LiteralC<"claim">;
68
+ stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
69
+ pledge: t.LiteralC<"pledge">;
70
+ vote: t.LiteralC<"vote">;
71
+ createAccount: t.LiteralC<"createAccount">;
72
+ updateAccount: t.LiteralC<"updateAccount">;
73
+ addTrustLine: t.LiteralC<"addTrustLine">;
74
+ removeTrustLine: t.LiteralC<"removeTrustLine">;
75
+ signMessage: t.LiteralC<"signMessage">;
76
+ signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
77
+ enableToken: t.LiteralC<"enableToken">;
78
+ authorize: t.LiteralC<"authorize">;
79
+ acceleration: t.LiteralC<"acceleration">;
80
+ fillNonce: t.LiteralC<"fillNonce">;
81
+ walletRecovery: t.LiteralC<"walletRecovery">;
82
+ contractCall: t.LiteralC<"contractCall">;
83
+ deactivate: t.LiteralC<"deactivate">;
84
+ customTx: t.LiteralC<"customTx">;
85
+ }>;
86
+ }>, t.PartialC<{
87
+ sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
88
+ comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
89
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
90
+ }>]>, t.TypeC<{
91
+ feeOptions: t.TypeC<{
92
+ gasLimit: t.NumberC;
93
+ }>;
94
+ lockedAmount: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
95
+ }>]>]>;
96
+ export type SuiPaymentIntent = t.TypeOf<typeof SuiPaymentIntent>;
@@ -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.SuiPaymentIntent = void 0;
27
+ const t = __importStar(require("io-ts"));
28
+ const suiBuildOptions_1 = require("./suiBuildOptions");
29
+ const paymentIntent_1 = require("./paymentIntent");
30
+ exports.SuiPaymentIntent = t.intersection([
31
+ paymentIntent_1.PaymentIntent,
32
+ suiBuildOptions_1.SuiBuildOptions,
33
+ ]);
34
+ //# sourceMappingURL=suiPaymentIntent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"suiPaymentIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/suiPaymentIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,mDAAgD;AAEnC,QAAA,gBAAgB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC7C,6BAAa;IACb,iCAAe;CAChB,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import * as t from "io-ts";
2
- export declare const SuiStakingIntent: t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
2
+ export declare const SuiStakingIntent: t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
3
3
  intentType: t.KeyofC<{
4
4
  payment: t.LiteralC<"payment">;
5
5
  transferToken: t.LiteralC<"transferToken">;
@@ -30,14 +30,15 @@ export declare const SuiStakingIntent: t.IntersectionC<[t.IntersectionC<[t.Inter
30
30
  deactivate: t.LiteralC<"deactivate">;
31
31
  customTx: t.LiteralC<"customTx">;
32
32
  }>;
33
+ }>, t.PartialC<{
33
34
  sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
34
35
  comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
35
- nonce: t.UnionC<[t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>, t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>]>;
36
- }>, t.TypeC<{
36
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
37
+ }>]>, t.TypeC<{
37
38
  stakingRequestId: t.StringC;
38
39
  }>]>, t.TypeC<{
39
40
  intentType: t.LiteralC<"stake">;
40
- }>]>, t.TypeC<{
41
+ }>]>, t.PartialC<{
41
42
  validatorAddress: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
42
43
  amount: t.UnionC<[t.Type<{
43
44
  value: string;
@@ -46,10 +47,10 @@ export declare const SuiStakingIntent: t.IntersectionC<[t.IntersectionC<[t.Inter
46
47
  value: string;
47
48
  symbol: string;
48
49
  }, unknown>, t.UndefinedC]>;
49
- recipients: t.UnionC<[t.Type<{
50
+ recipients: t.UnionC<[t.Type<({
50
51
  address: {
51
- address: string | undefined;
52
- option: {
52
+ address?: string | undefined;
53
+ option?: {
53
54
  [x: string]: unknown;
54
55
  } | undefined;
55
56
  };
@@ -57,11 +58,12 @@ export declare const SuiStakingIntent: t.IntersectionC<[t.IntersectionC<[t.Inter
57
58
  value: string;
58
59
  symbol: string;
59
60
  };
60
- data: string | undefined;
61
- }[], {
61
+ } & {
62
+ data?: string | undefined;
63
+ })[], ({
62
64
  address: {
63
- address: string | undefined;
64
- option: {
65
+ address?: string | undefined;
66
+ option?: {
65
67
  [x: string]: unknown;
66
68
  } | undefined;
67
69
  };
@@ -69,7 +71,8 @@ export declare const SuiStakingIntent: t.IntersectionC<[t.IntersectionC<[t.Inter
69
71
  value: string;
70
72
  symbol: string;
71
73
  };
72
- data: string | undefined;
73
- }[], unknown>, t.UndefinedC]>;
74
+ } & {
75
+ data?: string | undefined;
76
+ })[], unknown>, t.UndefinedC]>;
74
77
  }>]>;
75
78
  export type SuiStakingIntent = t.TypeOf<typeof SuiStakingIntent>;
@@ -31,7 +31,7 @@ const amount_1 = require("./amount");
31
31
  const recipientEntry_1 = require("./recipientEntry");
32
32
  exports.SuiStakingIntent = t.intersection([
33
33
  stakeIntent_1.StakeIntent,
34
- t.type({
34
+ t.partial({
35
35
  validatorAddress: utils_1.optionalString,
36
36
  amount: (0, utils_1.Optional)(amount_1.Amount),
37
37
  recipients: (0, utils_1.Optional)(t.array(recipientEntry_1.RecipientEntry)),
@@ -1 +1 @@
1
- {"version":3,"file":"suiStakingIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/suiStakingIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,+CAA4C;AAC5C,0CAA0D;AAC1D,qCAAkC;AAClC,qDAAkD;AAErC,QAAA,gBAAgB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC7C,yBAAW;IACX,CAAC,CAAC,IAAI,CAAC;QACL,gBAAgB,EAAE,sBAAc;QAChC,MAAM,EAAE,IAAA,gBAAQ,EAAC,eAAM,CAAC;QACxB,UAAU,EAAE,IAAA,gBAAQ,EAAC,CAAC,CAAC,KAAK,CAAC,+BAAc,CAAC,CAAC;KAC9C,CAAC;CACH,CAAC,CAAC"}
1
+ {"version":3,"file":"suiStakingIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/suiStakingIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,+CAA4C;AAC5C,0CAA0D;AAC1D,qCAAkC;AAClC,qDAAkD;AAErC,QAAA,gBAAgB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC7C,yBAAW;IACX,CAAC,CAAC,OAAO,CAAC;QACR,gBAAgB,EAAE,sBAAc;QAChC,MAAM,EAAE,IAAA,gBAAQ,EAAC,eAAM,CAAC;QACxB,UAAU,EAAE,IAAA,gBAAQ,EAAC,CAAC,CAAC,KAAK,CAAC,+BAAc,CAAC,CAAC;KAC9C,CAAC;CACH,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import * as t from "io-ts";
2
- export declare const SuiUnstakingIntent: t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
2
+ export declare const SuiUnstakingIntent: t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
3
3
  intentType: t.KeyofC<{
4
4
  payment: t.LiteralC<"payment">;
5
5
  transferToken: t.LiteralC<"transferToken">;
@@ -30,13 +30,15 @@ export declare const SuiUnstakingIntent: t.IntersectionC<[t.IntersectionC<[t.Int
30
30
  deactivate: t.LiteralC<"deactivate">;
31
31
  customTx: t.LiteralC<"customTx">;
32
32
  }>;
33
+ }>, t.PartialC<{
33
34
  sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
34
35
  comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
35
- nonce: t.UnionC<[t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>, t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>]>;
36
- }>, t.TypeC<{
36
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
37
+ }>]>, t.TypeC<{
37
38
  stakingRequestId: t.StringC;
38
39
  }>]>, t.TypeC<{
39
40
  intentType: t.LiteralC<"claim">;
41
+ }>, t.PartialC<{
40
42
  amount: t.UnionC<[t.Type<{
41
43
  value: string;
42
44
  symbol: string;
@@ -46,6 +48,7 @@ export declare const SuiUnstakingIntent: t.IntersectionC<[t.IntersectionC<[t.Int
46
48
  }, unknown>, t.UndefinedC]>;
47
49
  }>]>, t.TypeC<{
48
50
  stakedSuiObjectId: t.StringC;
51
+ }>, t.PartialC<{
49
52
  amount: t.UnionC<[t.Type<{
50
53
  value: string;
51
54
  symbol: string;
@@ -32,6 +32,8 @@ exports.SuiUnstakingIntent = t.intersection([
32
32
  withdrawIntent_1.WithdrawIntent,
33
33
  t.type({
34
34
  stakedSuiObjectId: t.string,
35
+ }),
36
+ t.partial({
35
37
  amount: (0, utils_1.Optional)(amount_1.Amount),
36
38
  }),
37
39
  ]);