Struct novax_executor::QueryNetworkExecutor
source · pub struct QueryNetworkExecutor<Proxy: BlockchainProxy> {
pub gateway_url: String,
/* private fields */
}Expand description
A structure to execute smart contract queries on a real blockchain environment via a specified gateway.
This executor utilizes a blockchain proxy to communicate with the blockchain network and execute the queries.
Fields§
§gateway_url: StringThe URL of the gateway to the blockchain network.
Implementations§
source§impl<Proxy: BlockchainProxy> QueryNetworkExecutor<Proxy>
impl<Proxy: BlockchainProxy> QueryNetworkExecutor<Proxy>
Trait Implementations§
source§impl<Proxy: Clone + BlockchainProxy> Clone for QueryNetworkExecutor<Proxy>
impl<Proxy: Clone + BlockchainProxy> Clone for QueryNetworkExecutor<Proxy>
source§fn clone(&self) -> QueryNetworkExecutor<Proxy>
fn clone(&self) -> QueryNetworkExecutor<Proxy>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<Proxy: Debug + BlockchainProxy> Debug for QueryNetworkExecutor<Proxy>
impl<Proxy: Debug + BlockchainProxy> Debug for QueryNetworkExecutor<Proxy>
source§impl<Proxy: BlockchainProxy> QueryExecutor for QueryNetworkExecutor<Proxy>
impl<Proxy: BlockchainProxy> QueryExecutor for QueryNetworkExecutor<Proxy>
source§fn execute<'life0, 'life1, 'async_trait, OutputManaged>(
&'life0 self,
to: &'life1 Address,
function: String,
arguments: Vec<Vec<u8>>,
egld_value: BigUint,
esdt_transfers: Vec<TokenTransfer>,
) -> Pin<Box<dyn Future<Output = Result<OutputManaged::Native, ExecutorError>> + Send + 'async_trait>>where
OutputManaged: TopDecodeMulti + NativeConvertible + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn execute<'life0, 'life1, 'async_trait, OutputManaged>(
&'life0 self,
to: &'life1 Address,
function: String,
arguments: Vec<Vec<u8>>,
egld_value: BigUint,
esdt_transfers: Vec<TokenTransfer>,
) -> Pin<Box<dyn Future<Output = Result<OutputManaged::Native, ExecutorError>> + Send + 'async_trait>>where
OutputManaged: TopDecodeMulti + NativeConvertible + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Executes a smart contract query on the real blockchain environment.
Auto Trait Implementations§
impl<Proxy> Freeze for QueryNetworkExecutor<Proxy>
impl<Proxy> RefUnwindSafe for QueryNetworkExecutor<Proxy>where
Proxy: RefUnwindSafe,
impl<Proxy> Send for QueryNetworkExecutor<Proxy>
impl<Proxy> Sync for QueryNetworkExecutor<Proxy>
impl<Proxy> Unpin for QueryNetworkExecutor<Proxy>where
Proxy: Unpin,
impl<Proxy> UnwindSafe for QueryNetworkExecutor<Proxy>where
Proxy: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> InterpretableFrom<&T> for Twhere
T: Clone,
impl<T> InterpretableFrom<&T> for Twhere
T: Clone,
fn interpret_from(from: &T, _context: &InterpreterContext) -> T
source§impl<T> InterpretableFrom<T> for T
impl<T> InterpretableFrom<T> for T
fn interpret_from(from: T, _context: &InterpreterContext) -> T
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more