We believe it would be best to just replace AbsSlot by Slot, despite this minor difference, even if it is imprecise, the slot number is so large that it should be acceptable. We should add a comment under the Ogmios queries that can potentially return 18446744073709552000 to explain this difference.
Furthermore, this is an unnecessary duplicate type and we don't want to propagate AbsSlot into any further functions, especially if they're exposed in Contract, in this case, Slot should be preferred.
AbsSlot
was originally added for Ogmios queries https://ogmios.dev/api/ seeQueryResponse[eraSummaries] to see Integer[ 0 .. 18446744073709552000 ]
whereasSlot
is a newtype wrapper overBigNum
- a Rustu64
with max value18446744073709551615
after https://github.com/Plutonomicon/cardano-transaction-lib/pull/609, note the difference of385
. See https://github.com/Plutonomicon/cardano-transaction-lib/pull/609#discussion_r909516939 for a discussion.We believe it would be best to just replace
AbsSlot
bySlot
, despite this minor difference, even if it is imprecise, the slot number is so large that it should be acceptable. We should add a comment under the Ogmios queries that can potentially return18446744073709552000
to explain this difference.Furthermore, this is an unnecessary duplicate type and we don't want to propagate
AbsSlot
into any further functions, especially if they're exposed inContract
, in this case,Slot
should be preferred.