Struct near_runtime::ext::RuntimeExt[][src]

pub struct RuntimeExt<'a> { /* fields omitted */ }

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]

pub fn account_id(&self) -> &'a AccountId[src]

pub fn get_code(
    &self,
    code_hash: CryptoHash
) -> Result<Option<Arc<ContractCode>>, StorageError>
[src]

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]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

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]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,