IPowerTokenDeployer

Git Source

Inherits: IDeployer

Author: M^0 Labs

Functions

deploy

Deploys a new instance of a Power Token.

Callable only by the Zero Governor.

function deploy(address bootstrapToken, address standardGovernor, address cashToken) external returns (address);

Parameters

Name
Type
Description

bootstrapToken

address

The address of some token to bootstrap from.

standardGovernor

address

The address of some Standard Governor.

cashToken

address

The address of some Cash Token.

Returns

Name
Type
Description

<none>

address

The address of the deployed Emergency Governor.

vault

Returns the address of the Vault.

function vault() external view returns (address);

zeroGovernor

Returns the address of the Zero Governor.

function zeroGovernor() external view returns (address);

Errors

InvalidVaultAddress

Revert message when the Vault specified in the constructor is address(0).

error InvalidVaultAddress();

InvalidZeroGovernorAddress

Revert message when the Zero Governor specified in the constructor is address(0).

error InvalidZeroGovernorAddress();

NotZeroGovernor

Revert message when the caller is not the Zero Governor.

error NotZeroGovernor();

Copyright 2024 M^0 Foundation