-
Notifications
You must be signed in to change notification settings - Fork 101
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
Add emit-event native; support blessed modules and add source chain in crosschain #862
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
||
instance SizeOf Yield where | ||
sizeOf (Yield dataYield prov) = | ||
sizeOf (Yield dataYield prov _) = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why would you leave the size of the chain id out of this calculation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No particular reason, except that perhaps gas is supposed to represent some kind of increased utilization, whereas from a data standpoint, Nothing
is equivalent to Just ChainId
-- is Nothing
worth 0? I didn't want to think about that question.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM...sorry for the delay.. I needed to review some data definitions.
…n crosschain (kadena-io#862) * Add emit-event native; support blessed module hashes in crosschain * use nonce for stable test * Add source-chain to Yield with backcompat * up version * add test for sourceChain. TODO need negative/backcompat test * added backcompat, and goldens for yields before and after * move yaml out of ghcjs test * Add emit-event gas regression * bump docs Co-authored-by: Stuart Popejoy <slpopejoy@users.noreply.github.com>
emit-event
allows using a cap as an event without invoking it. This will be important for overloadingTRANSFER
with burn/create and gas events.Yield provenance now checks against blessed hashes. This is important for upgrading
coin
without breaking in-progress transfers. EDIT: also, Yield adds asource
field to JSON recording source chain.FlagDisablePact40
ensures backcompat with error messages and Yield population.NB:emit-event
does not have a gas regression, I will address this in later PRs that make the gas golden easier to diff, and the regression fixture more flexible.