Community
The Community Contract holds the funds of the Community Pool, which can be spent through a governance poll.

Config

Name
Type
Description
gov_contract
CanonicalAddr
Contract address of Gov
anchor_token
CanonicalAddr
Contract address of Anchor Token (ANC)
spend_limit
Uint128
Upper cap on community grant size

InstantiateMsg

Rust
JSON
1
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)]
2
pub struct InstantiateMsg {
3
pub gov_contract: String,
4
pub anchor_token: String,
5
pub spend_limit: Uint128,
6
}
Copied!
1
{
2
"gov_contract": "terra1...",
3
"anchor_token": "terra1...",
4
"spend_limit": "100000000000"
5
}
Copied!
Name
Type
Description
gov_contract
String
Contract address of Gov
anchor_token
String
Contract address of Anchor Token (ANC)
spend_limit
Uint128
Upper cap on community grant size

ExecuteMsg

UpdateConfig

Updates the Collector contract configuration.
Rust
JSON
1
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)]
2
#[serde(rename_all = "snake_case")]
3
pub enum ExecuteMsg {
4
UpdateConfig {
5
spend_limit: Option<Uint128>,
6
}
7
}
Copied!
1
{
2
"update_config": {
3
"spend_limit": "100000000000"
4
}
5
}
Copied!
Name
Type
Description
spend_limit*
Uint128
New upper cap on community grant size
* = optional

Spend

Transfers ANC tokens to the grant recipient. Can only be issued by the Gov contract.
Rust
JSON
1
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)]
2
#[serde(rename_all = "snake_case")]
3
pub enum ExecuteMsg {
4
Spend {
5
recipient: String,
6
amount: Uint128,
7
}
8
}
Copied!
1
{
2
"spend": {
3
"recipient": "terra1...",
4
"amount": "100000000"
5
}
6
}
Copied!
Name
Type
Description
recipient
String
Recipient of community grant
amount
Uint128
Community grant amount

QueryMsg

Config

Gets the Collector contract configuration.
Rust
JSON
1
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)]
2
#[serde(rename_all = "snake_case")]
3
pub enum QueryMsg {
4
Config {}
5
}
Copied!
1
{
2
"config": {}
3
}
Copied!
Name
Type
Description

ConfigResponse

Rust
JSON
1
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)]
2
pub struct ConfigResponse {
3
pub gov_contract: String,
4
pub anchor_token: String,
5
pub spend_limit: Uint128,
6
}
Copied!
1
{
2
"gov_contract": "terra1...",
3
"anchor_token": "terra1...",
4
"spend_limit": "100000000000"
5
}
Copied!
Name
Type
Description
gov_contract
String
Contract address of Gov
anchor_token
String
Contract address of Anchor Token (ANC)
spend_limit
Uint128
Upper cap on community grant size
Last modified 3mo ago