Trait vapcore_secretstore::SecretStoreChain [−][src]
Blockchain representation for Secret Store
Required methods
fn add_listener(&self, target: Arc<dyn NewBlocksNotify>)
[src]
Adds listener for chain’s NewBlocks event
fn is_trusted(&self) -> bool
[src]
Check if the underlying chain is in the trusted state
fn transact_contract(
&self,
contract: Address,
tx_data: Bytes
) -> Result<(), VapKeyError>
[src]
&self,
contract: Address,
tx_data: Bytes
) -> Result<(), VapKeyError>
Transact contract.
fn read_contract_address(
&self,
registry_name: &str,
address: &ContractAddress
) -> Option<Address>
[src]
&self,
registry_name: &str,
address: &ContractAddress
) -> Option<Address>
Read contract address. If address source is registry, address only returned if current client state is trusted. Address from registry is read from registry from block latest block with REQUEST_CONFIRMATIONS_REQUIRED confirmations.
fn call_contract(
&self,
block_id: BlockId,
contract_address: Address,
data: Bytes
) -> Result<Bytes, String>
[src]
&self,
block_id: BlockId,
contract_address: Address,
data: Bytes
) -> Result<Bytes, String>
Call contract in the blockchain
fn block_hash(&self, id: BlockId) -> Option<H256>
[src]
Returns blockhash for block id
fn block_number(&self, id: BlockId) -> Option<BlockNumber>
[src]
Returns block number for block id
fn retrieve_last_logs(&self, filter: Filter) -> Option<Vec<RawLog>>
[src]
Retrieve last blockchain logs for the filter
fn get_confirmed_block_hash(&self) -> Option<H256>
[src]
Get hash of the last block with predefined number of confirmations (depends on the chain).