Struct near_runtime::ext::RuntimeExt [−][src]
Implementations
impl<'a> RuntimeExt<'a>
[src]
pub fn new(
trie_update: &'a mut TrieUpdate,
account_id: &'a AccountId,
signer_id: &'a AccountId,
signer_public_key: &'a PublicKey,
gas_price: Balance,
action_hash: &'a CryptoHash,
epoch_id: &'a EpochId,
prev_block_hash: &'a CryptoHash,
last_block_hash: &'a CryptoHash,
epoch_info_provider: &'a dyn EpochInfoProvider,
current_protocol_version: ProtocolVersion
) -> Self
[src]
trie_update: &'a mut TrieUpdate,
account_id: &'a AccountId,
signer_id: &'a AccountId,
signer_public_key: &'a PublicKey,
gas_price: Balance,
action_hash: &'a CryptoHash,
epoch_id: &'a EpochId,
prev_block_hash: &'a CryptoHash,
last_block_hash: &'a CryptoHash,
epoch_info_provider: &'a dyn EpochInfoProvider,
current_protocol_version: ProtocolVersion
) -> Self
pub fn account_id(&self) -> &'a AccountId
[src]
pub fn get_code(
&self,
code_hash: CryptoHash
) -> Result<Option<Arc<ContractCode>>, StorageError>
[src]
&self,
code_hash: CryptoHash
) -> Result<Option<Arc<ContractCode>>, StorageError>
pub fn create_storage_key(&self, key: &[u8]) -> TrieKey
[src]
pub fn into_receipts(self, predecessor_id: &AccountId) -> Vec<Receipt>
[src]
pub fn protocol_version(&self) -> ProtocolVersion
[src]
Trait Implementations
impl<'a> External for RuntimeExt<'a>
[src]
fn storage_set(&mut self, key: &[u8], value: &[u8]) -> Result<(), VMLogicError>
[src]
fn storage_get<'b>(
&'b self,
key: &[u8]
) -> Result<Option<Box<dyn ValuePtr + 'b>>, VMLogicError>
[src]
&'b self,
key: &[u8]
) -> Result<Option<Box<dyn ValuePtr + 'b>>, VMLogicError>
fn storage_remove(&mut self, key: &[u8]) -> Result<(), VMLogicError>
[src]
fn storage_has_key(&mut self, key: &[u8]) -> Result<bool, VMLogicError>
[src]
fn storage_remove_subtree(&mut self, prefix: &[u8]) -> Result<(), VMLogicError>
[src]
fn create_receipt(
&mut self,
receipt_indices: Vec<u64>,
receiver_id: String
) -> Result<u64, VMLogicError>
[src]
&mut self,
receipt_indices: Vec<u64>,
receiver_id: String
) -> Result<u64, VMLogicError>
fn append_action_create_account(
&mut self,
receipt_index: u64
) -> Result<(), VMLogicError>
[src]
&mut self,
receipt_index: u64
) -> Result<(), VMLogicError>
fn append_action_deploy_contract(
&mut self,
receipt_index: u64,
code: Vec<u8>
) -> Result<(), VMLogicError>
[src]
&mut self,
receipt_index: u64,
code: Vec<u8>
) -> Result<(), VMLogicError>
fn append_action_function_call(
&mut self,
receipt_index: u64,
method_name: Vec<u8>,
args: Vec<u8>,
attached_deposit: u128,
prepaid_gas: u64
) -> Result<(), VMLogicError>
[src]
&mut self,
receipt_index: u64,
method_name: Vec<u8>,
args: Vec<u8>,
attached_deposit: u128,
prepaid_gas: u64
) -> Result<(), VMLogicError>
fn append_action_transfer(
&mut self,
receipt_index: u64,
deposit: u128
) -> Result<(), VMLogicError>
[src]
&mut self,
receipt_index: u64,
deposit: u128
) -> Result<(), VMLogicError>
fn append_action_stake(
&mut self,
receipt_index: u64,
stake: u128,
public_key: Vec<u8>
) -> Result<(), VMLogicError>
[src]
&mut self,
receipt_index: u64,
stake: u128,
public_key: Vec<u8>
) -> Result<(), VMLogicError>
fn append_action_add_key_with_full_access(
&mut self,
receipt_index: u64,
public_key: Vec<u8>,
nonce: u64
) -> Result<(), VMLogicError>
[src]
&mut self,
receipt_index: u64,
public_key: Vec<u8>,
nonce: u64
) -> Result<(), VMLogicError>
fn append_action_add_key_with_function_call(
&mut self,
receipt_index: u64,
public_key: Vec<u8>,
nonce: u64,
allowance: Option<u128>,
receiver_id: AccountId,
method_names: Vec<Vec<u8>>
) -> Result<(), VMLogicError>
[src]
&mut self,
receipt_index: u64,
public_key: Vec<u8>,
nonce: u64,
allowance: Option<u128>,
receiver_id: AccountId,
method_names: Vec<Vec<u8>>
) -> Result<(), VMLogicError>
fn append_action_delete_key(
&mut self,
receipt_index: u64,
public_key: Vec<u8>
) -> Result<(), VMLogicError>
[src]
&mut self,
receipt_index: u64,
public_key: Vec<u8>
) -> Result<(), VMLogicError>
fn append_action_delete_account(
&mut self,
receipt_index: u64,
beneficiary_id: AccountId
) -> Result<(), VMLogicError>
[src]
&mut self,
receipt_index: u64,
beneficiary_id: AccountId
) -> Result<(), VMLogicError>
fn get_touched_nodes_count(&self) -> u64
[src]
fn reset_touched_nodes_counter(&mut self)
[src]
fn validator_stake(
&self,
account_id: &AccountId
) -> Result<Option<Balance>, VMLogicError>
[src]
&self,
account_id: &AccountId
) -> Result<Option<Balance>, VMLogicError>
fn validator_total_stake(&self) -> Result<Balance, VMLogicError>
[src]
Auto Trait Implementations
impl<'a> !RefUnwindSafe for RuntimeExt<'a>
impl<'a> !Send for RuntimeExt<'a>
impl<'a> !Sync for RuntimeExt<'a>
impl<'a> Unpin for RuntimeExt<'a>
impl<'a> !UnwindSafe for RuntimeExt<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> 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.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,