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 nametypedetails
addressethereum addressthe balance for the address

balanceOf gets the balance of the owner address

parameter nametypedetails
addressethereum addressthe balance for the owner address

allowed gets the allowed number of tokens _fromAddress to _toAddress

parameter nametypedetails
addressethereum addressthe address that allowed to transfer for
addressethereum addressthe address that was allowed to transfer from

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

parameter nametypedetails
address_ownerethereum addressthe address that allowed to transfer for
address_spenderethereum addressthe address that was allowed to transfer from

approve sets approval for address_spender and value

parameter nametypedetails
address_spenderethereum addressthe address allowed to spend
valueinteger256value 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 nametypedetails
initialSupplyinteger256the total token amount

transfer gets the amount raised through crowdsale

parameter nametypedetails
address_toethereum addressthe receiver address
valueinteger256value

transferFrom

parameter nametypedetails
address_fromethereum addressthe address from where it transfers
address_toethereum addressthe address that receives the transfer
valueinteger256transaction value

withdraw allows the sender to withdraw value if sender_balance > value

parameter nametypedetails
valueinteger256transaction value

Example:

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

Reviewed by Modex
Buy

Copyright © Modex Marketplace