pub struct Network {
pub kind: NetworkKind,
pub id: String,
pub grpc_channel: Channel,
pub chain: Chain,
pub gas_denom: Denom,
pub gas_price: f64,
pub lcd_url: Option<String>,
pub fcd_url: Option<String>,
}
Fields§
§kind: NetworkKind
What kind of network
id: String
Identifier for the network ex. columbus-2
grpc_channel: Channel
gRPC channel
chain: Chain
Underlying chain details
gas_denom: Denom
Max gas and denom info
gas_price: f64
gas price
lcd_url: Option<String>
Optional urls for custom functionality
fcd_url: Option<String>
Implementations§
Source§impl Network
impl Network
pub fn get(&self) -> Result<Value, CosmScriptError>
pub fn set(&self, value: Value) -> Result<(), CosmScriptError>
Sourcepub fn get_latest_version(
&self,
contract_name: &str,
) -> Result<u64, CosmScriptError>
pub fn get_latest_version( &self, contract_name: &str, ) -> Result<u64, CosmScriptError>
Get the locally-saved version version of the contract’s latest version on this network
Sourcepub fn set_contract_version(
&self,
contract_name: &str,
code_id: u64,
) -> Result<(), CosmScriptError>
pub fn set_contract_version( &self, contract_name: &str, code_id: u64, ) -> Result<(), CosmScriptError>
Set the locally-saved version version of the contract’s latest version on this network
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Network
impl !RefUnwindSafe for Network
impl Send for Network
impl Sync for Network
impl Unpin for Network
impl !UnwindSafe for Network
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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