pub enum ToolError {
Stdio(Error),
SerdeJson(Error),
Hyper(Error),
HyperLegacy(Error),
Abi(String),
Proto(ProtobufError),
Decode(FromHexError),
Parse(ParseIntError),
Customize(String),
}Expand description
Error summary information
Variants§
Stdio(Error)
IO error
SerdeJson(Error)
Parsing json data error
Hyper(Error)
Hyper error
HyperLegacy(Error)
Hyper legacy error
Abi(String)
ABI error
Proto(ProtobufError)
Protobuf error
Decode(FromHexError)
Hex decode error
Parse(ParseIntError)
Parse error
Customize(String)
Customize error
Trait Implementations§
Source§impl<T> AdminExt<T, JsonRpcResponse, ToolError> for AdminClient<T>
impl<T> AdminExt<T, JsonRpcResponse, ToolError> for AdminClient<T>
Source§impl<T> AllowanceExt<T, JsonRpcResponse, ToolError> for AllowanceClient<T>
impl<T> AllowanceExt<T, JsonRpcResponse, ToolError> for AllowanceClient<T>
Source§fn in_allowance(&self, door: &str, height: Option<&str>) -> Result<R, E>
fn in_allowance(&self, door: &str, height: Option<&str>) -> Result<R, E>
Check resource in the allowance Read more
Source§fn query_info(&self, height: Option<&str>) -> Result<R, E>
fn query_info(&self, height: Option<&str>) -> Result<R, E>
Query the information of the allowance Read more
Source§fn query_name(&self, height: Option<&str>) -> Result<R, E>
fn query_name(&self, height: Option<&str>) -> Result<R, E>
Query the name of the allowance Read more
Source§fn query_doornum(&self, height: Option<&str>) -> Result<R, E>
fn query_doornum(&self, height: Option<&str>) -> Result<R, E>
Query the doornum of the allowance Read more
Source§impl<T> AllowanceManagementExt<T, JsonRpcResponse, ToolError> for AllowanceManageClient<T>
impl<T> AllowanceManagementExt<T, JsonRpcResponse, ToolError> for AllowanceManageClient<T>
Source§fn update_allowance_name(
&mut self,
name: &str,
quota: Option<u64>,
) -> Result<R, E>
fn update_allowance_name( &mut self, name: &str, quota: Option<u64>, ) -> Result<R, E>
Update the allowance name Read more
Source§fn add_doornums(
&mut self,
doors: &str,
nums: &str,
quota: Option<u64>,
) -> Result<R, E>
fn add_doornums( &mut self, doors: &str, nums: &str, quota: Option<u64>, ) -> Result<R, E>
Add the doornums of allowance Read more
Source§impl AmendExt<JsonRpcResponse, ToolError> for Client
impl AmendExt<JsonRpcResponse, ToolError> for Client
Source§fn amend_code(
&mut self,
address: &str,
content: &str,
quota: Option<u64>,
) -> Result<T, E>
fn amend_code( &mut self, address: &str, content: &str, quota: Option<u64>, ) -> Result<T, E>
Amend contract code
Source§fn amend_abi(
&mut self,
address: &str,
content: String,
quota: Option<u64>,
) -> Result<T, E>
fn amend_abi( &mut self, address: &str, content: String, quota: Option<u64>, ) -> Result<T, E>
Amend contract ABI
Source§impl<T> AuthorizationExt<T, JsonRpcResponse, ToolError> for AuthorizationClient<T>
impl<T> AuthorizationExt<T, JsonRpcResponse, ToolError> for AuthorizationClient<T>
Source§fn query_all_permissions(&self, height: Option<&str>) -> Result<R, E>
fn query_all_permissions(&self, height: Option<&str>) -> Result<R, E>
Query all permission Read more
Source§fn query_all_permissions_number(&self, height: Option<&str>) -> Result<R, E>
fn query_all_permissions_number(&self, height: Option<&str>) -> Result<R, E>
Query all permission Read more
Source§fn query_permissions(&self, account: &str, height: Option<&str>) -> Result<R, E>
fn query_permissions(&self, account: &str, height: Option<&str>) -> Result<R, E>
Query the account’s permissions Read more
Source§fn query_accounts(&self, permission: &str, height: Option<&str>) -> Result<R, E>
fn query_accounts(&self, permission: &str, height: Option<&str>) -> Result<R, E>
Query the permission’s accounts Read more
Source§fn query_all_accounts(&self, height: Option<&str>) -> Result<R, E>
fn query_all_accounts(&self, height: Option<&str>) -> Result<R, E>
Query all accounts Read more
Source§fn query_all_accounts_number(&self, height: Option<&str>) -> Result<R, E>
fn query_all_accounts_number(&self, height: Option<&str>) -> Result<R, E>
Query all accounts number Read more
Source§impl<T> BatchTxExt<T, JsonRpcResponse, ToolError> for BatchTxClient<T>
impl<T> BatchTxExt<T, JsonRpcResponse, ToolError> for BatchTxClient<T>
Source§impl<T> CertRevokeManagerExt<T, JsonRpcResponse, ToolError> for CertRevokeManagerClient<T>
impl<T> CertRevokeManagerExt<T, JsonRpcResponse, ToolError> for CertRevokeManagerClient<T>
Source§fn query_in_revoke(
&self,
account_address: &str,
height: Option<&str>,
) -> Result<R, E>
fn query_in_revoke( &self, account_address: &str, height: Option<&str>, ) -> Result<R, E>
query certificate whether in revoke list
Source§fn query_certificate_hot(
&self,
account_address: &str,
height: Option<&str>,
) -> Result<R, E>
fn query_certificate_hot( &self, account_address: &str, height: Option<&str>, ) -> Result<R, E>
query certificate whether in revoke list
Source§fn revoke(&mut self, account_address: &str, quota: Option<u64>) -> Result<R, E>
fn revoke(&mut self, account_address: &str, quota: Option<u64>) -> Result<R, E>
revoke a certificate using its common name. Actually the corresponding node address.
Source§impl ClientExt<JsonRpcResponse, ToolError> for Client
impl ClientExt<JsonRpcResponse, ToolError> for Client
Source§fn get_peer_count(&self) -> Result<JsonRpcResponse, ToolError>
fn get_peer_count(&self) -> Result<JsonRpcResponse, ToolError>
peerCount: Get network peer count
Source§fn get_peers_info(&self, extra: bool) -> Result<JsonRpcResponse, ToolError>
fn get_peers_info(&self, extra: bool) -> Result<JsonRpcResponse, ToolError>
peersInfo: Get all peers information
Source§fn get_license_info(&self) -> Result<JsonRpcResponse, ToolError>
fn get_license_info(&self) -> Result<JsonRpcResponse, ToolError>
licenseInfo: Get CITA license information
Source§fn get_block_number(&self) -> Result<JsonRpcResponse, ToolError>
fn get_block_number(&self) -> Result<JsonRpcResponse, ToolError>
blockNumber: Get current height
Source§fn send_raw_transaction(
&mut self,
transaction_option: TransactionOptions<'_>,
) -> Result<JsonRpcResponse, ToolError>
fn send_raw_transaction( &mut self, transaction_option: TransactionOptions<'_>, ) -> Result<JsonRpcResponse, ToolError>
sendTransaction: Send a transaction and return transaction hash
Source§fn get_block_by_hash(
&self,
hash: &str,
transaction_info: bool,
) -> Result<JsonRpcResponse, ToolError>
fn get_block_by_hash( &self, hash: &str, transaction_info: bool, ) -> Result<JsonRpcResponse, ToolError>
getBlockByHash: Get block by hash
Source§fn get_block_by_number(
&self,
height: &str,
transaction_info: bool,
) -> Result<JsonRpcResponse, ToolError>
fn get_block_by_number( &self, height: &str, transaction_info: bool, ) -> Result<JsonRpcResponse, ToolError>
getBlockByNumber: Get block by number
Source§fn get_transaction_receipt(
&self,
hash: &str,
) -> Result<JsonRpcResponse, ToolError>
fn get_transaction_receipt( &self, hash: &str, ) -> Result<JsonRpcResponse, ToolError>
getTransactionReceipt: Get transaction receipt
Source§fn get_logs(
&self,
topic: Option<Vec<&str>>,
address: Option<Vec<&str>>,
from: Option<&str>,
to: Option<&str>,
) -> Result<JsonRpcResponse, ToolError>
fn get_logs( &self, topic: Option<Vec<&str>>, address: Option<Vec<&str>>, from: Option<&str>, to: Option<&str>, ) -> Result<JsonRpcResponse, ToolError>
getLogs: Get logs
Source§fn call(
&self,
from: Option<&str>,
to: &str,
data: Option<&str>,
height: &str,
extra: bool,
) -> Result<JsonRpcResponse, ToolError>
fn call( &self, from: Option<&str>, to: &str, data: Option<&str>, height: &str, extra: bool, ) -> Result<JsonRpcResponse, ToolError>
call: (readonly, will not save state change)
Source§fn get_transaction(
&self,
hash: &str,
in_pool: bool,
) -> Result<JsonRpcResponse, ToolError>
fn get_transaction( &self, hash: &str, in_pool: bool, ) -> Result<JsonRpcResponse, ToolError>
getTransaction: Get transaction by hash
Source§fn get_transaction_count(
&self,
address: &str,
height: &str,
) -> Result<JsonRpcResponse, ToolError>
fn get_transaction_count( &self, address: &str, height: &str, ) -> Result<JsonRpcResponse, ToolError>
getTransactionCount: Get transaction count of an account
Source§fn get_code(
&self,
address: &str,
height: &str,
) -> Result<JsonRpcResponse, ToolError>
fn get_code( &self, address: &str, height: &str, ) -> Result<JsonRpcResponse, ToolError>
getCode: Get the code of a contract
Source§fn get_abi(
&self,
address: &str,
height: &str,
) -> Result<JsonRpcResponse, ToolError>
fn get_abi( &self, address: &str, height: &str, ) -> Result<JsonRpcResponse, ToolError>
getAbi: Get the ABI of a contract
Source§fn get_balance(
&self,
address: &str,
height: &str,
) -> Result<JsonRpcResponse, ToolError>
fn get_balance( &self, address: &str, height: &str, ) -> Result<JsonRpcResponse, ToolError>
getBalance: Get the balance of a contract (TODO: return U256)
Source§fn new_filter(
&self,
topic: Option<Vec<&str>>,
address: Option<Vec<&str>>,
from: Option<&str>,
to: Option<&str>,
) -> Result<JsonRpcResponse, ToolError>
fn new_filter( &self, topic: Option<Vec<&str>>, address: Option<Vec<&str>>, from: Option<&str>, to: Option<&str>, ) -> Result<JsonRpcResponse, ToolError>
newFilter:
Source§fn new_block_filter(&self) -> Result<JsonRpcResponse, ToolError>
fn new_block_filter(&self) -> Result<JsonRpcResponse, ToolError>
newBlockFilter:
Source§fn uninstall_filter(
&self,
filter_id: &str,
) -> Result<JsonRpcResponse, ToolError>
fn uninstall_filter( &self, filter_id: &str, ) -> Result<JsonRpcResponse, ToolError>
uninstallFilter: Uninstall a filter by its id
Source§fn get_filter_changes(
&self,
filter_id: &str,
) -> Result<JsonRpcResponse, ToolError>
fn get_filter_changes( &self, filter_id: &str, ) -> Result<JsonRpcResponse, ToolError>
getFilterChanges: Get filter changes
Source§fn get_filter_logs(&self, filter_id: &str) -> Result<JsonRpcResponse, ToolError>
fn get_filter_logs(&self, filter_id: &str) -> Result<JsonRpcResponse, ToolError>
getFilterLogs: Get filter logs
Source§fn get_transaction_proof(
&self,
hash: &str,
) -> Result<JsonRpcResponse, ToolError>
fn get_transaction_proof( &self, hash: &str, ) -> Result<JsonRpcResponse, ToolError>
getTransactionProof: Get proof of a transaction
Source§fn get_metadata(&self, height: &str) -> Result<JsonRpcResponse, ToolError>
fn get_metadata(&self, height: &str) -> Result<JsonRpcResponse, ToolError>
getMetaData: Get metadata
Source§fn get_block_header(&self, height: &str) -> Result<JsonRpcResponse, ToolError>
fn get_block_header(&self, height: &str) -> Result<JsonRpcResponse, ToolError>
getBlockHeader: Get block headers based on block height
Source§fn get_state_proof(
&self,
address: &str,
key: &str,
height: &str,
) -> Result<JsonRpcResponse, ToolError>
fn get_state_proof( &self, address: &str, key: &str, height: &str, ) -> Result<JsonRpcResponse, ToolError>
getStateProof: Get the proof of the variable at the specified height
Source§fn get_storage_at(
&self,
address: &str,
key: &str,
height: &str,
) -> Result<JsonRpcResponse, ToolError>
fn get_storage_at( &self, address: &str, key: &str, height: &str, ) -> Result<JsonRpcResponse, ToolError>
getStorageAt: Get the value of the key at the specified height
Source§fn get_version(&self) -> Result<JsonRpcResponse, ToolError>
fn get_version(&self) -> Result<JsonRpcResponse, ToolError>
getVersion: Get release version info of all modules
Source§fn estimate_quota(
&self,
from: Option<&str>,
to: &str,
data: Option<&str>,
height: &str,
) -> Result<JsonRpcResponse, ToolError>
fn estimate_quota( &self, from: Option<&str>, to: &str, data: Option<&str>, height: &str, ) -> Result<JsonRpcResponse, ToolError>
estimateQuota: Estimate a transaction’s quota used
Source§fn get_pool_tx_num(&self) -> Result<JsonRpcResponse, ToolError>
fn get_pool_tx_num(&self) -> Result<JsonRpcResponse, ToolError>
get tx number in pool
Source§fn operate_censored_address(
&self,
action: CensorAction,
censor_addr: &str,
) -> Result<JsonRpcResponse, ToolError>
fn operate_censored_address( &self, action: CensorAction, censor_addr: &str, ) -> Result<JsonRpcResponse, ToolError>
operate censorship address list
Source§fn get_censored_addr(&self) -> Result<JsonRpcResponse, ToolError>
fn get_censored_addr(&self) -> Result<JsonRpcResponse, ToolError>
get censorship address list
Source§impl<T> ContractCall<JsonRpcResponse, ToolError> for AdminClient<T>
impl<T> ContractCall<JsonRpcResponse, ToolError> for AdminClient<T>
Source§fn prepare_call_args(
&self,
name: &str,
values: &[&str],
to_addr: Option<Address>,
) -> Result<(String, String), ToolError>
fn prepare_call_args( &self, name: &str, values: &[&str], to_addr: Option<Address>, ) -> Result<(String, String), ToolError>
Prepare contract call arguments
Source§fn contract_send_tx(
&mut self,
name: &str,
values: &[&str],
quota: Option<u64>,
to_addr: Option<Address>,
) -> Result<JsonRpcResponse, ToolError>
fn contract_send_tx( &mut self, name: &str, values: &[&str], quota: Option<u64>, to_addr: Option<Address>, ) -> Result<JsonRpcResponse, ToolError>
SendTx a contract method
Source§impl<T> ContractCall<JsonRpcResponse, ToolError> for AllowanceClient<T>
impl<T> ContractCall<JsonRpcResponse, ToolError> for AllowanceClient<T>
Source§fn prepare_call_args(
&self,
name: &str,
values: &[&str],
to_addr: Option<Address>,
) -> Result<(String, String), ToolError>
fn prepare_call_args( &self, name: &str, values: &[&str], to_addr: Option<Address>, ) -> Result<(String, String), ToolError>
Prepare contract call arguments
Source§fn contract_send_tx(
&mut self,
name: &str,
values: &[&str],
quota: Option<u64>,
to_addr: Option<Address>,
) -> Result<JsonRpcResponse, ToolError>
fn contract_send_tx( &mut self, name: &str, values: &[&str], quota: Option<u64>, to_addr: Option<Address>, ) -> Result<JsonRpcResponse, ToolError>
SendTx a contract method
Source§impl<T> ContractCall<JsonRpcResponse, ToolError> for AllowanceManageClient<T>
impl<T> ContractCall<JsonRpcResponse, ToolError> for AllowanceManageClient<T>
Source§fn prepare_call_args(
&self,
name: &str,
values: &[&str],
to_addr: Option<Address>,
) -> Result<(String, String), ToolError>
fn prepare_call_args( &self, name: &str, values: &[&str], to_addr: Option<Address>, ) -> Result<(String, String), ToolError>
Prepare contract call arguments
Source§fn contract_send_tx(
&mut self,
name: &str,
values: &[&str],
quota: Option<u64>,
to_addr: Option<Address>,
) -> Result<JsonRpcResponse, ToolError>
fn contract_send_tx( &mut self, name: &str, values: &[&str], quota: Option<u64>, to_addr: Option<Address>, ) -> Result<JsonRpcResponse, ToolError>
SendTx a contract method
Source§impl<T> ContractCall<JsonRpcResponse, ToolError> for AuthorizationClient<T>
impl<T> ContractCall<JsonRpcResponse, ToolError> for AuthorizationClient<T>
Source§fn prepare_call_args(
&self,
name: &str,
values: &[&str],
to_addr: Option<Address>,
) -> Result<(String, String), ToolError>
fn prepare_call_args( &self, name: &str, values: &[&str], to_addr: Option<Address>, ) -> Result<(String, String), ToolError>
Prepare contract call arguments
Source§fn contract_send_tx(
&mut self,
name: &str,
values: &[&str],
quota: Option<u64>,
to_addr: Option<Address>,
) -> Result<JsonRpcResponse, ToolError>
fn contract_send_tx( &mut self, name: &str, values: &[&str], quota: Option<u64>, to_addr: Option<Address>, ) -> Result<JsonRpcResponse, ToolError>
SendTx a contract method
Source§impl<T> ContractCall<JsonRpcResponse, ToolError> for BatchTxClient<T>
impl<T> ContractCall<JsonRpcResponse, ToolError> for BatchTxClient<T>
Source§fn prepare_call_args(
&self,
name: &str,
values: &[&str],
to_addr: Option<Address>,
) -> Result<(String, String), ToolError>
fn prepare_call_args( &self, name: &str, values: &[&str], to_addr: Option<Address>, ) -> Result<(String, String), ToolError>
Prepare contract call arguments
Source§fn contract_send_tx(
&mut self,
name: &str,
values: &[&str],
quota: Option<u64>,
to_addr: Option<Address>,
) -> Result<JsonRpcResponse, ToolError>
fn contract_send_tx( &mut self, name: &str, values: &[&str], quota: Option<u64>, to_addr: Option<Address>, ) -> Result<JsonRpcResponse, ToolError>
SendTx a contract method
Source§impl<T> ContractCall<JsonRpcResponse, ToolError> for CertRevokeManagerClient<T>
impl<T> ContractCall<JsonRpcResponse, ToolError> for CertRevokeManagerClient<T>
Source§fn prepare_call_args(
&self,
name: &str,
values: &[&str],
to_addr: Option<Address>,
) -> Result<(String, String), ToolError>
fn prepare_call_args( &self, name: &str, values: &[&str], to_addr: Option<Address>, ) -> Result<(String, String), ToolError>
Prepare contract call arguments
Source§fn contract_send_tx(
&mut self,
name: &str,
values: &[&str],
quota: Option<u64>,
to_addr: Option<Address>,
) -> Result<JsonRpcResponse, ToolError>
fn contract_send_tx( &mut self, name: &str, values: &[&str], quota: Option<u64>, to_addr: Option<Address>, ) -> Result<JsonRpcResponse, ToolError>
SendTx a contract method
Source§impl<T> ContractCall<JsonRpcResponse, ToolError> for EmergencyBrakeClient<T>
impl<T> ContractCall<JsonRpcResponse, ToolError> for EmergencyBrakeClient<T>
Source§fn prepare_call_args(
&self,
name: &str,
values: &[&str],
to_addr: Option<Address>,
) -> Result<(String, String), ToolError>
fn prepare_call_args( &self, name: &str, values: &[&str], to_addr: Option<Address>, ) -> Result<(String, String), ToolError>
Prepare contract call arguments
Source§fn contract_send_tx(
&mut self,
name: &str,
values: &[&str],
quota: Option<u64>,
to_addr: Option<Address>,
) -> Result<JsonRpcResponse, ToolError>
fn contract_send_tx( &mut self, name: &str, values: &[&str], quota: Option<u64>, to_addr: Option<Address>, ) -> Result<JsonRpcResponse, ToolError>
SendTx a contract method
Source§impl<T> ContractCall<JsonRpcResponse, ToolError> for GroupClient<T>
impl<T> ContractCall<JsonRpcResponse, ToolError> for GroupClient<T>
Source§fn prepare_call_args(
&self,
name: &str,
values: &[&str],
to_addr: Option<Address>,
) -> Result<(String, String), ToolError>
fn prepare_call_args( &self, name: &str, values: &[&str], to_addr: Option<Address>, ) -> Result<(String, String), ToolError>
Prepare contract call arguments
Source§fn contract_send_tx(
&mut self,
name: &str,
values: &[&str],
quota: Option<u64>,
to_addr: Option<Address>,
) -> Result<JsonRpcResponse, ToolError>
fn contract_send_tx( &mut self, name: &str, values: &[&str], quota: Option<u64>, to_addr: Option<Address>, ) -> Result<JsonRpcResponse, ToolError>
SendTx a contract method
Source§impl<T> ContractCall<JsonRpcResponse, ToolError> for GroupManageClient<T>
impl<T> ContractCall<JsonRpcResponse, ToolError> for GroupManageClient<T>
Source§fn prepare_call_args(
&self,
name: &str,
values: &[&str],
to_addr: Option<Address>,
) -> Result<(String, String), ToolError>
fn prepare_call_args( &self, name: &str, values: &[&str], to_addr: Option<Address>, ) -> Result<(String, String), ToolError>
Prepare contract call arguments
Source§fn contract_send_tx(
&mut self,
name: &str,
values: &[&str],
quota: Option<u64>,
to_addr: Option<Address>,
) -> Result<JsonRpcResponse, ToolError>
fn contract_send_tx( &mut self, name: &str, values: &[&str], quota: Option<u64>, to_addr: Option<Address>, ) -> Result<JsonRpcResponse, ToolError>
SendTx a contract method
Source§impl<T> ContractCall<JsonRpcResponse, ToolError> for NodeManageClient<T>
impl<T> ContractCall<JsonRpcResponse, ToolError> for NodeManageClient<T>
Source§fn prepare_call_args(
&self,
name: &str,
values: &[&str],
to_addr: Option<Address>,
) -> Result<(String, String), ToolError>
fn prepare_call_args( &self, name: &str, values: &[&str], to_addr: Option<Address>, ) -> Result<(String, String), ToolError>
Prepare contract call arguments
Source§fn contract_send_tx(
&mut self,
name: &str,
values: &[&str],
quota: Option<u64>,
to_addr: Option<Address>,
) -> Result<JsonRpcResponse, ToolError>
fn contract_send_tx( &mut self, name: &str, values: &[&str], quota: Option<u64>, to_addr: Option<Address>, ) -> Result<JsonRpcResponse, ToolError>
SendTx a contract method
Source§impl<T> ContractCall<JsonRpcResponse, ToolError> for PermissionClient<T>
impl<T> ContractCall<JsonRpcResponse, ToolError> for PermissionClient<T>
Source§fn prepare_call_args(
&self,
name: &str,
values: &[&str],
to_addr: Option<Address>,
) -> Result<(String, String), ToolError>
fn prepare_call_args( &self, name: &str, values: &[&str], to_addr: Option<Address>, ) -> Result<(String, String), ToolError>
Prepare contract call arguments
Source§fn contract_send_tx(
&mut self,
name: &str,
values: &[&str],
quota: Option<u64>,
to_addr: Option<Address>,
) -> Result<JsonRpcResponse, ToolError>
fn contract_send_tx( &mut self, name: &str, values: &[&str], quota: Option<u64>, to_addr: Option<Address>, ) -> Result<JsonRpcResponse, ToolError>
SendTx a contract method
Source§impl<T> ContractCall<JsonRpcResponse, ToolError> for PermissionManageClient<T>
impl<T> ContractCall<JsonRpcResponse, ToolError> for PermissionManageClient<T>
Source§fn prepare_call_args(
&self,
name: &str,
values: &[&str],
to_addr: Option<Address>,
) -> Result<(String, String), ToolError>
fn prepare_call_args( &self, name: &str, values: &[&str], to_addr: Option<Address>, ) -> Result<(String, String), ToolError>
Prepare contract call arguments
Source§fn contract_send_tx(
&mut self,
name: &str,
values: &[&str],
quota: Option<u64>,
to_addr: Option<Address>,
) -> Result<JsonRpcResponse, ToolError>
fn contract_send_tx( &mut self, name: &str, values: &[&str], quota: Option<u64>, to_addr: Option<Address>, ) -> Result<JsonRpcResponse, ToolError>
SendTx a contract method
Source§impl<T> ContractCall<JsonRpcResponse, ToolError> for PriceManagerClient<T>
impl<T> ContractCall<JsonRpcResponse, ToolError> for PriceManagerClient<T>
Source§fn prepare_call_args(
&self,
name: &str,
values: &[&str],
to_addr: Option<Address>,
) -> Result<(String, String), ToolError>
fn prepare_call_args( &self, name: &str, values: &[&str], to_addr: Option<Address>, ) -> Result<(String, String), ToolError>
Prepare contract call arguments
Source§fn contract_send_tx(
&mut self,
name: &str,
values: &[&str],
quota: Option<u64>,
to_addr: Option<Address>,
) -> Result<JsonRpcResponse, ToolError>
fn contract_send_tx( &mut self, name: &str, values: &[&str], quota: Option<u64>, to_addr: Option<Address>, ) -> Result<JsonRpcResponse, ToolError>
SendTx a contract method
Source§impl<T> ContractCall<JsonRpcResponse, ToolError> for QuotaManageClient<T>
impl<T> ContractCall<JsonRpcResponse, ToolError> for QuotaManageClient<T>
Source§fn prepare_call_args(
&self,
name: &str,
values: &[&str],
to_addr: Option<Address>,
) -> Result<(String, String), ToolError>
fn prepare_call_args( &self, name: &str, values: &[&str], to_addr: Option<Address>, ) -> Result<(String, String), ToolError>
Prepare contract call arguments
Source§fn contract_send_tx(
&mut self,
name: &str,
values: &[&str],
quota: Option<u64>,
to_addr: Option<Address>,
) -> Result<JsonRpcResponse, ToolError>
fn contract_send_tx( &mut self, name: &str, values: &[&str], quota: Option<u64>, to_addr: Option<Address>, ) -> Result<JsonRpcResponse, ToolError>
SendTx a contract method
Source§impl<T> ContractCall<JsonRpcResponse, ToolError> for RoleClient<T>
impl<T> ContractCall<JsonRpcResponse, ToolError> for RoleClient<T>
Source§fn prepare_call_args(
&self,
name: &str,
values: &[&str],
to_addr: Option<Address>,
) -> Result<(String, String), ToolError>
fn prepare_call_args( &self, name: &str, values: &[&str], to_addr: Option<Address>, ) -> Result<(String, String), ToolError>
Prepare contract call arguments
Source§fn contract_send_tx(
&mut self,
name: &str,
values: &[&str],
quota: Option<u64>,
to_addr: Option<Address>,
) -> Result<JsonRpcResponse, ToolError>
fn contract_send_tx( &mut self, name: &str, values: &[&str], quota: Option<u64>, to_addr: Option<Address>, ) -> Result<JsonRpcResponse, ToolError>
SendTx a contract method
Source§impl<T> ContractCall<JsonRpcResponse, ToolError> for RoleManageClient<T>
impl<T> ContractCall<JsonRpcResponse, ToolError> for RoleManageClient<T>
Source§fn prepare_call_args(
&self,
name: &str,
values: &[&str],
to_addr: Option<Address>,
) -> Result<(String, String), ToolError>
fn prepare_call_args( &self, name: &str, values: &[&str], to_addr: Option<Address>, ) -> Result<(String, String), ToolError>
Prepare contract call arguments
Source§fn contract_send_tx(
&mut self,
name: &str,
values: &[&str],
quota: Option<u64>,
to_addr: Option<Address>,
) -> Result<JsonRpcResponse, ToolError>
fn contract_send_tx( &mut self, name: &str, values: &[&str], quota: Option<u64>, to_addr: Option<Address>, ) -> Result<JsonRpcResponse, ToolError>
SendTx a contract method
Source§impl<T> ContractCall<JsonRpcResponse, ToolError> for SysConfigClient<T>
impl<T> ContractCall<JsonRpcResponse, ToolError> for SysConfigClient<T>
Source§fn prepare_call_args(
&self,
name: &str,
values: &[&str],
to_addr: Option<Address>,
) -> Result<(String, String), ToolError>
fn prepare_call_args( &self, name: &str, values: &[&str], to_addr: Option<Address>, ) -> Result<(String, String), ToolError>
Prepare contract call arguments
Source§fn contract_send_tx(
&mut self,
name: &str,
values: &[&str],
quota: Option<u64>,
to_addr: Option<Address>,
) -> Result<JsonRpcResponse, ToolError>
fn contract_send_tx( &mut self, name: &str, values: &[&str], quota: Option<u64>, to_addr: Option<Address>, ) -> Result<JsonRpcResponse, ToolError>
SendTx a contract method
Source§impl<T> ContractCall<JsonRpcResponse, ToolError> for VersionManagerClient<T>
impl<T> ContractCall<JsonRpcResponse, ToolError> for VersionManagerClient<T>
Source§fn prepare_call_args(
&self,
name: &str,
values: &[&str],
to_addr: Option<Address>,
) -> Result<(String, String), ToolError>
fn prepare_call_args( &self, name: &str, values: &[&str], to_addr: Option<Address>, ) -> Result<(String, String), ToolError>
Prepare contract call arguments
Source§fn contract_send_tx(
&mut self,
name: &str,
values: &[&str],
quota: Option<u64>,
to_addr: Option<Address>,
) -> Result<JsonRpcResponse, ToolError>
fn contract_send_tx( &mut self, name: &str, values: &[&str], quota: Option<u64>, to_addr: Option<Address>, ) -> Result<JsonRpcResponse, ToolError>
SendTx a contract method
Source§impl<T> EmergencyBrakeExt<T, JsonRpcResponse, ToolError> for EmergencyBrakeClient<T>
impl<T> EmergencyBrakeExt<T, JsonRpcResponse, ToolError> for EmergencyBrakeClient<T>
Source§impl Fail for ToolError
impl Fail for ToolError
Source§fn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
Source§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace carried by this failure, if it
carries one. Read moreSource§impl<T> GroupExt<T, JsonRpcResponse, ToolError> for GroupClient<T>
impl<T> GroupExt<T, JsonRpcResponse, ToolError> for GroupClient<T>
Source§fn query_info(&self, address: &str, height: Option<&str>) -> Result<R, E>
fn query_info(&self, address: &str, height: Option<&str>) -> Result<R, E>
Query the information of the group
Source§fn query_name(&self, address: &str, height: Option<&str>) -> Result<R, E>
fn query_name(&self, address: &str, height: Option<&str>) -> Result<R, E>
Query the name of the group
Source§fn query_accounts(&self, address: &str, height: Option<&str>) -> Result<R, E>
fn query_accounts(&self, address: &str, height: Option<&str>) -> Result<R, E>
Query the accounts of the group
Source§fn query_accounts_num(
&self,
address: &str,
height: Option<&str>,
) -> Result<R, E>
fn query_accounts_num( &self, address: &str, height: Option<&str>, ) -> Result<R, E>
Query the accounts of the group
Source§fn query_children(&self, address: &str, height: Option<&str>) -> Result<R, E>
fn query_children(&self, address: &str, height: Option<&str>) -> Result<R, E>
Alias for query_child
Source§fn query_child(&self, address: &str, height: Option<&str>) -> Result<R, E>
fn query_child(&self, address: &str, height: Option<&str>) -> Result<R, E>
Query the children of the group
Source§fn query_children_length(
&self,
address: &str,
height: Option<&str>,
) -> Result<R, E>
fn query_children_length( &self, address: &str, height: Option<&str>, ) -> Result<R, E>
Alias for query_child_length
Source§fn query_child_length(
&self,
address: &str,
height: Option<&str>,
) -> Result<R, E>
fn query_child_length( &self, address: &str, height: Option<&str>, ) -> Result<R, E>
Query the length of children of the group
Source§impl<T> GroupManagementExt<T, JsonRpcResponse, ToolError> for GroupManageClient<T>
impl<T> GroupManagementExt<T, JsonRpcResponse, ToolError> for GroupManageClient<T>
Source§fn new_group(
&mut self,
origin: &str,
name: &str,
accounts: &str,
quota: Option<u64>,
) -> Result<R, E>
fn new_group( &mut self, origin: &str, name: &str, accounts: &str, quota: Option<u64>, ) -> Result<R, E>
Create a new group
Source§fn delete_group(
&mut self,
origin: &str,
target: &str,
quota: Option<u64>,
) -> Result<R, E>
fn delete_group( &mut self, origin: &str, target: &str, quota: Option<u64>, ) -> Result<R, E>
Delete the group
Source§fn update_group_name(
&mut self,
origin: &str,
target: &str,
name: &str,
quota: Option<u64>,
) -> Result<R, E>
fn update_group_name( &mut self, origin: &str, target: &str, name: &str, quota: Option<u64>, ) -> Result<R, E>
Update the group name
Source§fn add_accounts(
&mut self,
origin: &str,
target: &str,
accounts: &str,
quota: Option<u64>,
) -> Result<R, E>
fn add_accounts( &mut self, origin: &str, target: &str, accounts: &str, quota: Option<u64>, ) -> Result<R, E>
Add accounts
Source§fn delete_accounts(
&mut self,
origin: &str,
target: &str,
accounts: &str,
quota: Option<u64>,
) -> Result<R, E>
fn delete_accounts( &mut self, origin: &str, target: &str, accounts: &str, quota: Option<u64>, ) -> Result<R, E>
Delete accounts
Source§impl<T> NodeManagementExt<T, JsonRpcResponse, ToolError> for NodeManageClient<T>
impl<T> NodeManagementExt<T, JsonRpcResponse, ToolError> for NodeManageClient<T>
Source§fn downgrade_consensus_node(
&mut self,
address: &str,
quota: Option<u64>,
) -> Result<R, E>
fn downgrade_consensus_node( &mut self, address: &str, quota: Option<u64>, ) -> Result<R, E>
Downgrade consensus node to ordinary node
Get authorities
Source§fn approve_node(&mut self, address: &str, quota: Option<u64>) -> Result<R, E>
fn approve_node(&mut self, address: &str, quota: Option<u64>) -> Result<R, E>
Approve node upgrades to consensus nodes
Source§impl<T> PermissionExt<T, JsonRpcResponse, ToolError> for PermissionClient<T>
impl<T> PermissionExt<T, JsonRpcResponse, ToolError> for PermissionClient<T>
Source§fn in_permission(
&self,
address: &str,
contract: &str,
func: &str,
height: Option<&str>,
) -> Result<R, E>
fn in_permission( &self, address: &str, contract: &str, func: &str, height: Option<&str>, ) -> Result<R, E>
Check resource in the permission Read more
Source§fn query_info(&self, address: &str, height: Option<&str>) -> Result<R, E>
fn query_info(&self, address: &str, height: Option<&str>) -> Result<R, E>
Query the information of the permission Read more
Source§fn query_name(&self, address: &str, height: Option<&str>) -> Result<R, E>
fn query_name(&self, address: &str, height: Option<&str>) -> Result<R, E>
Query the name of the permission Read more
Source§fn query_resource(&self, address: &str, height: Option<&str>) -> Result<R, E>
fn query_resource(&self, address: &str, height: Option<&str>) -> Result<R, E>
Query the resource of the permission Read more
Source§impl<T> PermissionManagementExt<T, JsonRpcResponse, ToolError> for PermissionManageClient<T>
impl<T> PermissionManagementExt<T, JsonRpcResponse, ToolError> for PermissionManageClient<T>
Source§fn new_permission(
&mut self,
name: &str,
contracts: &str,
funcs: &str,
quota: Option<u64>,
) -> Result<R, E>
fn new_permission( &mut self, name: &str, contracts: &str, funcs: &str, quota: Option<u64>, ) -> Result<R, E>
Create a new permission Read more
Source§fn delete_permission(
&mut self,
permission: &str,
quota: Option<u64>,
) -> Result<R, E>
fn delete_permission( &mut self, permission: &str, quota: Option<u64>, ) -> Result<R, E>
Delete the permission Read more
Source§fn update_permission_name(
&mut self,
permission: &str,
name: &str,
quota: Option<u64>,
) -> Result<R, E>
fn update_permission_name( &mut self, permission: &str, name: &str, quota: Option<u64>, ) -> Result<R, E>
Update the permission name Read more
Source§fn add_resources(
&mut self,
permission: &str,
contracts: &str,
funcs: &str,
quota: Option<u64>,
) -> Result<R, E>
fn add_resources( &mut self, permission: &str, contracts: &str, funcs: &str, quota: Option<u64>, ) -> Result<R, E>
Add the resources of permission Read more
Source§fn delete_resources(
&mut self,
permission: &str,
contracts: &str,
funcs: &str,
quota: Option<u64>,
) -> Result<R, E>
fn delete_resources( &mut self, permission: &str, contracts: &str, funcs: &str, quota: Option<u64>, ) -> Result<R, E>
Delete the resources of permission Read more
Set permission to the account Read more
Set multiple permissions to the account Read more
Cancel the account’s permission Read more
Cancel the account’s multiple permission Read more
Clear the account’s permissions Read more
Source§impl<T> PriceManagerExt<T, JsonRpcResponse, ToolError> for PriceManagerClient<T>
impl<T> PriceManagerExt<T, JsonRpcResponse, ToolError> for PriceManagerClient<T>
Source§impl<T> QuotaManagementExt<T, JsonRpcResponse, ToolError> for QuotaManageClient<T>
impl<T> QuotaManagementExt<T, JsonRpcResponse, ToolError> for QuotaManageClient<T>
Source§fn get_aql(&self, address: &str, height: Option<&str>) -> Result<R, E>
fn get_aql(&self, address: &str, height: Option<&str>) -> Result<R, E>
Get account quota upper limit of the specific account
Source§fn get_default_aql(&self, height: Option<&str>) -> Result<R, E>
fn get_default_aql(&self, height: Option<&str>) -> Result<R, E>
Get default account quota limit
Source§fn set_bql(&mut self, quota_limit: U256, quota: Option<u64>) -> Result<R, E>
fn set_bql(&mut self, quota_limit: U256, quota: Option<u64>) -> Result<R, E>
Set block quota limit
Source§impl<T> RoleExt<T, JsonRpcResponse, ToolError> for RoleClient<T>
impl<T> RoleExt<T, JsonRpcResponse, ToolError> for RoleClient<T>
Source§fn query_role(&self, address: &str, height: Option<&str>) -> Result<R, E>
fn query_role(&self, address: &str, height: Option<&str>) -> Result<R, E>
Query the information of the role Read more
Source§fn query_name(&self, address: &str, height: Option<&str>) -> Result<R, E>
fn query_name(&self, address: &str, height: Option<&str>) -> Result<R, E>
Query the name of the role Read more
Source§fn query_permissions(&self, address: &str, height: Option<&str>) -> Result<R, E>
fn query_permissions(&self, address: &str, height: Option<&str>) -> Result<R, E>
Query the permissions of the role Read more
Source§impl<T> RoleManagementExt<T, JsonRpcResponse, ToolError> for RoleManageClient<T>
impl<T> RoleManagementExt<T, JsonRpcResponse, ToolError> for RoleManageClient<T>
Source§fn new_role(
&mut self,
name: &str,
permissions: &str,
quota: Option<u64>,
) -> Result<R, E>
fn new_role( &mut self, name: &str, permissions: &str, quota: Option<u64>, ) -> Result<R, E>
Create a new role Read more
Source§fn delete_role(&mut self, role: &str, quota: Option<u64>) -> Result<R, E>
fn delete_role(&mut self, role: &str, quota: Option<u64>) -> Result<R, E>
Delete the role Read more
Source§fn update_role_name(
&mut self,
role: &str,
name: &str,
quota: Option<u64>,
) -> Result<R, E>
fn update_role_name( &mut self, role: &str, name: &str, quota: Option<u64>, ) -> Result<R, E>
Update role’s name Read more
Source§fn add_permissions(
&mut self,
role: &str,
permissions: &str,
quota: Option<u64>,
) -> Result<R, E>
fn add_permissions( &mut self, role: &str, permissions: &str, quota: Option<u64>, ) -> Result<R, E>
Add permissions of role Read more
Source§fn delete_permissions(
&mut self,
role: &str,
permissions: &str,
quota: Option<u64>,
) -> Result<R, E>
fn delete_permissions( &mut self, role: &str, permissions: &str, quota: Option<u64>, ) -> Result<R, E>
Delete permissions of role Read more
Source§fn set_role(
&mut self,
account: &str,
role: &str,
quota: Option<u64>,
) -> Result<R, E>
fn set_role( &mut self, account: &str, role: &str, quota: Option<u64>, ) -> Result<R, E>
Set the role to the account Read more
Source§fn cancel_role(
&mut self,
account: &str,
role: &str,
quota: Option<u64>,
) -> Result<R, E>
fn cancel_role( &mut self, account: &str, role: &str, quota: Option<u64>, ) -> Result<R, E>
Cancel the account’s role Read more
Source§fn clear_role(&mut self, account: &str, quota: Option<u64>) -> Result<R, E>
fn clear_role(&mut self, account: &str, quota: Option<u64>) -> Result<R, E>
Clear the account’s role Read more
Source§impl StoreExt<JsonRpcResponse, ToolError> for Client
impl StoreExt<JsonRpcResponse, ToolError> for Client
Source§impl<T> SysConfigExt<T, JsonRpcResponse, ToolError> for SysConfigClient<T>
impl<T> SysConfigExt<T, JsonRpcResponse, ToolError> for SysConfigClient<T>
Source§fn get_create_permission_check(&self, height: Option<&str>) -> Result<R, E>
fn get_create_permission_check(&self, height: Option<&str>) -> Result<R, E>
Check sender’s create contract permission
Source§fn get_send_permission_check(&self, height: Option<&str>) -> Result<R, E>
fn get_send_permission_check(&self, height: Option<&str>) -> Result<R, E>
Check sender’s send transaction permission
Source§fn get_feeback_platform_check(&self, height: Option<&str>) -> Result<R, E>
fn get_feeback_platform_check(&self, height: Option<&str>) -> Result<R, E>
Whether economic incentives are returned to operators
Source§fn get_economical_model(&self, height: Option<&str>) -> Result<R, E>
fn get_economical_model(&self, height: Option<&str>) -> Result<R, E>
Whether to open the charging mode
Source§fn get_permission_check(&self, height: Option<&str>) -> Result<R, E>
fn get_permission_check(&self, height: Option<&str>) -> Result<R, E>
Whether to open the permission check
Source§fn get_quota_check(&self, height: Option<&str>) -> Result<R, E>
fn get_quota_check(&self, height: Option<&str>) -> Result<R, E>
Whether to open the quota check
Source§fn get_allowance_check(&self, height: Option<&str>) -> Result<R, E>
fn get_allowance_check(&self, height: Option<&str>) -> Result<R, E>
Check sender’s send transaction permission
Source§impl<T> VersionManagerExt<T, JsonRpcResponse, ToolError> for VersionManagerClient<T>
impl<T> VersionManagerExt<T, JsonRpcResponse, ToolError> for VersionManagerClient<T>
Auto Trait Implementations§
impl Freeze for ToolError
impl !RefUnwindSafe for ToolError
impl Send for ToolError
impl Sync for ToolError
impl Unpin for ToolError
impl !UnwindSafe for ToolError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more