Struct valgrind::ValgrindClient
source · pub struct ValgrindClient {
node_client: WalletNodeRestClient,
vit_client: RestClient,
proxy_client: ProxyClient,
}
Fields§
§node_client: WalletNodeRestClient
§vit_client: RestClient
§proxy_client: ProxyClient
Implementations§
source§impl ValgrindClient
impl ValgrindClient
pub fn new_from_addresses( proxy_address: Url, node_address: Url, vit_address: Url, node_rest_settings: ValgrindSettings ) -> Self
pub fn new(address: String, settings: ValgrindSettings) -> Result<Self, Error>
pub fn node_client(&self) -> WalletNodeRestClient
pub fn vit_client(&self) -> VitRestClient
pub fn send_fragment(&self, transaction: Vec<u8>) -> Result<FragmentId, Error>
pub fn send_fragments( &self, transactions: Vec<Vec<u8>> ) -> Result<Vec<FragmentId>, Error>
pub fn send_fragments_at_once( &self, transactions: Vec<Vec<u8>>, use_v1: bool ) -> Result<Vec<FragmentId>, Error>
pub fn fragment_logs(&self) -> Result<HashMap<FragmentId, FragmentLog>, Error>
pub fn fragments_statuses( &self, ids: Vec<String> ) -> Result<HashMap<FragmentId, FragmentStatus>, Error>
pub fn account_state( &self, account_id: AccountId ) -> Result<AccountState, Error>
pub fn proposals(&self, group: &str) -> Result<Vec<FullProposalInfo>, Error>
pub fn funds(&self) -> Result<Fund, Error>
pub fn review( &self, proposal_id: &str ) -> Result<HashMap<String, Vec<AdvisorReview>>, Error>
pub fn challenges(&self) -> Result<Vec<Challenge>, Error>
pub fn vit(&self) -> VitRestClient
pub fn block0(&self) -> Result<Vec<u8>, Error>
pub fn vote_plan_statuses(&self) -> Result<Vec<VotePlanStatus>, Error>
pub fn disable_logs(&mut self)
pub fn enable_logs(&mut self)
pub fn health(&self) -> Result<(), Error>
pub fn are_fragments_in_blockchain( &self, _fragment_ids: Vec<FragmentId> ) -> Result<bool, Error>
pub fn active_vote_plan(&self) -> Result<Vec<VotePlanStatus>, Error>
pub fn vote_plan_history( &self, address: Address, vote_plan_id: VotePlanId ) -> Result<Option<Vec<u8>>, Error>
pub fn votes_history( &self, address: Address ) -> Result<Option<Vec<AccountVotes>>, Error>
pub fn settings(&self) -> Result<SettingsDto, Error>
pub fn account_exists(&self, id: AccountId) -> Result<bool, Error>
Trait Implementations§
source§impl Clone for ValgrindClient
impl Clone for ValgrindClient
source§fn clone(&self) -> ValgrindClient
fn clone(&self) -> ValgrindClient
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for ValgrindClient
impl Send for ValgrindClient
impl Sync for ValgrindClient
impl Unpin for ValgrindClient
impl !UnwindSafe for ValgrindClient
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
§impl<T> Fake for T
impl<T> Fake for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request