diff --git a/contracts/examples/ping-pong-egld/dapp/src/interactor.rs b/contracts/examples/ping-pong-egld/dapp/src/interactor.rs
index 5e2479e303..a09df58828 100644
--- a/contracts/examples/ping-pong-egld/dapp/src/interactor.rs
+++ b/contracts/examples/ping-pong-egld/dapp/src/interactor.rs
@@ -2,7 +2,7 @@ use imports::{Address, Bech32Address, BytesValue};
use multiversx_sc_snippets_dapp::*;
use serde::{Deserialize, Serialize};
-const GATEWAY: &str = sdk::gateway::DEVNET_GATEWAY;
+const GATEWAY: &str = sdk::core::gateway::DEVNET_GATEWAY;
const CONTRACT_ADDRESS: &str = "erd1qqqqqqqqqqqqqpgq6tqvj5f59xrgxwrtwy30elgpu7l4zrv6d8ssnjdwxq";
const PING_PONG_CODE: &[u8] = include_bytes!("../ping-pong-egld.wasm");
diff --git a/framework/snippets-dapp/src/account_tool.rs b/framework/snippets-dapp/src/account_tool.rs
index b36df31183..d0c12f834f 100644
--- a/framework/snippets-dapp/src/account_tool.rs
+++ b/framework/snippets-dapp/src/account_tool.rs
@@ -5,7 +5,7 @@ use multiversx_sc_scenario::{
};
use multiversx_sdk_wbg::{
data::{esdt::EsdtBalance, sdk_address::SdkAddress},
- gateway::GatewayProxy,
+ GatewayDappProxy,
};
use std::collections::{BTreeMap, HashMap};
@@ -17,7 +17,7 @@ pub async fn print_account_as_scenario_set_state(
api_string: String,
address_bech32_string: String,
) {
- let api = GatewayProxy::new(api_string);
+ let api = GatewayDappProxy::new(api_string);
let address = Bech32Address::from_bech32_string(address_bech32_string);
let set_state = retrieve_account_as_scenario_set_state(&api, &address).await;
let scenario = build_scenario(set_state);
@@ -34,7 +34,7 @@ fn build_scenario(set_state: SetStateStep) -> Scenario {
}
pub async fn retrieve_account_as_scenario_set_state(
- api: &GatewayProxy,
+ api: &GatewayDappProxy,
address: &Bech32Address,
) -> SetStateStep {
let sdk_address = SdkAddress::from_bech32_string(address.to_bech32_str()).unwrap();
diff --git a/framework/snippets-dapp/src/interactor.rs b/framework/snippets-dapp/src/interactor.rs
index d8edb7fdd8..7fba364dc3 100644
--- a/framework/snippets-dapp/src/interactor.rs
+++ b/framework/snippets-dapp/src/interactor.rs
@@ -7,8 +7,8 @@ use multiversx_sc_scenario::{
};
use multiversx_sdk_wbg::{
data::{network_config::NetworkConfig, sdk_address::SdkAddress as ErdrsAddress},
- gateway::GatewayProxy,
wallet::Wallet,
+ GatewayDappProxy,
};
use std::{
collections::HashMap,
@@ -22,7 +22,7 @@ use crate::{account_tool::retrieve_account_as_scenario_set_state, Sender};
pub const INTERACTOR_SCENARIO_TRACE_PATH: &str = "interactor_trace.scen.json";
pub struct Interactor {
- pub proxy: GatewayProxy,
+ pub proxy: GatewayDappProxy,
pub network_config: NetworkConfig,
pub sender_map: HashMap
,
@@ -51,7 +51,7 @@ async fn sleep(seconds: u32) {
impl Interactor {
pub async fn new(gateway_url: &str) -> Self {
- let proxy = GatewayProxy::new(gateway_url.to_string());
+ let proxy = GatewayDappProxy::new(gateway_url.to_string());
let network_config = proxy.get_network_config().await.unwrap();
Self {
proxy,
diff --git a/sdk/core/src/gateway.rs b/sdk/core/src/gateway.rs
index b158a0ef2b..565abfe6e0 100644
--- a/sdk/core/src/gateway.rs
+++ b/sdk/core/src/gateway.rs
@@ -68,12 +68,12 @@ pub enum GatewayRequestType {
}
/// Models requests to the gateway.
-pub trait GatewayRequest: Send {
+pub trait GatewayRequest {
type Payload: serde::ser::Serialize + ?Sized;
type DecodedJson: serde::de::DeserializeOwned;
- type Result: Send;
+ type Result;
fn request_type(&self) -> GatewayRequestType;
@@ -86,18 +86,18 @@ pub trait GatewayRequest: Send {
fn process_json(&self, decoded: Self::DecodedJson) -> anyhow::Result;
}
-pub trait GatewayAsyncService: Send {
+pub trait GatewayAsyncService {
/// Keeps track of elapsed time.
type Instant;
fn request(
&self,
request: G,
- ) -> impl std::future::Future