-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make HeadId
usable on-chain
#919
Comments
So, you would like to have a I see some usage of it here in your code base. The type you are using right now is the one from What we can do, however is to define such a type in the |
It is used as param of But it is also used on delegate servers and clients, to ensure that correct head is used.
Why? Anyway ToData/FromData are just as good, I believe. Actually we could do it ourself. |
Because I'd we do the following to address this item:
|
I proposed single type cuz it seems simple solution to me. If not single type, than I think that conversion functions are good enough, and child packages may do onchain newtype themselves, cuz this type is not used by hydra so there is no need for interoperability. |
Why
We use
HeadId
as part of out on-chain terms.Now we need to convert it to
CurrencySymbol
, what makes is less type-safe.https://github.com/mlabs-haskell/hydra-auction/blob/07740fb9cd832f934bab61dab23b4369e96d0c9c/src/HydraAuction/Types.hs#L78
What
Make
HeadId
serializable to on-chain Data.How
I think
HeadId
may just useBuiltinByteString
instead ofByteString
.The text was updated successfully, but these errors were encountered: