bloxbean / cardano-client-lib

Cardano client library in Java
https://cardano-client.dev
MIT License
118 stars 47 forks source link

[GovTx] Supplier to provide governance related configuration #394

Open satran004 opened 4 months ago

satran004 commented 4 months ago

Currently, the Tx API requires governance-related configurations, such as DRep registration deposit and Gov Action deposit, either through method parameters or constants.

We can introduce a new supplier interface to provide these configurations.

Alternatively, this information could be fetched from ProtocolParamSupplier. However, since ProtocolParamSupplier is injected through QuickTxBuilder and not Tx, we need to find a way to provide it during the creation of the Tx object.