@bitgo/public-types 2.39.0 → 2.41.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 (241) hide show
  1. package/dist/src/schema/index.d.ts +1 -0
  2. package/dist/src/schema/index.js +1 -0
  3. package/dist/src/schema/index.js.map +1 -1
  4. package/dist/src/schema/lightning/index.d.ts +1 -0
  5. package/dist/src/schema/lightning/index.js +18 -0
  6. package/dist/src/schema/lightning/index.js.map +1 -0
  7. package/dist/src/schema/transactionRequest/intents/accelerationIntent.d.ts +4 -3
  8. package/dist/src/schema/transactionRequest/intents/accountBaseBuildOptions.d.ts +1 -1
  9. package/dist/src/schema/transactionRequest/intents/accountBaseBuildOptions.js +1 -1
  10. package/dist/src/schema/transactionRequest/intents/accountBaseBuildOptions.js.map +1 -1
  11. package/dist/src/schema/transactionRequest/intents/accountBaseConsolidateIntent.d.ts +13 -10
  12. package/dist/src/schema/transactionRequest/intents/accountBaseConsolidateIntent.js +2 -0
  13. package/dist/src/schema/transactionRequest/intents/accountBaseConsolidateIntent.js.map +1 -1
  14. package/dist/src/schema/transactionRequest/intents/accountBaseCreateAccountIntent.d.ts +5 -3
  15. package/dist/src/schema/transactionRequest/intents/accountBaseCreateAccountIntent.js +2 -0
  16. package/dist/src/schema/transactionRequest/intents/accountBaseCreateAccountIntent.js.map +1 -1
  17. package/dist/src/schema/transactionRequest/intents/accountBaseUpdateAccountIntent.d.ts +5 -3
  18. package/dist/src/schema/transactionRequest/intents/accountBaseUpdateAccountIntent.js +2 -0
  19. package/dist/src/schema/transactionRequest/intents/accountBaseUpdateAccountIntent.js.map +1 -1
  20. package/dist/src/schema/transactionRequest/intents/adaConsolidateIntent.d.ts +14 -11
  21. package/dist/src/schema/transactionRequest/intents/adaConsolidateIntent.js +1 -1
  22. package/dist/src/schema/transactionRequest/intents/adaConsolidateIntent.js.map +1 -1
  23. package/dist/src/schema/transactionRequest/intents/adaPaymentIntent.d.ts +8 -6
  24. package/dist/src/schema/transactionRequest/intents/adaPledgeIntent.d.ts +4 -3
  25. package/dist/src/schema/transactionRequest/intents/adaStakeClaimRewardsIntent.d.ts +4 -3
  26. package/dist/src/schema/transactionRequest/intents/adaStakeIntent.d.ts +6 -4
  27. package/dist/src/schema/transactionRequest/intents/adaStakeIntent.js +3 -1
  28. package/dist/src/schema/transactionRequest/intents/adaStakeIntent.js.map +1 -1
  29. package/dist/src/schema/transactionRequest/intents/adaUnstakeIntent.d.ts +6 -4
  30. package/dist/src/schema/transactionRequest/intents/adaUnstakeIntent.js +3 -1
  31. package/dist/src/schema/transactionRequest/intents/adaUnstakeIntent.js.map +1 -1
  32. package/dist/src/schema/transactionRequest/intents/address.d.ts +2 -1
  33. package/dist/src/schema/transactionRequest/intents/address.js +1 -1
  34. package/dist/src/schema/transactionRequest/intents/address.js.map +1 -1
  35. package/dist/src/schema/transactionRequest/intents/atomPaymentIntent.d.ts +8 -6
  36. package/dist/src/schema/transactionRequest/intents/atomStakeIntent.d.ts +16 -12
  37. package/dist/src/schema/transactionRequest/intents/atomStakeIntent.js +2 -0
  38. package/dist/src/schema/transactionRequest/intents/atomStakeIntent.js.map +1 -1
  39. package/dist/src/schema/transactionRequest/intents/atomUnstakeIntent.d.ts +16 -12
  40. package/dist/src/schema/transactionRequest/intents/atomUnstakeIntent.js +2 -0
  41. package/dist/src/schema/transactionRequest/intents/atomUnstakeIntent.js.map +1 -1
  42. package/dist/src/schema/transactionRequest/intents/atomWithdrawIntent.d.ts +5 -3
  43. package/dist/src/schema/transactionRequest/intents/baseIntent.d.ts +7 -5
  44. package/dist/src/schema/transactionRequest/intents/baseIntent.js +19 -11
  45. package/dist/src/schema/transactionRequest/intents/baseIntent.js.map +1 -1
  46. package/dist/src/schema/transactionRequest/intents/baseStakeIntent.d.ts +4 -3
  47. package/dist/src/schema/transactionRequest/intents/bscDelegateIntent.d.ts +4 -3
  48. package/dist/src/schema/transactionRequest/intents/bscStakeClaimRewardsIntent.d.ts +4 -3
  49. package/dist/src/schema/transactionRequest/intents/bscUndelegateIntent.d.ts +4 -3
  50. package/dist/src/schema/transactionRequest/intents/bscWithdrawIntent.d.ts +5 -3
  51. package/dist/src/schema/transactionRequest/intents/consolidateTokenIntent.d.ts +31 -27
  52. package/dist/src/schema/transactionRequest/intents/consolidateTokenIntent.js +2 -0
  53. package/dist/src/schema/transactionRequest/intents/consolidateTokenIntent.js.map +1 -1
  54. package/dist/src/schema/transactionRequest/intents/cosmosPaymentIntent.d.ts +8 -6
  55. package/dist/src/schema/transactionRequest/intents/cosmosStakeIntent.d.ts +16 -12
  56. package/dist/src/schema/transactionRequest/intents/cosmosStakeIntent.js +2 -0
  57. package/dist/src/schema/transactionRequest/intents/cosmosStakeIntent.js.map +1 -1
  58. package/dist/src/schema/transactionRequest/intents/cosmosSwitchValidatorIntent.d.ts +4 -3
  59. package/dist/src/schema/transactionRequest/intents/cosmosUnstakeIntent.d.ts +16 -12
  60. package/dist/src/schema/transactionRequest/intents/cosmosUnstakeIntent.js +2 -0
  61. package/dist/src/schema/transactionRequest/intents/cosmosUnstakeIntent.js.map +1 -1
  62. package/dist/src/schema/transactionRequest/intents/cosmosWithdrawIntent.d.ts +5 -3
  63. package/dist/src/schema/transactionRequest/intents/dotAccountBaseBuildOptions.d.ts +10 -8
  64. package/dist/src/schema/transactionRequest/intents/dotAccountBaseBuildOptions.js +1 -1
  65. package/dist/src/schema/transactionRequest/intents/dotAccountBaseBuildOptions.js.map +1 -1
  66. package/dist/src/schema/transactionRequest/intents/dotBaseIntent.d.ts +23 -18
  67. package/dist/src/schema/transactionRequest/intents/dotBaseIntent.js +1 -1
  68. package/dist/src/schema/transactionRequest/intents/dotBaseIntent.js.map +1 -1
  69. package/dist/src/schema/transactionRequest/intents/dotConsolidateIntent.d.ts +39 -0
  70. package/dist/src/schema/transactionRequest/intents/dotConsolidateIntent.js +6 -0
  71. package/dist/src/schema/transactionRequest/intents/dotConsolidateIntent.js.map +1 -0
  72. package/dist/src/schema/transactionRequest/intents/dotCreateAccountIntent.d.ts +27 -20
  73. package/dist/src/schema/transactionRequest/intents/dotCreateAccountIntent.js +2 -0
  74. package/dist/src/schema/transactionRequest/intents/dotCreateAccountIntent.js.map +1 -1
  75. package/dist/src/schema/transactionRequest/intents/dotFeeOptionFormula.d.ts +14 -0
  76. package/dist/src/schema/transactionRequest/intents/dotFeeOptionFormula.js +35 -0
  77. package/dist/src/schema/transactionRequest/intents/dotFeeOptionFormula.js.map +1 -0
  78. package/dist/src/schema/transactionRequest/intents/dotFeeOptions.d.ts +4 -3
  79. package/dist/src/schema/transactionRequest/intents/dotFeeOptions.js +11 -7
  80. package/dist/src/schema/transactionRequest/intents/dotFeeOptions.js.map +1 -1
  81. package/dist/src/schema/transactionRequest/intents/dotPaymentIntent.d.ts +19 -15
  82. package/dist/src/schema/transactionRequest/intents/dotProxy.d.ts +1 -1
  83. package/dist/src/schema/transactionRequest/intents/dotProxy.js +1 -1
  84. package/dist/src/schema/transactionRequest/intents/dotProxy.js.map +1 -1
  85. package/dist/src/schema/transactionRequest/intents/dotStakingIntent.d.ts +15 -11
  86. package/dist/src/schema/transactionRequest/intents/dotStakingIntent.js +2 -0
  87. package/dist/src/schema/transactionRequest/intents/dotStakingIntent.js.map +1 -1
  88. package/dist/src/schema/transactionRequest/intents/dotUnstakingIntent.d.ts +15 -11
  89. package/dist/src/schema/transactionRequest/intents/dotUnstakingIntent.js +2 -0
  90. package/dist/src/schema/transactionRequest/intents/dotUnstakingIntent.js.map +1 -1
  91. package/dist/src/schema/transactionRequest/intents/dotWithdrawStakeIntent.d.ts +15 -11
  92. package/dist/src/schema/transactionRequest/intents/eip1559FeeOptions.d.ts +1 -1
  93. package/dist/src/schema/transactionRequest/intents/eip1559FeeOptions.js +1 -1
  94. package/dist/src/schema/transactionRequest/intents/eip1559FeeOptions.js.map +1 -1
  95. package/dist/src/schema/transactionRequest/intents/enableTokenIntent.d.ts +7 -5
  96. package/dist/src/schema/transactionRequest/intents/ethAccelerationIntent.d.ts +8 -7
  97. package/dist/src/schema/transactionRequest/intents/ethBuildOptions.d.ts +125 -23
  98. package/dist/src/schema/transactionRequest/intents/ethBuildOptions.js +13 -3
  99. package/dist/src/schema/transactionRequest/intents/ethBuildOptions.js.map +1 -1
  100. package/dist/src/schema/transactionRequest/intents/ethConsolidateIntent.d.ts +74 -0
  101. package/dist/src/schema/transactionRequest/intents/ethConsolidateIntent.js +34 -0
  102. package/dist/src/schema/transactionRequest/intents/ethConsolidateIntent.js.map +1 -0
  103. package/dist/src/schema/transactionRequest/intents/ethConsolidateTokenIntent.d.ts +105 -0
  104. package/dist/src/schema/transactionRequest/intents/ethConsolidateTokenIntent.js +43 -0
  105. package/dist/src/schema/transactionRequest/intents/ethConsolidateTokenIntent.js.map +1 -0
  106. package/dist/src/schema/transactionRequest/intents/ethFillNonceIntent.d.ts +20 -19
  107. package/dist/src/schema/transactionRequest/intents/ethFillNonceIntent.js +2 -8
  108. package/dist/src/schema/transactionRequest/intents/ethFillNonceIntent.js.map +1 -1
  109. package/dist/src/schema/transactionRequest/intents/ethPaymentIntent.d.ts +27 -25
  110. package/dist/src/schema/transactionRequest/intents/ethPaymentIntent.js +2 -1
  111. package/dist/src/schema/transactionRequest/intents/ethPaymentIntent.js.map +1 -1
  112. package/dist/src/schema/transactionRequest/intents/ethStakingIntent.d.ts +22 -21
  113. package/dist/src/schema/transactionRequest/intents/ethTransferTokenIntent.d.ts +103 -0
  114. package/dist/src/schema/transactionRequest/intents/ethTransferTokenIntent.js +34 -0
  115. package/dist/src/schema/transactionRequest/intents/ethTransferTokenIntent.js.map +1 -0
  116. package/dist/src/schema/transactionRequest/intents/feeOption.d.ts +2 -1
  117. package/dist/src/schema/transactionRequest/intents/feeOption.js +1 -1
  118. package/dist/src/schema/transactionRequest/intents/feeOption.js.map +1 -1
  119. package/dist/src/schema/transactionRequest/intents/fillNonceIntent.d.ts +3 -2
  120. package/dist/src/schema/transactionRequest/intents/index.d.ts +8 -0
  121. package/dist/src/schema/transactionRequest/intents/index.js +8 -0
  122. package/dist/src/schema/transactionRequest/intents/index.js.map +1 -1
  123. package/dist/src/schema/transactionRequest/intents/intent.d.ts +1115 -369
  124. package/dist/src/schema/transactionRequest/intents/intent.js +17 -1
  125. package/dist/src/schema/transactionRequest/intents/intent.js.map +1 -1
  126. package/dist/src/schema/transactionRequest/intents/lightningPaymentIntent.d.ts +4 -3
  127. package/dist/src/schema/transactionRequest/intents/mmiSignMessageIntent.d.ts +4 -3
  128. package/dist/src/schema/transactionRequest/intents/mmiSignTransactionIntent.d.ts +58 -0
  129. package/dist/src/schema/transactionRequest/intents/mmiSignTransactionIntent.js +35 -0
  130. package/dist/src/schema/transactionRequest/intents/mmiSignTransactionIntent.js.map +1 -0
  131. package/dist/src/schema/transactionRequest/intents/nearStakeIntent.d.ts +8 -6
  132. package/dist/src/schema/transactionRequest/intents/nearUnstakeIntent.d.ts +8 -6
  133. package/dist/src/schema/transactionRequest/intents/nearWithdrawIntent.d.ts +9 -6
  134. package/dist/src/schema/transactionRequest/intents/paymentIntent.d.ts +8 -6
  135. package/dist/src/schema/transactionRequest/intents/recipientEntry.d.ts +4 -3
  136. package/dist/src/schema/transactionRequest/intents/recipientEntry.js +9 -5
  137. package/dist/src/schema/transactionRequest/intents/recipientEntry.js.map +1 -1
  138. package/dist/src/schema/transactionRequest/intents/signMessageIntent.d.ts +4 -3
  139. package/dist/src/schema/transactionRequest/intents/solAuthorizeIntent.d.ts +4 -3
  140. package/dist/src/schema/transactionRequest/intents/solBuildOptions.d.ts +1 -1
  141. package/dist/src/schema/transactionRequest/intents/solClaimIntent.d.ts +6 -4
  142. package/dist/src/schema/transactionRequest/intents/solConsolidateIntent.d.ts +13 -10
  143. package/dist/src/schema/transactionRequest/intents/solCreateAssociatedTokenAccountIntent.d.ts +8 -6
  144. package/dist/src/schema/transactionRequest/intents/solDeactivateIntent.d.ts +4 -3
  145. package/dist/src/schema/transactionRequest/intents/solDelegateIntent.d.ts +4 -3
  146. package/dist/src/schema/transactionRequest/intents/solPaymentIntent.d.ts +9 -7
  147. package/dist/src/schema/transactionRequest/intents/solStakeIntent.d.ts +5 -4
  148. package/dist/src/schema/transactionRequest/intents/solUnstakeIntent.d.ts +6 -4
  149. package/dist/src/schema/transactionRequest/intents/solUnstakeIntent.js +2 -0
  150. package/dist/src/schema/transactionRequest/intents/solUnstakeIntent.js.map +1 -1
  151. package/dist/src/schema/transactionRequest/intents/stakeClaimRewardsIntent.d.ts +4 -3
  152. package/dist/src/schema/transactionRequest/intents/stakeIntent.d.ts +4 -3
  153. package/dist/src/schema/transactionRequest/intents/stakeSwitchValidatorIntent.d.ts +4 -3
  154. package/dist/src/schema/transactionRequest/intents/suiBuildOptions.d.ts +4 -3
  155. package/dist/src/schema/transactionRequest/intents/suiConsolidateIntent.d.ts +79 -0
  156. package/dist/src/schema/transactionRequest/intents/suiConsolidateIntent.js +34 -0
  157. package/dist/src/schema/transactionRequest/intents/suiConsolidateIntent.js.map +1 -0
  158. package/dist/src/schema/transactionRequest/intents/suiCustomTxIntent.d.ts +7 -5
  159. package/dist/src/schema/transactionRequest/intents/suiPaymentIntent.d.ts +96 -0
  160. package/dist/src/schema/transactionRequest/intents/suiPaymentIntent.js +34 -0
  161. package/dist/src/schema/transactionRequest/intents/suiPaymentIntent.js.map +1 -0
  162. package/dist/src/schema/transactionRequest/intents/suiStakingIntent.d.ts +16 -13
  163. package/dist/src/schema/transactionRequest/intents/suiStakingIntent.js +1 -1
  164. package/dist/src/schema/transactionRequest/intents/suiStakingIntent.js.map +1 -1
  165. package/dist/src/schema/transactionRequest/intents/suiUnstakingIntent.d.ts +6 -3
  166. package/dist/src/schema/transactionRequest/intents/suiUnstakingIntent.js +2 -0
  167. package/dist/src/schema/transactionRequest/intents/suiUnstakingIntent.js.map +1 -1
  168. package/dist/src/schema/transactionRequest/intents/tokenData.d.ts +5 -4
  169. package/dist/src/schema/transactionRequest/intents/tokenEnablement.d.ts +3 -2
  170. package/dist/src/schema/transactionRequest/intents/tokenEnablement.js +8 -4
  171. package/dist/src/schema/transactionRequest/intents/tokenEnablement.js.map +1 -1
  172. package/dist/src/schema/transactionRequest/intents/tokenRecipientEntry.d.ts +9 -7
  173. package/dist/src/schema/transactionRequest/intents/tokenRecipientEntryItem.d.ts +4 -3
  174. package/dist/src/schema/transactionRequest/intents/tokenRecipientEntryItem.js +9 -5
  175. package/dist/src/schema/transactionRequest/intents/tokenRecipientEntryItem.js.map +1 -1
  176. package/dist/src/schema/transactionRequest/intents/tonConsolidateIntent.d.ts +13 -10
  177. package/dist/src/schema/transactionRequest/intents/tonDelegateIntent.d.ts +4 -3
  178. package/dist/src/schema/transactionRequest/intents/tonPaymentIntent.d.ts +9 -7
  179. package/dist/src/schema/transactionRequest/intents/tonPaymentIntent.js +1 -1
  180. package/dist/src/schema/transactionRequest/intents/tonPaymentIntent.js.map +1 -1
  181. package/dist/src/schema/transactionRequest/intents/tonUndelegateIntent.d.ts +4 -3
  182. package/dist/src/schema/transactionRequest/intents/transferTokenIntent.d.ts +11 -43
  183. package/dist/src/schema/transactionRequest/intents/transferTokenIntent.js +0 -2
  184. package/dist/src/schema/transactionRequest/intents/transferTokenIntent.js.map +1 -1
  185. package/dist/src/schema/transactionRequest/intents/unstakeIntent.d.ts +4 -3
  186. package/dist/src/schema/transactionRequest/intents/unsupportedTokenRecipientEntryItem.d.ts +1 -1
  187. package/dist/src/schema/transactionRequest/intents/unsupportedTokenRecipientEntryItem.js +1 -1
  188. package/dist/src/schema/transactionRequest/intents/unsupportedTokenRecipientEntryItem.js.map +1 -1
  189. package/dist/src/schema/transactionRequest/intents/walletRecoveryIntent.d.ts +4 -3
  190. package/dist/src/schema/transactionRequest/intents/withdrawIntent.d.ts +5 -3
  191. package/dist/src/schema/transactionRequest/intents/withdrawIntent.js +2 -0
  192. package/dist/src/schema/transactionRequest/intents/withdrawIntent.js.map +1 -1
  193. package/package.json +1 -1
  194. package/src/schema/index.ts +1 -0
  195. package/src/schema/lightning/index.ts +1 -0
  196. package/src/schema/transactionRequest/intents/accountBaseBuildOptions.ts +1 -1
  197. package/src/schema/transactionRequest/intents/accountBaseConsolidateIntent.ts +2 -0
  198. package/src/schema/transactionRequest/intents/accountBaseCreateAccountIntent.ts +2 -0
  199. package/src/schema/transactionRequest/intents/accountBaseUpdateAccountIntent.ts +2 -0
  200. package/src/schema/transactionRequest/intents/adaConsolidateIntent.ts +1 -1
  201. package/src/schema/transactionRequest/intents/adaStakeIntent.ts +3 -1
  202. package/src/schema/transactionRequest/intents/adaUnstakeIntent.ts +3 -1
  203. package/src/schema/transactionRequest/intents/address.ts +3 -1
  204. package/src/schema/transactionRequest/intents/atomStakeIntent.ts +2 -0
  205. package/src/schema/transactionRequest/intents/atomUnstakeIntent.ts +2 -0
  206. package/src/schema/transactionRequest/intents/baseIntent.ts +20 -12
  207. package/src/schema/transactionRequest/intents/consolidateTokenIntent.ts +2 -0
  208. package/src/schema/transactionRequest/intents/cosmosStakeIntent.ts +2 -0
  209. package/src/schema/transactionRequest/intents/cosmosUnstakeIntent.ts +2 -0
  210. package/src/schema/transactionRequest/intents/dotAccountBaseBuildOptions.ts +1 -1
  211. package/src/schema/transactionRequest/intents/dotBaseIntent.ts +1 -1
  212. package/src/schema/transactionRequest/intents/dotConsolidateIntent.ts +6 -0
  213. package/src/schema/transactionRequest/intents/dotCreateAccountIntent.ts +2 -0
  214. package/src/schema/transactionRequest/intents/dotFeeOptionFormula.ts +12 -0
  215. package/src/schema/transactionRequest/intents/dotFeeOptions.ts +11 -7
  216. package/src/schema/transactionRequest/intents/dotProxy.ts +1 -1
  217. package/src/schema/transactionRequest/intents/dotStakingIntent.ts +2 -0
  218. package/src/schema/transactionRequest/intents/dotUnstakingIntent.ts +2 -0
  219. package/src/schema/transactionRequest/intents/eip1559FeeOptions.ts +1 -1
  220. package/src/schema/transactionRequest/intents/ethBuildOptions.ts +26 -2
  221. package/src/schema/transactionRequest/intents/ethConsolidateIntent.ts +10 -0
  222. package/src/schema/transactionRequest/intents/ethConsolidateTokenIntent.ts +21 -0
  223. package/src/schema/transactionRequest/intents/ethFillNonceIntent.ts +2 -10
  224. package/src/schema/transactionRequest/intents/ethPaymentIntent.ts +2 -1
  225. package/src/schema/transactionRequest/intents/ethTransferTokenIntent.ts +10 -0
  226. package/src/schema/transactionRequest/intents/feeOption.ts +3 -1
  227. package/src/schema/transactionRequest/intents/index.ts +8 -0
  228. package/src/schema/transactionRequest/intents/intent.ts +17 -1
  229. package/src/schema/transactionRequest/intents/mmiSignTransactionIntent.ts +13 -0
  230. package/src/schema/transactionRequest/intents/recipientEntry.ts +9 -5
  231. package/src/schema/transactionRequest/intents/solUnstakeIntent.ts +2 -0
  232. package/src/schema/transactionRequest/intents/suiConsolidateIntent.ts +10 -0
  233. package/src/schema/transactionRequest/intents/suiPaymentIntent.ts +10 -0
  234. package/src/schema/transactionRequest/intents/suiStakingIntent.ts +1 -1
  235. package/src/schema/transactionRequest/intents/suiUnstakingIntent.ts +2 -0
  236. package/src/schema/transactionRequest/intents/tokenEnablement.ts +8 -4
  237. package/src/schema/transactionRequest/intents/tokenRecipientEntryItem.ts +9 -5
  238. package/src/schema/transactionRequest/intents/tonPaymentIntent.ts +1 -1
  239. package/src/schema/transactionRequest/intents/transferTokenIntent.ts +0 -2
  240. package/src/schema/transactionRequest/intents/unsupportedTokenRecipientEntryItem.ts +1 -1
  241. package/src/schema/transactionRequest/intents/withdrawIntent.ts +2 -0
