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

Conway initial cml-chain update #258

Merged
merged 5 commits into from
Sep 27, 2023
Merged

Conway initial cml-chain update #258

merged 5 commits into from
Sep 27, 2023

Conversation

rooooooooob
Copy link
Contributor

Includes cml-chain/cml-chain-wasm's structs except for the builders.

Util functionality (besides builders) were updated.

The builders are temporarily disabled and will be updated in a coming commit.

Also needs JSON stuff moved over and clippy warnings to be fixed again.

cml-multi-era will need updating too to bring over babbage and to update existing structs (regen + update the cddls)

Includes cml-chain/cml-chain-wasm's structs except for the builders.

Util functionality (besides builders) were updated.

The builders are temporarily disabled and will be updated in a coming
commit.

Also needs JSON stuff moved over and clippy warnings to be fixed again.
@rooooooooob rooooooooob marked this pull request as draft September 5, 2023 19:04
Generated Babbage era into cml-multi-era + updated the rest of the crate
to work with the changes (some types simplified to take advantage of
improved cddl-codegen support, some types renames/reorganized, some
types no longer in cml-chain so moved into multi-era).

cml-chain builders now compile

also some cml-chain files that were not added to the previous commit
relating to the Conway update
Basic group encoding wasn't being preserved due to usage of
_CDDL_CODEGEN_EXTERN_TYPE_ which caused the serialization code to expect
a wrapping array tag that it shouldn't have.

Fix: extern types that MUST be treated as basic groups should have their
definition inlined, then the code deleted after (easy since we have all
cml-chain extern types in a /cml-chain/ folder in the multi-era specs folder)
@rooooooooob rooooooooob marked this pull request as ready for review September 21, 2023 19:06
WASM build fixes: duplicate name between chain-wasm and multi-era-wasm
which does not work when exporting to typescript.

WASM build fixes: few misc things not included in previous commit

lint fixes: mostly unused vars/imports/etc but also Certificate is too
big which caused issues on its own + use in Result as Err variant.

At some point we could offer a way to have cddl-codegen Box variants if
there's a large variance and fix it that way but until then I just
allow()'d it.

GovAction::I6 -> GovAction::InfoAction renamed as well. this is how it
should be according to the .cddl spec but cddl-codegen ignores the @name
comment in this specific place: ddcSpark/cddl-codegen#211
so this was resolved by hand afterwards.
@gostkin
Copy link
Contributor

gostkin commented Sep 22, 2023

@rooooooooob pls fix the checks

}
// no witness as there is no single core node or genesis key that posts the certificate
Certificate::MoveInstantaneousRewardsCert(_cert) => {}
Certificate::RegCert(_cert) => todo!(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will we introduce that in the following prs?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes

chain/wasm/src/lib.rs Outdated Show resolved Hide resolved
crypto/rust/src/lib.rs Outdated Show resolved Hide resolved
@rooooooooob rooooooooob force-pushed the conway-initial-update branch 2 times, most recently from 8baeee4 to e254605 Compare September 25, 2023 20:07
@gostkin gostkin merged commit 255ee5e into develop Sep 27, 2023
1 check passed
@rooooooooob rooooooooob deleted the conway-initial-update branch February 17, 2024 04:20
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.

2 participants