cardano-scaling / hydra

Implementation of the Hydra Head protocol
https://hydra.family/head-protocol/
Apache License 2.0
274 stars 84 forks source link

Implement deposit validators and off-chain code #1574

Closed noonio closed 5 days ago

noonio commented 3 weeks ago

Why

Given the new deposit workflow of #199, we would like to implement the fairly independent steps of depositing and canceling independent of the hydra-node. Such that this work can be tested and merged independently.

TODO: Why doing this separate to #1522?

What

TBD: Out of scope?

How

ADRs _ Designs - hydra-tx lib + cli 2024-08-19

v0d1ch commented 2 weeks ago

Question: What about the fees? The fees are not mentioned for the deposit/recover transactions. Since the user is responsible for submitting we also need to take into account setting the fees since we are constructing the transaction. User could be able to import the tx cbor into their wallet but idea here was that we provide some compatibility with cardano-cli. Perhaps we could set minimum fees and/or provide argument to the hydra-tx executable to set the desired fee (this looks more feasible than importing the tx into wallet)