ERC-721
Overview
Max Total Supply
496 DPM
Holders
178
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 DPMLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
DigitalPrintImage
Compiler Version
v0.4.24+commit.e67f0147
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2018-10-04 */ pragma solidity ^0.4.24; /** * @title ERC165 * @dev https://github.com/ethereum/EIPs/blob/master/EIPS/eip-165.md */ 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); } /** * @title ERC721 Non-Fungible Token Standard basic interface * @dev see https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md */ contract ERC721Basic is ERC165 { bytes4 internal 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 internal constant InterfaceId_ERC721Exists = 0x4f558e79; /* * 0x4f558e79 === * bytes4(keccak256('exists(uint256)')) */ bytes4 internal constant InterfaceId_ERC721Enumerable = 0x780e9d63; /** * 0x780e9d63 === * bytes4(keccak256('totalSupply()')) ^ * bytes4(keccak256('tokenOfOwnerByIndex(address,uint256)')) ^ * bytes4(keccak256('tokenByIndex(uint256)')) */ bytes4 internal constant InterfaceId_ERC721Metadata = 0x5b5e139f; /** * 0x5b5e139f === * bytes4(keccak256('name()')) ^ * bytes4(keccak256('symbol()')) ^ * bytes4(keccak256('tokenURI(uint256)')) */ event Transfer( address indexed _from, address indexed _to, uint256 indexed _tokenId ); event Approval( address indexed _owner, address indexed _approved, uint256 indexed _tokenId ); event ApprovalForAll( address indexed _owner, address indexed _operator, bool _approved ); function balanceOf(address _owner) public view returns (uint256 _balance); function ownerOf(uint256 _tokenId) public view returns (address _owner); function exists(uint256 _tokenId) public view returns (bool _exists); function approve(address _to, uint256 _tokenId) public; function getApproved(uint256 _tokenId) public view returns (address _operator); function setApprovalForAll(address _operator, bool _approved) public; function isApprovedForAll(address _owner, address _operator) public view returns (bool); function transferFrom(address _from, address _to, uint256 _tokenId) public; function safeTransferFrom(address _from, address _to, uint256 _tokenId) public; function safeTransferFrom( address _from, address _to, uint256 _tokenId, bytes _data ) public; } contract IAssetManager { function createAssetPack(bytes32 _packCover, string _name, uint[] _attributes, bytes32[] _ipfsHashes, uint _packPrice) public; function createAsset(uint _attributes, bytes32 _ipfsHash, uint _packId) public; function buyAssetPack(address _to, uint _assetPackId) public payable; function getNumberOfAssets() public view returns (uint); function getNumberOfAssetPacks() public view returns(uint); function checkHasPermissionForPack(address _address, uint _packId) public view returns (bool); function checkHashExists(bytes32 _ipfsHash) public view returns (bool); function givePermission(address _address, uint _packId) public; function pickUniquePacks(uint [] assetIds) public view returns (uint[]); function getAssetInfo(uint id) public view returns (uint, uint, bytes32); function getAssetPacksUserCreated(address _address) public view returns(uint[]); function getAssetIpfs(uint _id) public view returns (bytes32); function getAssetAttributes(uint _id) public view returns (uint); function getIpfsForAssets(uint [] _ids) public view returns (bytes32[]); function getAttributesForAssets(uint [] _ids) public view returns(uint[]); function withdraw() public; function getAssetPackData(uint _assetPackId) public view returns(string, uint[], uint[], bytes32[]); function getAssetPackName(uint _assetPackId) public view returns (string); function getAssetPackPrice(uint _assetPackId) public view returns (uint); function getCoversForPacks(uint [] _packIds) public view returns (bytes32[]); } /** * @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 ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md */ contract ERC721Enumerable is ERC721Basic { function totalSupply() public view returns (uint256); function tokenOfOwnerByIndex( address _owner, uint256 _index ) public view returns (uint256 _tokenId); function tokenByIndex(uint256 _index) public view returns (uint256); } /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md */ contract ERC721Metadata is ERC721Basic { function name() external view returns (string _name); function symbol() external view returns (string _symbol); function tokenURI(uint256 _tokenId) public view returns (string); } /** * @title ERC-721 Non-Fungible Token Standard, full implementation interface * @dev See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md */ contract ERC721 is ERC721Basic, ERC721Enumerable, ERC721Metadata { } /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ contract ERC721Receiver { /** * @dev Magic value to be returned upon successful reception of an NFT * Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`, * which can be also obtained as `ERC721Receiver(0).onERC721Received.selector` */ bytes4 internal constant ERC721_RECEIVED = 0x150b7a02; /** * @notice Handle the receipt of an NFT * @dev The ERC721 smart contract calls this function on the recipient * after a `safetransfer`. 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)"))` */ function onERC721Received( address _operator, address _from, uint256 _tokenId, bytes _data ) public returns(bytes4); } /** * @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 c) { // Gas optimization: this is cheaper than asserting 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522 if (_a == 0) { return 0; } 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 _a / _b; } /** * @dev Subtracts 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 c) { c = _a + _b; assert(c >= _a); return c; } } /** * 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; } } /** * @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; } } /** * @title ERC721 Non-Fungible Token Standard basic implementation * @dev see https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md */ contract ERC721BasicToken is SupportsInterfaceWithLookup, ERC721Basic { 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 private 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; constructor() public { // register the supported interfaces to conform to ERC721 via ERC165 _registerInterface(InterfaceId_ERC721); _registerInterface(InterfaceId_ERC721Exists); } /** * @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) public 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) public view returns (address) { address owner = tokenOwner[_tokenId]; require(owner != address(0)); return owner; } /** * @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) public 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) public { address owner = ownerOf(_tokenId); require(_to != owner); require(msg.sender == owner || isApprovedForAll(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) public 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) public { 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 ) public 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 ) public { require(isApprovedOrOwner(msg.sender, _tokenId)); 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 ) public { // 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 ) public { transferFrom(_from, _to, _tokenId); // solium-disable-next-line arg-overflow require(checkAndCallSafeTransfer(_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 || getApproved(_tokenId) == _spender || isApprovedForAll(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 { 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 { require(tokenOwner[_tokenId] == address(0)); 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 { require(ownerOf(_tokenId) == _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 = ERC721Receiver(_to).onERC721Received( msg.sender, _from, _tokenId, _data); return (retval == ERC721_RECEIVED); } } /** * @title Full ERC721 Token * This implementation includes all the required and some optional functionality of the ERC721 standard * Moreover, it includes approve all functionality using operator terminology * @dev see https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md */ contract ERC721Token is SupportsInterfaceWithLookup, ERC721BasicToken, ERC721 { // Token name string internal name_; // Token symbol string internal symbol_; // 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; // Optional mapping for token URIs mapping(uint256 => string) internal tokenURIs; /** * @dev Constructor function */ constructor(string _name, string _symbol) public { name_ = _name; symbol_ = _symbol; // 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 name_; } /** * @dev Gets the token symbol * @return string representing the token symbol */ function symbol() external view returns (string) { return symbol_; } /** * @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) public view returns (string) { require(exists(_tokenId)); return tokenURIs[_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(_index < balanceOf(_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 set the token URI for a given token * Reverts if the token ID does not exist * @param _tokenId uint256 ID of the token to set its URI * @param _uri string URI to assign */ function _setTokenURI(uint256 _tokenId, string _uri) internal { require(exists(_tokenId)); tokenURIs[_tokenId] = _uri; } /** * @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 { 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 { super.removeTokenFrom(_from, _tokenId); // To prevent a gap in the array, we store the last token in the index of the token to delete, and // then delete the last slot. uint256 tokenIndex = ownedTokensIndex[_tokenId]; uint256 lastTokenIndex = ownedTokens[_from].length.sub(1); uint256 lastToken = ownedTokens[_from][lastTokenIndex]; ownedTokens[_from][tokenIndex] = lastToken; // This also deletes the contents at the last position of the array ownedTokens[_from].length--; // 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 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); // Clear metadata (if any) if (bytes(tokenURIs[_tokenId]).length != 0) { delete tokenURIs[_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; } } contract Functions { bytes32[] public randomHashes; function fillWithHashes() public { require(randomHashes.length == 0); for (uint i = block.number - 100; i < block.number; i++) { randomHashes.push(blockhash(i)); } } /// @notice Function to calculate initial random seed based on our hashes /// @param _randomHashIds are ids in our array of hashes /// @param _timestamp is timestamp for that hash /// @return uint representation of random seed function calculateSeed(uint[] _randomHashIds, uint _timestamp) public view returns (uint) { require(_timestamp != 0); require(_randomHashIds.length == 10); bytes32 randomSeed = keccak256( abi.encodePacked( randomHashes[_randomHashIds[0]], randomHashes[_randomHashIds[1]], randomHashes[_randomHashIds[2]], randomHashes[_randomHashIds[3]], randomHashes[_randomHashIds[4]], randomHashes[_randomHashIds[5]], randomHashes[_randomHashIds[6]], randomHashes[_randomHashIds[7]], randomHashes[_randomHashIds[8]], randomHashes[_randomHashIds[9]], _timestamp ) ); return uint(randomSeed); } function getRandomHashesLength() public view returns(uint) { return randomHashes.length; } /// @notice Function which decodes bytes32 to array of integers /// @param _potentialAssets are potential assets user would like to have /// @return array of assetIds function decodeAssets(bytes32[] _potentialAssets) public pure returns (uint[] assets) { require(_potentialAssets.length > 0); uint[] memory assetsCopy = new uint[](_potentialAssets.length*10); uint numberOfAssets = 0; for (uint j = 0; j < _potentialAssets.length; j++) { uint input; bytes32 pot = _potentialAssets[j]; assembly { input := pot } for (uint i = 10; i > 0; i--) { uint mask = (2 << ((i-1) * 24)) / 2; uint b = (input & (mask * 16777215)) / mask; if (b != 0) { assetsCopy[numberOfAssets] = b; numberOfAssets++; } } } assets = new uint[](numberOfAssets); for (i = 0; i < numberOfAssets; i++) { assets[i] = assetsCopy[i]; } } /// @notice Function to pick random assets from potentialAssets array /// @param _finalSeed is final random seed /// @param _potentialAssets is bytes32[] array of potential assets /// @return uint[] array of randomly picked assets function pickRandomAssets(uint _finalSeed, bytes32[] _potentialAssets) public pure returns(uint[] finalPicked) { require(_finalSeed != 0); require(_potentialAssets.length > 0); uint[] memory assetIds = decodeAssets(_potentialAssets); uint[] memory pickedIds = new uint[](assetIds.length); uint finalSeedCopy = _finalSeed; uint index = 0; for (uint i = 0; i < assetIds.length; i++) { finalSeedCopy = uint(keccak256(abi.encodePacked(finalSeedCopy, assetIds[i]))); if (finalSeedCopy % 2 == 0) { pickedIds[index] = assetIds[i]; index++; } } finalPicked = new uint[](index); for (i = 0; i < index; i++) { finalPicked[i] = pickedIds[i]; } } /// @notice Function to pick random assets from potentialAssets array /// @param _finalSeed is final random seed /// @param _potentialAssets is bytes32[] array of potential assets /// @param _width of canvas /// @param _height of canvas /// @return arrays of randomly picked assets defining ids, coordinates, zoom, rotation and layers function getImage(uint _finalSeed, bytes32[] _potentialAssets, uint _width, uint _height) public pure returns(uint[] finalPicked, uint[] x, uint[] y, uint[] zoom, uint[] rotation, uint[] layers) { require(_finalSeed != 0); require(_potentialAssets.length > 0); uint[] memory assetIds = decodeAssets(_potentialAssets); uint[] memory pickedIds = new uint[](assetIds.length); x = new uint[](assetIds.length); y = new uint[](assetIds.length); zoom = new uint[](assetIds.length); rotation = new uint[](assetIds.length); layers = new uint[](assetIds.length); uint finalSeedCopy = _finalSeed; uint index = 0; for (uint i = 0; i < assetIds.length; i++) { finalSeedCopy = uint(keccak256(abi.encodePacked(finalSeedCopy, assetIds[i]))); if (finalSeedCopy % 2 == 0) { pickedIds[index] = assetIds[i]; (x[index], y[index], zoom[index], rotation[index], layers[index]) = pickRandomAssetPosition(finalSeedCopy, _width, _height); index++; } } finalPicked = new uint[](index); for (i = 0; i < index; i++) { finalPicked[i] = pickedIds[i]; } } /// @notice Function to pick random position for an asset /// @param _randomSeed is random seed for that image /// @param _width of canvas /// @param _height of canvas /// @return tuple of uints representing x,y,zoom,and rotation function pickRandomAssetPosition(uint _randomSeed, uint _width, uint _height) public pure returns (uint x, uint y, uint zoom, uint rotation, uint layer) { x = _randomSeed % _width; y = _randomSeed % _height; zoom = _randomSeed % 200 + 800; rotation = _randomSeed % 360; // using random number for now // if two layers are same, sort by (keccak256(layer, assetId)) layer = _randomSeed % 1234567; } /// @notice Function to calculate final random seed for user /// @param _randomSeed is initially given random seed /// @param _iterations is number of iterations /// @return final seed for user as uint function getFinalSeed(uint _randomSeed, uint _iterations) public pure returns (bytes32) { require(_randomSeed != 0); require(_iterations != 0); bytes32 finalSeed = bytes32(_randomSeed); finalSeed = keccak256(abi.encodePacked(_randomSeed, _iterations)); for (uint i = 0; i < _iterations; i++) { finalSeed = keccak256(abi.encodePacked(finalSeed, i)); } return finalSeed; } function toHex(uint _randomSeed) public pure returns (bytes32) { return bytes32(_randomSeed); } } contract UserManager { struct User { string username; bytes32 hashToProfilePicture; bool exists; } uint public numberOfUsers; mapping(string => bool) internal usernameExists; mapping(address => User) public addressToUser; mapping(bytes32 => bool) public profilePictureExists; mapping(string => address) internal usernameToAddress; event NewUser(address indexed user, string username, bytes32 profilePicture); function register(string _username, bytes32 _hashToProfilePicture) public { require(usernameExists[_username] == false || keccak256(abi.encodePacked(getUsername(msg.sender))) == keccak256(abi.encodePacked(_username)) ); if (usernameExists[getUsername(msg.sender)]) { // if he already had username, that username is free now usernameExists[getUsername(msg.sender)] = false; } else { numberOfUsers++; emit NewUser(msg.sender, _username, _hashToProfilePicture); } addressToUser[msg.sender] = User({ username: _username, hashToProfilePicture: _hashToProfilePicture, exists: true }); usernameExists[_username] = true; profilePictureExists[_hashToProfilePicture] = true; usernameToAddress[_username] = msg.sender; } function changeProfilePicture(bytes32 _hashToProfilePicture) public { require(addressToUser[msg.sender].exists, "User doesn't exists"); addressToUser[msg.sender].hashToProfilePicture = _hashToProfilePicture; } function getUserInfo(address _address) public view returns(string, bytes32) { User memory user = addressToUser[_address]; return (user.username, user.hashToProfilePicture); } function getUsername(address _address) public view returns(string) { return addressToUser[_address].username; } function getProfilePicture(address _address) public view returns(bytes32) { return addressToUser[_address].hashToProfilePicture; } function isUsernameExists(string _username) public view returns(bool) { return usernameExists[_username]; } } contract DigitalPrintImage is ERC721Token("DigitalPrintImage", "DPM"), UserManager, Ownable { struct ImageMetadata { uint finalSeed; bytes32[] potentialAssets; uint timestamp; address creator; string ipfsHash; string extraData; } mapping(uint => bool) public seedExists; mapping(uint => ImageMetadata) public imageMetadata; mapping(uint => string) public idToIpfsHash; address public marketplaceContract; IAssetManager public assetManager; Functions public functions; modifier onlyMarketplaceContract() { require(msg.sender == address(marketplaceContract)); _; } event ImageCreated(uint indexed imageId, address indexed owner); /// @dev only for testing purposes // function createImageTest() public { // _mint(msg.sender, totalSupply()); // } /// @notice Function will create new image /// @param _randomHashIds is array of random hashes from our array /// @param _timestamp is timestamp when image is created /// @param _iterations is number of how many times he generated random asset positions until he liked what he got /// @param _potentialAssets is set of all potential assets user selected for an image /// @param _author is nickname of image owner /// @param _ipfsHash is ipfsHash of the image .png /// @param _extraData string containing ipfsHash that contains (frame,width,height,title,description) /// @return returns id of created image function createImage( uint[] _randomHashIds, uint _timestamp, uint _iterations, bytes32[] _potentialAssets, string _author, string _ipfsHash, string _extraData) public payable { require(_potentialAssets.length <= 5); // if user exists send his username, if it doesn't check for some username that doesn't exists require(msg.sender == usernameToAddress[_author] || !usernameExists[_author]); // if user doesn't exists create that user with no profile picture if (!usernameExists[_author]) { register(_author, bytes32(0)); } uint[] memory pickedAssets; uint finalSeed; (pickedAssets, finalSeed) = getPickedAssetsAndFinalSeed(_potentialAssets, _randomHashIds, _timestamp, _iterations); uint[] memory pickedAssetPacks = assetManager.pickUniquePacks(pickedAssets); uint finalPrice = 0; for (uint i = 0; i < pickedAssetPacks.length; i++) { if (assetManager.checkHasPermissionForPack(msg.sender, pickedAssetPacks[i]) == false) { finalPrice += assetManager.getAssetPackPrice(pickedAssetPacks[i]); assetManager.buyAssetPack.value(assetManager.getAssetPackPrice(pickedAssetPacks[i]))(msg.sender, pickedAssetPacks[i]); } } require(msg.value >= finalPrice); uint id = totalSupply(); _mint(msg.sender, id); imageMetadata[id] = ImageMetadata({ finalSeed: finalSeed, potentialAssets: _potentialAssets, timestamp: _timestamp, creator: msg.sender, ipfsHash: _ipfsHash, extraData: _extraData }); idToIpfsHash[id] = _ipfsHash; seedExists[finalSeed] = true; emit ImageCreated(id, msg.sender); } /// @notice approving image to be taken from specific address /// @param _from address from which we transfer image /// @param _to address that we give permission to take image /// @param _imageId we are willing to give function transferFromMarketplace(address _from, address _to, uint256 _imageId) public onlyMarketplaceContract { require(isApprovedOrOwner(_from, _imageId)); clearApproval(_from, _imageId); removeTokenFrom(_from, _imageId); addTokenTo(_to, _imageId); emit Transfer(_from, _to, _imageId); } /// @notice adds marketplace address to contract only if it doesn't already exist /// @param _marketplaceContract address of marketplace contract function addMarketplaceContract(address _marketplaceContract) public onlyOwner { require(address(marketplaceContract) == 0x0); marketplaceContract = _marketplaceContract; } /// @notice Function to add assetManager /// @param _assetManager is address of assetManager contract function addAssetManager(address _assetManager) public onlyOwner { require(address(assetManager) == 0x0); assetManager = IAssetManager(_assetManager); } /// @notice Function to add functions contract /// @param _functions is address of functions contract function addFunctions(address _functions) public onlyOwner { require(address(functions) == 0x0); functions = Functions(_functions); } /// @notice Function to calculate final price for an image based on selected assets /// @param _pickedAssets is array of picked packs /// @param _owner is address of image owner /// @return finalPrice for the image function calculatePrice(uint[] _pickedAssets, address _owner) public view returns (uint) { if (_pickedAssets.length == 0) { return 0; } uint[] memory pickedAssetPacks = assetManager.pickUniquePacks(_pickedAssets); uint finalPrice = 0; for (uint i = 0; i < pickedAssetPacks.length; i++) { if (assetManager.checkHasPermissionForPack(_owner, pickedAssetPacks[i]) == false) { finalPrice += assetManager.getAssetPackPrice(pickedAssetPacks[i]); } } return finalPrice; } /// @notice Method returning informations needed for gallery page /// @param _imageId id of image function getGalleryData(uint _imageId) public view returns(address, address, string, bytes32, string, string) { require(_imageId < totalSupply()); return( imageMetadata[_imageId].creator, ownerOf(_imageId), addressToUser[ownerOf(_imageId)].username, addressToUser[ownerOf(_imageId)].hashToProfilePicture, imageMetadata[_imageId].ipfsHash, imageMetadata[_imageId].extraData ); } /// @notice returns metadata of image /// @dev not possible to use public mapping because of array of bytes32 /// @param _imageId id of image function getImageMetadata(uint _imageId) public view returns(address, string, uint, string, uint, bytes32[]) { ImageMetadata memory metadata = imageMetadata[_imageId]; return( metadata.creator, metadata.extraData, metadata.finalSeed, metadata.ipfsHash, metadata.timestamp, metadata.potentialAssets ); } /// @notice returns all images owned by _user /// @param _user address of user function getUserImages(address _user) public view returns(uint[]) { return ownedTokens[_user]; } /// @notice returns picked assets from potential assets and final seed /// @param _potentialAssets array of all potential assets encoded in bytes32 /// @param _randomHashIds selected random hash ids from our contract /// @param _timestamp timestamp of image creation /// @param _iterations number of iterations to get to final seed function getPickedAssetsAndFinalSeed(bytes32[] _potentialAssets, uint[] _randomHashIds, uint _timestamp, uint _iterations) internal view returns(uint[], uint) { uint finalSeed = uint(functions.getFinalSeed(functions.calculateSeed(_randomHashIds, _timestamp), _iterations)); require(!seedExists[finalSeed]); return (functions.pickRandomAssets(finalSeed, _potentialAssets), finalSeed); } }
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":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_imageId","type":"uint256"}],"name":"transferFromMarketplace","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_tokenId","type":"uint256"}],"name":"approve","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"bytes32"}],"name":"profilePictureExists","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","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":true,"inputs":[{"name":"_username","type":"string"}],"name":"isUsernameExists","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_marketplaceContract","type":"address"}],"name":"addMarketplaceContract","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_pickedAssets","type":"uint256[]"},{"name":"_owner","type":"address"}],"name":"calculatePrice","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":"transferFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_functions","type":"address"}],"name":"addFunctions","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":true,"inputs":[{"name":"_imageId","type":"uint256"}],"name":"getImageMetadata","outputs":[{"name":"","type":"address"},{"name":"","type":"string"},{"name":"","type":"uint256"},{"name":"","type":"string"},{"name":"","type":"uint256"},{"name":"","type":"bytes32[]"}],"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":"","type":"uint256"}],"name":"seedExists","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_hashToProfilePicture","type":"bytes32"}],"name":"changeProfilePicture","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_tokenId","type":"uint256"}],"name":"exists","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"imageMetadata","outputs":[{"name":"finalSeed","type":"uint256"},{"name":"timestamp","type":"uint256"},{"name":"creator","type":"address"},{"name":"ipfsHash","type":"string"},{"name":"extraData","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"functions","outputs":[{"name":"","type":"address"}],"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":true,"inputs":[{"name":"_address","type":"address"}],"name":"getUserInfo","outputs":[{"name":"","type":"string"},{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_randomHashIds","type":"uint256[]"},{"name":"_timestamp","type":"uint256"},{"name":"_iterations","type":"uint256"},{"name":"_potentialAssets","type":"bytes32[]"},{"name":"_author","type":"string"},{"name":"_ipfsHash","type":"string"},{"name":"_extraData","type":"string"}],"name":"createImage","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"_username","type":"string"},{"name":"_hashToProfilePicture","type":"bytes32"}],"name":"register","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_address","type":"address"}],"name":"getProfilePicture","outputs":[{"name":"","type":"bytes32"}],"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":"numberOfUsers","outputs":[{"name":"","type":"uint256"}],"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":"assetManager","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_assetManager","type":"address"}],"name":"addAssetManager","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":"_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":true,"inputs":[{"name":"","type":"uint256"}],"name":"idToIpfsHash","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_imageId","type":"uint256"}],"name":"getGalleryData","outputs":[{"name":"","type":"address"},{"name":"","type":"address"},{"name":"","type":"string"},{"name":"","type":"bytes32"},{"name":"","type":"string"},{"name":"","type":"string"}],"payable":false,"stateMutability":"view","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":"_address","type":"address"}],"name":"getUsername","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"marketplaceContract","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","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":"_user","type":"address"}],"name":"getUserImages","outputs":[{"name":"","type":"uint256[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"addressToUser","outputs":[{"name":"username","type":"string"},{"name":"hashToProfilePicture","type":"bytes32"},{"name":"exists","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"anonymous":false,"inputs":[{"indexed":true,"name":"imageId","type":"uint256"},{"indexed":true,"name":"owner","type":"address"}],"name":"ImageCreated","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":"user","type":"address"},{"indexed":false,"name":"username","type":"string"},{"indexed":false,"name":"profilePicture","type":"bytes32"}],"name":"NewUser","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
60806040526040805190810160405280601181526020017f4469676974616c5072696e74496d6167650000000000000000000000000000008152506040805190810160405280600381526020017f44504d0000000000000000000000000000000000000000000000000000000000815250620000ad6301ffc9a77c0100000000000000000000000000000000000000000000000000000000026200021c640100000000026401000000009004565b620000ea6380ac58cd7c0100000000000000000000000000000000000000000000000000000000026200021c640100000000026401000000009004565b62000127634f558e797c0100000000000000000000000000000000000000000000000000000000026200021c640100000000026401000000009004565b81600590805190602001906200013f929190620002da565b50806006908051906020019062000158929190620002da565b506200019663780e9d637c0100000000000000000000000000000000000000000000000000000000026200021c640100000000026401000000009004565b620001d3635b5e139f7c0100000000000000000000000000000000000000000000000000000000026200021c640100000000026401000000009004565b505033601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555062000389565b63ffffffff7c010000000000000000000000000000000000000000000000000000000002817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916141515156200026e57600080fd5b6001600080837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200031d57805160ff19168380011785556200034e565b828001600101855582156200034e579182015b828111156200034d57825182559160200191906001019062000330565b5b5090506200035d919062000361565b5090565b6200038691905b808211156200038257600081600090555060010162000368565b5090565b90565b615a4380620003996000396000f300608060405260043610610225576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806301ffc9a71461022a57806306fdde031461028e578063081812fc1461031e57806308adf7b11461038b578063095ea7b3146103f85780630dedb40e1461044557806318160ddd1461048e57806319fa8f50146104b95780631a314552146105225780631e14d823146105a35780632041518d146105e657806323b872dd1461068057806325e11811146106ed5780632f745c59146107305780633bbb11a11461079157806342842e0e1461092c578063428a0319146109995780634ea8b6d0146109de5780634f558e7914610a0f5780634f6ccce714610a5457806355d8d13514610a95578063569560e814610be85780636352211e14610c3f5780636386c1c714610cac57806364ca647814610d77578063656afdee14610ef95780636f51d8cf14610f7057806370a0823114610fcf578063715018a61461102657806375ce46a71461103d5780638da5cb5b1461106857806394217ad1146110bf57806395d89b4114611116578063987ea899146111a6578063a22cb465146111e9578063b88d4fde14611238578063bb2daa73146112eb578063bbc30ad814611391578063c87b56dd14611584578063ce43c0321461162a578063d1bb5cf1146116e6578063e985e9c51461173d578063eb6bbd78146117b8578063edf5388614611850578063f2fde38b14611926575b600080fd5b34801561023657600080fd5b5061027460048036038101908080357bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19169060200190929190505050611969565b604051808215151515815260200191505060405180910390f35b34801561029a57600080fd5b506102a36119d0565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156102e35780820151818401526020810190506102c8565b50505050905090810190601f1680156103105780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561032a57600080fd5b5061034960048036038101908080359060200190929190505050611a72565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561039757600080fd5b506103f6600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611aaf565b005b34801561040457600080fd5b50610443600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611b9e565b005b34801561045157600080fd5b506104746004803603810190808035600019169060200190929190505050611ce3565b604051808215151515815260200191505060405180910390f35b34801561049a57600080fd5b506104a3611d03565b6040518082815260200191505060405180910390f35b3480156104c557600080fd5b506104ce611d10565b60405180827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200191505060405180910390f35b34801561052e57600080fd5b50610589600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050611d37565b604051808215151515815260200191505060405180910390f35b3480156105af57600080fd5b506105e4600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611db9565b005b3480156105f257600080fd5b5061066a60048036038101908080359060200190820180359060200190808060200260200160405190810160405280939291908181526020018383602002808284378201915050505050509192919290803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611ea0565b6040518082815260200191505060405180910390f35b34801561068c57600080fd5b506106eb600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050612256565b005b3480156106f957600080fd5b5061072e600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612361565b005b34801561073c57600080fd5b5061077b600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050612448565b6040518082815260200191505060405180910390f35b34801561079d57600080fd5b506107bc600480360381019080803590602001909291905050506124bf565b604051808773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001806020018681526020018060200185815260200180602001848103845289818151815260200191508051906020019080838360005b83811015610842578082015181840152602081019050610827565b50505050905090810190601f16801561086f5780820380516001836020036101000a031916815260200191505b50848103835287818151815260200191508051906020019080838360005b838110156108a857808201518184015260208101905061088d565b50505050905090810190601f1680156108d55780820380516001836020036101000a031916815260200191505b50848103825285818151815260200191508051906020019060200280838360005b838110156109115780820151818401526020810190506108f6565b50505050905001995050505050505050505060405180910390f35b34801561093857600080fd5b50610997600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061273b565b005b3480156109a557600080fd5b506109c46004803603810190808035906020019092919050505061275c565b604051808215151515815260200191505060405180910390f35b3480156109ea57600080fd5b50610a0d600480360381019080803560001916906020019092919050505061277c565b005b348015610a1b57600080fd5b50610a3a6004803603810190808035906020019092919050505061288e565b604051808215151515815260200191505060405180910390f35b348015610a6057600080fd5b50610a7f60048036038101908080359060200190929190505050612900565b6040518082815260200191505060405180910390f35b348015610aa157600080fd5b50610ac060048036038101908080359060200190929190505050612938565b604051808681526020018581526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018060200180602001838103835285818151815260200191508051906020019080838360005b83811015610b42578082015181840152602081019050610b27565b50505050905090810190601f168015610b6f5780820380516001836020036101000a031916815260200191505b50838103825284818151815260200191508051906020019080838360005b83811015610ba8578082015181840152602081019050610b8d565b50505050905090810190601f168015610bd55780820380516001836020036101000a031916815260200191505b5097505050505050505060405180910390f35b348015610bf457600080fd5b50610bfd612abe565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b348015610c4b57600080fd5b50610c6a60048036038101908080359060200190929190505050612ae4565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b348015610cb857600080fd5b50610ced600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612b62565b60405180806020018360001916600019168152602001828103825284818151815260200191508051906020019080838360005b83811015610d3b578082015181840152602081019050610d20565b50505050905090810190601f168015610d685780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b610ef760048036038101908080359060200190820180359060200190808060200260200160405190810160405280939291908181526020018383602002808284378201915050505050509192919290803590602001909291908035906020019092919080359060200190820180359060200190808060200260200160405190810160405280939291908181526020018383602002808284378201915050505050509192919290803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050612ca1565b005b348015610f0557600080fd5b50610f6e600480360381019080803590602001908201803590602001908080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050919291929080356000191690602001909291905050506135e1565b005b348015610f7c57600080fd5b50610fb1600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050613c27565b60405180826000191660001916815260200191505060405180910390f35b348015610fdb57600080fd5b50611010600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050613c73565b6040518082815260200191505060405180910390f35b34801561103257600080fd5b5061103b613cf7565b005b34801561104957600080fd5b50611052613dfc565b6040518082815260200191505060405180910390f35b34801561107457600080fd5b5061107d613e02565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156110cb57600080fd5b506110d4613e28565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561112257600080fd5b5061112b613e4e565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561116b578082015181840152602081019050611150565b50505050905090810190601f1680156111985780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156111b257600080fd5b506111e7600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050613ef0565b005b3480156111f557600080fd5b50611236600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803515159060200190929190505050613fd7565b005b34801561124457600080fd5b506112e9600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050614113565b005b3480156112f757600080fd5b506113166004803603810190808035906020019092919050505061413b565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561135657808201518184015260208101905061133b565b50505050905090810190601f1680156113835780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561139d57600080fd5b506113bc600480360381019080803590602001909291905050506141eb565b604051808773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018060200185600019166000191681526020018060200180602001848103845288818151815260200191508051906020019080838360005b8381101561147657808201518184015260208101905061145b565b50505050905090810190601f1680156114a35780820380516001836020036101000a031916815260200191505b50848103835286818151815260200191508051906020019080838360005b838110156114dc5780820151818401526020810190506114c1565b50505050905090810190601f1680156115095780820380516001836020036101000a031916815260200191505b50848103825285818151815260200191508051906020019080838360005b83811015611542578082015181840152602081019050611527565b50505050905090810190601f16801561156f5780820380516001836020036101000a031916815260200191505b50995050505050505050505060405180910390f35b34801561159057600080fd5b506115af600480360381019080803590602001909291905050506144f4565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156115ef5780820151818401526020810190506115d4565b50505050905090810190601f16801561161c5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561163657600080fd5b5061166b600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506145bd565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156116ab578082015181840152602081019050611690565b50505050905090810190601f1680156116d85780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156116f257600080fd5b506116fb6146a1565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561174957600080fd5b5061179e600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506146c7565b604051808215151515815260200191505060405180910390f35b3480156117c457600080fd5b506117f9600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061475b565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b8381101561183c578082015181840152602081019050611821565b505050509050019250505060405180910390f35b34801561185c57600080fd5b50611891600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506147f2565b6040518080602001846000191660001916815260200183151515158152602001828103825285818151815260200191508051906020019080838360005b838110156118e95780820151818401526020810190506118ce565b50505050905090810190601f1680156119165780820380516001836020036101000a031916815260200191505b5094505050505060405180910390f35b34801561193257600080fd5b50611967600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506148c1565b005b6000806000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff169050919050565b606060058054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015611a685780601f10611a3d57610100808354040283529160200191611a68565b820191906000526020600020905b815481529060010190602001808311611a4b57829003601f168201915b5050505050905090565b60006002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b601560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515611b0b57600080fd5b611b158382614929565b1515611b2057600080fd5b611b2a83826149be565b611b348382614ac1565b611b3e8282614c7d565b808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000611ba982612ae4565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614151515611be657600080fd5b8073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480611c265750611c2581336146c7565b5b1515611c3157600080fd5b826002600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600f6020528060005260406000206000915054906101000a900460ff1681565b6000600980549050905090565b6301ffc9a77c01000000000000000000000000000000000000000000000000000000000281565b6000600d826040518082805190602001908083835b602083101515611d715780518252602082019150602081019050602083039250611d4c565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900460ff169050919050565b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515611e1557600080fd5b6000601560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141515611e5c57600080fd5b80601560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60006060600080600086511415611eba576000935061224d565b601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638f3bed06876040518263ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001828103825283818151815260200191508051906020019060200280838360005b83811015611f67578082015181840152602081019050611f4c565b5050505090500192505050600060405180830381600087803b158015611f8c57600080fd5b505af1158015611fa0573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052506020811015611fca57600080fd5b810190808051640100000000811115611fe257600080fd5b82810190506020810184811115611ff857600080fd5b815185602082028301116401000000008211171561201557600080fd5b5050929190505050925060009150600090505b82518110156122495760001515601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ca774c8887868581518110151561208257fe5b906020019060200201516040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561211157600080fd5b505af1158015612125573d6000803e3d6000fd5b505050506040513d602081101561213b57600080fd5b81019080805190602001909291905050501515141561223c57601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638c96a2c984838151811015156121a057fe5b906020019060200201516040518263ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180828152602001915050602060405180830381600087803b1580156121fc57600080fd5b505af1158015612210573d6000803e3d6000fd5b505050506040513d602081101561222657600080fd5b8101908080519060200190929190505050820191505b8080600101915050612028565b8193505b50505092915050565b6122603382614929565b151561226b57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141515156122a757600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141515156122e357600080fd5b6122ed83826149be565b6122f78382614ac1565b6123018282614c7d565b808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156123bd57600080fd5b6000601760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614151561240457600080fd5b80601760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600061245383613c73565b8210151561246057600080fd5b600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020828154811015156124ac57fe5b9060005260206000200154905092915050565b6000606060006060600060606124d36157da565b6013600089815260200190815260200160002060c06040519081016040529081600082015481526020016001820180548060200260200160405190810160405280929190818152602001828054801561254f57602002820191906000526020600020905b81546000191681526020019060010190808311612537575b50505050508152602001600282015481526020016003820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600482018054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156126515780601f1061262657610100808354040283529160200191612651565b820191906000526020600020905b81548152906001019060200180831161263457829003601f168201915b50505050508152602001600582018054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156126f35780601f106126c8576101008083540402835291602001916126f3565b820191906000526020600020905b8154815290600101906020018083116126d657829003601f168201915b505050505081525050905080606001518160a0015182600001518360800151846040015185602001518494508292508090509650965096509650965096505091939550919395565b6127578383836020604051908101604052806000815250614113565b505050565b60126020528060005260406000206000915054906101000a900460ff1681565b600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020160009054906101000a900460ff161515612840576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f5573657220646f65736e2774206578697374730000000000000000000000000081525060200191505060405180910390fd5b80600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101816000191690555050565b6000806001600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415915050919050565b600061290a611d03565b8210151561291757600080fd5b60098281548110151561292657fe5b90600052602060002001549050919050565b60136020528060005260406000206000915090508060000154908060020154908060030160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690806004018054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015612a165780601f106129eb57610100808354040283529160200191612a16565b820191906000526020600020905b8154815290600101906020018083116129f957829003601f168201915b505050505090806005018054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015612ab45780601f10612a8957610100808354040283529160200191612ab4565b820191906000526020600020905b815481529060010190602001808311612a9757829003601f168201915b5050505050905085565b601760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000806001600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515612b5957600080fd5b80915050919050565b60606000612b6e615827565b600e60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060606040519081016040529081600082018054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015612c525780601f10612c2757610100808354040283529160200191612c52565b820191906000526020600020905b815481529060010190602001808311612c3557829003601f168201915b505050505081526020016001820154600019166000191681526020016002820160009054906101000a900460ff1615151515815250509050806000015181602001518191509250925050915091565b606060006060600080600060058a5111151515612cbd57600080fd5b6010896040518082805190602001908083835b602083101515612cf55780518252602082019150602081019050602083039250612cd0565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480612df85750600d896040518082805190602001908083835b602083101515612db55780518252602082019150602081019050602083039250612d90565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900460ff16155b1515612e0357600080fd5b600d896040518082805190602001908083835b602083101515612e3b5780518252602082019150602081019050602083039250612e16565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900460ff161515612e9157612e908960006001026135e1565b5b612e9d8a8e8e8e614d54565b8096508197505050601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638f3bed06876040518263ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001828103825283818151815260200191508051906020019060200280838360005b83811015612f52578082015181840152602081019050612f37565b5050505090500192505050600060405180830381600087803b158015612f7757600080fd5b505af1158015612f8b573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052506020811015612fb557600080fd5b810190808051640100000000811115612fcd57600080fd5b82810190506020810184811115612fe357600080fd5b815185602082028301116401000000008211171561300057600080fd5b5050929190505050935060009250600091505b835182101561340b5760001515601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ca774c8833878681518110151561306d57fe5b906020019060200201516040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156130fc57600080fd5b505af1158015613110573d6000803e3d6000fd5b505050506040513d602081101561312657600080fd5b8101908080519060200190929190505050151514156133fe57601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638c96a2c9858481518110151561318b57fe5b906020019060200201516040518263ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180828152602001915050602060405180830381600087803b1580156131e757600080fd5b505af11580156131fb573d6000803e3d6000fd5b505050506040513d602081101561321157600080fd5b810190808051906020019092919050505083019250601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663757a61b9601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638c96a2c987868151811015156132b057fe5b906020019060200201516040518263ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180828152602001915050602060405180830381600087803b15801561330c57600080fd5b505af1158015613320573d6000803e3d6000fd5b505050506040513d602081101561333657600080fd5b810190808051906020019092919050505033878681518110151561335657fe5b906020019060200201516040518463ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001828152602001925050506000604051808303818588803b1580156133e457600080fd5b505af11580156133f8573d6000803e3d6000fd5b50505050505b8180600101925050613013565b82341015151561341a57600080fd5b613422611d03565b905061342e33826150ee565b60c0604051908101604052808681526020018b81526020018d81526020013373ffffffffffffffffffffffffffffffffffffffff16815260200189815260200188815250601360008381526020019081526020016000206000820151816000015560208201518160010190805190602001906134ab92919061584e565b506040820151816002015560608201518160030160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060808201518160040190805190602001906135199291906158a1565b5060a08201518160050190805190602001906135369291906158a1565b5090505087601460008381526020019081526020016000209080519060200190613561929190615921565b5060016012600087815260200190815260200160002060006101000a81548160ff0219169083151502179055503373ffffffffffffffffffffffffffffffffffffffff16817f275ec6f2d4b880039f10616695f9404ac7c91e24c62a4d0fe905e86fa40c1bab60405160405180910390a350505050505050505050505050565b60001515600d836040518082805190602001908083835b60208310151561361d57805182526020820191506020810190506020830392506135f8565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900460ff16151514806138175750816040516020018082805190602001908083835b6020831015156136a0578051825260208201915060208101905060208303925061367b565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040516020818303038152906040526040518082805190602001908083835b60208310151561370957805182526020820191506020810190506020830392506136e4565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902060001916613743336145bd565b6040516020018082805190602001908083835b60208310151561377b5780518252602082019150602081019050602083039250613756565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040516020818303038152906040526040518082805190602001908083835b6020831015156137e457805182526020820191506020810190506020830392506137bf565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902060001916145b151561382257600080fd5b600d61382d336145bd565b6040518082805190602001908083835b602083101515613862578051825260208201915060208101905060208303925061383d565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900460ff1615613939576000600d6138b5336145bd565b6040518082805190602001908083835b6020831015156138ea57805182526020820191506020810190506020830392506138c5565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060006101000a81548160ff021916908315150217905550613a0f565b600c600081548092919060010191905055503373ffffffffffffffffffffffffffffffffffffffff167f626930abd0c201a1484c778073297fa573e65896e7ab0a87e957c21e6c6b5c70838360405180806020018360001916600019168152602001828103825284818151815260200191508051906020019080838360005b838110156139d35780820151818401526020810190506139b8565b50505050905090810190601f168015613a005780820380516001836020036101000a031916815260200191505b50935050505060405180910390a25b6060604051908101604052808381526020018260001916815260200160011515815250600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000820151816000019080519060200190613a8d9291906158a1565b506020820151816001019060001916905560408201518160020160006101000a81548160ff0219169083151502179055509050506001600d836040518082805190602001908083835b602083101515613afb5780518252602082019150602081019050602083039250613ad6565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060006101000a81548160ff0219169083151502179055506001600f6000836000191660001916815260200190815260200160002060006101000a81548160ff021916908315150217905550336010836040518082805190602001908083835b602083101515613bb25780518252602082019150602081019050602083039250613b8d565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b6000600e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101549050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614151515613cb057600080fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515613d5357600080fd5b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482060405160405180910390a26000601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b600c5481565b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b606060068054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015613ee65780601f10613ebb57610100808354040283529160200191613ee6565b820191906000526020600020905b815481529060010190602001808311613ec957829003601f168201915b5050505050905090565b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515613f4c57600080fd5b6000601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141515613f9357600080fd5b80601660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b3373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415151561401257600080fd5b80600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051808215151515815260200191505060405180910390a35050565b61411e848484612256565b61412a84848484615145565b151561413557600080fd5b50505050565b60146020528060005260406000206000915090508054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156141e35780601f106141b8576101008083540402835291602001916141e3565b820191906000526020600020905b8154815290600101906020018083116141c657829003601f168201915b505050505081565b600080606060006060806141fd611d03565b8710151561420a57600080fd5b6013600088815260200190815260200160002060030160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1661424a88612ae4565b600e60006142578b612ae4565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001600e60006142a18c612ae4565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060010154601360008c8152602001908152602001600020600401601360008d8152602001908152602001600020600501838054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156143a05780601f10614375576101008083540402835291602001916143a0565b820191906000526020600020905b81548152906001019060200180831161438357829003601f168201915b50505050509350818054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561443c5780601f106144115761010080835404028352916020019161443c565b820191906000526020600020905b81548152906001019060200180831161441f57829003601f168201915b50505050509150808054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156144d85780601f106144ad576101008083540402835291602001916144d8565b820191906000526020600020905b8154815290600101906020018083116144bb57829003601f168201915b5050505050905095509550955095509550955091939550919395565b60606144ff8261288e565b151561450a57600080fd5b600b60008381526020019081526020016000208054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156145b15780601f10614586576101008083540402835291602001916145b1565b820191906000526020600020905b81548152906001019060200180831161459457829003601f168201915b50505050509050919050565b6060600e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000018054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156146955780601f1061466a57610100808354040283529160200191614695565b820191906000526020600020905b81548152906001019060200180831161467857829003601f168201915b50505050509050919050565b601560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6060600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054806020026020016040519081016040528092919081815260200182805480156147e657602002820191906000526020600020905b8154815260200190600101908083116147d2575b50505050509050919050565b600e602052806000526040600020600091509050806000018054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561489e5780601f106148735761010080835404028352916020019161489e565b820191906000526020600020905b81548152906001019060200180831161488157829003601f168201915b5050505050908060010154908060020160009054906101000a900460ff16905083565b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561491d57600080fd5b61492681615367565b50565b60008061493583612ae4565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806149a457508373ffffffffffffffffffffffffffffffffffffffff1661498c84611a72565b73ffffffffffffffffffffffffffffffffffffffff16145b806149b557506149b481856146c7565b5b91505092915050565b8173ffffffffffffffffffffffffffffffffffffffff166149de82612ae4565b73ffffffffffffffffffffffffffffffffffffffff16141515614a0057600080fd5b600073ffffffffffffffffffffffffffffffffffffffff166002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141515614abd5760006002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b5050565b6000806000614ad08585615463565b60086000858152602001908152602001600020549250614b3c6001600760008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054905061559290919063ffffffff16565b9150600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002082815481101515614b8a57fe5b9060005260206000200154905080600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002084815481101515614be457fe5b9060005260206000200181905550600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805480919060019003614c4491906159a1565b50600060086000868152602001908152602001600020819055508260086000838152602001908152602001600020819055505050505050565b6000614c8983836155ab565b600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805490509050600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020829080600181540180825580915050906001820390600052602060002001600090919290919091505550806008600084815260200190815260200160002081905550505050565b6060600080601760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663469506bf601760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b52c1d5b89896040518363ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001838152602001828103825284818151815260200191508051906020019060200280838360005b83811015614e4b578082015181840152602081019050614e30565b505050509050019350505050602060405180830381600087803b158015614e7157600080fd5b505af1158015614e85573d6000803e3d6000fd5b505050506040513d6020811015614e9b57600080fd5b8101908080519060200190929190505050866040518363ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018083815260200182815260200192505050602060405180830381600087803b158015614f0657600080fd5b505af1158015614f1a573d6000803e3d6000fd5b505050506040513d6020811015614f3057600080fd5b81019080805190602001909291905050506001900490506012600082815260200190815260200160002060009054906101000a900460ff16151515614f7457600080fd5b601760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ee007a5482896040518363ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018083815260200180602001828103825283818151815260200191508051906020019060200280838360005b8381101561502857808201518184015260208101905061500d565b505050509050019350505050600060405180830381600087803b15801561504e57600080fd5b505af1158015615062573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250602081101561508c57600080fd5b8101908080516401000000008111156150a457600080fd5b828101905060208101848111156150ba57600080fd5b81518560208202830111640100000000821117156150d757600080fd5b505092919050505081925092505094509492505050565b6150f88282615705565b600980549050600a60008381526020019081526020016000208190555060098190806001815401808255809150509060018203906000526020600020016000909192909190915055505050565b6000806151678573ffffffffffffffffffffffffffffffffffffffff166157ab565b1515615176576001915061535e565b8473ffffffffffffffffffffffffffffffffffffffff1663150b7a02338887876040518563ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561526b578082015181840152602081019050615250565b50505050905090810190601f1680156152985780820380516001836020036101000a031916815260200191505b5095505050505050602060405180830381600087803b1580156152ba57600080fd5b505af11580156152ce573d6000803e3d6000fd5b505050506040513d60208110156152e457600080fd5b8101908080519060200190929190505050905063150b7a027c0100000000000000000000000000000000000000000000000000000000027bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505b50949350505050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141515156153a357600080fd5b8073ffffffffffffffffffffffffffffffffffffffff16601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b8173ffffffffffffffffffffffffffffffffffffffff1661548382612ae4565b73ffffffffffffffffffffffffffffffffffffffff161415156154a557600080fd5b6154f86001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461559290919063ffffffff16565b600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555060006001600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b60008282111515156155a057fe5b818303905092915050565b600073ffffffffffffffffffffffffffffffffffffffff166001600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614151561561957600080fd5b816001600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506156be6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546157be90919063ffffffff16565b600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415151561574157600080fd5b61574b8282614c7d565b808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600080823b905060008111915050919050565b600081830190508281101515156157d157fe5b80905092915050565b60c060405190810160405280600081526020016060815260200160008152602001600073ffffffffffffffffffffffffffffffffffffffff16815260200160608152602001606081525090565b60606040519081016040528060608152602001600080191681526020016000151581525090565b828054828255906000526020600020908101928215615890579160200282015b8281111561588f57825182906000191690559160200191906001019061586e565b5b50905061589d91906159cd565b5090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106158e257805160ff1916838001178555615910565b82800160010185558215615910579182015b8281111561590f5782518255916020019190600101906158f4565b5b50905061591d91906159f2565b5090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061596257805160ff1916838001178555615990565b82800160010185558215615990579182015b8281111561598f578251825591602001919060010190615974565b5b50905061599d91906159f2565b5090565b8154818355818111156159c8578183600052602060002091820191016159c791906159f2565b5b505050565b6159ef91905b808211156159eb5760008160009055506001016159d3565b5090565b90565b615a1491905b80821115615a105760008160009055506001016159f8565b5090565b905600a165627a7a723058201f30051fd00f416e04d4c02e4951d7d1010134492d1c9b4461551f8d7a2427490029
Deployed Bytecode
0x608060405260043610610225576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806301ffc9a71461022a57806306fdde031461028e578063081812fc1461031e57806308adf7b11461038b578063095ea7b3146103f85780630dedb40e1461044557806318160ddd1461048e57806319fa8f50146104b95780631a314552146105225780631e14d823146105a35780632041518d146105e657806323b872dd1461068057806325e11811146106ed5780632f745c59146107305780633bbb11a11461079157806342842e0e1461092c578063428a0319146109995780634ea8b6d0146109de5780634f558e7914610a0f5780634f6ccce714610a5457806355d8d13514610a95578063569560e814610be85780636352211e14610c3f5780636386c1c714610cac57806364ca647814610d77578063656afdee14610ef95780636f51d8cf14610f7057806370a0823114610fcf578063715018a61461102657806375ce46a71461103d5780638da5cb5b1461106857806394217ad1146110bf57806395d89b4114611116578063987ea899146111a6578063a22cb465146111e9578063b88d4fde14611238578063bb2daa73146112eb578063bbc30ad814611391578063c87b56dd14611584578063ce43c0321461162a578063d1bb5cf1146116e6578063e985e9c51461173d578063eb6bbd78146117b8578063edf5388614611850578063f2fde38b14611926575b600080fd5b34801561023657600080fd5b5061027460048036038101908080357bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19169060200190929190505050611969565b604051808215151515815260200191505060405180910390f35b34801561029a57600080fd5b506102a36119d0565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156102e35780820151818401526020810190506102c8565b50505050905090810190601f1680156103105780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561032a57600080fd5b5061034960048036038101908080359060200190929190505050611a72565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561039757600080fd5b506103f6600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611aaf565b005b34801561040457600080fd5b50610443600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611b9e565b005b34801561045157600080fd5b506104746004803603810190808035600019169060200190929190505050611ce3565b604051808215151515815260200191505060405180910390f35b34801561049a57600080fd5b506104a3611d03565b6040518082815260200191505060405180910390f35b3480156104c557600080fd5b506104ce611d10565b60405180827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200191505060405180910390f35b34801561052e57600080fd5b50610589600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050611d37565b604051808215151515815260200191505060405180910390f35b3480156105af57600080fd5b506105e4600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611db9565b005b3480156105f257600080fd5b5061066a60048036038101908080359060200190820180359060200190808060200260200160405190810160405280939291908181526020018383602002808284378201915050505050509192919290803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611ea0565b6040518082815260200191505060405180910390f35b34801561068c57600080fd5b506106eb600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050612256565b005b3480156106f957600080fd5b5061072e600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612361565b005b34801561073c57600080fd5b5061077b600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050612448565b6040518082815260200191505060405180910390f35b34801561079d57600080fd5b506107bc600480360381019080803590602001909291905050506124bf565b604051808773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001806020018681526020018060200185815260200180602001848103845289818151815260200191508051906020019080838360005b83811015610842578082015181840152602081019050610827565b50505050905090810190601f16801561086f5780820380516001836020036101000a031916815260200191505b50848103835287818151815260200191508051906020019080838360005b838110156108a857808201518184015260208101905061088d565b50505050905090810190601f1680156108d55780820380516001836020036101000a031916815260200191505b50848103825285818151815260200191508051906020019060200280838360005b838110156109115780820151818401526020810190506108f6565b50505050905001995050505050505050505060405180910390f35b34801561093857600080fd5b50610997600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061273b565b005b3480156109a557600080fd5b506109c46004803603810190808035906020019092919050505061275c565b604051808215151515815260200191505060405180910390f35b3480156109ea57600080fd5b50610a0d600480360381019080803560001916906020019092919050505061277c565b005b348015610a1b57600080fd5b50610a3a6004803603810190808035906020019092919050505061288e565b604051808215151515815260200191505060405180910390f35b348015610a6057600080fd5b50610a7f60048036038101908080359060200190929190505050612900565b6040518082815260200191505060405180910390f35b348015610aa157600080fd5b50610ac060048036038101908080359060200190929190505050612938565b604051808681526020018581526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018060200180602001838103835285818151815260200191508051906020019080838360005b83811015610b42578082015181840152602081019050610b27565b50505050905090810190601f168015610b6f5780820380516001836020036101000a031916815260200191505b50838103825284818151815260200191508051906020019080838360005b83811015610ba8578082015181840152602081019050610b8d565b50505050905090810190601f168015610bd55780820380516001836020036101000a031916815260200191505b5097505050505050505060405180910390f35b348015610bf457600080fd5b50610bfd612abe565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b348015610c4b57600080fd5b50610c6a60048036038101908080359060200190929190505050612ae4565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b348015610cb857600080fd5b50610ced600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612b62565b60405180806020018360001916600019168152602001828103825284818151815260200191508051906020019080838360005b83811015610d3b578082015181840152602081019050610d20565b50505050905090810190601f168015610d685780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b610ef760048036038101908080359060200190820180359060200190808060200260200160405190810160405280939291908181526020018383602002808284378201915050505050509192919290803590602001909291908035906020019092919080359060200190820180359060200190808060200260200160405190810160405280939291908181526020018383602002808284378201915050505050509192919290803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050612ca1565b005b348015610f0557600080fd5b50610f6e600480360381019080803590602001908201803590602001908080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050919291929080356000191690602001909291905050506135e1565b005b348015610f7c57600080fd5b50610fb1600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050613c27565b60405180826000191660001916815260200191505060405180910390f35b348015610fdb57600080fd5b50611010600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050613c73565b6040518082815260200191505060405180910390f35b34801561103257600080fd5b5061103b613cf7565b005b34801561104957600080fd5b50611052613dfc565b6040518082815260200191505060405180910390f35b34801561107457600080fd5b5061107d613e02565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156110cb57600080fd5b506110d4613e28565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561112257600080fd5b5061112b613e4e565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561116b578082015181840152602081019050611150565b50505050905090810190601f1680156111985780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156111b257600080fd5b506111e7600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050613ef0565b005b3480156111f557600080fd5b50611236600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803515159060200190929190505050613fd7565b005b34801561124457600080fd5b506112e9600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050614113565b005b3480156112f757600080fd5b506113166004803603810190808035906020019092919050505061413b565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561135657808201518184015260208101905061133b565b50505050905090810190601f1680156113835780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561139d57600080fd5b506113bc600480360381019080803590602001909291905050506141eb565b604051808773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018060200185600019166000191681526020018060200180602001848103845288818151815260200191508051906020019080838360005b8381101561147657808201518184015260208101905061145b565b50505050905090810190601f1680156114a35780820380516001836020036101000a031916815260200191505b50848103835286818151815260200191508051906020019080838360005b838110156114dc5780820151818401526020810190506114c1565b50505050905090810190601f1680156115095780820380516001836020036101000a031916815260200191505b50848103825285818151815260200191508051906020019080838360005b83811015611542578082015181840152602081019050611527565b50505050905090810190601f16801561156f5780820380516001836020036101000a031916815260200191505b50995050505050505050505060405180910390f35b34801561159057600080fd5b506115af600480360381019080803590602001909291905050506144f4565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156115ef5780820151818401526020810190506115d4565b50505050905090810190601f16801561161c5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561163657600080fd5b5061166b600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506145bd565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156116ab578082015181840152602081019050611690565b50505050905090810190601f1680156116d85780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156116f257600080fd5b506116fb6146a1565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561174957600080fd5b5061179e600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506146c7565b604051808215151515815260200191505060405180910390f35b3480156117c457600080fd5b506117f9600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061475b565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b8381101561183c578082015181840152602081019050611821565b505050509050019250505060405180910390f35b34801561185c57600080fd5b50611891600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506147f2565b6040518080602001846000191660001916815260200183151515158152602001828103825285818151815260200191508051906020019080838360005b838110156118e95780820151818401526020810190506118ce565b50505050905090810190601f1680156119165780820380516001836020036101000a031916815260200191505b5094505050505060405180910390f35b34801561193257600080fd5b50611967600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506148c1565b005b6000806000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff169050919050565b606060058054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015611a685780601f10611a3d57610100808354040283529160200191611a68565b820191906000526020600020905b815481529060010190602001808311611a4b57829003601f168201915b5050505050905090565b60006002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b601560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515611b0b57600080fd5b611b158382614929565b1515611b2057600080fd5b611b2a83826149be565b611b348382614ac1565b611b3e8282614c7d565b808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000611ba982612ae4565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614151515611be657600080fd5b8073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480611c265750611c2581336146c7565b5b1515611c3157600080fd5b826002600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600f6020528060005260406000206000915054906101000a900460ff1681565b6000600980549050905090565b6301ffc9a77c01000000000000000000000000000000000000000000000000000000000281565b6000600d826040518082805190602001908083835b602083101515611d715780518252602082019150602081019050602083039250611d4c565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900460ff169050919050565b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515611e1557600080fd5b6000601560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141515611e5c57600080fd5b80601560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60006060600080600086511415611eba576000935061224d565b601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638f3bed06876040518263ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001828103825283818151815260200191508051906020019060200280838360005b83811015611f67578082015181840152602081019050611f4c565b5050505090500192505050600060405180830381600087803b158015611f8c57600080fd5b505af1158015611fa0573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052506020811015611fca57600080fd5b810190808051640100000000811115611fe257600080fd5b82810190506020810184811115611ff857600080fd5b815185602082028301116401000000008211171561201557600080fd5b5050929190505050925060009150600090505b82518110156122495760001515601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ca774c8887868581518110151561208257fe5b906020019060200201516040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561211157600080fd5b505af1158015612125573d6000803e3d6000fd5b505050506040513d602081101561213b57600080fd5b81019080805190602001909291905050501515141561223c57601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638c96a2c984838151811015156121a057fe5b906020019060200201516040518263ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180828152602001915050602060405180830381600087803b1580156121fc57600080fd5b505af1158015612210573d6000803e3d6000fd5b505050506040513d602081101561222657600080fd5b8101908080519060200190929190505050820191505b8080600101915050612028565b8193505b50505092915050565b6122603382614929565b151561226b57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141515156122a757600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141515156122e357600080fd5b6122ed83826149be565b6122f78382614ac1565b6123018282614c7d565b808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156123bd57600080fd5b6000601760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614151561240457600080fd5b80601760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600061245383613c73565b8210151561246057600080fd5b600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020828154811015156124ac57fe5b9060005260206000200154905092915050565b6000606060006060600060606124d36157da565b6013600089815260200190815260200160002060c06040519081016040529081600082015481526020016001820180548060200260200160405190810160405280929190818152602001828054801561254f57602002820191906000526020600020905b81546000191681526020019060010190808311612537575b50505050508152602001600282015481526020016003820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600482018054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156126515780601f1061262657610100808354040283529160200191612651565b820191906000526020600020905b81548152906001019060200180831161263457829003601f168201915b50505050508152602001600582018054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156126f35780601f106126c8576101008083540402835291602001916126f3565b820191906000526020600020905b8154815290600101906020018083116126d657829003601f168201915b505050505081525050905080606001518160a0015182600001518360800151846040015185602001518494508292508090509650965096509650965096505091939550919395565b6127578383836020604051908101604052806000815250614113565b505050565b60126020528060005260406000206000915054906101000a900460ff1681565b600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020160009054906101000a900460ff161515612840576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f5573657220646f65736e2774206578697374730000000000000000000000000081525060200191505060405180910390fd5b80600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101816000191690555050565b6000806001600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415915050919050565b600061290a611d03565b8210151561291757600080fd5b60098281548110151561292657fe5b90600052602060002001549050919050565b60136020528060005260406000206000915090508060000154908060020154908060030160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690806004018054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015612a165780601f106129eb57610100808354040283529160200191612a16565b820191906000526020600020905b8154815290600101906020018083116129f957829003601f168201915b505050505090806005018054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015612ab45780601f10612a8957610100808354040283529160200191612ab4565b820191906000526020600020905b815481529060010190602001808311612a9757829003601f168201915b5050505050905085565b601760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000806001600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515612b5957600080fd5b80915050919050565b60606000612b6e615827565b600e60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060606040519081016040529081600082018054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015612c525780601f10612c2757610100808354040283529160200191612c52565b820191906000526020600020905b815481529060010190602001808311612c3557829003601f168201915b505050505081526020016001820154600019166000191681526020016002820160009054906101000a900460ff1615151515815250509050806000015181602001518191509250925050915091565b606060006060600080600060058a5111151515612cbd57600080fd5b6010896040518082805190602001908083835b602083101515612cf55780518252602082019150602081019050602083039250612cd0565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480612df85750600d896040518082805190602001908083835b602083101515612db55780518252602082019150602081019050602083039250612d90565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900460ff16155b1515612e0357600080fd5b600d896040518082805190602001908083835b602083101515612e3b5780518252602082019150602081019050602083039250612e16565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900460ff161515612e9157612e908960006001026135e1565b5b612e9d8a8e8e8e614d54565b8096508197505050601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638f3bed06876040518263ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001828103825283818151815260200191508051906020019060200280838360005b83811015612f52578082015181840152602081019050612f37565b5050505090500192505050600060405180830381600087803b158015612f7757600080fd5b505af1158015612f8b573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052506020811015612fb557600080fd5b810190808051640100000000811115612fcd57600080fd5b82810190506020810184811115612fe357600080fd5b815185602082028301116401000000008211171561300057600080fd5b5050929190505050935060009250600091505b835182101561340b5760001515601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ca774c8833878681518110151561306d57fe5b906020019060200201516040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156130fc57600080fd5b505af1158015613110573d6000803e3d6000fd5b505050506040513d602081101561312657600080fd5b8101908080519060200190929190505050151514156133fe57601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638c96a2c9858481518110151561318b57fe5b906020019060200201516040518263ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180828152602001915050602060405180830381600087803b1580156131e757600080fd5b505af11580156131fb573d6000803e3d6000fd5b505050506040513d602081101561321157600080fd5b810190808051906020019092919050505083019250601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663757a61b9601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638c96a2c987868151811015156132b057fe5b906020019060200201516040518263ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180828152602001915050602060405180830381600087803b15801561330c57600080fd5b505af1158015613320573d6000803e3d6000fd5b505050506040513d602081101561333657600080fd5b810190808051906020019092919050505033878681518110151561335657fe5b906020019060200201516040518463ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001828152602001925050506000604051808303818588803b1580156133e457600080fd5b505af11580156133f8573d6000803e3d6000fd5b50505050505b8180600101925050613013565b82341015151561341a57600080fd5b613422611d03565b905061342e33826150ee565b60c0604051908101604052808681526020018b81526020018d81526020013373ffffffffffffffffffffffffffffffffffffffff16815260200189815260200188815250601360008381526020019081526020016000206000820151816000015560208201518160010190805190602001906134ab92919061584e565b506040820151816002015560608201518160030160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060808201518160040190805190602001906135199291906158a1565b5060a08201518160050190805190602001906135369291906158a1565b5090505087601460008381526020019081526020016000209080519060200190613561929190615921565b5060016012600087815260200190815260200160002060006101000a81548160ff0219169083151502179055503373ffffffffffffffffffffffffffffffffffffffff16817f275ec6f2d4b880039f10616695f9404ac7c91e24c62a4d0fe905e86fa40c1bab60405160405180910390a350505050505050505050505050565b60001515600d836040518082805190602001908083835b60208310151561361d57805182526020820191506020810190506020830392506135f8565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900460ff16151514806138175750816040516020018082805190602001908083835b6020831015156136a0578051825260208201915060208101905060208303925061367b565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040516020818303038152906040526040518082805190602001908083835b60208310151561370957805182526020820191506020810190506020830392506136e4565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902060001916613743336145bd565b6040516020018082805190602001908083835b60208310151561377b5780518252602082019150602081019050602083039250613756565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040516020818303038152906040526040518082805190602001908083835b6020831015156137e457805182526020820191506020810190506020830392506137bf565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902060001916145b151561382257600080fd5b600d61382d336145bd565b6040518082805190602001908083835b602083101515613862578051825260208201915060208101905060208303925061383d565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900460ff1615613939576000600d6138b5336145bd565b6040518082805190602001908083835b6020831015156138ea57805182526020820191506020810190506020830392506138c5565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060006101000a81548160ff021916908315150217905550613a0f565b600c600081548092919060010191905055503373ffffffffffffffffffffffffffffffffffffffff167f626930abd0c201a1484c778073297fa573e65896e7ab0a87e957c21e6c6b5c70838360405180806020018360001916600019168152602001828103825284818151815260200191508051906020019080838360005b838110156139d35780820151818401526020810190506139b8565b50505050905090810190601f168015613a005780820380516001836020036101000a031916815260200191505b50935050505060405180910390a25b6060604051908101604052808381526020018260001916815260200160011515815250600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000820151816000019080519060200190613a8d9291906158a1565b506020820151816001019060001916905560408201518160020160006101000a81548160ff0219169083151502179055509050506001600d836040518082805190602001908083835b602083101515613afb5780518252602082019150602081019050602083039250613ad6565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060006101000a81548160ff0219169083151502179055506001600f6000836000191660001916815260200190815260200160002060006101000a81548160ff021916908315150217905550336010836040518082805190602001908083835b602083101515613bb25780518252602082019150602081019050602083039250613b8d565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b6000600e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101549050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614151515613cb057600080fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515613d5357600080fd5b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482060405160405180910390a26000601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b600c5481565b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b606060068054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015613ee65780601f10613ebb57610100808354040283529160200191613ee6565b820191906000526020600020905b815481529060010190602001808311613ec957829003601f168201915b5050505050905090565b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515613f4c57600080fd5b6000601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141515613f9357600080fd5b80601660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b3373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415151561401257600080fd5b80600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051808215151515815260200191505060405180910390a35050565b61411e848484612256565b61412a84848484615145565b151561413557600080fd5b50505050565b60146020528060005260406000206000915090508054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156141e35780601f106141b8576101008083540402835291602001916141e3565b820191906000526020600020905b8154815290600101906020018083116141c657829003601f168201915b505050505081565b600080606060006060806141fd611d03565b8710151561420a57600080fd5b6013600088815260200190815260200160002060030160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1661424a88612ae4565b600e60006142578b612ae4565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001600e60006142a18c612ae4565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060010154601360008c8152602001908152602001600020600401601360008d8152602001908152602001600020600501838054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156143a05780601f10614375576101008083540402835291602001916143a0565b820191906000526020600020905b81548152906001019060200180831161438357829003601f168201915b50505050509350818054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561443c5780601f106144115761010080835404028352916020019161443c565b820191906000526020600020905b81548152906001019060200180831161441f57829003601f168201915b50505050509150808054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156144d85780601f106144ad576101008083540402835291602001916144d8565b820191906000526020600020905b8154815290600101906020018083116144bb57829003601f168201915b5050505050905095509550955095509550955091939550919395565b60606144ff8261288e565b151561450a57600080fd5b600b60008381526020019081526020016000208054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156145b15780601f10614586576101008083540402835291602001916145b1565b820191906000526020600020905b81548152906001019060200180831161459457829003601f168201915b50505050509050919050565b6060600e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000018054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156146955780601f1061466a57610100808354040283529160200191614695565b820191906000526020600020905b81548152906001019060200180831161467857829003601f168201915b50505050509050919050565b601560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6060600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054806020026020016040519081016040528092919081815260200182805480156147e657602002820191906000526020600020905b8154815260200190600101908083116147d2575b50505050509050919050565b600e602052806000526040600020600091509050806000018054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561489e5780601f106148735761010080835404028352916020019161489e565b820191906000526020600020905b81548152906001019060200180831161488157829003601f168201915b5050505050908060010154908060020160009054906101000a900460ff16905083565b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561491d57600080fd5b61492681615367565b50565b60008061493583612ae4565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806149a457508373ffffffffffffffffffffffffffffffffffffffff1661498c84611a72565b73ffffffffffffffffffffffffffffffffffffffff16145b806149b557506149b481856146c7565b5b91505092915050565b8173ffffffffffffffffffffffffffffffffffffffff166149de82612ae4565b73ffffffffffffffffffffffffffffffffffffffff16141515614a0057600080fd5b600073ffffffffffffffffffffffffffffffffffffffff166002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141515614abd5760006002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b5050565b6000806000614ad08585615463565b60086000858152602001908152602001600020549250614b3c6001600760008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054905061559290919063ffffffff16565b9150600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002082815481101515614b8a57fe5b9060005260206000200154905080600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002084815481101515614be457fe5b9060005260206000200181905550600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805480919060019003614c4491906159a1565b50600060086000868152602001908152602001600020819055508260086000838152602001908152602001600020819055505050505050565b6000614c8983836155ab565b600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805490509050600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020829080600181540180825580915050906001820390600052602060002001600090919290919091505550806008600084815260200190815260200160002081905550505050565b6060600080601760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663469506bf601760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b52c1d5b89896040518363ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001838152602001828103825284818151815260200191508051906020019060200280838360005b83811015614e4b578082015181840152602081019050614e30565b505050509050019350505050602060405180830381600087803b158015614e7157600080fd5b505af1158015614e85573d6000803e3d6000fd5b505050506040513d6020811015614e9b57600080fd5b8101908080519060200190929190505050866040518363ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018083815260200182815260200192505050602060405180830381600087803b158015614f0657600080fd5b505af1158015614f1a573d6000803e3d6000fd5b505050506040513d6020811015614f3057600080fd5b81019080805190602001909291905050506001900490506012600082815260200190815260200160002060009054906101000a900460ff16151515614f7457600080fd5b601760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ee007a5482896040518363ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018083815260200180602001828103825283818151815260200191508051906020019060200280838360005b8381101561502857808201518184015260208101905061500d565b505050509050019350505050600060405180830381600087803b15801561504e57600080fd5b505af1158015615062573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250602081101561508c57600080fd5b8101908080516401000000008111156150a457600080fd5b828101905060208101848111156150ba57600080fd5b81518560208202830111640100000000821117156150d757600080fd5b505092919050505081925092505094509492505050565b6150f88282615705565b600980549050600a60008381526020019081526020016000208190555060098190806001815401808255809150509060018203906000526020600020016000909192909190915055505050565b6000806151678573ffffffffffffffffffffffffffffffffffffffff166157ab565b1515615176576001915061535e565b8473ffffffffffffffffffffffffffffffffffffffff1663150b7a02338887876040518563ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561526b578082015181840152602081019050615250565b50505050905090810190601f1680156152985780820380516001836020036101000a031916815260200191505b5095505050505050602060405180830381600087803b1580156152ba57600080fd5b505af11580156152ce573d6000803e3d6000fd5b505050506040513d60208110156152e457600080fd5b8101908080519060200190929190505050905063150b7a027c0100000000000000000000000000000000000000000000000000000000027bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505b50949350505050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141515156153a357600080fd5b8073ffffffffffffffffffffffffffffffffffffffff16601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b8173ffffffffffffffffffffffffffffffffffffffff1661548382612ae4565b73ffffffffffffffffffffffffffffffffffffffff161415156154a557600080fd5b6154f86001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461559290919063ffffffff16565b600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555060006001600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b60008282111515156155a057fe5b818303905092915050565b600073ffffffffffffffffffffffffffffffffffffffff166001600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614151561561957600080fd5b816001600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506156be6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546157be90919063ffffffff16565b600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415151561574157600080fd5b61574b8282614c7d565b808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600080823b905060008111915050919050565b600081830190508281101515156157d157fe5b80905092915050565b60c060405190810160405280600081526020016060815260200160008152602001600073ffffffffffffffffffffffffffffffffffffffff16815260200160608152602001606081525090565b60606040519081016040528060608152602001600080191681526020016000151581525090565b828054828255906000526020600020908101928215615890579160200282015b8281111561588f57825182906000191690559160200191906001019061586e565b5b50905061589d91906159cd565b5090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106158e257805160ff1916838001178555615910565b82800160010185558215615910579182015b8281111561590f5782518255916020019190600101906158f4565b5b50905061591d91906159f2565b5090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061596257805160ff1916838001178555615990565b82800160010185558215615990579182015b8281111561598f578251825591602001919060010190615974565b5b50905061599d91906159f2565b5090565b8154818355818111156159c8578183600052602060002091820191016159c791906159f2565b5b505050565b6159ef91905b808211156159eb5760008160009055506001016159d3565b5090565b90565b615a1491905b80821115615a105760008160009055506001016159f8565b5090565b905600a165627a7a723058201f30051fd00f416e04d4c02e4951d7d1010134492d1c9b4461551f8d7a2427490029
Swarm Source
bzzr://1f30051fd00f416e04d4c02e4951d7d1010134492d1c9b4461551f8d7a242749
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.