pub struct ConfigParams {Show 13 fields
pub owner: Option<String>,
pub council_address: Option<String>,
pub incentives_address: Option<String>,
pub safety_fund_address: Option<String>,
pub mars_token_address: Option<String>,
pub oracle_address: Option<String>,
pub protocol_admin_address: Option<String>,
pub protocol_rewards_collector_address: Option<String>,
pub red_bank_address: Option<String>,
pub staking_address: Option<String>,
pub treasury_address: Option<String>,
pub vesting_address: Option<String>,
pub xmars_token_address: Option<String>,
}
Fields§
§owner: Option<String>
Contract owner (has special permissions to update parameters)
council_address: Option<String>
Council contract handles the submission and execution of proposals
incentives_address: Option<String>
Incentives contract handles incentives to depositors on the red bank
safety_fund_address: Option<String>
Safety fund contract accumulates UST to protect the protocol from shortfall events
mars_token_address: Option<String>
Mars token cw20 contract
oracle_address: Option<String>
Oracle contract provides prices in uusd for assets used in the protocol
protocol_admin_address: Option<String>
Protocol admin is the Cosmos level contract admin that has permissions to migrate contracts
protocol_rewards_collector_address: Option<String>
Protocol Rewards Collector receives and distributes protocl rewards
red_bank_address: Option<String>
Red Bank contract handles user’s depositing/borrowing and holds the protocol’s liquidity
staking_address: Option<String>
Staking address handles Mars staking and xMars minting
treasury_address: Option<String>
Treasury contract accumulates protocol fees that can be spent by the council through the voting of proposals
vesting_address: Option<String>
Vesting contract
xmars_token_address: Option<String>
xMars token cw20 contract
Trait Implementations§
Source§impl Clone for ConfigParams
impl Clone for ConfigParams
Source§fn clone(&self) -> ConfigParams
fn clone(&self) -> ConfigParams
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ConfigParams
impl Debug for ConfigParams
Source§impl Default for ConfigParams
impl Default for ConfigParams
Source§fn default() -> ConfigParams
fn default() -> ConfigParams
Source§impl<'de> Deserialize<'de> for ConfigParams
impl<'de> Deserialize<'de> for ConfigParams
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>,
Source§impl JsonSchema for ConfigParams
impl JsonSchema for ConfigParams
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read more