pub struct Config {Show 13 fields
pub owner: Addr,
pub council_address: Addr,
pub incentives_address: Addr,
pub safety_fund_address: Addr,
pub mars_token_address: Addr,
pub oracle_address: Addr,
pub protocol_admin_address: Addr,
pub protocol_rewards_collector_address: Addr,
pub red_bank_address: Addr,
pub staking_address: Addr,
pub treasury_address: Addr,
pub vesting_address: Addr,
pub xmars_token_address: Addr,
}
Expand description
Global configuration
Fields§
§owner: Addr
Contract owner
council_address: Addr
Council contract address
incentives_address: Addr
Incentives contract address
safety_fund_address: Addr
Safety fund contract address
mars_token_address: Addr
Mars token address
oracle_address: Addr
Oracle address
protocol_admin_address: Addr
Protocol admin address (admin for all the contracts)
protocol_rewards_collector_address: Addr
Protocol Rewards Collector address
red_bank_address: Addr
Red bank contract address
staking_address: Addr
Staking contract address
treasury_address: Addr
Treasury contract address
vesting_address: Addr
Vesting contract address
xmars_token_address: Addr
xMars token address
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
Source§impl JsonSchema for Config
impl JsonSchema for Config
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreimpl StructuralPartialEq for Config
Auto Trait Implementations§
impl Freeze for Config
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> 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