More Info
Private Name Tags
ContractCreator
Multi Chain
Multichain Addresses
4 addresses found via
Latest 25 from a total of 271 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
Value | ||||
---|---|---|---|---|---|---|---|---|---|
Create Token | 12457435 | 866 days 22 hrs ago | IN | 0 ETH | 0.21246935 | ||||
Create Token | 11494639 | 1015 days 2 hrs ago | IN | 0 ETH | 0.03240628 | ||||
Create Token | 11231941 | 1055 days 11 hrs ago | IN | 0 ETH | 0.03727053 | ||||
Create Token | 11225351 | 1056 days 11 hrs ago | IN | 0 ETH | 0.01903981 | ||||
Create Token | 11225257 | 1056 days 12 hrs ago | IN | 0 ETH | 0.01863581 | ||||
Create Token | 11202921 | 1059 days 22 hrs ago | IN | 0 ETH | 0.00239109 | ||||
Create Token | 10654740 | 1144 days 7 hrs ago | IN | 0 ETH | 0.12232645 | ||||
Create Token | 10432879 | 1178 days 15 hrs ago | IN | 0 ETH | 0.04779662 | ||||
Create Token | 10360843 | 1189 days 18 hrs ago | IN | 0 ETH | 0.036463 | ||||
Create Token | 10200431 | 1214 days 15 hrs ago | IN | 0 ETH | 0.02190972 | ||||
Create Token | 9942730 | 1254 days 15 hrs ago | IN | 0 ETH | 0.00935759 | ||||
Create Token | 9664452 | 1297 days 14 hrs ago | IN | 0 ETH | 0.00648192 | ||||
Create Token | 9364493 | 1343 days 17 hrs ago | IN | 0 ETH | 0.00118654 | ||||
Create Token | 9102027 | 1388 days 10 hrs ago | IN | 0 ETH | 0.00079101 | ||||
Create Token | 9012130 | 1404 days 9 hrs ago | IN | 0 ETH | 0.00470391 | ||||
Create Token | 8636358 | 1464 days 22 hrs ago | IN | 0 ETH | 0.032761 | ||||
Create Token | 8549584 | 1478 days 12 hrs ago | IN | 0 ETH | 0.0195351 | ||||
Create Token | 8473152 | 1490 days 10 hrs ago | IN | 0 ETH | 0.00138435 | ||||
Create Token | 8420541 | 1498 days 14 hrs ago | IN | 0 ETH | 0.00159771 | ||||
Create Token | 8244809 | 1525 days 22 hrs ago | IN | 0 ETH | 0.00326253 | ||||
Create Token | 8197885 | 1533 days 4 hrs ago | IN | 0 ETH | 0.00119818 | ||||
Create Token | 8191472 | 1534 days 4 hrs ago | IN | 0 ETH | 0.00119905 | ||||
Create Token | 8191040 | 1534 days 6 hrs ago | IN | 0 ETH | 0.00119847 | ||||
Create Token | 8185163 | 1535 days 4 hrs ago | IN | 0 ETH | 0.00119847 | ||||
Create Token | 8185064 | 1535 days 4 hrs ago | IN | 0 ETH | 0.00119847 |
Latest 25 internal transactions (View All)
Parent Txn Hash | Block | From | To | Value | ||
---|---|---|---|---|---|---|
18168534 | 13 days 8 mins ago | Contract Creation | 0 ETH | |||
17226769 | 145 days 6 hrs ago | Contract Creation | 0 ETH | |||
12457435 | 866 days 22 hrs ago | Contract Creation | 0 ETH | |||
11494639 | 1015 days 2 hrs ago | Contract Creation | 0 ETH | |||
11231941 | 1055 days 11 hrs ago | Contract Creation | 0 ETH | |||
11225351 | 1056 days 11 hrs ago | Contract Creation | 0 ETH | |||
11225257 | 1056 days 12 hrs ago | Contract Creation | 0 ETH | |||
11202921 | 1059 days 22 hrs ago | Contract Creation | 0 ETH | |||
10654740 | 1144 days 7 hrs ago | Contract Creation | 0 ETH | |||
10432879 | 1178 days 15 hrs ago | Contract Creation | 0 ETH | |||
10360843 | 1189 days 18 hrs ago | Contract Creation | 0 ETH | |||
10200431 | 1214 days 15 hrs ago | Contract Creation | 0 ETH | |||
9942730 | 1254 days 15 hrs ago | Contract Creation | 0 ETH | |||
9664452 | 1297 days 14 hrs ago | Contract Creation | 0 ETH | |||
9364493 | 1343 days 17 hrs ago | Contract Creation | 0 ETH | |||
9102027 | 1388 days 10 hrs ago | Contract Creation | 0 ETH | |||
9012130 | 1404 days 9 hrs ago | Contract Creation | 0 ETH | |||
8636358 | 1464 days 22 hrs ago | Contract Creation | 0 ETH | |||
8549584 | 1478 days 12 hrs ago | Contract Creation | 0 ETH | |||
8473152 | 1490 days 10 hrs ago | Contract Creation | 0 ETH | |||
8420541 | 1498 days 14 hrs ago | Contract Creation | 0 ETH | |||
8244809 | 1525 days 22 hrs ago | Contract Creation | 0 ETH | |||
8197885 | 1533 days 4 hrs ago | Contract Creation | 0 ETH | |||
8191472 | 1534 days 4 hrs ago | Contract Creation | 0 ETH | |||
8191040 | 1534 days 6 hrs ago | Contract Creation | 0 ETH |
Loading...
Loading
Contract Name:
TokenCreator
Compiler Version
v0.4.21+commit.dfe3193c
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2018-04-09 */ /* Copyright 2017 Loopring Project Ltd (Loopring Foundation). Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ pragma solidity 0.4.21; /// @title Utility Functions for address /// @author Daniel Wang - <[email protected]> library AddressUtil { function isContract(address addr) internal view returns (bool) { if (addr == 0x0) { return false; } else { uint size; assembly { size := extcodesize(addr) } return size > 0; } } } /* Copyright 2017 Loopring Project Ltd (Loopring Foundation). Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ /* Copyright 2017 Loopring Project Ltd (Loopring Foundation). Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ /* Copyright 2017 Loopring Project Ltd (Loopring Foundation). Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ /// @title ERC20 Token Interface /// @dev see https://github.com/ethereum/EIPs/issues/20 /// @author Daniel Wang - <[email protected]> contract ERC20 { function balanceOf(address who) view public returns (uint256); function allowance(address owner, address spender) view public returns (uint256); function transfer(address to, uint256 value) public returns (bool); function transferFrom(address from, address to, uint256 value) public returns (bool); function approve(address spender, uint256 value) public returns (bool); } /* Copyright 2017 Loopring Project Ltd (Loopring Foundation). Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ /// @title Utility Functions for uint /// @author Daniel Wang - <[email protected]> library MathUint { function mul(uint a, uint b) internal pure returns (uint c) { c = a * b; require(a == 0 || c / a == b); } function sub(uint a, uint b) internal pure returns (uint) { require(b <= a); return a - b; } function add(uint a, uint b) internal pure returns (uint c) { c = a + b; require(c >= a); } function tolerantSub(uint a, uint b) internal pure returns (uint c) { return (a >= b) ? a - b : 0; } /// @dev calculate the square of Coefficient of Variation (CV) /// https://en.wikipedia.org/wiki/Coefficient_of_variation function cvsquare( uint[] arr, uint scale ) internal pure returns (uint) { uint len = arr.length; require(len > 1); require(scale > 0); uint avg = 0; for (uint i = 0; i < len; i++) { avg += arr[i]; } avg = avg / len; if (avg == 0) { return 0; } uint cvs = 0; uint s; uint item; for (i = 0; i < len; i++) { item = arr[i]; s = item > avg ? item - avg : avg - item; cvs += mul(s, s); } return ((mul(mul(cvs, scale), scale) / avg) / avg) / (len - 1); } } /// @title ERC20 Token Implementation /// @dev see https://github.com/ethereum/EIPs/issues/20 /// This ERC20 token will give the designated tokenTransferDelegate a max allowance. /// @author Daniel Wang - <[email protected]> contract ERC20Token is ERC20 { using MathUint for uint; using AddressUtil for address; string public name; string public symbol; uint8 public decimals; uint public totalSupply_; address public tokenTransferDelegate; mapping (address => uint256) balances; mapping (address => mapping (address => uint256)) internal allowed; event Transfer(address indexed from, address indexed to, uint256 value); event Approval(address indexed owner, address indexed spender, uint256 value); function ERC20Token( string _name, string _symbol, uint8 _decimals, uint _totalSupply, address _firstHolder, address _tokenTransferDelegate ) public { require(bytes(_name).length > 0); require(bytes(_symbol).length > 0); require(_totalSupply > 0); require(_firstHolder != 0x0); require(_tokenTransferDelegate.isContract()); name = _name; symbol = _symbol; decimals = _decimals; totalSupply_ = _totalSupply; tokenTransferDelegate = _tokenTransferDelegate; balances[_firstHolder] = totalSupply_; } function () payable public { revert(); } /** * @dev total number of tokens in existence */ function totalSupply() public view returns (uint256) { return totalSupply_; } /** * @dev transfer token for a specified address * @param _to The address to transfer to. * @param _value The amount to be transferred. */ function transfer( address _to, uint256 _value ) public returns (bool) { require(_to != address(0)); require(_value <= balances[msg.sender]); // SafeMath.sub will throw if there is not enough balance. balances[msg.sender] = balances[msg.sender].sub(_value); balances[_to] = balances[_to].add(_value); emit Transfer(msg.sender, _to, _value); return true; } /** * @dev Gets the balance of the specified address. * @param _owner The address to query the the balance of. * @return An uint256 representing the amount owned by the passed address. */ function balanceOf(address _owner) public view returns (uint256 balance) { return balances[_owner]; } /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transfer to * @param _value uint256 the amount of tokens to be transferred */ function transferFrom( address _from, address _to, uint256 _value ) public returns (bool) { require(_to != address(0)); require(_value <= balances[_from]); require(_value <= allowed[_from][msg.sender]); balances[_from] = balances[_from].sub(_value); balances[_to] = balances[_to].add(_value); allowed[_from][msg.sender] = allowed[_from][msg.sender].sub(_value); emit Transfer(_from, _to, _value); return true; } /** * @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender. * * Beware that changing an allowance with this method brings the risk that someone may use both the old * and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this * race condition is to first reduce the spender's allowance to 0 and set the desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * @param _spender The address which will spend the funds. * @param _value The amount of tokens to be spent. */ function approve( address _spender, uint256 _value ) public returns (bool) { allowed[msg.sender][_spender] = _value; emit Approval(msg.sender, _spender, _value); return true; } /** * @dev Function to check the amount of tokens that an owner allowed to a spender. * @param _owner address The address which owns the funds. * @param _spender address The address which will spend the funds. * @return A uint256 specifying the amount of tokens still available for the spender. */ function allowance( address _owner, address _spender) public view returns (uint256) { if (_spender == tokenTransferDelegate) { return totalSupply_; } else { return allowed[_owner][_spender]; } } /** * @dev Increase the amount of tokens that an owner allowed to a spender. * * approve should be called when allowed[_spender] == 0. To increment * allowed value is better to use this function to avoid 2 calls (and wait until * the first transaction is mined) * From MonolithDAO Token.sol * @param _spender The address which will spend the funds. * @param _addedValue The amount of tokens to increase the allowance by. */ function increaseApproval( address _spender, uint _addedValue ) public returns (bool) { allowed[msg.sender][_spender] = allowed[msg.sender][_spender].add(_addedValue); emit Approval(msg.sender, _spender, allowed[msg.sender][_spender]); return true; } /** * @dev Decrease the amount of tokens that an owner allowed to a spender. * * approve should be called when allowed[_spender] == 0. To decrement * allowed value is better to use this function to avoid 2 calls (and wait until * the first transaction is mined) * From MonolithDAO Token.sol * @param _spender The address which will spend the funds. * @param _subtractedValue The amount of tokens to decrease the allowance by. */ function decreaseApproval( address _spender, uint _subtractedValue ) public returns (bool) { uint oldValue = allowed[msg.sender][_spender]; if (_subtractedValue > oldValue) { allowed[msg.sender][_spender] = 0; } else { allowed[msg.sender][_spender] = oldValue.sub(_subtractedValue); } emit Approval(msg.sender, _spender, allowed[msg.sender][_spender]); return true; } } /* Copyright 2017 Loopring Project Ltd (Loopring Foundation). Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ /* Copyright 2017 Loopring Project Ltd (Loopring Foundation). Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ /* Copyright 2017 Loopring Project Ltd (Loopring Foundation). Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ /// @title Ownable /// @dev The Ownable contract has an owner address, and provides basic /// authorization control functions, this simplifies the implementation of /// "user permissions". contract Ownable { address public owner; event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); /// @dev The Ownable constructor sets the original `owner` of the contract /// to the sender. function Ownable() public { owner = msg.sender; } /// @dev Throws if called by any account other than the owner. modifier onlyOwner() { require(msg.sender == owner); _; } /// @dev Allows the current owner to transfer control of the contract to a /// newOwner. /// @param newOwner The address to transfer ownership to. function transferOwnership(address newOwner) onlyOwner public { require(newOwner != 0x0); emit OwnershipTransferred(owner, newOwner); owner = newOwner; } } /// @title Claimable /// @dev Extension for the Ownable contract, where the ownership needs /// to be claimed. This allows the new owner to accept the transfer. contract Claimable is Ownable { address public pendingOwner; /// @dev Modifier throws if called by any account other than the pendingOwner. modifier onlyPendingOwner() { require(msg.sender == pendingOwner); _; } /// @dev Allows the current owner to set the pendingOwner address. /// @param newOwner The address to transfer ownership to. function transferOwnership(address newOwner) onlyOwner public { require(newOwner != 0x0 && newOwner != owner); pendingOwner = newOwner; } /// @dev Allows the pendingOwner address to finalize the transfer. function claimOwnership() onlyPendingOwner public { emit OwnershipTransferred(owner, pendingOwner); owner = pendingOwner; pendingOwner = 0x0; } } /// @title Token Register Contract /// @dev This contract maintains a list of tokens the Protocol supports. /// @author Kongliang Zhong - <[email protected]>, /// @author Daniel Wang - <[email protected]>. contract TokenRegistry is Claimable { using AddressUtil for address; address tokenMintAddr; address[] public addresses; mapping (address => TokenInfo) addressMap; mapping (string => address) symbolMap; //////////////////////////////////////////////////////////////////////////// /// Structs /// //////////////////////////////////////////////////////////////////////////// struct TokenInfo { uint pos; // 0 mens unregistered; if > 0, pos + 1 is the // token's position in `addresses`. string symbol; // Symbol of the token } //////////////////////////////////////////////////////////////////////////// /// Events /// //////////////////////////////////////////////////////////////////////////// event TokenRegistered(address addr, string symbol); event TokenUnregistered(address addr, string symbol); //////////////////////////////////////////////////////////////////////////// /// Public Functions /// //////////////////////////////////////////////////////////////////////////// /// @dev Disable default function. function () payable public { revert(); } function TokenRegistry(address _tokenMintAddr) public { require(_tokenMintAddr.isContract()); tokenMintAddr = _tokenMintAddr; } function registerToken( address addr, string symbol ) external onlyOwner { registerTokenInternal(addr, symbol); } function registerMintedToken( address addr, string symbol ) external { require(msg.sender == tokenMintAddr); registerTokenInternal(addr, symbol); } function unregisterToken( address addr, string symbol ) external onlyOwner { require(addr != 0x0); require(symbolMap[symbol] == addr); delete symbolMap[symbol]; uint pos = addressMap[addr].pos; require(pos != 0); delete addressMap[addr]; // We will replace the token we need to unregister with the last token // Only the pos of the last token will need to be updated address lastToken = addresses[addresses.length - 1]; // Don't do anything if the last token is the one we want to delete if (addr != lastToken) { // Swap with the last token and update the pos addresses[pos - 1] = lastToken; addressMap[lastToken].pos = pos; } addresses.length--; emit TokenUnregistered(addr, symbol); } function areAllTokensRegistered(address[] addressList) external view returns (bool) { for (uint i = 0; i < addressList.length; i++) { if (addressMap[addressList[i]].pos == 0) { return false; } } return true; } function getAddressBySymbol(string symbol) external view returns (address) { return symbolMap[symbol]; } function isTokenRegisteredBySymbol(string symbol) public view returns (bool) { return symbolMap[symbol] != 0x0; } function isTokenRegistered(address addr) public view returns (bool) { return addressMap[addr].pos != 0; } function getTokens( uint start, uint count ) public view returns (address[] addressList) { uint num = addresses.length; if (start >= num) { return; } uint end = start + count; if (end > num) { end = num; } if (start == num) { return; } addressList = new address[](end - start); for (uint i = start; i < end; i++) { addressList[i - start] = addresses[i]; } } function registerTokenInternal( address addr, string symbol ) internal { require(0x0 != addr); require(bytes(symbol).length > 0); require(0x0 == symbolMap[symbol]); require(0 == addressMap[addr].pos); addresses.push(addr); symbolMap[symbol] = addr; addressMap[addr] = TokenInfo(addresses.length, symbol); emit TokenRegistered(addr, symbol); } } /// @title ERC20 Token Mint /// @dev This contract deploys ERC20 token contract and registered the contract /// so the token can be traded with Loopring Protocol. /// @author Kongliang Zhong - <[email protected]>, /// @author Daniel Wang - <[email protected]>. contract TokenCreator { using AddressUtil for address; address[] public tokens; address public tokenRegistry; address public tokenTransferDelegate; event TokenCreated( address indexed addr, string name, string symbol, uint8 decimals, uint totalSupply, address firstHolder, address tokenTransferDelegate ); /// @dev Disable default function. function () payable public { revert(); } /// @dev Initialize TokenRegistry address. /// This method sjhall be called immediately upon deployment. function initialize( address _tokenRegistry, address _tokenTransferDelegate ) public { require(tokenRegistry == 0x0 && _tokenRegistry.isContract()); tokenRegistry = _tokenRegistry; require(tokenTransferDelegate == 0x0 && _tokenTransferDelegate.isContract()); tokenTransferDelegate = _tokenTransferDelegate; } /// @dev Deploy an ERC20 token contract, register it with TokenRegistry, /// and returns the new token's address. /// @param name The name of the token /// @param symbol The symbol of the token. /// @param decimals The decimals of the token. /// @param totalSupply The total supply of the token. function createToken( string name, string symbol, uint8 decimals, uint totalSupply ) public returns (address addr) { require(tokenRegistry != 0x0); require(tokenTransferDelegate != 0x0); ERC20Token token = new ERC20Token( name, symbol, decimals, totalSupply, tx.origin, tokenTransferDelegate ); addr = address(token); TokenRegistry(tokenRegistry).registerMintedToken(addr, symbol); tokens.push(addr); emit TokenCreated( addr, name, symbol, decimals, totalSupply, tx.origin, tokenTransferDelegate ); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":false,"inputs":[{"name":"name","type":"string"},{"name":"symbol","type":"string"},{"name":"decimals","type":"uint8"},{"name":"totalSupply","type":"uint256"}],"name":"createToken","outputs":[{"name":"addr","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_tokenRegistry","type":"address"},{"name":"_tokenTransferDelegate","type":"address"}],"name":"initialize","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"tokens","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"tokenRegistry","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"tokenTransferDelegate","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"addr","type":"address"},{"indexed":false,"name":"name","type":"string"},{"indexed":false,"name":"symbol","type":"string"},{"indexed":false,"name":"decimals","type":"uint8"},{"indexed":false,"name":"totalSupply","type":"uint256"},{"indexed":false,"name":"firstHolder","type":"address"},{"indexed":false,"name":"tokenTransferDelegate","type":"address"}],"name":"TokenCreated","type":"event"}]
Contract Creation Code
6060604052341561000f57600080fd5b6112cd8061001e6000396000f30060606040526004361061006c5763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663210f5dda8114610071578063485cc9551461012a5780634f64b2be146101515780639d23c4c714610167578063afb97c201461017a575b600080fd5b341561007c57600080fd5b61010e60046024813581810190830135806020601f8201819004810201604051908101604052818152929190602084018383808284378201915050505050509190803590602001908201803590602001908080601f0160208091040260200160405190810160405281815292919060208401838380828437509496505060ff8535169460200135935061018d92505050565b604051600160a060020a03909116815260200160405180910390f35b341561013557600080fd5b61014f600160a060020a0360043581169060243516610579565b005b341561015c57600080fd5b61010e600435610630565b341561017257600080fd5b61010e610658565b341561018557600080fd5b61010e610667565b6001546000908190600160a060020a031615156101a957600080fd5b600254600160a060020a031615156101c057600080fd5b60025486908690869086903290600160a060020a03166101de6106a3565b60ff8516604082015260608101849052600160a060020a038084166080830152821660a082015260c080825281906020820190820189818151815260200191508051906020019080838360005b8381101561024357808201518382015260200161022b565b50505050905090810190601f1680156102705780820380516001836020036101000a031916815260200191505b50838103825288818151815260200191508051906020019080838360005b838110156102a657808201518382015260200161028e565b50505050905090810190601f1680156102d35780820380516001836020036101000a031916815260200191505b5098505050505050505050604051809103906000f08015156102f457600080fd5b600154909250829150600160a060020a0316630b9b813082876040518363ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018083600160a060020a0316600160a060020a0316815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561038d578082015183820152602001610375565b50505050905090810190601f1680156103ba5780820380516001836020036101000a031916815260200191505b509350505050600060405180830381600087803b15156103d957600080fd5b5af115156103e657600080fd5b505050600080548060010182816103fd91906106b3565b506000918252602090912001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0384811691821790925560025490917f157b6c18d23b983800266ac0a227c84cb380aec9cf96344fd67e6f4a89c7081b91899189918991899132911660405160ff8516604082015260608101849052600160a060020a038084166080830152821660a082015260c080825281906020820190820189818151815260200191508051906020019080838360005b838110156104cd5780820151838201526020016104b5565b50505050905090810190601f1680156104fa5780820380516001836020036101000a031916815260200191505b50838103825288818151815260200191508051906020019080838360005b83811015610530578082015183820152602001610518565b50505050905090810190601f16801561055d5780820380516001836020036101000a031916815260200191505b509850505050505050505060405180910390a250949350505050565b600154600160a060020a031615801561059f575061059f82600160a060020a0316610676565b15156105aa57600080fd5b6001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0384811691909117909155600254161580156105f557506105f581600160a060020a0316610676565b151561060057600080fd5b6002805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a039290921691909117905550565b600080548290811061063e57fe5b600091825260209091200154600160a060020a0316905081565b600154600160a060020a031681565b600254600160a060020a031681565b600080600160a060020a0383161515610692576000915061069d565b823b90506000811191505b50919050565b604051610ba4806106fe83390190565b8154818355818115116106d7576000838152602090206106d79181019083016106dc565b505050565b6106fa91905b808211156106f657600081556001016106e2565b5090565b9056006060604052341561000f57600080fd5b60405162000ba438038062000ba48339810160405280805182019190602001805182019190602001805191906020018051919060200180519190602001805191506000905086511161006057600080fd5b600085511161006e57600080fd5b6000831161007b57600080fd5b600160a060020a038216151561009057600080fd5b6100af600160a060020a03821664010000000061094161013282021704565b15156100ba57600080fd5b60008680516100cd92916020019061015f565b5060018580516100e192916020019061015f565b506002805460ff191660ff9590951694909417909355600382905560048054600160a060020a031916600160a060020a03948516179055909116600090815260056020526040902055506101fa9050565b600080600160a060020a038316151561014e5760009150610159565b823b90506000811191505b50919050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106101a057805160ff19168380011785556101cd565b828001600101855582156101cd579182015b828111156101cd5782518255916020019190600101906101b2565b506101d99291506101dd565b5090565b6101f791905b808211156101d957600081556001016101e3565b90565b61099a806200020a6000396000f3006060604052600436106100c45763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100c9578063095ea7b31461015357806318160ddd1461018957806323b872dd146101ae578063313ce567146101d6578063324536eb146101ff578063661884631461021257806370a082311461023457806395d89b4114610253578063a9059cbb14610266578063afb97c2014610288578063d73dd623146102b7578063dd62ed3e146102d9575b600080fd5b34156100d457600080fd5b6100dc6102fe565b60405160208082528190810183818151815260200191508051906020019080838360005b83811015610118578082015183820152602001610100565b50505050905090810190601f1680156101455780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561015e57600080fd5b610175600160a060020a036004351660243561039c565b604051901515815260200160405180910390f35b341561019457600080fd5b61019c610409565b60405190815260200160405180910390f35b34156101b957600080fd5b610175600160a060020a036004358116906024351660443561040f565b34156101e157600080fd5b6101e9610591565b60405160ff909116815260200160405180910390f35b341561020a57600080fd5b61019c61059a565b341561021d57600080fd5b610175600160a060020a03600435166024356105a0565b341561023f57600080fd5b61019c600160a060020a036004351661069a565b341561025e57600080fd5b6100dc6106b5565b341561027157600080fd5b610175600160a060020a0360043516602435610720565b341561029357600080fd5b61029b61081b565b604051600160a060020a03909116815260200160405180910390f35b34156102c257600080fd5b610175600160a060020a036004351660243561082a565b34156102e457600080fd5b61019c600160a060020a03600435811690602435166108ce565b60008054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156103945780601f1061036957610100808354040283529160200191610394565b820191906000526020600020905b81548152906001019060200180831161037757829003601f168201915b505050505081565b600160a060020a03338116600081815260066020908152604080832094871680845294909152808220859055909291907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a35060015b92915050565b60035490565b6000600160a060020a038316151561042657600080fd5b600160a060020a03841660009081526005602052604090205482111561044b57600080fd5b600160a060020a038085166000908152600660209081526040808320339094168352929052205482111561047e57600080fd5b600160a060020a0384166000908152600560205260409020546104a7908363ffffffff61091c16565b600160a060020a0380861660009081526005602052604080822093909355908516815220546104dc908363ffffffff61093116565b600160a060020a03808516600090815260056020908152604080832094909455878316825260068152838220339093168252919091522054610524908363ffffffff61091c16565b600160a060020a03808616600081815260066020908152604080832033861684529091529081902093909355908516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a35060019392505050565b60025460ff1681565b60035481565b600160a060020a033381166000908152600660209081526040808320938616835292905290812054808311156105fd57600160a060020a033381166000908152600660209081526040808320938816835292905290812055610634565b61060d818463ffffffff61091c16565b600160a060020a033381166000908152600660209081526040808320938916835292905220555b600160a060020a0333811660008181526006602090815260408083209489168084529490915290819020547f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925915190815260200160405180910390a35060019392505050565b600160a060020a031660009081526005602052604090205490565b60018054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156103945780601f1061036957610100808354040283529160200191610394565b6000600160a060020a038316151561073757600080fd5b600160a060020a03331660009081526005602052604090205482111561075c57600080fd5b600160a060020a033316600090815260056020526040902054610785908363ffffffff61091c16565b600160a060020a0333811660009081526005602052604080822093909355908516815220546107ba908363ffffffff61093116565b600160a060020a0380851660008181526005602052604090819020939093559133909116907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a350600192915050565b600454600160a060020a031681565b600160a060020a033381166000908152600660209081526040808320938616835292905290812054610862908363ffffffff61093116565b600160a060020a0333811660008181526006602090815260408083209489168084529490915290819020849055919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591905190815260200160405180910390a350600192915050565b600454600090600160a060020a03838116911614156108f05750600354610403565b50600160a060020a03808316600090815260066020908152604080832093851683529290522054610403565b60008282111561092b57600080fd5b50900390565b8181018281101561040357600080fd5b600080600160a060020a038316151561095d5760009150610968565b823b90506000811191505b509190505600a165627a7a72305820a24ac70dce657f75be5ee9670ebf5dd27915d9f08656db7936d52a59e5e728500029a165627a7a72305820c10585fb7bbcbe198fbff29ff822d0c69d65f3e663ae3fd193036856ef0374f60029
Deployed Bytecode
0x60606040526004361061006c5763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663210f5dda8114610071578063485cc9551461012a5780634f64b2be146101515780639d23c4c714610167578063afb97c201461017a575b600080fd5b341561007c57600080fd5b61010e60046024813581810190830135806020601f8201819004810201604051908101604052818152929190602084018383808284378201915050505050509190803590602001908201803590602001908080601f0160208091040260200160405190810160405281815292919060208401838380828437509496505060ff8535169460200135935061018d92505050565b604051600160a060020a03909116815260200160405180910390f35b341561013557600080fd5b61014f600160a060020a0360043581169060243516610579565b005b341561015c57600080fd5b61010e600435610630565b341561017257600080fd5b61010e610658565b341561018557600080fd5b61010e610667565b6001546000908190600160a060020a031615156101a957600080fd5b600254600160a060020a031615156101c057600080fd5b60025486908690869086903290600160a060020a03166101de6106a3565b60ff8516604082015260608101849052600160a060020a038084166080830152821660a082015260c080825281906020820190820189818151815260200191508051906020019080838360005b8381101561024357808201518382015260200161022b565b50505050905090810190601f1680156102705780820380516001836020036101000a031916815260200191505b50838103825288818151815260200191508051906020019080838360005b838110156102a657808201518382015260200161028e565b50505050905090810190601f1680156102d35780820380516001836020036101000a031916815260200191505b5098505050505050505050604051809103906000f08015156102f457600080fd5b600154909250829150600160a060020a0316630b9b813082876040518363ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018083600160a060020a0316600160a060020a0316815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561038d578082015183820152602001610375565b50505050905090810190601f1680156103ba5780820380516001836020036101000a031916815260200191505b509350505050600060405180830381600087803b15156103d957600080fd5b5af115156103e657600080fd5b505050600080548060010182816103fd91906106b3565b506000918252602090912001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0384811691821790925560025490917f157b6c18d23b983800266ac0a227c84cb380aec9cf96344fd67e6f4a89c7081b91899189918991899132911660405160ff8516604082015260608101849052600160a060020a038084166080830152821660a082015260c080825281906020820190820189818151815260200191508051906020019080838360005b838110156104cd5780820151838201526020016104b5565b50505050905090810190601f1680156104fa5780820380516001836020036101000a031916815260200191505b50838103825288818151815260200191508051906020019080838360005b83811015610530578082015183820152602001610518565b50505050905090810190601f16801561055d5780820380516001836020036101000a031916815260200191505b509850505050505050505060405180910390a250949350505050565b600154600160a060020a031615801561059f575061059f82600160a060020a0316610676565b15156105aa57600080fd5b6001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0384811691909117909155600254161580156105f557506105f581600160a060020a0316610676565b151561060057600080fd5b6002805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a039290921691909117905550565b600080548290811061063e57fe5b600091825260209091200154600160a060020a0316905081565b600154600160a060020a031681565b600254600160a060020a031681565b600080600160a060020a0383161515610692576000915061069d565b823b90506000811191505b50919050565b604051610ba4806106fe83390190565b8154818355818115116106d7576000838152602090206106d79181019083016106dc565b505050565b6106fa91905b808211156106f657600081556001016106e2565b5090565b9056006060604052341561000f57600080fd5b60405162000ba438038062000ba48339810160405280805182019190602001805182019190602001805191906020018051919060200180519190602001805191506000905086511161006057600080fd5b600085511161006e57600080fd5b6000831161007b57600080fd5b600160a060020a038216151561009057600080fd5b6100af600160a060020a03821664010000000061094161013282021704565b15156100ba57600080fd5b60008680516100cd92916020019061015f565b5060018580516100e192916020019061015f565b506002805460ff191660ff9590951694909417909355600382905560048054600160a060020a031916600160a060020a03948516179055909116600090815260056020526040902055506101fa9050565b600080600160a060020a038316151561014e5760009150610159565b823b90506000811191505b50919050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106101a057805160ff19168380011785556101cd565b828001600101855582156101cd579182015b828111156101cd5782518255916020019190600101906101b2565b506101d99291506101dd565b5090565b6101f791905b808211156101d957600081556001016101e3565b90565b61099a806200020a6000396000f3006060604052600436106100c45763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100c9578063095ea7b31461015357806318160ddd1461018957806323b872dd146101ae578063313ce567146101d6578063324536eb146101ff578063661884631461021257806370a082311461023457806395d89b4114610253578063a9059cbb14610266578063afb97c2014610288578063d73dd623146102b7578063dd62ed3e146102d9575b600080fd5b34156100d457600080fd5b6100dc6102fe565b60405160208082528190810183818151815260200191508051906020019080838360005b83811015610118578082015183820152602001610100565b50505050905090810190601f1680156101455780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561015e57600080fd5b610175600160a060020a036004351660243561039c565b604051901515815260200160405180910390f35b341561019457600080fd5b61019c610409565b60405190815260200160405180910390f35b34156101b957600080fd5b610175600160a060020a036004358116906024351660443561040f565b34156101e157600080fd5b6101e9610591565b60405160ff909116815260200160405180910390f35b341561020a57600080fd5b61019c61059a565b341561021d57600080fd5b610175600160a060020a03600435166024356105a0565b341561023f57600080fd5b61019c600160a060020a036004351661069a565b341561025e57600080fd5b6100dc6106b5565b341561027157600080fd5b610175600160a060020a0360043516602435610720565b341561029357600080fd5b61029b61081b565b604051600160a060020a03909116815260200160405180910390f35b34156102c257600080fd5b610175600160a060020a036004351660243561082a565b34156102e457600080fd5b61019c600160a060020a03600435811690602435166108ce565b60008054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156103945780601f1061036957610100808354040283529160200191610394565b820191906000526020600020905b81548152906001019060200180831161037757829003601f168201915b505050505081565b600160a060020a03338116600081815260066020908152604080832094871680845294909152808220859055909291907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a35060015b92915050565b60035490565b6000600160a060020a038316151561042657600080fd5b600160a060020a03841660009081526005602052604090205482111561044b57600080fd5b600160a060020a038085166000908152600660209081526040808320339094168352929052205482111561047e57600080fd5b600160a060020a0384166000908152600560205260409020546104a7908363ffffffff61091c16565b600160a060020a0380861660009081526005602052604080822093909355908516815220546104dc908363ffffffff61093116565b600160a060020a03808516600090815260056020908152604080832094909455878316825260068152838220339093168252919091522054610524908363ffffffff61091c16565b600160a060020a03808616600081815260066020908152604080832033861684529091529081902093909355908516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a35060019392505050565b60025460ff1681565b60035481565b600160a060020a033381166000908152600660209081526040808320938616835292905290812054808311156105fd57600160a060020a033381166000908152600660209081526040808320938816835292905290812055610634565b61060d818463ffffffff61091c16565b600160a060020a033381166000908152600660209081526040808320938916835292905220555b600160a060020a0333811660008181526006602090815260408083209489168084529490915290819020547f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925915190815260200160405180910390a35060019392505050565b600160a060020a031660009081526005602052604090205490565b60018054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156103945780601f1061036957610100808354040283529160200191610394565b6000600160a060020a038316151561073757600080fd5b600160a060020a03331660009081526005602052604090205482111561075c57600080fd5b600160a060020a033316600090815260056020526040902054610785908363ffffffff61091c16565b600160a060020a0333811660009081526005602052604080822093909355908516815220546107ba908363ffffffff61093116565b600160a060020a0380851660008181526005602052604090819020939093559133909116907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a350600192915050565b600454600160a060020a031681565b600160a060020a033381166000908152600660209081526040808320938616835292905290812054610862908363ffffffff61093116565b600160a060020a0333811660008181526006602090815260408083209489168084529490915290819020849055919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591905190815260200160405180910390a350600192915050565b600454600090600160a060020a03838116911614156108f05750600354610403565b50600160a060020a03808316600090815260066020908152604080832093851683529290522054610403565b60008282111561092b57600080fd5b50900390565b8181018281101561040357600080fd5b600080600160a060020a038316151561095d5760009150610968565b823b90506000811191505b509190505600a165627a7a72305820a24ac70dce657f75be5ee9670ebf5dd27915d9f08656db7936d52a59e5e728500029a165627a7a72305820c10585fb7bbcbe198fbff29ff822d0c69d65f3e663ae3fd193036856ef0374f60029
Swarm Source
bzzr://c10585fb7bbcbe198fbff29ff822d0c69d65f3e663ae3fd193036856ef0374f6
Loading...
Loading
Loading...
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.