Contracts
Epoch Manager
Epoch clock contract used by MANTRA DEX (MANTRA Swap)
The Epoch Manager acts as a clock for other contracts (notably the Farm Manager) by defining epochs that are derived from a genesis epoch and a duration.
An epoch is a period of time defined by EpochConfig.duration.
Instantiate
{
"owner": "mantra1...",
"epoch_config": {
"duration": "86400",
"genesis_epoch": "1571797"
}
}| Key | Type | Description |
|---|---|---|
owner | String | Contract owner. |
epoch_config | EpochConfig | Epoch configuration. |
ExecuteMsg
UpdateConfig
{
"update_config": {
"epoch_config": {
"duration": "86400",
"genesis_epoch": "1571797"
}
}
}UpdateOwnership (::cw_ownable)
Tip
This is a cw_ownable message.
QueryMsg
Config
{ "config": {} }CurrentEpoch
{ "current_epoch": {} }Epoch
{ "epoch": { "id": 100 } }Ownership (::cw_ownable)
Tip
This is a cw_ownable query.
{ "ownership": {} }MigrateMsg
{}