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 layer 1/2 abstractions #11

Merged
merged 17 commits into from Oct 8, 2023
Merged

Conversation

iduartgomez
Copy link
Contributor

Implementation of #186148680 in PT.

We have introduced 2 higher level macros: TypedContract (layer 1) and ComposableContract (layer 2? temporal name) which allowe dfor well-typed interactions with macros.

Also the contract proc macro has gained new functionality to generate the FFI code when implementing higher level traits for contract declarations.

Also introduced the Encoder trait and some default blanked implementations (through the SerializationAdapter trait) for transforming raw bytes coming from host to wasm implementing one of the two higher level contract traits.

@iduartgomez iduartgomez enabled auto-merge (rebase) October 8, 2023 09:23
@iduartgomez iduartgomez merged commit 0cd6ba8 into main Oct 8, 2023
6 checks passed
@iduartgomez iduartgomez deleted the 186148680-layer1-abstraction branch October 8, 2023 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant