-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Group all derived module structs into single trait (#509)
* Add OdraContract trait grouping module-related structs * Change `Deploy` definition to take advantage of `OdraContract` * Update `deploy` calls in modules and examples
- Loading branch information
Showing
73 changed files
with
472 additions
and
402 deletions.
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.