Distributor
Last updated
Last updated
UpdateConfig
Updates the Distributor contract configuration. Can only be issued by the Gov contract.
* = optional
Spend
Spends ANC in Distributor. Can only be issued by whitelisted addresses.
AddDistributor
Adds a new ANC distribution contract to the whitelist. Can only be issued by the Gov contract.
RemoveDistributor
Removes a ANC distribution contract from the whitelist. Can only be issued by the Gov contract.
Config
Gets the Distributor contract configuration.
ConfigResponse
Key
Type
Description
gov_contract
CanonicalAddr
Contract address of Gov
anchor_token
CanonicalAddr
Contract address of ANC token
whitelist
Vec<CanonicalAddr>
List of addresses permissioned to spend ANC in Distributor
spend_limit
Uint128
Maximum amount of ANC spendable per spend event
Key
Type
Description
gov_contract
String
Contract address of Gov
anchor_token
String
Contract address of ANC token
whitelist
Vec<String>
List of addresses permissioned to spend ANC in Distributor
spend_limit
Uint128
Maximum amount of ANC spendable per spend event
Key
Type
Description
spend_limit
*
Uint128
Maximum amount of ANC spendable per spend event
Key
Type
Description
recipient
String
Recipient address of ANC spend
amount
Uint128
ANC amount to receive
Key
Type
Description
distributor
String
Contract address of ANC distribution contract to add
Key
Type
Description
distributor
String
Contract address of ANC distribution contract to remove
Key
Type
Description
Key
Type
Description
gov_contract
String
Contract address of Gov
anchor_token
String
Contract address of ANC Token
whitelist
Vec<String>
List of addresses permissioned to spend ANC in Distributor
spend_limit
Uint128
Maximum amount of ANC spendable per spend event