pub struct Config {
pub address_provider_address: Addr,
pub proposal_voting_period: u64,
pub proposal_effective_delay: u64,
pub proposal_expiration_period: u64,
pub proposal_required_deposit: Uint128,
pub proposal_required_quorum: Decimal,
pub proposal_required_threshold: Decimal,
}
Expand description
Council global configuration
Fields§
§address_provider_address: Addr
Address provider returns addresses for all protocol contracts
proposal_voting_period: u64
Blocks during which a proposal is active since being submitted
proposal_effective_delay: u64
Blocks that need to pass since a proposal succeeds in order for it to be available to be executed
proposal_expiration_period: u64
Blocks after the effective_delay during which a successful proposal can be activated before it expires
proposal_required_deposit: Uint128
Number of Mars needed to make a proposal. Will be returned if successful. Will be distributed between stakers if rejected.
proposal_required_quorum: Decimal
% of total voting power required to participate in the proposal in order to consider it successfull
proposal_required_threshold: Decimal
% of for votes required in order to consider the proposal successful
Implementations§
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