PowerTokenDeployer

Git Source

Inherits: IPowerTokenDeployer

Author: M^0 Labs

State Variables

vault

Returns the address of the Vault.

address public immutable vault;

zeroGovernor

Returns the address of the Zero Governor.

address public immutable zeroGovernor;

lastDeploy

Returns the address of the last contract deployed by this contract.

address public lastDeploy;

nonce

Returns the nonce used to pre deterministically compute the address of the next deployed contract.

uint256 public nonce;

Functions

constructor

Constructs a new PowerTokenDeployer contract.

constructor(address zeroGovernor_, address vault_);

Parameters

NameTypeDescription

zeroGovernor_

address

The address of the ZeroGovernor contract.

vault_

address

The address of the Vault contract.

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

NameTypeDescription

bootstrapToken_

address

standardGovernor_

address

cashToken_

address

Returns

NameTypeDescription

<none>

address

The address of the deployed Emergency Governor.

nextDeploy

Returns the address of the next contract this contract will deploy.

function nextDeploy() external view returns (address);

Copyright 2024 M^0 Foundation