Struct croncat_sdk_tasks::types::Config
source · pub struct Config {
pub paused: bool,
pub owner_addr: 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§
§paused: bool
§owner_addr: Addr
Address of the contract owner
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>,
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 json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
§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 more