Custom Token

Ready for Sale

FINANCIAL

Contract purpose

This is a token contract based on the ERC20 token standard.
ERC20 protocol allows developers to develop a token that complies with common, basic behavioral rules.

Parameters:

tokenName:_ sets the token name
tokenSymbol: sets the token symbol
tokenDecimals: sets the number of token decimals
totalSupply: sets the total token supply

Exposed methods

totalSupply gets the total token supply
tokenSymbol gets the token symbol
tokenStandard gets the token standard; ussually ERC20
tokenName gets the token name
tokenDecimals gets number of token decimals
reserveBalance gets the amount of reserve balance
owner gets the token contract owner
balances gets the balance of the address

parameter name

type

details

address

ethereum address

the balance for the address

balanceOf gets the balance of the owner address

parameter name

type

details

address

ethereum address

the balance for the owner address

allowed gets the allowed number of tokens _fromAddress to _toAddress

parameter name

type

details

address

ethereum address

the address that allowed to transfer for

address

ethereum address

the address that was allowed to transfer from

allowance gets the remaining allowed tokens to be transfered by the allowed address

parameter name

type

details

address_owner

ethereum address

the address that allowed to transfer for

address_spender

ethereum address

the address that was allowed to transfer from

approve sets approval for address_spender and value

parameter name

type

details

address_spender

ethereum address

the address allowed to spend

value

integer256

value allowed to spend

closeContract selfdistruct the contract if executed by owner and move remaining contract balance to owner address
deposit deposit the transaction value to the tx address
setUp sets the owner and the owner address receive the totalSupply

parameter name

type

details

initialSupply

integer256

the total token amount

transfer gets the amount raised through crowdsale

parameter name

type

details

address_to

ethereum address

the receiver address

value

integer256

value

transferFrom

parameter name

type

details

address_from

ethereum address

the address from where it transfers

address_to

ethereum address

the address that receives the transfer

value

integer256

transaction value

withdraw allows the sender to withdraw value if sender_balance > value

parameter name

type

details

value

integer256

transaction value

Example:

tokenName: DORINTOKEN
tokenSymbol: DTK
tokenDecimals: 18
totalSupply: 888888

Reviewed by Modex
Buy

Copyright © Modex Marketplace