pub struct Config {
pub owner_addr: Addr,
pub pause_admin: Addr,
pub croncat_factory_addr: Addr,
pub chain_name: String,
pub version: String,
pub croncat_manager_key: (String, [u8; 2]),
pub croncat_agents_key: (String, [u8; 2]),
pub slot_granularity_time: u64,
pub gas_base_fee: u64,
pub gas_action_fee: u64,
pub gas_query_fee: u64,
pub gas_limit: u64,
}
Fields§
§owner_addr: Addr
Address of the contract owner
pause_admin: Addr
A multisig admin whose sole responsibility is to pause the contract in event of emergency. Must be a different contract address than DAO, cannot be a regular keypair Does not have the ability to unpause, must rely on the DAO to assess the situation and act accordingly
croncat_factory_addr: Addr
Address of the factory contract
chain_name: String
Chain name to add prefix to the task_hash
version: String
Assigned by Factory, denotes the version of this contract (CW2 spec) & used as the task verion as well.
croncat_manager_key: (String, [u8; 2])
Name of the key for raw querying Manager address from the factory
croncat_agents_key: (String, [u8; 2])
Name of the key for raw querying Agents address from the factory
slot_granularity_time: u64
Time in nanos for each bucket of tasks
gas_base_fee: u64
Gas needed to cover proxy call without any action
gas_action_fee: u64
Gas needed to cover single non-wasm task’s Action
gas_query_fee: u64
Gas needed to cover single query
gas_limit: u64
Gas limit, to make sure task won’t lock contract
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>,
Source§impl JsonSchema for Config
impl JsonSchema for Config
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