var img = document.createElement('img'); img.src = "https://terradocs.matomo.cloud//piwik.php?idsite=3&rec=1&url=https://docs.warp.money" + location.pathname; img.style = "border:0"; img.alt = "tracker"; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(img,s);
Skip to main content

Execute messages

This section outlines the data structures for Warp messages.

Source Code

The source for Warp can be found on Github:

Jobs

CreateJobMsg

Creates a job using a name, condition, execute messages, and a reward. Jobs are stored in an index. Successfully created jobs are given the Pending status. Jobs can also contain a create_job transactions, allowing jobs to be chained together and executed from the same context.

Rust
Copy

_6
pub struct CreateJobMsg {
_6
pub name: String,
_6
pub condition: Condition,
_6
pub msgs: Vec<String>,
_6
pub reward: Uint128,
_6
}

DeleteJobMsg

Allows the Job owner to delete a pending job. Deleted Job messages are still stored in the index and given a Canelled status.

Rust
Copy

_3
pub struct DeleteJobMsg {
_3
pub id: Uint64,
_3
}

UpdateJobMsg

Allows the job owner to update a job.

Rust
Copy

_6
pub struct UpdateJobMsg {
_6
pub id: Uint64,
_6
pub name: Option<String>,
_6
pub condition: Option<Condition>,
_6
pub added_reward: Option<Uint128>,
_6
}

ExecuteJobMsg

Allows a keeper to execute a pending job if the conditions are met. Upon execution of the job, the reward will be released to the keeper.

Rust
Copy

_3
pub struct ExecuteJobMsg {
_3
pub id: Uint64,
_3
}

CreateJobMsg

Creates a job using a name, condition, execute messages, and a reward. Jobs are stored in an index. Successfully created jobs are given the Pending status. Jobs can also contain a create_job transactions, allowing jobs to be chained together and executed from the same context.

DeleteJobMsg

Allows the Job owner to delete a pending job. Deleted Job messages are still stored in the index and given a Canelled status.

UpdateJobMsg

Allows the job owner to update a job.

ExecuteJobMsg

Allows a keeper to execute a pending job if the conditions are met. Upon execution of the job, the reward will be released to the keeper.

Rust
CopyExpandClose

_6
pub struct CreateJobMsg {
_6
pub name: String,
_6
pub condition: Condition,
_6
pub msgs: Vec<String>,
_6
pub reward: Uint128,
_6
}

Accounts

CreateAccountMsg

Create a Warp account.

Rust
Copy

_1
pub struct CreateAccountMsg {}

CreateAccountMsg

Create a Warp account.

Rust
CopyExpandClose

_1
pub struct CreateAccountMsg {}

Config

UpdateConfigMsg

Update the config message.

Rust
Copy

_7
pub struct UpdateConfigMsg {
_7
pub owner: Option<Addr>,
_7
pub warp_token_address: Option<String>,
_7
pub minimum_reward: Option<Uint128>,
_7
pub creation_fee_percentage: Option<Uint128>,
_7
pub cancellation_fee_percentage: Option<Uint128>,
_7
}

UpdateConfigMsg

Update the config message.

Rust
CopyExpandClose

_7
pub struct UpdateConfigMsg {
_7
pub owner: Option<Addr>,
_7
pub warp_token_address: Option<String>,
_7
pub minimum_reward: Option<Uint128>,
_7
pub creation_fee_percentage: Option<Uint128>,
_7
pub cancellation_fee_percentage: Option<Uint128>,
_7
}