From a31a3b25baba6cc4a2ef0a416a86b7137e1f6793 Mon Sep 17 00:00:00 2001 From: Andrei Marinica Date: Wed, 29 May 2024 23:22:37 +0300 Subject: [PATCH] gateway proxy mod rename --- framework/snippets/src/account_tool.rs | 2 +- framework/snippets/src/interactor.rs | 2 +- sdk/core/examples/account.rs | 2 +- sdk/core/examples/account_storage.rs | 2 +- sdk/core/examples/get_esdt_tokens.rs | 2 +- sdk/core/examples/get_hyper_block_by_hash.rs | 2 +- sdk/core/examples/get_hyper_block_by_nonce.rs | 2 +- sdk/core/examples/get_hyper_block_latest.rs | 2 +- sdk/core/examples/get_network_config.rs | 2 +- sdk/core/examples/get_network_economics.rs | 2 +- sdk/core/examples/sign_tx.rs | 2 +- sdk/core/examples/sign_txs.rs | 2 +- sdk/core/examples/tx_cost.rs | 2 +- sdk/core/examples/tx_default_args.rs | 2 +- sdk/core/examples/tx_info.rs | 2 +- sdk/core/examples/vm_query.rs | 2 +- sdk/core/src/{blockchain.rs => gateway.rs} | 0 sdk/core/src/{blockchain => gateway}/gateway_account.rs | 0 sdk/core/src/{blockchain => gateway}/gateway_block.rs | 0 sdk/core/src/{blockchain => gateway}/gateway_network.rs | 0 sdk/core/src/{blockchain => gateway}/gateway_proxy.rs | 0 sdk/core/src/{blockchain => gateway}/gateway_tx.rs | 0 sdk/core/src/{blockchain => gateway}/gateway_tx_retrieve.rs | 0 sdk/core/src/lib.rs | 2 +- 24 files changed, 17 insertions(+), 17 deletions(-) rename sdk/core/src/{blockchain.rs => gateway.rs} (100%) rename sdk/core/src/{blockchain => gateway}/gateway_account.rs (100%) rename sdk/core/src/{blockchain => gateway}/gateway_block.rs (100%) rename sdk/core/src/{blockchain => gateway}/gateway_network.rs (100%) rename sdk/core/src/{blockchain => gateway}/gateway_proxy.rs (100%) rename sdk/core/src/{blockchain => gateway}/gateway_tx.rs (100%) rename sdk/core/src/{blockchain => gateway}/gateway_tx_retrieve.rs (100%) diff --git a/framework/snippets/src/account_tool.rs b/framework/snippets/src/account_tool.rs index 401e68fd9c..b10baf4a80 100644 --- a/framework/snippets/src/account_tool.rs +++ b/framework/snippets/src/account_tool.rs @@ -4,8 +4,8 @@ use multiversx_sc_scenario::{ scenario_model::{Account, BytesKey, BytesValue, Scenario, SetStateStep, Step}, }; use multiversx_sdk::{ - blockchain::GatewayProxy, data::{address::Address, esdt::EsdtBalance}, + gateway::GatewayProxy, }; use std::collections::{BTreeMap, HashMap}; diff --git a/framework/snippets/src/interactor.rs b/framework/snippets/src/interactor.rs index 6daa44b6c8..bb38873afe 100644 --- a/framework/snippets/src/interactor.rs +++ b/framework/snippets/src/interactor.rs @@ -5,8 +5,8 @@ use multiversx_sc_scenario::{ scenario_model::AddressValue, }; use multiversx_sdk::{ - blockchain::GatewayProxy, data::{address::Address as ErdrsAddress, network_config::NetworkConfig}, + gateway::GatewayProxy, wallet::Wallet, }; use std::{ diff --git a/sdk/core/examples/account.rs b/sdk/core/examples/account.rs index 16a9e2d8a9..5e9456f4b0 100644 --- a/sdk/core/examples/account.rs +++ b/sdk/core/examples/account.rs @@ -1,6 +1,6 @@ use multiversx_sdk::{ - blockchain::{GatewayProxy, DEVNET_GATEWAY}, data::address::Address, + gateway::{GatewayProxy, DEVNET_GATEWAY}, }; #[tokio::main] diff --git a/sdk/core/examples/account_storage.rs b/sdk/core/examples/account_storage.rs index c081e67e58..7693c26e08 100644 --- a/sdk/core/examples/account_storage.rs +++ b/sdk/core/examples/account_storage.rs @@ -1,6 +1,6 @@ use multiversx_sdk::{ - blockchain::{GatewayProxy, DEVNET_GATEWAY}, data::address::Address, + gateway::{GatewayProxy, DEVNET_GATEWAY}, }; #[tokio::main] diff --git a/sdk/core/examples/get_esdt_tokens.rs b/sdk/core/examples/get_esdt_tokens.rs index 5dc62b5098..fac424da27 100644 --- a/sdk/core/examples/get_esdt_tokens.rs +++ b/sdk/core/examples/get_esdt_tokens.rs @@ -1,6 +1,6 @@ use multiversx_sdk::{ - blockchain::{GatewayProxy, DEVNET_GATEWAY}, data::address::Address, + gateway::{GatewayProxy, DEVNET_GATEWAY}, }; #[tokio::main] diff --git a/sdk/core/examples/get_hyper_block_by_hash.rs b/sdk/core/examples/get_hyper_block_by_hash.rs index b0f0d34a2d..1d7f969ce1 100644 --- a/sdk/core/examples/get_hyper_block_by_hash.rs +++ b/sdk/core/examples/get_hyper_block_by_hash.rs @@ -1,4 +1,4 @@ -use multiversx_sdk::blockchain::{GatewayProxy, DEVNET_GATEWAY}; +use multiversx_sdk::gateway::{GatewayProxy, DEVNET_GATEWAY}; #[tokio::main] async fn main() { diff --git a/sdk/core/examples/get_hyper_block_by_nonce.rs b/sdk/core/examples/get_hyper_block_by_nonce.rs index e033b57156..575255d6c9 100644 --- a/sdk/core/examples/get_hyper_block_by_nonce.rs +++ b/sdk/core/examples/get_hyper_block_by_nonce.rs @@ -1,4 +1,4 @@ -use multiversx_sdk::blockchain::{GatewayProxy, DEVNET_GATEWAY}; +use multiversx_sdk::gateway::{GatewayProxy, DEVNET_GATEWAY}; #[tokio::main] async fn main() { diff --git a/sdk/core/examples/get_hyper_block_latest.rs b/sdk/core/examples/get_hyper_block_latest.rs index 1ab8d51350..934358fdbf 100644 --- a/sdk/core/examples/get_hyper_block_latest.rs +++ b/sdk/core/examples/get_hyper_block_latest.rs @@ -1,4 +1,4 @@ -use multiversx_sdk::blockchain::{GatewayProxy, DEVNET_GATEWAY}; +use multiversx_sdk::gateway::{GatewayProxy, DEVNET_GATEWAY}; #[tokio::main] async fn main() { diff --git a/sdk/core/examples/get_network_config.rs b/sdk/core/examples/get_network_config.rs index 1c9ada08c6..d53e0e7ce1 100644 --- a/sdk/core/examples/get_network_config.rs +++ b/sdk/core/examples/get_network_config.rs @@ -1,4 +1,4 @@ -use multiversx_sdk::blockchain::{GatewayProxy, DEVNET_GATEWAY}; +use multiversx_sdk::gateway::{GatewayProxy, DEVNET_GATEWAY}; #[tokio::main] async fn main() { diff --git a/sdk/core/examples/get_network_economics.rs b/sdk/core/examples/get_network_economics.rs index 568c3b8378..bb0410c8f0 100644 --- a/sdk/core/examples/get_network_economics.rs +++ b/sdk/core/examples/get_network_economics.rs @@ -1,4 +1,4 @@ -use multiversx_sdk::blockchain::{GatewayProxy, DEVNET_GATEWAY}; +use multiversx_sdk::gateway::{GatewayProxy, DEVNET_GATEWAY}; #[tokio::main] async fn main() { diff --git a/sdk/core/examples/sign_tx.rs b/sdk/core/examples/sign_tx.rs index e9e7da0225..aa3f977321 100644 --- a/sdk/core/examples/sign_tx.rs +++ b/sdk/core/examples/sign_tx.rs @@ -1,6 +1,6 @@ use multiversx_sdk::{ - blockchain::{GatewayProxy, DEVNET_GATEWAY}, data::transaction::Transaction, + gateway::{GatewayProxy, DEVNET_GATEWAY}, wallet::Wallet, }; diff --git a/sdk/core/examples/sign_txs.rs b/sdk/core/examples/sign_txs.rs index 672cf9f08f..2860d528f7 100644 --- a/sdk/core/examples/sign_txs.rs +++ b/sdk/core/examples/sign_txs.rs @@ -1,6 +1,6 @@ use multiversx_sdk::{ - blockchain::{GatewayProxy, DEVNET_GATEWAY}, data::transaction::Transaction, + gateway::{GatewayProxy, DEVNET_GATEWAY}, wallet::Wallet, }; diff --git a/sdk/core/examples/tx_cost.rs b/sdk/core/examples/tx_cost.rs index 0e05be8420..a982b130ec 100644 --- a/sdk/core/examples/tx_cost.rs +++ b/sdk/core/examples/tx_cost.rs @@ -1,6 +1,6 @@ use multiversx_sdk::{ - blockchain::{GatewayProxy, DEVNET_GATEWAY}, data::{address::Address, transaction::Transaction}, + gateway::{GatewayProxy, DEVNET_GATEWAY}, utils::base64_encode, }; diff --git a/sdk/core/examples/tx_default_args.rs b/sdk/core/examples/tx_default_args.rs index 45dd3b9473..01b91aa5a6 100644 --- a/sdk/core/examples/tx_default_args.rs +++ b/sdk/core/examples/tx_default_args.rs @@ -1,6 +1,6 @@ use multiversx_sdk::{ - blockchain::{GatewayProxy, DEVNET_GATEWAY}, data::address::Address, + gateway::{GatewayProxy, DEVNET_GATEWAY}, }; #[tokio::main] diff --git a/sdk/core/examples/tx_info.rs b/sdk/core/examples/tx_info.rs index bfad3fb1ca..f7126daca9 100644 --- a/sdk/core/examples/tx_info.rs +++ b/sdk/core/examples/tx_info.rs @@ -1,4 +1,4 @@ -use multiversx_sdk::blockchain::{GatewayProxy, DEVNET_GATEWAY}; +use multiversx_sdk::gateway::{GatewayProxy, DEVNET_GATEWAY}; #[tokio::main] async fn main() { diff --git a/sdk/core/examples/vm_query.rs b/sdk/core/examples/vm_query.rs index df7d3b43ee..d07f49b856 100644 --- a/sdk/core/examples/vm_query.rs +++ b/sdk/core/examples/vm_query.rs @@ -1,6 +1,6 @@ use multiversx_sdk::{ - blockchain::{GatewayProxy, DEVNET_GATEWAY}, data::{address::Address, vm::VmValueRequest}, + gateway::{GatewayProxy, DEVNET_GATEWAY}, wallet::Wallet, }; diff --git a/sdk/core/src/blockchain.rs b/sdk/core/src/gateway.rs similarity index 100% rename from sdk/core/src/blockchain.rs rename to sdk/core/src/gateway.rs diff --git a/sdk/core/src/blockchain/gateway_account.rs b/sdk/core/src/gateway/gateway_account.rs similarity index 100% rename from sdk/core/src/blockchain/gateway_account.rs rename to sdk/core/src/gateway/gateway_account.rs diff --git a/sdk/core/src/blockchain/gateway_block.rs b/sdk/core/src/gateway/gateway_block.rs similarity index 100% rename from sdk/core/src/blockchain/gateway_block.rs rename to sdk/core/src/gateway/gateway_block.rs diff --git a/sdk/core/src/blockchain/gateway_network.rs b/sdk/core/src/gateway/gateway_network.rs similarity index 100% rename from sdk/core/src/blockchain/gateway_network.rs rename to sdk/core/src/gateway/gateway_network.rs diff --git a/sdk/core/src/blockchain/gateway_proxy.rs b/sdk/core/src/gateway/gateway_proxy.rs similarity index 100% rename from sdk/core/src/blockchain/gateway_proxy.rs rename to sdk/core/src/gateway/gateway_proxy.rs diff --git a/sdk/core/src/blockchain/gateway_tx.rs b/sdk/core/src/gateway/gateway_tx.rs similarity index 100% rename from sdk/core/src/blockchain/gateway_tx.rs rename to sdk/core/src/gateway/gateway_tx.rs diff --git a/sdk/core/src/blockchain/gateway_tx_retrieve.rs b/sdk/core/src/gateway/gateway_tx_retrieve.rs similarity index 100% rename from sdk/core/src/blockchain/gateway_tx_retrieve.rs rename to sdk/core/src/gateway/gateway_tx_retrieve.rs diff --git a/sdk/core/src/lib.rs b/sdk/core/src/lib.rs index f37f2197e5..3a1db99fd7 100644 --- a/sdk/core/src/lib.rs +++ b/sdk/core/src/lib.rs @@ -1,5 +1,5 @@ -pub mod blockchain; pub mod crypto; pub mod data; +pub mod gateway; pub mod utils; pub mod wallet;