Search…
Home
Interchain Access
Security
FAQ
Protocol
Overview
Mirrored Assets (mAssets)
Mirror Token (MIR)
Terraswap
Staking Tokens (LP & sLP)
Governance
Developers
mirrorcli
Mirror.js
Mirror API
User Guide
Web App
Mirror on Ethereum
Terra Bridge
Smart Contracts
Architecture
Collector
Community
Factory
Gov
Admin Manager
Mint
Lock
TeFi Oracle
Collateral Oracle
Staking
Limit Order
External Resources
Mirror Protocol GitHub
Terraswap App
Terra Blockchain
Mirror Bug Bounty Program
Powered By
GitBook
Community
The Community Contract holds the funds of the
Community Pool
, which can be spent through a governance poll.
InitMsg
Rust
JSON
1
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)]
2
pub
struct
InitMsg
{
3
pub
owner
:
HumanAddr
,
4
pub
mirror_token
:
HumanAddr
,
5
pub
spend_limit
:
Uint128
,
6
}
Copied!
1
{
2
"owner"
:
"terra1..."
,
3
"mirror_token"
:
"terra1..."
,
4
"spend_limit"
:
"123456"
,
5
}
Copied!
Key
Type
Description
owner
HumanAddr
Owner address
mirror_token
HumanAddr
Contract address of the Mirror Token
spend_limit
Uint128
Max amount of disbursement
HandleMsg
UpdateConfig
Can only be issued by the owner. Updates the Community Contract's configuration.
Rust
JSON
1
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)]
2
#[serde(rename_all =
"snake_case"
)]
3
pub
enum
HandleMsg
{
4
UpdateConfig
{
5
owner
:
Option
<
HumanAddr
>
,
6
spend_limit
:
Option
<
Uint128
>
,
7
}
8
}
Copied!
1
{
2
"update_config"
:
{
3
"owner"
:
"terra1..."
,
4
"spend_limit"
:
"10000000"
5
}
6
}
Copied!
Key
Type
Description
owner
*
HumanAddr
New contract owner
spend_limit
*
Uint128
New spending limit
* = optional
Spend
Can only be issued by the owner. Sends the amount of MIR tokens to the designated recipient.
Rust
JSON
1
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)]
2
#[serde(rename_all =
"snake_case"
)]
3
pub
enum
HandleMsg
{
4
Spend
{
5
amount
:
Uint128
,
6
recipient
:
HumanAddr
,
7
}
8
}
Copied!
1
{
2
"spend"
:
{
3
"amount"
:
"10000000"
,
4
"recipient"
:
"terra1..."
5
}
6
}
Copied!
Key
Type
Description
amount
Uint128
Amount of MIR in contract's balance to send
recipient
HumanAddr
Recipient of the funds
QueryMsg
Config
Gets the Mirror Community contract's configuration.
Rust
JSON
1
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)]
2
#[serde(rename_all =
"snake_case"
)]
3
pub
enum
QueryMsg
{
4
Config
{
5
}
6
}
Copied!
Response
1
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)]
2
pub
struct
ConfigResponse
{
3
pub
owner
:
HumanAddr
,
4
pub
mirror_token
:
HumanAddr
,
5
pub
spend_limit
:
Uint128
,
6
}
Copied!
Key
Type
Description
owner
HumanAddr
Owner address
mirror_token
HumanAddr
Contract address of the Mirror Token
spend_limit
Uint128
Max amount of disbursement
1
{
2
"config"
:
{}
3
}
Copied!
Response
1
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)]
2
pub
struct
ConfigResponse
{
3
pub
owner
:
HumanAddr
,
4
pub
mirror_token
:
HumanAddr
,
5
pub
spend_limit
:
Uint128
,
6
}
Copied!
Key
Type
Description
owner
HumanAddr
Owner address
mirror_token
HumanAddr
Contract address of the Mirror Token
spend_limit
Uint128
Max amount of disbursement
Smart Contracts - Previous
Collector
Next - Smart Contracts
Factory
Last modified
1yr ago
Copy link
Contents
InitMsg
HandleMsg
UpdateConfig
Spend
QueryMsg
Config