@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
@@ -36,6 +36,8 @@ exports.CosmosUnstakeIntent = t.intersection([
36
36
  intentType: intentType_1.intentTypes.undelegate,
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":"cosmosUnstakeIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/cosmosUnstakeIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,6CAA2C;AAC3C,qCAAkC;AAClC,qDAAkD;AAClD,0CAA0C;AAE7B,QAAA,mBAAmB,GAAG,CAAC,CAAC,YAAY,CAAC;IAChD,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,UAAU;QAClC,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":"cosmosUnstakeIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/cosmosUnstakeIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,6CAA2C;AAC3C,qCAAkC;AAClC,qDAAkD;AAClD,0CAA0C;AAE7B,QAAA,mBAAmB,GAAG,CAAC,CAAC,YAAY,CAAC;IAChD,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,UAAU;QAClC,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 CosmosWithdrawIntent: t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
2
+ export declare const CosmosWithdrawIntent: 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 CosmosWithdrawIntent: t.IntersectionC<[t.IntersectionC<[t.I
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,17 +1,19 @@
1
1
  import * as t from "io-ts";
2
- export declare const DotAccountBaseBuildOptions: t.IntersectionC<[t.TypeC<{
2
+ export declare const DotAccountBaseBuildOptions: t.IntersectionC<[t.PartialC<{
3
3
  nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
4
- }>, t.TypeC<{
4
+ }>, t.PartialC<{
5
5
  fee: t.UnionC<[t.Type<{
6
6
  amount: string | number;
7
- unit: "baseUnit" | "cpu" | "ram" | undefined;
8
- formula: "fixed" | "feeRate" | "perKB" | "custom" | "perVKB" | undefined;
9
- type: "max" | "base" | "tip" | undefined;
7
+ } & {
8
+ unit?: "baseUnit" | "cpu" | "ram" | undefined;
9
+ formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
10
+ type?: "max" | "base" | "tip" | undefined;
10
11
  }, {
11
12
  amount: string | number;
12
- unit: "baseUnit" | "cpu" | "ram" | undefined;
13
- formula: "fixed" | "feeRate" | "perKB" | "custom" | "perVKB" | undefined;
14
- type: "max" | "base" | "tip" | undefined;
13
+ } & {
14
+ unit?: "baseUnit" | "cpu" | "ram" | undefined;
15
+ formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
16
+ type?: "max" | "base" | "tip" | undefined;
15
17
  }, unknown>, t.UndefinedC]>;
16
18
  }>]>;
17
19
  export type DotAccountBaseBuildOptions = t.TypeOf<typeof DotAccountBaseBuildOptions>;
@@ -30,7 +30,7 @@ const dotFeeOptions_1 = require("./dotFeeOptions");
30
30
  const utils_1 = require("../../../utils");
31
31
  exports.DotAccountBaseBuildOptions = t.intersection([
32
32
  accountBaseBuildOptions_1.AccountBaseBuildOptions,
33
- t.type({
33
+ t.partial({
34
34
  fee: (0, utils_1.Optional)(dotFeeOptions_1.DotFeeOptions),
35
35
  }),
36
36
  ]);
@@ -1 +1 @@
1
- {"version":3,"file":"dotAccountBaseBuildOptions.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/dotAccountBaseBuildOptions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uEAAoE;AACpE,mDAAgD;AAChD,0CAA0C;AAE7B,QAAA,0BAA0B,GAAG,CAAC,CAAC,YAAY,CAAC;IACvD,iDAAuB;IACvB,CAAC,CAAC,IAAI,CAAC;QACL,GAAG,EAAE,IAAA,gBAAQ,EAAC,6BAAa,CAAC;KAC7B,CAAC;CACH,CAAC,CAAC"}
1
+ {"version":3,"file":"dotAccountBaseBuildOptions.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/dotAccountBaseBuildOptions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uEAAoE;AACpE,mDAAgD;AAChD,0CAA0C;AAE7B,QAAA,0BAA0B,GAAG,CAAC,CAAC,YAAY,CAAC;IACvD,iDAAuB;IACvB,CAAC,CAAC,OAAO,CAAC;QACR,GAAG,EAAE,IAAA,gBAAQ,EAAC,6BAAa,CAAC;KAC7B,CAAC;CACH,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import * as t from "io-ts";
2
- export declare const DotBaseIntent: t.IntersectionC<[t.TypeC<{
2
+ export declare const DotBaseIntent: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
3
3
  intentType: t.KeyofC<{
4
4
  payment: t.LiteralC<"payment">;
5
5
  transferToken: t.LiteralC<"transferToken">;
@@ -30,26 +30,29 @@ export declare const DotBaseIntent: 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.PartialC<{
37
38
  senderAddressIndex: t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>;
38
39
  fee: t.UnionC<[t.Type<{
39
40
  amount: string | number;
40
- unit: "baseUnit" | "cpu" | "ram" | undefined;
41
- formula: "fixed" | "feeRate" | "perKB" | "custom" | "perVKB" | undefined;
42
- type: "max" | "base" | "tip" | undefined;
41
+ } & {
42
+ unit?: "baseUnit" | "cpu" | "ram" | undefined;
43
+ formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
44
+ type?: "max" | "base" | "tip" | undefined;
43
45
  }, {
44
46
  amount: string | number;
45
- unit: "baseUnit" | "cpu" | "ram" | undefined;
46
- formula: "fixed" | "feeRate" | "perKB" | "custom" | "perVKB" | undefined;
47
- type: "max" | "base" | "tip" | undefined;
47
+ } & {
48
+ unit?: "baseUnit" | "cpu" | "ram" | undefined;
49
+ formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
50
+ type?: "max" | "base" | "tip" | undefined;
48
51
  }, unknown>, t.UndefinedC]>;
49
- recipients: t.UnionC<[t.Type<{
52
+ recipients: t.UnionC<[t.Type<({
50
53
  address: {
51
- address: string | undefined;
52
- option: {
54
+ address?: string | undefined;
55
+ option?: {
53
56
  [x: string]: unknown;
54
57
  } | undefined;
55
58
  };
@@ -57,11 +60,12 @@ export declare const DotBaseIntent: t.IntersectionC<[t.TypeC<{
57
60
  value: string;
58
61
  symbol: string;
59
62
  };
60
- data: string | undefined;
61
- }[], {
63
+ } & {
64
+ data?: string | undefined;
65
+ })[], ({
62
66
  address: {
63
- address: string | undefined;
64
- option: {
67
+ address?: string | undefined;
68
+ option?: {
65
69
  [x: string]: unknown;
66
70
  } | undefined;
67
71
  };
@@ -69,7 +73,8 @@ export declare const DotBaseIntent: t.IntersectionC<[t.TypeC<{
69
73
  value: string;
70
74
  symbol: string;
71
75
  };
72
- data: string | undefined;
73
- }[], unknown>, t.UndefinedC]>;
76
+ } & {
77
+ data?: string | undefined;
78
+ })[], unknown>, t.UndefinedC]>;
74
79
  }>]>;
75
80
  export type DotBaseIntent = t.TypeOf<typeof DotBaseIntent>;
@@ -31,7 +31,7 @@ const recipientEntry_1 = require("./recipientEntry");
31
31
  const baseIntent_1 = require("./baseIntent");
32
32
  exports.DotBaseIntent = t.intersection([
33
33
  baseIntent_1.BaseIntent,
34
- t.type({
34
+ t.partial({
35
35
  senderAddressIndex: utils_1.optionalNumber,
36
36
  fee: (0, utils_1.Optional)(dotFeeOptions_1.DotFeeOptions),
37
37
  recipients: (0, utils_1.Optional)(t.array(recipientEntry_1.RecipientEntry)),
@@ -1 +1 @@
1
- {"version":3,"file":"dotBaseIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/dotBaseIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,0CAA0D;AAC1D,mDAAgD;AAChD,qDAAkD;AAClD,6CAA0C;AAE7B,QAAA,aAAa,GAAG,CAAC,CAAC,YAAY,CAAC;IAC1C,uBAAU;IACV,CAAC,CAAC,IAAI,CAAC;QACL,kBAAkB,EAAE,sBAAc;QAClC,GAAG,EAAE,IAAA,gBAAQ,EAAC,6BAAa,CAAC;QAC5B,UAAU,EAAE,IAAA,gBAAQ,EAAC,CAAC,CAAC,KAAK,CAAC,+BAAc,CAAC,CAAC;KAC9C,CAAC;CACH,CAAC,CAAC"}
1
+ {"version":3,"file":"dotBaseIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/dotBaseIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,0CAA0D;AAC1D,mDAAgD;AAChD,qDAAkD;AAClD,6CAA0C;AAE7B,QAAA,aAAa,GAAG,CAAC,CAAC,YAAY,CAAC;IAC1C,uBAAU;IACV,CAAC,CAAC,OAAO,CAAC;QACR,kBAAkB,EAAE,sBAAc;QAClC,GAAG,EAAE,IAAA,gBAAQ,EAAC,6BAAa,CAAC;QAC5B,UAAU,EAAE,IAAA,gBAAQ,EAAC,CAAC,CAAC,KAAK,CAAC,+BAAc,CAAC,CAAC;KAC9C,CAAC;CACH,CAAC,CAAC"}
@@ -0,0 +1,39 @@
1
+ import * as t from "io-ts";
2
+ export declare const DotConsolidateIntent: t.IntersectionC<[t.PartialC<{
3
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
4
+ }>, t.TypeC<{
5
+ intentType: t.LiteralC<"consolidate">;
6
+ receiveAddress: t.StringC;
7
+ }>, t.PartialC<{
8
+ senderAddressIndex: t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>;
9
+ consolidateId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
10
+ recipients: t.UnionC<[t.Type<({
11
+ address: {
12
+ address?: string | undefined;
13
+ option?: {
14
+ [x: string]: unknown;
15
+ } | undefined;
16
+ };
17
+ amount: {
18
+ value: string;
19
+ symbol: string;
20
+ };
21
+ } & {
22
+ data?: string | undefined;
23
+ })[], ({
24
+ address: {
25
+ address?: string | undefined;
26
+ option?: {
27
+ [x: string]: unknown;
28
+ } | undefined;
29
+ };
30
+ amount: {
31
+ value: string;
32
+ symbol: string;
33
+ };
34
+ } & {
35
+ data?: string | undefined;
36
+ })[], unknown>, t.UndefinedC]>;
37
+ keepAlive: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
38
+ }>]>;
39
+ export type DotConsolidateIntent = t.TypeOf<typeof DotConsolidateIntent>;
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DotConsolidateIntent = void 0;
4
+ const accountBaseConsolidateIntent_1 = require("./accountBaseConsolidateIntent");
5
+ exports.DotConsolidateIntent = accountBaseConsolidateIntent_1.AccountBaseConsolidateIntent;
6
+ //# sourceMappingURL=dotConsolidateIntent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dotConsolidateIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/dotConsolidateIntent.ts"],"names":[],"mappings":";;;AACA,iFAA8E;AAEjE,QAAA,oBAAoB,GAAG,2DAA4B,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import * as t from "io-ts";
2
- export declare const DotCreateAccountIntent: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
2
+ export declare const DotCreateAccountIntent: 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,41 @@ export declare const DotCreateAccountIntent: t.IntersectionC<[t.IntersectionC<[t
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.PartialC<{
37
38
  nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
38
39
  }>, t.TypeC<{
39
40
  intentType: t.LiteralC<"createAccount">;
41
+ }>, t.PartialC<{
40
42
  name: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
41
- }>]>, t.IntersectionC<[t.TypeC<{
43
+ }>]>, t.IntersectionC<[t.PartialC<{
42
44
  nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
43
- }>, t.TypeC<{
45
+ }>, t.PartialC<{
44
46
  fee: t.UnionC<[t.Type<{
45
47
  amount: string | number;
46
- unit: "baseUnit" | "cpu" | "ram" | undefined;
47
- formula: "fixed" | "feeRate" | "perKB" | "custom" | "perVKB" | undefined;
48
- type: "max" | "base" | "tip" | undefined;
48
+ } & {
49
+ unit?: "baseUnit" | "cpu" | "ram" | undefined;
50
+ formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
51
+ type?: "max" | "base" | "tip" | undefined;
49
52
  }, {
50
53
  amount: string | number;
51
- unit: "baseUnit" | "cpu" | "ram" | undefined;
52
- formula: "fixed" | "feeRate" | "perKB" | "custom" | "perVKB" | undefined;
53
- type: "max" | "base" | "tip" | undefined;
54
+ } & {
55
+ unit?: "baseUnit" | "cpu" | "ram" | undefined;
56
+ formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
57
+ type?: "max" | "base" | "tip" | undefined;
54
58
  }, unknown>, t.UndefinedC]>;
55
59
  }>]>, t.TypeC<{
56
60
  delayBlocks: t.StringC;
57
61
  proxyType: t.StringC;
62
+ }>, t.PartialC<{
58
63
  index: t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>;
59
- recipients: t.UnionC<[t.Type<{
64
+ recipients: t.UnionC<[t.Type<({
60
65
  address: {
61
- address: string | undefined;
62
- option: {
66
+ address?: string | undefined;
67
+ option?: {
63
68
  [x: string]: unknown;
64
69
  } | undefined;
65
70
  };
@@ -67,11 +72,12 @@ export declare const DotCreateAccountIntent: t.IntersectionC<[t.IntersectionC<[t
67
72
  value: string;
68
73
  symbol: string;
69
74
  };
70
- data: string | undefined;
71
- }[], {
75
+ } & {
76
+ data?: string | undefined;
77
+ })[], ({
72
78
  address: {
73
- address: string | undefined;
74
- option: {
79
+ address?: string | undefined;
80
+ option?: {
75
81
  [x: string]: unknown;
76
82
  } | undefined;
77
83
  };
@@ -79,7 +85,8 @@ export declare const DotCreateAccountIntent: t.IntersectionC<[t.IntersectionC<[t
79
85
  value: string;
80
86
  symbol: string;
81
87
  };
82
- data: string | undefined;
83
- }[], unknown>, t.UndefinedC]>;
88
+ } & {
89
+ data?: string | undefined;
90
+ })[], unknown>, t.UndefinedC]>;
84
91
  }>]>;
85
92
  export type DotCreateAccountIntent = t.TypeOf<typeof DotCreateAccountIntent>;
@@ -35,6 +35,8 @@ exports.DotCreateAccountIntent = t.intersection([
35
35
  t.type({
36
36
  delayBlocks: t.string,
37
37
  proxyType: t.string,
38
+ }),
39
+ t.partial({
38
40
  index: utils_1.optionalNumber,
39
41
  recipients: (0, utils_1.Optional)(t.array(recipientEntry_1.RecipientEntry)),
40
42
  }),
@@ -1 +1 @@
1
- {"version":3,"file":"dotCreateAccountIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/dotCreateAccountIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6EAA0E;AAC1E,0CAA0D;AAC1D,qDAAkD;AAClD,qFAAkF;AAErE,QAAA,sBAAsB,GAAG,CAAC,CAAC,YAAY,CAAC;IACnD,+DAA8B;IAC9B,uDAA0B;IAC1B,CAAC,CAAC,IAAI,CAAC;QACL,WAAW,EAAE,CAAC,CAAC,MAAM;QACrB,SAAS,EAAE,CAAC,CAAC,MAAM;QACnB,KAAK,EAAE,sBAAc;QAErB,UAAU,EAAE,IAAA,gBAAQ,EAAC,CAAC,CAAC,KAAK,CAAC,+BAAc,CAAC,CAAC;KAC9C,CAAC;CACH,CAAC,CAAC"}
1
+ {"version":3,"file":"dotCreateAccountIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/dotCreateAccountIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6EAA0E;AAC1E,0CAA0D;AAC1D,qDAAkD;AAClD,qFAAkF;AAErE,QAAA,sBAAsB,GAAG,CAAC,CAAC,YAAY,CAAC;IACnD,+DAA8B;IAC9B,uDAA0B;IAC1B,CAAC,CAAC,IAAI,CAAC;QACL,WAAW,EAAE,CAAC,CAAC,MAAM;QACrB,SAAS,EAAE,CAAC,CAAC,MAAM;KACpB,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,KAAK,EAAE,sBAAc;QAErB,UAAU,EAAE,IAAA,gBAAQ,EAAC,CAAC,CAAC,KAAK,CAAC,+BAAc,CAAC,CAAC;KAC9C,CAAC;CACH,CAAC,CAAC"}
@@ -0,0 +1,14 @@
1
+ import * as t from "io-ts";
2
+ export declare const dotFeeFormulas: {
3
+ fixed: t.LiteralC<"fixed">;
4
+ feeRate: t.LiteralC<"feeRate">;
5
+ perKB: t.LiteralC<"perKB">;
6
+ custom: t.LiteralC<"custom">;
7
+ };
8
+ export declare const DotFeeFormulas: t.KeyofC<{
9
+ fixed: t.LiteralC<"fixed">;
10
+ feeRate: t.LiteralC<"feeRate">;
11
+ perKB: t.LiteralC<"perKB">;
12
+ custom: t.LiteralC<"custom">;
13
+ }>;
14
+ export type DotFeeFormulas = t.TypeOf<typeof DotFeeFormulas>;
@@ -0,0 +1,35 @@
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.DotFeeFormulas = exports.dotFeeFormulas = void 0;
27
+ const t = __importStar(require("io-ts"));
28
+ exports.dotFeeFormulas = {
29
+ fixed: t.literal("fixed"),
30
+ feeRate: t.literal("feeRate"),
31
+ perKB: t.literal("perKB"),
32
+ custom: t.literal("custom"),
33
+ };
34
+ exports.DotFeeFormulas = t.keyof(exports.dotFeeFormulas);
35
+ //# sourceMappingURL=dotFeeOptionFormula.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dotFeeOptionFormula.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/dotFeeOptionFormula.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAEd,QAAA,cAAc,GAAG;IAC5B,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC;IACzB,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC;IAC7B,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC;IACzB,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC;CAC5B,CAAC;AAEW,QAAA,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,sBAAc,CAAC,CAAC"}
@@ -1,7 +1,8 @@
1
1
  import * as t from "io-ts";
2
- export declare const DotFeeOptions: t.TypeC<{
2
+ export declare const DotFeeOptions: t.IntersectionC<[t.TypeC<{
3
3
  amount: t.UnionC<[t.StringC, t.NumberC]>;
4
+ }>, t.PartialC<{
4
5
  unit: t.UnionC<[t.Type<"baseUnit" | "cpu" | "ram", "baseUnit" | "cpu" | "ram", unknown>, t.UndefinedC]>;
5
- formula: t.UnionC<[t.Type<"fixed" | "feeRate" | "perKB" | "custom" | "perVKB", "fixed" | "feeRate" | "perKB" | "custom" | "perVKB", unknown>, t.UndefinedC]>;
6
+ formula: t.UnionC<[t.Type<"fixed" | "feeRate" | "perKB" | "custom", "fixed" | "feeRate" | "perKB" | "custom", unknown>, t.UndefinedC]>;
6
7
  type: t.UnionC<[t.Type<"max" | "base" | "tip", "max" | "base" | "tip", unknown>, t.UndefinedC]>;
7
- }>;
8
+ }>]>;
@@ -27,12 +27,16 @@ exports.DotFeeOptions = void 0;
27
27
  const t = __importStar(require("io-ts"));
28
28
  const feeOptionUnit_1 = require("./feeOptionUnit");
29
29
  const utils_1 = require("../../../utils");
30
- const feeOptionFormula_1 = require("./feeOptionFormula");
30
+ const dotFeeOptionFormula_1 = require("./dotFeeOptionFormula");
31
31
  const feeOptionFeeType_1 = require("./feeOptionFeeType");
32
- exports.DotFeeOptions = t.type({
33
- amount: t.union([t.string, t.number]),
34
- unit: (0, utils_1.Optional)(feeOptionUnit_1.FeeUnit),
35
- formula: (0, utils_1.Optional)(feeOptionFormula_1.FeeFormula),
36
- type: (0, utils_1.Optional)(feeOptionFeeType_1.FeeType),
37
- });
32
+ exports.DotFeeOptions = t.intersection([
33
+ t.type({
34
+ amount: t.union([t.string, t.number]),
35
+ }),
36
+ t.partial({
37
+ unit: (0, utils_1.Optional)(feeOptionUnit_1.FeeUnit),
38
+ formula: (0, utils_1.Optional)(dotFeeOptionFormula_1.DotFeeFormulas),
39
+ type: (0, utils_1.Optional)(feeOptionFeeType_1.FeeType),
40
+ }),
41
+ ]);
38
42
  //# sourceMappingURL=dotFeeOptions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"dotFeeOptions.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/dotFeeOptions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,mDAA0C;AAC1C,0CAA0C;AAC1C,yDAAgD;AAChD,yDAA6C;AAEhC,QAAA,aAAa,GAAG,CAAC,CAAC,IAAI,CAAC;IAClC,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC;IACrC,IAAI,EAAE,IAAA,gBAAQ,EAAC,uBAAO,CAAC;IACvB,OAAO,EAAE,IAAA,gBAAQ,EAAC,6BAAU,CAAC;IAC7B,IAAI,EAAE,IAAA,gBAAQ,EAAC,0BAAO,CAAC;CACxB,CAAC,CAAC"}
1
+ {"version":3,"file":"dotFeeOptions.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/dotFeeOptions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,mDAA0C;AAC1C,0CAA0C;AAC1C,+DAAuD;AACvD,yDAA6C;AAEhC,QAAA,aAAa,GAAG,CAAC,CAAC,YAAY,CAAC;IAC1C,CAAC,CAAC,IAAI,CAAC;QACL,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC;KACtC,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,IAAI,EAAE,IAAA,gBAAQ,EAAC,uBAAO,CAAC;QACvB,OAAO,EAAE,IAAA,gBAAQ,EAAC,oCAAc,CAAC;QACjC,IAAI,EAAE,IAAA,gBAAQ,EAAC,0BAAO,CAAC;KACxB,CAAC;CACH,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import * as t from "io-ts";
2
- export declare const DotPaymentIntent: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
2
+ export declare const DotPaymentIntent: 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 DotPaymentIntent: 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,24 +49,27 @@ export declare const DotPaymentIntent: 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
  fee: t.UnionC<[t.Type<{
57
59
  amount: string | number;
58
- unit: "baseUnit" | "cpu" | "ram" | undefined;
59
- formula: "fixed" | "feeRate" | "perKB" | "custom" | "perVKB" | undefined;
60
- type: "max" | "base" | "tip" | undefined;
60
+ } & {
61
+ unit?: "baseUnit" | "cpu" | "ram" | undefined;
62
+ formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
63
+ type?: "max" | "base" | "tip" | undefined;
61
64
  }, {
62
65
  amount: string | number;
63
- unit: "baseUnit" | "cpu" | "ram" | undefined;
64
- formula: "fixed" | "feeRate" | "perKB" | "custom" | "perVKB" | undefined;
65
- type: "max" | "base" | "tip" | undefined;
66
+ } & {
67
+ unit?: "baseUnit" | "cpu" | "ram" | undefined;
68
+ formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
69
+ type?: "max" | "base" | "tip" | undefined;
66
70
  }, unknown>, t.UndefinedC]>;
67
71
  }>]>, t.TypeC<{
68
- proxy: t.TypeC<{
72
+ proxy: t.PartialC<{
69
73
  name: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
70
74
  addressString: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
71
75
  asset: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
@@ -1,5 +1,5 @@
1
1
  import * as t from "io-ts";
2
- export declare const DotProxy: t.TypeC<{
2
+ export declare const DotProxy: t.PartialC<{
3
3
  name: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
4
4
  addressString: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
5
5
  asset: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
@@ -26,7 +26,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.DotProxy = void 0;
27
27
  const t = __importStar(require("io-ts"));
28
28
  const utils_1 = require("../../../utils");
29
- exports.DotProxy = t.type({
29
+ exports.DotProxy = t.partial({
30
30
  name: utils_1.optionalString,
31
31
  addressString: utils_1.optionalString,
32
32
  asset: utils_1.optionalString,
@@ -1 +1 @@
1
- {"version":3,"file":"dotProxy.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/dotProxy.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,0CAAgD;AAEnC,QAAA,QAAQ,GAAG,CAAC,CAAC,IAAI,CAAC;IAC7B,IAAI,EAAE,sBAAc;IACpB,aAAa,EAAE,sBAAc;IAC7B,KAAK,EAAE,sBAAc;IACrB,YAAY,EAAE,sBAAc;CAC7B,CAAC,CAAC"}
1
+ {"version":3,"file":"dotProxy.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/dotProxy.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,0CAAgD;AAEnC,QAAA,QAAQ,GAAG,CAAC,CAAC,OAAO,CAAC;IAChC,IAAI,EAAE,sBAAc;IACpB,aAAa,EAAE,sBAAc;IAC7B,KAAK,EAAE,sBAAc;IACrB,YAAY,EAAE,sBAAc;CAC7B,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import * as t from "io-ts";
2
- export declare const DotStakingIntent: t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
2
+ export declare const DotStakingIntent: 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,26 +30,29 @@ export declare const DotStakingIntent: 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
  fee: t.UnionC<[t.Type<{
44
45
  amount: string | number;
45
- unit: "baseUnit" | "cpu" | "ram" | undefined;
46
- formula: "fixed" | "feeRate" | "perKB" | "custom" | "perVKB" | undefined;
47
- type: "max" | "base" | "tip" | undefined;
46
+ } & {
47
+ unit?: "baseUnit" | "cpu" | "ram" | undefined;
48
+ formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
49
+ type?: "max" | "base" | "tip" | undefined;
48
50
  }, {
49
51
  amount: string | number;
50
- unit: "baseUnit" | "cpu" | "ram" | undefined;
51
- formula: "fixed" | "feeRate" | "perKB" | "custom" | "perVKB" | undefined;
52
- type: "max" | "base" | "tip" | undefined;
52
+ } & {
53
+ unit?: "baseUnit" | "cpu" | "ram" | undefined;
54
+ formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
55
+ type?: "max" | "base" | "tip" | undefined;
53
56
  }, unknown>, t.UndefinedC]>;
54
57
  }>]>, t.TypeC<{
55
58
  amount: t.TypeC<{
@@ -57,6 +60,7 @@ export declare const DotStakingIntent: t.IntersectionC<[t.IntersectionC<[t.Inter
57
60
  symbol: t.StringC;
58
61
  }>;
59
62
  stakingProxy: t.StringC;
63
+ }>, t.PartialC<{
60
64
  addToStake: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
61
65
  addProxy: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
62
66
  }>]>;
@@ -35,6 +35,8 @@ exports.DotStakingIntent = t.intersection([
35
35
  t.type({
36
36
  amount: amount_1.Amount,
37
37
  stakingProxy: t.string,
38
+ }),
39
+ t.partial({
38
40
  addToStake: utils_1.optionalBoolean,
39
41
  addProxy: utils_1.optionalBoolean,
40
42
  }),
@@ -1 +1 @@
1
- {"version":3,"file":"dotStakingIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/dotStakingIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6EAA0E;AAC1E,qCAAkC;AAClC,+CAA4C;AAC5C,0CAAiD;AAEpC,QAAA,gBAAgB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC7C,yBAAW;IACX,uDAA0B;IAC1B,CAAC,CAAC,IAAI,CAAC;QACL,MAAM,EAAE,eAAM;QACd,YAAY,EAAE,CAAC,CAAC,MAAM;QACtB,UAAU,EAAE,uBAAe;QAC3B,QAAQ,EAAE,uBAAe;KAC1B,CAAC;CACH,CAAC,CAAC"}
1
+ {"version":3,"file":"dotStakingIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/dotStakingIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6EAA0E;AAC1E,qCAAkC;AAClC,+CAA4C;AAC5C,0CAAiD;AAEpC,QAAA,gBAAgB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC7C,yBAAW;IACX,uDAA0B;IAC1B,CAAC,CAAC,IAAI,CAAC;QACL,MAAM,EAAE,eAAM;QACd,YAAY,EAAE,CAAC,CAAC,MAAM;KACvB,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,UAAU,EAAE,uBAAe;QAC3B,QAAQ,EAAE,uBAAe;KAC1B,CAAC;CACH,CAAC,CAAC"}