RioNetwork

Git Source

Inherits: ERC20, ERC20Permit, ERC20Votes

Functions

constructor

constructor(address to) ERC20('Rio Network', 'RN') ERC20Permit('Rio Network');

Parameters

NameTypeDescription

to

address

The address to mint the initial supply to.

clock

Clock used for flagging checkpoints, overriden to implement timestamp based checkpoints (and voting).

function clock() public view override returns (uint48);

CLOCK_MODE

Machine-readable description of the clock as specified in EIP-6372.

function CLOCK_MODE() public pure override returns (string memory);

nonces

Returns the current nonce for owner. This value must be included whenever a signature is generated for {permit}.

function nonces(address owner) public view override(ERC20Permit, Nonces) returns (uint256);

Parameters

NameTypeDescription

owner

address

The account to query the nonce for.

_update

Transfers a value amount of tokens from from to to, or alternatively mints (or burns) if from (or to) is the zero address. In addition, this function moves voting power when tokens are transferred.

function _update(address from, address to, uint256 value) internal override(ERC20, ERC20Votes);

Parameters

NameTypeDescription

from

address

The origin address.

to

address

The destination address.

value

uint256

The amount of tokens to transfer.

Last updated