[−][src]Struct sabre_sdk::SabreTransactionContext
Methods
impl SabreTransactionContext
[src]
pub fn new() -> SabreTransactionContext
[src]
Trait Implementations
impl TransactionContext for SabreTransactionContext
[src]
fn get_state_entries(
&self,
addresses: &[String]
) -> Result<Vec<(String, Vec<u8>)>, WasmSdkError>
[src]
&self,
addresses: &[String]
) -> Result<Vec<(String, Vec<u8>)>, WasmSdkError>
fn set_state_entries(
&self,
entries: Vec<(String, Vec<u8>)>
) -> Result<(), WasmSdkError>
[src]
&self,
entries: Vec<(String, Vec<u8>)>
) -> Result<(), WasmSdkError>
fn delete_state_entries(
&self,
addresses: &[String]
) -> Result<Vec<String>, WasmSdkError>
[src]
&self,
addresses: &[String]
) -> Result<Vec<String>, WasmSdkError>
fn get_state(
&self,
addresses: &[String]
) -> Result<Vec<(String, Vec<u8>)>, WasmSdkError>
[src]
&self,
addresses: &[String]
) -> Result<Vec<(String, Vec<u8>)>, WasmSdkError>
please use get_state_entry
or get_state_entries
instead
get_state queries the validator state for data at each of the addresses in the given list. The addresses that have been set are returned. get_state is deprecated, please use get_state_entry or get_state_entries instead Read more
fn get_state_entry(
&self,
address: &str
) -> Result<Option<Vec<u8>>, WasmSdkError>
[src]
&self,
address: &str
) -> Result<Option<Vec<u8>>, WasmSdkError>
get_state_entry queries the validator state for data at the address given. If the address is set, the data is returned. Read more
fn set_state(
&self,
entries: HashMap<String, Vec<u8>>
) -> Result<(), WasmSdkError>
[src]
&self,
entries: HashMap<String, Vec<u8>>
) -> Result<(), WasmSdkError>
please use set_state_entry
or set_state_entries
instead
set_state requests that each address in the provided map be set in validator state to its corresponding value. set_state is deprecated, please use set_state_entry to set_state_entries instead Read more
fn set_state_entry(
&self,
address: String,
data: Vec<u8>
) -> Result<(), WasmSdkError>
[src]
&self,
address: String,
data: Vec<u8>
) -> Result<(), WasmSdkError>
set_state_entry requests that the provided address is set in the validator state to its corresponding value. Read more
fn delete_state(
&self,
addresses: &[String]
) -> Result<Vec<String>, WasmSdkError>
[src]
&self,
addresses: &[String]
) -> Result<Vec<String>, WasmSdkError>
please use delete_state_entry
or delete_state_entries
instead
delete_state requests that each of the provided addresses be unset in validator state. A list of successfully deleted addresses is returned. delete_state is deprecated, please use delete_state_entry to delete_state_entries instead Read more
fn delete_state_entry(
&self,
address: &str
) -> Result<Option<String>, WasmSdkError>
[src]
&self,
address: &str
) -> Result<Option<String>, WasmSdkError>
delete_state_entry requests that the provided address be unset in validator state. A list of successfully deleted addresses is returned. Read more
Auto Trait Implementations
impl Send for SabreTransactionContext
impl Sync for SabreTransactionContext
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,