ERC-20
Overview
Max Total Supply
100,000,000 TRD
Holders
1,222
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Tradesman
Compiler Version
v0.4.20-nightly.2018.1.6+commit.2548228b
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2018-01-19 */ pragma solidity ^0.4.18; contract owned { address public owner; function owned() public { owner = msg.sender; } modifier onlyOwner { require(msg.sender == owner); _; } function transferOwnership(address newOwner) onlyOwner public { owner = newOwner; } } interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) public; } contract TokenERC20 { // Public variables of the token string public name; string public symbol; uint8 public decimals = 18; // 18 decimals is the strongly suggested default, avoid changing it uint256 public totalSupply; // This creates an array with all balances mapping (address => uint256) public balanceOf; mapping (address => mapping (address => uint256)) public allowance; // This generates a public event on the blockchain that will notify clients event Transfer(address indexed from, address indexed to, uint256 value); // This notifies clients about the amount burnt event Burn(address indexed from, uint256 value); // Constructor function. Initializes contract with initial supply tokens to the creator of the contract function TokenERC20( uint256 initialSupply, string tokenName, string tokenSymbol ) public { totalSupply = initialSupply * 10 ** uint256(decimals); // Update total supply with the decimal amount balanceOf[msg.sender] = totalSupply; // Give the creator all initial tokens name = tokenName; // Set the name for display purposes symbol = tokenSymbol; // Set the symbol for display purposes } // Internal transfer, only can be called by this contract function _transfer(address _from, address _to, uint _value) internal { require(_to != 0x0); // Prevent transfer to 0x0 address. Use burn() instead require(balanceOf[_from] >= _value); // Check if the sender has enough require(balanceOf[_to] + _value > balanceOf[_to]); // Check for overflows uint previousBalances = balanceOf[_from] + balanceOf[_to]; // Save this for an assertion in the future balanceOf[_from] -= _value; // Subtract from the sender balanceOf[_to] += _value; // Add the same to the recipient Transfer(_from, _to, _value); assert(balanceOf[_from] + balanceOf[_to] == previousBalances); // Asserts are used to use static analysis to find bugs in your code. They should never fail } /// @notice Send `_value` (in wei, with 18 zeros) tokens to `_to` from msg.sender's account /// @param _to The address of the recipient /// @param _value the amount to send function transfer(address _to, uint256 _value) public { _transfer(msg.sender, _to, _value); } /// @notice Transfer tokens from another address. Send `_value` (in wei, with 18 zeros) tokens to `_to` in behalf of `_from`. `_from` must have already approved `msg.sender` /// @param _from The address of the sender /// @param _to The address of the recipient /// @param _value the amount to send function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) { require(_value <= allowance[_from][msg.sender]); // Check allowance (array[approver][approvee]) allowance[_from][msg.sender] -= _value; // deduct _value from allowance _transfer(_from, _to, _value); // transfer return true; } /// @notice Set allowance for other address. Allow `_spender` to spend no more than `_value` (in wei, with 18 zeros) tokens on `msg.sender` behalf /// @param _spender The address authorized to spend /// @param _value the max amount they can spend function approve(address _spender, uint256 _value) public returns (bool success) { allowance[msg.sender][_spender] = _value; // Create allowance (array[approver][approvee]) return true; } /// @notice Set allowance for other address,then notify Allow `_spender` to spend no more than `_value` (in wei, with 18 zeros) tokens on `msg.sender` behalf, then ping the contract about it /// @param _spender The address authorized to spend /// @param _value the max amount they can spend /// @param _extraData some extra information to send to the approved contract function approveAndCall(address _spender, uint256 _value, bytes _extraData) public returns (bool success) { tokenRecipient spender = tokenRecipient(_spender); if (approve(_spender, _value)) { spender.receiveApproval(msg.sender, _value, this, _extraData); return true; } } /// @notice Destroy tokens. Remove `_value` (in wei, with 18 zeros) tokens from the system irreversibly /// @param _value the amount of money to burn function burn(uint256 _value) public returns (bool success) { require(balanceOf[msg.sender] >= _value); // Check if the sender has enough balanceOf[msg.sender] -= _value; // Subtract from the sender totalSupply -= _value; // Updates totalSupply Burn(msg.sender, _value); return true; } /// @notice Destroy tokens in another account. Remove `_value` (in wei, with 18 zeros) tokens from the system irreversibly, on behalf of `_from`. `_from` must have already approved `msg.sender` /// @param _from the address of the sender /// @param _value the amount of money to burn function burnFrom(address _from, uint256 _value) public returns (bool success) { require(balanceOf[_from] >= _value); // Check if the targeted balance is enough require(_value <= allowance[_from][msg.sender]); // Check allowance. `_from` must have already approved `msg.sender` balanceOf[_from] -= _value; // Subtract from the targeted balance allowance[_from][msg.sender] -= _value; // Subtract from the sender's allowance totalSupply -= _value; // Update totalSupply Burn(_from, _value); return true; } } /******************************************/ /* TRADESMAN TOKEN STARTS HERE */ /******************************************/ contract Tradesman is owned, TokenERC20 { uint256 public sellPrice; uint256 public sellMultiplier; // allows token to be valued at < 1 ETH uint256 public buyPrice; uint256 public buyMultiplier; // allows token to be valued at < 1 ETH mapping (address => bool) public frozenAccount; // This generates a public event on the blockchain that will notify clients event FrozenFunds(address target, bool frozen); // Initializes contract with initial supply tokens to the creator of the contract function Tradesman( uint256 initialSupply, string tokenName, string tokenSymbol ) TokenERC20(initialSupply, tokenName, tokenSymbol) public {} // Internal transfer, only can be called by this contract // value in wei, with 18 zeros function _transfer(address _from, address _to, uint _value) internal { require (_to != 0x0); // Prevent transfer to 0x0 address. Use burn() instead require (balanceOf[_from] >= _value); // Check if the sender has enough require (balanceOf[_to] + _value > balanceOf[_to]); // Check for overflows require (!frozenAccount[_from]); // Check if sender is frozen require (!frozenAccount[_to]); // Check if recipient is frozen balanceOf[_from] -= _value; // Subtract from the sender balanceOf[_to] += _value; // Add the same to the recipient Transfer(_from, _to, _value); } /* we disable minting. Fixed supply. /// @notice Create `mintedAmount` tokens and send it to `target` /// @param target Address to receive the tokens /// @param mintedAmount the amount of tokens (in wei, with 18 zeros) it will receive function mintToken(address target, uint256 mintedAmount) onlyOwner public { balanceOf[target] += mintedAmount; totalSupply += mintedAmount; Transfer(0, this, mintedAmount); Transfer(this, target, mintedAmount); } */ /// @notice `freeze? Prevent | Allow` `target` from sending & receiving tokens, if ordered by law /// @param target Address to be frozen /// @param freeze either to freeze it or not function freezeAccount(address target, bool freeze) onlyOwner public { frozenAccount[target] = freeze; FrozenFunds(target, freeze); } /// @notice Allow users to buy tokens for `newBuyPrice` eth and sell tokens for `newSellPrice` eth. Multipliers allow for token value < 1 ETH /// @param newSellPrice Price the users can sell to the contract /// @param newBuyPrice Price users can buy from the contract /// @param newSellMultiplier Allows token value < 1 ETH. num_eth = num_tokens * (sellPrice / sellMultiplier) /// @param newBuyMultiplier Allows token value < 1 ETH. num_tokens = num_eth * (buyMultiplier / buyPrice) function setPrices(uint256 newSellPrice, uint256 newSellMultiplier, uint256 newBuyPrice, uint256 newBuyMultiplier) onlyOwner public { sellPrice = newSellPrice; // sellPrice should be less than buyPrice sellMultiplier = newSellMultiplier; // so buyPrice cannot be 1 if also selling buyPrice = newBuyPrice; // Suggest buyPrice = 10, buyMultiplier = 100000, for 10000:1 TRD:ETH buyMultiplier = newBuyMultiplier; // then sellPrice = 5, sellMultiplier = 100000 } // Set `buyMultiplier` = 0 after all tokens sold. We can still accept donations. /// @notice Automatically buy tokens from contract by sending ether (no `data` required). function () payable public { uint amount = msg.value * buyMultiplier / buyPrice; // calculates the amount. Multiplier allows token value < 1 ETH _transfer(this, msg.sender, amount); // makes the transfers } // Set `buyMultiplier` = 0 after all tokens sold. /// @notice Buy tokens from contract by sending ether, with `data` = `0xa6f2ae3a`. function buy() payable public { require (buyMultiplier > 0); // if no more tokens, make Tx fail. uint amount = msg.value * buyMultiplier / buyPrice; // calculates the amount. Multiplier allows token value < 1 ETH _transfer(this, msg.sender, amount); // makes the transfers } // Set `sellMultiplier` = 0 after all tokens sold. /// @notice Sell `amount` tokens to contract /// @param amount amount of tokens to be sold function sell(uint256 amount) public { require (sellMultiplier > 0); // if not buying back tokens, make Tx fail. require(this.balance >= amount * sellPrice / sellMultiplier); // checks if the contract has enough ether to buy. Multiplier allows token value < 1 ETH _transfer(msg.sender, this, amount); // makes the transfers msg.sender.transfer(amount * sellPrice / sellMultiplier); // sends ether to the seller. It's important to do this last to avoid recursion attacks } /// @notice Allow contract to transfer ether directly /// @param _to address of destination /// @param _value amount of ETH to transfer function etherTransfer(address _to, uint _value) onlyOwner public { _to.transfer(_value); } /// @notice generic transfer function can interact with contracts by supplying data / function calls /// @param _to address of destination /// @param _value amount of ETH to transfer /// @param _data data bytes function genericTransfer(address _to, uint _value, bytes _data) onlyOwner public { require(_to.call.value(_value)(_data)); } // transfer out tokens (can be done with the generic transfer function by supplying the function signature and parameters) /// @notice Allow contract to transfer tokens directly /// @param _to address of destination /// @param _value amount of ETH to transfer function tokenTransfer(address _to, uint _value) onlyOwner public { _transfer(this, _to, _value); // makes the transfers } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","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,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"buyMultiplier","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_value","type":"uint256"}],"name":"burn","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"sellPrice","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"tokenTransfer","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_value","type":"uint256"}],"name":"burnFrom","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"buyPrice","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"},{"name":"_data","type":"bytes"}],"name":"genericTransfer","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"etherTransfer","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"buy","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"frozenAccount","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"},{"name":"_extraData","type":"bytes"}],"name":"approveAndCall","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"newSellPrice","type":"uint256"},{"name":"newSellMultiplier","type":"uint256"},{"name":"newBuyPrice","type":"uint256"},{"name":"newBuyMultiplier","type":"uint256"}],"name":"setPrices","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"amount","type":"uint256"}],"name":"sell","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"target","type":"address"},{"name":"freeze","type":"bool"}],"name":"freezeAccount","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"sellMultiplier","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"initialSupply","type":"uint256"},{"name":"tokenName","type":"string"},{"name":"tokenSymbol","type":"string"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":false,"name":"target","type":"address"},{"indexed":false,"name":"frozen","type":"bool"}],"name":"FrozenFunds","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":"from","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Burn","type":"event"}]
Contract Creation Code
60606040526003805460ff19166012179055341561001c57600080fd5b60405162000fdc38038062000fdc833981016040528080519190602001805182019190602001805160008054600160a060020a033316600160a060020a03199091168117825560035460ff16600a0a8702600481905590825260056020526040909120559091019050828282600182805161009b9291602001906100bb565b5060028180516100af9291602001906100bb565b50505050505050610156565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106100fc57805160ff1916838001178555610129565b82800160010185558215610129579182015b8281111561012957825182559160200191906001019061010e565b50610135929150610139565b5090565b61015391905b80821115610135576000815560010161013f565b90565b610e7680620001666000396000f3006060604052600436106101535763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde038114610177578063095ea7b31461020157806318160ddd1461023757806323b872dd1461025c5780633121c7c014610284578063313ce5671461029757806342966c68146102c05780634b750334146102d657806368cdafe6146102e957806370a082311461030d57806379cc67901461032c5780638620410b1461034e578063887f6178146103615780638da5cb5b146103c657806395d89b41146103f55780639c250dd814610408578063a6f2ae3a1461042a578063a9059cbb14610432578063b414d4b614610454578063cae9ca5114610473578063d8e86854146104d8578063dd62ed3e146104f7578063e4849b321461051c578063e724529c14610532578063f2fde38b14610556578063fed0d2a114610575575b6000600954600a54340281151561016657fe5b049050610174303383610588565b50005b341561018257600080fd5b61018a61069f565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156101c65780820151838201526020016101ae565b50505050905090810190601f1680156101f35780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561020c57600080fd5b610223600160a060020a036004351660243561073d565b604051901515815260200160405180910390f35b341561024257600080fd5b61024a61076d565b60405190815260200160405180910390f35b341561026757600080fd5b610223600160a060020a0360043581169060243516604435610773565b341561028f57600080fd5b61024a6107ea565b34156102a257600080fd5b6102aa6107f0565b60405160ff909116815260200160405180910390f35b34156102cb57600080fd5b6102236004356107f9565b34156102e157600080fd5b61024a610884565b34156102f457600080fd5b61030b600160a060020a036004351660243561088a565b005b341561031857600080fd5b61024a600160a060020a03600435166108b4565b341561033757600080fd5b610223600160a060020a03600435166024356108c6565b341561035957600080fd5b61024a6109a2565b341561036c57600080fd5b61030b60048035600160a060020a03169060248035919060649060443590810190830135806020601f820181900481020160405190810160405281815292919060208401838380828437509496506109a895505050505050565b34156103d157600080fd5b6103d9610a4f565b604051600160a060020a03909116815260200160405180910390f35b341561040057600080fd5b61018a610a5e565b341561041357600080fd5b61030b600160a060020a0360043516602435610ac9565b61030b610b15565b341561043d57600080fd5b61030b600160a060020a0360043516602435610b49565b341561045f57600080fd5b610223600160a060020a0360043516610b54565b341561047e57600080fd5b61022360048035600160a060020a03169060248035919060649060443590810190830135806020601f82018190048102016040519081016040528181529291906020840183838082843750949650610b6995505050505050565b34156104e357600080fd5b61030b600435602435604435606435610c9b565b341561050257600080fd5b61024a600160a060020a0360043581169060243516610cca565b341561052757600080fd5b61030b600435610ce7565b341561053d57600080fd5b61030b600160a060020a03600435166024351515610d6e565b341561056157600080fd5b61030b600160a060020a0360043516610dfa565b341561058057600080fd5b61024a610e44565b600160a060020a038216151561059d57600080fd5b600160a060020a038316600090815260056020526040902054819010156105c357600080fd5b600160a060020a038216600090815260056020526040902054818101116105e957600080fd5b600160a060020a0383166000908152600b602052604090205460ff161561060f57600080fd5b600160a060020a0382166000908152600b602052604090205460ff161561063557600080fd5b600160a060020a038084166000818152600560205260408082208054869003905592851680825290839020805485019055917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9084905190815260200160405180910390a3505050565b60018054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156107355780601f1061070a57610100808354040283529160200191610735565b820191906000526020600020905b81548152906001019060200180831161071857829003601f168201915b505050505081565b600160a060020a033381166000908152600660209081526040808320938616835292905220819055600192915050565b60045481565b600160a060020a038084166000908152600660209081526040808320339094168352929052908120548211156107a857600080fd5b600160a060020a03808516600090815260066020908152604080832033909416835292905220805483900390556107e0848484610588565b5060019392505050565b600a5481565b60035460ff1681565b600160a060020a0333166000908152600560205260408120548290101561081f57600080fd5b600160a060020a03331660008181526005602052604090819020805485900390556004805485900390557fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca59084905190815260200160405180910390a2506001919050565b60075481565b60005433600160a060020a039081169116146108a557600080fd5b6108b0308383610588565b5050565b60056020526000908152604090205481565b600160a060020a038216600090815260056020526040812054829010156108ec57600080fd5b600160a060020a038084166000908152600660209081526040808320339094168352929052205482111561091f57600080fd5b600160a060020a038084166000818152600560209081526040808320805488900390556006825280832033909516835293905282902080548590039055600480548590039055907fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca59084905190815260200160405180910390a250600192915050565b60095481565b60005433600160a060020a039081169116146109c357600080fd5b82600160a060020a0316828260405180828051906020019080838360005b838110156109f95780820151838201526020016109e1565b50505050905090810190601f168015610a265780820380516001836020036101000a031916815260200191505b5091505060006040518083038185876187965a03f1925050501515610a4a57600080fd5b505050565b600054600160a060020a031681565b60028054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156107355780601f1061070a57610100808354040283529160200191610735565b60005433600160a060020a03908116911614610ae457600080fd5b600160a060020a03821681156108fc0282604051600060405180830381858888f1935050505015156108b057600080fd5b600080600a54111515610b2757600080fd5b600954600a543402811515610b3857fe5b049050610b46303383610588565b50565b6108b0338383610588565b600b6020526000908152604090205460ff1681565b600083610b76818561073d565b15610c935780600160a060020a0316638f4ffcb1338630876040518563ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018085600160a060020a0316600160a060020a0316815260200184815260200183600160a060020a0316600160a060020a0316815260200180602001828103825283818151815260200191508051906020019080838360005b83811015610c2c578082015183820152602001610c14565b50505050905090810190601f168015610c595780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b1515610c7a57600080fd5b6102c65a03f11515610c8b57600080fd5b505050600191505b509392505050565b60005433600160a060020a03908116911614610cb657600080fd5b600793909355600891909155600955600a55565b600660209081526000928352604080842090915290825290205481565b60085460009011610cf757600080fd5b6008546007548202811515610d0857fe5b04600160a060020a033016311015610d1f57600080fd5b610d2a333083610588565b33600160a060020a03166108fc6008546007548402811515610d4857fe5b049081150290604051600060405180830381858888f193505050501515610b4657600080fd5b60005433600160a060020a03908116911614610d8957600080fd5b600160a060020a0382166000908152600b602052604090819020805460ff19168315151790557f48335238b4855f35377ed80f164e8c6f3c366e54ac00b96a6402d4a9814a03a5908390839051600160a060020a039092168252151560208201526040908101905180910390a15050565b60005433600160a060020a03908116911614610e1557600080fd5b6000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600854815600a165627a7a7230582092462674c28f443b2dbdf98d0486b2fb122787f5b29a0ae9f73e75521c53e35a00290000000000000000000000000000000000000000000000000000000005f5e100000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000095472616465736d616e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035452440000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6060604052600436106101535763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde038114610177578063095ea7b31461020157806318160ddd1461023757806323b872dd1461025c5780633121c7c014610284578063313ce5671461029757806342966c68146102c05780634b750334146102d657806368cdafe6146102e957806370a082311461030d57806379cc67901461032c5780638620410b1461034e578063887f6178146103615780638da5cb5b146103c657806395d89b41146103f55780639c250dd814610408578063a6f2ae3a1461042a578063a9059cbb14610432578063b414d4b614610454578063cae9ca5114610473578063d8e86854146104d8578063dd62ed3e146104f7578063e4849b321461051c578063e724529c14610532578063f2fde38b14610556578063fed0d2a114610575575b6000600954600a54340281151561016657fe5b049050610174303383610588565b50005b341561018257600080fd5b61018a61069f565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156101c65780820151838201526020016101ae565b50505050905090810190601f1680156101f35780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561020c57600080fd5b610223600160a060020a036004351660243561073d565b604051901515815260200160405180910390f35b341561024257600080fd5b61024a61076d565b60405190815260200160405180910390f35b341561026757600080fd5b610223600160a060020a0360043581169060243516604435610773565b341561028f57600080fd5b61024a6107ea565b34156102a257600080fd5b6102aa6107f0565b60405160ff909116815260200160405180910390f35b34156102cb57600080fd5b6102236004356107f9565b34156102e157600080fd5b61024a610884565b34156102f457600080fd5b61030b600160a060020a036004351660243561088a565b005b341561031857600080fd5b61024a600160a060020a03600435166108b4565b341561033757600080fd5b610223600160a060020a03600435166024356108c6565b341561035957600080fd5b61024a6109a2565b341561036c57600080fd5b61030b60048035600160a060020a03169060248035919060649060443590810190830135806020601f820181900481020160405190810160405281815292919060208401838380828437509496506109a895505050505050565b34156103d157600080fd5b6103d9610a4f565b604051600160a060020a03909116815260200160405180910390f35b341561040057600080fd5b61018a610a5e565b341561041357600080fd5b61030b600160a060020a0360043516602435610ac9565b61030b610b15565b341561043d57600080fd5b61030b600160a060020a0360043516602435610b49565b341561045f57600080fd5b610223600160a060020a0360043516610b54565b341561047e57600080fd5b61022360048035600160a060020a03169060248035919060649060443590810190830135806020601f82018190048102016040519081016040528181529291906020840183838082843750949650610b6995505050505050565b34156104e357600080fd5b61030b600435602435604435606435610c9b565b341561050257600080fd5b61024a600160a060020a0360043581169060243516610cca565b341561052757600080fd5b61030b600435610ce7565b341561053d57600080fd5b61030b600160a060020a03600435166024351515610d6e565b341561056157600080fd5b61030b600160a060020a0360043516610dfa565b341561058057600080fd5b61024a610e44565b600160a060020a038216151561059d57600080fd5b600160a060020a038316600090815260056020526040902054819010156105c357600080fd5b600160a060020a038216600090815260056020526040902054818101116105e957600080fd5b600160a060020a0383166000908152600b602052604090205460ff161561060f57600080fd5b600160a060020a0382166000908152600b602052604090205460ff161561063557600080fd5b600160a060020a038084166000818152600560205260408082208054869003905592851680825290839020805485019055917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9084905190815260200160405180910390a3505050565b60018054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156107355780601f1061070a57610100808354040283529160200191610735565b820191906000526020600020905b81548152906001019060200180831161071857829003601f168201915b505050505081565b600160a060020a033381166000908152600660209081526040808320938616835292905220819055600192915050565b60045481565b600160a060020a038084166000908152600660209081526040808320339094168352929052908120548211156107a857600080fd5b600160a060020a03808516600090815260066020908152604080832033909416835292905220805483900390556107e0848484610588565b5060019392505050565b600a5481565b60035460ff1681565b600160a060020a0333166000908152600560205260408120548290101561081f57600080fd5b600160a060020a03331660008181526005602052604090819020805485900390556004805485900390557fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca59084905190815260200160405180910390a2506001919050565b60075481565b60005433600160a060020a039081169116146108a557600080fd5b6108b0308383610588565b5050565b60056020526000908152604090205481565b600160a060020a038216600090815260056020526040812054829010156108ec57600080fd5b600160a060020a038084166000908152600660209081526040808320339094168352929052205482111561091f57600080fd5b600160a060020a038084166000818152600560209081526040808320805488900390556006825280832033909516835293905282902080548590039055600480548590039055907fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca59084905190815260200160405180910390a250600192915050565b60095481565b60005433600160a060020a039081169116146109c357600080fd5b82600160a060020a0316828260405180828051906020019080838360005b838110156109f95780820151838201526020016109e1565b50505050905090810190601f168015610a265780820380516001836020036101000a031916815260200191505b5091505060006040518083038185876187965a03f1925050501515610a4a57600080fd5b505050565b600054600160a060020a031681565b60028054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156107355780601f1061070a57610100808354040283529160200191610735565b60005433600160a060020a03908116911614610ae457600080fd5b600160a060020a03821681156108fc0282604051600060405180830381858888f1935050505015156108b057600080fd5b600080600a54111515610b2757600080fd5b600954600a543402811515610b3857fe5b049050610b46303383610588565b50565b6108b0338383610588565b600b6020526000908152604090205460ff1681565b600083610b76818561073d565b15610c935780600160a060020a0316638f4ffcb1338630876040518563ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018085600160a060020a0316600160a060020a0316815260200184815260200183600160a060020a0316600160a060020a0316815260200180602001828103825283818151815260200191508051906020019080838360005b83811015610c2c578082015183820152602001610c14565b50505050905090810190601f168015610c595780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b1515610c7a57600080fd5b6102c65a03f11515610c8b57600080fd5b505050600191505b509392505050565b60005433600160a060020a03908116911614610cb657600080fd5b600793909355600891909155600955600a55565b600660209081526000928352604080842090915290825290205481565b60085460009011610cf757600080fd5b6008546007548202811515610d0857fe5b04600160a060020a033016311015610d1f57600080fd5b610d2a333083610588565b33600160a060020a03166108fc6008546007548402811515610d4857fe5b049081150290604051600060405180830381858888f193505050501515610b4657600080fd5b60005433600160a060020a03908116911614610d8957600080fd5b600160a060020a0382166000908152600b602052604090819020805460ff19168315151790557f48335238b4855f35377ed80f164e8c6f3c366e54ac00b96a6402d4a9814a03a5908390839051600160a060020a039092168252151560208201526040908101905180910390a15050565b60005433600160a060020a03908116911614610e1557600080fd5b6000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600854815600a165627a7a7230582092462674c28f443b2dbdf98d0486b2fb122787f5b29a0ae9f73e75521c53e35a0029
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000005f5e100000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000095472616465736d616e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035452440000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : initialSupply (uint256): 100000000
Arg [1] : tokenName (string): Tradesman
Arg [2] : tokenSymbol (string): TRD
-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000005f5e100
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [4] : 5472616465736d616e0000000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [6] : 5452440000000000000000000000000000000000000000000000000000000000
Swarm Source
bzzr://92462674c28f443b2dbdf98d0486b2fb122787f5b29a0ae9f73e75521c53e35a
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.