diff --git a/Cargo.lock b/Cargo.lock index ca4c4fe7..87146e37 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -193,15 +193,6 @@ dependencies = [ "generic-array", ] -[[package]] -name = "bls-signature" -version = "0.0.0" -dependencies = [ - "multiversx-sc", - "multiversx-sc-scenario", - "transaction", -] - [[package]] name = "bumpalo" version = "3.16.0" @@ -500,7 +491,6 @@ checksum = "c34f04666d835ff5d62e058c3995147c06f42fe86ff053337632bca83e42702d" name = "enshrine-esdt-safe" version = "0.0.0" dependencies = [ - "bls-signature", "fee-market", "header-verifier", "hex", @@ -570,7 +560,6 @@ dependencies = [ name = "esdt-safe" version = "0.0.0" dependencies = [ - "bls-signature", "fee-market", "header-verifier", "hex", @@ -606,7 +595,6 @@ checksum = "486f806e73c5707928240ddc295403b1b93c96a02038563881c4a2fd84b81ac4" name = "fee-market" version = "0.0.0" dependencies = [ - "bls-signature", "multiversx-sc", "multiversx-sc-scenario", "num-bigint", @@ -795,7 +783,6 @@ checksum = "3a9bfc1af68b1726ea47d3d5109de126281def866b33970e10fbab11b5dafab3" name = "header-verifier" version = "0.0.0" dependencies = [ - "bls-signature", "multiversx-sc", "multiversx-sc-scenario", "num-bigint", @@ -1858,7 +1845,6 @@ dependencies = [ name = "rust-interact-esdt-safe" version = "0.0.0" dependencies = [ - "bls-signature", "clap", "enshrine-esdt-safe", "fee-market", @@ -2301,7 +2287,6 @@ dependencies = [ name = "token-whitelist" version = "0.0.0" dependencies = [ - "bls-signature", "multiversx-sc", "multiversx-sc-scenario", "setup-phase", @@ -2501,7 +2486,6 @@ checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821" name = "utils" version = "0.0.0" dependencies = [ - "bls-signature", "multiversx-sc", ] diff --git a/chain-factory/wasm-chain-factory-full/Cargo.lock b/chain-factory/wasm-chain-factory-full/Cargo.lock index aa138a0e..cfcb5e5a 100644 --- a/chain-factory/wasm-chain-factory-full/Cargo.lock +++ b/chain-factory/wasm-chain-factory-full/Cargo.lock @@ -20,14 +20,6 @@ version = "2.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de" -[[package]] -name = "bls-signature" -version = "0.0.0" -dependencies = [ - "multiversx-sc", - "transaction", -] - [[package]] name = "chain-config" version = "0.0.0" @@ -257,6 +249,5 @@ checksum = "151ac09978d3c2862c4e39b557f4eceee2cc72150bc4cb4f16abf061b6e381fb" name = "utils" version = "0.0.0" dependencies = [ - "bls-signature", "multiversx-sc", ] diff --git a/chain-factory/wasm-chain-factory-view/Cargo.lock b/chain-factory/wasm-chain-factory-view/Cargo.lock index a29390fe..8bb0ea74 100644 --- a/chain-factory/wasm-chain-factory-view/Cargo.lock +++ b/chain-factory/wasm-chain-factory-view/Cargo.lock @@ -20,14 +20,6 @@ version = "2.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de" -[[package]] -name = "bls-signature" -version = "0.0.0" -dependencies = [ - "multiversx-sc", - "transaction", -] - [[package]] name = "chain-config" version = "0.0.0" @@ -257,6 +249,5 @@ checksum = "151ac09978d3c2862c4e39b557f4eceee2cc72150bc4cb4f16abf061b6e381fb" name = "utils" version = "0.0.0" dependencies = [ - "bls-signature", "multiversx-sc", ] diff --git a/chain-factory/wasm/Cargo.lock b/chain-factory/wasm/Cargo.lock index 87236058..6926b0e5 100644 --- a/chain-factory/wasm/Cargo.lock +++ b/chain-factory/wasm/Cargo.lock @@ -20,14 +20,6 @@ version = "2.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de" -[[package]] -name = "bls-signature" -version = "0.0.0" -dependencies = [ - "multiversx-sc", - "transaction", -] - [[package]] name = "chain-config" version = "0.0.0" @@ -257,6 +249,5 @@ checksum = "151ac09978d3c2862c4e39b557f4eceee2cc72150bc4cb4f16abf061b6e381fb" name = "utils" version = "0.0.0" dependencies = [ - "bls-signature", "multiversx-sc", ] diff --git a/common/bls-signature/Cargo.toml b/common/bls-signature/Cargo.toml deleted file mode 100644 index 37561b50..00000000 --- a/common/bls-signature/Cargo.toml +++ /dev/null @@ -1,14 +0,0 @@ -[package] -name = "bls-signature" -version = "0.0.0" -authors = ["dorin-iancu "] -edition = "2018" - -[dependencies.multiversx-sc] -version = "=0.54.3" - -[dependencies.transaction] -path = "../transaction" - -[dev-dependencies.multiversx-sc-scenario] -version = "=0.54.3" diff --git a/common/bls-signature/src/lib.rs b/common/bls-signature/src/lib.rs deleted file mode 100644 index 4fcee705..00000000 --- a/common/bls-signature/src/lib.rs +++ /dev/null @@ -1,82 +0,0 @@ -#![no_std] - -use transaction::Transaction; - -multiversx_sc::imports!(); - -pub const BLS_SIGNATURE_LEN: usize = 48; -pub type BlsSignature = ManagedByteArray; - -#[multiversx_sc::module] -pub trait BlsSignatureModule { - #[only_owner] - #[endpoint(setMinValidSigners)] - fn set_min_valid_signers(&self, new_value: u32) { - self.min_valid_signers().set(new_value); - } - - #[only_owner] - #[endpoint(addSigners)] - fn add_signers(&self, signers: MultiValueEncoded) { - for signer in signers { - let _ = self.all_signers().insert(signer); - } - } - - #[only_owner] - #[endpoint(removeSigners)] - fn remove_signers(&self, signers: MultiValueEncoded) { - for signer in signers { - let _ = self.all_signers().swap_remove(&signer); - } - } - - fn verify_bls_signature( - &self, - transactions: MultiValueEncoded>, - signature: &BlsSignature, - ) -> ManagedVec> { - let mut deserialized_transactions = ManagedVec::new(); - let mut serialized_signature_data = ManagedBuffer::new(); - for transaction in transactions { - let _ = transaction.dep_encode(&mut serialized_signature_data); - - deserialized_transactions.push(transaction); - } - - self.multi_verify_signature(&serialized_signature_data, signature); - - deserialized_transactions - } - - fn multi_verify_signature( - &self, - signature_data: &ManagedBuffer, - signature: &BlsSignature, - ) { - let all_signers = self.all_signers(); - - let mut total_valid_signatures = 0; - for signer in all_signers.iter() { - self.crypto().verify_bls( - signer.as_managed_buffer(), - signature_data, - signature.as_managed_buffer(), - ); - - total_valid_signatures += 1; - } - - let min_valid_signers = self.min_valid_signers().get(); - require!( - total_valid_signatures >= min_valid_signers, - "Invalid signature" - ); - } - - #[storage_mapper("allSigners")] - fn all_signers(&self) -> UnorderedSetMapper; - - #[storage_mapper("minValidSigners")] - fn min_valid_signers(&self) -> SingleValueMapper; -} diff --git a/common/proxies/src/enshrine_esdt_safe_proxy.rs b/common/proxies/src/enshrine_esdt_safe_proxy.rs index 39250e47..c778e062 100644 --- a/common/proxies/src/enshrine_esdt_safe_proxy.rs +++ b/common/proxies/src/enshrine_esdt_safe_proxy.rs @@ -161,45 +161,6 @@ where .original_result() } - pub fn set_min_valid_signers< - Arg0: ProxyArg, - >( - self, - new_value: Arg0, - ) -> TxTypedCall { - self.wrapped_tx - .payment(NotPayable) - .raw_call("setMinValidSigners") - .argument(&new_value) - .original_result() - } - - pub fn add_signers< - Arg0: ProxyArg>>, - >( - self, - signers: Arg0, - ) -> TxTypedCall { - self.wrapped_tx - .payment(NotPayable) - .raw_call("addSigners") - .argument(&signers) - .original_result() - } - - pub fn remove_signers< - Arg0: ProxyArg>>, - >( - self, - signers: Arg0, - ) -> TxTypedCall { - self.wrapped_tx - .payment(NotPayable) - .raw_call("removeSigners") - .argument(&signers) - .original_result() - } - pub fn execute_operations< Arg0: ProxyArg>, Arg1: ProxyArg>, diff --git a/common/proxies/src/esdt_safe_proxy.rs b/common/proxies/src/esdt_safe_proxy.rs index 81e2e31d..a6d93e5e 100644 --- a/common/proxies/src/esdt_safe_proxy.rs +++ b/common/proxies/src/esdt_safe_proxy.rs @@ -152,45 +152,6 @@ where .original_result() } - pub fn set_min_valid_signers< - Arg0: ProxyArg, - >( - self, - new_value: Arg0, - ) -> TxTypedCall { - self.wrapped_tx - .payment(NotPayable) - .raw_call("setMinValidSigners") - .argument(&new_value) - .original_result() - } - - pub fn add_signers< - Arg0: ProxyArg>>, - >( - self, - signers: Arg0, - ) -> TxTypedCall { - self.wrapped_tx - .payment(NotPayable) - .raw_call("addSigners") - .argument(&signers) - .original_result() - } - - pub fn remove_signers< - Arg0: ProxyArg>>, - >( - self, - signers: Arg0, - ) -> TxTypedCall { - self.wrapped_tx - .payment(NotPayable) - .raw_call("removeSigners") - .argument(&signers) - .original_result() - } - pub fn register_token< Arg0: ProxyArg>, Arg1: ProxyArg, diff --git a/common/proxies/src/header_verifier_proxy.rs b/common/proxies/src/header_verifier_proxy.rs index f850ab26..9de9ca01 100644 --- a/common/proxies/src/header_verifier_proxy.rs +++ b/common/proxies/src/header_verifier_proxy.rs @@ -86,7 +86,7 @@ where Gas: TxGas, { pub fn register_bridge_operations< - Arg0: ProxyArg>, + Arg0: ProxyArg>, Arg1: ProxyArg>, Arg2: ProxyArg>>, >( @@ -148,43 +148,4 @@ where .argument(&operation_hash) .original_result() } - - pub fn set_min_valid_signers< - Arg0: ProxyArg, - >( - self, - new_value: Arg0, - ) -> TxTypedCall { - self.wrapped_tx - .payment(NotPayable) - .raw_call("setMinValidSigners") - .argument(&new_value) - .original_result() - } - - pub fn add_signers< - Arg0: ProxyArg>>, - >( - self, - signers: Arg0, - ) -> TxTypedCall { - self.wrapped_tx - .payment(NotPayable) - .raw_call("addSigners") - .argument(&signers) - .original_result() - } - - pub fn remove_signers< - Arg0: ProxyArg>>, - >( - self, - signers: Arg0, - ) -> TxTypedCall { - self.wrapped_tx - .payment(NotPayable) - .raw_call("removeSigners") - .argument(&signers) - .original_result() - } } diff --git a/common/token-whitelist/Cargo.toml b/common/token-whitelist/Cargo.toml index 6709c61a..be1fcf38 100644 --- a/common/token-whitelist/Cargo.toml +++ b/common/token-whitelist/Cargo.toml @@ -4,9 +4,6 @@ version = "0.0.0" authors = ["dorin-iancu "] edition = "2018" -[dependencies.bls-signature] -path = "../bls-signature" - [dependencies.setup-phase] path = "../setup-phase" diff --git a/common/token-whitelist/src/lib.rs b/common/token-whitelist/src/lib.rs index 56524102..53e5cdd0 100644 --- a/common/token-whitelist/src/lib.rs +++ b/common/token-whitelist/src/lib.rs @@ -3,9 +3,7 @@ multiversx_sc::imports!(); #[multiversx_sc::module] -pub trait TokenWhitelistModule: - bls_signature::BlsSignatureModule + setup_phase::SetupPhaseModule + utils::UtilsModule -{ +pub trait TokenWhitelistModule: setup_phase::SetupPhaseModule + utils::UtilsModule { /// Tokens in the whitelist can be transferred without fees #[endpoint(addTokensToWhitelist)] fn add_tokens_to_whitelist( diff --git a/common/utils/Cargo.toml b/common/utils/Cargo.toml index 3bed23a7..29cb1dae 100644 --- a/common/utils/Cargo.toml +++ b/common/utils/Cargo.toml @@ -7,9 +7,6 @@ edition = "2021" [lib] path = "src/lib.rs" -[dependencies.bls-signature] -path = "../bls-signature" - [dependencies.multiversx-sc] version = "=0.54.3" features = ["esdt-token-payment-legacy-decode"] diff --git a/enshrine-esdt-safe/Cargo.toml b/enshrine-esdt-safe/Cargo.toml index 0d4b1a04..ea240a30 100644 --- a/enshrine-esdt-safe/Cargo.toml +++ b/enshrine-esdt-safe/Cargo.toml @@ -17,9 +17,6 @@ path = "../common/tx-batch-module" [dependencies.max-bridged-amount-module] path = "../common/max-bridged-amount-module" -[dependencies.bls-signature] -path = "../common/bls-signature" - [dependencies.setup-phase] path = "../common/setup-phase" diff --git a/enshrine-esdt-safe/interactor/Cargo.toml b/enshrine-esdt-safe/interactor/Cargo.toml index be20ccaf..57946c81 100644 --- a/enshrine-esdt-safe/interactor/Cargo.toml +++ b/enshrine-esdt-safe/interactor/Cargo.toml @@ -21,9 +21,6 @@ path = "../../common/tx-batch-module" [dependencies.max-bridged-amount-module] path = "../../common/max-bridged-amount-module" -[dependencies.bls-signature] -path = "../../common/bls-signature" - [dependencies.setup-phase] path = "../../common/setup-phase" diff --git a/enshrine-esdt-safe/interactor/src/proxy.rs b/enshrine-esdt-safe/interactor/src/proxy.rs index 39250e47..c778e062 100644 --- a/enshrine-esdt-safe/interactor/src/proxy.rs +++ b/enshrine-esdt-safe/interactor/src/proxy.rs @@ -161,45 +161,6 @@ where .original_result() } - pub fn set_min_valid_signers< - Arg0: ProxyArg, - >( - self, - new_value: Arg0, - ) -> TxTypedCall { - self.wrapped_tx - .payment(NotPayable) - .raw_call("setMinValidSigners") - .argument(&new_value) - .original_result() - } - - pub fn add_signers< - Arg0: ProxyArg>>, - >( - self, - signers: Arg0, - ) -> TxTypedCall { - self.wrapped_tx - .payment(NotPayable) - .raw_call("addSigners") - .argument(&signers) - .original_result() - } - - pub fn remove_signers< - Arg0: ProxyArg>>, - >( - self, - signers: Arg0, - ) -> TxTypedCall { - self.wrapped_tx - .payment(NotPayable) - .raw_call("removeSigners") - .argument(&signers) - .original_result() - } - pub fn execute_operations< Arg0: ProxyArg>, Arg1: ProxyArg>, diff --git a/enshrine-esdt-safe/src/from_sovereign/transfer_tokens.rs b/enshrine-esdt-safe/src/from_sovereign/transfer_tokens.rs index bad67293..cd65defb 100644 --- a/enshrine-esdt-safe/src/from_sovereign/transfer_tokens.rs +++ b/enshrine-esdt-safe/src/from_sovereign/transfer_tokens.rs @@ -24,8 +24,7 @@ impl Default for SplitResult { #[multiversx_sc::module] pub trait TransferTokensModule: - bls_signature::BlsSignatureModule - + super::events::EventsModule + super::events::EventsModule + tx_batch_module::TxBatchModule + max_bridged_amount_module::MaxBridgedAmountModule + multiversx_sc_modules::pause::PauseModule diff --git a/enshrine-esdt-safe/src/lib.rs b/enshrine-esdt-safe/src/lib.rs index 3d2526d5..750cce35 100644 --- a/enshrine-esdt-safe/src/lib.rs +++ b/enshrine-esdt-safe/src/lib.rs @@ -11,7 +11,6 @@ pub mod to_sovereign; pub trait EnshrineEsdtSafe: to_sovereign::create_tx::CreateTxModule + to_sovereign::events::EventsModule - + bls_signature::BlsSignatureModule + from_sovereign::events::EventsModule + from_sovereign::transfer_tokens::TransferTokensModule + tx_batch_module::TxBatchModule diff --git a/enshrine-esdt-safe/src/to_sovereign/create_tx.rs b/enshrine-esdt-safe/src/to_sovereign/create_tx.rs index 1983c247..da03c345 100644 --- a/enshrine-esdt-safe/src/to_sovereign/create_tx.rs +++ b/enshrine-esdt-safe/src/to_sovereign/create_tx.rs @@ -14,7 +14,6 @@ pub trait CreateTxModule: + tx_batch_module::TxBatchModule + max_bridged_amount_module::MaxBridgedAmountModule + token_whitelist::TokenWhitelistModule - + bls_signature::BlsSignatureModule + setup_phase::SetupPhaseModule + utils::UtilsModule + multiversx_sc_modules::pause::PauseModule diff --git a/enshrine-esdt-safe/wasm-enshrine-esdt-safe-full/Cargo.lock b/enshrine-esdt-safe/wasm-enshrine-esdt-safe-full/Cargo.lock index 959d9567..8d40c918 100644 --- a/enshrine-esdt-safe/wasm-enshrine-esdt-safe-full/Cargo.lock +++ b/enshrine-esdt-safe/wasm-enshrine-esdt-safe-full/Cargo.lock @@ -20,14 +20,6 @@ version = "2.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de" -[[package]] -name = "bls-signature" -version = "0.0.0" -dependencies = [ - "multiversx-sc", - "transaction", -] - [[package]] name = "chain-config" version = "0.0.0" @@ -59,7 +51,6 @@ checksum = "c34f04666d835ff5d62e058c3995147c06f42fe86ff053337632bca83e42702d" name = "enshrine-esdt-safe" version = "0.0.0" dependencies = [ - "bls-signature", "fee-market", "header-verifier", "max-bridged-amount-module", @@ -86,7 +77,6 @@ dependencies = [ name = "fee-market" version = "0.0.0" dependencies = [ - "bls-signature", "multiversx-sc", "proxies", "transaction", @@ -97,7 +87,6 @@ dependencies = [ name = "header-verifier" version = "0.0.0" dependencies = [ - "bls-signature", "multiversx-sc", "proxies", "transaction", @@ -294,7 +283,6 @@ dependencies = [ name = "token-whitelist" version = "0.0.0" dependencies = [ - "bls-signature", "multiversx-sc", "setup-phase", "utils", @@ -331,6 +319,5 @@ checksum = "151ac09978d3c2862c4e39b557f4eceee2cc72150bc4cb4f16abf061b6e381fb" name = "utils" version = "0.0.0" dependencies = [ - "bls-signature", "multiversx-sc", ] diff --git a/enshrine-esdt-safe/wasm-enshrine-esdt-safe-full/src/lib.rs b/enshrine-esdt-safe/wasm-enshrine-esdt-safe-full/src/lib.rs index b31426e6..599d8a96 100644 --- a/enshrine-esdt-safe/wasm-enshrine-esdt-safe-full/src/lib.rs +++ b/enshrine-esdt-safe/wasm-enshrine-esdt-safe-full/src/lib.rs @@ -6,9 +6,9 @@ // Init: 1 // Upgrade: 1 -// Endpoints: 30 +// Endpoints: 27 // Async Callback: 1 -// Total number of exported functions: 33 +// Total number of exported functions: 30 #![no_std] @@ -25,9 +25,6 @@ multiversx_sc_wasm_adapter::endpoints! { setMaxTxGasLimit => set_max_user_tx_gas_limit setBannedEndpoint => set_banned_endpoint deposit => deposit - setMinValidSigners => set_min_valid_signers - addSigners => add_signers - removeSigners => remove_signers executeBridgeOps => execute_operations registerNewTokenID => register_new_token_id setMaxTxBatchSize => set_max_tx_batch_size diff --git a/enshrine-esdt-safe/wasm-enshrine-esdt-safe-view/Cargo.lock b/enshrine-esdt-safe/wasm-enshrine-esdt-safe-view/Cargo.lock index 0f44580a..9ccdf214 100644 --- a/enshrine-esdt-safe/wasm-enshrine-esdt-safe-view/Cargo.lock +++ b/enshrine-esdt-safe/wasm-enshrine-esdt-safe-view/Cargo.lock @@ -20,14 +20,6 @@ version = "2.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de" -[[package]] -name = "bls-signature" -version = "0.0.0" -dependencies = [ - "multiversx-sc", - "transaction", -] - [[package]] name = "chain-config" version = "0.0.0" @@ -59,7 +51,6 @@ checksum = "c34f04666d835ff5d62e058c3995147c06f42fe86ff053337632bca83e42702d" name = "enshrine-esdt-safe" version = "0.0.0" dependencies = [ - "bls-signature", "fee-market", "header-verifier", "max-bridged-amount-module", @@ -86,7 +77,6 @@ dependencies = [ name = "fee-market" version = "0.0.0" dependencies = [ - "bls-signature", "multiversx-sc", "proxies", "transaction", @@ -97,7 +87,6 @@ dependencies = [ name = "header-verifier" version = "0.0.0" dependencies = [ - "bls-signature", "multiversx-sc", "proxies", "transaction", @@ -294,7 +283,6 @@ dependencies = [ name = "token-whitelist" version = "0.0.0" dependencies = [ - "bls-signature", "multiversx-sc", "setup-phase", "utils", @@ -331,6 +319,5 @@ checksum = "151ac09978d3c2862c4e39b557f4eceee2cc72150bc4cb4f16abf061b6e381fb" name = "utils" version = "0.0.0" dependencies = [ - "bls-signature", "multiversx-sc", ] diff --git a/enshrine-esdt-safe/wasm/Cargo.lock b/enshrine-esdt-safe/wasm/Cargo.lock index 5f5d1a0e..a2cf7257 100644 --- a/enshrine-esdt-safe/wasm/Cargo.lock +++ b/enshrine-esdt-safe/wasm/Cargo.lock @@ -20,14 +20,6 @@ version = "2.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de" -[[package]] -name = "bls-signature" -version = "0.0.0" -dependencies = [ - "multiversx-sc", - "transaction", -] - [[package]] name = "chain-config" version = "0.0.0" @@ -59,7 +51,6 @@ checksum = "c34f04666d835ff5d62e058c3995147c06f42fe86ff053337632bca83e42702d" name = "enshrine-esdt-safe" version = "0.0.0" dependencies = [ - "bls-signature", "fee-market", "header-verifier", "max-bridged-amount-module", @@ -86,7 +77,6 @@ dependencies = [ name = "fee-market" version = "0.0.0" dependencies = [ - "bls-signature", "multiversx-sc", "proxies", "transaction", @@ -97,7 +87,6 @@ dependencies = [ name = "header-verifier" version = "0.0.0" dependencies = [ - "bls-signature", "multiversx-sc", "proxies", "transaction", @@ -294,7 +283,6 @@ dependencies = [ name = "token-whitelist" version = "0.0.0" dependencies = [ - "bls-signature", "multiversx-sc", "setup-phase", "utils", @@ -331,6 +319,5 @@ checksum = "151ac09978d3c2862c4e39b557f4eceee2cc72150bc4cb4f16abf061b6e381fb" name = "utils" version = "0.0.0" dependencies = [ - "bls-signature", "multiversx-sc", ] diff --git a/enshrine-esdt-safe/wasm/src/lib.rs b/enshrine-esdt-safe/wasm/src/lib.rs index b31426e6..599d8a96 100644 --- a/enshrine-esdt-safe/wasm/src/lib.rs +++ b/enshrine-esdt-safe/wasm/src/lib.rs @@ -6,9 +6,9 @@ // Init: 1 // Upgrade: 1 -// Endpoints: 30 +// Endpoints: 27 // Async Callback: 1 -// Total number of exported functions: 33 +// Total number of exported functions: 30 #![no_std] @@ -25,9 +25,6 @@ multiversx_sc_wasm_adapter::endpoints! { setMaxTxGasLimit => set_max_user_tx_gas_limit setBannedEndpoint => set_banned_endpoint deposit => deposit - setMinValidSigners => set_min_valid_signers - addSigners => add_signers - removeSigners => remove_signers executeBridgeOps => execute_operations registerNewTokenID => register_new_token_id setMaxTxBatchSize => set_max_tx_batch_size diff --git a/esdt-safe/Cargo.toml b/esdt-safe/Cargo.toml index 9b1bf7ed..e0df7173 100644 --- a/esdt-safe/Cargo.toml +++ b/esdt-safe/Cargo.toml @@ -17,9 +17,6 @@ path = "../common/tx-batch-module" [dependencies.max-bridged-amount-module] path = "../common/max-bridged-amount-module" -[dependencies.bls-signature] -path = "../common/bls-signature" - [dependencies.setup-phase] path = "../common/setup-phase" diff --git a/esdt-safe/interactor/src/proxies/fee_market_proxy.rs b/esdt-safe/interactor/src/proxies/fee_market_proxy.rs index 774b6ec5..58527eb4 100644 --- a/esdt-safe/interactor/src/proxies/fee_market_proxy.rs +++ b/esdt-safe/interactor/src/proxies/fee_market_proxy.rs @@ -206,45 +206,6 @@ where .raw_call("getUsersWhitelist") .original_result() } - - pub fn set_min_valid_signers< - Arg0: ProxyArg, - >( - self, - new_value: Arg0, - ) -> TxTypedCall { - self.wrapped_tx - .payment(NotPayable) - .raw_call("setMinValidSigners") - .argument(&new_value) - .original_result() - } - - pub fn add_signers< - Arg0: ProxyArg>>, - >( - self, - signers: Arg0, - ) -> TxTypedCall { - self.wrapped_tx - .payment(NotPayable) - .raw_call("addSigners") - .argument(&signers) - .original_result() - } - - pub fn remove_signers< - Arg0: ProxyArg>>, - >( - self, - signers: Arg0, - ) -> TxTypedCall { - self.wrapped_tx - .payment(NotPayable) - .raw_call("removeSigners") - .argument(&signers) - .original_result() - } } #[type_abi] diff --git a/esdt-safe/interactor/src/proxy.rs b/esdt-safe/interactor/src/proxy.rs index 81e2e31d..a6d93e5e 100644 --- a/esdt-safe/interactor/src/proxy.rs +++ b/esdt-safe/interactor/src/proxy.rs @@ -152,45 +152,6 @@ where .original_result() } - pub fn set_min_valid_signers< - Arg0: ProxyArg, - >( - self, - new_value: Arg0, - ) -> TxTypedCall { - self.wrapped_tx - .payment(NotPayable) - .raw_call("setMinValidSigners") - .argument(&new_value) - .original_result() - } - - pub fn add_signers< - Arg0: ProxyArg>>, - >( - self, - signers: Arg0, - ) -> TxTypedCall { - self.wrapped_tx - .payment(NotPayable) - .raw_call("addSigners") - .argument(&signers) - .original_result() - } - - pub fn remove_signers< - Arg0: ProxyArg>>, - >( - self, - signers: Arg0, - ) -> TxTypedCall { - self.wrapped_tx - .payment(NotPayable) - .raw_call("removeSigners") - .argument(&signers) - .original_result() - } - pub fn register_token< Arg0: ProxyArg>, Arg1: ProxyArg, diff --git a/esdt-safe/src/from_sovereign/transfer_tokens.rs b/esdt-safe/src/from_sovereign/transfer_tokens.rs index 019eacbc..ca1b3bc6 100644 --- a/esdt-safe/src/from_sovereign/transfer_tokens.rs +++ b/esdt-safe/src/from_sovereign/transfer_tokens.rs @@ -11,8 +11,7 @@ const ESDT_TRANSACTION_GAS: GasLimit = 5_000_000; #[multiversx_sc::module] pub trait TransferTokensModule: - bls_signature::BlsSignatureModule - + super::events::EventsModule + super::events::EventsModule + super::token_mapping::TokenMappingModule + tx_batch_module::TxBatchModule + max_bridged_amount_module::MaxBridgedAmountModule diff --git a/esdt-safe/src/lib.rs b/esdt-safe/src/lib.rs index ba36033a..49b9ec56 100644 --- a/esdt-safe/src/lib.rs +++ b/esdt-safe/src/lib.rs @@ -14,7 +14,6 @@ const MAX_USER_TX_GAS_LIMIT: GasLimit = 60_000_000; pub trait EsdtSafe: to_sovereign::create_tx::CreateTxModule + to_sovereign::events::EventsModule - + bls_signature::BlsSignatureModule + from_sovereign::events::EventsModule + from_sovereign::token_mapping::TokenMappingModule + from_sovereign::transfer_tokens::TransferTokensModule diff --git a/esdt-safe/src/to_sovereign/create_tx.rs b/esdt-safe/src/to_sovereign/create_tx.rs index d22f3ba3..fa4a8552 100644 --- a/esdt-safe/src/to_sovereign/create_tx.rs +++ b/esdt-safe/src/to_sovereign/create_tx.rs @@ -16,7 +16,6 @@ pub trait CreateTxModule: + tx_batch_module::TxBatchModule + max_bridged_amount_module::MaxBridgedAmountModule + token_whitelist::TokenWhitelistModule - + bls_signature::BlsSignatureModule + setup_phase::SetupPhaseModule + utils::UtilsModule + multiversx_sc_modules::pause::PauseModule diff --git a/esdt-safe/wasm-esdt-safe-full/Cargo.lock b/esdt-safe/wasm-esdt-safe-full/Cargo.lock index 2c42545e..5c173bd2 100644 --- a/esdt-safe/wasm-esdt-safe-full/Cargo.lock +++ b/esdt-safe/wasm-esdt-safe-full/Cargo.lock @@ -20,14 +20,6 @@ version = "2.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de" -[[package]] -name = "bls-signature" -version = "0.0.0" -dependencies = [ - "multiversx-sc", - "transaction", -] - [[package]] name = "endian-type" version = "0.1.2" @@ -38,7 +30,6 @@ checksum = "c34f04666d835ff5d62e058c3995147c06f42fe86ff053337632bca83e42702d" name = "esdt-safe" version = "0.0.0" dependencies = [ - "bls-signature", "fee-market", "header-verifier", "max-bridged-amount-module", @@ -64,7 +55,6 @@ dependencies = [ name = "fee-market" version = "0.0.0" dependencies = [ - "bls-signature", "multiversx-sc", "proxies", "transaction", @@ -75,7 +65,6 @@ dependencies = [ name = "header-verifier" version = "0.0.0" dependencies = [ - "bls-signature", "multiversx-sc", "proxies", "transaction", @@ -262,7 +251,6 @@ dependencies = [ name = "token-whitelist" version = "0.0.0" dependencies = [ - "bls-signature", "multiversx-sc", "setup-phase", "utils", @@ -299,6 +287,5 @@ checksum = "151ac09978d3c2862c4e39b557f4eceee2cc72150bc4cb4f16abf061b6e381fb" name = "utils" version = "0.0.0" dependencies = [ - "bls-signature", "multiversx-sc", ] diff --git a/esdt-safe/wasm-esdt-safe-full/src/lib.rs b/esdt-safe/wasm-esdt-safe-full/src/lib.rs index 83bd0032..64f9d0a1 100644 --- a/esdt-safe/wasm-esdt-safe-full/src/lib.rs +++ b/esdt-safe/wasm-esdt-safe-full/src/lib.rs @@ -6,10 +6,10 @@ // Init: 1 // Upgrade: 1 -// Endpoints: 30 +// Endpoints: 27 // Async Callback (empty): 1 // Promise callbacks: 2 -// Total number of exported functions: 35 +// Total number of exported functions: 32 #![no_std] @@ -26,9 +26,6 @@ multiversx_sc_wasm_adapter::endpoints! { setMaxTxGasLimit => set_max_user_tx_gas_limit setBannedEndpoint => set_banned_endpoint deposit => deposit - setMinValidSigners => set_min_valid_signers - addSigners => add_signers - removeSigners => remove_signers registerToken => register_token executeBridgeOps => execute_operations setMaxTxBatchSize => set_max_tx_batch_size diff --git a/esdt-safe/wasm-esdt-safe-view/Cargo.lock b/esdt-safe/wasm-esdt-safe-view/Cargo.lock index 8d8ddf92..de3f0909 100644 --- a/esdt-safe/wasm-esdt-safe-view/Cargo.lock +++ b/esdt-safe/wasm-esdt-safe-view/Cargo.lock @@ -20,14 +20,6 @@ version = "2.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de" -[[package]] -name = "bls-signature" -version = "0.0.0" -dependencies = [ - "multiversx-sc", - "transaction", -] - [[package]] name = "endian-type" version = "0.1.2" @@ -38,7 +30,6 @@ checksum = "c34f04666d835ff5d62e058c3995147c06f42fe86ff053337632bca83e42702d" name = "esdt-safe" version = "0.0.0" dependencies = [ - "bls-signature", "fee-market", "header-verifier", "max-bridged-amount-module", @@ -64,7 +55,6 @@ dependencies = [ name = "fee-market" version = "0.0.0" dependencies = [ - "bls-signature", "multiversx-sc", "proxies", "transaction", @@ -75,7 +65,6 @@ dependencies = [ name = "header-verifier" version = "0.0.0" dependencies = [ - "bls-signature", "multiversx-sc", "proxies", "transaction", @@ -262,7 +251,6 @@ dependencies = [ name = "token-whitelist" version = "0.0.0" dependencies = [ - "bls-signature", "multiversx-sc", "setup-phase", "utils", @@ -299,6 +287,5 @@ checksum = "151ac09978d3c2862c4e39b557f4eceee2cc72150bc4cb4f16abf061b6e381fb" name = "utils" version = "0.0.0" dependencies = [ - "bls-signature", "multiversx-sc", ] diff --git a/esdt-safe/wasm/Cargo.lock b/esdt-safe/wasm/Cargo.lock index 5da8a30e..a79cc7b7 100644 --- a/esdt-safe/wasm/Cargo.lock +++ b/esdt-safe/wasm/Cargo.lock @@ -20,14 +20,6 @@ version = "2.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de" -[[package]] -name = "bls-signature" -version = "0.0.0" -dependencies = [ - "multiversx-sc", - "transaction", -] - [[package]] name = "endian-type" version = "0.1.2" @@ -38,7 +30,6 @@ checksum = "c34f04666d835ff5d62e058c3995147c06f42fe86ff053337632bca83e42702d" name = "esdt-safe" version = "0.0.0" dependencies = [ - "bls-signature", "fee-market", "header-verifier", "max-bridged-amount-module", @@ -64,7 +55,6 @@ dependencies = [ name = "fee-market" version = "0.0.0" dependencies = [ - "bls-signature", "multiversx-sc", "proxies", "transaction", @@ -75,7 +65,6 @@ dependencies = [ name = "header-verifier" version = "0.0.0" dependencies = [ - "bls-signature", "multiversx-sc", "proxies", "transaction", @@ -262,7 +251,6 @@ dependencies = [ name = "token-whitelist" version = "0.0.0" dependencies = [ - "bls-signature", "multiversx-sc", "setup-phase", "utils", @@ -299,6 +287,5 @@ checksum = "151ac09978d3c2862c4e39b557f4eceee2cc72150bc4cb4f16abf061b6e381fb" name = "utils" version = "0.0.0" dependencies = [ - "bls-signature", "multiversx-sc", ] diff --git a/esdt-safe/wasm/src/lib.rs b/esdt-safe/wasm/src/lib.rs index 83bd0032..64f9d0a1 100644 --- a/esdt-safe/wasm/src/lib.rs +++ b/esdt-safe/wasm/src/lib.rs @@ -6,10 +6,10 @@ // Init: 1 // Upgrade: 1 -// Endpoints: 30 +// Endpoints: 27 // Async Callback (empty): 1 // Promise callbacks: 2 -// Total number of exported functions: 35 +// Total number of exported functions: 32 #![no_std] @@ -26,9 +26,6 @@ multiversx_sc_wasm_adapter::endpoints! { setMaxTxGasLimit => set_max_user_tx_gas_limit setBannedEndpoint => set_banned_endpoint deposit => deposit - setMinValidSigners => set_min_valid_signers - addSigners => add_signers - removeSigners => remove_signers registerToken => register_token executeBridgeOps => execute_operations setMaxTxBatchSize => set_max_tx_batch_size diff --git a/fee-market/Cargo.toml b/fee-market/Cargo.toml index 218e9b12..408e96db 100644 --- a/fee-market/Cargo.toml +++ b/fee-market/Cargo.toml @@ -14,9 +14,6 @@ path = "../common/utils" [dependencies.transaction] path = "../common/transaction" -[dependencies.bls-signature] -path = "../common/bls-signature" - [dependencies.proxies] path = "../common/proxies" diff --git a/fee-market/src/fee_market_proxy.rs b/fee-market/src/fee_market_proxy.rs index 774b6ec5..58527eb4 100644 --- a/fee-market/src/fee_market_proxy.rs +++ b/fee-market/src/fee_market_proxy.rs @@ -206,45 +206,6 @@ where .raw_call("getUsersWhitelist") .original_result() } - - pub fn set_min_valid_signers< - Arg0: ProxyArg, - >( - self, - new_value: Arg0, - ) -> TxTypedCall { - self.wrapped_tx - .payment(NotPayable) - .raw_call("setMinValidSigners") - .argument(&new_value) - .original_result() - } - - pub fn add_signers< - Arg0: ProxyArg>>, - >( - self, - signers: Arg0, - ) -> TxTypedCall { - self.wrapped_tx - .payment(NotPayable) - .raw_call("addSigners") - .argument(&signers) - .original_result() - } - - pub fn remove_signers< - Arg0: ProxyArg>>, - >( - self, - signers: Arg0, - ) -> TxTypedCall { - self.wrapped_tx - .payment(NotPayable) - .raw_call("removeSigners") - .argument(&signers) - .original_result() - } } #[type_abi] diff --git a/fee-market/src/fee_type.rs b/fee-market/src/fee_type.rs index b3a7b1ca..7e7c0b34 100644 --- a/fee-market/src/fee_type.rs +++ b/fee-market/src/fee_type.rs @@ -25,7 +25,7 @@ pub struct FeeStruct { } #[multiversx_sc::module] -pub trait FeeTypeModule: utils::UtilsModule + bls_signature::BlsSignatureModule { +pub trait FeeTypeModule: utils::UtilsModule { #[only_owner] #[endpoint(setFee)] fn set_fee(&self, fee_struct: FeeStruct) { diff --git a/fee-market/src/lib.rs b/fee-market/src/lib.rs index 0929585f..4cca4631 100644 --- a/fee-market/src/lib.rs +++ b/fee-market/src/lib.rs @@ -16,7 +16,6 @@ pub trait FeeMarket: + subtract_fee::SubtractFeeModule + price_aggregator::PriceAggregatorModule + utils::UtilsModule - + bls_signature::BlsSignatureModule { #[init] fn init(&self, esdt_safe_address: ManagedAddress, fee: Option>) { diff --git a/fee-market/src/subtract_fee.rs b/fee-market/src/subtract_fee.rs index db5e440f..32bdf971 100644 --- a/fee-market/src/subtract_fee.rs +++ b/fee-market/src/subtract_fee.rs @@ -34,7 +34,6 @@ pub trait SubtractFeeModule: + crate::fee_common::CommonFeeModule + crate::price_aggregator::PriceAggregatorModule + utils::UtilsModule - + bls_signature::BlsSignatureModule { #[only_owner] #[endpoint(addUsersToWhitelist)] diff --git a/fee-market/wasm-fee-market-view/Cargo.lock b/fee-market/wasm-fee-market-view/Cargo.lock index 1235cd07..2dc01aa9 100644 --- a/fee-market/wasm-fee-market-view/Cargo.lock +++ b/fee-market/wasm-fee-market-view/Cargo.lock @@ -20,14 +20,6 @@ version = "2.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de" -[[package]] -name = "bls-signature" -version = "0.0.0" -dependencies = [ - "multiversx-sc", - "transaction", -] - [[package]] name = "endian-type" version = "0.1.2" @@ -38,7 +30,6 @@ checksum = "c34f04666d835ff5d62e058c3995147c06f42fe86ff053337632bca83e42702d" name = "fee-market" version = "0.0.0" dependencies = [ - "bls-signature", "multiversx-sc", "proxies", "transaction", @@ -238,6 +229,5 @@ checksum = "151ac09978d3c2862c4e39b557f4eceee2cc72150bc4cb4f16abf061b6e381fb" name = "utils" version = "0.0.0" dependencies = [ - "bls-signature", "multiversx-sc", ] diff --git a/fee-market/wasm-fee-market/Cargo.lock b/fee-market/wasm-fee-market/Cargo.lock index 9166eb3d..fe6409ef 100644 --- a/fee-market/wasm-fee-market/Cargo.lock +++ b/fee-market/wasm-fee-market/Cargo.lock @@ -20,14 +20,6 @@ version = "2.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de" -[[package]] -name = "bls-signature" -version = "0.0.0" -dependencies = [ - "multiversx-sc", - "transaction", -] - [[package]] name = "endian-type" version = "0.1.2" @@ -38,7 +30,6 @@ checksum = "c34f04666d835ff5d62e058c3995147c06f42fe86ff053337632bca83e42702d" name = "fee-market" version = "0.0.0" dependencies = [ - "bls-signature", "multiversx-sc", "proxies", "transaction", @@ -238,6 +229,5 @@ checksum = "151ac09978d3c2862c4e39b557f4eceee2cc72150bc4cb4f16abf061b6e381fb" name = "utils" version = "0.0.0" dependencies = [ - "bls-signature", "multiversx-sc", ] diff --git a/fee-market/wasm-fee-market/src/lib.rs b/fee-market/wasm-fee-market/src/lib.rs index 0c3e5426..afd57dc7 100644 --- a/fee-market/wasm-fee-market/src/lib.rs +++ b/fee-market/wasm-fee-market/src/lib.rs @@ -6,9 +6,9 @@ // Init: 1 // Upgrade: 1 -// Endpoints: 12 +// Endpoints: 9 // Async Callback (empty): 1 -// Total number of exported functions: 15 +// Total number of exported functions: 12 #![no_std] @@ -29,9 +29,6 @@ multiversx_sc_wasm_adapter::endpoints! { distributeFees => distribute_fees subtractFee => subtract_fee getUsersWhitelist => users_whitelist - setMinValidSigners => set_min_valid_signers - addSigners => add_signers - removeSigners => remove_signers ) } diff --git a/fee-market/wasm/Cargo.lock b/fee-market/wasm/Cargo.lock index 9166eb3d..fe6409ef 100644 --- a/fee-market/wasm/Cargo.lock +++ b/fee-market/wasm/Cargo.lock @@ -20,14 +20,6 @@ version = "2.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de" -[[package]] -name = "bls-signature" -version = "0.0.0" -dependencies = [ - "multiversx-sc", - "transaction", -] - [[package]] name = "endian-type" version = "0.1.2" @@ -38,7 +30,6 @@ checksum = "c34f04666d835ff5d62e058c3995147c06f42fe86ff053337632bca83e42702d" name = "fee-market" version = "0.0.0" dependencies = [ - "bls-signature", "multiversx-sc", "proxies", "transaction", @@ -238,6 +229,5 @@ checksum = "151ac09978d3c2862c4e39b557f4eceee2cc72150bc4cb4f16abf061b6e381fb" name = "utils" version = "0.0.0" dependencies = [ - "bls-signature", "multiversx-sc", ] diff --git a/fee-market/wasm/src/lib.rs b/fee-market/wasm/src/lib.rs index 0c3e5426..afd57dc7 100644 --- a/fee-market/wasm/src/lib.rs +++ b/fee-market/wasm/src/lib.rs @@ -6,9 +6,9 @@ // Init: 1 // Upgrade: 1 -// Endpoints: 12 +// Endpoints: 9 // Async Callback (empty): 1 -// Total number of exported functions: 15 +// Total number of exported functions: 12 #![no_std] @@ -29,9 +29,6 @@ multiversx_sc_wasm_adapter::endpoints! { distributeFees => distribute_fees subtractFee => subtract_fee getUsersWhitelist => users_whitelist - setMinValidSigners => set_min_valid_signers - addSigners => add_signers - removeSigners => remove_signers ) } diff --git a/header-verifier/Cargo.toml b/header-verifier/Cargo.toml index e5bc52a1..1dc49c47 100644 --- a/header-verifier/Cargo.toml +++ b/header-verifier/Cargo.toml @@ -11,9 +11,6 @@ path = "src/lib.rs" [dependencies.multiversx-sc] version = "=0.54.3" -[dependencies.bls-signature] -path = "../common/bls-signature" - [dependencies.transaction] path = "../common/transaction" diff --git a/header-verifier/src/lib.rs b/header-verifier/src/lib.rs index 7d033a76..d01736d5 100644 --- a/header-verifier/src/lib.rs +++ b/header-verifier/src/lib.rs @@ -1,6 +1,5 @@ #![no_std] -use bls_signature::BlsSignature; use multiversx_sc::codec; use multiversx_sc::proxy_imports::{TopDecode, TopEncode}; @@ -13,7 +12,7 @@ pub enum OperationHashStatus { } #[multiversx_sc::contract] -pub trait Headerverifier: bls_signature::BlsSignatureModule { +pub trait Headerverifier { #[init] fn init(&self, bls_pub_keys: MultiValueEncoded) { for pub_key in bls_pub_keys { @@ -27,7 +26,7 @@ pub trait Headerverifier: bls_signature::BlsSignatureModule { #[endpoint(registerBridgeOps)] fn register_bridge_operations( &self, - signature: BlsSignature, + signature: ManagedBuffer, bridge_operations_hash: ManagedBuffer, operations_hashes: MultiValueEncoded, ) { @@ -128,7 +127,7 @@ pub trait Headerverifier: bls_signature::BlsSignatureModule { // TODO fn verify_bls( &self, - _signature: &BlsSignature, + _signature: &ManagedBuffer, _bridge_operations_hash: &ManagedBuffer, ) -> bool { true diff --git a/header-verifier/wasm-header-verifier-full/Cargo.lock b/header-verifier/wasm-header-verifier-full/Cargo.lock index 18ace981..9d448ad4 100644 --- a/header-verifier/wasm-header-verifier-full/Cargo.lock +++ b/header-verifier/wasm-header-verifier-full/Cargo.lock @@ -20,14 +20,6 @@ version = "2.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de" -[[package]] -name = "bls-signature" -version = "0.0.0" -dependencies = [ - "multiversx-sc", - "transaction", -] - [[package]] name = "endian-type" version = "0.1.2" @@ -38,7 +30,6 @@ checksum = "c34f04666d835ff5d62e058c3995147c06f42fe86ff053337632bca83e42702d" name = "header-verifier" version = "0.0.0" dependencies = [ - "bls-signature", "multiversx-sc", "proxies", "transaction", diff --git a/header-verifier/wasm-header-verifier-full/src/lib.rs b/header-verifier/wasm-header-verifier-full/src/lib.rs index 627b95c0..67d2506f 100644 --- a/header-verifier/wasm-header-verifier-full/src/lib.rs +++ b/header-verifier/wasm-header-verifier-full/src/lib.rs @@ -6,9 +6,9 @@ // Init: 1 // Upgrade: 1 -// Endpoints: 7 +// Endpoints: 4 // Async Callback (empty): 1 -// Total number of exported functions: 10 +// Total number of exported functions: 7 #![no_std] @@ -24,9 +24,6 @@ multiversx_sc_wasm_adapter::endpoints! { setEsdtSafeAddress => set_esdt_safe_address removeExecutedHash => remove_executed_hash lockOperationHash => lock_operation_hash - setMinValidSigners => set_min_valid_signers - addSigners => add_signers - removeSigners => remove_signers ) } diff --git a/header-verifier/wasm-multisig-view/Cargo.lock b/header-verifier/wasm-multisig-view/Cargo.lock index 2f2895a7..23edbaec 100644 --- a/header-verifier/wasm-multisig-view/Cargo.lock +++ b/header-verifier/wasm-multisig-view/Cargo.lock @@ -20,14 +20,6 @@ version = "2.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de" -[[package]] -name = "bls-signature" -version = "0.0.0" -dependencies = [ - "multiversx-sc", - "transaction", -] - [[package]] name = "endian-type" version = "0.1.2" @@ -38,7 +30,6 @@ checksum = "c34f04666d835ff5d62e058c3995147c06f42fe86ff053337632bca83e42702d" name = "header-verifier" version = "0.0.0" dependencies = [ - "bls-signature", "multiversx-sc", "proxies", "transaction", diff --git a/header-verifier/wasm/Cargo.lock b/header-verifier/wasm/Cargo.lock index c18d62da..4f2ef4ec 100644 --- a/header-verifier/wasm/Cargo.lock +++ b/header-verifier/wasm/Cargo.lock @@ -20,14 +20,6 @@ version = "2.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de" -[[package]] -name = "bls-signature" -version = "0.0.0" -dependencies = [ - "multiversx-sc", - "transaction", -] - [[package]] name = "endian-type" version = "0.1.2" @@ -38,7 +30,6 @@ checksum = "c34f04666d835ff5d62e058c3995147c06f42fe86ff053337632bca83e42702d" name = "header-verifier" version = "0.0.0" dependencies = [ - "bls-signature", "multiversx-sc", "proxies", "transaction", diff --git a/header-verifier/wasm/src/lib.rs b/header-verifier/wasm/src/lib.rs index 627b95c0..67d2506f 100644 --- a/header-verifier/wasm/src/lib.rs +++ b/header-verifier/wasm/src/lib.rs @@ -6,9 +6,9 @@ // Init: 1 // Upgrade: 1 -// Endpoints: 7 +// Endpoints: 4 // Async Callback (empty): 1 -// Total number of exported functions: 10 +// Total number of exported functions: 7 #![no_std] @@ -24,9 +24,6 @@ multiversx_sc_wasm_adapter::endpoints! { setEsdtSafeAddress => set_esdt_safe_address removeExecutedHash => remove_executed_hash lockOperationHash => lock_operation_hash - setMinValidSigners => set_min_valid_signers - addSigners => add_signers - removeSigners => remove_signers ) } diff --git a/token-handler/wasm-token-handler-full/Cargo.lock b/token-handler/wasm-token-handler-full/Cargo.lock index a24491b4..77e44baa 100644 --- a/token-handler/wasm-token-handler-full/Cargo.lock +++ b/token-handler/wasm-token-handler-full/Cargo.lock @@ -20,14 +20,6 @@ version = "2.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de" -[[package]] -name = "bls-signature" -version = "0.0.0" -dependencies = [ - "multiversx-sc", - "transaction", -] - [[package]] name = "chain-config" version = "0.0.0" @@ -267,6 +259,5 @@ checksum = "151ac09978d3c2862c4e39b557f4eceee2cc72150bc4cb4f16abf061b6e381fb" name = "utils" version = "0.0.0" dependencies = [ - "bls-signature", "multiversx-sc", ] diff --git a/token-handler/wasm-token-handler-view/Cargo.lock b/token-handler/wasm-token-handler-view/Cargo.lock index 94b2756b..d7fe0e31 100644 --- a/token-handler/wasm-token-handler-view/Cargo.lock +++ b/token-handler/wasm-token-handler-view/Cargo.lock @@ -20,14 +20,6 @@ version = "2.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de" -[[package]] -name = "bls-signature" -version = "0.0.0" -dependencies = [ - "multiversx-sc", - "transaction", -] - [[package]] name = "chain-config" version = "0.0.0" @@ -267,6 +259,5 @@ checksum = "151ac09978d3c2862c4e39b557f4eceee2cc72150bc4cb4f16abf061b6e381fb" name = "utils" version = "0.0.0" dependencies = [ - "bls-signature", "multiversx-sc", ] diff --git a/token-handler/wasm/Cargo.lock b/token-handler/wasm/Cargo.lock index 01780169..866d5c34 100644 --- a/token-handler/wasm/Cargo.lock +++ b/token-handler/wasm/Cargo.lock @@ -20,14 +20,6 @@ version = "2.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de" -[[package]] -name = "bls-signature" -version = "0.0.0" -dependencies = [ - "multiversx-sc", - "transaction", -] - [[package]] name = "chain-config" version = "0.0.0" @@ -267,6 +259,5 @@ checksum = "151ac09978d3c2862c4e39b557f4eceee2cc72150bc4cb4f16abf061b6e381fb" name = "utils" version = "0.0.0" dependencies = [ - "bls-signature", "multiversx-sc", ]