From 17b7d918487653c9c6afec6b815f4f1f1c416d09 Mon Sep 17 00:00:00 2001 From: Andrei Baltariu Date: Thu, 26 Dec 2024 11:03:53 +0200 Subject: [PATCH 1/5] Added file for aliases Signed-off-by: Andrei Baltariu --- common/transaction/src/aliases.rs | 30 +++++++++++++++++++++++++++++ common/transaction/src/lib.rs | 32 ++++++------------------------- 2 files changed, 36 insertions(+), 26 deletions(-) create mode 100644 common/transaction/src/aliases.rs diff --git a/common/transaction/src/aliases.rs b/common/transaction/src/aliases.rs new file mode 100644 index 00000000..ca0ddbaf --- /dev/null +++ b/common/transaction/src/aliases.rs @@ -0,0 +1,30 @@ +use crate::TransferData; + +multiversx_sc::imports!(); +multiversx_sc::derive_imports!(); + +pub type BatchId = u64; +pub type TxId = u64; +pub type GasLimit = u64; +pub type TxNonce = u64; + +pub type BlockNonce = u64; +pub type SenderAddress = ManagedAddress; +pub type ReceiverAddress = ManagedAddress; +pub type TxAsMultiValue = MultiValue7< + BlockNonce, + TxNonce, + SenderAddress, + ReceiverAddress, + ManagedVec>, + ManagedVec>, + Option>, +>; +pub type PaymentsVec = ManagedVec>; +pub type EventPaymentTuple = MultiValue3, u64, EsdtTokenData>; +pub type TxBatchSplitInFields = MultiValue2>>; +pub type ExtractedFeeResult = + MultiValue2>, ManagedVec>>; +pub type OptionalValueTransferDataTuple = + OptionalValue, ManagedVec>>>; +pub type StakeMultiArg = MultiValue2, BigUint>; diff --git a/common/transaction/src/lib.rs b/common/transaction/src/lib.rs index b17fca1e..9f5a2311 100644 --- a/common/transaction/src/lib.rs +++ b/common/transaction/src/lib.rs @@ -1,39 +1,19 @@ #![no_std] +use aliases::{ + BlockNonce, EventPaymentTuple, GasLimit, OptionalValueTransferDataTuple, TxAsMultiValue, TxId, + TxNonce, +}; + multiversx_sc::imports!(); multiversx_sc::derive_imports!(); +pub mod aliases; pub mod transaction_status; // revert protection pub const MIN_BLOCKS_FOR_FINALITY: u64 = 10; -pub type BatchId = u64; -pub type TxId = u64; -pub type GasLimit = u64; -pub type TxNonce = u64; - -pub type BlockNonce = u64; -pub type SenderAddress = ManagedAddress; -pub type ReceiverAddress = ManagedAddress; -pub type TxAsMultiValue = MultiValue7< - BlockNonce, - TxNonce, - SenderAddress, - ReceiverAddress, - ManagedVec>, - ManagedVec>, - Option>, ->; -pub type PaymentsVec = ManagedVec>; -pub type EventPaymentTuple = MultiValue3, u64, EsdtTokenData>; -pub type TxBatchSplitInFields = MultiValue2>>; -pub type ExtractedFeeResult = - MultiValue2>, ManagedVec>>; -pub type OptionalValueTransferDataTuple = - OptionalValue, ManagedVec>>>; -pub type StakeMultiArg = MultiValue2, BigUint>; - #[type_abi] #[derive(TopEncode, TopDecode, NestedEncode, NestedDecode, ManagedVecItem, Clone)] pub struct Operation { From ef292c9768cea1372ec14125b1ef0a1abca58852 Mon Sep 17 00:00:00 2001 From: Andrei Baltariu Date: Thu, 26 Dec 2024 11:21:51 +0200 Subject: [PATCH 2/5] Removed unused aliases Signed-off-by: Andrei Baltariu --- common/transaction/src/aliases.rs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/common/transaction/src/aliases.rs b/common/transaction/src/aliases.rs index ca0ddbaf..fd860375 100644 --- a/common/transaction/src/aliases.rs +++ b/common/transaction/src/aliases.rs @@ -11,18 +11,7 @@ pub type TxNonce = u64; pub type BlockNonce = u64; pub type SenderAddress = ManagedAddress; pub type ReceiverAddress = ManagedAddress; -pub type TxAsMultiValue = MultiValue7< - BlockNonce, - TxNonce, - SenderAddress, - ReceiverAddress, - ManagedVec>, - ManagedVec>, - Option>, ->; -pub type PaymentsVec = ManagedVec>; pub type EventPaymentTuple = MultiValue3, u64, EsdtTokenData>; -pub type TxBatchSplitInFields = MultiValue2>>; pub type ExtractedFeeResult = MultiValue2>, ManagedVec>>; pub type OptionalValueTransferDataTuple = From 93274dbb8b1eb88bc1e2ef612153da1580718b1a Mon Sep 17 00:00:00 2001 From: Andrei Baltariu Date: Thu, 26 Dec 2024 11:47:54 +0200 Subject: [PATCH 3/5] More cleanup Signed-off-by: Andrei Baltariu --- Cargo.lock | 1 + chain-config/src/lib.rs | 2 +- chain-factory/src/factory.rs | 2 +- chain-factory/tests/chain_factory_tests.rs | 2 +- common/transaction/src/aliases.rs | 5 +- common/transaction/src/lib.rs | 52 +------------------ common/transaction/src/transaction_status.rs | 13 ----- common/tx-batch-module/src/lib.rs | 2 +- common/utils/Cargo.toml | 3 ++ common/utils/src/lib.rs | 4 +- .../src/enshrine_esdt_safe_interactor.rs | 10 +--- .../enshrine-esdt-safe_interactor_tests.rs | 1 + enshrine-esdt-safe/src/lib.rs | 2 +- .../src/to_sovereign/create_tx.rs | 3 +- .../tests/enshrine_esdt_safe_blackbox_test.rs | 9 ++-- .../interactor/src/esdt_safe_interactor.rs | 15 +++--- .../src/from_sovereign/transfer_tokens.rs | 4 +- esdt-safe/src/lib.rs | 2 +- esdt-safe/src/to_sovereign/create_tx.rs | 4 +- fee-market/src/subtract_fee.rs | 2 +- sovereign-forge/src/common/sc_deploy.rs | 2 +- sovereign-forge/src/phases.rs | 2 +- .../tests/sovereign_forge_unit_tests.rs | 2 +- token-handler/src/transfer_tokens.rs | 3 +- 24 files changed, 42 insertions(+), 105 deletions(-) delete mode 100644 common/transaction/src/transaction_status.rs diff --git a/Cargo.lock b/Cargo.lock index 1971f644..700a3906 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2520,6 +2520,7 @@ name = "utils" version = "0.0.0" dependencies = [ "multiversx-sc", + "transaction", ] [[package]] diff --git a/chain-config/src/lib.rs b/chain-config/src/lib.rs index e7cb54f0..7f1c73f0 100644 --- a/chain-config/src/lib.rs +++ b/chain-config/src/lib.rs @@ -1,7 +1,7 @@ #![no_std] use multiversx_sc_modules::only_admin; -use transaction::StakeMultiArg; +use transaction::aliases::StakeMultiArg; use validator_rules::TokenIdAmountPair; multiversx_sc::imports!(); diff --git a/chain-factory/src/factory.rs b/chain-factory/src/factory.rs index 3021d809..cac8cdcd 100644 --- a/chain-factory/src/factory.rs +++ b/chain-factory/src/factory.rs @@ -7,7 +7,7 @@ use proxies::{ fee_market_proxy::{FeeMarketProxy, FeeStruct}, header_verifier_proxy::HeaderverifierProxy, }; -use transaction::StakeMultiArg; +use transaction::aliases::StakeMultiArg; multiversx_sc::derive_imports!(); #[multiversx_sc::module] diff --git a/chain-factory/tests/chain_factory_tests.rs b/chain-factory/tests/chain_factory_tests.rs index d2618810..689d1a29 100644 --- a/chain-factory/tests/chain_factory_tests.rs +++ b/chain-factory/tests/chain_factory_tests.rs @@ -9,7 +9,7 @@ use multiversx_sc_scenario::{ use proxies::{ chain_config_proxy::ChainConfigContractProxy, chain_factory_proxy::ChainFactoryContractProxy, }; -use transaction::StakeMultiArg; +use transaction::aliases::StakeMultiArg; const FACTORY_ADDRESS: TestSCAddress = TestSCAddress::new("chain-factory"); const CODE_PATH: MxscPath = MxscPath::new("output/chain-factory.mxsc.json"); diff --git a/common/transaction/src/aliases.rs b/common/transaction/src/aliases.rs index fd860375..5f240ebe 100644 --- a/common/transaction/src/aliases.rs +++ b/common/transaction/src/aliases.rs @@ -1,5 +1,3 @@ -use crate::TransferData; - multiversx_sc::imports!(); multiversx_sc::derive_imports!(); @@ -12,8 +10,11 @@ pub type BlockNonce = u64; pub type SenderAddress = ManagedAddress; pub type ReceiverAddress = ManagedAddress; pub type EventPaymentTuple = MultiValue3, u64, EsdtTokenData>; +pub type PaymentsVec = ManagedVec>; pub type ExtractedFeeResult = MultiValue2>, ManagedVec>>; pub type OptionalValueTransferDataTuple = OptionalValue, ManagedVec>>>; pub type StakeMultiArg = MultiValue2, BigUint>; +pub type OptionalTransferData = + OptionalValue, ManagedVec>>>; diff --git a/common/transaction/src/lib.rs b/common/transaction/src/lib.rs index 9f5a2311..ffdcf0fa 100644 --- a/common/transaction/src/lib.rs +++ b/common/transaction/src/lib.rs @@ -1,15 +1,11 @@ #![no_std] -use aliases::{ - BlockNonce, EventPaymentTuple, GasLimit, OptionalValueTransferDataTuple, TxAsMultiValue, TxId, - TxNonce, -}; +use aliases::{EventPaymentTuple, GasLimit, OptionalValueTransferDataTuple, TxId}; multiversx_sc::imports!(); multiversx_sc::derive_imports!(); pub mod aliases; -pub mod transaction_status; // revert protection pub const MIN_BLOCKS_FOR_FINALITY: u64 = 10; @@ -209,49 +205,3 @@ impl Default for OperationEsdtPayment { } } } - -#[type_abi] -#[derive(TopEncode, TopDecode, NestedEncode, NestedDecode, ManagedVecItem, Clone)] -pub struct Transaction { - pub block_nonce: BlockNonce, - pub nonce: TxNonce, - pub from: ManagedAddress, - pub to: ManagedAddress, - pub tokens: ManagedVec>, - pub token_data: ManagedVec>, - pub opt_transfer_data: Option>, - pub is_refund_tx: bool, -} - -impl From> for Transaction { - fn from(tx_as_multiresult: TxAsMultiValue) -> Self { - let (block_nonce, nonce, from, to, tokens, token_data, opt_transfer_data) = - tx_as_multiresult.into_tuple(); - - Transaction { - block_nonce, - nonce, - from, - to, - tokens, - token_data, - opt_transfer_data, - is_refund_tx: false, - } - } -} - -impl Transaction { - pub fn into_multiresult(self) -> TxAsMultiValue { - ( - self.block_nonce, - self.nonce, - self.from, - self.to, - self.tokens, - self.token_data, - self.opt_transfer_data, - ) - .into() - } -} diff --git a/common/transaction/src/transaction_status.rs b/common/transaction/src/transaction_status.rs deleted file mode 100644 index b7bc9c91..00000000 --- a/common/transaction/src/transaction_status.rs +++ /dev/null @@ -1,13 +0,0 @@ -multiversx_sc::imports!(); -multiversx_sc::derive_imports!(); - -#[derive( - TopEncode, TopDecode, NestedEncode, NestedDecode, PartialEq, Clone, Copy, ManagedVecItem, -)] -pub enum TransactionStatus { - None, - Pending, - InProgress, - Executed, - Rejected, -} diff --git a/common/tx-batch-module/src/lib.rs b/common/tx-batch-module/src/lib.rs index 6e94ebe7..2f843d09 100644 --- a/common/tx-batch-module/src/lib.rs +++ b/common/tx-batch-module/src/lib.rs @@ -3,7 +3,7 @@ multiversx_sc::imports!(); multiversx_sc::derive_imports!(); -use transaction::TxNonce; +use transaction::aliases::TxNonce; #[multiversx_sc::module] pub trait TxBatchModule { diff --git a/common/utils/Cargo.toml b/common/utils/Cargo.toml index 741268db..427fb0fc 100644 --- a/common/utils/Cargo.toml +++ b/common/utils/Cargo.toml @@ -7,6 +7,9 @@ edition = "2021" [lib] path = "src/lib.rs" +[dependencies.transaction] +path = "../transaction" + [dependencies.multiversx-sc] version = "=0.54.5" features = ["esdt-token-payment-legacy-decode"] diff --git a/common/utils/src/lib.rs b/common/utils/src/lib.rs index 6700e77e..f61abd36 100644 --- a/common/utils/src/lib.rs +++ b/common/utils/src/lib.rs @@ -1,8 +1,8 @@ #![no_std] -multiversx_sc::imports!(); +use transaction::aliases::PaymentsVec; -pub type PaymentsVec = ManagedVec>; +multiversx_sc::imports!(); static ERR_EMPTY_PAYMENTS: &[u8] = b"No payments"; const DASH: u8 = b'-'; diff --git a/enshrine-esdt-safe/interactor/src/enshrine_esdt_safe_interactor.rs b/enshrine-esdt-safe/interactor/src/enshrine_esdt_safe_interactor.rs index 2a673bef..4d1c2114 100644 --- a/enshrine-esdt-safe/interactor/src/enshrine_esdt_safe_interactor.rs +++ b/enshrine-esdt-safe/interactor/src/enshrine_esdt_safe_interactor.rs @@ -1,6 +1,7 @@ #![allow(non_snake_case)] #![allow(unused)] +use aliases::{OptionalTransferData, PaymentsVec}; use fee_market_proxy::*; use interactor::constants::{TOKEN_ID, WHITELIST_TOKEN_ID}; use interactor::interactor_config::Config; @@ -14,9 +15,6 @@ const HEADER_VERIFIER_CODE_PATH: &str = "../header-verifier/output/header-verifi const ENSHRINE_ESDT_SAFE_CODE_PATH: &str = "output/enshrine-esdt-safe.mxsc.json"; const TOKEN_HANDLER_CODE_PATH: &str = "../token-handler/output/token-handler.mxsc.json"; -type OptionalTransferData = - OptionalValue, ManagedVec>>>; - pub async fn enshrine_esdt_safe_cli() { env_logger::init(); @@ -33,11 +31,7 @@ pub async fn enshrine_esdt_safe_cli() { "setHeaderVerifierAddress" => interact.set_header_verifier_address().await, "setMaxTxGasLimit" => interact.set_max_user_tx_gas_limit().await, "setBannedEndpoint" => interact.set_banned_endpoint().await, - "deposit" => { - interact - .deposit(OptionalTransferData::None, Option::None) - .await - } + "deposit" => interact.deposit(None.into(), Option::None).await, "executeBridgeOps" => interact.execute_operations().await, "registerNewTokenID" => interact.register_new_token_id().await, "setMaxBridgedAmount" => interact.set_max_bridged_amount().await, diff --git a/enshrine-esdt-safe/interactor/tests/enshrine-esdt-safe_interactor_tests.rs b/enshrine-esdt-safe/interactor/tests/enshrine-esdt-safe_interactor_tests.rs index 6ec9d646..57a8eb37 100644 --- a/enshrine-esdt-safe/interactor/tests/enshrine-esdt-safe_interactor_tests.rs +++ b/enshrine-esdt-safe/interactor/tests/enshrine-esdt-safe_interactor_tests.rs @@ -1,5 +1,6 @@ use std::vec; +use aliases::{GasLimit, PaymentsVec}; use enshrine_esdt_safe_interactor::ContractInteract; use interactor::constants::{TOKEN_ID, WHITELIST_TOKEN_ID}; use interactor::interactor_config::Config; diff --git a/enshrine-esdt-safe/src/lib.rs b/enshrine-esdt-safe/src/lib.rs index 750cce35..bea2e946 100644 --- a/enshrine-esdt-safe/src/lib.rs +++ b/enshrine-esdt-safe/src/lib.rs @@ -1,7 +1,7 @@ #![no_std] use multiversx_sc::imports::*; -use transaction::GasLimit; +use transaction::aliases::GasLimit; pub mod common; pub mod from_sovereign; diff --git a/enshrine-esdt-safe/src/to_sovereign/create_tx.rs b/enshrine-esdt-safe/src/to_sovereign/create_tx.rs index da03c345..fb5d8343 100644 --- a/enshrine-esdt-safe/src/to_sovereign/create_tx.rs +++ b/enshrine-esdt-safe/src/to_sovereign/create_tx.rs @@ -1,7 +1,8 @@ use crate::common; use proxies::fee_market_proxy::FeeMarketProxy; use transaction::{ - EventPayment, GasLimit, OperationData, OptionalValueTransferDataTuple, TransferData, + aliases::{GasLimit, OptionalValueTransferDataTuple}, + EventPayment, OperationData, TransferData, }; use multiversx_sc::imports::*; diff --git a/enshrine-esdt-safe/tests/enshrine_esdt_safe_blackbox_test.rs b/enshrine-esdt-safe/tests/enshrine_esdt_safe_blackbox_test.rs index 85f8a3d5..1d6dd629 100644 --- a/enshrine-esdt-safe/tests/enshrine_esdt_safe_blackbox_test.rs +++ b/enshrine-esdt-safe/tests/enshrine_esdt_safe_blackbox_test.rs @@ -1,5 +1,5 @@ use multiversx_sc::codec::TopEncode; -use multiversx_sc::imports::{MultiValue3, OptionalValue}; +use multiversx_sc::imports::OptionalValue; use multiversx_sc::types::{ Address, BigUint, EsdtTokenData, EsdtTokenPayment, ManagedBuffer, ManagedVec, MultiValueEncoded, TestAddress, TestSCAddress, TestTokenIdentifier, TokenIdentifier, @@ -12,8 +12,8 @@ use proxies::enshrine_esdt_safe_proxy::EnshrineEsdtSafeProxy; use proxies::fee_market_proxy::{FeeMarketProxy, FeeStruct, FeeType}; use proxies::header_verifier_proxy::HeaderverifierProxy; use proxies::token_handler_proxy::TokenHandlerProxy; -use transaction::{GasLimit, Operation, OperationData, OperationEsdtPayment}; -use utils::PaymentsVec; +use transaction::aliases::{GasLimit, OptionalTransferData, PaymentsVec}; +use transaction::{Operation, OperationData, OperationEsdtPayment}; const ENSHRINE_ESDT_ADDRESS: TestSCAddress = TestSCAddress::new("enshrine-esdt"); const ENSHRINE_ESDT_CODE_PATH: MxscPath = MxscPath::new("output/enshrine-esdt-safe.mxsc-json"); @@ -47,9 +47,6 @@ const WEGLD_IDENTIFIER: TestTokenIdentifier = TestTokenIdentifier::new("WEGLD-12 const WEGLD_BALANCE: u128 = 100_000_000_000_000_000; const SOVEREIGN_TOKEN_PREFIX: &str = "sov"; -type OptionalTransferData = - OptionalValue, ManagedVec>>>; - fn world() -> ScenarioWorld { let mut blockchain = ScenarioWorld::new(); diff --git a/esdt-safe/interactor/src/esdt_safe_interactor.rs b/esdt-safe/interactor/src/esdt_safe_interactor.rs index c19afc95..f4aa661c 100644 --- a/esdt-safe/interactor/src/esdt_safe_interactor.rs +++ b/esdt-safe/interactor/src/esdt_safe_interactor.rs @@ -12,7 +12,8 @@ use proxies::esdt_safe_proxy::EsdtSafeProxy; use proxies::fee_market_proxy::{FeeMarketProxy, FeeStruct, FeeType}; use proxies::header_verifier_proxy::HeaderverifierProxy; use proxies::testing_sc_proxy::TestingScProxy; -use transaction::{GasLimit, Operation, OperationData, PaymentsVec}; +use transaction::aliases::{OptionalTransferData, PaymentsVec}; +use transaction::{Operation, OperationData}; use transaction::{OperationEsdtPayment, TransferData}; const FEE_MARKET_CODE_PATH: &str = "../../fee-market/output/fee-market.mxsc.json"; @@ -20,9 +21,6 @@ const HEADER_VERIFIER_CODE_PATH: &str = "../../header-verifier/output/header-ver const ESDT_SAFE_CODE_PATH: &str = "../output/esdt-safe.mxsc.json"; const TESTING_SC_CODE_PATH: &str = "../../testing-sc/output/testing-sc.mxsc.json"; -type OptionalTransferData = - OptionalValue, ManagedVec>>>; - pub async fn esdt_safe_cli() { env_logger::init(); @@ -36,7 +34,7 @@ pub async fn esdt_safe_cli() { "upgrade" => interact.upgrade().await, "setFeeMarketAddress" => interact.set_fee_market_address().await, "setHeaderVerifierAddress" => interact.set_header_verifier_address().await, - "deposit" => interact.deposit(OptionalTransferData::None, None).await, + "deposit" => interact.deposit(None.into(), None).await, "registerToken" => interact.register_token().await, "setMaxBridgedAmount" => interact.set_max_bridged_amount().await, "getMaxBridgedAmount" => interact.max_bridged_amount().await, @@ -112,9 +110,10 @@ impl ContractInteract { .await; let new_address_bech32 = bech32::encode(&new_address); - self.state.set_esdt_safe_address(Bech32Address::from_bech32_string( - new_address_bech32.clone(), - )); + self.state + .set_esdt_safe_address(Bech32Address::from_bech32_string( + new_address_bech32.clone(), + )); println!("new address: {new_address_bech32}"); } diff --git a/esdt-safe/src/from_sovereign/transfer_tokens.rs b/esdt-safe/src/from_sovereign/transfer_tokens.rs index ca1b3bc6..1cac854a 100644 --- a/esdt-safe/src/from_sovereign/transfer_tokens.rs +++ b/esdt-safe/src/from_sovereign/transfer_tokens.rs @@ -1,6 +1,8 @@ use multiversx_sc::api::ESDT_MULTI_TRANSFER_FUNC_NAME; use proxies::header_verifier_proxy::HeaderverifierProxy; -use transaction::{GasLimit, Operation, OperationData, OperationEsdtPayment, OperationTuple}; +use transaction::{ + aliases::GasLimit, Operation, OperationData, OperationEsdtPayment, OperationTuple, +}; use crate::to_sovereign; diff --git a/esdt-safe/src/lib.rs b/esdt-safe/src/lib.rs index 49b9ec56..33039e33 100644 --- a/esdt-safe/src/lib.rs +++ b/esdt-safe/src/lib.rs @@ -1,6 +1,6 @@ #![no_std] -use transaction::GasLimit; +use transaction::aliases::GasLimit; multiversx_sc::imports!(); multiversx_sc::derive_imports!(); diff --git a/esdt-safe/src/to_sovereign/create_tx.rs b/esdt-safe/src/to_sovereign/create_tx.rs index fa4a8552..86f1aa4a 100644 --- a/esdt-safe/src/to_sovereign/create_tx.rs +++ b/esdt-safe/src/to_sovereign/create_tx.rs @@ -2,8 +2,8 @@ use crate::from_sovereign::token_mapping; use multiversx_sc::storage::StorageKey; use proxies::fee_market_proxy::FeeMarketProxy; use transaction::{ - EventPaymentTuple, ExtractedFeeResult, GasLimit, OperationData, OptionalValueTransferDataTuple, - TransferData, + aliases::{EventPaymentTuple, ExtractedFeeResult, GasLimit, OptionalValueTransferDataTuple}, + OperationData, TransferData, }; multiversx_sc::imports!(); diff --git a/fee-market/src/subtract_fee.rs b/fee-market/src/subtract_fee.rs index 287cd700..582adc2a 100644 --- a/fee-market/src/subtract_fee.rs +++ b/fee-market/src/subtract_fee.rs @@ -1,4 +1,4 @@ -use transaction::GasLimit; +use transaction::aliases::GasLimit; use crate::fee_type::FeeType; diff --git a/sovereign-forge/src/common/sc_deploy.rs b/sovereign-forge/src/common/sc_deploy.rs index 765013de..b2f44d5b 100644 --- a/sovereign-forge/src/common/sc_deploy.rs +++ b/sovereign-forge/src/common/sc_deploy.rs @@ -1,7 +1,7 @@ use crate::err_msg; use multiversx_sc::types::{MultiValueEncoded, ReturnsResult}; use proxies::{chain_factory_proxy::ChainFactoryContractProxy, fee_market_proxy::FeeStruct}; -use transaction::StakeMultiArg; +use transaction::aliases::StakeMultiArg; #[multiversx_sc::module] pub trait ScDeployModule: super::utils::UtilsModule + super::storage::StorageModule { diff --git a/sovereign-forge/src/phases.rs b/sovereign-forge/src/phases.rs index 777a69a4..f39f35bf 100644 --- a/sovereign-forge/src/phases.rs +++ b/sovereign-forge/src/phases.rs @@ -1,9 +1,9 @@ use crate::err_msg; use core::ops::Deref; use proxies::fee_market_proxy::FeeStruct; -use transaction::StakeMultiArg; use multiversx_sc::{require, types::MultiValueEncoded}; +use transaction::aliases::StakeMultiArg; use crate::common::{ self, diff --git a/sovereign-forge/tests/sovereign_forge_unit_tests.rs b/sovereign-forge/tests/sovereign_forge_unit_tests.rs index c6af19e5..c735d6d8 100644 --- a/sovereign-forge/tests/sovereign_forge_unit_tests.rs +++ b/sovereign-forge/tests/sovereign_forge_unit_tests.rs @@ -16,7 +16,7 @@ use sovereign_forge::common::{ storage::StorageModule, utils::{ScArray, UtilsModule}, }; -use transaction::StakeMultiArg; +use transaction::aliases::StakeMultiArg; const FORGE_ADDRESS: TestSCAddress = TestSCAddress::new("sovereign-forge"); const FORGE_CODE_PATH: MxscPath = MxscPath::new("output/sovereign-forge.mxsc.json"); diff --git a/token-handler/src/transfer_tokens.rs b/token-handler/src/transfer_tokens.rs index 49070932..b903a2ab 100644 --- a/token-handler/src/transfer_tokens.rs +++ b/token-handler/src/transfer_tokens.rs @@ -5,7 +5,8 @@ use multiversx_sc::types::{ system_proxy, EsdtTokenPayment, ManagedArgBuffer, MultiValueEncoded, ToSelf, }; use multiversx_sc::types::{ManagedVec, TokenIdentifier}; -use transaction::{GasLimit, OperationEsdtPayment, TransferData}; +use transaction::aliases::GasLimit; +use transaction::{OperationEsdtPayment, TransferData}; use crate::common_storage; From d30d89e6ace70a040dfa9cb2fada75fd7306a09b Mon Sep 17 00:00:00 2001 From: Andrei Baltariu Date: Thu, 26 Dec 2024 11:58:21 +0200 Subject: [PATCH 4/5] Renamed `transaction` module to `operation` Signed-off-by: Andrei Baltariu --- Cargo.lock | 40 +++++++++---------- chain-config/Cargo.toml | 4 +- chain-config/src/lib.rs | 2 +- .../wasm-chain-config-full/Cargo.lock | 18 ++++----- .../wasm-chain-config-view/Cargo.lock | 18 ++++----- chain-config/wasm/Cargo.lock | 18 ++++----- chain-factory/Cargo.toml | 4 +- chain-factory/src/factory.rs | 2 +- chain-factory/tests/chain_factory_tests.rs | 2 +- .../wasm-chain-factory-full/Cargo.lock | 25 ++++++------ .../wasm-chain-factory-view/Cargo.lock | 25 ++++++------ chain-factory/wasm/Cargo.lock | 25 ++++++------ common/{transaction => operation}/Cargo.toml | 2 +- .../{transaction => operation}/src/aliases.rs | 0 common/{transaction => operation}/src/lib.rs | 0 common/proxies/Cargo.toml | 4 +- .../proxies/src/enshrine_esdt_safe_proxy.rs | 2 +- common/proxies/src/esdt_safe_proxy.rs | 2 +- common/proxies/src/token_handler_proxy.rs | 4 +- common/tx-batch-module/Cargo.toml | 4 +- common/tx-batch-module/src/lib.rs | 2 +- common/utils/Cargo.toml | 4 +- common/utils/src/lib.rs | 2 +- enshrine-esdt-safe/Cargo.toml | 4 +- enshrine-esdt-safe/interactor/Cargo.toml | 4 +- .../src/enshrine_esdt_safe_interactor.rs | 2 +- .../enshrine-esdt-safe_interactor_tests.rs | 2 +- enshrine-esdt-safe/src/common/storage.rs | 2 +- .../src/from_sovereign/transfer_tokens.rs | 2 +- enshrine-esdt-safe/src/lib.rs | 2 +- .../src/to_sovereign/create_tx.rs | 2 +- enshrine-esdt-safe/src/to_sovereign/events.rs | 2 +- .../tests/enshrine_esdt_safe_blackbox_test.rs | 4 +- .../wasm-enshrine-esdt-safe-full/Cargo.lock | 33 +++++++-------- .../wasm-enshrine-esdt-safe-view/Cargo.lock | 33 +++++++-------- enshrine-esdt-safe/wasm/Cargo.lock | 33 +++++++-------- esdt-safe/Cargo.toml | 4 +- esdt-safe/interactor/Cargo.toml | 4 +- .../interactor/src/esdt_safe_interactor.rs | 6 +-- .../src/from_sovereign/transfer_tokens.rs | 2 +- esdt-safe/src/lib.rs | 2 +- esdt-safe/src/to_sovereign/create_tx.rs | 2 +- esdt-safe/src/to_sovereign/events.rs | 2 +- esdt-safe/tests/bridge_blackbox_tests.rs | 2 +- esdt-safe/wasm-esdt-safe-full/Cargo.lock | 27 +++++++------ esdt-safe/wasm-esdt-safe-view/Cargo.lock | 27 +++++++------ esdt-safe/wasm/Cargo.lock | 27 +++++++------ fee-market/Cargo.toml | 4 +- fee-market/src/subtract_fee.rs | 2 +- fee-market/wasm-fee-market-view/Cargo.lock | 23 ++++++----- fee-market/wasm-fee-market/Cargo.lock | 23 ++++++----- fee-market/wasm/Cargo.lock | 23 ++++++----- header-verifier/Cargo.toml | 4 +- .../wasm-header-verifier-full/Cargo.lock | 22 +++++----- header-verifier/wasm-multisig-view/Cargo.lock | 22 +++++----- header-verifier/wasm/Cargo.lock | 22 +++++----- sovereign-forge/Cargo.toml | 4 +- sovereign-forge/src/common/sc_deploy.rs | 2 +- sovereign-forge/src/phases.rs | 2 +- .../tests/sovereign_forge_unit_tests.rs | 2 +- .../wasm-sovereign-forge-full/Cargo.lock | 31 +++++++------- .../wasm-soveriegn-forge-view/Cargo.lock | 31 +++++++------- sovereign-forge/wasm/Cargo.lock | 31 +++++++------- token-handler/Cargo.toml | 4 +- token-handler/src/transfer_tokens.rs | 4 +- .../tests/token_handler_blackbox_tests.rs | 2 +- .../wasm-token-handler-full/Cargo.lock | 27 +++++++------ .../wasm-token-handler-view/Cargo.lock | 27 +++++++------ token-handler/wasm/Cargo.lock | 27 +++++++------ 69 files changed, 398 insertions(+), 380 deletions(-) rename common/{transaction => operation}/Cargo.toml (89%) rename common/{transaction => operation}/src/aliases.rs (100%) rename common/{transaction => operation}/src/lib.rs (100%) diff --git a/Cargo.lock b/Cargo.lock index 700a3906..137cc61e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -234,8 +234,8 @@ dependencies = [ "multiversx-sc-modules", "multiversx-sc-scenario", "num-bigint", + "operation", "setup-phase", - "transaction", ] [[package]] @@ -255,8 +255,8 @@ dependencies = [ "multiversx-sc-modules", "multiversx-sc-scenario", "num-bigint", + "operation", "proxies", - "transaction", "utils", ] @@ -501,11 +501,11 @@ dependencies = [ "multiversx-sc-scenario", "num-bigint", "num-traits", + "operation", "proxies", "setup-phase", "token-handler", "token-whitelist", - "transaction", "tx-batch-module", "utils", ] @@ -530,13 +530,13 @@ dependencies = [ "max-bridged-amount-module", "multiversx-sc", "multiversx-sc-snippets", + "operation", "proxies", "serde", "setup-phase", "token-handler", "token-whitelist", "toml", - "transaction", "tx-batch-module", "utils", ] @@ -593,10 +593,10 @@ dependencies = [ "multiversx-sc-scenario", "num-bigint", "num-traits", + "operation", "proxies", "setup-phase", "token-whitelist", - "transaction", "tx-batch-module", "utils", ] @@ -612,10 +612,10 @@ dependencies = [ "multiversx-sc", "multiversx-sc-scenario", "multiversx-sc-snippets", + "operation", "proxies", "serde", "toml", - "transaction", "tx-batch-module", ] @@ -640,8 +640,8 @@ dependencies = [ "multiversx-sc", "multiversx-sc-scenario", "num-bigint", + "operation", "proxies", - "transaction", "utils", ] @@ -841,9 +841,9 @@ dependencies = [ "multiversx-sc", "multiversx-sc-scenario", "num-bigint", + "operation", "proxies", "setup-phase", - "transaction", ] [[package]] @@ -1633,6 +1633,13 @@ dependencies = [ "vcpkg", ] +[[package]] +name = "operation" +version = "0.0.0" +dependencies = [ + "multiversx-sc", +] + [[package]] name = "parking_lot" version = "0.12.3" @@ -1750,7 +1757,7 @@ name = "proxies" version = "0.1.0" dependencies = [ "multiversx-sc", - "transaction", + "operation", "tx-batch-module", ] @@ -2160,9 +2167,9 @@ dependencies = [ "multiversx-sc-modules", "multiversx-sc-scenario", "num-bigint", + "operation", "proxies", "setup-phase", - "transaction", ] [[package]] @@ -2304,8 +2311,8 @@ dependencies = [ "multiversx-sc", "multiversx-sc-scenario", "num-bigint", + "operation", "proxies", - "transaction", ] [[package]] @@ -2425,13 +2432,6 @@ dependencies = [ "once_cell", ] -[[package]] -name = "transaction" -version = "0.0.0" -dependencies = [ - "multiversx-sc", -] - [[package]] name = "try-lock" version = "0.2.5" @@ -2444,7 +2444,7 @@ version = "0.0.0" dependencies = [ "multiversx-sc", "multiversx-sc-scenario", - "transaction", + "operation", ] [[package]] @@ -2520,7 +2520,7 @@ name = "utils" version = "0.0.0" dependencies = [ "multiversx-sc", - "transaction", + "operation", ] [[package]] diff --git a/chain-config/Cargo.toml b/chain-config/Cargo.toml index 9f735c71..50f98abf 100644 --- a/chain-config/Cargo.toml +++ b/chain-config/Cargo.toml @@ -20,8 +20,8 @@ version = "=0.54.5" [dependencies.multiversx-sc-modules] version = "=0.54.5" -[dependencies.transaction] -path = "../common/transaction" +[dependencies.operation] +path = "../common/operation" [dependencies.setup-phase] path = "../common/setup-phase" diff --git a/chain-config/src/lib.rs b/chain-config/src/lib.rs index 7f1c73f0..c34fb988 100644 --- a/chain-config/src/lib.rs +++ b/chain-config/src/lib.rs @@ -1,7 +1,7 @@ #![no_std] use multiversx_sc_modules::only_admin; -use transaction::aliases::StakeMultiArg; +use operation::aliases::StakeMultiArg; use validator_rules::TokenIdAmountPair; multiversx_sc::imports!(); diff --git a/chain-config/wasm-chain-config-full/Cargo.lock b/chain-config/wasm-chain-config-full/Cargo.lock index 4c4742d6..fd9b31d1 100644 --- a/chain-config/wasm-chain-config-full/Cargo.lock +++ b/chain-config/wasm-chain-config-full/Cargo.lock @@ -1,6 +1,6 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 +version = 4 [[package]] name = "arrayvec" @@ -26,8 +26,8 @@ version = "0.0.0" dependencies = [ "multiversx-sc", "multiversx-sc-modules", + "operation", "setup-phase", - "transaction", ] [[package]] @@ -153,6 +153,13 @@ dependencies = [ "autocfg", ] +[[package]] +name = "operation" +version = "0.0.0" +dependencies = [ + "multiversx-sc", +] + [[package]] name = "proc-macro2" version = "1.0.86" @@ -205,13 +212,6 @@ dependencies = [ "unicode-ident", ] -[[package]] -name = "transaction" -version = "0.0.0" -dependencies = [ - "multiversx-sc", -] - [[package]] name = "unicode-ident" version = "1.0.12" diff --git a/chain-config/wasm-chain-config-view/Cargo.lock b/chain-config/wasm-chain-config-view/Cargo.lock index 7bf0f8b4..b3c8a513 100644 --- a/chain-config/wasm-chain-config-view/Cargo.lock +++ b/chain-config/wasm-chain-config-view/Cargo.lock @@ -1,6 +1,6 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 +version = 4 [[package]] name = "arrayvec" @@ -26,8 +26,8 @@ version = "0.0.0" dependencies = [ "multiversx-sc", "multiversx-sc-modules", + "operation", "setup-phase", - "transaction", ] [[package]] @@ -153,6 +153,13 @@ dependencies = [ "autocfg", ] +[[package]] +name = "operation" +version = "0.0.0" +dependencies = [ + "multiversx-sc", +] + [[package]] name = "proc-macro2" version = "1.0.86" @@ -205,13 +212,6 @@ dependencies = [ "unicode-ident", ] -[[package]] -name = "transaction" -version = "0.0.0" -dependencies = [ - "multiversx-sc", -] - [[package]] name = "unicode-ident" version = "1.0.12" diff --git a/chain-config/wasm/Cargo.lock b/chain-config/wasm/Cargo.lock index 55031d67..0718ea0e 100644 --- a/chain-config/wasm/Cargo.lock +++ b/chain-config/wasm/Cargo.lock @@ -1,6 +1,6 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 +version = 4 [[package]] name = "arrayvec" @@ -26,8 +26,8 @@ version = "0.0.0" dependencies = [ "multiversx-sc", "multiversx-sc-modules", + "operation", "setup-phase", - "transaction", ] [[package]] @@ -153,6 +153,13 @@ dependencies = [ "autocfg", ] +[[package]] +name = "operation" +version = "0.0.0" +dependencies = [ + "multiversx-sc", +] + [[package]] name = "proc-macro2" version = "1.0.86" @@ -205,13 +212,6 @@ dependencies = [ "unicode-ident", ] -[[package]] -name = "transaction" -version = "0.0.0" -dependencies = [ - "multiversx-sc", -] - [[package]] name = "unicode-ident" version = "1.0.13" diff --git a/chain-factory/Cargo.toml b/chain-factory/Cargo.toml index f77c14e9..40e54845 100644 --- a/chain-factory/Cargo.toml +++ b/chain-factory/Cargo.toml @@ -29,5 +29,5 @@ path = "../chain-config" [dependencies.proxies] path = "../common/proxies" -[dependencies.transaction] -path = "../common/transaction" +[dependencies.operation] +path = "../common/operation" diff --git a/chain-factory/src/factory.rs b/chain-factory/src/factory.rs index cac8cdcd..c6a1dbb3 100644 --- a/chain-factory/src/factory.rs +++ b/chain-factory/src/factory.rs @@ -7,7 +7,7 @@ use proxies::{ fee_market_proxy::{FeeMarketProxy, FeeStruct}, header_verifier_proxy::HeaderverifierProxy, }; -use transaction::aliases::StakeMultiArg; +use operation::aliases::StakeMultiArg; multiversx_sc::derive_imports!(); #[multiversx_sc::module] diff --git a/chain-factory/tests/chain_factory_tests.rs b/chain-factory/tests/chain_factory_tests.rs index 689d1a29..f26144fd 100644 --- a/chain-factory/tests/chain_factory_tests.rs +++ b/chain-factory/tests/chain_factory_tests.rs @@ -9,7 +9,7 @@ use multiversx_sc_scenario::{ use proxies::{ chain_config_proxy::ChainConfigContractProxy, chain_factory_proxy::ChainFactoryContractProxy, }; -use transaction::aliases::StakeMultiArg; +use operation::aliases::StakeMultiArg; const FACTORY_ADDRESS: TestSCAddress = TestSCAddress::new("chain-factory"); const CODE_PATH: MxscPath = MxscPath::new("output/chain-factory.mxsc.json"); diff --git a/chain-factory/wasm-chain-factory-full/Cargo.lock b/chain-factory/wasm-chain-factory-full/Cargo.lock index 0059c506..eb8bad67 100644 --- a/chain-factory/wasm-chain-factory-full/Cargo.lock +++ b/chain-factory/wasm-chain-factory-full/Cargo.lock @@ -1,6 +1,6 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 +version = 4 [[package]] name = "arrayvec" @@ -26,8 +26,8 @@ version = "0.0.0" dependencies = [ "multiversx-sc", "multiversx-sc-modules", + "operation", "setup-phase", - "transaction", ] [[package]] @@ -37,8 +37,8 @@ dependencies = [ "chain-config", "multiversx-sc", "multiversx-sc-modules", + "operation", "proxies", - "transaction", "utils", ] @@ -165,6 +165,13 @@ dependencies = [ "autocfg", ] +[[package]] +name = "operation" +version = "0.0.0" +dependencies = [ + "multiversx-sc", +] + [[package]] name = "proc-macro2" version = "1.0.86" @@ -179,7 +186,7 @@ name = "proxies" version = "0.1.0" dependencies = [ "multiversx-sc", - "transaction", + "operation", "tx-batch-module", ] @@ -226,19 +233,12 @@ dependencies = [ "unicode-ident", ] -[[package]] -name = "transaction" -version = "0.0.0" -dependencies = [ - "multiversx-sc", -] - [[package]] name = "tx-batch-module" version = "0.0.0" dependencies = [ "multiversx-sc", - "transaction", + "operation", ] [[package]] @@ -258,4 +258,5 @@ name = "utils" version = "0.0.0" dependencies = [ "multiversx-sc", + "operation", ] diff --git a/chain-factory/wasm-chain-factory-view/Cargo.lock b/chain-factory/wasm-chain-factory-view/Cargo.lock index b2d77b84..7381a6d8 100644 --- a/chain-factory/wasm-chain-factory-view/Cargo.lock +++ b/chain-factory/wasm-chain-factory-view/Cargo.lock @@ -1,6 +1,6 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 +version = 4 [[package]] name = "arrayvec" @@ -26,8 +26,8 @@ version = "0.0.0" dependencies = [ "multiversx-sc", "multiversx-sc-modules", + "operation", "setup-phase", - "transaction", ] [[package]] @@ -37,8 +37,8 @@ dependencies = [ "chain-config", "multiversx-sc", "multiversx-sc-modules", + "operation", "proxies", - "transaction", "utils", ] @@ -165,6 +165,13 @@ dependencies = [ "autocfg", ] +[[package]] +name = "operation" +version = "0.0.0" +dependencies = [ + "multiversx-sc", +] + [[package]] name = "proc-macro2" version = "1.0.86" @@ -179,7 +186,7 @@ name = "proxies" version = "0.1.0" dependencies = [ "multiversx-sc", - "transaction", + "operation", "tx-batch-module", ] @@ -226,19 +233,12 @@ dependencies = [ "unicode-ident", ] -[[package]] -name = "transaction" -version = "0.0.0" -dependencies = [ - "multiversx-sc", -] - [[package]] name = "tx-batch-module" version = "0.0.0" dependencies = [ "multiversx-sc", - "transaction", + "operation", ] [[package]] @@ -258,4 +258,5 @@ name = "utils" version = "0.0.0" dependencies = [ "multiversx-sc", + "operation", ] diff --git a/chain-factory/wasm/Cargo.lock b/chain-factory/wasm/Cargo.lock index beb1bcdc..f04b05b9 100644 --- a/chain-factory/wasm/Cargo.lock +++ b/chain-factory/wasm/Cargo.lock @@ -1,6 +1,6 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 +version = 4 [[package]] name = "arrayvec" @@ -26,8 +26,8 @@ version = "0.0.0" dependencies = [ "multiversx-sc", "multiversx-sc-modules", + "operation", "setup-phase", - "transaction", ] [[package]] @@ -37,8 +37,8 @@ dependencies = [ "chain-config", "multiversx-sc", "multiversx-sc-modules", + "operation", "proxies", - "transaction", "utils", ] @@ -165,6 +165,13 @@ dependencies = [ "autocfg", ] +[[package]] +name = "operation" +version = "0.0.0" +dependencies = [ + "multiversx-sc", +] + [[package]] name = "proc-macro2" version = "1.0.86" @@ -179,7 +186,7 @@ name = "proxies" version = "0.1.0" dependencies = [ "multiversx-sc", - "transaction", + "operation", "tx-batch-module", ] @@ -226,19 +233,12 @@ dependencies = [ "unicode-ident", ] -[[package]] -name = "transaction" -version = "0.0.0" -dependencies = [ - "multiversx-sc", -] - [[package]] name = "tx-batch-module" version = "0.0.0" dependencies = [ "multiversx-sc", - "transaction", + "operation", ] [[package]] @@ -258,4 +258,5 @@ name = "utils" version = "0.0.0" dependencies = [ "multiversx-sc", + "operation", ] diff --git a/common/transaction/Cargo.toml b/common/operation/Cargo.toml similarity index 89% rename from common/transaction/Cargo.toml rename to common/operation/Cargo.toml index de5f41dc..feb9a410 100644 --- a/common/transaction/Cargo.toml +++ b/common/operation/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "transaction" +name = "operation" version = "0.0.0" authors = ["dorin-iancu "] edition = "2018" diff --git a/common/transaction/src/aliases.rs b/common/operation/src/aliases.rs similarity index 100% rename from common/transaction/src/aliases.rs rename to common/operation/src/aliases.rs diff --git a/common/transaction/src/lib.rs b/common/operation/src/lib.rs similarity index 100% rename from common/transaction/src/lib.rs rename to common/operation/src/lib.rs diff --git a/common/proxies/Cargo.toml b/common/proxies/Cargo.toml index 5bcaa7b3..b9482de8 100644 --- a/common/proxies/Cargo.toml +++ b/common/proxies/Cargo.toml @@ -6,8 +6,8 @@ edition = "2021" [dependencies.multiversx-sc] version = "=0.54.5" -[dependencies.transaction] -path = "../transaction" +[dependencies.operation] +path = "../operation" [dependencies.tx-batch-module] path = "../tx-batch-module" diff --git a/common/proxies/src/enshrine_esdt_safe_proxy.rs b/common/proxies/src/enshrine_esdt_safe_proxy.rs index a87a274a..6a136022 100644 --- a/common/proxies/src/enshrine_esdt_safe_proxy.rs +++ b/common/proxies/src/enshrine_esdt_safe_proxy.rs @@ -163,7 +163,7 @@ where pub fn execute_operations< Arg0: ProxyArg>, - Arg1: ProxyArg>, + Arg1: ProxyArg>, >( self, hash_of_hashes: Arg0, diff --git a/common/proxies/src/esdt_safe_proxy.rs b/common/proxies/src/esdt_safe_proxy.rs index 6bbef655..cf8f4797 100644 --- a/common/proxies/src/esdt_safe_proxy.rs +++ b/common/proxies/src/esdt_safe_proxy.rs @@ -178,7 +178,7 @@ where pub fn execute_operations< Arg0: ProxyArg>, - Arg1: ProxyArg>, + Arg1: ProxyArg>, >( self, hash_of_hashes: Arg0, diff --git a/common/proxies/src/token_handler_proxy.rs b/common/proxies/src/token_handler_proxy.rs index 319f4ad4..73dc9715 100644 --- a/common/proxies/src/token_handler_proxy.rs +++ b/common/proxies/src/token_handler_proxy.rs @@ -95,9 +95,9 @@ where } pub fn transfer_tokens< - Arg0: ProxyArg>>, + Arg0: ProxyArg>>, Arg1: ProxyArg>, - Arg2: ProxyArg>>, + Arg2: ProxyArg>>, >( self, opt_transfer_data: Arg0, diff --git a/common/tx-batch-module/Cargo.toml b/common/tx-batch-module/Cargo.toml index c8b594f7..2be371b9 100644 --- a/common/tx-batch-module/Cargo.toml +++ b/common/tx-batch-module/Cargo.toml @@ -7,8 +7,8 @@ edition = "2018" [dependencies.multiversx-sc] version = "=0.54.5" -[dependencies.transaction] -path = "../transaction" +[dependencies.operation] +path = "../operation" [dev-dependencies.multiversx-sc-scenario] version = "=0.54.5" diff --git a/common/tx-batch-module/src/lib.rs b/common/tx-batch-module/src/lib.rs index 2f843d09..718ce170 100644 --- a/common/tx-batch-module/src/lib.rs +++ b/common/tx-batch-module/src/lib.rs @@ -3,7 +3,7 @@ multiversx_sc::imports!(); multiversx_sc::derive_imports!(); -use transaction::aliases::TxNonce; +use operation::aliases::TxNonce; #[multiversx_sc::module] pub trait TxBatchModule { diff --git a/common/utils/Cargo.toml b/common/utils/Cargo.toml index 427fb0fc..87ef8dff 100644 --- a/common/utils/Cargo.toml +++ b/common/utils/Cargo.toml @@ -7,8 +7,8 @@ edition = "2021" [lib] path = "src/lib.rs" -[dependencies.transaction] -path = "../transaction" +[dependencies.operation] +path = "../operation" [dependencies.multiversx-sc] version = "=0.54.5" diff --git a/common/utils/src/lib.rs b/common/utils/src/lib.rs index f61abd36..104e0e8e 100644 --- a/common/utils/src/lib.rs +++ b/common/utils/src/lib.rs @@ -1,6 +1,6 @@ #![no_std] -use transaction::aliases::PaymentsVec; +use operation::aliases::PaymentsVec; multiversx_sc::imports!(); diff --git a/enshrine-esdt-safe/Cargo.toml b/enshrine-esdt-safe/Cargo.toml index 97e48255..94d2ad7d 100644 --- a/enshrine-esdt-safe/Cargo.toml +++ b/enshrine-esdt-safe/Cargo.toml @@ -8,8 +8,8 @@ publish = false [lib] path = "src/lib.rs" -[dependencies.transaction] -path = "../common/transaction" +[dependencies.operation] +path = "../common/operation" [dependencies.tx-batch-module] path = "../common/tx-batch-module" diff --git a/enshrine-esdt-safe/interactor/Cargo.toml b/enshrine-esdt-safe/interactor/Cargo.toml index a269581a..4d79ad7c 100644 --- a/enshrine-esdt-safe/interactor/Cargo.toml +++ b/enshrine-esdt-safe/interactor/Cargo.toml @@ -18,8 +18,8 @@ toml = "0.8.6" [dependencies.enshrine-esdt-safe] path = ".." -[dependencies.transaction] -path = "../../common/transaction" +[dependencies.operation] +path = "../../common/operation" [dependencies.tx-batch-module] path = "../../common/tx-batch-module" diff --git a/enshrine-esdt-safe/interactor/src/enshrine_esdt_safe_interactor.rs b/enshrine-esdt-safe/interactor/src/enshrine_esdt_safe_interactor.rs index 4d1c2114..56f6bb98 100644 --- a/enshrine-esdt-safe/interactor/src/enshrine_esdt_safe_interactor.rs +++ b/enshrine-esdt-safe/interactor/src/enshrine_esdt_safe_interactor.rs @@ -8,7 +8,7 @@ use interactor::interactor_config::Config; use interactor::interactor_state::State; use multiversx_sc_snippets::imports::*; use proxies::*; -use transaction::*; +use operation::*; const FEE_MARKET_CODE_PATH: &str = "../fee-market/output/fee-market.mxsc.json"; const HEADER_VERIFIER_CODE_PATH: &str = "../header-verifier/output/header-verifier.mxsc.json"; diff --git a/enshrine-esdt-safe/interactor/tests/enshrine-esdt-safe_interactor_tests.rs b/enshrine-esdt-safe/interactor/tests/enshrine-esdt-safe_interactor_tests.rs index 57a8eb37..8ccab55a 100644 --- a/enshrine-esdt-safe/interactor/tests/enshrine-esdt-safe_interactor_tests.rs +++ b/enshrine-esdt-safe/interactor/tests/enshrine-esdt-safe_interactor_tests.rs @@ -6,7 +6,7 @@ use interactor::constants::{TOKEN_ID, WHITELIST_TOKEN_ID}; use interactor::interactor_config::Config; use multiversx_sc_snippets::imports::*; use proxies::*; -use transaction::*; +use operation::*; type OptionalTransferData = OptionalValue, ManagedVec>>>; diff --git a/enshrine-esdt-safe/src/common/storage.rs b/enshrine-esdt-safe/src/common/storage.rs index 7c56d22b..46d1fda6 100644 --- a/enshrine-esdt-safe/src/common/storage.rs +++ b/enshrine-esdt-safe/src/common/storage.rs @@ -1,5 +1,5 @@ use multiversx_sc::imports::*; -use transaction::OperationEsdtPayment; +use operation::OperationEsdtPayment; #[multiversx_sc::module] pub trait CommonStorage { diff --git a/enshrine-esdt-safe/src/from_sovereign/transfer_tokens.rs b/enshrine-esdt-safe/src/from_sovereign/transfer_tokens.rs index cd65defb..0fd1aafe 100644 --- a/enshrine-esdt-safe/src/from_sovereign/transfer_tokens.rs +++ b/enshrine-esdt-safe/src/from_sovereign/transfer_tokens.rs @@ -1,7 +1,7 @@ use crate::{common, to_sovereign}; use multiversx_sc::imports::*; use proxies::{header_verifier_proxy::HeaderverifierProxy, token_handler_proxy::TokenHandlerProxy}; -use transaction::{Operation, OperationData, OperationEsdtPayment, OperationTuple}; +use operation::{Operation, OperationData, OperationEsdtPayment, OperationTuple}; const DEFAULT_ISSUE_COST: u64 = 50_000_000_000_000_000; // 0.05 * 10^18 diff --git a/enshrine-esdt-safe/src/lib.rs b/enshrine-esdt-safe/src/lib.rs index bea2e946..2f056d02 100644 --- a/enshrine-esdt-safe/src/lib.rs +++ b/enshrine-esdt-safe/src/lib.rs @@ -1,7 +1,7 @@ #![no_std] use multiversx_sc::imports::*; -use transaction::aliases::GasLimit; +use operation::aliases::GasLimit; pub mod common; pub mod from_sovereign; diff --git a/enshrine-esdt-safe/src/to_sovereign/create_tx.rs b/enshrine-esdt-safe/src/to_sovereign/create_tx.rs index fb5d8343..bb02a869 100644 --- a/enshrine-esdt-safe/src/to_sovereign/create_tx.rs +++ b/enshrine-esdt-safe/src/to_sovereign/create_tx.rs @@ -1,6 +1,6 @@ use crate::common; use proxies::fee_market_proxy::FeeMarketProxy; -use transaction::{ +use operation::{ aliases::{GasLimit, OptionalValueTransferDataTuple}, EventPayment, OperationData, TransferData, }; diff --git a/enshrine-esdt-safe/src/to_sovereign/events.rs b/enshrine-esdt-safe/src/to_sovereign/events.rs index 15439c68..fe9b68b9 100644 --- a/enshrine-esdt-safe/src/to_sovereign/events.rs +++ b/enshrine-esdt-safe/src/to_sovereign/events.rs @@ -1,4 +1,4 @@ -use transaction::OperationData; +use operation::OperationData; multiversx_sc::imports!(); multiversx_sc::derive_imports!(); diff --git a/enshrine-esdt-safe/tests/enshrine_esdt_safe_blackbox_test.rs b/enshrine-esdt-safe/tests/enshrine_esdt_safe_blackbox_test.rs index 1d6dd629..225b01d7 100644 --- a/enshrine-esdt-safe/tests/enshrine_esdt_safe_blackbox_test.rs +++ b/enshrine-esdt-safe/tests/enshrine_esdt_safe_blackbox_test.rs @@ -12,8 +12,8 @@ use proxies::enshrine_esdt_safe_proxy::EnshrineEsdtSafeProxy; use proxies::fee_market_proxy::{FeeMarketProxy, FeeStruct, FeeType}; use proxies::header_verifier_proxy::HeaderverifierProxy; use proxies::token_handler_proxy::TokenHandlerProxy; -use transaction::aliases::{GasLimit, OptionalTransferData, PaymentsVec}; -use transaction::{Operation, OperationData, OperationEsdtPayment}; +use operation::aliases::{GasLimit, OptionalTransferData, PaymentsVec}; +use operation::{Operation, OperationData, OperationEsdtPayment}; const ENSHRINE_ESDT_ADDRESS: TestSCAddress = TestSCAddress::new("enshrine-esdt"); const ENSHRINE_ESDT_CODE_PATH: MxscPath = MxscPath::new("output/enshrine-esdt-safe.mxsc-json"); 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 9c9627c2..5b62bbb0 100644 --- a/enshrine-esdt-safe/wasm-enshrine-esdt-safe-full/Cargo.lock +++ b/enshrine-esdt-safe/wasm-enshrine-esdt-safe-full/Cargo.lock @@ -1,6 +1,6 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 +version = 4 [[package]] name = "arrayvec" @@ -26,8 +26,8 @@ version = "0.0.0" dependencies = [ "multiversx-sc", "multiversx-sc-modules", + "operation", "setup-phase", - "transaction", ] [[package]] @@ -37,8 +37,8 @@ dependencies = [ "chain-config", "multiversx-sc", "multiversx-sc-modules", + "operation", "proxies", - "transaction", "utils", ] @@ -57,11 +57,11 @@ dependencies = [ "max-bridged-amount-module", "multiversx-sc", "multiversx-sc-modules", + "operation", "proxies", "setup-phase", "token-handler", "token-whitelist", - "transaction", "tx-batch-module", "utils", ] @@ -79,8 +79,8 @@ name = "fee-market" version = "0.0.0" dependencies = [ "multiversx-sc", + "operation", "proxies", - "transaction", "utils", ] @@ -89,9 +89,9 @@ name = "header-verifier" version = "0.0.0" dependencies = [ "multiversx-sc", + "operation", "proxies", "setup-phase", - "transaction", ] [[package]] @@ -210,6 +210,13 @@ dependencies = [ "autocfg", ] +[[package]] +name = "operation" +version = "0.0.0" +dependencies = [ + "multiversx-sc", +] + [[package]] name = "proc-macro2" version = "1.0.86" @@ -224,7 +231,7 @@ name = "proxies" version = "0.1.0" dependencies = [ "multiversx-sc", - "transaction", + "operation", "tx-batch-module", ] @@ -277,8 +284,8 @@ version = "0.0.0" dependencies = [ "chain-factory", "multiversx-sc", + "operation", "proxies", - "transaction", ] [[package]] @@ -290,19 +297,12 @@ dependencies = [ "utils", ] -[[package]] -name = "transaction" -version = "0.0.0" -dependencies = [ - "multiversx-sc", -] - [[package]] name = "tx-batch-module" version = "0.0.0" dependencies = [ "multiversx-sc", - "transaction", + "operation", ] [[package]] @@ -322,4 +322,5 @@ name = "utils" version = "0.0.0" dependencies = [ "multiversx-sc", + "operation", ] 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 d7375f07..1f7c3535 100644 --- a/enshrine-esdt-safe/wasm-enshrine-esdt-safe-view/Cargo.lock +++ b/enshrine-esdt-safe/wasm-enshrine-esdt-safe-view/Cargo.lock @@ -1,6 +1,6 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 +version = 4 [[package]] name = "arrayvec" @@ -26,8 +26,8 @@ version = "0.0.0" dependencies = [ "multiversx-sc", "multiversx-sc-modules", + "operation", "setup-phase", - "transaction", ] [[package]] @@ -37,8 +37,8 @@ dependencies = [ "chain-config", "multiversx-sc", "multiversx-sc-modules", + "operation", "proxies", - "transaction", "utils", ] @@ -57,11 +57,11 @@ dependencies = [ "max-bridged-amount-module", "multiversx-sc", "multiversx-sc-modules", + "operation", "proxies", "setup-phase", "token-handler", "token-whitelist", - "transaction", "tx-batch-module", "utils", ] @@ -79,8 +79,8 @@ name = "fee-market" version = "0.0.0" dependencies = [ "multiversx-sc", + "operation", "proxies", - "transaction", "utils", ] @@ -89,9 +89,9 @@ name = "header-verifier" version = "0.0.0" dependencies = [ "multiversx-sc", + "operation", "proxies", "setup-phase", - "transaction", ] [[package]] @@ -210,6 +210,13 @@ dependencies = [ "autocfg", ] +[[package]] +name = "operation" +version = "0.0.0" +dependencies = [ + "multiversx-sc", +] + [[package]] name = "proc-macro2" version = "1.0.86" @@ -224,7 +231,7 @@ name = "proxies" version = "0.1.0" dependencies = [ "multiversx-sc", - "transaction", + "operation", "tx-batch-module", ] @@ -277,8 +284,8 @@ version = "0.0.0" dependencies = [ "chain-factory", "multiversx-sc", + "operation", "proxies", - "transaction", ] [[package]] @@ -290,19 +297,12 @@ dependencies = [ "utils", ] -[[package]] -name = "transaction" -version = "0.0.0" -dependencies = [ - "multiversx-sc", -] - [[package]] name = "tx-batch-module" version = "0.0.0" dependencies = [ "multiversx-sc", - "transaction", + "operation", ] [[package]] @@ -322,4 +322,5 @@ name = "utils" version = "0.0.0" dependencies = [ "multiversx-sc", + "operation", ] diff --git a/enshrine-esdt-safe/wasm/Cargo.lock b/enshrine-esdt-safe/wasm/Cargo.lock index 4412ebd7..422904ec 100644 --- a/enshrine-esdt-safe/wasm/Cargo.lock +++ b/enshrine-esdt-safe/wasm/Cargo.lock @@ -1,6 +1,6 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 +version = 4 [[package]] name = "arrayvec" @@ -26,8 +26,8 @@ version = "0.0.0" dependencies = [ "multiversx-sc", "multiversx-sc-modules", + "operation", "setup-phase", - "transaction", ] [[package]] @@ -37,8 +37,8 @@ dependencies = [ "chain-config", "multiversx-sc", "multiversx-sc-modules", + "operation", "proxies", - "transaction", "utils", ] @@ -57,11 +57,11 @@ dependencies = [ "max-bridged-amount-module", "multiversx-sc", "multiversx-sc-modules", + "operation", "proxies", "setup-phase", "token-handler", "token-whitelist", - "transaction", "tx-batch-module", "utils", ] @@ -79,8 +79,8 @@ name = "fee-market" version = "0.0.0" dependencies = [ "multiversx-sc", + "operation", "proxies", - "transaction", "utils", ] @@ -89,9 +89,9 @@ name = "header-verifier" version = "0.0.0" dependencies = [ "multiversx-sc", + "operation", "proxies", "setup-phase", - "transaction", ] [[package]] @@ -210,6 +210,13 @@ dependencies = [ "autocfg", ] +[[package]] +name = "operation" +version = "0.0.0" +dependencies = [ + "multiversx-sc", +] + [[package]] name = "proc-macro2" version = "1.0.86" @@ -224,7 +231,7 @@ name = "proxies" version = "0.1.0" dependencies = [ "multiversx-sc", - "transaction", + "operation", "tx-batch-module", ] @@ -277,8 +284,8 @@ version = "0.0.0" dependencies = [ "chain-factory", "multiversx-sc", + "operation", "proxies", - "transaction", ] [[package]] @@ -290,19 +297,12 @@ dependencies = [ "utils", ] -[[package]] -name = "transaction" -version = "0.0.0" -dependencies = [ - "multiversx-sc", -] - [[package]] name = "tx-batch-module" version = "0.0.0" dependencies = [ "multiversx-sc", - "transaction", + "operation", ] [[package]] @@ -322,4 +322,5 @@ name = "utils" version = "0.0.0" dependencies = [ "multiversx-sc", + "operation", ] diff --git a/esdt-safe/Cargo.toml b/esdt-safe/Cargo.toml index f6cde367..f808157a 100644 --- a/esdt-safe/Cargo.toml +++ b/esdt-safe/Cargo.toml @@ -8,8 +8,8 @@ publish = false [lib] path = "src/lib.rs" -[dependencies.transaction] -path = "../common/transaction" +[dependencies.operation] +path = "../common/operation" [dependencies.tx-batch-module] path = "../common/tx-batch-module" diff --git a/esdt-safe/interactor/Cargo.toml b/esdt-safe/interactor/Cargo.toml index c3ee7b51..f4a58e5f 100644 --- a/esdt-safe/interactor/Cargo.toml +++ b/esdt-safe/interactor/Cargo.toml @@ -18,8 +18,8 @@ toml = "0.8.6" [dependencies.esdt-safe] path = ".." -[dependencies.transaction] -path = "../../common/transaction" +[dependencies.operation] +path = "../../common/operation" [dependencies.proxies] path = "../../common/proxies" diff --git a/esdt-safe/interactor/src/esdt_safe_interactor.rs b/esdt-safe/interactor/src/esdt_safe_interactor.rs index f4aa661c..43581c90 100644 --- a/esdt-safe/interactor/src/esdt_safe_interactor.rs +++ b/esdt-safe/interactor/src/esdt_safe_interactor.rs @@ -12,9 +12,9 @@ use proxies::esdt_safe_proxy::EsdtSafeProxy; use proxies::fee_market_proxy::{FeeMarketProxy, FeeStruct, FeeType}; use proxies::header_verifier_proxy::HeaderverifierProxy; use proxies::testing_sc_proxy::TestingScProxy; -use transaction::aliases::{OptionalTransferData, PaymentsVec}; -use transaction::{Operation, OperationData}; -use transaction::{OperationEsdtPayment, TransferData}; +use operation::aliases::{OptionalTransferData, PaymentsVec}; +use operation::{Operation, OperationData}; +use operation::{OperationEsdtPayment, TransferData}; const FEE_MARKET_CODE_PATH: &str = "../../fee-market/output/fee-market.mxsc.json"; const HEADER_VERIFIER_CODE_PATH: &str = "../../header-verifier/output/header-verifier.mxsc.json"; diff --git a/esdt-safe/src/from_sovereign/transfer_tokens.rs b/esdt-safe/src/from_sovereign/transfer_tokens.rs index 1cac854a..c56c3cb7 100644 --- a/esdt-safe/src/from_sovereign/transfer_tokens.rs +++ b/esdt-safe/src/from_sovereign/transfer_tokens.rs @@ -1,6 +1,6 @@ use multiversx_sc::api::ESDT_MULTI_TRANSFER_FUNC_NAME; use proxies::header_verifier_proxy::HeaderverifierProxy; -use transaction::{ +use operation::{ aliases::GasLimit, Operation, OperationData, OperationEsdtPayment, OperationTuple, }; diff --git a/esdt-safe/src/lib.rs b/esdt-safe/src/lib.rs index 33039e33..c9de40ad 100644 --- a/esdt-safe/src/lib.rs +++ b/esdt-safe/src/lib.rs @@ -1,6 +1,6 @@ #![no_std] -use transaction::aliases::GasLimit; +use operation::aliases::GasLimit; multiversx_sc::imports!(); multiversx_sc::derive_imports!(); diff --git a/esdt-safe/src/to_sovereign/create_tx.rs b/esdt-safe/src/to_sovereign/create_tx.rs index 86f1aa4a..968455e3 100644 --- a/esdt-safe/src/to_sovereign/create_tx.rs +++ b/esdt-safe/src/to_sovereign/create_tx.rs @@ -1,7 +1,7 @@ use crate::from_sovereign::token_mapping; use multiversx_sc::storage::StorageKey; use proxies::fee_market_proxy::FeeMarketProxy; -use transaction::{ +use operation::{ aliases::{EventPaymentTuple, ExtractedFeeResult, GasLimit, OptionalValueTransferDataTuple}, OperationData, TransferData, }; diff --git a/esdt-safe/src/to_sovereign/events.rs b/esdt-safe/src/to_sovereign/events.rs index 15439c68..fe9b68b9 100644 --- a/esdt-safe/src/to_sovereign/events.rs +++ b/esdt-safe/src/to_sovereign/events.rs @@ -1,4 +1,4 @@ -use transaction::OperationData; +use operation::OperationData; multiversx_sc::imports!(); multiversx_sc::derive_imports!(); diff --git a/esdt-safe/tests/bridge_blackbox_tests.rs b/esdt-safe/tests/bridge_blackbox_tests.rs index 1f77d6ac..f5d8d287 100644 --- a/esdt-safe/tests/bridge_blackbox_tests.rs +++ b/esdt-safe/tests/bridge_blackbox_tests.rs @@ -14,7 +14,7 @@ use multiversx_sc_scenario::{ use proxies::esdt_safe_proxy::EsdtSafeProxy; use proxies::fee_market_proxy::{FeeMarketProxy, FeeStruct, FeeType}; use proxies::header_verifier_proxy::HeaderverifierProxy; -use transaction::{Operation, OperationData, OperationEsdtPayment}; +use operation::{Operation, OperationData, OperationEsdtPayment}; const BRIDGE_ADDRESS: TestSCAddress = TestSCAddress::new("bridge"); const BRIDGE_CODE_PATH: MxscPath = MxscPath::new("output/esdt-safe.mxsc.json"); diff --git a/esdt-safe/wasm-esdt-safe-full/Cargo.lock b/esdt-safe/wasm-esdt-safe-full/Cargo.lock index faee3be8..b6293dcb 100644 --- a/esdt-safe/wasm-esdt-safe-full/Cargo.lock +++ b/esdt-safe/wasm-esdt-safe-full/Cargo.lock @@ -1,6 +1,6 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 +version = 4 [[package]] name = "arrayvec" @@ -35,10 +35,10 @@ dependencies = [ "max-bridged-amount-module", "multiversx-sc", "multiversx-sc-modules", + "operation", "proxies", "setup-phase", "token-whitelist", - "transaction", "tx-batch-module", "utils", ] @@ -56,8 +56,8 @@ name = "fee-market" version = "0.0.0" dependencies = [ "multiversx-sc", + "operation", "proxies", - "transaction", "utils", ] @@ -66,9 +66,9 @@ name = "header-verifier" version = "0.0.0" dependencies = [ "multiversx-sc", + "operation", "proxies", "setup-phase", - "transaction", ] [[package]] @@ -187,6 +187,13 @@ dependencies = [ "autocfg", ] +[[package]] +name = "operation" +version = "0.0.0" +dependencies = [ + "multiversx-sc", +] + [[package]] name = "proc-macro2" version = "1.0.86" @@ -201,7 +208,7 @@ name = "proxies" version = "0.1.0" dependencies = [ "multiversx-sc", - "transaction", + "operation", "tx-batch-module", ] @@ -257,19 +264,12 @@ dependencies = [ "utils", ] -[[package]] -name = "transaction" -version = "0.0.0" -dependencies = [ - "multiversx-sc", -] - [[package]] name = "tx-batch-module" version = "0.0.0" dependencies = [ "multiversx-sc", - "transaction", + "operation", ] [[package]] @@ -289,4 +289,5 @@ name = "utils" version = "0.0.0" dependencies = [ "multiversx-sc", + "operation", ] diff --git a/esdt-safe/wasm-esdt-safe-view/Cargo.lock b/esdt-safe/wasm-esdt-safe-view/Cargo.lock index aee268f2..fc8e3cd7 100644 --- a/esdt-safe/wasm-esdt-safe-view/Cargo.lock +++ b/esdt-safe/wasm-esdt-safe-view/Cargo.lock @@ -1,6 +1,6 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 +version = 4 [[package]] name = "arrayvec" @@ -35,10 +35,10 @@ dependencies = [ "max-bridged-amount-module", "multiversx-sc", "multiversx-sc-modules", + "operation", "proxies", "setup-phase", "token-whitelist", - "transaction", "tx-batch-module", "utils", ] @@ -56,8 +56,8 @@ name = "fee-market" version = "0.0.0" dependencies = [ "multiversx-sc", + "operation", "proxies", - "transaction", "utils", ] @@ -66,9 +66,9 @@ name = "header-verifier" version = "0.0.0" dependencies = [ "multiversx-sc", + "operation", "proxies", "setup-phase", - "transaction", ] [[package]] @@ -187,6 +187,13 @@ dependencies = [ "autocfg", ] +[[package]] +name = "operation" +version = "0.0.0" +dependencies = [ + "multiversx-sc", +] + [[package]] name = "proc-macro2" version = "1.0.86" @@ -201,7 +208,7 @@ name = "proxies" version = "0.1.0" dependencies = [ "multiversx-sc", - "transaction", + "operation", "tx-batch-module", ] @@ -257,19 +264,12 @@ dependencies = [ "utils", ] -[[package]] -name = "transaction" -version = "0.0.0" -dependencies = [ - "multiversx-sc", -] - [[package]] name = "tx-batch-module" version = "0.0.0" dependencies = [ "multiversx-sc", - "transaction", + "operation", ] [[package]] @@ -289,4 +289,5 @@ name = "utils" version = "0.0.0" dependencies = [ "multiversx-sc", + "operation", ] diff --git a/esdt-safe/wasm/Cargo.lock b/esdt-safe/wasm/Cargo.lock index c26e8563..550d873c 100644 --- a/esdt-safe/wasm/Cargo.lock +++ b/esdt-safe/wasm/Cargo.lock @@ -1,6 +1,6 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 +version = 4 [[package]] name = "arrayvec" @@ -35,10 +35,10 @@ dependencies = [ "max-bridged-amount-module", "multiversx-sc", "multiversx-sc-modules", + "operation", "proxies", "setup-phase", "token-whitelist", - "transaction", "tx-batch-module", "utils", ] @@ -56,8 +56,8 @@ name = "fee-market" version = "0.0.0" dependencies = [ "multiversx-sc", + "operation", "proxies", - "transaction", "utils", ] @@ -66,9 +66,9 @@ name = "header-verifier" version = "0.0.0" dependencies = [ "multiversx-sc", + "operation", "proxies", "setup-phase", - "transaction", ] [[package]] @@ -187,6 +187,13 @@ dependencies = [ "autocfg", ] +[[package]] +name = "operation" +version = "0.0.0" +dependencies = [ + "multiversx-sc", +] + [[package]] name = "proc-macro2" version = "1.0.86" @@ -201,7 +208,7 @@ name = "proxies" version = "0.1.0" dependencies = [ "multiversx-sc", - "transaction", + "operation", "tx-batch-module", ] @@ -257,19 +264,12 @@ dependencies = [ "utils", ] -[[package]] -name = "transaction" -version = "0.0.0" -dependencies = [ - "multiversx-sc", -] - [[package]] name = "tx-batch-module" version = "0.0.0" dependencies = [ "multiversx-sc", - "transaction", + "operation", ] [[package]] @@ -289,4 +289,5 @@ name = "utils" version = "0.0.0" dependencies = [ "multiversx-sc", + "operation", ] diff --git a/fee-market/Cargo.toml b/fee-market/Cargo.toml index ee51e0c7..637e0b8d 100644 --- a/fee-market/Cargo.toml +++ b/fee-market/Cargo.toml @@ -11,8 +11,8 @@ path = "src/lib.rs" [dependencies.utils] path = "../common/utils" -[dependencies.transaction] -path = "../common/transaction" +[dependencies.operation] +path = "../common/operation" [dependencies.proxies] path = "../common/proxies" diff --git a/fee-market/src/subtract_fee.rs b/fee-market/src/subtract_fee.rs index 582adc2a..b46681ce 100644 --- a/fee-market/src/subtract_fee.rs +++ b/fee-market/src/subtract_fee.rs @@ -1,4 +1,4 @@ -use transaction::aliases::GasLimit; +use operation::aliases::GasLimit; use crate::fee_type::FeeType; diff --git a/fee-market/wasm-fee-market-view/Cargo.lock b/fee-market/wasm-fee-market-view/Cargo.lock index 41c355ee..13e00c9a 100644 --- a/fee-market/wasm-fee-market-view/Cargo.lock +++ b/fee-market/wasm-fee-market-view/Cargo.lock @@ -1,6 +1,6 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 +version = 4 [[package]] name = "arrayvec" @@ -31,8 +31,8 @@ name = "fee-market" version = "0.0.0" dependencies = [ "multiversx-sc", + "operation", "proxies", - "transaction", "utils", ] @@ -144,6 +144,13 @@ dependencies = [ "autocfg", ] +[[package]] +name = "operation" +version = "0.0.0" +dependencies = [ + "multiversx-sc", +] + [[package]] name = "proc-macro2" version = "1.0.86" @@ -158,7 +165,7 @@ name = "proxies" version = "0.1.0" dependencies = [ "multiversx-sc", - "transaction", + "operation", "tx-batch-module", ] @@ -198,19 +205,12 @@ dependencies = [ "unicode-ident", ] -[[package]] -name = "transaction" -version = "0.0.0" -dependencies = [ - "multiversx-sc", -] - [[package]] name = "tx-batch-module" version = "0.0.0" dependencies = [ "multiversx-sc", - "transaction", + "operation", ] [[package]] @@ -230,4 +230,5 @@ name = "utils" version = "0.0.0" dependencies = [ "multiversx-sc", + "operation", ] diff --git a/fee-market/wasm-fee-market/Cargo.lock b/fee-market/wasm-fee-market/Cargo.lock index a434f3c4..1261eba4 100644 --- a/fee-market/wasm-fee-market/Cargo.lock +++ b/fee-market/wasm-fee-market/Cargo.lock @@ -1,6 +1,6 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 +version = 4 [[package]] name = "arrayvec" @@ -31,8 +31,8 @@ name = "fee-market" version = "0.0.0" dependencies = [ "multiversx-sc", + "operation", "proxies", - "transaction", "utils", ] @@ -144,6 +144,13 @@ dependencies = [ "autocfg", ] +[[package]] +name = "operation" +version = "0.0.0" +dependencies = [ + "multiversx-sc", +] + [[package]] name = "proc-macro2" version = "1.0.86" @@ -158,7 +165,7 @@ name = "proxies" version = "0.1.0" dependencies = [ "multiversx-sc", - "transaction", + "operation", "tx-batch-module", ] @@ -198,19 +205,12 @@ dependencies = [ "unicode-ident", ] -[[package]] -name = "transaction" -version = "0.0.0" -dependencies = [ - "multiversx-sc", -] - [[package]] name = "tx-batch-module" version = "0.0.0" dependencies = [ "multiversx-sc", - "transaction", + "operation", ] [[package]] @@ -230,4 +230,5 @@ name = "utils" version = "0.0.0" dependencies = [ "multiversx-sc", + "operation", ] diff --git a/fee-market/wasm/Cargo.lock b/fee-market/wasm/Cargo.lock index a434f3c4..1261eba4 100644 --- a/fee-market/wasm/Cargo.lock +++ b/fee-market/wasm/Cargo.lock @@ -1,6 +1,6 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 +version = 4 [[package]] name = "arrayvec" @@ -31,8 +31,8 @@ name = "fee-market" version = "0.0.0" dependencies = [ "multiversx-sc", + "operation", "proxies", - "transaction", "utils", ] @@ -144,6 +144,13 @@ dependencies = [ "autocfg", ] +[[package]] +name = "operation" +version = "0.0.0" +dependencies = [ + "multiversx-sc", +] + [[package]] name = "proc-macro2" version = "1.0.86" @@ -158,7 +165,7 @@ name = "proxies" version = "0.1.0" dependencies = [ "multiversx-sc", - "transaction", + "operation", "tx-batch-module", ] @@ -198,19 +205,12 @@ dependencies = [ "unicode-ident", ] -[[package]] -name = "transaction" -version = "0.0.0" -dependencies = [ - "multiversx-sc", -] - [[package]] name = "tx-batch-module" version = "0.0.0" dependencies = [ "multiversx-sc", - "transaction", + "operation", ] [[package]] @@ -230,4 +230,5 @@ name = "utils" version = "0.0.0" dependencies = [ "multiversx-sc", + "operation", ] diff --git a/header-verifier/Cargo.toml b/header-verifier/Cargo.toml index d7f2a163..58b3e227 100644 --- a/header-verifier/Cargo.toml +++ b/header-verifier/Cargo.toml @@ -11,8 +11,8 @@ path = "src/lib.rs" [dependencies.multiversx-sc] version = "=0.54.5" -[dependencies.transaction] -path = "../common/transaction" +[dependencies.operation] +path = "../common/operation" [dependencies.proxies] path = "../common/proxies" diff --git a/header-verifier/wasm-header-verifier-full/Cargo.lock b/header-verifier/wasm-header-verifier-full/Cargo.lock index cf87ea22..00eefc1e 100644 --- a/header-verifier/wasm-header-verifier-full/Cargo.lock +++ b/header-verifier/wasm-header-verifier-full/Cargo.lock @@ -1,6 +1,6 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 +version = 4 [[package]] name = "arrayvec" @@ -31,9 +31,9 @@ name = "header-verifier" version = "0.0.0" dependencies = [ "multiversx-sc", + "operation", "proxies", "setup-phase", - "transaction", ] [[package]] @@ -144,6 +144,13 @@ dependencies = [ "autocfg", ] +[[package]] +name = "operation" +version = "0.0.0" +dependencies = [ + "multiversx-sc", +] + [[package]] name = "proc-macro2" version = "1.0.86" @@ -158,7 +165,7 @@ name = "proxies" version = "0.1.0" dependencies = [ "multiversx-sc", - "transaction", + "operation", "tx-batch-module", ] @@ -205,19 +212,12 @@ dependencies = [ "unicode-ident", ] -[[package]] -name = "transaction" -version = "0.0.0" -dependencies = [ - "multiversx-sc", -] - [[package]] name = "tx-batch-module" version = "0.0.0" dependencies = [ "multiversx-sc", - "transaction", + "operation", ] [[package]] diff --git a/header-verifier/wasm-multisig-view/Cargo.lock b/header-verifier/wasm-multisig-view/Cargo.lock index 44446d83..8c1acc67 100644 --- a/header-verifier/wasm-multisig-view/Cargo.lock +++ b/header-verifier/wasm-multisig-view/Cargo.lock @@ -1,6 +1,6 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 +version = 4 [[package]] name = "arrayvec" @@ -31,9 +31,9 @@ name = "header-verifier" version = "0.0.0" dependencies = [ "multiversx-sc", + "operation", "proxies", "setup-phase", - "transaction", ] [[package]] @@ -144,6 +144,13 @@ dependencies = [ "autocfg", ] +[[package]] +name = "operation" +version = "0.0.0" +dependencies = [ + "multiversx-sc", +] + [[package]] name = "proc-macro2" version = "1.0.86" @@ -158,7 +165,7 @@ name = "proxies" version = "0.1.0" dependencies = [ "multiversx-sc", - "transaction", + "operation", "tx-batch-module", ] @@ -205,19 +212,12 @@ dependencies = [ "unicode-ident", ] -[[package]] -name = "transaction" -version = "0.0.0" -dependencies = [ - "multiversx-sc", -] - [[package]] name = "tx-batch-module" version = "0.0.0" dependencies = [ "multiversx-sc", - "transaction", + "operation", ] [[package]] diff --git a/header-verifier/wasm/Cargo.lock b/header-verifier/wasm/Cargo.lock index 3859caf6..5bf9a73d 100644 --- a/header-verifier/wasm/Cargo.lock +++ b/header-verifier/wasm/Cargo.lock @@ -1,6 +1,6 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 +version = 4 [[package]] name = "arrayvec" @@ -31,9 +31,9 @@ name = "header-verifier" version = "0.0.0" dependencies = [ "multiversx-sc", + "operation", "proxies", "setup-phase", - "transaction", ] [[package]] @@ -144,6 +144,13 @@ dependencies = [ "autocfg", ] +[[package]] +name = "operation" +version = "0.0.0" +dependencies = [ + "multiversx-sc", +] + [[package]] name = "proc-macro2" version = "1.0.86" @@ -158,7 +165,7 @@ name = "proxies" version = "0.1.0" dependencies = [ "multiversx-sc", - "transaction", + "operation", "tx-batch-module", ] @@ -205,19 +212,12 @@ dependencies = [ "unicode-ident", ] -[[package]] -name = "transaction" -version = "0.0.0" -dependencies = [ - "multiversx-sc", -] - [[package]] name = "tx-batch-module" version = "0.0.0" dependencies = [ "multiversx-sc", - "transaction", + "operation", ] [[package]] diff --git a/sovereign-forge/Cargo.toml b/sovereign-forge/Cargo.toml index 6ed26821..98e89365 100644 --- a/sovereign-forge/Cargo.toml +++ b/sovereign-forge/Cargo.toml @@ -32,8 +32,8 @@ path = "../esdt-safe" [dependencies.proxies] path = "../common/proxies" -[dependencies.transaction] -path = "../common/transaction" +[dependencies.operation] +path = "../common/operation" [dependencies.setup-phase] path = "../common/setup-phase" diff --git a/sovereign-forge/src/common/sc_deploy.rs b/sovereign-forge/src/common/sc_deploy.rs index b2f44d5b..bfbc5bbe 100644 --- a/sovereign-forge/src/common/sc_deploy.rs +++ b/sovereign-forge/src/common/sc_deploy.rs @@ -1,7 +1,7 @@ use crate::err_msg; use multiversx_sc::types::{MultiValueEncoded, ReturnsResult}; use proxies::{chain_factory_proxy::ChainFactoryContractProxy, fee_market_proxy::FeeStruct}; -use transaction::aliases::StakeMultiArg; +use operation::aliases::StakeMultiArg; #[multiversx_sc::module] pub trait ScDeployModule: super::utils::UtilsModule + super::storage::StorageModule { diff --git a/sovereign-forge/src/phases.rs b/sovereign-forge/src/phases.rs index f39f35bf..0f292019 100644 --- a/sovereign-forge/src/phases.rs +++ b/sovereign-forge/src/phases.rs @@ -3,7 +3,7 @@ use core::ops::Deref; use proxies::fee_market_proxy::FeeStruct; use multiversx_sc::{require, types::MultiValueEncoded}; -use transaction::aliases::StakeMultiArg; +use operation::aliases::StakeMultiArg; use crate::common::{ self, diff --git a/sovereign-forge/tests/sovereign_forge_unit_tests.rs b/sovereign-forge/tests/sovereign_forge_unit_tests.rs index c735d6d8..72699919 100644 --- a/sovereign-forge/tests/sovereign_forge_unit_tests.rs +++ b/sovereign-forge/tests/sovereign_forge_unit_tests.rs @@ -16,7 +16,7 @@ use sovereign_forge::common::{ storage::StorageModule, utils::{ScArray, UtilsModule}, }; -use transaction::aliases::StakeMultiArg; +use operation::aliases::StakeMultiArg; const FORGE_ADDRESS: TestSCAddress = TestSCAddress::new("sovereign-forge"); const FORGE_CODE_PATH: MxscPath = MxscPath::new("output/sovereign-forge.mxsc.json"); diff --git a/sovereign-forge/wasm-sovereign-forge-full/Cargo.lock b/sovereign-forge/wasm-sovereign-forge-full/Cargo.lock index f46cced9..2fd47725 100644 --- a/sovereign-forge/wasm-sovereign-forge-full/Cargo.lock +++ b/sovereign-forge/wasm-sovereign-forge-full/Cargo.lock @@ -26,8 +26,8 @@ version = "0.0.0" dependencies = [ "multiversx-sc", "multiversx-sc-modules", + "operation", "setup-phase", - "transaction", ] [[package]] @@ -37,8 +37,8 @@ dependencies = [ "chain-config", "multiversx-sc", "multiversx-sc-modules", + "operation", "proxies", - "transaction", "utils", ] @@ -57,10 +57,10 @@ dependencies = [ "max-bridged-amount-module", "multiversx-sc", "multiversx-sc-modules", + "operation", "proxies", "setup-phase", "token-whitelist", - "transaction", "tx-batch-module", "utils", ] @@ -70,8 +70,8 @@ name = "fee-market" version = "0.0.0" dependencies = [ "multiversx-sc", + "operation", "proxies", - "transaction", "utils", ] @@ -80,9 +80,9 @@ name = "header-verifier" version = "0.0.0" dependencies = [ "multiversx-sc", + "operation", "proxies", "setup-phase", - "transaction", ] [[package]] @@ -201,6 +201,13 @@ dependencies = [ "autocfg", ] +[[package]] +name = "operation" +version = "0.0.0" +dependencies = [ + "multiversx-sc", +] + [[package]] name = "proc-macro2" version = "1.0.86" @@ -215,7 +222,7 @@ name = "proxies" version = "0.1.0" dependencies = [ "multiversx-sc", - "transaction", + "operation", "tx-batch-module", ] @@ -262,9 +269,9 @@ dependencies = [ "header-verifier", "multiversx-sc", "multiversx-sc-modules", + "operation", "proxies", "setup-phase", - "transaction", ] [[package]] @@ -295,19 +302,12 @@ dependencies = [ "utils", ] -[[package]] -name = "transaction" -version = "0.0.0" -dependencies = [ - "multiversx-sc", -] - [[package]] name = "tx-batch-module" version = "0.0.0" dependencies = [ "multiversx-sc", - "transaction", + "operation", ] [[package]] @@ -327,4 +327,5 @@ name = "utils" version = "0.0.0" dependencies = [ "multiversx-sc", + "operation", ] diff --git a/sovereign-forge/wasm-soveriegn-forge-view/Cargo.lock b/sovereign-forge/wasm-soveriegn-forge-view/Cargo.lock index 5dcedc03..d02b8c85 100644 --- a/sovereign-forge/wasm-soveriegn-forge-view/Cargo.lock +++ b/sovereign-forge/wasm-soveriegn-forge-view/Cargo.lock @@ -26,8 +26,8 @@ version = "0.0.0" dependencies = [ "multiversx-sc", "multiversx-sc-modules", + "operation", "setup-phase", - "transaction", ] [[package]] @@ -37,8 +37,8 @@ dependencies = [ "chain-config", "multiversx-sc", "multiversx-sc-modules", + "operation", "proxies", - "transaction", "utils", ] @@ -57,10 +57,10 @@ dependencies = [ "max-bridged-amount-module", "multiversx-sc", "multiversx-sc-modules", + "operation", "proxies", "setup-phase", "token-whitelist", - "transaction", "tx-batch-module", "utils", ] @@ -70,8 +70,8 @@ name = "fee-market" version = "0.0.0" dependencies = [ "multiversx-sc", + "operation", "proxies", - "transaction", "utils", ] @@ -80,9 +80,9 @@ name = "header-verifier" version = "0.0.0" dependencies = [ "multiversx-sc", + "operation", "proxies", "setup-phase", - "transaction", ] [[package]] @@ -201,6 +201,13 @@ dependencies = [ "autocfg", ] +[[package]] +name = "operation" +version = "0.0.0" +dependencies = [ + "multiversx-sc", +] + [[package]] name = "proc-macro2" version = "1.0.86" @@ -215,7 +222,7 @@ name = "proxies" version = "0.1.0" dependencies = [ "multiversx-sc", - "transaction", + "operation", "tx-batch-module", ] @@ -262,9 +269,9 @@ dependencies = [ "header-verifier", "multiversx-sc", "multiversx-sc-modules", + "operation", "proxies", "setup-phase", - "transaction", ] [[package]] @@ -295,19 +302,12 @@ dependencies = [ "utils", ] -[[package]] -name = "transaction" -version = "0.0.0" -dependencies = [ - "multiversx-sc", -] - [[package]] name = "tx-batch-module" version = "0.0.0" dependencies = [ "multiversx-sc", - "transaction", + "operation", ] [[package]] @@ -327,4 +327,5 @@ name = "utils" version = "0.0.0" dependencies = [ "multiversx-sc", + "operation", ] diff --git a/sovereign-forge/wasm/Cargo.lock b/sovereign-forge/wasm/Cargo.lock index bbb98c75..7b84889e 100644 --- a/sovereign-forge/wasm/Cargo.lock +++ b/sovereign-forge/wasm/Cargo.lock @@ -26,8 +26,8 @@ version = "0.0.0" dependencies = [ "multiversx-sc", "multiversx-sc-modules", + "operation", "setup-phase", - "transaction", ] [[package]] @@ -37,8 +37,8 @@ dependencies = [ "chain-config", "multiversx-sc", "multiversx-sc-modules", + "operation", "proxies", - "transaction", "utils", ] @@ -57,10 +57,10 @@ dependencies = [ "max-bridged-amount-module", "multiversx-sc", "multiversx-sc-modules", + "operation", "proxies", "setup-phase", "token-whitelist", - "transaction", "tx-batch-module", "utils", ] @@ -70,8 +70,8 @@ name = "fee-market" version = "0.0.0" dependencies = [ "multiversx-sc", + "operation", "proxies", - "transaction", "utils", ] @@ -80,9 +80,9 @@ name = "header-verifier" version = "0.0.0" dependencies = [ "multiversx-sc", + "operation", "proxies", "setup-phase", - "transaction", ] [[package]] @@ -201,6 +201,13 @@ dependencies = [ "autocfg", ] +[[package]] +name = "operation" +version = "0.0.0" +dependencies = [ + "multiversx-sc", +] + [[package]] name = "proc-macro2" version = "1.0.86" @@ -215,7 +222,7 @@ name = "proxies" version = "0.1.0" dependencies = [ "multiversx-sc", - "transaction", + "operation", "tx-batch-module", ] @@ -262,9 +269,9 @@ dependencies = [ "header-verifier", "multiversx-sc", "multiversx-sc-modules", + "operation", "proxies", "setup-phase", - "transaction", ] [[package]] @@ -295,19 +302,12 @@ dependencies = [ "utils", ] -[[package]] -name = "transaction" -version = "0.0.0" -dependencies = [ - "multiversx-sc", -] - [[package]] name = "tx-batch-module" version = "0.0.0" dependencies = [ "multiversx-sc", - "transaction", + "operation", ] [[package]] @@ -327,4 +327,5 @@ name = "utils" version = "0.0.0" dependencies = [ "multiversx-sc", + "operation", ] diff --git a/token-handler/Cargo.toml b/token-handler/Cargo.toml index d8f290f1..bf633e80 100644 --- a/token-handler/Cargo.toml +++ b/token-handler/Cargo.toml @@ -8,8 +8,8 @@ publish = false [lib] path = "src/lib.rs" -[dependencies.transaction] -path = "../common/transaction" +[dependencies.operation] +path = "../common/operation" [dependencies.proxies] path = "../common/proxies" diff --git a/token-handler/src/transfer_tokens.rs b/token-handler/src/transfer_tokens.rs index b903a2ab..af3624cb 100644 --- a/token-handler/src/transfer_tokens.rs +++ b/token-handler/src/transfer_tokens.rs @@ -5,8 +5,8 @@ use multiversx_sc::types::{ system_proxy, EsdtTokenPayment, ManagedArgBuffer, MultiValueEncoded, ToSelf, }; use multiversx_sc::types::{ManagedVec, TokenIdentifier}; -use transaction::aliases::GasLimit; -use transaction::{OperationEsdtPayment, TransferData}; +use operation::aliases::GasLimit; +use operation::{OperationEsdtPayment, TransferData}; use crate::common_storage; diff --git a/token-handler/tests/token_handler_blackbox_tests.rs b/token-handler/tests/token_handler_blackbox_tests.rs index b92a288b..7ce2c454 100644 --- a/token-handler/tests/token_handler_blackbox_tests.rs +++ b/token-handler/tests/token_handler_blackbox_tests.rs @@ -6,7 +6,7 @@ use multiversx_sc_scenario::{api::StaticApi, imports::MxscPath, ScenarioWorld}; use multiversx_sc_scenario::{ExpectError, ScenarioTxRun}; use proxies::chain_factory_proxy::ChainFactoryContractProxy; use proxies::token_handler_proxy::TokenHandlerProxy; -use transaction::{OperationEsdtPayment, TransferData}; +use operation::{OperationEsdtPayment, TransferData}; const TOKEN_HANDLER_ADDRESS: TestSCAddress = TestSCAddress::new("token-handler"); const TOKEN_HANDLER_CODE_PATH: MxscPath = MxscPath::new("output/token-handler.mxsc.json"); diff --git a/token-handler/wasm-token-handler-full/Cargo.lock b/token-handler/wasm-token-handler-full/Cargo.lock index 8f224a75..4c809959 100644 --- a/token-handler/wasm-token-handler-full/Cargo.lock +++ b/token-handler/wasm-token-handler-full/Cargo.lock @@ -1,6 +1,6 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 +version = 4 [[package]] name = "arrayvec" @@ -26,8 +26,8 @@ version = "0.0.0" dependencies = [ "multiversx-sc", "multiversx-sc-modules", + "operation", "setup-phase", - "transaction", ] [[package]] @@ -37,8 +37,8 @@ dependencies = [ "chain-config", "multiversx-sc", "multiversx-sc-modules", + "operation", "proxies", - "transaction", "utils", ] @@ -157,6 +157,13 @@ dependencies = [ "autocfg", ] +[[package]] +name = "operation" +version = "0.0.0" +dependencies = [ + "multiversx-sc", +] + [[package]] name = "proc-macro2" version = "1.0.86" @@ -171,7 +178,7 @@ name = "proxies" version = "0.1.0" dependencies = [ "multiversx-sc", - "transaction", + "operation", "tx-batch-module", ] @@ -224,8 +231,8 @@ version = "0.0.0" dependencies = [ "chain-factory", "multiversx-sc", + "operation", "proxies", - "transaction", ] [[package]] @@ -236,19 +243,12 @@ dependencies = [ "token-handler", ] -[[package]] -name = "transaction" -version = "0.0.0" -dependencies = [ - "multiversx-sc", -] - [[package]] name = "tx-batch-module" version = "0.0.0" dependencies = [ "multiversx-sc", - "transaction", + "operation", ] [[package]] @@ -268,4 +268,5 @@ name = "utils" version = "0.0.0" dependencies = [ "multiversx-sc", + "operation", ] diff --git a/token-handler/wasm-token-handler-view/Cargo.lock b/token-handler/wasm-token-handler-view/Cargo.lock index 13b9442c..3d133735 100644 --- a/token-handler/wasm-token-handler-view/Cargo.lock +++ b/token-handler/wasm-token-handler-view/Cargo.lock @@ -1,6 +1,6 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 +version = 4 [[package]] name = "arrayvec" @@ -26,8 +26,8 @@ version = "0.0.0" dependencies = [ "multiversx-sc", "multiversx-sc-modules", + "operation", "setup-phase", - "transaction", ] [[package]] @@ -37,8 +37,8 @@ dependencies = [ "chain-config", "multiversx-sc", "multiversx-sc-modules", + "operation", "proxies", - "transaction", "utils", ] @@ -157,6 +157,13 @@ dependencies = [ "autocfg", ] +[[package]] +name = "operation" +version = "0.0.0" +dependencies = [ + "multiversx-sc", +] + [[package]] name = "proc-macro2" version = "1.0.86" @@ -171,7 +178,7 @@ name = "proxies" version = "0.1.0" dependencies = [ "multiversx-sc", - "transaction", + "operation", "tx-batch-module", ] @@ -224,8 +231,8 @@ version = "0.0.0" dependencies = [ "chain-factory", "multiversx-sc", + "operation", "proxies", - "transaction", ] [[package]] @@ -236,19 +243,12 @@ dependencies = [ "token-handler", ] -[[package]] -name = "transaction" -version = "0.0.0" -dependencies = [ - "multiversx-sc", -] - [[package]] name = "tx-batch-module" version = "0.0.0" dependencies = [ "multiversx-sc", - "transaction", + "operation", ] [[package]] @@ -268,4 +268,5 @@ name = "utils" version = "0.0.0" dependencies = [ "multiversx-sc", + "operation", ] diff --git a/token-handler/wasm/Cargo.lock b/token-handler/wasm/Cargo.lock index f5c6a7b6..0218b3bc 100644 --- a/token-handler/wasm/Cargo.lock +++ b/token-handler/wasm/Cargo.lock @@ -1,6 +1,6 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 +version = 4 [[package]] name = "arrayvec" @@ -26,8 +26,8 @@ version = "0.0.0" dependencies = [ "multiversx-sc", "multiversx-sc-modules", + "operation", "setup-phase", - "transaction", ] [[package]] @@ -37,8 +37,8 @@ dependencies = [ "chain-config", "multiversx-sc", "multiversx-sc-modules", + "operation", "proxies", - "transaction", "utils", ] @@ -157,6 +157,13 @@ dependencies = [ "autocfg", ] +[[package]] +name = "operation" +version = "0.0.0" +dependencies = [ + "multiversx-sc", +] + [[package]] name = "proc-macro2" version = "1.0.86" @@ -171,7 +178,7 @@ name = "proxies" version = "0.1.0" dependencies = [ "multiversx-sc", - "transaction", + "operation", "tx-batch-module", ] @@ -224,8 +231,8 @@ version = "0.0.0" dependencies = [ "chain-factory", "multiversx-sc", + "operation", "proxies", - "transaction", ] [[package]] @@ -236,19 +243,12 @@ dependencies = [ "token-handler", ] -[[package]] -name = "transaction" -version = "0.0.0" -dependencies = [ - "multiversx-sc", -] - [[package]] name = "tx-batch-module" version = "0.0.0" dependencies = [ "multiversx-sc", - "transaction", + "operation", ] [[package]] @@ -268,4 +268,5 @@ name = "utils" version = "0.0.0" dependencies = [ "multiversx-sc", + "operation", ] From 4f78befc48fb6a444f92994627e53bd9920c0558 Mon Sep 17 00:00:00 2001 From: Andrei Baltariu Date: Wed, 8 Jan 2025 10:50:16 +0200 Subject: [PATCH 5/5] Updated Cargo.lock files Signed-off-by: Andrei Baltariu --- Cargo.lock | 1 - enshrine-esdt-safe/wasm-enshrine-esdt-safe-full/Cargo.lock | 3 +-- enshrine-esdt-safe/wasm-enshrine-esdt-safe-view/Cargo.lock | 3 +-- enshrine-esdt-safe/wasm/Cargo.lock | 3 +-- esdt-safe/wasm-esdt-safe-full/Cargo.lock | 1 - esdt-safe/wasm-esdt-safe-view/Cargo.lock | 1 - esdt-safe/wasm/Cargo.lock | 1 - fee-market/wasm-fee-market-view/Cargo.lock | 1 - fee-market/wasm-fee-market/Cargo.lock | 1 - fee-market/wasm/Cargo.lock | 1 - sovereign-forge/wasm-sovereign-forge-full/Cargo.lock | 1 - sovereign-forge/wasm-soveriegn-forge-view/Cargo.lock | 1 - sovereign-forge/wasm/Cargo.lock | 1 - token-handler/wasm-token-handler-full/Cargo.lock | 2 +- token-handler/wasm-token-handler-view/Cargo.lock | 2 +- token-handler/wasm/Cargo.lock | 2 +- 16 files changed, 6 insertions(+), 19 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 27963216..6930ade6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -643,7 +643,6 @@ dependencies = [ "operation", "proxies", "setup-phase", - "transaction", "utils", ] 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 446549ae..46e96fad 100644 --- a/enshrine-esdt-safe/wasm-enshrine-esdt-safe-full/Cargo.lock +++ b/enshrine-esdt-safe/wasm-enshrine-esdt-safe-full/Cargo.lock @@ -82,7 +82,6 @@ dependencies = [ "operation", "proxies", "setup-phase", - "transaction", "utils", ] @@ -286,8 +285,8 @@ version = "0.0.0" dependencies = [ "chain-factory", "multiversx-sc", - "operation", "multiversx-sc-modules", + "operation", "proxies", ] 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 37c6da81..3aed28de 100644 --- a/enshrine-esdt-safe/wasm-enshrine-esdt-safe-view/Cargo.lock +++ b/enshrine-esdt-safe/wasm-enshrine-esdt-safe-view/Cargo.lock @@ -82,7 +82,6 @@ dependencies = [ "operation", "proxies", "setup-phase", - "transaction", "utils", ] @@ -286,8 +285,8 @@ version = "0.0.0" dependencies = [ "chain-factory", "multiversx-sc", - "operation", "multiversx-sc-modules", + "operation", "proxies", ] diff --git a/enshrine-esdt-safe/wasm/Cargo.lock b/enshrine-esdt-safe/wasm/Cargo.lock index de85e6ab..7fbe49fc 100644 --- a/enshrine-esdt-safe/wasm/Cargo.lock +++ b/enshrine-esdt-safe/wasm/Cargo.lock @@ -82,7 +82,6 @@ dependencies = [ "operation", "proxies", "setup-phase", - "transaction", "utils", ] @@ -286,8 +285,8 @@ version = "0.0.0" dependencies = [ "chain-factory", "multiversx-sc", - "operation", "multiversx-sc-modules", + "operation", "proxies", ] diff --git a/esdt-safe/wasm-esdt-safe-full/Cargo.lock b/esdt-safe/wasm-esdt-safe-full/Cargo.lock index 2fb892b6..fa5e4fae 100644 --- a/esdt-safe/wasm-esdt-safe-full/Cargo.lock +++ b/esdt-safe/wasm-esdt-safe-full/Cargo.lock @@ -59,7 +59,6 @@ dependencies = [ "operation", "proxies", "setup-phase", - "transaction", "utils", ] diff --git a/esdt-safe/wasm-esdt-safe-view/Cargo.lock b/esdt-safe/wasm-esdt-safe-view/Cargo.lock index 792f635e..083dbcaa 100644 --- a/esdt-safe/wasm-esdt-safe-view/Cargo.lock +++ b/esdt-safe/wasm-esdt-safe-view/Cargo.lock @@ -59,7 +59,6 @@ dependencies = [ "operation", "proxies", "setup-phase", - "transaction", "utils", ] diff --git a/esdt-safe/wasm/Cargo.lock b/esdt-safe/wasm/Cargo.lock index f951d05d..3fd73e2b 100644 --- a/esdt-safe/wasm/Cargo.lock +++ b/esdt-safe/wasm/Cargo.lock @@ -59,7 +59,6 @@ dependencies = [ "operation", "proxies", "setup-phase", - "transaction", "utils", ] diff --git a/fee-market/wasm-fee-market-view/Cargo.lock b/fee-market/wasm-fee-market-view/Cargo.lock index 50cbc8a9..ae20d54b 100644 --- a/fee-market/wasm-fee-market-view/Cargo.lock +++ b/fee-market/wasm-fee-market-view/Cargo.lock @@ -34,7 +34,6 @@ dependencies = [ "operation", "proxies", "setup-phase", - "transaction", "utils", ] diff --git a/fee-market/wasm-fee-market/Cargo.lock b/fee-market/wasm-fee-market/Cargo.lock index f596270a..6b0ecadb 100644 --- a/fee-market/wasm-fee-market/Cargo.lock +++ b/fee-market/wasm-fee-market/Cargo.lock @@ -34,7 +34,6 @@ dependencies = [ "operation", "proxies", "setup-phase", - "transaction", "utils", ] diff --git a/fee-market/wasm/Cargo.lock b/fee-market/wasm/Cargo.lock index f596270a..6b0ecadb 100644 --- a/fee-market/wasm/Cargo.lock +++ b/fee-market/wasm/Cargo.lock @@ -34,7 +34,6 @@ dependencies = [ "operation", "proxies", "setup-phase", - "transaction", "utils", ] diff --git a/sovereign-forge/wasm-sovereign-forge-full/Cargo.lock b/sovereign-forge/wasm-sovereign-forge-full/Cargo.lock index f9dda96a..de35174c 100644 --- a/sovereign-forge/wasm-sovereign-forge-full/Cargo.lock +++ b/sovereign-forge/wasm-sovereign-forge-full/Cargo.lock @@ -73,7 +73,6 @@ dependencies = [ "operation", "proxies", "setup-phase", - "transaction", "utils", ] diff --git a/sovereign-forge/wasm-soveriegn-forge-view/Cargo.lock b/sovereign-forge/wasm-soveriegn-forge-view/Cargo.lock index b68e5abb..f1997c65 100644 --- a/sovereign-forge/wasm-soveriegn-forge-view/Cargo.lock +++ b/sovereign-forge/wasm-soveriegn-forge-view/Cargo.lock @@ -73,7 +73,6 @@ dependencies = [ "operation", "proxies", "setup-phase", - "transaction", "utils", ] diff --git a/sovereign-forge/wasm/Cargo.lock b/sovereign-forge/wasm/Cargo.lock index 22518a2d..b8c27dad 100644 --- a/sovereign-forge/wasm/Cargo.lock +++ b/sovereign-forge/wasm/Cargo.lock @@ -73,7 +73,6 @@ dependencies = [ "operation", "proxies", "setup-phase", - "transaction", "utils", ] diff --git a/token-handler/wasm-token-handler-full/Cargo.lock b/token-handler/wasm-token-handler-full/Cargo.lock index 81622042..92d9b364 100644 --- a/token-handler/wasm-token-handler-full/Cargo.lock +++ b/token-handler/wasm-token-handler-full/Cargo.lock @@ -231,8 +231,8 @@ version = "0.0.0" dependencies = [ "chain-factory", "multiversx-sc", - "operation", "multiversx-sc-modules", + "operation", "proxies", ] diff --git a/token-handler/wasm-token-handler-view/Cargo.lock b/token-handler/wasm-token-handler-view/Cargo.lock index 7d34d183..7b7ef58a 100644 --- a/token-handler/wasm-token-handler-view/Cargo.lock +++ b/token-handler/wasm-token-handler-view/Cargo.lock @@ -231,8 +231,8 @@ version = "0.0.0" dependencies = [ "chain-factory", "multiversx-sc", - "operation", "multiversx-sc-modules", + "operation", "proxies", ] diff --git a/token-handler/wasm/Cargo.lock b/token-handler/wasm/Cargo.lock index 3b3a7617..fc343720 100644 --- a/token-handler/wasm/Cargo.lock +++ b/token-handler/wasm/Cargo.lock @@ -231,8 +231,8 @@ version = "0.0.0" dependencies = [ "chain-factory", "multiversx-sc", - "operation", "multiversx-sc-modules", + "operation", "proxies", ]