-
Notifications
You must be signed in to change notification settings - Fork 2
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
Group all derived module structs into single trait #509
Merged
kpob
merged 6 commits into
release/1.3.0
from
feature/group-all-derived-module-structs--into-single-trait
Aug 6, 2024
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
648aed7
Add OdraContract trait
kpob 0a783ff
Fix error parsing
kpob 0f1b85a
Update crates version to 1.3.0, update changelog
kpob 309b125
Fix templates
kpob 4217ceb
Update `load_contract` function to validate if the provided address i…
kpob c0ae606
Add TODO comment
kpob File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,20 +16,20 @@ exclude = [ "examples", "modules", "benchmark", "odra-casper/proxy-caller", "tem | |
resolver = "2" | ||
|
||
[workspace.package] | ||
version = "1.2.0" | ||
version = "1.3.0" | ||
authors = ["Jakub Płaskonka <[email protected]>", "Krzysztof Pobiarżyn <[email protected]>", "Maciej Zieliński <[email protected]>"] | ||
license = "MIT" | ||
homepage = "https://odra.dev/docs" | ||
repository = "https://github.com/odradev/odra" | ||
|
||
[workspace.dependencies] | ||
odra-core = { path = "core", version = "1.2.0" } | ||
odra-macros = { path = "odra-macros", version = "1.2.0" } | ||
odra-casper-test-vm = { path = "odra-casper/test-vm", version = "1.2.0" } | ||
odra-casper-rpc-client = { path = "odra-casper/rpc-client", version = "1.2.0" } | ||
odra-vm = { path = "odra-vm", version = "1.2.0" } | ||
odra-casper-wasm-env = { path = "odra-casper/wasm-env", version = "1.2.0"} | ||
odra-schema = { path = "odra-schema", version = "1.2.0" } | ||
odra-core = { path = "core", version = "1.3.0" } | ||
odra-macros = { path = "odra-macros", version = "1.3.0" } | ||
odra-casper-test-vm = { path = "odra-casper/test-vm", version = "1.3.0" } | ||
odra-casper-rpc-client = { path = "odra-casper/rpc-client", version = "1.3.0" } | ||
odra-vm = { path = "odra-vm", version = "1.3.0" } | ||
odra-casper-wasm-env = { path = "odra-casper/wasm-env", version = "1.3.0"} | ||
odra-schema = { path = "odra-schema", version = "1.3.0" } | ||
casper-contract = { version = "4.0.0", default-features = false } | ||
casper-types = { version = "4.0.1", default-features = false } | ||
casper-execution-engine = "7.0.1" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/// The contract trait. | ||
pub trait OdraContract { | ||
/// The host reference type. | ||
#[cfg(not(target_arch = "wasm32"))] | ||
type HostRef: crate::host::HostRef | ||
+ crate::host::EntryPointsCallerProvider | ||
+ crate::contract_def::HasIdent; | ||
/// The contract reference type. | ||
type ContractRef: crate::ContractRef; | ||
/// The init args type. | ||
#[cfg(not(target_arch = "wasm32"))] | ||
type InitArgs: crate::host::InitArgs; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "odra-examples" | ||
version = "1.2.0" | ||
version = "1.3.0" | ||
edition = "2021" | ||
|
||
[dependencies] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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?
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.
That was a missing mapping and was causing an overflow error.