diff --git a/external/sov-wasm/Cargo.lock b/external/sov-wasm/Cargo.lock index 26ef038..9873666 100644 --- a/external/sov-wasm/Cargo.lock +++ b/external/sov-wasm/Cargo.lock @@ -5042,7 +5042,6 @@ version = "0.1.0" dependencies = [ "borsh", "demo-stf", - "serde", "serde_json", "sov-mock-da", "sov-modules-api", diff --git a/external/sov-wasm/Cargo.toml b/external/sov-wasm/Cargo.toml index a22e517..057b805 100644 --- a/external/sov-wasm/Cargo.toml +++ b/external/sov-wasm/Cargo.toml @@ -8,7 +8,6 @@ crate-type = ["cdylib", "rlib"] [dependencies] borsh = "0.10.3" -serde = "1.0" serde_json = "1.0" demo-stf = { git = "https://github.com/Sovereign-Labs/sovereign-sdk.git", rev = "df169be", features = ["serde"] } sov-modules-api = { git = "https://github.com/Sovereign-Labs/sovereign-sdk.git", rev = "df169be", features = ["serde"] } diff --git a/external/sov-wasm/Makefile b/external/sov-wasm/Makefile index 83656ae..1319515 100644 --- a/external/sov-wasm/Makefile +++ b/external/sov-wasm/Makefile @@ -29,7 +29,7 @@ wasm: ## Build the WASM files $(PACKAGE_RESTORED_OPTIMIZED) @mv $(PACKAGE_THIN) $(PACKAGE_SHORT) @rm $(PACKAGE) - @echo "Package created: $(PACKAGE)" + @echo "Package created: $(PACKAGE_SHORT)" help: ## Display this help screen @grep -h \ diff --git a/external/sov-wasm/assets/sov-wasm.wasm b/external/sov-wasm/assets/sov-wasm.wasm index c45e745..6acd84b 100644 Binary files a/external/sov-wasm/assets/sov-wasm.wasm and b/external/sov-wasm/assets/sov-wasm.wasm differ diff --git a/external/sov-wasm/src/definitions.rs b/external/sov-wasm/src/definitions.rs new file mode 100644 index 0000000..f0e7cb8 --- /dev/null +++ b/external/sov-wasm/src/definitions.rs @@ -0,0 +1,3 @@ +pub type Context = sov_modules_api::default_context::ZkDefaultContext; +pub type DaSpec = sov_mock_da::MockDaSpec; +pub type RuntimeCall = demo_stf::runtime::RuntimeCall; diff --git a/external/sov-wasm/src/lib.rs b/external/sov-wasm/src/lib.rs index d4c4ebe..277ec55 100644 --- a/external/sov-wasm/src/lib.rs +++ b/external/sov-wasm/src/lib.rs @@ -6,14 +6,13 @@ use alloc::vec::Vec; use core::{mem, slice}; use borsh::{BorshDeserialize, BorshSerialize}; -use sov_mock_da::MockDaSpec; -use sov_modules_api::default_context::ZkDefaultContext; -use sov_modules_api::{Signature as _, Spec}; - -pub type Context = ZkDefaultContext; -pub type RuntimeCall = demo_stf::runtime::RuntimeCall; -pub type PublicKey = ::PublicKey; -pub type Signature = ::Signature; +use sov_modules_api::Signature as _; + +mod definitions; +use definitions::{Context, RuntimeCall}; + +pub type PublicKey = ::PublicKey; +pub type Signature = ::Signature; pub type Transaction = sov_modules_api::transaction::Transaction; #[cfg(test)]