-
Notifications
You must be signed in to change notification settings - Fork 23
Description
Currently there are no functions to map from blockfrost to cardano/ledger-api types (or I didn't find them). In my specific use-case I needed to query blockfrost for ProtocolParams and then use the cardano-api to construct the transaction. Problem is there is no way to map from blockfrost ProtocolParams to cardano-api ProtocolParameters (Or ledger PParams) so I need to do the mapping myself.
It would be very convenient to provide a way to easily use cardano or the ledger-api packages with blockfrost types. I am aware that it is inconvenient to track the downstream changes and make this conversion always possible but at the same time it provides much better developer experience. As a workaround I think it would be enough to make sure the ToJSON instance for a blockfrost type can be decoded to some cardano/ledger api type but not sure if this is less hassle.