Anchor Protocol
Search…
Anchor Protocol
Home
Security
Protocol
Overview
Bonded Assets (bAssets)
Money Market
Loan Liquidation
Anchor Token (ANC)
Anchor Governance
User Guide
Interchain Transfers
WebApp
EthAnchor
EthAnchor
EthAnchor Contracts
Fees
Developers - Earn
Anchor Earn SDK
Example Usage
Appendix
xAnchor
xAnchor
xAnchor Contracts
xAnchor Bridge (EVM Chains)
xAnchor Terra-side Contracts
Developers - Terra
Anchor.js
AnchorCLI
Smart Contracts
Deployed Contracts
bLuna
bETH
Money Market
Liquidation
Anchor Token (ANC)
Gov
Staking
Community
Collector
Distributor
Developers - Ethereum [Legacy]
EthAnchor
EthAnchor Account Contract
EthAnchor API
Fees
External Resources
Anchor WebApp
Anchor Protocol GitHub
Terra Blockchain
Powered By
GitBook
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
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)]
pub
struct
InstantiateMsg
{
pub
gov_contract
:
String
,
pub
anchor_token
:
String
,
pub
spend_limit
:
Uint128
,
}
{
"gov_contract"
:
"terra1..."
,
"anchor_token"
:
"terra1..."
,
"spend_limit"
:
"100000000000"
}
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
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)]
#[serde(rename_all =
"snake_case"
)]
pub
enum
ExecuteMsg
{
UpdateConfig
{
spend_limit
:
Option
<
Uint128
>
,
}
}
{
"update_config"
:
{
"spend_limit"
:
"100000000000"
}
}
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
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)]
#[serde(rename_all =
"snake_case"
)]
pub
enum
ExecuteMsg
{
Spend
{
recipient
:
String
,
amount
:
Uint128
,
}
}
{
"spend"
:
{
"recipient"
:
"terra1..."
,
"amount"
:
"100000000"
}
}
Name
Type
Description
recipient
String
Recipient of community grant
amount
Uint128
Community grant amount
QueryMsg
Config
Gets the Collector contract configuration.
Rust
JSON
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)]
#[serde(rename_all =
"snake_case"
)]
pub
enum
QueryMsg
{
Config
{}
}
{
"config"
:
{}
}
Name
Type
Description
​
​
​
ConfigResponse
Rust
JSON
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)]
pub
struct
ConfigResponse
{
pub
gov_contract
:
String
,
pub
anchor_token
:
String
,
pub
spend_limit
:
Uint128
,
}
{
"gov_contract"
:
"terra1..."
,
"anchor_token"
:
"terra1..."
,
"spend_limit"
:
"100000000000"
}
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
Previous
Staking
Next
Collector
Last modified
10mo ago
Copy link
Outline
Config
InstantiateMsg
ExecuteMsg
UpdateConfig
Spend
QueryMsg
Config
ConfigResponse