Skip to main content

MockOGN

MockOGN

Token that allows minting and burning. Important note: There is a known race condition in the ERC20 standard on the approve() method. See details: https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 The Origin token contract implements the increaseApproval() and decreaseApproval() methods. It is strongly recommended to use those methods rather than approve() when updating the token allowance.

SetWhitelistExpiration

event SetWhitelistExpiration(uint256 expiration)

AllowedTransactorAdded

event AllowedTransactorAdded(address sender)

AllowedTransactorRemoved

event AllowedTransactorRemoved(address sender)

AddCallSpenderWhitelist

event AddCallSpenderWhitelist(address enabler, address spender)

RemoveCallSpenderWhitelist

event RemoveCallSpenderWhitelist(address disabler, address spender)

callSpenderWhitelist

mapping(address => bool) callSpenderWhitelist

owner

address owner

whitelistExpiration

uint256 whitelistExpiration

allowedTransactors

mapping(address => bool) allowedTransactors

constructor

constructor(uint256 _initialSupply) public

addCallSpenderWhitelist

function addCallSpenderWhitelist(address _spender) public

removeCallSpenderWhitelist

function removeCallSpenderWhitelist(address _spender) public

approveAndCallWithSender

function approveAndCallWithSender(address _spender, uint256 _value, bytes4 _selector, bytes _callParams) public payable returns (bool)

onlyOwner

modifier onlyOwner()

allowedTransfer

modifier allowedTransfer(address _from, address _to)

whitelistActive

function whitelistActive() public view returns (bool)

addAllowedTransactor

function addAllowedTransactor(address _transactor) public

removeAllowedTransactor

function removeAllowedTransactor(address _transactor) public

setWhitelistExpiration

function setWhitelistExpiration(uint256 _expiration) public

Set the whitelist expiration, after which the whitelist no longer applies.

transfer

function transfer(address _to, uint256 _value) public returns (bool)

transferFrom

function transferFrom(address _from, address _to, uint256 _value) public returns (bool)