pub struct InstantiateMsg {
pub pause_admin: Addr,
pub version: Option<String>,
pub croncat_manager_key: (String, [u8; 2]),
pub croncat_tasks_key: (String, [u8; 2]),
pub agent_nomination_duration: Option<u16>,
pub min_tasks_per_agent: Option<u64>,
pub min_coins_for_agent_registration: Option<u64>,
pub agents_eject_threshold: Option<u64>,
pub min_active_agent_count: Option<u16>,
pub public_registration: bool,
pub allowed_agents: Option<Vec<String>>,
}Fields§
§pause_admin: AddrA 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
version: Option<String>CW2 Version provided by factory
croncat_manager_key: (String, [u8; 2])Name of the key for raw querying Manager address from the factory
croncat_tasks_key: (String, [u8; 2])Name of the key for raw querying Tasks address from the factory
agent_nomination_duration: Option<u16>Sets the amount of time opportunity for a pending agent to become active. If there is a pending queue, the longer a pending agent waits, the more pending agents can potentially become active based on this nomination window. This duration doesn’t block the already nominated agent from becoming active, it only opens the door for more to become active. If a pending agent is nominated, then is lazy and beat by another agent, they get removed from pending queue and must register again.
min_tasks_per_agent: Option<u64>The ratio used to calculate active agents/tasks. Example: “3”, requires there are 4 tasks before letting in another agent to become active. (3 tasks for agent 1, 1 task for agent 2)
min_coins_for_agent_registration: Option<u64>The required amount needed to actually execute a few tasks before withdraw profits. This helps make sure agent wont get stuck out the gate
agents_eject_threshold: Option<u64>How many slots an agent can miss before being removed from the active queue
min_active_agent_count: Option<u16>Minimum agent count in active queue to be untouched by bad agent verifier
public_registration: boolWhether agent registration is public or restricted to an internal whitelist
allowed_agents: Option<Vec<String>>If public registration is false, this provides initial, approved agent addresses
Trait Implementations§
Source§impl Clone for InstantiateMsg
impl Clone for InstantiateMsg
Source§fn clone(&self) -> InstantiateMsg
fn clone(&self) -> InstantiateMsg
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for InstantiateMsg
impl Debug for InstantiateMsg
Source§impl<'de> Deserialize<'de> for InstantiateMsg
impl<'de> Deserialize<'de> for InstantiateMsg
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 InstantiateMsg
impl JsonSchema for InstantiateMsg
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