Skip to main content
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"
  }
}
KeyTypeDescription
ownerStringContract owner.
epoch_configEpochConfigEpoch configuration.

ExecuteMsg

UpdateConfig

{
  "update_config": {
    "epoch_config": {
      "duration": "86400",
      "genesis_epoch": "1571797"
    }
  }
}

UpdateOwnership (::cw_ownable)

This is a cw_ownable message.

QueryMsg

Config

{ "config": {} }

CurrentEpoch

{ "current_epoch": {} }

Epoch

{ "epoch": { "id": 100 } }

Ownership (::cw_ownable)

This is a cw_ownable query.
{ "ownership": {} }

MigrateMsg

{}