dcSpark / cardano-multiplatform-lib

Rust implementation of Cardano
MIT License
99 stars 36 forks source link

Governance Builders #333

Closed rooooooooob closed 4 months ago

rooooooooob commented 5 months ago

Adds VoteBuilder and ProposalBuilder to facilitate creation of votes and voting proposals to transactions.

Resolves #323

rooooooooob commented 4 months ago

I'm just going to mark this as ready for review now. I haven't been able to test everything but I've been able to use the builders to make a few proposals (params, constitution, info) and vote on them (params, consitution). The hardfork one should be fine as there is just a version in it just like the constitution. I could test that too but I need more test ADA as the drep deposit is large. The only one I am worried about is the UpdateCommittee one but I'm not sure if I can even propose that without having any of the exisitng keys.

I only tested DRep voting as I don't have a pool and am not a part of the constitutional committee.