free-honey/naumachia

Add Cost Models lookup to Ledger API

MitchTurner opened this issue · 1 comments

The Cost Model can change at any moment and they are currently hardcoded.

In the mean time, here is some janky code I wrote to compare values from
https://book.world.dev.cardano.org/cost-model.html
with the values I have in code:
https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=9689ba273c74fe4d0b6d519a7fedef8a

Ogmios Endpoint:
https://ogmios.dev/mini-protocols/local-state-query/

AFAICT, there aren't cost_model endpoints on Blockfrost, for example. Should I just query the values here:?

https://book.play.dev.cardano.org/cm-2023-02-14.html

But, I'd have to look up the most recent date to be able to query properly. It's not like I can just ask for current models.