ODCdataManagersERC20

ERC20DataManager

Contract for managing an ERC20 token using a Fungible Token Data Object

This contract is used to manage an ERC20 token where a Data Object contract is used to store the token data This contract MUST be approved to interact to the data point associated with the Fungible Token Data Object

WrongParameters

error WrongParameters()

Error thrown when the parameters are wrong

_datapoint

DataPoint _datapoint

The Data Point identifier for the Fungible Token Data Object

fungibleDO

contract IDataObject fungibleDO

The Fungible Token Data Object

dataIndex

contract IDataIndex dataIndex

The Data Index implementation

constructor

constructor(bytes32 datapoint_, address _dataIndex, address _fungibleDO, string name_, string symbol_) public

totalSupply

function totalSupply() external view returns (uint256)

Returns the value of tokens in existence.

balanceOf

function balanceOf(address account) external view returns (uint256)

Returns the value of tokens owned by account.

_checkMinter

function _checkMinter() internal view

SHOULD throw an error if the sender is not allowed to mint

_writeTransfer

function _writeTransfer(address from, address to, uint256 amount) internal

On this page