@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
@@ -0,0 +1,105 @@
1
+ import * as t from "io-ts";
2
+ export declare const EthConsolidateTokenIntent: 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.IntersectionC<[t.PartialC<{
38
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
39
+ }>, t.PartialC<{
40
+ feeOptions: t.UnionC<[t.Type<{
41
+ unit?: "baseUnit" | "cpu" | "ram" | undefined;
42
+ formula?: "fixed" | "feeRate" | "perKB" | "custom" | "perVKB" | undefined;
43
+ feeType?: "max" | "base" | "tip" | undefined;
44
+ gasLimit?: number | undefined;
45
+ gasPrice?: number | undefined;
46
+ } | {
47
+ gasLimit?: number | undefined;
48
+ maxFeePerGas?: number | undefined;
49
+ maxPriorityFeePerGas?: number | undefined;
50
+ }, {
51
+ unit?: "baseUnit" | "cpu" | "ram" | undefined;
52
+ formula?: "fixed" | "feeRate" | "perKB" | "custom" | "perVKB" | undefined;
53
+ feeType?: "max" | "base" | "tip" | undefined;
54
+ gasLimit?: number | undefined;
55
+ gasPrice?: number | undefined;
56
+ } | {
57
+ gasLimit?: number | undefined;
58
+ maxFeePerGas?: number | undefined;
59
+ maxPriorityFeePerGas?: number | undefined;
60
+ }, unknown>, t.UndefinedC]>;
61
+ hopParams: t.UnionC<[t.Type<{
62
+ paymentId: string | undefined;
63
+ userReqSig: string | undefined;
64
+ gasPriceMax: number | undefined;
65
+ }, {
66
+ paymentId: string | undefined;
67
+ userReqSig: string | undefined;
68
+ gasPriceMax: number | undefined;
69
+ }, unknown>, t.UndefinedC]>;
70
+ receiveAddress: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
71
+ senderAddressIndex: t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>;
72
+ }>]>, t.TypeC<{
73
+ intentType: t.LiteralC<"consolidateToken">;
74
+ recipients: t.ArrayC<t.IntersectionC<[t.IntersectionC<[t.TypeC<{
75
+ address: t.PartialC<{
76
+ address: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
77
+ option: t.UnionC<[t.Type<{
78
+ [x: string]: unknown;
79
+ }, {
80
+ [x: string]: unknown;
81
+ }, unknown>, t.UndefinedC]>;
82
+ }>;
83
+ amount: t.TypeC<{
84
+ value: t.StringC;
85
+ symbol: t.StringC;
86
+ }>;
87
+ }>, t.PartialC<{
88
+ data: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
89
+ }>]>, t.TypeC<{
90
+ tokenData: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
91
+ tokenQuantity: t.StringC;
92
+ tokenType: t.StringC;
93
+ }>, t.PartialC<{
94
+ tokenId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
95
+ }>]>, t.TypeC<{
96
+ tokenName: t.StringC;
97
+ }>, t.PartialC<{
98
+ tokenContractAddress: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
99
+ decimals: t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>;
100
+ }>]>;
101
+ }>]>>;
102
+ consolidateId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
103
+ keepAlive: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
104
+ }>]>;
105
+ export type EthConsolidateTokenIntent = t.TypeOf<typeof EthConsolidateTokenIntent>;
@@ -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.EthConsolidateTokenIntent = void 0;
27
+ const t = __importStar(require("io-ts"));
28
+ const baseIntent_1 = require("./baseIntent");
29
+ const intentType_1 = require("./intentType");
30
+ const utils_1 = require("../../../utils");
31
+ const tokenRecipientEntry_1 = require("./tokenRecipientEntry");
32
+ const ethBuildOptions_1 = require("./ethBuildOptions");
33
+ exports.EthConsolidateTokenIntent = t.intersection([
34
+ baseIntent_1.BaseIntent,
35
+ ethBuildOptions_1.EthBuildOptions,
36
+ t.type({
37
+ intentType: intentType_1.intentTypes.consolidateToken,
38
+ recipients: t.array(tokenRecipientEntry_1.TokenRecipientEntry),
39
+ consolidateId: utils_1.optionalString,
40
+ keepAlive: utils_1.optionalBoolean,
41
+ }),
42
+ ]);
43
+ //# sourceMappingURL=ethConsolidateTokenIntent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ethConsolidateTokenIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/ethConsolidateTokenIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA0C;AAC1C,6CAA2C;AAC3C,0CAAiE;AACjE,+DAA4D;AAC5D,uDAAoD;AAEvC,QAAA,yBAAyB,GAAG,CAAC,CAAC,YAAY,CAAC;IACtD,uBAAU;IACV,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,gBAAgB;QACxC,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,yCAAmB,CAAC;QACxC,aAAa,EAAE,sBAAc;QAC7B,SAAS,EAAE,uBAAe;KAC3B,CAAC;CACH,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import * as t from "io-ts";
2
- export declare const EthFillNonceIntent: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
2
+ export declare const EthFillNonceIntent: 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,32 +30,33 @@ export declare const EthFillNonceIntent: t.IntersectionC<[t.IntersectionC<[t.Typ
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
- }>, t.TypeC<{
36
+ }>]>, t.TypeC<{
36
37
  intentType: t.LiteralC<"fillNonce">;
37
38
  nonce: t.UnionC<[t.StringC, t.NumberC]>;
38
- }>]>, t.TypeC<{
39
+ }>]>, t.PartialC<{
39
40
  feeOptions: t.UnionC<[t.Type<{
40
- gasLimit: number | undefined;
41
- maxFeePerGas: number | undefined;
42
- maxPriorityFeePerGas: number | undefined;
41
+ unit?: "baseUnit" | "cpu" | "ram" | undefined;
42
+ formula?: "fixed" | "feeRate" | "perKB" | "custom" | "perVKB" | undefined;
43
+ feeType?: "max" | "base" | "tip" | undefined;
44
+ gasLimit?: number | undefined;
45
+ gasPrice?: number | undefined;
43
46
  } | {
44
- unit: "baseUnit" | "cpu" | "ram" | undefined;
45
- formula: "fixed" | "feeRate" | "perKB" | "custom" | "perVKB" | undefined;
46
- feeType: "max" | "base" | "tip" | undefined;
47
- gasLimit: number | undefined;
48
- gasPrice: number | undefined;
47
+ gasLimit?: number | undefined;
48
+ maxFeePerGas?: number | undefined;
49
+ maxPriorityFeePerGas?: number | undefined;
49
50
  }, {
50
- gasLimit: number | undefined;
51
- maxFeePerGas: number | undefined;
52
- maxPriorityFeePerGas: number | undefined;
51
+ unit?: "baseUnit" | "cpu" | "ram" | undefined;
52
+ formula?: "fixed" | "feeRate" | "perKB" | "custom" | "perVKB" | undefined;
53
+ feeType?: "max" | "base" | "tip" | undefined;
54
+ gasLimit?: number | undefined;
55
+ gasPrice?: number | undefined;
53
56
  } | {
54
- unit: "baseUnit" | "cpu" | "ram" | undefined;
55
- formula: "fixed" | "feeRate" | "perKB" | "custom" | "perVKB" | undefined;
56
- feeType: "max" | "base" | "tip" | undefined;
57
- gasLimit: number | undefined;
58
- gasPrice: number | undefined;
57
+ gasLimit?: number | undefined;
58
+ maxFeePerGas?: number | undefined;
59
+ maxPriorityFeePerGas?: number | undefined;
59
60
  }, unknown>, t.UndefinedC]>;
60
61
  receiveAddress: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
61
62
  senderAddressIndex: t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>;
@@ -26,15 +26,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.EthFillNonceIntent = void 0;
27
27
  const t = __importStar(require("io-ts"));
28
28
  const fillNonceIntent_1 = require("./fillNonceIntent");
29
- const utils_1 = require("../../../utils");
30
- const feeOption_1 = require("./feeOption");
31
- const eip1559FeeOptions_1 = require("./eip1559FeeOptions");
29
+ const ethBuildOptions_1 = require("./ethBuildOptions");
32
30
  exports.EthFillNonceIntent = t.intersection([
33
31
  fillNonceIntent_1.FillNonceIntent,
34
- t.type({
35
- feeOptions: (0, utils_1.Optional)(t.union([feeOption_1.FeeOption, eip1559FeeOptions_1.EIP1559FeeOptions])),
36
- receiveAddress: utils_1.optionalString,
37
- senderAddressIndex: utils_1.optionalNumber,
38
- }),
32
+ ethBuildOptions_1.EthFillNonceBuildOptions,
39
33
  ]);
40
34
  //# sourceMappingURL=ethFillNonceIntent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ethFillNonceIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/ethFillNonceIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,0CAA0E;AAC1E,2CAAwC;AACxC,2DAAwD;AAE3C,QAAA,kBAAkB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC/C,iCAAe;IAGf,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,IAAA,gBAAQ,EAAC,CAAC,CAAC,KAAK,CAAC,CAAC,qBAAS,EAAE,qCAAiB,CAAC,CAAC,CAAC;QAC7D,cAAc,EAAE,sBAAc;QAC9B,kBAAkB,EAAE,sBAAc;KACnC,CAAC;CACH,CAAC,CAAC"}
1
+ {"version":3,"file":"ethFillNonceIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/ethFillNonceIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,uDAA6D;AAEhD,QAAA,kBAAkB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC/C,iCAAe;IACf,0CAAwB;CACzB,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import * as t from "io-ts";
2
- export declare const EthPaymentIntent: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
2
+ export declare const EthPaymentIntent: 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 EthPaymentIntent: 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,31 +49,32 @@ export declare const EthPaymentIntent: 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
- }>, t.TypeC<{
57
+ }>, t.PartialC<{
56
58
  feeOptions: t.UnionC<[t.Type<{
57
- gasLimit: number | undefined;
58
- maxFeePerGas: number | undefined;
59
- maxPriorityFeePerGas: number | undefined;
59
+ unit?: "baseUnit" | "cpu" | "ram" | undefined;
60
+ formula?: "fixed" | "feeRate" | "perKB" | "custom" | "perVKB" | undefined;
61
+ feeType?: "max" | "base" | "tip" | undefined;
62
+ gasLimit?: number | undefined;
63
+ gasPrice?: number | undefined;
60
64
  } | {
61
- unit: "baseUnit" | "cpu" | "ram" | undefined;
62
- formula: "fixed" | "feeRate" | "perKB" | "custom" | "perVKB" | undefined;
63
- feeType: "max" | "base" | "tip" | undefined;
64
- gasLimit: number | undefined;
65
- gasPrice: number | undefined;
65
+ gasLimit?: number | undefined;
66
+ maxFeePerGas?: number | undefined;
67
+ maxPriorityFeePerGas?: number | undefined;
66
68
  }, {
67
- gasLimit: number | undefined;
68
- maxFeePerGas: number | undefined;
69
- maxPriorityFeePerGas: number | undefined;
69
+ unit?: "baseUnit" | "cpu" | "ram" | undefined;
70
+ formula?: "fixed" | "feeRate" | "perKB" | "custom" | "perVKB" | undefined;
71
+ feeType?: "max" | "base" | "tip" | undefined;
72
+ gasLimit?: number | undefined;
73
+ gasPrice?: number | undefined;
70
74
  } | {
71
- unit: "baseUnit" | "cpu" | "ram" | undefined;
72
- formula: "fixed" | "feeRate" | "perKB" | "custom" | "perVKB" | undefined;
73
- feeType: "max" | "base" | "tip" | undefined;
74
- gasLimit: number | undefined;
75
- gasPrice: number | undefined;
75
+ gasLimit?: number | undefined;
76
+ maxFeePerGas?: number | undefined;
77
+ maxPriorityFeePerGas?: number | undefined;
76
78
  }, unknown>, t.UndefinedC]>;
77
79
  hopParams: t.UnionC<[t.Type<{
78
80
  paymentId: string | undefined;
@@ -86,6 +88,6 @@ export declare const EthPaymentIntent: t.IntersectionC<[t.IntersectionC<[t.TypeC
86
88
  receiveAddress: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
87
89
  senderAddressIndex: t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>;
88
90
  }>]>, t.TypeC<{
89
- selfSend: t.StringC;
91
+ selfSend: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
90
92
  }>]>;
91
93
  export type EthPaymentIntent = t.TypeOf<typeof EthPaymentIntent>;
@@ -27,11 +27,12 @@ exports.EthPaymentIntent = void 0;
27
27
  const t = __importStar(require("io-ts"));
28
28
  const paymentIntent_1 = require("./paymentIntent");
29
29
  const ethBuildOptions_1 = require("./ethBuildOptions");
30
+ const utils_1 = require("../../../utils");
30
31
  exports.EthPaymentIntent = t.intersection([
31
32
  paymentIntent_1.PaymentIntent,
32
33
  ethBuildOptions_1.EthBuildOptions,
33
34
  t.type({
34
- selfSend: t.string,
35
+ selfSend: utils_1.optionalBoolean,
35
36
  }),
36
37
  ]);
37
38
  //# sourceMappingURL=ethPaymentIntent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ethPaymentIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/ethPaymentIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,mDAAgD;AAChD,uDAAoD;AAEvC,QAAA,gBAAgB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC7C,6BAAa;IACb,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QACL,QAAQ,EAAE,CAAC,CAAC,MAAM;KACnB,CAAC;CACH,CAAC,CAAC"}
1
+ {"version":3,"file":"ethPaymentIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/ethPaymentIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,mDAAgD;AAChD,uDAAoD;AACpD,0CAAiD;AAEpC,QAAA,gBAAgB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC7C,6BAAa;IACb,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QACL,QAAQ,EAAE,uBAAe;KAC1B,CAAC;CACH,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import * as t from "io-ts";
2
- export declare const EthStakingIntent: t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
2
+ export declare const EthStakingIntent: 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,36 +30,37 @@ export declare const EthStakingIntent: 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.IntersectionC<[t.TypeC<{
41
+ }>]>, t.IntersectionC<[t.PartialC<{
41
42
  nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
42
- }>, t.TypeC<{
43
+ }>, t.PartialC<{
43
44
  feeOptions: t.UnionC<[t.Type<{
44
- gasLimit: number | undefined;
45
- maxFeePerGas: number | undefined;
46
- maxPriorityFeePerGas: number | undefined;
45
+ unit?: "baseUnit" | "cpu" | "ram" | undefined;
46
+ formula?: "fixed" | "feeRate" | "perKB" | "custom" | "perVKB" | undefined;
47
+ feeType?: "max" | "base" | "tip" | undefined;
48
+ gasLimit?: number | undefined;
49
+ gasPrice?: number | undefined;
47
50
  } | {
48
- unit: "baseUnit" | "cpu" | "ram" | undefined;
49
- formula: "fixed" | "feeRate" | "perKB" | "custom" | "perVKB" | undefined;
50
- feeType: "max" | "base" | "tip" | undefined;
51
- gasLimit: number | undefined;
52
- gasPrice: number | undefined;
51
+ gasLimit?: number | undefined;
52
+ maxFeePerGas?: number | undefined;
53
+ maxPriorityFeePerGas?: number | undefined;
53
54
  }, {
54
- gasLimit: number | undefined;
55
- maxFeePerGas: number | undefined;
56
- maxPriorityFeePerGas: number | undefined;
55
+ unit?: "baseUnit" | "cpu" | "ram" | undefined;
56
+ formula?: "fixed" | "feeRate" | "perKB" | "custom" | "perVKB" | undefined;
57
+ feeType?: "max" | "base" | "tip" | undefined;
58
+ gasLimit?: number | undefined;
59
+ gasPrice?: number | undefined;
57
60
  } | {
58
- unit: "baseUnit" | "cpu" | "ram" | undefined;
59
- formula: "fixed" | "feeRate" | "perKB" | "custom" | "perVKB" | undefined;
60
- feeType: "max" | "base" | "tip" | undefined;
61
- gasLimit: number | undefined;
62
- gasPrice: number | undefined;
61
+ gasLimit?: number | undefined;
62
+ maxFeePerGas?: number | undefined;
63
+ maxPriorityFeePerGas?: number | undefined;
63
64
  }, unknown>, t.UndefinedC]>;
64
65
  hopParams: t.UnionC<[t.Type<{
65
66
  paymentId: string | undefined;
@@ -0,0 +1,103 @@
1
+ import * as t from "io-ts";
2
+ export declare const EthTransferTokenIntent: 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
+ intentType: t.LiteralC<"transferToken">;
39
+ recipients: t.ArrayC<t.IntersectionC<[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
+ }>]>, t.TypeC<{
55
+ tokenData: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
56
+ tokenQuantity: t.StringC;
57
+ tokenType: t.StringC;
58
+ }>, t.PartialC<{
59
+ tokenId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
60
+ }>]>, t.TypeC<{
61
+ tokenName: t.StringC;
62
+ }>, t.PartialC<{
63
+ tokenContractAddress: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
64
+ decimals: t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>;
65
+ }>]>;
66
+ }>]>>;
67
+ }>]>, t.IntersectionC<[t.PartialC<{
68
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
69
+ }>, t.PartialC<{
70
+ feeOptions: t.UnionC<[t.Type<{
71
+ unit?: "baseUnit" | "cpu" | "ram" | undefined;
72
+ formula?: "fixed" | "feeRate" | "perKB" | "custom" | "perVKB" | undefined;
73
+ feeType?: "max" | "base" | "tip" | undefined;
74
+ gasLimit?: number | undefined;
75
+ gasPrice?: number | undefined;
76
+ } | {
77
+ gasLimit?: number | undefined;
78
+ maxFeePerGas?: number | undefined;
79
+ maxPriorityFeePerGas?: number | undefined;
80
+ }, {
81
+ unit?: "baseUnit" | "cpu" | "ram" | undefined;
82
+ formula?: "fixed" | "feeRate" | "perKB" | "custom" | "perVKB" | undefined;
83
+ feeType?: "max" | "base" | "tip" | undefined;
84
+ gasLimit?: number | undefined;
85
+ gasPrice?: number | undefined;
86
+ } | {
87
+ gasLimit?: number | undefined;
88
+ maxFeePerGas?: number | undefined;
89
+ maxPriorityFeePerGas?: number | undefined;
90
+ }, unknown>, t.UndefinedC]>;
91
+ hopParams: t.UnionC<[t.Type<{
92
+ paymentId: string | undefined;
93
+ userReqSig: string | undefined;
94
+ gasPriceMax: number | undefined;
95
+ }, {
96
+ paymentId: string | undefined;
97
+ userReqSig: string | undefined;
98
+ gasPriceMax: number | undefined;
99
+ }, unknown>, t.UndefinedC]>;
100
+ receiveAddress: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
101
+ senderAddressIndex: t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>;
102
+ }>]>]>;
103
+ export type EthTransferTokenIntent = t.TypeOf<typeof EthTransferTokenIntent>;
@@ -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.EthTransferTokenIntent = void 0;
27
+ const t = __importStar(require("io-ts"));
28
+ const ethBuildOptions_1 = require("./ethBuildOptions");
29
+ const transferTokenIntent_1 = require("./transferTokenIntent");
30
+ exports.EthTransferTokenIntent = t.intersection([
31
+ transferTokenIntent_1.TransferTokenIntent,
32
+ ethBuildOptions_1.EthBuildOptions,
33
+ ]);
34
+ //# sourceMappingURL=ethTransferTokenIntent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ethTransferTokenIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/ethTransferTokenIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,+DAA4D;AAE/C,QAAA,sBAAsB,GAAG,CAAC,CAAC,YAAY,CAAC;IACnD,yCAAmB;IACnB,iCAAe;CAChB,CAAC,CAAC"}
@@ -1,8 +1,9 @@
1
1
  import * as t from "io-ts";
