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)
This is a cw_ownable message.
QueryMsg
Config
CurrentEpoch
Epoch
{ "epoch": { "id": 100 } }
Ownership (::cw_ownable)
This is a cw_ownable query.
MigrateMsg