Trait near_runtime::adapter::ViewRuntimeAdapter[][src]

pub trait ViewRuntimeAdapter {
    fn view_account(
        &self,
        shard_id: ShardId,
        state_root: MerkleHash,
        account_id: &AccountId
    ) -> Result<Account, Box<dyn Error>>;
fn view_contract_code(
        &self,
        shard_id: ShardId,
        state_root: MerkleHash,
        account_id: &AccountId
    ) -> Result<ContractCode, Box<dyn Error>>;
fn call_function(
        &self,
        shard_id: ShardId,
        state_root: MerkleHash,
        height: BlockHeight,
        block_timestamp: u64,
        last_block_hash: &CryptoHash,
        block_hash: &CryptoHash,
        epoch_height: EpochHeight,
        epoch_id: &EpochId,
        contract_id: &AccountId,
        method_name: &str,
        args: &[u8],
        logs: &mut Vec<String>,
        epoch_info_provider: &dyn EpochInfoProvider,
        current_protocol_version: ProtocolVersion
    ) -> Result<Vec<u8>, Box<dyn Error>>;
fn view_access_key(
        &self,
        shard_id: ShardId,
        state_root: MerkleHash,
        account_id: &AccountId,
        public_key: &PublicKey
    ) -> Result<AccessKey, Box<dyn Error>>;
fn view_access_keys(
        &self,
        shard_id: ShardId,
        state_root: MerkleHash,
        account_id: &AccountId
    ) -> Result<Vec<(PublicKey, AccessKey)>, Box<dyn Error>>;
fn view_state(
        &self,
        shard_id: ShardId,
        state_root: MerkleHash,
        account_id: &AccountId,
        prefix: &[u8]
    ) -> Result<ViewStateResult, Box<dyn Error>>; }

Adapter for querying runtime.

Required methods

fn view_account(
    &self,
    shard_id: ShardId,
    state_root: MerkleHash,
    account_id: &AccountId
) -> Result<Account, Box<dyn Error>>
[src]

fn view_contract_code(
    &self,
    shard_id: ShardId,
    state_root: MerkleHash,
    account_id: &AccountId
) -> Result<ContractCode, Box<dyn Error>>
[src]

fn call_function(
    &self,
    shard_id: ShardId,
    state_root: MerkleHash,
    height: BlockHeight,
    block_timestamp: u64,
    last_block_hash: &CryptoHash,
    block_hash: &CryptoHash,
    epoch_height: EpochHeight,
    epoch_id: &EpochId,
    contract_id: &AccountId,
    method_name: &str,
    args: &[u8],
    logs: &mut Vec<String>,
    epoch_info_provider: &dyn EpochInfoProvider,
    current_protocol_version: ProtocolVersion
) -> Result<Vec<u8>, Box<dyn Error>>
[src]

fn view_access_key(
    &self,
    shard_id: ShardId,
    state_root: MerkleHash,
    account_id: &AccountId,
    public_key: &PublicKey
) -> Result<AccessKey, Box<dyn Error>>
[src]

fn view_access_keys(
    &self,
    shard_id: ShardId,
    state_root: MerkleHash,
    account_id: &AccountId
) -> Result<Vec<(PublicKey, AccessKey)>, Box<dyn Error>>
[src]

fn view_state(
    &self,
    shard_id: ShardId,
    state_root: MerkleHash,
    account_id: &AccountId,
    prefix: &[u8]
) -> Result<ViewStateResult, Box<dyn Error>>
[src]

Loading content...

Implementors

Loading content...