Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
BitizenCarToken
Compiler Version
v0.4.24+commit.e67f0147
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2018-08-31 */ pragma solidity ^0.4.24; interface ERC165 { /** * @notice Query if a contract implements an interface * @param _interfaceId The interface identifier, as specified in ERC-165 * @dev Interface identification is specified in ERC-165. This function * uses less than 30,000 gas. */ function supportsInterface(bytes4 _interfaceId) external view returns (bool); } interface ERC721 /* is ERC165 */ { /// @dev This emits when ownership of any NFT changes by any mechanism. /// This event emits when NFTs are created (`from` == 0) and destroyed /// (`to` == 0). Exception: during contract creation, any number of NFTs /// may be created and assigned without emitting Transfer. At the time of /// any transfer, the approved address for that NFT (if any) is reset to none. event Transfer(address indexed _from, address indexed _to, uint256 indexed _tokenId); /// @dev This emits when the approved address for an NFT is changed or /// reaffirmed. The zero address indicates there is no approved address. /// When a Transfer event emits, this also indicates that the approved /// address for that NFT (if any) is reset to none. event Approval(address indexed _owner, address indexed _approved, uint256 indexed _tokenId); /// @dev This emits when an operator is enabled or disabled for an owner. /// The operator can manage all NFTs of the owner. event ApprovalForAll(address indexed _owner, address indexed _operator, bool _approved); /// @notice Count all NFTs assigned to an owner /// @dev NFTs assigned to the zero address are considered invalid, and this /// function throws for queries about the zero address. /// @param _owner An address for whom to query the balance /// @return The number of NFTs owned by `_owner`, possibly zero function balanceOf(address _owner) external view returns (uint256); /// @notice Find the owner of an NFT /// @dev NFTs assigned to zero address are considered invalid, and queries /// about them do throw. /// @param _tokenId The identifier for an NFT /// @return The address of the owner of the NFT function ownerOf(uint256 _tokenId) external view returns (address); /// @notice Transfers the ownership of an NFT from one address to another address /// @dev Throws unless `msg.sender` is the current owner, an authorized /// operator, or the approved address for this NFT. Throws if `_from` is /// not the current owner. Throws if `_to` is the zero address. Throws if /// `_tokenId` is not a valid NFT. When transfer is complete, this function /// checks if `_to` is a smart contract (code size > 0). If so, it calls /// `onERC721Received` on `_to` and throws if the return value is not /// `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`. /// @param _from The current owner of the NFT /// @param _to The new owner /// @param _tokenId The NFT to transfer /// @param data Additional data with no specified format, sent in call to `_to` function safeTransferFrom(address _from, address _to, uint256 _tokenId, bytes data) external; /// @notice Transfers the ownership of an NFT from one address to another address /// @dev This works identically to the other function with an extra data parameter, /// except this function just sets data to "". /// @param _from The current owner of the NFT /// @param _to The new owner /// @param _tokenId The NFT to transfer function safeTransferFrom(address _from, address _to, uint256 _tokenId) external; /// @notice Transfer ownership of an NFT -- THE CALLER IS RESPONSIBLE /// TO CONFIRM THAT `_to` IS CAPABLE OF RECEIVING NFTS OR ELSE /// THEY MAY BE PERMANENTLY LOST /// @dev Throws unless `msg.sender` is the current owner, an authorized /// operator, or the approved address for this NFT. Throws if `_from` is /// not the current owner. Throws if `_to` is the zero address. Throws if /// `_tokenId` is not a valid NFT. /// @param _from The current owner of the NFT /// @param _to The new owner /// @param _tokenId The NFT to transfer function transferFrom(address _from, address _to, uint256 _tokenId) external; /// @notice Change or reaffirm the approved address for an NFT /// @dev The zero address indicates there is no approved address. /// Throws unless `msg.sender` is the current NFT owner, or an authorized /// operator of the current owner. /// @param _approved The new approved NFT controller /// @param _tokenId The NFT to approve function approve(address _approved, uint256 _tokenId) external; /// @notice Enable or disable approval for a third party ("operator") to manage /// all of `msg.sender`'s assets /// @dev Emits the ApprovalForAll event. The contract MUST allow /// multiple operators per owner. /// @param _operator Address to add to the set of authorized operators /// @param _approved True if the operator is approved, false to revoke approval function setApprovalForAll(address _operator, bool _approved) external; /// @notice Get the approved address for a single NFT /// @dev Throws if `_tokenId` is not a valid NFT. /// @param _tokenId The NFT to find the approved address for /// @return The approved address for this NFT, or the zero address if there is none function getApproved(uint256 _tokenId) external view returns (address); /// @notice Query if an address is an authorized operator for another address /// @param _owner The address that owns the NFTs /// @param _operator The address that acts on behalf of the owner /// @return True if `_operator` is an approved operator for `_owner`, false otherwise function isApprovedForAll(address _owner, address _operator) external view returns (bool); } /// Note: the ERC-165 identifier for this interface is 0x780e9d63. interface ERC721Enumerable /* is ERC721 */ { /// @notice Count NFTs tracked by this contract /// @return A count of valid NFTs tracked by this contract, where each one of /// them has an assigned and queryable owner not equal to the zero address function totalSupply() external view returns (uint256); /// @notice Enumerate valid NFTs /// @dev Throws if `_index` >= `totalSupply()`. /// @param _index A counter less than `totalSupply()` /// @return The token identifier for the `_index`th NFT, /// (sort order not specified) function tokenByIndex(uint256 _index) external view returns (uint256); /// @notice Enumerate NFTs assigned to an owner /// @dev Throws if `_index` >= `balanceOf(_owner)` or if /// `_owner` is the zero address, representing invalid NFTs. /// @param _owner An address where we are interested in NFTs owned by them /// @param _index A counter less than `balanceOf(_owner)` /// @return The token identifier for the `_index`th NFT assigned to `_owner`, /// (sort order not specified) function tokenOfOwnerByIndex(address _owner, uint256 _index) external view returns (uint256); } /// Note: the ERC-165 identifier for this interface is 0x5b5e139f. interface ERC721Metadata /* is ERC721 */ { /// @notice A descriptive name for a collection of NFTs in this contract function name() external view returns (string _name); /// @notice An abbreviated name for NFTs in this contract function symbol() external view returns (string _symbol); /// @notice A distinct Uniform Resource Identifier (URI) for a given asset. /// @dev Throws if `_tokenId` is not a valid NFT. URIs are defined in RFC /// 3986. The URI may point to a JSON file that conforms to the "ERC721 /// Metadata JSON Schema". function tokenURI(uint256 _tokenId) external view returns (string); } /// @dev Note: the ERC-165 identifier for this interface is 0x150b7a02. interface ERC721TokenReceiver { /// @notice Handle the receipt of an NFT /// @dev The ERC721 smart contract calls this function on the recipient /// after a `transfer`. This function MAY throw to revert and reject the /// transfer. Return of other than the magic value MUST result in the /// transaction being reverted. /// Note: the contract address is always the message sender. /// @param _operator The address which called `safeTransferFrom` function /// @param _from The address which previously owned the token /// @param _tokenId The NFT identifier which is being transferred /// @param _data Additional data with no specified format /// @return `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))` /// unless throwing function onERC721Received(address _operator, address _from, uint256 _tokenId, bytes _data) external returns(bytes4); } /** * @title SupportsInterfaceWithLookup * @author Matt Condon (@shrugs) * @dev Implements ERC165 using a lookup table. */ contract SupportsInterfaceWithLookup is ERC165 { bytes4 public constant InterfaceId_ERC165 = 0x01ffc9a7; /** * 0x01ffc9a7 === * bytes4(keccak256('supportsInterface(bytes4)')) */ /** * @dev a mapping of interface id to whether or not it's supported */ mapping(bytes4 => bool) internal supportedInterfaces; /** * @dev A contract implementing SupportsInterfaceWithLookup * implement ERC165 itself */ constructor() public { _registerInterface(InterfaceId_ERC165); } /** * @dev implement supportsInterface(bytes4) using a lookup table */ function supportsInterface(bytes4 _interfaceId) external view returns (bool) { return supportedInterfaces[_interfaceId]; } /** * @dev private method for registering an interface */ function _registerInterface(bytes4 _interfaceId) internal { require(_interfaceId != 0xffffffff); supportedInterfaces[_interfaceId] = true; } } /** * Utility library of inline functions on addresses */ library AddressUtils { /** * Returns whether the target address is a contract * @dev This function will return false if invoked during the constructor of a contract, * as the code is not actually created until after the constructor finishes. * @param addr address to check * @return whether the target address is a contract */ function isContract(address addr) internal view returns (bool) { uint256 size; // XXX Currently there is no better way to check if there is a contract in an address // than to check the size of the code at that address. // See https://ethereum.stackexchange.com/a/14016/36603 // for more details about how this works. // TODO Check this again before the Serenity release, because all addresses will be // contracts then. // solium-disable-next-line security/no-inline-assembly assembly { size := extcodesize(addr) } return size > 0; } } library UrlStr { // generate url by tokenId // baseUrl must end with 00000000 function generateUrl(string url,uint256 _tokenId) internal pure returns (string _url){ _url = url; bytes memory _tokenURIBytes = bytes(_url); uint256 base_len = _tokenURIBytes.length - 1; _tokenURIBytes[base_len - 7] = byte(48 + _tokenId / 10000000 % 10); _tokenURIBytes[base_len - 6] = byte(48 + _tokenId / 1000000 % 10); _tokenURIBytes[base_len - 5] = byte(48 + _tokenId / 100000 % 10); _tokenURIBytes[base_len - 4] = byte(48 + _tokenId / 10000 % 10); _tokenURIBytes[base_len - 3] = byte(48 + _tokenId / 1000 % 10); _tokenURIBytes[base_len - 2] = byte(48 + _tokenId / 100 % 10); _tokenURIBytes[base_len - 1] = byte(48 + _tokenId / 10 % 10); _tokenURIBytes[base_len - 0] = byte(48 + _tokenId / 1 % 10); } } /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; assert(c / a == b); return c; } /** * @dev Integer division of two numbers, truncating the quotient. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { // assert(b > 0); // Solidity automatically throws when dividing by 0 uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Substracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend). */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { assert(b <= a); return a - b; } /** * @dev Adds two numbers, throws on overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; assert(c >= a); return c; } } /** * @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 OwnershipRenounced(address indexed previousOwner); event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */ constructor() 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 relinquish control of the contract. * @notice Renouncing to ownership will leave the contract without an owner. * It will not be possible to call the functions with the `onlyOwner` * modifier anymore. */ function renounceOwnership() public onlyOwner { emit OwnershipRenounced(owner); owner = address(0); } /** * @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) public onlyOwner { _transferOwnership(_newOwner); } /** * @dev Transfers control of the contract to a newOwner. * @param _newOwner The address to transfer ownership to. */ function _transferOwnership(address _newOwner) internal { require(_newOwner != address(0)); emit OwnershipTransferred(owner, _newOwner); owner = _newOwner; } } /** * @title Operator * @dev Allow two roles: 'owner' or 'operator' * - owner: admin/superuser (e.g. with financial rights) * - operator: can update configurations */ contract Operator is Ownable { address[] public operators; uint public MAX_OPS = 20; // Default maximum number of operators allowed mapping(address => bool) public isOperator; event OperatorAdded(address operator); event OperatorRemoved(address operator); // @dev Throws if called by any non-operator account. Owner has all ops rights. modifier onlyOperator() { require( isOperator[msg.sender] || msg.sender == owner, "Permission denied. Must be an operator or the owner." ); _; } /** * @dev Allows the current owner or operators to add operators * @param _newOperator New operator address */ function addOperator(address _newOperator) public onlyOwner { require( _newOperator != address(0), "Invalid new operator address." ); // Make sure no dups require( !isOperator[_newOperator], "New operator exists." ); // Only allow so many ops require( operators.length < MAX_OPS, "Overflow." ); operators.push(_newOperator); isOperator[_newOperator] = true; emit OperatorAdded(_newOperator); } /** * @dev Allows the current owner or operators to remove operator * @param _operator Address of the operator to be removed */ function removeOperator(address _operator) public onlyOwner { // Make sure operators array is not empty require( operators.length > 0, "No operator." ); // Make sure the operator exists require( isOperator[_operator], "Not an operator." ); // Manual array manipulation: // - replace the _operator with last operator in array // - remove the last item from array address lastOperator = operators[operators.length - 1]; for (uint i = 0; i < operators.length; i++) { if (operators[i] == _operator) { operators[i] = lastOperator; } } operators.length -= 1; // remove the last element isOperator[_operator] = false; emit OperatorRemoved(_operator); } // @dev Remove ALL operators function removeAllOps() public onlyOwner { for (uint i = 0; i < operators.length; i++) { isOperator[operators[i]] = false; } operators.length = 0; } } contract Pausable is Operator { event FrozenFunds(address target, bool frozen); bool public isPaused = false; mapping(address => bool) frozenAccount; modifier whenNotPaused { require(!isPaused); _; } modifier whenPaused { require(isPaused); _; } modifier whenNotFreeze(address _target) { require(_target != address(0)); require(!frozenAccount[_target]); _; } function isFrozen(address _target) external view returns (bool) { require(_target != address(0)); return frozenAccount[_target]; } function doPause() external whenNotPaused onlyOwner { isPaused = true; } function doUnpause() external whenPaused onlyOwner { isPaused = false; } function freezeAccount(address _target, bool _freeze) public onlyOwner { require(_target != address(0)); frozenAccount[_target] = _freeze; emit FrozenFunds(_target, _freeze); } } contract ERC721BasicToken is SupportsInterfaceWithLookup, ERC721, Pausable{ bytes4 public constant InterfaceId_ERC721 = 0x80ac58cd; /* * 0x80ac58cd === * bytes4(keccak256('balanceOf(address)')) ^ * bytes4(keccak256('ownerOf(uint256)')) ^ * bytes4(keccak256('approve(address,uint256)')) ^ * bytes4(keccak256('getApproved(uint256)')) ^ * bytes4(keccak256('setApprovalForAll(address,bool)')) ^ * bytes4(keccak256('isApprovedForAll(address,address)')) ^ * bytes4(keccak256('transferFrom(address,address,uint256)')) ^ * bytes4(keccak256('safeTransferFrom(address,address,uint256)')) ^ * bytes4(keccak256('safeTransferFrom(address,address,uint256,bytes)')) */ bytes4 public constant InterfaceId_ERC721Exists = 0x4f558e79; /* * 0x4f558e79 === * bytes4(keccak256('exists(uint256)')) */ using SafeMath for uint256; using AddressUtils for address; // Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))` // which can be also obtained as `ERC721Receiver(0).onERC721Received.selector` bytes4 public constant ERC721_RECEIVED = 0x150b7a02; // Mapping from token ID to owner mapping (uint256 => address) internal tokenOwner; // Mapping from token ID to approved address mapping (uint256 => address) internal tokenApprovals; // Mapping from owner to number of owned token mapping (address => uint256) internal ownedTokensCount; // Mapping from owner to operator approvals mapping (address => mapping (address => bool)) internal operatorApprovals; /** * @dev Guarantees msg.sender is owner of the given token * @param _tokenId uint256 ID of the token to validate its ownership belongs to msg.sender */ modifier onlyOwnerOf(uint256 _tokenId) { require(_ownerOf(_tokenId) == msg.sender,"This token not owned by this address"); _; } function _ownerOf(uint256 _tokenId) internal view returns(address) { address _owner = tokenOwner[_tokenId]; require(_owner != address(0),"Token not exist"); return _owner; } /** * @dev Checks msg.sender can transfer a token, by being owner, approved, or operator * @param _tokenId uint256 ID of the token to validate */ modifier canTransfer(uint256 _tokenId) { require(isApprovedOrOwner(msg.sender, _tokenId), "This address have no permisstion"); _; } constructor() public { // register the supported interfaces to conform to ERC721 via ERC165 _registerInterface(InterfaceId_ERC721); _registerInterface(InterfaceId_ERC721Exists); _registerInterface(ERC721_RECEIVED); } /** * @dev Gets the balance of the specified address * @param _owner address to query the balance of * @return uint256 representing the amount owned by the passed address */ function balanceOf(address _owner) external view returns (uint256) { require(_owner != address(0)); return ownedTokensCount[_owner]; } /** * @dev Gets the owner of the specified token ID * @param _tokenId uint256 ID of the token to query the owner of * @return owner address currently marked as the owner of the given token ID */ function ownerOf(uint256 _tokenId) external view returns (address) { return _ownerOf(_tokenId); } /** * @dev Returns whether the specified token exists * @param _tokenId uint256 ID of the token to query the existence of * @return whether the token exists */ function exists(uint256 _tokenId) internal view returns (bool) { address owner = tokenOwner[_tokenId]; return owner != address(0); } /** * @dev Approves another address to transfer the given token ID * The zero address indicates there is no approved address. * There can only be one approved address per token at a given time. * Can only be called by the token owner or an approved operator. * @param _to address to be approved for the given token ID * @param _tokenId uint256 ID of the token to be approved */ function approve(address _to, uint256 _tokenId) external whenNotPaused { address _owner = _ownerOf(_tokenId); require(_to != _owner); require(msg.sender == _owner || operatorApprovals[_owner][msg.sender]); tokenApprovals[_tokenId] = _to; emit Approval(_owner, _to, _tokenId); } /** * @dev Gets the approved address for a token ID, or zero if no address set * @param _tokenId uint256 ID of the token to query the approval of * @return address currently approved for the given token ID */ function getApproved(uint256 _tokenId) external view returns (address) { return tokenApprovals[_tokenId]; } /** * @dev Sets or unsets the approval of a given operator * An operator is allowed to transfer all tokens of the sender on their behalf * @param _to operator address to set the approval * @param _approved representing the status of the approval to be set */ function setApprovalForAll(address _to, bool _approved) external whenNotPaused { require(_to != msg.sender); operatorApprovals[msg.sender][_to] = _approved; emit ApprovalForAll(msg.sender, _to, _approved); } /** * @dev Tells whether an operator is approved by a given owner * @param _owner owner address which you want to query the approval of * @param _operator operator address which you want to query the approval of * @return bool whether the given operator is approved by the given owner */ function isApprovedForAll( address _owner, address _operator ) external view returns (bool) { return operatorApprovals[_owner][_operator]; } /** * @dev Transfers the ownership of a given token ID to another address * Usage of this method is discouraged, use `safeTransferFrom` whenever possible * Requires the msg sender to be the owner, approved, or operator * @param _from current owner of the token * @param _to address to receive the ownership of the given token ID * @param _tokenId uint256 ID of the token to be transferred */ function transferFrom( address _from, address _to, uint256 _tokenId ) external canTransfer(_tokenId) { _transfer(_from,_to,_tokenId); } function _transfer( address _from, address _to, uint256 _tokenId) internal { require(_from != address(0)); require(_to != address(0)); clearApproval(_from, _tokenId); removeTokenFrom(_from, _tokenId); addTokenTo(_to, _tokenId); emit Transfer(_from, _to, _tokenId); } /** * @dev Safely transfers the ownership of a given token ID to another address * If the target address is a contract, it must implement `onERC721Received`, * which is called upon a safe transfer, and return the magic value * `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`; otherwise, * the transfer is reverted. * * Requires the msg sender to be the owner, approved, or operator * @param _from current owner of the token * @param _to address to receive the ownership of the given token ID * @param _tokenId uint256 ID of the token to be transferred */ function safeTransferFrom( address _from, address _to, uint256 _tokenId ) external canTransfer(_tokenId) { // solium-disable-next-line arg-overflow _safeTransferFrom(_from, _to, _tokenId, ""); } /** * @dev Safely transfers the ownership of a given token ID to another address * If the target address is a contract, it must implement `onERC721Received`, * which is called upon a safe transfer, and return the magic value * `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`; otherwise, * the transfer is reverted. * Requires the msg sender to be the owner, approved, or operator * @param _from current owner of the token * @param _to address to receive the ownership of the given token ID * @param _tokenId uint256 ID of the token to be transferred * @param _data bytes data to send along with a safe transfer check */ function _safeTransferFrom( address _from, address _to, uint256 _tokenId, bytes _data) internal { _transfer(_from, _to, _tokenId); // solium-disable-next-line arg-overflow require(checkAndCallSafeTransfer(_from, _to, _tokenId, _data)); } function safeTransferFrom( address _from, address _to, uint256 _tokenId, bytes _data ) external canTransfer(_tokenId) { _safeTransferFrom(_from, _to, _tokenId, _data); } /** * @dev Returns whether the given spender can transfer a given token ID * @param _spender address of the spender to query * @param _tokenId uint256 ID of the token to be transferred * @return bool whether the msg.sender is approved for the given token ID, * is an operator of the owner, or is the owner of the token */ function isApprovedOrOwner ( address _spender, uint256 _tokenId ) internal view returns (bool) { address _owner = _ownerOf(_tokenId); // Disable solium check because of // https://github.com/duaraghav8/Solium/issues/175 // solium-disable-next-line operator-whitespace return ( _spender == _owner || tokenApprovals[_tokenId] == _spender || operatorApprovals[_owner][_spender] ); } /** * @dev Internal function to mint a new token * Reverts if the given token ID already exists * @param _to The address that will own the minted token * @param _tokenId uint256 ID of the token to be minted by the msg.sender */ function _mint(address _to, uint256 _tokenId) internal { require(_to != address(0)); addTokenTo(_to, _tokenId); emit Transfer(address(0), _to, _tokenId); } /** * @dev Internal function to burn a specific token * Reverts if the token does not exist * @param _tokenId uint256 ID of the token being burned by the msg.sender */ function _burn(address _owner, uint256 _tokenId) internal { clearApproval(_owner, _tokenId); removeTokenFrom(_owner, _tokenId); emit Transfer(_owner, address(0), _tokenId); } /** * @dev Internal function to clear current approval of a given token ID * Reverts if the given address is not indeed the owner of the token * @param _owner owner of the token * @param _tokenId uint256 ID of the token to be transferred */ function clearApproval(address _owner, uint256 _tokenId) internal whenNotPaused { require(_ownerOf(_tokenId) == _owner); if (tokenApprovals[_tokenId] != address(0)) { tokenApprovals[_tokenId] = address(0); } } /** * @dev Internal function to add a token ID to the list of a given address * @param _to address representing the new owner of the given token ID * @param _tokenId uint256 ID of the token to be added to the tokens list of the given address */ function addTokenTo(address _to, uint256 _tokenId) internal whenNotPaused { require(tokenOwner[_tokenId] == address(0)); require(!frozenAccount[_to]); tokenOwner[_tokenId] = _to; ownedTokensCount[_to] = ownedTokensCount[_to].add(1); } /** * @dev Internal function to remove a token ID from the list of a given address * @param _from address representing the previous owner of the given token ID * @param _tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function removeTokenFrom(address _from, uint256 _tokenId) internal whenNotPaused { require(_ownerOf(_tokenId) == _from); require(!frozenAccount[_from]); ownedTokensCount[_from] = ownedTokensCount[_from].sub(1); tokenOwner[_tokenId] = address(0); } /** * @dev Internal function to invoke `onERC721Received` on a target address * The call is not executed if the target address is not a contract * @param _from address representing the previous owner of the given token ID * @param _to target address that will receive the tokens * @param _tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return whether the call correctly returned the expected magic value */ function checkAndCallSafeTransfer( address _from, address _to, uint256 _tokenId, bytes _data ) internal returns (bool) { if (!_to.isContract()) { return true; } bytes4 retval = ERC721TokenReceiver(_to).onERC721Received( msg.sender, _from, _tokenId, _data); return (retval == ERC721_RECEIVED); } } contract ERC721ExtendToken is ERC721BasicToken, ERC721Enumerable, ERC721Metadata { using UrlStr for string; bytes4 public constant InterfaceId_ERC721Enumerable = 0x780e9d63; /** * 0x780e9d63 === * bytes4(keccak256('totalSupply()')) ^ * bytes4(keccak256('tokenOfOwnerByIndex(address,uint256)')) ^ * bytes4(keccak256('tokenByIndex(uint256)')) */ bytes4 public constant InterfaceId_ERC721Metadata = 0x5b5e139f; /** * 0x5b5e139f === * bytes4(keccak256('name()')) ^ * bytes4(keccak256('symbol()')) ^ * bytes4(keccak256('tokenURI(uint256)')) */ string internal BASE_URL = "https://www.bitguild.com/bitizens/api/lambo/getCarInfo/00000000"; // Mapping from owner to list of owned token IDs mapping(address => uint256[]) internal ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) internal ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] internal allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) internal allTokensIndex; function updateBaseURI(string _url) external onlyOwner { BASE_URL = _url; } /** * @dev Constructor function */ constructor() public { // register the supported interfaces to conform to ERC721 via ERC165 _registerInterface(InterfaceId_ERC721Enumerable); _registerInterface(InterfaceId_ERC721Metadata); } /** * @dev Gets the token name * @return string representing the token name */ function name() external view returns (string) { return "Bitizen Lambo"; } /** * @dev Gets the token symbol * @return string representing the token symbol */ function symbol() external view returns (string) { return "LAMBO"; } /** * @dev Returns an URI for a given token ID * Throws if the token ID does not exist. May return an empty string. * @param _tokenId uint256 ID of the token to query */ function tokenURI(uint256 _tokenId) external view returns (string) { require(exists(_tokenId)); return BASE_URL.generateUrl(_tokenId); } /** * @dev Gets the token ID at a given index of the tokens list of the requested owner * @param _owner address owning the tokens list to be accessed * @param _index uint256 representing the index to be accessed of the requested tokens list * @return uint256 token ID at the given index of the tokens list owned by the requested address */ function tokenOfOwnerByIndex( address _owner, uint256 _index ) public view returns (uint256) { require(address(0)!=_owner); require(_index < ownedTokensCount[_owner]); return ownedTokens[_owner][_index]; } /** * @dev Gets the total amount of tokens stored by the contract * @return uint256 representing the total amount of tokens */ function totalSupply() public view returns (uint256) { return allTokens.length; } /** * @dev Gets the token ID at a given index of all the tokens in this contract * Reverts if the index is greater or equal to the total number of tokens * @param _index uint256 representing the index to be accessed of the tokens list * @return uint256 token ID at the given index of the tokens list */ function tokenByIndex(uint256 _index) public view returns (uint256) { require(_index < totalSupply()); return allTokens[_index]; } /** * @dev Internal function to add a token ID to the list of a given address * @param _to address representing the new owner of the given token ID * @param _tokenId uint256 ID of the token to be added to the tokens list of the given address */ function addTokenTo(address _to, uint256 _tokenId) internal whenNotPaused { super.addTokenTo(_to, _tokenId); uint256 length = ownedTokens[_to].length; ownedTokens[_to].push(_tokenId); ownedTokensIndex[_tokenId] = length; } /** * @dev Internal function to remove a token ID from the list of a given address * @param _from address representing the previous owner of the given token ID * @param _tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function removeTokenFrom(address _from, uint256 _tokenId) internal whenNotPaused { super.removeTokenFrom(_from, _tokenId); uint256 tokenIndex = ownedTokensIndex[_tokenId]; uint256 lastTokenIndex = ownedTokens[_from].length.sub(1); uint256 lastToken = ownedTokens[_from][lastTokenIndex]; ownedTokens[_from][tokenIndex] = lastToken; ownedTokens[_from][lastTokenIndex] = 0; // Note that this will handle single-element arrays. In that case, both tokenIndex and lastTokenIndex are going to // be zero. Then we can make sure that we will remove _tokenId from the ownedTokens list since we are first swapping // the lastToken to the first position, and then dropping the element placed in the last position of the list ownedTokens[_from].length--; ownedTokensIndex[_tokenId] = 0; ownedTokensIndex[lastToken] = tokenIndex; } /** * @dev Internal function to mint a new token * Reverts if the given token ID already exists * @param _to address the beneficiary that will own the minted token * @param _tokenId uint256 ID of the token to be minted by the msg.sender */ function _mint(address _to, uint256 _tokenId) internal { super._mint(_to, _tokenId); allTokensIndex[_tokenId] = allTokens.length; allTokens.push(_tokenId); } /** * @dev Internal function to burn a specific token * Reverts if the token does not exist * @param _owner owner of the token to burn * @param _tokenId uint256 ID of the token being burned by the msg.sender */ function _burn(address _owner, uint256 _tokenId) internal { super._burn(_owner, _tokenId); // Reorg all tokens array uint256 tokenIndex = allTokensIndex[_tokenId]; uint256 lastTokenIndex = allTokens.length.sub(1); uint256 lastToken = allTokens[lastTokenIndex]; allTokens[tokenIndex] = lastToken; allTokens[lastTokenIndex] = 0; allTokens.length--; allTokensIndex[_tokenId] = 0; allTokensIndex[lastToken] = tokenIndex; } } interface BitizenCarService { function isBurnedCar(uint256 _carId) external view returns (bool); function getOwnerCars(address _owner) external view returns(uint256[]); function getBurnedCarIdByIndex(uint256 _index) external view returns (uint256); function getCarInfo(uint256 _carId) external view returns(string, uint8, uint8); function createCar(address _owner, string _foundBy, uint8 _type, uint8 _ext) external returns(uint256); function updateCar(uint256 _carId, string _newFoundBy, uint8 _newType, uint8 _ext) external; function burnCar(address _owner, uint256 _carId) external; } contract BitizenCarToken is ERC721ExtendToken { enum CarHandleType{CREATE_CAR, UPDATE_CAR, BURN_CAR} event TransferStateChanged(address indexed _owner, bool _state); event CarHandleEvent(address indexed _owner, uint256 indexed _carId, CarHandleType _type); struct BitizenCar{ string foundBy; // founder name uint8 carType; // car type uint8 ext; // for future } // car id index uint256 internal carIndex = 0; // car id => car mapping (uint256 => BitizenCar) carInfos; // all the burned car id uint256[] internal burnedCars; // check car id => isBurned mapping(uint256 => bool) internal isBurned; // add a switch to handle transfer bool public carTransferState = false; modifier validCar(uint256 _carId) { require(_carId > 0 && _carId <= carIndex, "invalid car"); _; } function changeTransferState(bool _newState) public onlyOwner { if(carTransferState == _newState) return; carTransferState = _newState; emit TransferStateChanged(owner, carTransferState); } function isBurnedCar(uint256 _carId) external view validCar(_carId) returns (bool) { return isBurned[_carId]; } function getBurnedCarCount() external view returns (uint256) { return burnedCars.length; } function getBurnedCarIdByIndex(uint256 _index) external view returns (uint256) { require(_index < burnedCars.length, "out of boundary"); return burnedCars[_index]; } function getCarInfo(uint256 _carId) external view validCar(_carId) returns(string, uint8, uint8) { BitizenCar storage car = carInfos[_carId]; return(car.foundBy, car.carType, car.ext); } function getOwnerCars(address _owner) external view onlyOperator returns(uint256[]) { require(_owner != address(0)); return ownedTokens[_owner]; } function createCar(address _owner, string _foundBy, uint8 _type, uint8 _ext) external onlyOperator returns(uint256) { require(_owner != address(0)); BitizenCar memory car = BitizenCar(_foundBy, _type, _ext); uint256 carId = ++carIndex; carInfos[carId] = car; _mint(_owner, carId); emit CarHandleEvent(_owner, carId, CarHandleType.CREATE_CAR); return carId; } function updateCar(uint256 _carId, string _newFoundBy, uint8 _type, uint8 _ext) external onlyOperator { require(exists(_carId)); BitizenCar storage car = carInfos[_carId]; car.foundBy = _newFoundBy; car.carType = _type; car.ext = _ext; emit CarHandleEvent(_ownerOf(_carId), _carId, CarHandleType.UPDATE_CAR); } function burnCar(address _owner, uint256 _carId) external onlyOperator { burnedCars.push(_carId); isBurned[_carId] = true; _burn(_owner, _carId); emit CarHandleEvent(_owner, _carId, CarHandleType.BURN_CAR); } // override // add transfer condition function _transfer(address _from,address _to,uint256 _tokenId) internal { require(carTransferState == true, "not allown transfer at current time"); super._transfer(_from, _to, _tokenId); } function () public payable { revert(); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":true,"inputs":[{"name":"_interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_tokenId","type":"uint256"}],"name":"approve","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_newState","type":"bool"}],"name":"changeTransferState","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"InterfaceId_ERC165","outputs":[{"name":"","type":"bytes4"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"doUnpause","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_index","type":"uint256"}],"name":"getBurnedCarIdByIndex","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_owner","type":"address"},{"name":"_carId","type":"uint256"}],"name":"burnCar","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"InterfaceId_ERC721Enumerable","outputs":[{"name":"","type":"bytes4"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"doPause","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"getBurnedCarCount","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"isOperator","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"MAX_OPS","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"InterfaceId_ERC721Exists","outputs":[{"name":"","type":"bytes4"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"InterfaceId_ERC721","outputs":[{"name":"","type":"bytes4"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"carTransferState","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"getOwnerCars","outputs":[{"name":"","type":"uint256[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_url","type":"string"}],"name":"updateBaseURI","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_newOperator","type":"address"}],"name":"addOperator","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_operator","type":"address"}],"name":"removeOperator","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"isPaused","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_tokenId","type":"uint256"},{"name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"removeAllOps","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"InterfaceId_ERC721Metadata","outputs":[{"name":"","type":"bytes4"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_owner","type":"address"},{"name":"_foundBy","type":"string"},{"name":"_type","type":"uint8"},{"name":"_ext","type":"uint8"}],"name":"createCar","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_carId","type":"uint256"}],"name":"getCarInfo","outputs":[{"name":"","type":"string"},{"name":"","type":"uint8"},{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_carId","type":"uint256"}],"name":"isBurnedCar","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_carId","type":"uint256"},{"name":"_newFoundBy","type":"string"},{"name":"_type","type":"uint8"},{"name":"_ext","type":"uint8"}],"name":"updateCar","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"operators","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_target","type":"address"}],"name":"isFrozen","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_target","type":"address"},{"name":"_freeze","type":"bool"}],"name":"freezeAccount","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"ERC721_RECEIVED","outputs":[{"name":"","type":"bytes4"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_owner","type":"address"},{"indexed":false,"name":"_state","type":"bool"}],"name":"TransferStateChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_owner","type":"address"},{"indexed":true,"name":"_carId","type":"uint256"},{"indexed":false,"name":"_type","type":"uint8"}],"name":"CarHandleEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"target","type":"address"},{"indexed":false,"name":"frozen","type":"bool"}],"name":"FrozenFunds","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"operator","type":"address"}],"name":"OperatorAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"operator","type":"address"}],"name":"OperatorRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"}],"name":"OwnershipRenounced","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_from","type":"address"},{"indexed":true,"name":"_to","type":"address"},{"indexed":true,"name":"_tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_owner","type":"address"},{"indexed":true,"name":"_approved","type":"address"},{"indexed":true,"name":"_tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_owner","type":"address"},{"indexed":true,"name":"_operator","type":"address"},{"indexed":false,"name":"_approved","type":"bool"}],"name":"ApprovalForAll","type":"event"}]
Contract Creation Code
60146003556005805460ff1916905560e0604052603f60808190527f68747470733a2f2f7777772e6269746775696c642e636f6d2f626974697a656e60a09081527f732f6170692f6c616d626f2f676574436172496e666f2f30303030303030300060c0526200007391600b919062000240565b5060006010556014805460ff19169055620000b77f01ffc9a700000000000000000000000000000000000000000000000000000000640100000000620001d3810204565b60018054600160a060020a03191633179055620000fd7f80ac58cd00000000000000000000000000000000000000000000000000000000640100000000620001d3810204565b620001317f4f558e7900000000000000000000000000000000000000000000000000000000640100000000620001d3810204565b620001657f150b7a0200000000000000000000000000000000000000000000000000000000640100000000620001d3810204565b620001997f780e9d6300000000000000000000000000000000000000000000000000000000640100000000620001d3810204565b620001cd7f5b5e139f00000000000000000000000000000000000000000000000000000000640100000000620001d3810204565b620002e5565b7fffffffff0000000000000000000000000000000000000000000000000000000080821614156200020357600080fd5b7fffffffff00000000000000000000000000000000000000000000000000000000166000908152602081905260409020805460ff19166001179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200028357805160ff1916838001178555620002b3565b82800160010185558215620002b3579182015b82811115620002b357825182559160200191906001019062000296565b50620002c1929150620002c5565b5090565b620002e291905b80821115620002c15760008155600101620002cc565b90565b612b4d80620002f56000396000f30060806040526004361061023a5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166301ffc9a7811461023f57806306fdde0314610275578063081812fc146102ff578063095ea7b31461033357806316c51c361461035957806318160ddd1461037357806319fa8f501461039a57806323b872dd146103cc5780632f745c59146103f657806330efb8d31461041a578063342b3f591461042f57806342842e0e146104475780634f6ccce7146104715780634fa084a81461048957806363365651146104ad5780636352211e146104c257806367d0661d146104da578063687a48a1146104ef5780636d70f7ae1461050457806370a0823114610525578063715018a614610546578063786431c11461055b5780637d1286f614610570578063819ee03a146105855780638da5cb5b1461059a5780638e26c30c146105af578063914fe309146105c4578063931688cb1461063557806395d89b41146106555780639870d7fe1461066a578063a22cb4651461068b578063ac8a584a146106b1578063b187bd26146106d2578063b88d4fde146106e7578063bc14016b14610720578063bd12a00714610735578063c39e53831461074a578063c87b56dd14610784578063d01af8bc1461079c578063d10ad39814610846578063e0f680e91461085e578063e28d49061461088e578063e5839836146108a6578063e724529c146108c7578063e985e9c5146108ed578063ecc98ce414610914578063f2fde38b14610929575b600080fd5b34801561024b57600080fd5b50610261600160e060020a03196004351661094a565b604080519115158252519081900360200190f35b34801561028157600080fd5b5061028a610969565b6040805160208082528351818301528351919283929083019185019080838360005b838110156102c45781810151838201526020016102ac565b50505050905090810190601f1680156102f15780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561030b57600080fd5b506103176004356109a1565b60408051600160a060020a039092168252519081900360200190f35b34801561033f57600080fd5b50610357600160a060020a03600435166024356109bc565b005b34801561036557600080fd5b506103576004351515610a94565b34801561037f57600080fd5b50610388610b20565b60408051918252519081900360200190f35b3480156103a657600080fd5b506103af610b26565b60408051600160e060020a03199092168252519081900360200190f35b3480156103d857600080fd5b50610357600160a060020a0360043581169060243516604435610b4a565b34801561040257600080fd5b50610388600160a060020a0360043516602435610bbc565b34801561042657600080fd5b50610357610c2e565b34801561043b57600080fd5b50610388600435610c62565b34801561045357600080fd5b50610357600160a060020a0360043581169060243516604435610cde565b34801561047d57600080fd5b50610388600435610d5b565b34801561049557600080fd5b50610357600160a060020a0360043516602435610d7e565b3480156104b957600080fd5b506103af610ea7565b3480156104ce57600080fd5b50610317600435610ecb565b3480156104e657600080fd5b50610357610edc565b3480156104fb57600080fd5b50610388610f12565b34801561051057600080fd5b50610261600160a060020a0360043516610f18565b34801561053157600080fd5b50610388600160a060020a0360043516610f2d565b34801561055257600080fd5b50610357610f60565b34801561056757600080fd5b50610388610fc1565b34801561057c57600080fd5b506103af610fc7565b34801561059157600080fd5b506103af610feb565b3480156105a657600080fd5b5061031761100f565b3480156105bb57600080fd5b5061026161101e565b3480156105d057600080fd5b506105e5600160a060020a0360043516611027565b60408051602080825283518183015283519192839290830191858101910280838360005b83811015610621578181015183820152602001610609565b505050509050019250505060405180910390f35b34801561064157600080fd5b506103576004803560248101910135611129565b34801561066157600080fd5b5061028a611151565b34801561067657600080fd5b50610357600160a060020a0360043516611188565b34801561069757600080fd5b50610357600160a060020a03600435166024351515611367565b3480156106bd57600080fd5b50610357600160a060020a03600435166113fb565b3480156106de57600080fd5b50610261611601565b3480156106f357600080fd5b50610357600160a060020a036004803582169160248035909116916044359160643590810191013561160a565b34801561072c57600080fd5b506103576116af565b34801561074157600080fd5b506103af611739565b34801561075657600080fd5b5061038860048035600160a060020a0316906024803590810191013560443560ff908116906064351661175d565b34801561079057600080fd5b5061028a60043561191c565b3480156107a857600080fd5b506107b46004356119d3565b60405180806020018460ff1660ff1681526020018360ff1660ff168152602001828103825285818151815260200191508051906020019080838360005b838110156108095781810151838201526020016107f1565b50505050905090810190601f1680156108365780820380516001836020036101000a031916815260200191505b5094505050505060405180910390f35b34801561085257600080fd5b50610261600435611b06565b34801561086a57600080fd5b5061035760048035906024803590810191013560ff60443581169060643516611b88565b34801561089a57600080fd5b50610317600435611cbc565b3480156108b257600080fd5b50610261600160a060020a0360043516611ce4565b3480156108d357600080fd5b50610357600160a060020a03600435166024351515611d1a565b3480156108f957600080fd5b50610261600160a060020a0360043581169060243516611daa565b34801561092057600080fd5b506103af611dd8565b34801561093557600080fd5b50610357600160a060020a0360043516611dfc565b600160e060020a03191660009081526020819052604090205460ff1690565b60408051808201909152600d81527f426974697a656e204c616d626f0000000000000000000000000000000000000060208201525b90565b600090815260086020526040902054600160a060020a031690565b60055460009060ff16156109cf57600080fd5b6109d882611e1c565b9050600160a060020a0383811690821614156109f357600080fd5b33600160a060020a0382161480610a2d5750600160a060020a0381166000908152600a6020908152604080832033845290915290205460ff165b1515610a3857600080fd5b6000828152600860205260408082208054600160a060020a031916600160a060020a0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600154600160a060020a03163314610aab57600080fd5b60145460ff1615158115151415610ac157610b1d565b6014805482151560ff1990911617908190556001546040805160ff939093161515835251600160a060020a03909116917f8319790b55ccb5d09e953b2b50e360a31cf6e3d41a2bd843bbfec231c29faeee919081900360200190a25b50565b600e5490565b7f01ffc9a70000000000000000000000000000000000000000000000000000000081565b80610b553382611e8b565b1515610bab576040805160e560020a62461bcd02815260206004820181905260248201527f5468697320616464726573732068617665206e6f207065726d69737374696f6e604482015290519081900360640190fd5b610bb6848484611f0a565b50505050565b6000600160a060020a0383161515610bd357600080fd5b600160a060020a0383166000908152600960205260409020548210610bf757600080fd5b600160a060020a0383166000908152600c60205260409020805483908110610c1b57fe5b9060005260206000200154905092915050565b60055460ff161515610c3f57600080fd5b600154600160a060020a03163314610c5657600080fd5b6005805460ff19169055565b6012546000908210610cbe576040805160e560020a62461bcd02815260206004820152600f60248201527f6f7574206f6620626f756e646172790000000000000000000000000000000000604482015290519081900360640190fd5b6012805483908110610ccc57fe5b90600052602060002001549050919050565b80610ce93382611e8b565b1515610d3f576040805160e560020a62461bcd02815260206004820181905260248201527f5468697320616464726573732068617665206e6f207065726d69737374696f6e604482015290519081900360640190fd5b610bb68484846020604051908101604052806000815250611f9a565b6000610d65610b20565b8210610d7057600080fd5b600e805483908110610ccc57fe5b3360009081526004602052604090205460ff1680610da65750600154600160a060020a031633145b1515610dfe576040805160e560020a62461bcd0281526020600482015260346024820152600080516020612ae28339815191526044820152600080516020612b02833981519152606482015290519081900360840190fd5b6012805460018181019092557fbb8a6a4669ba250d26cd7a459eca9d215f8307e33aebe50379bc5a3617ec3444018290556000828152601360205260409020805460ff19169091179055610e528282611fbc565b8082600160a060020a03167fb053e874a401621478520fb7e03d9a76a2803d7b88ff24d292b07f0b13150499600260405180826002811115610e9057fe5b60ff16815260200191505060405180910390a35050565b7f780e9d630000000000000000000000000000000000000000000000000000000081565b6000610ed682611e1c565b92915050565b60055460ff1615610eec57600080fd5b600154600160a060020a03163314610f0357600080fd5b6005805460ff19166001179055565b60125490565b60046020526000908152604090205460ff1681565b6000600160a060020a0382161515610f4457600080fd5b50600160a060020a031660009081526009602052604090205490565b600154600160a060020a03163314610f7757600080fd5b600154604051600160a060020a03909116907ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482090600090a260018054600160a060020a0319169055565b60035481565b7f4f558e790000000000000000000000000000000000000000000000000000000081565b7f80ac58cd0000000000000000000000000000000000000000000000000000000081565b600154600160a060020a031681565b60145460ff1681565b3360009081526004602052604090205460609060ff16806110525750600154600160a060020a031633145b15156110aa576040805160e560020a62461bcd0281526020600482015260346024820152600080516020612ae28339815191526044820152600080516020612b02833981519152606482015290519081900360840190fd5b600160a060020a03821615156110bf57600080fd5b600160a060020a0382166000908152600c60209081526040918290208054835181840281018401909452808452909183018282801561111d57602002820191906000526020600020905b815481526020019060010190808311611109575b50505050509050919050565b600154600160a060020a0316331461114057600080fd5b61114c600b8383612997565b505050565b60408051808201909152600581527f4c414d424f000000000000000000000000000000000000000000000000000000602082015290565b600154600160a060020a0316331461119f57600080fd5b600160a060020a03811615156111ff576040805160e560020a62461bcd02815260206004820152601d60248201527f496e76616c6964206e6577206f70657261746f7220616464726573732e000000604482015290519081900360640190fd5b600160a060020a03811660009081526004602052604090205460ff1615611270576040805160e560020a62461bcd02815260206004820152601460248201527f4e6577206f70657261746f72206578697374732e000000000000000000000000604482015290519081900360640190fd5b600354600254106112cb576040805160e560020a62461bcd02815260206004820152600960248201527f4f766572666c6f772e0000000000000000000000000000000000000000000000604482015290519081900360640190fd5b6002805460018082019092557f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace018054600160a060020a031916600160a060020a038416908117909155600081815260046020908152604091829020805460ff19169094179093558051918252517fac6fa858e9350a46cec16539926e0fde25b7629f84b5a72bffaae4df888ae86d929181900390910190a150565b60055460ff161561137757600080fd5b600160a060020a03821633141561138d57600080fd5b336000818152600a60209081526040808320600160a060020a03871680855290835292819020805460ff1916861515908117909155815190815290519293927f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31929181900390910190a35050565b6001546000908190600160a060020a0316331461141757600080fd5b600254600010611471576040805160e560020a62461bcd02815260206004820152600c60248201527f4e6f206f70657261746f722e0000000000000000000000000000000000000000604482015290519081900360640190fd5b600160a060020a03831660009081526004602052604090205460ff1615156114e3576040805160e560020a62461bcd02815260206004820152601060248201527f4e6f7420616e206f70657261746f722e00000000000000000000000000000000604482015290519081900360640190fd5b6002805460001981019081106114f557fe5b6000918252602082200154600160a060020a0316925090505b6002548110156115935782600160a060020a031660028281548110151561153157fe5b600091825260209091200154600160a060020a0316141561158b578160028281548110151561155c57fe5b9060005260206000200160006101000a815481600160a060020a030219169083600160a060020a031602179055505b60010161150e565b6002805460001901906115a69082612a15565b50600160a060020a038316600081815260046020908152604091829020805460ff19169055815192835290517f80c0b871b97b595b16a7741c1b06fed0c6f6f558639f18ccbce50724325dc40d9281900390910190a1505050565b60055460ff1681565b826116153382611e8b565b151561166b576040805160e560020a62461bcd02815260206004820181905260248201527f5468697320616464726573732068617665206e6f207065726d69737374696f6e604482015290519081900360640190fd5b6116a786868686868080601f01602080910402602001604051908101604052809392919081815260200183838082843750611f9a945050505050565b505050505050565b600154600090600160a060020a031633146116c957600080fd5b5060005b600254811015611728576000600460006002848154811015156116ec57fe5b600091825260208083209190910154600160a060020a031683528201929092526040019020805460ff19169115159190911790556001016116cd565b6000611735600282612a15565b5050565b7f5b5e139f0000000000000000000000000000000000000000000000000000000081565b6000611767612a39565b3360009081526004602052604081205460ff168061178f5750600154600160a060020a031633145b15156117e7576040805160e560020a62461bcd0281526020600482015260346024820152600080516020612ae28339815191526044820152600080516020612b02833981519152606482015290519081900360840190fd5b600160a060020a03881615156117fc57600080fd5b6040805160806020601f8a0181900402820181019092526060810188815290918291908a908a908190850183828082843750505092845250505060ff8088166020808401919091529087166040928301526010805460010190819055600081815260118352929092208351805194965092945085939092611881928492910190612a59565b5060208201516001909101805460409093015160ff9081166101000261ff00199190931660ff1990941693909317929092161790556118c08882612078565b8088600160a060020a03167fb053e874a401621478520fb7e03d9a76a2803d7b88ff24d292b07f0b131504996000604051808260028111156118fe57fe5b60ff16815260200191505060405180910390a3979650505050505050565b6060611927826120c7565b151561193257600080fd5b600b805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152610ed6938693919290918301828280156119c05780601f10611995576101008083540402835291602001916119c0565b820191906000526020600020905b8154815290600101906020018083116119a357829003601f168201915b50505050506120e490919063ffffffff16565b60606000806000846000811180156119ed57506010548111155b1515611a43576040805160e560020a62461bcd02815260206004820152600b60248201527f696e76616c696420636172000000000000000000000000000000000000000000604482015290519081900360640190fd5b6000868152601160209081526040918290206001808201548254855160026101009483161585026000190190921691909104601f8101869004860282018601909652858152929650869460ff80831695939092049091169291859190830182828015611af05780601f10611ac557610100808354040283529160200191611af0565b820191906000526020600020905b815481529060010190602001808311611ad357829003601f168201915b5050505050925094509450945050509193909250565b600081600081118015611b1b57506010548111155b1515611b71576040805160e560020a62461bcd02815260206004820152600b60248201527f696e76616c696420636172000000000000000000000000000000000000000000604482015290519081900360640190fd5b505060009081526013602052604090205460ff1690565b3360009081526004602052604081205460ff1680611bb05750600154600160a060020a031633145b1515611c08576040805160e560020a62461bcd0281526020600482015260346024820152600080516020612ae28339815191526044820152600080516020612b02833981519152606482015290519081900360840190fd5b611c11866120c7565b1515611c1c57600080fd5b506000858152601160205260409020611c36818686612997565b5060018101805460ff8481166101000261ff001991871660ff19909316929092171617905585611c6581611e1c565b600160a060020a03167fb053e874a401621478520fb7e03d9a76a2803d7b88ff24d292b07f0b13150499600160405180826002811115611ca157fe5b60ff16815260200191505060405180910390a3505050505050565b6002805482908110611cca57fe5b600091825260209091200154600160a060020a0316905081565b6000600160a060020a0382161515611cfb57600080fd5b50600160a060020a031660009081526006602052604090205460ff1690565b600154600160a060020a03163314611d3157600080fd5b600160a060020a0382161515611d4657600080fd5b600160a060020a038216600081815260066020908152604091829020805460ff191685151590811790915582519384529083015280517f48335238b4855f35377ed80f164e8c6f3c366e54ac00b96a6402d4a9814a03a59281900390910190a15050565b600160a060020a039182166000908152600a6020908152604080832093909416825291909152205460ff1690565b7f150b7a020000000000000000000000000000000000000000000000000000000081565b600154600160a060020a03163314611e1357600080fd5b610b1d816122c0565b600081815260076020526040812054600160a060020a0316801515610ed6576040805160e560020a62461bcd02815260206004820152600f60248201527f546f6b656e206e6f742065786973740000000000000000000000000000000000604482015290519081900360640190fd5b600080611e9783611e1c565b905080600160a060020a031684600160a060020a03161480611ed25750600083815260086020526040902054600160a060020a038581169116145b80611f025750600160a060020a038082166000908152600a602090815260408083209388168352929052205460ff165b949350505050565b60145460ff161515600114611f8f576040805160e560020a62461bcd02815260206004820152602360248201527f6e6f7420616c6c6f776e207472616e736665722061742063757272656e74207460448201527f696d650000000000000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b61114c838383612331565b611fa5848484611f0a565b611fb1848484846123bf565b1515610bb657600080fd5b6000806000611fcb858561252c565b6000848152600f6020526040902054600e54909350611ff190600163ffffffff61257c16565b9150600e8281548110151561200257fe5b9060005260206000200154905080600e8481548110151561201f57fe5b6000918252602082200191909155600e80548490811061203b57fe5b600091825260209091200155600e80549061205a906000198301612a15565b506000938452600f6020526040808520859055908452909220555050565b612082828261258e565b600e80546000838152600f60205260408120829055600182018355919091527fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd015550565b600090815260076020526040902054600160a060020a0316151590565b81518290819060001901600a6298968085040660300160f860020a02826007830381518110151561211157fe5b906020010190600160f860020a031916908160001a905350600a620f424085040660300160f860020a02826006830381518110151561214c57fe5b906020010190600160f860020a031916908160001a905350600a620186a085040660300160f860020a02826005830381518110151561218757fe5b906020010190600160f860020a031916908160001a905350600a61271085040660300160f860020a0282600483038151811015156121c157fe5b906020010190600160f860020a031916908160001a905350600a6103e885040660300160f860020a0282600383038151811015156121fb57fe5b906020010190600160f860020a031916908160001a905350600a606485040660300160f860020a02826002830381518110151561223457fe5b906020010190600160f860020a031916908160001a905350600a8085040660300160f860020a02826001830381518110151561226c57fe5b906020010190600160f860020a031916908160001a905350815160f860020a6030600a87060102908390839081106122a057fe5b906020010190600160f860020a031916908160001a905350505092915050565b600160a060020a03811615156122d557600080fd5b600154604051600160a060020a038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a360018054600160a060020a031916600160a060020a0392909216919091179055565b600160a060020a038316151561234657600080fd5b600160a060020a038216151561235b57600080fd5b61236583826125e9565b61236f838261265b565b61237982826127a6565b8082600160a060020a031684600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000806123d485600160a060020a0316612800565b15156123e35760019150612523565b6040517f150b7a020000000000000000000000000000000000000000000000000000000081523360048201818152600160a060020a03898116602485015260448401889052608060648501908152875160848601528751918a169463150b7a0294938c938b938b93909160a490910190602085019080838360005b8381101561247657818101518382015260200161245e565b50505050905090810190601f1680156124a35780820380516001836020036101000a031916815260200191505b5095505050505050602060405180830381600087803b1580156124c557600080fd5b505af11580156124d9573d6000803e3d6000fd5b505050506040513d60208110156124ef57600080fd5b5051600160e060020a031981167f150b7a020000000000000000000000000000000000000000000000000000000014925090505b50949350505050565b61253682826125e9565b612540828261265b565b6040518190600090600160a060020a038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60008282111561258857fe5b50900390565b600160a060020a03821615156125a357600080fd5b6125ad82826127a6565b6040518190600160a060020a038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60055460ff16156125f957600080fd5b81600160a060020a031661260c82611e1c565b600160a060020a03161461261f57600080fd5b600081815260086020526040902054600160a060020a0316156117355760009081526008602052604090208054600160a060020a031916905550565b6005546000908190819060ff161561267257600080fd5b61267c8585612808565b6000848152600d6020908152604080832054600160a060020a0389168452600c909252909120549093506126b790600163ffffffff61257c16565b600160a060020a0386166000908152600c60205260409020805491935090839081106126df57fe5b9060005260206000200154905080600c600087600160a060020a0316600160a060020a031681526020019081526020016000208481548110151561271f57fe5b6000918252602080832090910192909255600160a060020a0387168152600c9091526040812080548490811061275157fe5b6000918252602080832090910192909255600160a060020a0387168152600c90915260409020805490612788906000198301612a15565b506000938452600d6020526040808520859055908452909220555050565b60055460009060ff16156127b957600080fd5b6127c383836128c7565b50600160a060020a039091166000908152600c6020908152604080832080546001810182559084528284208101859055938352600d909152902055565b6000903b1190565b60055460ff161561281857600080fd5b81600160a060020a031661282b82611e1c565b600160a060020a03161461283e57600080fd5b600160a060020a03821660009081526006602052604090205460ff161561286457600080fd5b600160a060020a03821660009081526009602052604090205461288e90600163ffffffff61257c16565b600160a060020a039092166000908152600960209081526040808320949094559181526007909152208054600160a060020a0319169055565b60055460ff16156128d757600080fd5b600081815260076020526040902054600160a060020a0316156128f957600080fd5b600160a060020a03821660009081526006602052604090205460ff161561291f57600080fd5b60008181526007602090815260408083208054600160a060020a031916600160a060020a03871690811790915583526009909152902054612961906001612981565b600160a060020a0390921660009081526009602052604090209190915550565b60008282018381101561299057fe5b9392505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106129d85782800160ff19823516178555612a05565b82800160010185558215612a05579182015b82811115612a055782358255916020019190600101906129ea565b50612a11929150612ac7565b5090565b81548183558181111561114c5760008381526020902061114c918101908301612ac7565b604080516060818101835281526000602082018190529181019190915290565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10612a9a57805160ff1916838001178555612a05565b82800160010185558215612a05579182015b82811115612a05578251825591602001919060010190612aac565b61099e91905b80821115612a115760008155600101612acd56005065726d697373696f6e2064656e6965642e204d75737420626520616e206f70657261746f72206f7220746865206f776e65722e000000000000000000000000a165627a7a72305820d7b79bf41ed385e54b8f92371e0f6b812e89e5e5f8720bf7bb5ee78867595f540029
Deployed Bytecode
0x60806040526004361061023a5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166301ffc9a7811461023f57806306fdde0314610275578063081812fc146102ff578063095ea7b31461033357806316c51c361461035957806318160ddd1461037357806319fa8f501461039a57806323b872dd146103cc5780632f745c59146103f657806330efb8d31461041a578063342b3f591461042f57806342842e0e146104475780634f6ccce7146104715780634fa084a81461048957806363365651146104ad5780636352211e146104c257806367d0661d146104da578063687a48a1146104ef5780636d70f7ae1461050457806370a0823114610525578063715018a614610546578063786431c11461055b5780637d1286f614610570578063819ee03a146105855780638da5cb5b1461059a5780638e26c30c146105af578063914fe309146105c4578063931688cb1461063557806395d89b41146106555780639870d7fe1461066a578063a22cb4651461068b578063ac8a584a146106b1578063b187bd26146106d2578063b88d4fde146106e7578063bc14016b14610720578063bd12a00714610735578063c39e53831461074a578063c87b56dd14610784578063d01af8bc1461079c578063d10ad39814610846578063e0f680e91461085e578063e28d49061461088e578063e5839836146108a6578063e724529c146108c7578063e985e9c5146108ed578063ecc98ce414610914578063f2fde38b14610929575b600080fd5b34801561024b57600080fd5b50610261600160e060020a03196004351661094a565b604080519115158252519081900360200190f35b34801561028157600080fd5b5061028a610969565b6040805160208082528351818301528351919283929083019185019080838360005b838110156102c45781810151838201526020016102ac565b50505050905090810190601f1680156102f15780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561030b57600080fd5b506103176004356109a1565b60408051600160a060020a039092168252519081900360200190f35b34801561033f57600080fd5b50610357600160a060020a03600435166024356109bc565b005b34801561036557600080fd5b506103576004351515610a94565b34801561037f57600080fd5b50610388610b20565b60408051918252519081900360200190f35b3480156103a657600080fd5b506103af610b26565b60408051600160e060020a03199092168252519081900360200190f35b3480156103d857600080fd5b50610357600160a060020a0360043581169060243516604435610b4a565b34801561040257600080fd5b50610388600160a060020a0360043516602435610bbc565b34801561042657600080fd5b50610357610c2e565b34801561043b57600080fd5b50610388600435610c62565b34801561045357600080fd5b50610357600160a060020a0360043581169060243516604435610cde565b34801561047d57600080fd5b50610388600435610d5b565b34801561049557600080fd5b50610357600160a060020a0360043516602435610d7e565b3480156104b957600080fd5b506103af610ea7565b3480156104ce57600080fd5b50610317600435610ecb565b3480156104e657600080fd5b50610357610edc565b3480156104fb57600080fd5b50610388610f12565b34801561051057600080fd5b50610261600160a060020a0360043516610f18565b34801561053157600080fd5b50610388600160a060020a0360043516610f2d565b34801561055257600080fd5b50610357610f60565b34801561056757600080fd5b50610388610fc1565b34801561057c57600080fd5b506103af610fc7565b34801561059157600080fd5b506103af610feb565b3480156105a657600080fd5b5061031761100f565b3480156105bb57600080fd5b5061026161101e565b3480156105d057600080fd5b506105e5600160a060020a0360043516611027565b60408051602080825283518183015283519192839290830191858101910280838360005b83811015610621578181015183820152602001610609565b505050509050019250505060405180910390f35b34801561064157600080fd5b506103576004803560248101910135611129565b34801561066157600080fd5b5061028a611151565b34801561067657600080fd5b50610357600160a060020a0360043516611188565b34801561069757600080fd5b50610357600160a060020a03600435166024351515611367565b3480156106bd57600080fd5b50610357600160a060020a03600435166113fb565b3480156106de57600080fd5b50610261611601565b3480156106f357600080fd5b50610357600160a060020a036004803582169160248035909116916044359160643590810191013561160a565b34801561072c57600080fd5b506103576116af565b34801561074157600080fd5b506103af611739565b34801561075657600080fd5b5061038860048035600160a060020a0316906024803590810191013560443560ff908116906064351661175d565b34801561079057600080fd5b5061028a60043561191c565b3480156107a857600080fd5b506107b46004356119d3565b60405180806020018460ff1660ff1681526020018360ff1660ff168152602001828103825285818151815260200191508051906020019080838360005b838110156108095781810151838201526020016107f1565b50505050905090810190601f1680156108365780820380516001836020036101000a031916815260200191505b5094505050505060405180910390f35b34801561085257600080fd5b50610261600435611b06565b34801561086a57600080fd5b5061035760048035906024803590810191013560ff60443581169060643516611b88565b34801561089a57600080fd5b50610317600435611cbc565b3480156108b257600080fd5b50610261600160a060020a0360043516611ce4565b3480156108d357600080fd5b50610357600160a060020a03600435166024351515611d1a565b3480156108f957600080fd5b50610261600160a060020a0360043581169060243516611daa565b34801561092057600080fd5b506103af611dd8565b34801561093557600080fd5b50610357600160a060020a0360043516611dfc565b600160e060020a03191660009081526020819052604090205460ff1690565b60408051808201909152600d81527f426974697a656e204c616d626f0000000000000000000000000000000000000060208201525b90565b600090815260086020526040902054600160a060020a031690565b60055460009060ff16156109cf57600080fd5b6109d882611e1c565b9050600160a060020a0383811690821614156109f357600080fd5b33600160a060020a0382161480610a2d5750600160a060020a0381166000908152600a6020908152604080832033845290915290205460ff165b1515610a3857600080fd5b6000828152600860205260408082208054600160a060020a031916600160a060020a0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600154600160a060020a03163314610aab57600080fd5b60145460ff1615158115151415610ac157610b1d565b6014805482151560ff1990911617908190556001546040805160ff939093161515835251600160a060020a03909116917f8319790b55ccb5d09e953b2b50e360a31cf6e3d41a2bd843bbfec231c29faeee919081900360200190a25b50565b600e5490565b7f01ffc9a70000000000000000000000000000000000000000000000000000000081565b80610b553382611e8b565b1515610bab576040805160e560020a62461bcd02815260206004820181905260248201527f5468697320616464726573732068617665206e6f207065726d69737374696f6e604482015290519081900360640190fd5b610bb6848484611f0a565b50505050565b6000600160a060020a0383161515610bd357600080fd5b600160a060020a0383166000908152600960205260409020548210610bf757600080fd5b600160a060020a0383166000908152600c60205260409020805483908110610c1b57fe5b9060005260206000200154905092915050565b60055460ff161515610c3f57600080fd5b600154600160a060020a03163314610c5657600080fd5b6005805460ff19169055565b6012546000908210610cbe576040805160e560020a62461bcd02815260206004820152600f60248201527f6f7574206f6620626f756e646172790000000000000000000000000000000000604482015290519081900360640190fd5b6012805483908110610ccc57fe5b90600052602060002001549050919050565b80610ce93382611e8b565b1515610d3f576040805160e560020a62461bcd02815260206004820181905260248201527f5468697320616464726573732068617665206e6f207065726d69737374696f6e604482015290519081900360640190fd5b610bb68484846020604051908101604052806000815250611f9a565b6000610d65610b20565b8210610d7057600080fd5b600e805483908110610ccc57fe5b3360009081526004602052604090205460ff1680610da65750600154600160a060020a031633145b1515610dfe576040805160e560020a62461bcd0281526020600482015260346024820152600080516020612ae28339815191526044820152600080516020612b02833981519152606482015290519081900360840190fd5b6012805460018181019092557fbb8a6a4669ba250d26cd7a459eca9d215f8307e33aebe50379bc5a3617ec3444018290556000828152601360205260409020805460ff19169091179055610e528282611fbc565b8082600160a060020a03167fb053e874a401621478520fb7e03d9a76a2803d7b88ff24d292b07f0b13150499600260405180826002811115610e9057fe5b60ff16815260200191505060405180910390a35050565b7f780e9d630000000000000000000000000000000000000000000000000000000081565b6000610ed682611e1c565b92915050565b60055460ff1615610eec57600080fd5b600154600160a060020a03163314610f0357600080fd5b6005805460ff19166001179055565b60125490565b60046020526000908152604090205460ff1681565b6000600160a060020a0382161515610f4457600080fd5b50600160a060020a031660009081526009602052604090205490565b600154600160a060020a03163314610f7757600080fd5b600154604051600160a060020a03909116907ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482090600090a260018054600160a060020a0319169055565b60035481565b7f4f558e790000000000000000000000000000000000000000000000000000000081565b7f80ac58cd0000000000000000000000000000000000000000000000000000000081565b600154600160a060020a031681565b60145460ff1681565b3360009081526004602052604090205460609060ff16806110525750600154600160a060020a031633145b15156110aa576040805160e560020a62461bcd0281526020600482015260346024820152600080516020612ae28339815191526044820152600080516020612b02833981519152606482015290519081900360840190fd5b600160a060020a03821615156110bf57600080fd5b600160a060020a0382166000908152600c60209081526040918290208054835181840281018401909452808452909183018282801561111d57602002820191906000526020600020905b815481526020019060010190808311611109575b50505050509050919050565b600154600160a060020a0316331461114057600080fd5b61114c600b8383612997565b505050565b60408051808201909152600581527f4c414d424f000000000000000000000000000000000000000000000000000000602082015290565b600154600160a060020a0316331461119f57600080fd5b600160a060020a03811615156111ff576040805160e560020a62461bcd02815260206004820152601d60248201527f496e76616c6964206e6577206f70657261746f7220616464726573732e000000604482015290519081900360640190fd5b600160a060020a03811660009081526004602052604090205460ff1615611270576040805160e560020a62461bcd02815260206004820152601460248201527f4e6577206f70657261746f72206578697374732e000000000000000000000000604482015290519081900360640190fd5b600354600254106112cb576040805160e560020a62461bcd02815260206004820152600960248201527f4f766572666c6f772e0000000000000000000000000000000000000000000000604482015290519081900360640190fd5b6002805460018082019092557f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace018054600160a060020a031916600160a060020a038416908117909155600081815260046020908152604091829020805460ff19169094179093558051918252517fac6fa858e9350a46cec16539926e0fde25b7629f84b5a72bffaae4df888ae86d929181900390910190a150565b60055460ff161561137757600080fd5b600160a060020a03821633141561138d57600080fd5b336000818152600a60209081526040808320600160a060020a03871680855290835292819020805460ff1916861515908117909155815190815290519293927f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31929181900390910190a35050565b6001546000908190600160a060020a0316331461141757600080fd5b600254600010611471576040805160e560020a62461bcd02815260206004820152600c60248201527f4e6f206f70657261746f722e0000000000000000000000000000000000000000604482015290519081900360640190fd5b600160a060020a03831660009081526004602052604090205460ff1615156114e3576040805160e560020a62461bcd02815260206004820152601060248201527f4e6f7420616e206f70657261746f722e00000000000000000000000000000000604482015290519081900360640190fd5b6002805460001981019081106114f557fe5b6000918252602082200154600160a060020a0316925090505b6002548110156115935782600160a060020a031660028281548110151561153157fe5b600091825260209091200154600160a060020a0316141561158b578160028281548110151561155c57fe5b9060005260206000200160006101000a815481600160a060020a030219169083600160a060020a031602179055505b60010161150e565b6002805460001901906115a69082612a15565b50600160a060020a038316600081815260046020908152604091829020805460ff19169055815192835290517f80c0b871b97b595b16a7741c1b06fed0c6f6f558639f18ccbce50724325dc40d9281900390910190a1505050565b60055460ff1681565b826116153382611e8b565b151561166b576040805160e560020a62461bcd02815260206004820181905260248201527f5468697320616464726573732068617665206e6f207065726d69737374696f6e604482015290519081900360640190fd5b6116a786868686868080601f01602080910402602001604051908101604052809392919081815260200183838082843750611f9a945050505050565b505050505050565b600154600090600160a060020a031633146116c957600080fd5b5060005b600254811015611728576000600460006002848154811015156116ec57fe5b600091825260208083209190910154600160a060020a031683528201929092526040019020805460ff19169115159190911790556001016116cd565b6000611735600282612a15565b5050565b7f5b5e139f0000000000000000000000000000000000000000000000000000000081565b6000611767612a39565b3360009081526004602052604081205460ff168061178f5750600154600160a060020a031633145b15156117e7576040805160e560020a62461bcd0281526020600482015260346024820152600080516020612ae28339815191526044820152600080516020612b02833981519152606482015290519081900360840190fd5b600160a060020a03881615156117fc57600080fd5b6040805160806020601f8a0181900402820181019092526060810188815290918291908a908a908190850183828082843750505092845250505060ff8088166020808401919091529087166040928301526010805460010190819055600081815260118352929092208351805194965092945085939092611881928492910190612a59565b5060208201516001909101805460409093015160ff9081166101000261ff00199190931660ff1990941693909317929092161790556118c08882612078565b8088600160a060020a03167fb053e874a401621478520fb7e03d9a76a2803d7b88ff24d292b07f0b131504996000604051808260028111156118fe57fe5b60ff16815260200191505060405180910390a3979650505050505050565b6060611927826120c7565b151561193257600080fd5b600b805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152610ed6938693919290918301828280156119c05780601f10611995576101008083540402835291602001916119c0565b820191906000526020600020905b8154815290600101906020018083116119a357829003601f168201915b50505050506120e490919063ffffffff16565b60606000806000846000811180156119ed57506010548111155b1515611a43576040805160e560020a62461bcd02815260206004820152600b60248201527f696e76616c696420636172000000000000000000000000000000000000000000604482015290519081900360640190fd5b6000868152601160209081526040918290206001808201548254855160026101009483161585026000190190921691909104601f8101869004860282018601909652858152929650869460ff80831695939092049091169291859190830182828015611af05780601f10611ac557610100808354040283529160200191611af0565b820191906000526020600020905b815481529060010190602001808311611ad357829003601f168201915b5050505050925094509450945050509193909250565b600081600081118015611b1b57506010548111155b1515611b71576040805160e560020a62461bcd02815260206004820152600b60248201527f696e76616c696420636172000000000000000000000000000000000000000000604482015290519081900360640190fd5b505060009081526013602052604090205460ff1690565b3360009081526004602052604081205460ff1680611bb05750600154600160a060020a031633145b1515611c08576040805160e560020a62461bcd0281526020600482015260346024820152600080516020612ae28339815191526044820152600080516020612b02833981519152606482015290519081900360840190fd5b611c11866120c7565b1515611c1c57600080fd5b506000858152601160205260409020611c36818686612997565b5060018101805460ff8481166101000261ff001991871660ff19909316929092171617905585611c6581611e1c565b600160a060020a03167fb053e874a401621478520fb7e03d9a76a2803d7b88ff24d292b07f0b13150499600160405180826002811115611ca157fe5b60ff16815260200191505060405180910390a3505050505050565b6002805482908110611cca57fe5b600091825260209091200154600160a060020a0316905081565b6000600160a060020a0382161515611cfb57600080fd5b50600160a060020a031660009081526006602052604090205460ff1690565b600154600160a060020a03163314611d3157600080fd5b600160a060020a0382161515611d4657600080fd5b600160a060020a038216600081815260066020908152604091829020805460ff191685151590811790915582519384529083015280517f48335238b4855f35377ed80f164e8c6f3c366e54ac00b96a6402d4a9814a03a59281900390910190a15050565b600160a060020a039182166000908152600a6020908152604080832093909416825291909152205460ff1690565b7f150b7a020000000000000000000000000000000000000000000000000000000081565b600154600160a060020a03163314611e1357600080fd5b610b1d816122c0565b600081815260076020526040812054600160a060020a0316801515610ed6576040805160e560020a62461bcd02815260206004820152600f60248201527f546f6b656e206e6f742065786973740000000000000000000000000000000000604482015290519081900360640190fd5b600080611e9783611e1c565b905080600160a060020a031684600160a060020a03161480611ed25750600083815260086020526040902054600160a060020a038581169116145b80611f025750600160a060020a038082166000908152600a602090815260408083209388168352929052205460ff165b949350505050565b60145460ff161515600114611f8f576040805160e560020a62461bcd02815260206004820152602360248201527f6e6f7420616c6c6f776e207472616e736665722061742063757272656e74207460448201527f696d650000000000000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b61114c838383612331565b611fa5848484611f0a565b611fb1848484846123bf565b1515610bb657600080fd5b6000806000611fcb858561252c565b6000848152600f6020526040902054600e54909350611ff190600163ffffffff61257c16565b9150600e8281548110151561200257fe5b9060005260206000200154905080600e8481548110151561201f57fe5b6000918252602082200191909155600e80548490811061203b57fe5b600091825260209091200155600e80549061205a906000198301612a15565b506000938452600f6020526040808520859055908452909220555050565b612082828261258e565b600e80546000838152600f60205260408120829055600182018355919091527fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd015550565b600090815260076020526040902054600160a060020a0316151590565b81518290819060001901600a6298968085040660300160f860020a02826007830381518110151561211157fe5b906020010190600160f860020a031916908160001a905350600a620f424085040660300160f860020a02826006830381518110151561214c57fe5b906020010190600160f860020a031916908160001a905350600a620186a085040660300160f860020a02826005830381518110151561218757fe5b906020010190600160f860020a031916908160001a905350600a61271085040660300160f860020a0282600483038151811015156121c157fe5b906020010190600160f860020a031916908160001a905350600a6103e885040660300160f860020a0282600383038151811015156121fb57fe5b906020010190600160f860020a031916908160001a905350600a606485040660300160f860020a02826002830381518110151561223457fe5b906020010190600160f860020a031916908160001a905350600a8085040660300160f860020a02826001830381518110151561226c57fe5b906020010190600160f860020a031916908160001a905350815160f860020a6030600a87060102908390839081106122a057fe5b906020010190600160f860020a031916908160001a905350505092915050565b600160a060020a03811615156122d557600080fd5b600154604051600160a060020a038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a360018054600160a060020a031916600160a060020a0392909216919091179055565b600160a060020a038316151561234657600080fd5b600160a060020a038216151561235b57600080fd5b61236583826125e9565b61236f838261265b565b61237982826127a6565b8082600160a060020a031684600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000806123d485600160a060020a0316612800565b15156123e35760019150612523565b6040517f150b7a020000000000000000000000000000000000000000000000000000000081523360048201818152600160a060020a03898116602485015260448401889052608060648501908152875160848601528751918a169463150b7a0294938c938b938b93909160a490910190602085019080838360005b8381101561247657818101518382015260200161245e565b50505050905090810190601f1680156124a35780820380516001836020036101000a031916815260200191505b5095505050505050602060405180830381600087803b1580156124c557600080fd5b505af11580156124d9573d6000803e3d6000fd5b505050506040513d60208110156124ef57600080fd5b5051600160e060020a031981167f150b7a020000000000000000000000000000000000000000000000000000000014925090505b50949350505050565b61253682826125e9565b612540828261265b565b6040518190600090600160a060020a038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60008282111561258857fe5b50900390565b600160a060020a03821615156125a357600080fd5b6125ad82826127a6565b6040518190600160a060020a038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60055460ff16156125f957600080fd5b81600160a060020a031661260c82611e1c565b600160a060020a03161461261f57600080fd5b600081815260086020526040902054600160a060020a0316156117355760009081526008602052604090208054600160a060020a031916905550565b6005546000908190819060ff161561267257600080fd5b61267c8585612808565b6000848152600d6020908152604080832054600160a060020a0389168452600c909252909120549093506126b790600163ffffffff61257c16565b600160a060020a0386166000908152600c60205260409020805491935090839081106126df57fe5b9060005260206000200154905080600c600087600160a060020a0316600160a060020a031681526020019081526020016000208481548110151561271f57fe5b6000918252602080832090910192909255600160a060020a0387168152600c9091526040812080548490811061275157fe5b6000918252602080832090910192909255600160a060020a0387168152600c90915260409020805490612788906000198301612a15565b506000938452600d6020526040808520859055908452909220555050565b60055460009060ff16156127b957600080fd5b6127c383836128c7565b50600160a060020a039091166000908152600c6020908152604080832080546001810182559084528284208101859055938352600d909152902055565b6000903b1190565b60055460ff161561281857600080fd5b81600160a060020a031661282b82611e1c565b600160a060020a03161461283e57600080fd5b600160a060020a03821660009081526006602052604090205460ff161561286457600080fd5b600160a060020a03821660009081526009602052604090205461288e90600163ffffffff61257c16565b600160a060020a039092166000908152600960209081526040808320949094559181526007909152208054600160a060020a0319169055565b60055460ff16156128d757600080fd5b600081815260076020526040902054600160a060020a0316156128f957600080fd5b600160a060020a03821660009081526006602052604090205460ff161561291f57600080fd5b60008181526007602090815260408083208054600160a060020a031916600160a060020a03871690811790915583526009909152902054612961906001612981565b600160a060020a0390921660009081526009602052604090209190915550565b60008282018381101561299057fe5b9392505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106129d85782800160ff19823516178555612a05565b82800160010185558215612a05579182015b82811115612a055782358255916020019190600101906129ea565b50612a11929150612ac7565b5090565b81548183558181111561114c5760008381526020902061114c918101908301612ac7565b604080516060818101835281526000602082018190529181019190915290565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10612a9a57805160ff1916838001178555612a05565b82800160010185558215612a05579182015b82811115612a05578251825591602001919060010190612aac565b61099e91905b80821115612a115760008155600101612acd56005065726d697373696f6e2064656e6965642e204d75737420626520616e206f70657261746f72206f7220746865206f776e65722e000000000000000000000000a165627a7a72305820d7b79bf41ed385e54b8f92371e0f6b812e89e5e5f8720bf7bb5ee78867595f540029
Swarm Source
bzzr://d7b79bf41ed385e54b8f92371e0f6b812e89e5e5f8720bf7bb5ee78867595f54
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ 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.