Open
Description
As part of our hydra-voting-poc workstream we realised we need evaluate endpoint returning ExUnits compatible with L2 / Hydra / devnets solutions.
Problem statement:
Current evaluate endpoint assumes L1 parameters.
Request:
Allow a user / developer to pass SlotConfig and Initial Budget via parameters to the existing evaluate endpoint.
SlotConfig {
slot_length, // rust i32
zero_slot, // rust i64
zero_time // rust i64
}
InitialBudget {
mem, // rust: i64
cpu // rust: i64
}
These parameters can be provided via GET or POST request, the response should be compatible with existing evaluate endpoint.
Delivery of this will unblock number of L2 usecases, in cases where smart contracts need to be used.
I had a chat @satran004 and probably it would make more sense to have a completely new endpoint (network agnostic endpoint).