TestTokens.sol

View Source: contracts/TestTokens.sol

Contract Members

Constants & Variables

string public name;
string public symbol;
uint8 public decimals;
uint256 public supply;
mapping(address => uint256) public balances;
mapping(address => mapping(address => uint256)) public allowed;

Events

event Transfer(address  sender, address  receiver, uint256  tokens);
event Approval(address  sender, address  delegate, uint256  tokens);

Functions

  • totalSupply()

  • balanceOf(address tokenOwner)

  • transfer(address receiver, uint256 numTokens)

  • approve(address delegate, uint256 numTokens)

  • allowance(address owner, address delegate)

  • transferFrom(address owner, address buyer, uint256 numTokens)

  • allocateTo(address _owner, uint256 value)

totalSupply

function totalSupply() external view
returns(uint256)

Arguments

balanceOf

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

Arguments

transfer

function transfer(address receiver, uint256 numTokens) external nonpayable
returns(bool)

Arguments

approve

function approve(address delegate, uint256 numTokens) external nonpayable
returns(bool)

Arguments

allowance

function allowance(address owner, address delegate) external view
returns(uint256)

Arguments

transferFrom

function transferFrom(address owner, address buyer, uint256 numTokens) external nonpayable
returns(bool)

Arguments

allocateTo

function allocateTo(address _owner, uint256 value) public nonpayable

Arguments

Last updated