Struct wasm_deploy::file::Config
source · pub struct Config {
pub settings: Settings,
pub shell_completion_dir: Option<PathBuf>,
pub chains: Vec<ChainConfig>,
pub envs: Vec<Env>,
pub keys: Vec<SigningKey>,
}Fields§
§settings: Settings§shell_completion_dir: Option<PathBuf>§chains: Vec<ChainConfig>§envs: Vec<Env>§keys: Vec<SigningKey>Implementations§
source§impl Config
impl Config
pub fn init() -> Result<Config, DeployError>
pub fn load() -> Result<Config, DeployError>
pub fn save(&self) -> Result<(), DeployError>
pub fn get_active_env_mut(&mut self) -> Result<&mut Env, DeployError>
pub fn get_active_env(&self) -> Result<&Env, DeployError>
pub fn get_active_chain_info(&mut self) -> Result<ChainConfig, DeployError>
pub async fn get_active_key(&mut self) -> Result<SigningKey, DeployError>
pub fn _get_active_chain_id(&mut self) -> Result<String, DeployError>
pub fn add_chain_from( &mut self, chain_info: ChainConfig ) -> Result<ChainConfig, DeployError>
pub fn add_chain(&mut self) -> Result<ChainConfig, DeployError>
sourcepub fn add_contract_from(
&mut self,
new_contract: ContractInfo
) -> Result<ContractInfo, DeployError>
pub fn add_contract_from( &mut self, new_contract: ContractInfo ) -> Result<ContractInfo, DeployError>
Adds or replaces a contract
pub fn add_contract(&mut self) -> Result<ContractInfo, DeployError>
pub fn get_contract_addr_mut( &mut self, name: &String ) -> Result<&String, DeployError>
pub fn _get_code_id(&mut self, name: &String) -> Result<&mut u64, DeployError>
pub fn get_contract( &mut self, name: &String ) -> Result<&mut ContractInfo, DeployError>
pub fn add_key_from( &mut self, key: SigningKey ) -> Result<SigningKey, DeployError>
pub async fn add_key(&mut self) -> Result<SigningKey, DeployError>
pub fn add_env(&mut self) -> Result<&mut Env, DeployError>
pub fn change_env(&mut self) -> Result<(), DeployError>
pub fn get_grpc_client(&mut self) -> DeployResult<CosmTome<CosmosgRPC>>
Trait Implementations§
source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations§
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§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.