ERC-721
Overview
Max Total Supply
36 GUP
Holders
29
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2 GUPLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
ERC721Pumpkin
Compiler Version
v0.4.24+commit.e67f0147
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2018-11-07 */ pragma solidity ^0.4.24; library Roles { struct Role { mapping (address => bool) bearer; } /** * @dev give an account access to this role */ function add(Role storage role, address account) internal { require(account != address(0)); require(!has(role, account)); role.bearer[account] = true; } /** * @dev remove an account's access to this role */ function remove(Role storage role, address account) internal { require(account != address(0)); require(has(role, account)); role.bearer[account] = false; } /** * @dev check if an account has this role * @return bool */ function has(Role storage role, address account) internal view returns (bool) { require(account != address(0)); return role.bearer[account]; } } /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ /** * Utility library of inline functions on addresses */ library Address { /** * 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 account address of the account to check * @return whether the target address is a contract */ function isContract(address account) 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(account) } return size > 0; } } library SafeMath { /** * @dev Multiplies two numbers, reverts on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring '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; } uint256 c = a * b; require(c / a == b); return c; } /** * @dev Integer division of two numbers truncating the quotient, reverts on division by zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0); // Solidity only automatically asserts when dividing by 0 uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Subtracts two numbers, reverts on overflow (i.e. if subtrahend is greater than minuend). */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a); uint256 c = a - b; return c; } /** * @dev Adds two numbers, reverts on overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a); return c; } /** * @dev Divides two numbers and returns the remainder (unsigned integer modulo), * reverts when dividing by zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b != 0); return a % b; } } interface IERC165 { /** * @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); } contract IERC721Receiver { /** * @notice Handle the receipt of an NFT * @dev The ERC721 smart contract calls this function on the recipient * after a `safeTransfer`. This function MUST return the function selector, * otherwise the caller will revert the transaction. The selector to be * returned can be obtained as `this.onERC721Received.selector`. This * function MAY throw to revert and reject the transfer. * Note: the ERC721 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 ERC721 Non-Fungible Token Standard basic implementation * @dev see https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md */ contract ERC721Pumpkin is IERC165 { using SafeMath for uint256; using Address for address; // Token name string private _name; // Token symbol string private _symbol; // Optional mapping for token URIs mapping(uint256 => string) private _tokenURIs; bytes4 private constant InterfaceId_ERC721Metadata = 0x5b5e139f; bytes4 private 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) private _supportedInterfaces; // Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))` // which can be also obtained as `IERC721Receiver(0).onERC721Received.selector` bytes4 private constant _ERC721_RECEIVED = 0x150b7a02; // Mapping from token ID to owner mapping (uint256 => address) private _tokenOwner; // Mapping from token ID to approved address mapping (uint256 => address) private _tokenApprovals; // Mapping from owner to number of owned token mapping (address => uint256) private _ownedTokensCount; // Mapping from owner to operator approvals mapping (address => mapping (address => bool)) private _operatorApprovals; bytes4 private 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)')) */ // Mapping from owner to list of owned token IDs mapping(address => uint256[]) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; bytes4 private constant _InterfaceId_ERC721Enumerable = 0x780e9d63; using Roles for Roles.Role; event MinterAdded(address indexed account); event MinterRemoved(address indexed account); Roles.Role private minters; constructor(string name, string symbol) public { // register the supported interfaces to conform to ERC721 via ERC165 _name = name; _symbol = symbol; _registerInterface(_InterfaceId_ERC721); _registerInterface(_InterfaceId_ERC165); _registerInterface(InterfaceId_ERC721Metadata); _registerInterface(_InterfaceId_ERC721Enumerable); _addMinter(msg.sender); } modifier onlyMinter() { require(isMinter(msg.sender)); _; } /** * @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]; } function isMinter(address account) public view returns (bool) { return minters.has(account); } function addMinter(address account) public onlyMinter { _addMinter(account); } function renounceMinter() public { _removeMinter(msg.sender); } function _addMinter(address account) internal { minters.add(account); emit MinterAdded(account); } function _removeMinter(address account) internal { minters.remove(account); emit MinterRemoved(account); } /** * @dev implement supportsInterface(bytes4) using a lookup table */ function supportsInterface(bytes4 interfaceId) external view returns (bool) { return _supportedInterfaces[interfaceId]; } /** * @dev internal method for registering an interface */ function _registerInterface(bytes4 interfaceId) internal { require(interfaceId != 0xffffffff); _supportedInterfaces[interfaceId] = true; } /** * @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 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 * Reverts if the token ID does not exist. * @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) { require(_exists(tokenId)); 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(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 * @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(_checkOnERC721Received(from, to, tokenId, _data)); } /** * @dev Returns whether the specified token exists * @param tokenId uint256 ID of the token to query the existence of * @return whether the token exists */ function _exists(uint256 tokenId) internal view returns (bool) { address owner = _tokenOwner[tokenId]; return owner != address(0); } /** * @dev 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); _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Internal function to add a token ID to the list of a given address * Note that this function is left internal to make ERC721Enumerable possible, but is not * intended to be called by custom derived contracts: in particular, it emits no Transfer event. * @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); 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 * Note that this function is left internal to make ERC721Enumerable possible, but is not * intended to be called by custom derived contracts: in particular, it emits no Transfer event, * and doesn't clear approvals. * @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); // 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 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 _checkOnERC721Received( address from, address to, uint256 tokenId, bytes _data ) internal returns (bool) { if (!to.isContract()) { return true; } bytes4 retval = IERC721Receiver(to).onERC721Received( msg.sender, from, tokenId, _data); return (retval == _ERC721_RECEIVED); } /** * @dev Private 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) private { require(ownerOf(tokenId) == owner); if (_tokenApprovals[tokenId] != address(0)) { _tokenApprovals[tokenId] = address(0); } } /** * @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) external view returns (string) { require(_exists(tokenId)); return _tokenURIs[tokenId]; } /** * @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 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 { _clearApproval(owner, tokenId); _removeTokenFrom(owner, tokenId); emit Transfer(owner, address(0), 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; } function mintWithTokenURI( address to, uint256 tokenId, string tokenUri ) public onlyMinter returns (bool) { _mint(to, tokenId); _setTokenURI(tokenId, tokenUri); return true; } 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 ); }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"constant":true,"inputs":[{"name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"to","type":"address"},{"name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"from","type":"address"},{"name":"to","type":"address"},{"name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"owner","type":"address"},{"name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"to","type":"address"},{"name":"tokenId","type":"uint256"},{"name":"tokenUri","type":"string"}],"name":"mintWithTokenURI","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","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":"owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"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":"account","type":"address"}],"name":"addMinter","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"renounceMinter","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":true,"inputs":[{"name":"account","type":"address"}],"name":"isMinter","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"from","type":"address"},{"name":"to","type":"address"},{"name":"tokenId","type":"uint256"},{"name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"name":"","type":"string"}],"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"},{"inputs":[{"name":"name","type":"string"},{"name":"symbol","type":"string"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"account","type":"address"}],"name":"MinterAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"account","type":"address"}],"name":"MinterRemoved","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
60806040523480156200001157600080fd5b5060405162001581380380620015818339810160405280516020808301519183018051909392909201916200004d9160009190850190620002a2565b50805162000063906001906020840190620002a2565b50620000987f80ac58cd0000000000000000000000000000000000000000000000000000000064010000000062000150810204565b620000cc7f01ffc9a70000000000000000000000000000000000000000000000000000000064010000000062000150810204565b620001007f5b5e139f0000000000000000000000000000000000000000000000000000000064010000000062000150810204565b620001347f780e9d630000000000000000000000000000000000000000000000000000000064010000000062000150810204565b6200014833640100000000620001bd810204565b505062000347565b7fffffffff0000000000000000000000000000000000000000000000000000000080821614156200018057600080fd5b7fffffffff00000000000000000000000000000000000000000000000000000000166000908152600360205260409020805460ff19166001179055565b620001d8600c82640100000000620010a06200020f82021704565b604051600160a060020a038216907f6ae172837ea30b801fbfcdd4108aa1d5bf8ff775444fd70256b44e6bf3dfc3f690600090a250565b600160a060020a03811615156200022557600080fd5b6200023a82826401000000006200026a810204565b156200024557600080fd5b600160a060020a0316600090815260209190915260409020805460ff19166001179055565b6000600160a060020a03821615156200028257600080fd5b50600160a060020a03166000908152602091909152604090205460ff1690565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620002e557805160ff191683800117855562000315565b8280016001018555821562000315579182015b8281111562000315578251825591602001919060010190620002f8565b506200032392915062000327565b5090565b6200034491905b808211156200032357600081556001016200032e565b90565b61122a80620003576000396000f3006080604052600436106101065763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166301ffc9a7811461010b57806306fdde0314610156578063081812fc146101e0578063095ea7b31461021457806318160ddd1461023a57806323b872dd146102615780632f745c591461028b5780634f6ccce7146102af57806350bb4e7f146102c75780636352211e1461033057806370a082311461034857806395d89b4114610369578063983b2d561461037e578063986502751461039f578063a22cb465146103b4578063aa271e1a146103da578063b88d4fde146103fb578063c87b56dd1461046a578063e985e9c514610482575b600080fd5b34801561011757600080fd5b506101427bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19600435166104a9565b604080519115158252519081900360200190f35b34801561016257600080fd5b5061016b6104dd565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101a557818101518382015260200161018d565b50505050905090810190601f1680156101d25780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156101ec57600080fd5b506101f8600435610574565b60408051600160a060020a039092168252519081900360200190f35b34801561022057600080fd5b50610238600160a060020a03600435166024356105a6565b005b34801561024657600080fd5b5061024f61065c565b60408051918252519081900360200190f35b34801561026d57600080fd5b50610238600160a060020a0360043581169060243516604435610662565b34801561029757600080fd5b5061024f600160a060020a03600435166024356106f0565b3480156102bb57600080fd5b5061024f60043561073d565b3480156102d357600080fd5b50604080516020600460443581810135601f8101849004840285018401909552848452610142948235600160a060020a03169460248035953695946064949201919081908401838280828437509497506107729650505050505050565b34801561033c57600080fd5b506101f86004356107a6565b34801561035457600080fd5b5061024f600160a060020a03600435166107d0565b34801561037557600080fd5b5061016b610803565b34801561038a57600080fd5b50610238600160a060020a0360043516610863565b3480156103ab57600080fd5b50610238610883565b3480156103c057600080fd5b50610238600160a060020a0360043516602435151561088e565b3480156103e657600080fd5b50610142600160a060020a0360043516610912565b34801561040757600080fd5b50604080516020601f60643560048181013592830184900484028501840190955281845261023894600160a060020a0381358116956024803590921695604435953695608494019181908401838280828437509497506109259650505050505050565b34801561047657600080fd5b5061016b60043561094d565b34801561048e57600080fd5b50610142600160a060020a0360043581169060243516610a00565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191660009081526003602052604090205460ff1690565b60008054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156105695780601f1061053e57610100808354040283529160200191610569565b820191906000526020600020905b81548152906001019060200180831161054c57829003601f168201915b505050505090505b90565b600061057f82610a2e565b151561058a57600080fd5b50600090815260056020526040902054600160a060020a031690565b60006105b1826107a6565b9050600160a060020a0383811690821614156105cc57600080fd5b33600160a060020a03821614806105e857506105e88133610a00565b15156105f357600080fd5b600082815260056020526040808220805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600a5490565b61066c3382610a4b565b151561067757600080fd5b600160a060020a038216151561068c57600080fd5b6106968382610aaa565b6106a08382610b1b565b6106aa8282610c99565b8082600160a060020a031684600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b60006106fb836107d0565b821061070657600080fd5b600160a060020a038316600090815260086020526040902080548390811061072a57fe5b9060005260206000200154905092915050565b600061074761065c565b821061075257600080fd5b600a80548390811061076057fe5b90600052602060002001549050919050565b600061077d33610912565b151561078857600080fd5b6107928484610d53565b61079c8383610def565b5060019392505050565b600081815260046020526040812054600160a060020a03168015156107ca57600080fd5b92915050565b6000600160a060020a03821615156107e757600080fd5b50600160a060020a031660009081526006602052604090205490565b60018054604080516020601f600260001961010087891615020190951694909404938401819004810282018101909252828152606093909290918301828280156105695780601f1061053e57610100808354040283529160200191610569565b61086c33610912565b151561087757600080fd5b61088081610e27565b50565b61088c33610e6f565b565b600160a060020a0382163314156108a457600080fd5b336000818152600760209081526040808320600160a060020a03871680855290835292819020805460ff1916861515908117909155815190815290519293927f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31929181900390910190a35050565b60006107ca600c8363ffffffff610eb716565b610930848484610662565b61093c84848484610eee565b151561094757600080fd5b50505050565b606061095882610a2e565b151561096357600080fd5b600082815260026020818152604092839020805484516001821615610100026000190190911693909304601f81018390048302840183019094528383529192908301828280156109f45780601f106109c9576101008083540402835291602001916109f4565b820191906000526020600020905b8154815290600101906020018083116109d757829003601f168201915b50505050509050919050565b600160a060020a03918216600090815260076020908152604080832093909416825291909152205460ff1690565b600090815260046020526040902054600160a060020a0316151590565b600080610a57836107a6565b905080600160a060020a031684600160a060020a03161480610a92575083600160a060020a0316610a8784610574565b600160a060020a0316145b80610aa25750610aa28185610a00565b949350505050565b81600160a060020a0316610abd826107a6565b600160a060020a031614610ad057600080fd5b600081815260056020526040902054600160a060020a031615610b17576000818152600560205260409020805473ffffffffffffffffffffffffffffffffffffffff191690555b5050565b600080600084600160a060020a0316610b33856107a6565b600160a060020a031614610b4657600080fd5b600160a060020a038516600090815260066020526040902054610b7090600163ffffffff61107016565b600160a060020a03861660008181526006602090815260408083209490945587825260048152838220805473ffffffffffffffffffffffffffffffffffffffff191690556009815283822054928252600890529190912054909350610bdc90600163ffffffff61107016565b600160a060020a038616600090815260086020526040902080549193509083908110610c0457fe5b90600052602060002001549050806008600087600160a060020a0316600160a060020a0316815260200190815260200160002084815481101515610c4457fe5b6000918252602080832090910192909255600160a060020a0387168152600890915260409020805490610c7b906000198301611142565b50600093845260096020526040808520859055908452909220555050565b600081815260046020526040812054600160a060020a031615610cbb57600080fd5b6000828152600460209081526040808320805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03881690811790915583526006909152902054610d0a906001611087565b600160a060020a03909316600090815260066020908152604080832095909555600881528482208054600181018255908352818320810185905593825260099052929092205550565b600160a060020a0382161515610d6857600080fd5b610d728282610c99565b6040518190600160a060020a038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4600a80546000838152600b60205260408120829055600182018355919091527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a8015550565b610df882610a2e565b1515610e0357600080fd5b60008281526002602090815260409091208251610e2292840190611166565b505050565b610e38600c8263ffffffff6110a016565b604051600160a060020a038216907f6ae172837ea30b801fbfcdd4108aa1d5bf8ff775444fd70256b44e6bf3dfc3f690600090a250565b610e80600c8263ffffffff6110ee16565b604051600160a060020a038216907fe94479a9f7e1952cc78f2d6baab678adc1b772d936c6583def489e524cb6669290600090a250565b6000600160a060020a0382161515610ece57600080fd5b50600160a060020a03166000908152602091909152604090205460ff1690565b600080610f0385600160a060020a031661113a565b1515610f125760019150611067565b6040517f150b7a020000000000000000000000000000000000000000000000000000000081523360048201818152600160a060020a03898116602485015260448401889052608060648501908152875160848601528751918a169463150b7a0294938c938b938b93909160a490910190602085019080838360005b83811015610fa5578181015183820152602001610f8d565b50505050905090810190601f168015610fd25780820380516001836020036101000a031916815260200191505b5095505050505050602060405180830381600087803b158015610ff457600080fd5b505af1158015611008573d6000803e3d6000fd5b505050506040513d602081101561101e57600080fd5b50517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1981167f150b7a020000000000000000000000000000000000000000000000000000000014925090505b50949350505050565b6000808383111561108057600080fd5b5050900390565b60008282018381101561109957600080fd5b9392505050565b600160a060020a03811615156110b557600080fd5b6110bf8282610eb7565b156110c957600080fd5b600160a060020a0316600090815260209190915260409020805460ff19166001179055565b600160a060020a038116151561110357600080fd5b61110d8282610eb7565b151561111857600080fd5b600160a060020a0316600090815260209190915260409020805460ff19169055565b6000903b1190565b815481835581811115610e2257600083815260209020610e229181019083016111e4565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106111a757805160ff19168380011785556111d4565b828001600101855582156111d4579182015b828111156111d45782518255916020019190600101906111b9565b506111e09291506111e4565b5090565b61057191905b808211156111e057600081556001016111ea5600a165627a7a723058209d4e7c0756c304e4e23c031657d08b0f3480cf61351e7af9809a18abbc45a697002900000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000f4775617264612050756d706b696e73000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034755500000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106101065763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166301ffc9a7811461010b57806306fdde0314610156578063081812fc146101e0578063095ea7b31461021457806318160ddd1461023a57806323b872dd146102615780632f745c591461028b5780634f6ccce7146102af57806350bb4e7f146102c75780636352211e1461033057806370a082311461034857806395d89b4114610369578063983b2d561461037e578063986502751461039f578063a22cb465146103b4578063aa271e1a146103da578063b88d4fde146103fb578063c87b56dd1461046a578063e985e9c514610482575b600080fd5b34801561011757600080fd5b506101427bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19600435166104a9565b604080519115158252519081900360200190f35b34801561016257600080fd5b5061016b6104dd565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101a557818101518382015260200161018d565b50505050905090810190601f1680156101d25780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156101ec57600080fd5b506101f8600435610574565b60408051600160a060020a039092168252519081900360200190f35b34801561022057600080fd5b50610238600160a060020a03600435166024356105a6565b005b34801561024657600080fd5b5061024f61065c565b60408051918252519081900360200190f35b34801561026d57600080fd5b50610238600160a060020a0360043581169060243516604435610662565b34801561029757600080fd5b5061024f600160a060020a03600435166024356106f0565b3480156102bb57600080fd5b5061024f60043561073d565b3480156102d357600080fd5b50604080516020600460443581810135601f8101849004840285018401909552848452610142948235600160a060020a03169460248035953695946064949201919081908401838280828437509497506107729650505050505050565b34801561033c57600080fd5b506101f86004356107a6565b34801561035457600080fd5b5061024f600160a060020a03600435166107d0565b34801561037557600080fd5b5061016b610803565b34801561038a57600080fd5b50610238600160a060020a0360043516610863565b3480156103ab57600080fd5b50610238610883565b3480156103c057600080fd5b50610238600160a060020a0360043516602435151561088e565b3480156103e657600080fd5b50610142600160a060020a0360043516610912565b34801561040757600080fd5b50604080516020601f60643560048181013592830184900484028501840190955281845261023894600160a060020a0381358116956024803590921695604435953695608494019181908401838280828437509497506109259650505050505050565b34801561047657600080fd5b5061016b60043561094d565b34801561048e57600080fd5b50610142600160a060020a0360043581169060243516610a00565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191660009081526003602052604090205460ff1690565b60008054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156105695780601f1061053e57610100808354040283529160200191610569565b820191906000526020600020905b81548152906001019060200180831161054c57829003601f168201915b505050505090505b90565b600061057f82610a2e565b151561058a57600080fd5b50600090815260056020526040902054600160a060020a031690565b60006105b1826107a6565b9050600160a060020a0383811690821614156105cc57600080fd5b33600160a060020a03821614806105e857506105e88133610a00565b15156105f357600080fd5b600082815260056020526040808220805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600a5490565b61066c3382610a4b565b151561067757600080fd5b600160a060020a038216151561068c57600080fd5b6106968382610aaa565b6106a08382610b1b565b6106aa8282610c99565b8082600160a060020a031684600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b60006106fb836107d0565b821061070657600080fd5b600160a060020a038316600090815260086020526040902080548390811061072a57fe5b9060005260206000200154905092915050565b600061074761065c565b821061075257600080fd5b600a80548390811061076057fe5b90600052602060002001549050919050565b600061077d33610912565b151561078857600080fd5b6107928484610d53565b61079c8383610def565b5060019392505050565b600081815260046020526040812054600160a060020a03168015156107ca57600080fd5b92915050565b6000600160a060020a03821615156107e757600080fd5b50600160a060020a031660009081526006602052604090205490565b60018054604080516020601f600260001961010087891615020190951694909404938401819004810282018101909252828152606093909290918301828280156105695780601f1061053e57610100808354040283529160200191610569565b61086c33610912565b151561087757600080fd5b61088081610e27565b50565b61088c33610e6f565b565b600160a060020a0382163314156108a457600080fd5b336000818152600760209081526040808320600160a060020a03871680855290835292819020805460ff1916861515908117909155815190815290519293927f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31929181900390910190a35050565b60006107ca600c8363ffffffff610eb716565b610930848484610662565b61093c84848484610eee565b151561094757600080fd5b50505050565b606061095882610a2e565b151561096357600080fd5b600082815260026020818152604092839020805484516001821615610100026000190190911693909304601f81018390048302840183019094528383529192908301828280156109f45780601f106109c9576101008083540402835291602001916109f4565b820191906000526020600020905b8154815290600101906020018083116109d757829003601f168201915b50505050509050919050565b600160a060020a03918216600090815260076020908152604080832093909416825291909152205460ff1690565b600090815260046020526040902054600160a060020a0316151590565b600080610a57836107a6565b905080600160a060020a031684600160a060020a03161480610a92575083600160a060020a0316610a8784610574565b600160a060020a0316145b80610aa25750610aa28185610a00565b949350505050565b81600160a060020a0316610abd826107a6565b600160a060020a031614610ad057600080fd5b600081815260056020526040902054600160a060020a031615610b17576000818152600560205260409020805473ffffffffffffffffffffffffffffffffffffffff191690555b5050565b600080600084600160a060020a0316610b33856107a6565b600160a060020a031614610b4657600080fd5b600160a060020a038516600090815260066020526040902054610b7090600163ffffffff61107016565b600160a060020a03861660008181526006602090815260408083209490945587825260048152838220805473ffffffffffffffffffffffffffffffffffffffff191690556009815283822054928252600890529190912054909350610bdc90600163ffffffff61107016565b600160a060020a038616600090815260086020526040902080549193509083908110610c0457fe5b90600052602060002001549050806008600087600160a060020a0316600160a060020a0316815260200190815260200160002084815481101515610c4457fe5b6000918252602080832090910192909255600160a060020a0387168152600890915260409020805490610c7b906000198301611142565b50600093845260096020526040808520859055908452909220555050565b600081815260046020526040812054600160a060020a031615610cbb57600080fd5b6000828152600460209081526040808320805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03881690811790915583526006909152902054610d0a906001611087565b600160a060020a03909316600090815260066020908152604080832095909555600881528482208054600181018255908352818320810185905593825260099052929092205550565b600160a060020a0382161515610d6857600080fd5b610d728282610c99565b6040518190600160a060020a038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4600a80546000838152600b60205260408120829055600182018355919091527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a8015550565b610df882610a2e565b1515610e0357600080fd5b60008281526002602090815260409091208251610e2292840190611166565b505050565b610e38600c8263ffffffff6110a016565b604051600160a060020a038216907f6ae172837ea30b801fbfcdd4108aa1d5bf8ff775444fd70256b44e6bf3dfc3f690600090a250565b610e80600c8263ffffffff6110ee16565b604051600160a060020a038216907fe94479a9f7e1952cc78f2d6baab678adc1b772d936c6583def489e524cb6669290600090a250565b6000600160a060020a0382161515610ece57600080fd5b50600160a060020a03166000908152602091909152604090205460ff1690565b600080610f0385600160a060020a031661113a565b1515610f125760019150611067565b6040517f150b7a020000000000000000000000000000000000000000000000000000000081523360048201818152600160a060020a03898116602485015260448401889052608060648501908152875160848601528751918a169463150b7a0294938c938b938b93909160a490910190602085019080838360005b83811015610fa5578181015183820152602001610f8d565b50505050905090810190601f168015610fd25780820380516001836020036101000a031916815260200191505b5095505050505050602060405180830381600087803b158015610ff457600080fd5b505af1158015611008573d6000803e3d6000fd5b505050506040513d602081101561101e57600080fd5b50517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1981167f150b7a020000000000000000000000000000000000000000000000000000000014925090505b50949350505050565b6000808383111561108057600080fd5b5050900390565b60008282018381101561109957600080fd5b9392505050565b600160a060020a03811615156110b557600080fd5b6110bf8282610eb7565b156110c957600080fd5b600160a060020a0316600090815260209190915260409020805460ff19166001179055565b600160a060020a038116151561110357600080fd5b61110d8282610eb7565b151561111857600080fd5b600160a060020a0316600090815260209190915260409020805460ff19169055565b6000903b1190565b815481835581811115610e2257600083815260209020610e229181019083016111e4565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106111a757805160ff19168380011785556111d4565b828001600101855582156111d4579182015b828111156111d45782518255916020019190600101906111b9565b506111e09291506111e4565b5090565b61057191905b808211156111e057600081556001016111ea5600a165627a7a723058209d4e7c0756c304e4e23c031657d08b0f3480cf61351e7af9809a18abbc45a6970029
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000f4775617264612050756d706b696e73000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034755500000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name (string): Guarda Pumpkins
Arg [1] : symbol (string): GUP
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 000000000000000000000000000000000000000000000000000000000000000f
Arg [3] : 4775617264612050756d706b696e730000000000000000000000000000000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [5] : 4755500000000000000000000000000000000000000000000000000000000000
Swarm Source
bzzr://9d4e7c0756c304e4e23c031657d08b0f3480cf61351e7af9809a18abbc45a697
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.