2
- export declare const FeeOption: t.TypeC<{
2
+ export declare const FeeOption: t.PartialC<{
3
3
  unit: t.UnionC<[t.Type<"baseUnit" | "cpu" | "ram", "baseUnit" | "cpu" | "ram", unknown>, t.UndefinedC]>;
4
4
  formula: t.UnionC<[t.Type<"fixed" | "feeRate" | "perKB" | "custom" | "perVKB", "fixed" | "feeRate" | "perKB" | "custom" | "perVKB", unknown>, t.UndefinedC]>;
5
5
  feeType: t.UnionC<[t.Type<"max" | "base" | "tip", "max" | "base" | "tip", unknown>, t.UndefinedC]>;
6
6
  gasLimit: t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>;
7
7
  gasPrice: t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>;
8
8
  }>;
9
+ export type FeeOption = t.TypeOf<typeof FeeOption>;
@@ -29,7 +29,7 @@ const utils_1 = require("../../../utils");
29
29
  const feeOptionUnit_1 = require("./feeOptionUnit");
30
30
  const feeOptionFormula_1 = require("./feeOptionFormula");
31
31
  const feeOptionFeeType_1 = require("./feeOptionFeeType");
32
- exports.FeeOption = t.type({
32
+ exports.FeeOption = t.partial({
33
33
  unit: (0, utils_1.Optional)(feeOptionUnit_1.FeeUnit),
34
34
  formula: (0, utils_1.Optional)(feeOptionFormula_1.FeeFormula),
35
35
  feeType: (0, utils_1.Optional)(feeOptionFeeType_1.FeeType),
@@ -1 +1 @@
1
- {"version":3,"file":"feeOption.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/feeOption.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,0CAA0D;AAC1D,mDAA0C;AAC1C,yDAAgD;AAChD,yDAA6C;AAEhC,QAAA,SAAS,GAAG,CAAC,CAAC,IAAI,CAAC;IAC9B,IAAI,EAAE,IAAA,gBAAQ,EAAC,uBAAO,CAAC;IACvB,OAAO,EAAE,IAAA,gBAAQ,EAAC,6BAAU,CAAC;IAC7B,OAAO,EAAE,IAAA,gBAAQ,EAAC,0BAAO,CAAC;IAC1B,QAAQ,EAAE,sBAAc;IACxB,QAAQ,EAAE,sBAAc;CACzB,CAAC,CAAC"}
1
+ {"version":3,"file":"feeOption.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/feeOption.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,0CAA0D;AAC1D,mDAA0C;AAC1C,yDAAgD;AAChD,yDAA6C;AAEhC,QAAA,SAAS,GAAG,CAAC,CAAC,OAAO,CAAC;IACjC,IAAI,EAAE,IAAA,gBAAQ,EAAC,uBAAO,CAAC;IACvB,OAAO,EAAE,IAAA,gBAAQ,EAAC,6BAAU,CAAC;IAC7B,OAAO,EAAE,IAAA,gBAAQ,EAAC,0BAAO,CAAC;IAC1B,QAAQ,EAAE,sBAAc;IACxB,QAAQ,EAAE,sBAAc;CACzB,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import * as t from "io-ts";
2
- export declare const FillNonceIntent: t.IntersectionC<[t.TypeC<{
2
+ export declare const FillNonceIntent: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
3
3
  intentType: t.KeyofC<{
4
4
  payment: t.LiteralC<"payment">;
5
5
  transferToken: t.LiteralC<"transferToken">;
@@ -30,9 +30,10 @@ export declare const FillNonceIntent: 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
- }>, t.TypeC<{
36
+ }>]>, t.TypeC<{
36
37
  intentType: t.LiteralC<"fillNonce">;
37
38
  nonce: t.UnionC<[t.StringC, t.NumberC]>;
38
39
  }>]>;