For the complete documentation index, see llms.txt. This page is also available as Markdown.

MixinUpgrade

Overview

License: Apache-2.0-or-later

abstract contract MixinUpgrade is MixinVoting

Errors info

GovUpgradeSameAsCurrent

error GovUpgradeSameAsCurrent()

Thrown when a new threshold, implementation, or strategy is the same as the current one.

GovUpgradeNotContract

error GovUpgradeNotContract(address target)

Thrown when an upgrade target is not a contract.

Parameters:

Name
Type
Description

target

address

The supplied address.

Functions info

updateThresholds (0xc14b8e9c)

Updates the proposal and quorum thresholds to the given values.

Only callable by the governance contract itself.

Thresholds can only be updated via a successful governance proposal.

Parameters:

Name
Type
Description

newProposalThreshold

uint256

The new value for the proposal threshold.

newQuorumThreshold

uint256

The new value for the quorum threshold.

upgradeImplementation (0x83f94db7)

Updates the governance implementation address.

Only callable after successful voting.

Parameters:

Name
Type
Description

newImplementation

address

Address of the new governance implementation contract.

upgradeStrategy (0x3f4360a5)

Updates the governance strategy plugin.

Only callable by the governance contract itself.

Parameters:

Name
Type
Description

newStrategy

address

Address of the new strategy contract.

Last updated