Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
3598: Refactor: break down ApiConstructTransactionData validation r=Unisay a=Unisay This PR is an increment towards the state where `Cardano.Wallet.Api.createTransaction` API request body validation is modular and is done in a spirit of [Parse, don’t validate](https://lexi-lambda.github.io/blog/2019/11/05/parse-don-t-validate/). I intend to continue down this road, such that: - API layer is responsible for converting HTTP request into a data type that captures a transaction construction task (`TransactionCtx` atm). - `TransactionCtx` is passed to the `Cardano.Wallet.createTransaction` layer which takes care of the semantic validations and does all the logic. Such refactoring will make it possible to reimplement e.g. `quitStakePool` in terms of the `Cardano.Wallet.createTransaction`. ### Issue Number ADP-2267 Co-authored-by: Yura Lazarev <[email protected]>
- Loading branch information