@@ -34,6 +34,8 @@ exports.AtomStakeIntent = t.intersection([
34
34
  t.type({
35
35
  validatorAddress: t.string,
36
36
  amount: amount_1.Amount,
37
+ }),
38
+ t.partial({
37
39
  recipients: (0, utils_1.Optional)(t.array(recipientEntry_1.RecipientEntry)),
38
40
  }),
39
41
  ]);
@@ -1 +1 @@
1
- {"version":3,"file":"atomStakeIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/atomStakeIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,qCAAkC;AAClC,qDAAkD;AAClD,0CAA0C;AAC1C,+CAA4C;AAE/B,QAAA,eAAe,GAAG,CAAC,CAAC,YAAY,CAAC;IAC5C,yBAAW;IACX,CAAC,CAAC,IAAI,CAAC;QACL,gBAAgB,EAAE,CAAC,CAAC,MAAM;QAC1B,MAAM,EAAE,eAAM;QACd,UAAU,EAAE,IAAA,gBAAQ,EAAC,CAAC,CAAC,KAAK,CAAC,+BAAc,CAAC,CAAC;KAC9C,CAAC;CACH,CAAC,CAAC"}
1
+ {"version":3,"file":"atomStakeIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/atomStakeIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,qCAAkC;AAClC,qDAAkD;AAClD,0CAA0C;AAC1C,+CAA4C;AAE/B,QAAA,eAAe,GAAG,CAAC,CAAC,YAAY,CAAC;IAC5C,yBAAW;IACX,CAAC,CAAC,IAAI,CAAC;QACL,gBAAgB,EAAE,CAAC,CAAC,MAAM;QAC1B,MAAM,EAAE,eAAM;KACf,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,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 AtomUnstakeIntent: t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
2
+ export declare const AtomUnstakeIntent: 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,10 +30,11 @@ export declare const AtomUnstakeIntent: t.IntersectionC<[t.IntersectionC<[t.Inte
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">;
@@ -43,10 +44,11 @@ export declare const AtomUnstakeIntent: t.IntersectionC<[t.IntersectionC<[t.Inte
43
44
  value: t.StringC;
44
45
  symbol: t.StringC;
45
46
  }>;
46
- recipients: t.UnionC<[t.Type<{
47
+ }>, t.PartialC<{
48
+ recipients: t.UnionC<[t.Type<({
47
49
  address: {
48
- address: string | undefined;
49
- option: {
50
+ address?: string | undefined;
51
+ option?: {
50
52
  [x: string]: unknown;
51
53
  } | undefined;
52
54
  };
@@ -54,11 +56,12 @@ export declare const AtomUnstakeIntent: t.IntersectionC<[t.IntersectionC<[t.Inte
54
56
  value: string;
55
57
  symbol: string;
56
58
  };
57
- data: string | undefined;
58
- }[], {
59
+ } & {
60
+ data?: string | undefined;
61
+ })[], ({
59
62
  address: {
60
- address: string | undefined;
61
- option: {
63
+ address?: string | undefined;
64
+ option?: {
62
65
  [x: string]: unknown;
63
66
  } | undefined;
64
67
  };
@@ -66,7 +69,8 @@ export declare const AtomUnstakeIntent: t.IntersectionC<[t.IntersectionC<[t.Inte
66
69
  value: string;
67
70
  symbol: string;
68
71
  };
69
- data: string | undefined;
70
- }[], unknown>, t.UndefinedC]>;
72
+ } & {
73
+ data?: string | undefined;
74
+ })[], unknown>, t.UndefinedC]>;
71
75
  }>]>;
72
76
  export type AtomUnstakeIntent = t.TypeOf<typeof AtomUnstakeIntent>;
@@ -34,6 +34,8 @@ exports.AtomUnstakeIntent = t.intersection([
34
34
  t.type({
35
35
  validatorAddress: t.string,
36
36
  amount: amount_1.Amount,
37
+ }),
38
+ t.partial({
37
39
  recipients: (0, utils_1.Optional)(t.array(recipientEntry_1.RecipientEntry)),
38
40
  }),
39
41
  ]);
@@ -1 +1 @@
1
- {"version":3,"file":"atomUnstakeIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/atomUnstakeIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,qCAAkC;AAClC,mDAAgD;AAChD,qDAAkD;AAClD,0CAA0C;AAE7B,QAAA,iBAAiB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC9C,6BAAa;IACb,CAAC,CAAC,IAAI,CAAC;QACL,gBAAgB,EAAE,CAAC,CAAC,MAAM;QAC1B,MAAM,EAAE,eAAM;QACd,UAAU,EAAE,IAAA,gBAAQ,EAAC,CAAC,CAAC,KAAK,CAAC,+BAAc,CAAC,CAAC;KAC9C,CAAC;CACH,CAAC,CAAC"}
1
+ {"version":3,"file":"atomUnstakeIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/atomUnstakeIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,qCAAkC;AAClC,mDAAgD;AAChD,qDAAkD;AAClD,0CAA0C;AAE7B,QAAA,iBAAiB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC9C,6BAAa;IACb,CAAC,CAAC,IAAI,CAAC;QACL,gBAAgB,EAAE,CAAC,CAAC,MAAM;QAC1B,MAAM,EAAE,eAAM;KACf,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,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 AtomWithdrawIntent: t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
2
+ export declare const AtomWithdrawIntent: 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 AtomWithdrawIntent: 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;
@@ -1,5 +1,5 @@
1
1
  import * as t from "io-ts";
2
- export declare const BaseIntent: t.TypeC<{
2
+ export declare const BaseIntent: t.IntersectionC<[t.TypeC<{
3
3
  intentType: t.KeyofC<{
4
4
  payment: t.LiteralC<"payment">;
5
5
  transferToken: t.LiteralC<"transferToken">;
@@ -30,12 +30,13 @@ export declare const BaseIntent: 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
- }>;
36
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
37
+ }>]>;
37
38
  export type BaseIntent = t.TypeOf<typeof BaseIntent>;
38
- export declare const BaseIntentWithoutNonce: t.TypeC<{
39
+ export declare const BaseIntentWithoutNonce: t.IntersectionC<[t.TypeC<{
39
40
  intentType: t.KeyofC<{
40
41
  payment: t.LiteralC<"payment">;
41
42
  transferToken: t.LiteralC<"transferToken">;
@@ -66,7 +67,8 @@ export declare const BaseIntentWithoutNonce: t.TypeC<{
66
67
  deactivate: t.LiteralC<"deactivate">;
67
68
  customTx: t.LiteralC<"customTx">;
68
69
  }>;
70
+ }>, t.PartialC<{
69
71
  sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
70
72
  comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
71
- }>;
73
+ }>]>;
72
74
  export type BaseIntentWithoutNonce = t.TypeOf<typeof BaseIntentWithoutNonce>;
@@ -27,15 +27,23 @@ exports.BaseIntentWithoutNonce = exports.BaseIntent = void 0;
27
27
  const t = __importStar(require("io-ts"));
28
28
  const intentType_1 = require("./intentType");
29
29
  const utils_1 = require("../../../utils");
30
- exports.BaseIntent = t.type({
31
- intentType: intentType_1.IntentType,
32
- sequenceId: utils_1.optionalString,
33
- comment: utils_1.optionalString,
34
- nonce: t.union([utils_1.optionalString, utils_1.optionalNumber]),
35
- });
36
- exports.BaseIntentWithoutNonce = t.type({
37
- intentType: intentType_1.IntentType,
38
- sequenceId: utils_1.optionalString,
39
- comment: utils_1.optionalString,
40
- });
30
+ exports.BaseIntent = t.intersection([
31
+ t.type({
32
+ intentType: intentType_1.IntentType,
33
+ }),
34
+ t.partial({
35
+ sequenceId: utils_1.optionalString,
36
+ comment: utils_1.optionalString,
37
+ nonce: (0, utils_1.Optional)(t.union([t.string, t.number])),
38
+ }),
39
+ ]);
40
+ exports.BaseIntentWithoutNonce = t.intersection([
41
+ t.type({
42
+ intentType: intentType_1.IntentType,
43
+ }),
44
+ t.partial({
45
+ sequenceId: utils_1.optionalString,
46
+ comment: utils_1.optionalString,
47
+ }),
48
+ ]);
41
49
  //# sourceMappingURL=baseIntent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"baseIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/baseIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA0C;AAC1C,0CAAgE;AAEnD,QAAA,UAAU,GAAG,CAAC,CAAC,IAAI,CAAC;IAC/B,UAAU,EAAE,uBAAU;IACtB,UAAU,EAAE,sBAAc;IAC1B,OAAO,EAAE,sBAAc;IACvB,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,sBAAc,EAAE,sBAAc,CAAC,CAAC;CACjD,CAAC,CAAC;AAIU,QAAA,sBAAsB,GAAG,CAAC,CAAC,IAAI,CAAC;IAC3C,UAAU,EAAE,uBAAU;IACtB,UAAU,EAAE,sBAAc;IAC1B,OAAO,EAAE,sBAAc;CACxB,CAAC,CAAC"}
1
+ {"version":3,"file":"baseIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/baseIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA0C;AAC1C,0CAA0D;AAE7C,QAAA,UAAU,GAAG,CAAC,CAAC,YAAY,CAAC;IACvC,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,uBAAU;KACvB,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,UAAU,EAAE,sBAAc;QAC1B,OAAO,EAAE,sBAAc;QACvB,KAAK,EAAE,IAAA,gBAAQ,EAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;KAC/C,CAAC;CACH,CAAC,CAAC;AAIU,QAAA,sBAAsB,GAAG,CAAC,CAAC,YAAY,CAAC;IACnD,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,uBAAU;KACvB,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,UAAU,EAAE,sBAAc;QAC1B,OAAO,EAAE,sBAAc;KACxB,CAAC;CACH,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import * as t from "io-ts";
2
- export declare const BaseStakeIntent: t.IntersectionC<[t.TypeC<{
2
+ export declare const BaseStakeIntent: 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 BaseStakeIntent: 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
  }>]>;
39
40
  export type BaseStakeIntent = t.TypeOf<typeof BaseStakeIntent>;
@@ -1,5 +1,5 @@
1
1
  import * as t from "io-ts";
2
- export declare const BscDelegateIntent: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
2
+ export declare const BscDelegateIntent: 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 BscDelegateIntent: t.IntersectionC<[t.IntersectionC<[t.Type
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<"delegate">;
@@ -1,5 +1,5 @@
1
1
  import * as t from "io-ts";
2
- export declare const BscStakeClaimRewardsIntent: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
2
+ export declare const BscStakeClaimRewardsIntent: 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 BscStakeClaimRewardsIntent: 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<"stakeClaimRewards">;
@@ -1,5 +1,5 @@
1
1
  import * as t from "io-ts";
2
- export declare const BscUnDelegateIntent: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
2
+ export declare const BscUnDelegateIntent: 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 BscUnDelegateIntent: t.IntersectionC<[t.IntersectionC<[t.Ty
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<"undelegate">;
@@ -1,5 +1,5 @@
1
1
  import * as t from "io-ts";
2
- export declare const BscWithdrawIntent: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
2
+ export declare const BscWithdrawIntent: 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 BscWithdrawIntent: t.IntersectionC<[t.IntersectionC<[t.Type
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;
@@ -1,5 +1,5 @@
1
1
  import * as t from "io-ts";
2
- export declare const ConsolidateTokenIntent: t.IntersectionC<[t.TypeC<{
2
+ export declare const ConsolidateTokenIntent: 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 ConsolidateTokenIntent: 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<{
37
36
  nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
38
- }>, t.TypeC<{
37
+ }>]>, t.IntersectionC<[t.PartialC<{
38
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
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
  hopParams: t.UnionC<[t.Type<{
61
62
  paymentId: string | undefined;
@@ -70,8 +71,8 @@ export declare const ConsolidateTokenIntent: t.IntersectionC<[t.TypeC<{
70
71
  senderAddressIndex: t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>;
71
72
  }>]>, t.TypeC<{
72
73
  intentType: t.LiteralC<"consolidateToken">;
73
- recipients: t.ArrayC<t.IntersectionC<[t.TypeC<{
74
- address: t.TypeC<{
74
+ recipients: t.ArrayC<t.IntersectionC<[t.IntersectionC<[t.TypeC<{
75
+ address: t.PartialC<{
75
76
  address: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
76
77
  option: t.UnionC<[t.Type<{
77
78
  [x: string]: unknown;
@@ -83,19 +84,22 @@ export declare const ConsolidateTokenIntent: t.IntersectionC<[t.TypeC<{
83
84
  value: t.StringC;
84
85
  symbol: t.StringC;
85
86
  }>;
87
+ }>, t.PartialC<{
86
88
  data: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
87
- }>, t.TypeC<{
88
- tokenData: t.IntersectionC<[t.TypeC<{
89
- tokenId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
89
+ }>]>, t.TypeC<{
90
+ tokenData: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
90
91
  tokenQuantity: t.StringC;
91
92
  tokenType: t.StringC;
92
- }>, t.TypeC<{
93
+ }>, t.PartialC<{
94
+ tokenId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
95
+ }>]>, t.TypeC<{
93
96
  tokenName: t.StringC;
94
- }>, t.TypeC<{
97
+ }>, t.PartialC<{
95
98
  tokenContractAddress: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
96
99
  decimals: t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>;
97
100
  }>]>;
98
101
  }>]>>;
102
+ }>, t.PartialC<{
99
103
  consolidateId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
100
104
  keepAlive: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
101
105
  }>]>;
@@ -36,6 +36,8 @@ exports.ConsolidateTokenIntent = t.intersection([
36
36
  t.type({
37
37
  intentType: intentType_1.intentTypes.consolidateToken,
38
38
  recipients: t.array(tokenRecipientEntry_1.TokenRecipientEntry),
39
+ }),
40
+ t.partial({
39
41
  consolidateId: utils_1.optionalString,
40
42
  keepAlive: utils_1.optionalBoolean,
41
43
  }),
@@ -1 +1 @@
1
- {"version":3,"file":"consolidateTokenIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/consolidateTokenIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA0C;AAC1C,6CAA2C;AAC3C,0CAAiE;AACjE,+DAA4D;AAC5D,uDAAoD;AAEvC,QAAA,sBAAsB,GAAG,CAAC,CAAC,YAAY,CAAC;IACnD,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
+ {"version":3,"file":"consolidateTokenIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/consolidateTokenIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA0C;AAC1C,6CAA2C;AAC3C,0CAAiE;AACjE,+DAA4D;AAC5D,uDAAoD;AAEvC,QAAA,sBAAsB,GAAG,CAAC,CAAC,YAAY,CAAC;IACnD,uBAAU;IACV,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,gBAAgB;QACxC,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,yCAAmB,CAAC;KACzC,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,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 CosmosPaymentIntent: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
2
+ export declare const CosmosPaymentIntent: 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 CosmosPaymentIntent: t.IntersectionC<[t.IntersectionC<[t.Ty
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,8 +49,9 @@ export declare const CosmosPaymentIntent: t.IntersectionC<[t.IntersectionC<[t.Ty
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
- }>>;
54
+ }>]>>;
53
55
  }>]>, t.TypeC<{
54
56
  memo: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
55
57
  }>]>;
@@ -1,5 +1,5 @@
1
1
  import * as t from "io-ts";
2
- export declare const CosmosStakeIntent: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
2
+ export declare const CosmosStakeIntent: 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 CosmosStakeIntent: t.IntersectionC<[t.IntersectionC<[t.Type
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<"delegate">;
@@ -42,10 +43,11 @@ export declare const CosmosStakeIntent: t.IntersectionC<[t.IntersectionC<[t.Type
42
43
  value: t.StringC;
43
44
  symbol: t.StringC;
44
45
  }>;
45
- recipients: t.UnionC<[t.Type<{
46
+ }>, t.PartialC<{
47
+ recipients: t.UnionC<[t.Type<({
46
48
  address: {
47
- address: string | undefined;
48
- option: {
49
+ address?: string | undefined;
50
+ option?: {
49
51
  [x: string]: unknown;
50
52
  } | undefined;
51
53
  };
@@ -53,11 +55,12 @@ export declare const CosmosStakeIntent: t.IntersectionC<[t.IntersectionC<[t.Type
53
55
  value: string;
54
56
  symbol: string;
55
57
  };
56
- data: string | undefined;
57
- }[], {
58
+ } & {
59
+ data?: string | undefined;
60
+ })[], ({
58
61
  address: {
59
- address: string | undefined;
60
- option: {
62
+ address?: string | undefined;
63
+ option?: {
61
64
  [x: string]: unknown;
62
65
  } | undefined;
63
66
  };
@@ -65,7 +68,8 @@ export declare const CosmosStakeIntent: t.IntersectionC<[t.IntersectionC<[t.Type
65
68
  value: string;
66
69
  symbol: string;
67
70
  };
68
- data: string | undefined;
69
- }[], unknown>, t.UndefinedC]>;
71
+ } & {
72
+ data?: string | undefined;
73
+ })[], unknown>, t.UndefinedC]>;
70
74
  }>]>;
71
75
  export type CosmosStakeIntent = t.TypeOf<typeof CosmosStakeIntent>;
@@ -36,6 +36,8 @@ exports.CosmosStakeIntent = t.intersection([
36
36
  intentType: intentType_1.intentTypes.delegate,
37
37
  validatorAddress: t.string,
38
38
  amount: amount_1.Amount,
39
+ }),
40
+ t.partial({
39
41
  recipients: (0, utils_1.Optional)(t.array(recipientEntry_1.RecipientEntry)),
40
42
  }),
41
43
  ]);
@@ -1 +1 @@
1
- {"version":3,"file":"cosmosStakeIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/cosmosStakeIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,6CAA2C;AAC3C,qCAAkC;AAClC,qDAAkD;AAClD,0CAA0C;AAE7B,QAAA,iBAAiB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC9C,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,QAAQ;QAChC,gBAAgB,EAAE,CAAC,CAAC,MAAM;QAC1B,MAAM,EAAE,eAAM;QACd,UAAU,EAAE,IAAA,gBAAQ,EAAC,CAAC,CAAC,KAAK,CAAC,+BAAc,CAAC,CAAC;KAC9C,CAAC;CACH,CAAC,CAAC"}
1
+ {"version":3,"file":"cosmosStakeIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/cosmosStakeIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,6CAA2C;AAC3C,qCAAkC;AAClC,qDAAkD;AAClD,0CAA0C;AAE7B,QAAA,iBAAiB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC9C,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,QAAQ;QAChC,gBAAgB,EAAE,CAAC,CAAC,MAAM;QAC1B,MAAM,EAAE,eAAM;KACf,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,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 CosmosSwitchValidatorIntent: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
2
+ export declare const CosmosSwitchValidatorIntent: 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 CosmosSwitchValidatorIntent: t.IntersectionC<[t.Intersectio
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 CosmosUnstakeIntent: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
2
+ export declare const CosmosUnstakeIntent: 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 CosmosUnstakeIntent: t.IntersectionC<[t.IntersectionC<[t.Ty
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<"undelegate">;
@@ -42,10 +43,11 @@ export declare const CosmosUnstakeIntent: t.IntersectionC<[t.IntersectionC<[t.Ty
42
43
  value: t.StringC;
43
44
  symbol: t.StringC;
44
45
  }>;
45
- recipients: t.UnionC<[t.Type<{
46
+ }>, t.PartialC<{
47
+ recipients: t.UnionC<[t.Type<({
46
48
  address: {
47
- address: string | undefined;
48
- option: {
49
+ address?: string | undefined;
50
+ option?: {
49
51
  [x: string]: unknown;
50
52
  } | undefined;
51
53
  };
@@ -53,11 +55,12 @@ export declare const CosmosUnstakeIntent: t.IntersectionC<[t.IntersectionC<[t.Ty
53
55
  value: string;
54
56
  symbol: string;
55
57
  };
56
- data: string | undefined;
57
- }[], {
58
+ } & {
59
+ data?: string | undefined;
60
+ })[], ({
58
61
  address: {
59
- address: string | undefined;
60
- option: {
62
+ address?: string | undefined;
63
+ option?: {
61
64
  [x: string]: unknown;
62
65
  } | undefined;
63
66
  };
@@ -65,7 +68,8 @@ export declare const CosmosUnstakeIntent: t.IntersectionC<[t.IntersectionC<[t.Ty
65
68
  value: string;
66
69
  symbol: string;
67
70
  };
68
- data: string | undefined;
69
- }[], unknown>, t.UndefinedC]>;
71
+ } & {
72
+ data?: string | undefined;
73
+ })[], unknown>, t.UndefinedC]>;
70
74
  }>]>;
71
75
  export type CosmosUnstakeIntent = t.TypeOf<typeof CosmosUnstakeIntent>;