PowerBootstrapToken

Git Source

Inherits: IPowerBootstrapToken

Author: M^0 Labs

The timepoints queried is ignored as this token is not time-dependent.

State Variables

_totalSupply

The total supply of token.

uint256 internal immutable _totalSupply;

_balances

Mapping to keep track of token balances per account.

mapping(address account => uint256 balance) internal _balances;

Functions

constructor

Constructs a new PowerBootstrapToken contract.

constructor(address[] memory initialAccounts_, uint256[] memory initialBalances_);

Parameters

NameTypeDescription

initialAccounts_

address[]

The initial accounts to mint tokens to.

initialBalances_

uint256[]

The initial token balances to mint to each accounts.

pastBalanceOf

Returns the token balance of account at a past clock value epoch.

function pastBalanceOf(address account_, uint256) external view returns (uint256);

Parameters

NameTypeDescription

account_

address

<none>

uint256

Returns

NameTypeDescription

<none>

uint256

The token balance account at epoch.

pastTotalSupply

Returns the total token supply at a past clock value epoch.

function pastTotalSupply(uint256) external view returns (uint256);

Parameters

NameTypeDescription

<none>

uint256

Returns

NameTypeDescription

<none>

uint256

The total token supply at epoch.

Copyright 2024 M^0 Foundation