Skip to content
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

Merged
merged 11 commits into from
Apr 29, 2021

Conversation

sirlensalot
Copy link
Contributor

@sirlensalot sirlensalot commented Apr 18, 2021

emit-event allows using a cap as an event without invoking it. This will be important for overloading TRANSFER 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 a source 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.

@sirlensalot sirlensalot changed the title Add emit-event native; support blessed module hashes in crosschain Add emit-event native; support blessed modules and add source chain in crosschain Apr 18, 2021
Copy link
Member

@emilypi emilypi left a 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 _) =
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor

@emmanueldenloye emmanueldenloye left a 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.

@sirlensalot sirlensalot merged commit 93d2863 into master Apr 29, 2021
@sirlensalot sirlensalot deleted the feat/emit-event-bless-xchain branch April 29, 2021 00:23
jmininger pushed a commit to jmininger/pact that referenced this pull request May 21, 2021
…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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants