ERC-20
Old Contract
Overview
Max Total Supply
10,000,000 BCAP
Holders
812 (0.00%)
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 0 Decimals)
Balance
10 BCAPValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
BCAPToken
Compiler Version
v0.4.10+commit.f0d539ae
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2017-05-15 */ /* * Blockchain Capital Token Smart Contract. Copyright © 2017 by ABDK * Consulting. */ /* * ERC-20 Standard Token Smart Contract Interface. * Copyright © 2016 by ABDK Consulting. */ pragma solidity ^0.4.1; /** * ERC-20 standard token interface, as defined * <a href="http://github.com/ethereum/EIPs/issues/20">here</a>. */ contract Token { /** * Get total number of tokens in circulation. * * @return total number of tokens in circulation */ function totalSupply () constant returns (uint256 supply); /** * Get number of tokens currently belonging to given owner. * * @param _owner address to get number of tokens currently belonging to the owner of * @return number of tokens currently belonging to the owner of given address */ function balanceOf (address _owner) constant returns (uint256 balance); /** * Transfer given number of tokens from message sender to given recipient. * * @param _to address to transfer tokens to the owner of * @param _value number of tokens to transfer to the owner of given address * @return true if tokens were transferred successfully, false otherwise */ function transfer (address _to, uint256 _value) returns (bool success); /** * Transfer given number of tokens from given owner to given recipient. * * @param _from address to transfer tokens from the owner of * @param _to address to transfer tokens to the owner of * @param _value number of tokens to transfer from given owner to given recipient * @return true if tokens were transferred successfully, false otherwise */ function transferFrom (address _from, address _to, uint256 _value) returns (bool success); /** * Allow given spender to transfer given number of tokens from message sender. * * @param _spender address to allow the owner of to transfer tokens from message sender * @param _value number of tokens to allow to transfer * @return true if token transfer was successfully approved, false otherwise */ function approve (address _spender, uint256 _value) returns (bool success); /** * Tell how many tokens given spender is currently allowed to transfer from * given owner. * * @param _owner address to get number of tokens allowed to be transferred * from the owner of * @param _spender address to get number of tokens allowed to be transferred * by the owner of * @return number of tokens given spender is currently allowed to transfer * from given owner */ function allowance (address _owner, address _spender) constant returns (uint256 remaining); /** * Logged when tokens were transferred from one owner to another. * * @param _from address of the owner, tokens were transferred from * @param _to address of the owner, tokens were transferred to * @param _value number of tokens transferred */ event Transfer (address indexed _from, address indexed _to, uint256 _value); /** * Logged when owner approved his tokens to be transferred by some spender. * * @param _owner owner who approved his tokens to be transferred * @param _spender spender who were allowed to transfer the tokens belonging * to the owner * @param _value number of tokens belonging to the owner, approved to be * transferred by the spender */ event Approval ( address indexed _owner, address indexed _spender, uint256 _value); } /* * Safe Math Smart Contract. Copyright © 2016 by ABDK Consulting. */ /** * Provides methods to safely add, subtract and multiply uint256 numbers. */ contract SafeMath { uint256 constant private MAX_UINT256 = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF; /** * Add two uint256 values, throw in case of overflow. * * @param x first value to add * @param y second value to add * @return x + y */ function safeAdd (uint256 x, uint256 y) constant internal returns (uint256 z) { if (x > MAX_UINT256 - y) throw; return x + y; } /** * Subtract one uint256 value from another, throw in case of underflow. * * @param x value to subtract from * @param y value to subtract * @return x - y */ function safeSub (uint256 x, uint256 y) constant internal returns (uint256 z) { if (x < y) throw; return x - y; } /** * Multiply two uint256 values, throw in case of overflow. * * @param x first value to multiply * @param y second value to multiply * @return x * y */ function safeMul (uint256 x, uint256 y) constant internal returns (uint256 z) { if (y == 0) return 0; // Prevent division by zero at the next line if (x > MAX_UINT256 / y) throw; return x * y; } } /* * Abstract Token Smart Contract. Copyright © 2017 by ABDK Consulting. */ /** * Abstract Token Smart Contract that could be used as a base contract for * ERC-20 token contracts. */ contract AbstractToken is Token, SafeMath { /** * Create new Abstract Token contract. */ function AbstractToken () { // Do nothing } /** * Get number of tokens currently belonging to given owner. * * @param _owner address to get number of tokens currently belonging to the owner of * @return number of tokens currently belonging to the owner of given address */ function balanceOf (address _owner) constant returns (uint256 balance) { return accounts [_owner]; } /** * Transfer given number of tokens from message sender to given recipient. * * @param _to address to transfer tokens to the owner of * @param _value number of tokens to transfer to the owner of given address * @return true if tokens were transferred successfully, false otherwise */ function transfer (address _to, uint256 _value) returns (bool success) { if (accounts [msg.sender] < _value) return false; if (_value > 0 && msg.sender != _to) { accounts [msg.sender] = safeSub (accounts [msg.sender], _value); accounts [_to] = safeAdd (accounts [_to], _value); Transfer (msg.sender, _to, _value); } return true; } /** * Transfer given number of tokens from given owner to given recipient. * * @param _from address to transfer tokens from the owner of * @param _to address to transfer tokens to the owner of * @param _value number of tokens to transfer from given owner to given recipient * @return true if tokens were transferred successfully, false otherwise */ function transferFrom (address _from, address _to, uint256 _value) returns (bool success) { if (allowances [_from][msg.sender] < _value) return false; if (accounts [_from] < _value) return false; allowances [_from][msg.sender] = safeSub (allowances [_from][msg.sender], _value); if (_value > 0 && _from != _to) { accounts [_from] = safeSub (accounts [_from], _value); accounts [_to] = safeAdd (accounts [_to], _value); Transfer (_from, _to, _value); } return true; } /** * Allow given spender to transfer given number of tokens from message sender. * * @param _spender address to allow the owner of to transfer tokens from message sender * @param _value number of tokens to allow to transfer * @return true if token transfer was successfully approved, false otherwise */ function approve (address _spender, uint256 _value) returns (bool success) { allowances [msg.sender][_spender] = _value; Approval (msg.sender, _spender, _value); return true; } /** * Tell how many tokens given spender is currently allowed to transfer from * given owner. * * @param _owner address to get number of tokens allowed to be transferred * from the owner of * @param _spender address to get number of tokens allowed to be transferred * by the owner of * @return number of tokens given spender is currently allowed to transfer * from given owner */ function allowance (address _owner, address _spender) constant returns (uint256 remaining) { return allowances [_owner][_spender]; } /** * Mapping from addresses of token holders to the numbers of tokens belonging * to these token holders. */ mapping (address => uint256) accounts; /** * Mapping from addresses of token holders to the mapping of addresses of * spenders to the allowances set by these token holders to these spenders. */ mapping (address => mapping (address => uint256)) private allowances; } /* * Standard Token Smart Contract. Copyright © 2016 by ABDK Consulting. */ /** * Standard Token Smart Contract that implements ERC-20 token with special * unlimited supply "token issuer" account. */ contract StandardToken is AbstractToken { uint256 constant private MAX_UINT256 = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF; /** * Create new Standard Token contract with given "token issuer" account. * * @param _tokenIssuer address of "token issuer" account */ function StandardToken (address _tokenIssuer) AbstractToken () { tokenIssuer = _tokenIssuer; accounts [_tokenIssuer] = MAX_UINT256; } /** * Get total number of tokens in circulation. * * @return total number of tokens in circulation */ function totalSupply () constant returns (uint256 supply) { return safeSub (MAX_UINT256, accounts [tokenIssuer]); } /** * Get number of tokens currently belonging to given owner. * * @param _owner address to get number of tokens currently belonging to the owner of * @return number of tokens currently belonging to the owner of given address */ function balanceOf (address _owner) constant returns (uint256 balance) { return _owner == tokenIssuer ? 0 : AbstractToken.balanceOf (_owner); } /** * Address of "token issuer" account. */ address private tokenIssuer; } /** * Blockchain Capital Token Smart Contract. */ contract BCAPToken is StandardToken { /** * Create new Blockchain Capital Token contract with given token issuer * address. * * @param _tokenIssuer address of token issuer */ function BCAPToken (address _tokenIssuer) StandardToken (_tokenIssuer) { owner = _tokenIssuer; } /** * Freeze token transfers. */ function freezeTransfers () { if (msg.sender != owner) throw; if (!transfersFrozen) { transfersFrozen = true; Freeze (); } } /** * Unfreeze token transfers. */ function unfreezeTransfers () { if (msg.sender != owner) throw; if (transfersFrozen) { transfersFrozen = false; Unfreeze (); } } /** * Transfer given number of tokens from message sender to given recipient. * * @param _to address to transfer tokens to the owner of * @param _value number of tokens to transfer to the owner of given address * @return true if tokens were transferred successfully, false otherwise */ function transfer (address _to, uint256 _value) returns (bool success) { if (transfersFrozen) return false; else return AbstractToken.transfer (_to, _value); } /** * Transfer given number of tokens from given owner to given recipient. * * @param _from address to transfer tokens from the owner of * @param _to address to transfer tokens to the owner of * @param _value number of tokens to transfer from given owner to given recipient * @return true if tokens were transferred successfully, false otherwise */ function transferFrom (address _from, address _to, uint256 _value) returns (bool success) { if (transfersFrozen) return false; else return AbstractToken.transferFrom (_from, _to, _value); } /** * Logged when transfers were frozen. */ event Freeze (); /** * Logged when transfers were unfrozen. */ event Unfreeze (); /** * Address of the owner of smart contract. Only owner is allowed to * freeze/unfreeze transfers. */ address owner; /** * Whether transfers are currently frozen or not. */ bool transfersFrozen = false; }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":false,"inputs":[],"name":"freezeTransfers","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"supply","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"unfreezeTransfers","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining","type":"uint256"}],"payable":false,"type":"function"},{"inputs":[{"name":"_tokenIssuer","type":"address"}],"payable":false,"type":"constructor"},{"anonymous":false,"inputs":[],"name":"Freeze","type":"event"},{"anonymous":false,"inputs":[],"name":"Unfreeze","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_from","type":"address"},{"indexed":true,"name":"_to","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_owner","type":"address"},{"indexed":true,"name":"_spender","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"Approval","type":"event"}]
Contract Creation Code
60606040526003805460a060020a60ff0219169055341561001c57fe5b6040516020806107c483398101604052515b805b5b5b60028054600160a060020a031916600160a060020a038316908117909155600090815260208190526040902060001990555b5060038054600160a060020a031916600160a060020a0383161790555b505b610732806100926000396000f300606060405236156100725763ffffffff60e060020a600035041663015024608114610074578063095ea7b31461008657806318160ddd146100b957806323b872dd146100db57806331c420d41461011457806370a0823114610126578063a9059cbb14610154578063dd62ed3e14610187575bfe5b341561007c57fe5b6100846101bb565b005b341561008e57fe5b6100a5600160a060020a036004351660243561023b565b604080519115158252519081900360200190f35b34156100c157fe5b6100c96102a6565b60408051918252519081900360200190f35b34156100e357fe5b6100a5600160a060020a03600435811690602435166044356102d4565b604080519115158252519081900360200190f35b341561011c57fe5b610084610307565b005b341561012e57fe5b6100c9600160a060020a0360043516610380565b60408051918252519081900360200190f35b341561015c57fe5b6100a5600160a060020a03600435166024356103b1565b604080519115158252519081900360200190f35b341561018f57fe5b6100c9600160a060020a03600435811690602435166103e6565b60408051918252519081900360200190f35b60035433600160a060020a039081169116146101d75760006000fd5b60035460a060020a900460ff161515610238576003805474ff0000000000000000000000000000000000000000191660a060020a1790556040517f615acbaede366d76a8b8cb2a9ada6a71495f0786513d71aa97aaf0c3910b78de90600090a15b5b565b600160a060020a03338116600081815260016020908152604080832094871680845294825280832086905580518681529051929493927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a35060015b92915050565b600254600160a060020a03166000908152602081905260408120546102ce9060001990610413565b90505b90565b60035460009060a060020a900460ff16156102f1575060006102ff565b6102fc84848461042e565b90505b5b9392505050565b60035433600160a060020a039081169116146103235760006000fd5b60035460a060020a900460ff1615610238576003805474ff0000000000000000000000000000000000000000191690556040517f2f05ba71d0df11bf5fa562a6569d70c4f80da84284badbe015ce1456063d0ded90600090a15b5b565b600254600090600160a060020a038381169116146103a6576103a1826105c5565b6103a9565b60005b90505b919050565b60035460009060a060020a900460ff16156103ce575060006102a0565b6103d883836105e4565b90506102a0565b5b92915050565b600160a060020a038083166000908152600160209081526040808320938516835292905220545b92915050565b6000818310156104235760006000fd5b508082035b92915050565b600160a060020a0380841660009081526001602090815260408083203390941683529290529081205482901015610467575060006102ff565b600160a060020a03841660009081526020819052604090205482901015610490575060006102ff565b600160a060020a03808516600090815260016020908152604080832033909416835292905220546104c19083610413565b600160a060020a038086166000908152600160209081526040808320339094168352929052908120919091558211801561050d575082600160a060020a031684600160a060020a031614155b156105ba57600160a060020a0384166000908152602081905260409020546105359083610413565b600160a060020a03808616600090815260208190526040808220939093559085168152205461056490836106e7565b600160a060020a038085166000818152602081815260409182902094909455805186815290519193928816927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a35b5060015b9392505050565b600160a060020a0381166000908152602081905260409020545b919050565b600160a060020a0333166000908152602081905260408120548290101561060d575060006102a0565b60008211801561062f575082600160a060020a031633600160a060020a031614155b156106dd57600160a060020a0333166000908152602081905260409020546106579083610413565b600160a060020a03338116600090815260208190526040808220939093559085168152205461068690836106e7565b600160a060020a03808516600081815260208181526040918290209490945580518681529051919333909316927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a35b5060015b92915050565b600081600019038311156106fb5760006000fd5b508181015b929150505600a165627a7a723058205e64ce47ca67e1c613a62eff9d1f0be90ee852f0ad9fa29c4ca14e102bb4215d002900000000000000000000000003b92813983f611a6bfdf0c23c4f289ed073dcf5
Deployed Bytecode
0x606060405236156100725763ffffffff60e060020a600035041663015024608114610074578063095ea7b31461008657806318160ddd146100b957806323b872dd146100db57806331c420d41461011457806370a0823114610126578063a9059cbb14610154578063dd62ed3e14610187575bfe5b341561007c57fe5b6100846101bb565b005b341561008e57fe5b6100a5600160a060020a036004351660243561023b565b604080519115158252519081900360200190f35b34156100c157fe5b6100c96102a6565b60408051918252519081900360200190f35b34156100e357fe5b6100a5600160a060020a03600435811690602435166044356102d4565b604080519115158252519081900360200190f35b341561011c57fe5b610084610307565b005b341561012e57fe5b6100c9600160a060020a0360043516610380565b60408051918252519081900360200190f35b341561015c57fe5b6100a5600160a060020a03600435166024356103b1565b604080519115158252519081900360200190f35b341561018f57fe5b6100c9600160a060020a03600435811690602435166103e6565b60408051918252519081900360200190f35b60035433600160a060020a039081169116146101d75760006000fd5b60035460a060020a900460ff161515610238576003805474ff0000000000000000000000000000000000000000191660a060020a1790556040517f615acbaede366d76a8b8cb2a9ada6a71495f0786513d71aa97aaf0c3910b78de90600090a15b5b565b600160a060020a03338116600081815260016020908152604080832094871680845294825280832086905580518681529051929493927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a35060015b92915050565b600254600160a060020a03166000908152602081905260408120546102ce9060001990610413565b90505b90565b60035460009060a060020a900460ff16156102f1575060006102ff565b6102fc84848461042e565b90505b5b9392505050565b60035433600160a060020a039081169116146103235760006000fd5b60035460a060020a900460ff1615610238576003805474ff0000000000000000000000000000000000000000191690556040517f2f05ba71d0df11bf5fa562a6569d70c4f80da84284badbe015ce1456063d0ded90600090a15b5b565b600254600090600160a060020a038381169116146103a6576103a1826105c5565b6103a9565b60005b90505b919050565b60035460009060a060020a900460ff16156103ce575060006102a0565b6103d883836105e4565b90506102a0565b5b92915050565b600160a060020a038083166000908152600160209081526040808320938516835292905220545b92915050565b6000818310156104235760006000fd5b508082035b92915050565b600160a060020a0380841660009081526001602090815260408083203390941683529290529081205482901015610467575060006102ff565b600160a060020a03841660009081526020819052604090205482901015610490575060006102ff565b600160a060020a03808516600090815260016020908152604080832033909416835292905220546104c19083610413565b600160a060020a038086166000908152600160209081526040808320339094168352929052908120919091558211801561050d575082600160a060020a031684600160a060020a031614155b156105ba57600160a060020a0384166000908152602081905260409020546105359083610413565b600160a060020a03808616600090815260208190526040808220939093559085168152205461056490836106e7565b600160a060020a038085166000818152602081815260409182902094909455805186815290519193928816927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a35b5060015b9392505050565b600160a060020a0381166000908152602081905260409020545b919050565b600160a060020a0333166000908152602081905260408120548290101561060d575060006102a0565b60008211801561062f575082600160a060020a031633600160a060020a031614155b156106dd57600160a060020a0333166000908152602081905260409020546106579083610413565b600160a060020a03338116600090815260208190526040808220939093559085168152205461068690836106e7565b600160a060020a03808516600081815260208181526040918290209490945580518681529051919333909316927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a35b5060015b92915050565b600081600019038311156106fb5760006000fd5b508181015b929150505600a165627a7a723058205e64ce47ca67e1c613a62eff9d1f0be90ee852f0ad9fa29c4ca14e102bb4215d0029
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000003b92813983f611a6bfdf0c23c4f289ed073dcf5
-----Decoded View---------------
Arg [0] : _tokenIssuer (address): 0x03B92813983F611A6BfdF0C23C4F289eD073DcF5
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000003b92813983f611a6bfdf0c23c4f289ed073dcf5
Swarm Source
bzzr://5e64ce47ca67e1c613a62eff9d1f0be90ee852f0ad9fa29c4ca14e102bb4215d
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.