Mars Protocol
Search…
πŸ’΅
Treasury
​
The Treasury contract receives protocol fees that are kept in order to be spent in campaigns that are submitted and approved by the council.

Links

Config

Key
Type
Description
owner
CanonicalAddr
Address of contract owner that can update config

InstantiateMsg

Rust
JSON
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)]
pub struct InstantiateMsg {
pub owner: String
}
{
"owner": "terra..."
}
Key
Type
Description
owner
String
Address of contract owner that can update config

ExecuteMsg

UpdateConfig

Update contract config (only callable by owner).
Rust
JSON
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)]
#[serde(rename_all = "snake_case")]
pub enum ExecuteMsg {
UpdateConfig {
owner: Option<String>
}
}
{
"update_config": {
"owner": "terra..."
}
}
Key
Text
Text
owner*
String
Address of contract owner that can update config
* = optional

ExecuteCosmosMsg

Execute Cosmos msg.
Rust
JSON
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)]
#[serde(rename_all = "snake_case")]
pub enum ExecuteMsg {
ExecuteCosmosMsg(CosmosMsg)
}
{
"execute_cosmos_msg":
}

QueryMsg

Config

Get contract config.
Rust
JSON
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)]
#[serde(rename_all = "snake_case")]
pub enum QueryMsg {
Config {}
}
{
"config": {}
}
Copy link
On this page
Links
Config
InstantiateMsg
ExecuteMsg
UpdateConfig
ExecuteCosmosMsg
QueryMsg
Config