ERC-721
Overview
Max Total Supply
219 NFTS
Holders
112
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 NFTSLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
MintableUserToken
Compiler Version
v0.5.17+commit.d19bba13
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-06-28 */ // SPDX-License-Identifier: NONE pragma solidity 0.5.17; pragma experimental ABIEncoderV2; // Part: Address /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned // for accounts without code, i.e. `keccak256('')` bytes32 codehash; bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470; // solhint-disable-next-line no-inline-assembly assembly { codehash := extcodehash(account) } return (codehash != accountHash && codehash != 0x0); } /** * @dev Converts an `address` into `address payable`. Note that this is * simply a type cast: the actual underlying value is not changed. * * _Available since v2.4.0._ */ function toPayable(address account) internal pure returns (address payable) { return address(uint160(account)); } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. * * _Available since v2.4.0._ */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-call-value (bool success, ) = recipient.call.value(amount)(""); require(success, "Address: unable to send value, recipient may have reverted"); } } // Part: Context /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with GSN meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ contract Context { // Empty internal constructor, to prevent people from mistakenly deploying // an instance of this contract, which should be used via inheritance. constructor () internal { } // solhint-disable-previous-line no-empty-blocks function _msgSender() internal view returns (address payable) { return msg.sender; } function _msgData() internal view returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } } // Part: IERC165 /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } // Part: IERC721Receiver /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ contract IERC721Receiver { /** * @notice Handle the receipt of an NFT * @dev The ERC721 smart contract calls this function on the recipient * after a {IERC721-safeTransferFrom}. 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 `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))` */ function onERC721Received(address operator, address from, uint256 tokenId, bytes memory data) public returns (bytes4); } // Part: Roles /** * @title Roles * @dev Library for managing addresses assigned to a Role. */ 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(!has(role, account), "Roles: account already has role"); role.bearer[account] = true; } /** * @dev Remove an account's access to this role. */ function remove(Role storage role, address account) internal { require(has(role, account), "Roles: account does not have role"); 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), "Roles: account is the zero address"); return role.bearer[account]; } } // Part: SafeMath /** * @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; } } // Part: Counters /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented or decremented by one. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` * Since it is not possible to overflow a 256 bit integer with increments of one, `increment` can skip the {SafeMath} * overflow check, thereby saving gas. This does assume however correct usage, in that the underlying `_value` is never * directly accessed. */ library Counters { using SafeMath for uint256; struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { // The {SafeMath} overflow check can be skipped here, see the comment at the top counter._value += 1; } function decrement(Counter storage counter) internal { counter._value = counter._value.sub(1); } } // Part: ERC165 /** * @dev Implementation of the {IERC165} interface. * * Contracts may inherit from this and call {_registerInterface} to declare * their support of an interface. */ contract ERC165 is IERC165 { /* * bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7 */ bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7; /** * @dev Mapping of interface ids to whether or not it's supported. */ mapping(bytes4 => bool) private _supportedInterfaces; constructor () internal { // Derived contracts need only register support for their own interfaces, // we register support for ERC165 itself here _registerInterface(_INTERFACE_ID_ERC165); } /** * @dev See {IERC165-supportsInterface}. * * Time complexity O(1), guaranteed to always use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool) { return _supportedInterfaces[interfaceId]; } /** * @dev Registers the contract as an implementer of the interface defined by * `interfaceId`. Support of the actual ERC165 interface is automatic and * registering its interface id is not required. * * See {IERC165-supportsInterface}. * * Requirements: * * - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`). */ function _registerInterface(bytes4 interfaceId) internal { require(interfaceId != 0xffffffff, "ERC165: invalid interface id"); _supportedInterfaces[interfaceId] = true; } } // Part: IERC721 /** * @dev Required interface of an ERC721 compliant contract. */ contract IERC721 is IERC165 { 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); /** * @dev Returns the number of NFTs in `owner`'s account. */ function balanceOf(address owner) public view returns (uint256 balance); /** * @dev Returns the owner of the NFT specified by `tokenId`. */ function ownerOf(uint256 tokenId) public view returns (address owner); /** * @dev Transfers a specific NFT (`tokenId`) from one account (`from`) to * another (`to`). * * * * Requirements: * - `from`, `to` cannot be zero. * - `tokenId` must be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this * NFT by either {approve} or {setApprovalForAll}. */ function safeTransferFrom(address from, address to, uint256 tokenId) public; /** * @dev Transfers a specific NFT (`tokenId`) from one account (`from`) to * another (`to`). * * Requirements: * - If the caller is not `from`, it must be approved to move this NFT by * either {approve} or {setApprovalForAll}. */ function transferFrom(address from, address to, uint256 tokenId) public; 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 safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public; } // Part: Ownable /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(isOwner(), "Ownable: caller is not the owner"); _; } /** * @dev Returns true if the caller is the current owner. */ function isOwner() public view returns (bool) { return _msgSender() == _owner; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public onlyOwner { _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). */ function _transferOwnership(address newOwner) internal { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } } // Part: SignerRole /** * @title SignerRole * @dev A signer role contract. */ contract SignerRole is Context { using Roles for Roles.Role; event SignerAdded(address indexed account); event SignerRemoved(address indexed account); Roles.Role private _signers; constructor () internal { _addSigner(_msgSender()); } /** * @dev Makes function callable only if sender is a signer. */ modifier onlySigner() { require(isSigner(_msgSender()), "SignerRole: caller does not have the Signer role"); _; } /** * @dev Checks if the address is a signer. */ function isSigner(address account) public view returns (bool) { return _signers.has(account); } /** * @dev Makes the address a signer. Only other signers can add new signers. */ function addSigner(address account) public onlySigner { _addSigner(account); } /** * @dev Removes the address from signers. Signer can be renounced only by himself. */ function renounceSigner() public { _removeSigner(_msgSender()); } function _addSigner(address account) internal { _signers.add(account); emit SignerAdded(account); } function _removeSigner(address account) internal { _signers.remove(account); emit SignerRemoved(account); } } // Part: UintLibrary library UintLibrary { using SafeMath for uint; function toString(uint256 _i) internal pure returns (string memory) { if (_i == 0) { return "0"; } uint j = _i; uint len; while (j != 0) { len++; j /= 10; } bytes memory bstr = new bytes(len); uint k = len - 1; while (_i != 0) { bstr[k--] = byte(uint8(48 + _i % 10)); _i /= 10; } return string(bstr); } function bp(uint value, uint bpValue) internal pure returns (uint) { return value.mul(bpValue).div(10000); } } // Part: ERC721 /** * @title ERC721 Non-Fungible Token Standard basic implementation * @dev see https://eips.ethereum.org/EIPS/eip-721 */ contract ERC721 is Context, ERC165, IERC721 { using SafeMath for uint256; using Address for address; using Counters for Counters.Counter; // 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 => Counters.Counter) private _ownedTokensCount; // Mapping from owner to operator approvals mapping (address => mapping (address => bool)) private _operatorApprovals; /* * bytes4(keccak256('balanceOf(address)')) == 0x70a08231 * bytes4(keccak256('ownerOf(uint256)')) == 0x6352211e * bytes4(keccak256('approve(address,uint256)')) == 0x095ea7b3 * bytes4(keccak256('getApproved(uint256)')) == 0x081812fc * bytes4(keccak256('setApprovalForAll(address,bool)')) == 0xa22cb465 * bytes4(keccak256('isApprovedForAll(address,address)')) == 0xe985e9c5 * bytes4(keccak256('transferFrom(address,address,uint256)')) == 0x23b872dd * bytes4(keccak256('safeTransferFrom(address,address,uint256)')) == 0x42842e0e * bytes4(keccak256('safeTransferFrom(address,address,uint256,bytes)')) == 0xb88d4fde * * => 0x70a08231 ^ 0x6352211e ^ 0x095ea7b3 ^ 0x081812fc ^ * 0xa22cb465 ^ 0xe985e9c ^ 0x23b872dd ^ 0x42842e0e ^ 0xb88d4fde == 0x80ac58cd */ bytes4 private constant _INTERFACE_ID_ERC721 = 0x80ac58cd; constructor () public { // register the supported interfaces to conform to ERC721 via ERC165 _registerInterface(_INTERFACE_ID_ERC721); } /** * @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), "ERC721: balance query for the zero address"); return _ownedTokensCount[owner].current(); } /** * @dev Gets the owner of the specified token ID. * @param tokenId uint256 ID of the token to query the owner of * @return 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), "ERC721: owner query for nonexistent token"); 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, "ERC721: approval to current owner"); require(_msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _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), "ERC721: approved query for nonexistent token"); 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 != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][to] = approved; emit ApprovalForAll(_msgSender(), 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 { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transferFrom(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 {IERC721Receiver-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 { 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 {IERC721Receiver-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 _msgSender() 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 memory _data) public { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransferFrom(from, to, tokenId, _data); } /** * @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 memory _data) internal { _transferFrom(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether the specified token exists. * @param tokenId uint256 ID of the token to query the existence of * @return bool 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) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Internal function to safely mint a new token. * Reverts if the given token ID already exists. * 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. * @param to The address that will own the minted token * @param tokenId uint256 ID of the token to be minted */ function _safeMint(address to, uint256 tokenId) internal { _safeMint(to, tokenId, ""); } /** * @dev Internal function to safely mint a new token. * Reverts if the given token ID already exists. * 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. * @param to The address that will own the minted token * @param tokenId uint256 ID of the token to be minted * @param _data bytes data to send along with a safe transfer check */ function _safeMint(address to, uint256 tokenId, bytes memory _data) internal { _mint(to, tokenId); require(_checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @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 */ function _mint(address to, uint256 tokenId) internal { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _tokenOwner[tokenId] = to; _ownedTokensCount[to].increment(); emit Transfer(address(0), to, tokenId); } /** * @dev Internal function to burn a specific token. * Reverts if the token does not exist. * Deprecated, use {_burn} instead. * @param owner owner of the token to burn * @param tokenId uint256 ID of the token being burned */ function _burn(address owner, uint256 tokenId) internal { require(ownerOf(tokenId) == owner, "ERC721: burn of token that is not own"); _clearApproval(tokenId); _ownedTokensCount[owner].decrement(); _tokenOwner[tokenId] = address(0); emit Transfer(owner, address(0), 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 */ function _burn(uint256 tokenId) internal { _burn(ownerOf(tokenId), tokenId); } /** * @dev Internal function to transfer ownership of a given token ID to another address. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * @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) internal { require(ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _clearApproval(tokenId); _ownedTokensCount[from].decrement(); _ownedTokensCount[to].increment(); _tokenOwner[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * This is an internal detail of the `ERC721` contract and its use is deprecated. * @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 bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory _data) internal returns (bool) { if (!to.isContract()) { return true; } // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = to.call(abi.encodeWithSelector( IERC721Receiver(to).onERC721Received.selector, _msgSender(), from, tokenId, _data )); if (!success) { if (returndata.length > 0) { // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert("ERC721: transfer to non ERC721Receiver implementer"); } } else { bytes4 retval = abi.decode(returndata, (bytes4)); return (retval == _ERC721_RECEIVED); } } /** * @dev Private function to clear current approval of a given token ID. * @param tokenId uint256 ID of the token to be transferred */ function _clearApproval(uint256 tokenId) private { if (_tokenApprovals[tokenId] != address(0)) { _tokenApprovals[tokenId] = address(0); } } } // Part: HasContractURI contract HasContractURI is ERC165 { string public contractURI; /* * bytes4(keccak256('contractURI()')) == 0xe8a3d485 */ bytes4 private constant _INTERFACE_ID_CONTRACT_URI = 0xe8a3d485; constructor(string memory _contractURI) public { contractURI = _contractURI; _registerInterface(_INTERFACE_ID_CONTRACT_URI); } /** * @dev Internal function to set the contract URI * @param _contractURI string URI prefix to assign */ function _setContractURI(string memory _contractURI) internal { contractURI = _contractURI; } } // Part: HasSecondarySaleFees contract HasSecondarySaleFees is ERC165 { event SecondarySaleFees(uint256 tokenId, address[] recipients, uint[] bps); /* * bytes4(keccak256('getFeeBps(uint256)')) == 0x0ebd4c7f * bytes4(keccak256('getFeeRecipients(uint256)')) == 0xb9c4d9fb * * => 0x0ebd4c7f ^ 0xb9c4d9fb == 0xb7799584 */ bytes4 private constant _INTERFACE_ID_FEES = 0xb7799584; constructor() public { _registerInterface(_INTERFACE_ID_FEES); } function getFeeRecipients(uint256 id) public view returns (address payable[] memory); function getFeeBps(uint256 id) public view returns (uint[] memory); } // Part: IERC721Enumerable /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ contract IERC721Enumerable is IERC721 { 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); } // Part: IERC721Metadata /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ contract IERC721Metadata is IERC721 { function name() external view returns (string memory); function symbol() external view returns (string memory); function tokenURI(uint256 tokenId) external view returns (string memory); } // Part: StringLibrary library StringLibrary { using UintLibrary for uint256; function append(string memory _a, string memory _b) internal pure returns (string memory) { bytes memory _ba = bytes(_a); bytes memory _bb = bytes(_b); bytes memory bab = new bytes(_ba.length + _bb.length); uint k = 0; for (uint i = 0; i < _ba.length; i++) bab[k++] = _ba[i]; for (uint i = 0; i < _bb.length; i++) bab[k++] = _bb[i]; return string(bab); } function append(string memory _a, string memory _b, string memory _c) internal pure returns (string memory) { bytes memory _ba = bytes(_a); bytes memory _bb = bytes(_b); bytes memory _bc = bytes(_c); bytes memory bbb = new bytes(_ba.length + _bb.length + _bc.length); uint k = 0; for (uint i = 0; i < _ba.length; i++) bbb[k++] = _ba[i]; for (uint i = 0; i < _bb.length; i++) bbb[k++] = _bb[i]; for (uint i = 0; i < _bc.length; i++) bbb[k++] = _bc[i]; return string(bbb); } function recover(string memory message, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) { bytes memory msgBytes = bytes(message); bytes memory fullMessage = concat( bytes("\x19Ethereum Signed Message:\n"), bytes(msgBytes.length.toString()), msgBytes, new bytes(0), new bytes(0), new bytes(0), new bytes(0) ); return ecrecover(keccak256(fullMessage), v, r, s); } function concat(bytes memory _ba, bytes memory _bb, bytes memory _bc, bytes memory _bd, bytes memory _be, bytes memory _bf, bytes memory _bg) internal pure returns (bytes memory) { bytes memory resultBytes = new bytes(_ba.length + _bb.length + _bc.length + _bd.length + _be.length + _bf.length + _bg.length); uint k = 0; for (uint i = 0; i < _ba.length; i++) resultBytes[k++] = _ba[i]; for (uint i = 0; i < _bb.length; i++) resultBytes[k++] = _bb[i]; for (uint i = 0; i < _bc.length; i++) resultBytes[k++] = _bc[i]; for (uint i = 0; i < _bd.length; i++) resultBytes[k++] = _bd[i]; for (uint i = 0; i < _be.length; i++) resultBytes[k++] = _be[i]; for (uint i = 0; i < _bf.length; i++) resultBytes[k++] = _bf[i]; for (uint i = 0; i < _bg.length; i++) resultBytes[k++] = _bg[i]; return resultBytes; } } // Part: ERC721Burnable /** * @title ERC721 Burnable Token * @dev ERC721 Token that can be irreversibly burned (destroyed). */ contract ERC721Burnable is Context, ERC721 { /** * @dev Burns a specific ERC721 token. * @param tokenId uint256 id of the ERC721 token to be burned. */ function burn(uint256 tokenId) public { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved"); _burn(tokenId); } } // Part: ERC721Enumerable /** * @title ERC-721 Non-Fungible Token with optional enumeration extension logic * @dev See https://eips.ethereum.org/EIPS/eip-721 */ contract ERC721Enumerable is Context, ERC165, ERC721, IERC721Enumerable { // 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(keccak256('totalSupply()')) == 0x18160ddd * bytes4(keccak256('tokenOfOwnerByIndex(address,uint256)')) == 0x2f745c59 * bytes4(keccak256('tokenByIndex(uint256)')) == 0x4f6ccce7 * * => 0x18160ddd ^ 0x2f745c59 ^ 0x4f6ccce7 == 0x780e9d63 */ bytes4 private constant _INTERFACE_ID_ERC721_ENUMERABLE = 0x780e9d63; /** * @dev Constructor function. */ constructor () public { // register the supported interface to conform to ERC721Enumerable via ERC165 _registerInterface(_INTERFACE_ID_ERC721_ENUMERABLE); } /** * @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), "ERC721Enumerable: owner index out of bounds"); 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(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Internal function to transfer ownership of a given token ID to another address. * As opposed to transferFrom, this imposes no restrictions on msg.sender. * @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) internal { super._transferFrom(from, to, tokenId); _removeTokenFromOwnerEnumeration(from, tokenId); _addTokenToOwnerEnumeration(to, tokenId); } /** * @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 */ function _mint(address to, uint256 tokenId) internal { super._mint(to, tokenId); _addTokenToOwnerEnumeration(to, tokenId); _addTokenToAllTokensEnumeration(tokenId); } /** * @dev Internal function to burn a specific token. * Reverts if the token does not exist. * Deprecated, use {ERC721-_burn} instead. * @param owner owner of the token to burn * @param tokenId uint256 ID of the token being burned */ function _burn(address owner, uint256 tokenId) internal { super._burn(owner, tokenId); _removeTokenFromOwnerEnumeration(owner, tokenId); // Since tokenId will be deleted, we can clear its slot in _ownedTokensIndex to trigger a gas refund _ownedTokensIndex[tokenId] = 0; _removeTokenFromAllTokensEnumeration(tokenId); } /** * @dev Gets the list of token IDs of the requested owner. * @param owner address owning the tokens * @return uint256[] List of token IDs owned by the requested address */ function _tokensOfOwner(address owner) internal view returns (uint256[] storage) { return _ownedTokens[owner]; } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @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 _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { _ownedTokensIndex[tokenId] = _ownedTokens[to].length; _ownedTokens[to].push(tokenId); } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @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 _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _ownedTokens[from].length.sub(1); uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array _ownedTokens[from].length--; // Note that _ownedTokensIndex[tokenId] hasn't been cleared: it still points to the old slot (now occupied by // lastTokenId, or just over the end of the array if the token was the last one). } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length.sub(1); uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array _allTokens.length--; _allTokensIndex[tokenId] = 0; } } // Part: HasTokenURI contract HasTokenURI { using StringLibrary for string; //Token URI prefix string public tokenURIPrefix; // Optional mapping for token URIs mapping(uint256 => string) private _tokenURIs; constructor(string memory _tokenURIPrefix) public { tokenURIPrefix = _tokenURIPrefix; } /** * @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) internal view returns (string memory) { return tokenURIPrefix.append(_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 memory uri) internal { _tokenURIs[tokenId] = uri; } /** * @dev Internal function to set the token URI prefix. * @param _tokenURIPrefix string URI prefix to assign */ function _setTokenURIPrefix(string memory _tokenURIPrefix) internal { tokenURIPrefix = _tokenURIPrefix; } function _clearTokenURI(uint256 tokenId) internal { if (bytes(_tokenURIs[tokenId]).length != 0) { delete _tokenURIs[tokenId]; } } } // Part: ERC721Base /** * @title Full ERC721 Token with support for tokenURIPrefix * 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://eips.ethereum.org/EIPS/eip-721 */ contract ERC721Base is HasSecondarySaleFees, ERC721, HasContractURI, HasTokenURI, ERC721Enumerable { // Token name string public name; // Token symbol string public symbol; /** @notice Describes a fee. @param recipient - Fee recipient address. @param value - Fee amount in percents * 100. */ struct Fee { address payable recipient; uint256 value; } // id => fees mapping (uint256 => Fee[]) public fees; /* * bytes4(keccak256('name()')) == 0x06fdde03 * bytes4(keccak256('symbol()')) == 0x95d89b41 * bytes4(keccak256('tokenURI(uint256)')) == 0xc87b56dd * * => 0x06fdde03 ^ 0x95d89b41 ^ 0xc87b56dd == 0x5b5e139f */ bytes4 private constant _INTERFACE_ID_ERC721_METADATA = 0x5b5e139f; /** * @dev Constructor function */ constructor (string memory _name, string memory _symbol, string memory contractURI, string memory _tokenURIPrefix) HasContractURI(contractURI) HasTokenURI(_tokenURIPrefix) public { name = _name; symbol = _symbol; // register the supported interfaces to conform to ERC721 via ERC165 _registerInterface(_INTERFACE_ID_ERC721_METADATA); } /** @notice Get the secondary fee recipients of the token. @param id - The id of the token. @return An array of fee recipient addresses. */ function getFeeRecipients(uint256 id) public view returns (address payable[] memory) { Fee[] memory _fees = fees[id]; address payable[] memory result = new address payable[](_fees.length); for (uint i = 0; i < _fees.length; i++) { result[i] = _fees[i].recipient; } return result; } /** @notice Get the secondary fee amounts of the token. @param id - The id of the token. @return An array of fee amount values. */ function getFeeBps(uint256 id) public view returns (uint[] memory) { Fee[] memory _fees = fees[id]; uint[] memory result = new uint[](_fees.length); for (uint i = 0; i < _fees.length; i++) { result[i] = _fees[i].value; } return result; } function _mint(address to, uint256 tokenId, Fee[] memory _fees) internal { _mint(to, tokenId); address[] memory recipients = new address[](_fees.length); uint[] memory bps = new uint[](_fees.length); for (uint i = 0; i < _fees.length; i++) { require(_fees[i].recipient != address(0x0), "Recipient should be present"); require(_fees[i].value != 0, "Fee value should be positive"); fees[tokenId].push(_fees[i]); recipients[i] = _fees[i].recipient; bps[i] = _fees[i].value; } if (_fees.length > 0) { emit SecondarySaleFees(tokenId, recipients, bps); } } /** * @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 memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); return super._tokenURI(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 memory uri) internal { require(_exists(tokenId), "ERC721Metadata: URI set of nonexistent token"); super._setTokenURI(tokenId, uri); } /** * @dev Internal function to burn a specific token. * Reverts if the token does not exist. * Deprecated, use _burn(uint256) instead. * @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); _clearTokenURI(tokenId); } } // Part: MintableOwnableToken /** * @title MintableOwnableToken * @dev anyone can mint token. */ contract MintableOwnableToken is Ownable, ERC721, IERC721Metadata, ERC721Burnable, ERC721Base, SignerRole { /// @notice Token minting event. event CreateERC721_v4(address indexed creator, string name, string symbol); /// @notice The contract constructor. /// @param name - The value for the `name`. /// @param symbol - The value for the `symbol`. /// @param contractURI - The URI with contract metadata. /// The metadata should be a JSON object with fields: `id, name, description, image, external_link`. /// If the URI containts `{address}` template in its body, then the template must be substituted with the contract address. /// @param tokenURIPrefix - The URI prefix for all the tokens. Usually set to ipfs gateway. /// @param signer - The address of the initial signer. constructor (string memory name, string memory symbol, string memory contractURI, string memory tokenURIPrefix, address signer) public ERC721Base(name, symbol, contractURI, tokenURIPrefix) { emit CreateERC721_v4(msg.sender, name, symbol); _addSigner(signer); _registerInterface(bytes4(keccak256('MINT_WITH_ADDRESS'))); } /// @notice The function for token minting. It creates a new token. /// Must contain the signature of the format: `sha3(tokenContract.address.toLowerCase() + tokenId)`. /// Where `tokenContract.address` is the address of the contract and tokenId is the id in uint256 hex format. /// 0 as uint256 must look like this: `0000000000000000000000000000000000000000000000000000000000000000`. /// The message **must not contain** the standard prefix. /// @param tokenId - The id of a new token. /// @param v - v parameter of the ECDSA signature. /// @param r - r parameter of the ECDSA signature. /// @param s - s parameter of the ECDSA signature. /// @param _fees - An array of the secondary fees for this token. /// @param tokenURI - The suffix with `tokenURIPrefix` usually complements ipfs link to metadata object. /// The URI must link to JSON object with various fields: `name, description, image, external_url, attributes`. /// Can also contain another various fields. function mint(uint256 tokenId, uint8 v, bytes32 r, bytes32 s, Fee[] memory _fees, string memory tokenURI) public { require(isSigner(ecrecover(keccak256(abi.encodePacked(this, tokenId)), v, r, s)), "signer should sign tokenId"); _mint(msg.sender, tokenId, _fees); _setTokenURI(tokenId, tokenURI); } /// @notice This function can be called by the contract owner and it adds an address as a new signer. /// The signer will authorize token minting by signing token ids. /// @param account - The address of a new signer. function addSigner(address account) public onlyOwner { _addSigner(account); } /// @notice This function can be called by the contract owner and it removes an address from signers pool. /// @param account - The address of a signer to remove. function removeSigner(address account) public onlyOwner { _removeSigner(account); } /// @notice Sets the URI prefix for all tokens. function setTokenURIPrefix(string memory tokenURIPrefix) public onlyOwner { _setTokenURIPrefix(tokenURIPrefix); } /// @notice Sets the URI for the contract metadata. function setContractURI(string memory contractURI) public onlyOwner { _setContractURI(contractURI); } } // File: MintableUserToken.sol /** * @title MintableUserToken * @dev Only owner can mint tokens. */ contract MintableUserToken is MintableOwnableToken { /// @notice The contract constructor. /// @param name - The value for the `name`. /// @param symbol - The value for the `symbol`. /// @param contractURI - The URI with contract metadata. /// The metadata should be a JSON object with fields: `id, name, description, image, external_link`. /// If the URI containts `{address}` template in its body, then the template must be substituted with the contract address. /// @param tokenURIPrefix - The URI prefix for all the tokens. Usually set to ipfs gateway. /// @param signer - The address of the initial signer. constructor(string memory name, string memory symbol, string memory contractURI, string memory tokenURIPrefix, address signer) MintableOwnableToken(name, symbol, contractURI, tokenURIPrefix, signer) public {} /// @notice The function for token minting. It creates a new token. Can be called only by the contract owner. /// Must contain the signature of the format: `sha3(tokenContract.address.toLowerCase() + tokenId)`. /// Where `tokenContract.address` is the address of the contract and tokenId is the id in uint256 hex format. /// 0 as uint256 must look like this: `0000000000000000000000000000000000000000000000000000000000000000`. /// The message **must not contain** the standard prefix. /// @param tokenId - The id of a new token. /// @param v - v parameter of the ECDSA signature. /// @param r - r parameter of the ECDSA signature. /// @param s - s parameter of the ECDSA signature. /// @param _fees - An array of the secondary fees for this token. /// @param tokenURI - The suffix with `tokenURIPrefix` usually complements ipfs link to metadata object. /// The URI must link to JSON object with various fields: `name, description, image, external_url, attributes`. /// Can also contain another various fields. function mint(uint256 tokenId, uint8 v, bytes32 r, bytes32 s, Fee[] memory _fees, string memory tokenURI) public { super.mint(tokenId, v, r, s, _fees, tokenURI); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"string","name":"contractURI","type":"string"},{"internalType":"string","name":"tokenURIPrefix","type":"string"},{"internalType":"address","name":"signer","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"creator","type":"address"},{"indexed":false,"internalType":"string","name":"name","type":"string"},{"indexed":false,"internalType":"string","name":"symbol","type":"string"}],"name":"CreateERC721_v4","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"address[]","name":"recipients","type":"address[]"},{"indexed":false,"internalType":"uint256[]","name":"bps","type":"uint256[]"}],"name":"SecondarySaleFees","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"SignerAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"SignerRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"constant":false,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"addSigner","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"fees","outputs":[{"internalType":"address payable","name":"recipient","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getFeeBps","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getFeeRecipients","outputs":[{"internalType":"address payable[]","name":"","type":"address[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isSigner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"},{"components":[{"internalType":"address payable","name":"recipient","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"internalType":"struct ERC721Base.Fee[]","name":"_fees","type":"tuple[]"},{"internalType":"string","name":"tokenURI","type":"string"}],"name":"mint","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"removeSigner","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"renounceSigner","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"string","name":"contractURI","type":"string"}],"name":"setContractURI","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"string","name":"tokenURIPrefix","type":"string"}],"name":"setTokenURIPrefix","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"tokenURIPrefix","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b5060405162003937380380620039378339810160408190526200003491620004be565b84848484848484848480826000620000546001600160e01b036200025516565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350620000b96301ffc9a760e01b6001600160e01b036200025a16565b620000d4632dde656160e21b6001600160e01b036200025a16565b620000ef6380ac58cd60e01b6001600160e01b036200025a16565b805162000104906006906020840190620003b3565b506200012063e8a3d48560e01b6001600160e01b036200025a16565b50805162000136906007906020840190620003b3565b5062000154905063780e9d6360e01b6001600160e01b036200025a16565b83516200016990600d906020870190620003b3565b5082516200017f90600e906020860190620003b3565b506200019b635b5e139f60e01b6001600160e01b036200025a16565b50505050620001c2620001b36200025560201b60201c565b6001600160e01b03620002b816565b336001600160a01b03167f565f2552ba3b09c1a27ca36ec97f816d9f12f464c3f7f145c28b527057df0ac78686604051620001ff929190620006d5565b60405180910390a26200021b816001600160e01b03620002b816565b620002456040516200022d90620006c8565b6040519081900390206001600160e01b036200025a16565b5050505050505050505062000806565b335b90565b6001600160e01b03198082161415620002905760405162461bcd60e51b8152600401620002879062000718565b60405180910390fd5b6001600160e01b0319166000908152600160208190526040909120805460ff19169091179055565b620002d38160106200030a60201b62001a061790919060201c565b6040516001600160a01b038216907f47d1c22a25bb3a5d4e481b9b1e6944c2eade3181a0a20b495ed61d35b5323f2490600090a250565b6200031f82826001600160e01b036200036416565b156200033f5760405162461bcd60e51b8152600401620002879062000706565b6001600160a01b0316600090815260209190915260409020805460ff19166001179055565b60006001600160a01b0382166200038f5760405162461bcd60e51b815260040162000287906200072a565b506001600160a01b03811660009081526020839052604090205460ff165b92915050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620003f657805160ff191683800117855562000426565b8280016001018555821562000426579182015b828111156200042657825182559160200191906001019062000409565b506200043492915062000438565b5090565b6200025791905b808211156200043457600081556001016200043f565b8051620003ad81620007ec565b600082601f8301126200047457600080fd5b81516200048b620004858262000763565b6200073c565b91508082526020830160208301858383011115620004a857600080fd5b620004b5838284620007af565b50505092915050565b600080600080600060a08688031215620004d757600080fd5b85516001600160401b03811115620004ee57600080fd5b620004fc8882890162000462565b95505060208601516001600160401b038111156200051957600080fd5b620005278882890162000462565b94505060408601516001600160401b038111156200054457600080fd5b620005528882890162000462565b93505060608601516001600160401b038111156200056f57600080fd5b6200057d8882890162000462565b9250506080620005908882890162000455565b9150509295509295909350565b6000620005aa826200078b565b620005b681856200078f565b9350620005c8818560208601620007af565b620005d381620007e2565b9093019392505050565b6000620005ec601f836200078f565b7f526f6c65733a206163636f756e7420616c72656164792068617320726f6c6500815260200192915050565b600062000627601c836200078f565b7f4552433136353a20696e76616c696420696e7465726661636520696400000000815260200192915050565b6000620006626022836200078f565b7f526f6c65733a206163636f756e7420697320746865207a65726f206164647265815261737360f01b602082015260400192915050565b6000620006a860118362000798565b704d494e545f574954485f4144445245535360781b815260110192915050565b6000620003ad8262000699565b60408082528101620006e881856200059d565b90508181036020830152620006fe81846200059d565b949350505050565b60208082528101620003ad81620005dd565b60208082528101620003ad8162000618565b60208082528101620003ad8162000653565b6040518181016001600160401b03811182821017156200075b57600080fd5b604052919050565b60006001600160401b038211156200077a57600080fd5b506020601f91909101601f19160190565b5190565b90815260200190565b919050565b60006001600160a01b038216620003ad565b60005b83811015620007cc578181015183820152602001620007b2565b83811115620007dc576000848401525b50505050565b601f01601f191690565b620007f7816200079d565b81146200080357600080fd5b50565b61312180620008166000396000f3fe608060405234801561001057600080fd5b50600436106101fb5760003560e01c8063715018a61161011a578063b88d4fde116100ad578063e5c8b03d1161007c578063e5c8b03d1461042e578063e8a3d48514610436578063e985e9c51461043e578063eb12d61e14610451578063f2fde38b14610464576101fb565b8063b88d4fde146103e0578063b9c4d9fb146103f3578063c0ac998314610413578063c87b56dd1461041b576101fb565b8063938e3d7b116100e9578063938e3d7b1461039f57806395d89b41146103b257806399e0dd7c146103ba578063a22cb465146103cd576101fb565b8063715018a6146103745780637df73e271461037c5780638da5cb5b1461038f5780638f32d59b14610397576101fb565b80632f745c59116101925780636308f1cd116101615780636308f1cd1461031a5780636352211e1461033b578063672a94001461034e57806370a0823114610361576101fb565b80632f745c59146102ce57806342842e0e146102e157806342966c68146102f45780634f6ccce714610307576101fb565b80630e316ab7116101ce5780630e316ab7146102735780630ebd4c7f1461028657806318160ddd146102a657806323b872dd146102bb576101fb565b806301ffc9a71461020057806306fdde0314610229578063081812fc1461023e578063095ea7b31461025e575b600080fd5b61021361020e3660046121d0565b610477565b6040516102209190612d3c565b60405180910390f35b610231610496565b6040516102209190612d88565b61025161024c366004612241565b610524565b6040516102209190612cad565b61027161026c3660046121a0565b610570565b005b610271610281366004612052565b610655565b610299610294366004612241565b610685565b6040516102209190612d2b565b6102ae610778565b6040516102209190612f49565b6102716102c93660046120aa565b61077f565b6102ae6102dc3660046121a0565b6107bc565b6102716102ef3660046120aa565b61081d565b610271610302366004612241565b610838565b6102ae610315366004612241565b610868565b61032d61032836600461225f565b6108af565b604051610220929190612cff565b610251610349366004612241565b6108f2565b61027161035c36600461227e565b610927565b6102ae61036f366004612052565b61093d565b610271610986565b61021361038a366004612052565b6109f4565b610251610a07565b610213610a16565b6102716103ad36600461220c565b610a3a565b610231610a67565b6102716103c836600461220c565b610ac2565b6102716103db366004612170565b610aef565b6102716103ee3660046120f7565b610bbd565b610406610401366004612241565b610bfc565b6040516102209190612d1a565b610231610cf4565b610231610429366004612241565b610d4f565b610271610d7f565b610231610d91565b61021361044c366004612070565b610dec565b61027161045f366004612052565b610e1a565b610271610472366004612052565b610e47565b6001600160e01b03191660009081526001602052604090205460ff1690565b600d805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561051c5780601f106104f15761010080835404028352916020019161051c565b820191906000526020600020905b8154815290600101906020018083116104ff57829003601f168201915b505050505081565b600061052f82610e74565b6105545760405162461bcd60e51b815260040161054b90612e79565b60405180910390fd5b506000908152600360205260409020546001600160a01b031690565b600061057b826108f2565b9050806001600160a01b0316836001600160a01b031614156105af5760405162461bcd60e51b815260040161054b90612ed9565b806001600160a01b03166105c1610e91565b6001600160a01b031614806105dd57506105dd8161044c610e91565b6105f95760405162461bcd60e51b815260040161054b90612e29565b60008281526003602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b61065d610a16565b6106795760405162461bcd60e51b815260040161054b90612e99565b61068281610e95565b50565b6000818152600f602090815260408083208054825181850281018501909352808352606094859484015b828210156106f7576000848152602090819020604080518082019091526002850290910180546001600160a01b031682526001908101548284015290835290920191016106af565b5050505090506060815160405190808252806020026020018201604052801561072a578160200160208202803883390190505b50905060005b82518110156107705782818151811061074557fe5b60200260200101516020015182828151811061075d57fe5b6020908102919091010152600101610730565b509392505050565b600b545b90565b61079061078a610e91565b82610edd565b6107ac5760405162461bcd60e51b815260040161054b90612ee9565b6107b7838383610f62565b505050565b60006107c78361093d565b82106107e55760405162461bcd60e51b815260040161054b90612db9565b6001600160a01b038316600090815260096020526040902080548390811061080957fe5b906000526020600020015490505b92915050565b6107b783838360405180602001604052806000815250610bbd565b61084361078a610e91565b61085f5760405162461bcd60e51b815260040161054b90612f29565b61068281610f81565b6000610872610778565b82106108905760405162461bcd60e51b815260040161054b90612ef9565b600b828154811061089d57fe5b90600052602060002001549050919050565b600f60205281600052604060002081815481106108c857fe5b6000918252602090912060029091020180546001909101546001600160a01b039091169250905082565b6000818152600260205260408120546001600160a01b0316806108175760405162461bcd60e51b815260040161054b90612e49565b610935868686868686610f93565b505050505050565b60006001600160a01b0382166109655760405162461bcd60e51b815260040161054b90612e39565b6001600160a01b038216600090815260046020526040902061081790611043565b61098e610a16565b6109aa5760405162461bcd60e51b815260040161054b90612e99565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b600061081760108363ffffffff61104716565b6000546001600160a01b031690565b600080546001600160a01b0316610a2b610e91565b6001600160a01b031614905090565b610a42610a16565b610a5e5760405162461bcd60e51b815260040161054b90612e99565b6106828161108f565b600e805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561051c5780601f106104f15761010080835404028352916020019161051c565b610aca610a16565b610ae65760405162461bcd60e51b815260040161054b90612e99565b610682816110a6565b610af7610e91565b6001600160a01b0316826001600160a01b03161415610b285760405162461bcd60e51b815260040161054b90612e09565b8060056000610b35610e91565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610b79610e91565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610bb19190612d3c565b60405180910390a35050565b610bce610bc8610e91565b83610edd565b610bea5760405162461bcd60e51b815260040161054b90612ee9565b610bf6848484846110b9565b50505050565b6000818152600f602090815260408083208054825181850281018501909352808352606094859484015b82821015610c6e576000848152602090819020604080518082019091526002850290910180546001600160a01b03168252600190810154828401529083529092019101610c26565b50505050905060608151604051908082528060200260200182016040528015610ca1578160200160208202803883390190505b50905060005b825181101561077057828181518110610cbc57fe5b602002602001015160000151828281518110610cd457fe5b6001600160a01b0390921660209283029190910190910152600101610ca7565b6007805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561051c5780601f106104f15761010080835404028352916020019161051c565b6060610d5a82610e74565b610d765760405162461bcd60e51b815260040161054b90612ec9565b610817826110ec565b610d8f610d8a610e91565b610e95565b565b6006805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561051c5780601f106104f15761010080835404028352916020019161051c565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b610e22610a16565b610e3e5760405162461bcd60e51b815260040161054b90612e99565b61068281611227565b610e4f610a16565b610e6b5760405162461bcd60e51b815260040161054b90612e99565b6106828161126f565b6000908152600260205260409020546001600160a01b0316151590565b3390565b610ea660108263ffffffff6112f016565b6040516001600160a01b038216907f3525e22824a8a7df2c9a6029941c824cf95b6447f1e13d5128fd3826d35afe8b90600090a250565b6000610ee882610e74565b610f045760405162461bcd60e51b815260040161054b90612e19565b6000610f0f836108f2565b9050806001600160a01b0316846001600160a01b03161480610f4a5750836001600160a01b0316610f3f84610524565b6001600160a01b0316145b80610f5a5750610f5a8185610dec565b949350505050565b610f6d838383611338565b610f77838261143e565b6107b78282611533565b610682610f8d826108f2565b82611571565b61101260013088604051602001610fab929190612c87565b6040516020818303038152906040528051906020012087878760405160008152602001604052604051610fe19493929190612d4a565b6020604051602081039080840390855afa158015611003573d6000803e3d6000fd5b505050602060405103516109f4565b61102e5760405162461bcd60e51b815260040161054b90612f39565b611039338784611584565b61093586826117a8565b5490565b60006001600160a01b03821661106f5760405162461bcd60e51b815260040161054b90612ea9565b506001600160a01b03166000908152602091909152604090205460ff1690565b80516110a2906006906020840190611dfd565b5050565b80516110a2906007906020840190611dfd565b6110c4848484610f62565b6110d0848484846117d7565b610bf65760405162461bcd60e51b815260040161054b90612dc9565b6000818152600860209081526040918290208054835160026001831615610100026000190190921691909104601f8101849004840282018401909452838152606093610817939192918301828280156111865780601f1061115b57610100808354040283529160200191611186565b820191906000526020600020905b81548152906001019060200180831161116957829003601f168201915b505060078054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152955091935091508301828280156112145780601f106111e957610100808354040283529160200191611214565b820191906000526020600020905b8154815290600101906020018083116111f757829003601f168201915b505050505061191190919063ffffffff16565b61123860108263ffffffff611a0616565b6040516001600160a01b038216907f47d1c22a25bb3a5d4e481b9b1e6944c2eade3181a0a20b495ed61d35b5323f2490600090a250565b6001600160a01b0381166112955760405162461bcd60e51b815260040161054b90612dd9565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6112fa8282611047565b6113165760405162461bcd60e51b815260040161054b90612e59565b6001600160a01b0316600090815260209190915260409020805460ff19169055565b826001600160a01b031661134b826108f2565b6001600160a01b0316146113715760405162461bcd60e51b815260040161054b90612eb9565b6001600160a01b0382166113975760405162461bcd60e51b815260040161054b90612df9565b6113a081611a52565b6001600160a01b03831660009081526004602052604090206113c190611a8d565b6001600160a01b03821660009081526004602052604090206113e290611aa4565b60008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b03821660009081526009602052604081205461146890600163ffffffff611aad16565b6000838152600a6020526040902054909150808214611503576001600160a01b03841660009081526009602052604081208054849081106114a557fe5b906000526020600020015490508060096000876001600160a01b03166001600160a01b0316815260200190815260200160002083815481106114e357fe5b6000918252602080832090910192909255918252600a9052604090208190555b6001600160a01b038416600090815260096020526040902080549061152c906000198301611e7b565b5050505050565b6001600160a01b0390911660009081526009602081815260408084208054868652600a84529185208290559282526001810183559183529091200155565b61157b8282611abf565b6110a281611aeb565b61158e8383611b29565b606081516040519080825280602002602001820160405280156115bb578160200160208202803883390190505b509050606082516040519080825280602002602001820160405280156115eb578160200160208202803883390190505b50905060005b835181101561175e5760006001600160a01b031684828151811061161157fe5b6020026020010151600001516001600160a01b031614156116445760405162461bcd60e51b815260040161054b90612f19565b83818151811061165057fe5b6020026020010151602001516000141561167c5760405162461bcd60e51b815260040161054b90612d99565b6000858152600f60205260409020845185908390811061169857fe5b602090810291909101810151825460018082018555600094855293839020825160029092020180546001600160a01b0319166001600160a01b0390921691909117815591015191015583518490829081106116ef57fe5b60200260200101516000015183828151811061170757fe5b60200260200101906001600160a01b031690816001600160a01b03168152505083818151811061173357fe5b60200260200101516020015182828151811061174b57fe5b60209081029190910101526001016115f1565b5082511561152c577f99aba1d63749cfd5ad1afda7c4663840924d54eb5f005bbbeadedc6ec13674b284838360405161179993929190612f57565b60405180910390a15050505050565b6117b182610e74565b6117cd5760405162461bcd60e51b815260040161054b90612e89565b6110a28282611b46565b60006117eb846001600160a01b0316611b65565b6117f757506001610f5a565b600060606001600160a01b038616630a85bd0160e11b611815610e91565b89888860405160240161182b9493929190612cbb565b60408051601f198184030181529181526020820180516001600160e01b03166001600160e01b03199094169390931790925290516118699190612c74565b6000604051808303816000865af19150503d80600081146118a6576040519150601f19603f3d011682016040523d82523d6000602084013e6118ab565b606091505b5091509150816118dd578051156118c55780518082602001fd5b60405162461bcd60e51b815260040161054b90612dc9565b6000818060200190516118f391908101906121ee565b6001600160e01b031916630a85bd0160e11b149350610f5a92505050565b6060808390506060839050606081518351016040519080825280601f01601f19166020018201604052801561194d576020820181803883390190505b5090506000805b84518110156119a55784818151811061196957fe5b602001015160f81c60f81b83838060010194508151811061198657fe5b60200101906001600160f81b031916908160001a905350600101611954565b5060005b83518110156119fa578381815181106119be57fe5b602001015160f81c60f81b8383806001019450815181106119db57fe5b60200101906001600160f81b031916908160001a9053506001016119a9565b50909695505050505050565b611a108282611047565b15611a2d5760405162461bcd60e51b815260040161054b90612da9565b6001600160a01b0316600090815260209190915260409020805460ff19166001179055565b6000818152600360205260409020546001600160a01b03161561068257600090815260036020526040902080546001600160a01b0319169055565b8054611aa090600163ffffffff611aad16565b9055565b80546001019055565b600082821115611ab957fe5b50900390565b611ac98282611b9e565b611ad3828261143e565b6000818152600a60205260408120556110a281611c56565b600081815260086020526040902054600260001961010060018416150201909116041561068257600081815260086020526040812061068291611e9f565b611b338282611cf2565b611b3d8282611533565b6110a281611db9565b600082815260086020908152604090912082516107b792840190611dfd565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590610f5a575050151592915050565b816001600160a01b0316611bb1826108f2565b6001600160a01b031614611bd75760405162461bcd60e51b815260040161054b90612f09565b611be081611a52565b6001600160a01b0382166000908152600460205260409020611c0190611a8d565b60008181526002602052604080822080546001600160a01b0319169055518291906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600b54600090611c6d90600163ffffffff611aad16565b6000838152600c6020526040812054600b8054939450909284908110611c8f57fe5b9060005260206000200154905080600b8381548110611caa57fe5b6000918252602080832090910192909255828152600c90915260409020829055600b805490611cdd906000198301611e7b565b505050600091825250600c6020526040812055565b6001600160a01b038216611d185760405162461bcd60e51b815260040161054b90612e69565b611d2181610e74565b15611d3e5760405162461bcd60e51b815260040161054b90612de9565b600081815260026020908152604080832080546001600160a01b0319166001600160a01b038716908117909155835260049091529020611d7d90611aa4565b60405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600b80546000838152600c60205260408120829055600182018355919091527f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db90155565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10611e3e57805160ff1916838001178555611e6b565b82800160010185558215611e6b579182015b82811115611e6b578251825591602001919060010190611e50565b50611e77929150611edf565b5090565b8154818355818111156107b7576000838152602090206107b7918101908301611edf565b50805460018160011615610100020316600290046000825580601f10611ec55750610682565b601f01602090049060005260206000209081019061068291905b61077c91905b80821115611e775760008155600101611ee5565b8035610817816130a6565b600082601f830112611f1557600080fd5b8135611f28611f2382612fb2565b612f8b565b91508181835260208401935060208101905083856040840282011115611f4d57600080fd5b60005b83811015611f7b5781611f638882612000565b84525060209092019160409190910190600101611f50565b5050505092915050565b8035610817816130ba565b8035610817816130c3565b8035610817816130cc565b8051610817816130cc565b600082601f830112611fc257600080fd5b8135611fd0611f2382612fd3565b91508082526020830160208301858383011115611fec57600080fd5b611ff783828461304d565b50505092915050565b60006040828403121561201257600080fd5b61201c6040612f8b565b9050600061202a8484611ef9565b825250602061203b84848301611f90565b60208301525092915050565b8035610817816130d5565b60006020828403121561206457600080fd5b6000610f5a8484611ef9565b6000806040838503121561208357600080fd5b600061208f8585611ef9565b92505060206120a085828601611ef9565b9150509250929050565b6000806000606084860312156120bf57600080fd5b60006120cb8686611ef9565b93505060206120dc86828701611ef9565b92505060406120ed86828701611f90565b9150509250925092565b6000806000806080858703121561210d57600080fd5b60006121198787611ef9565b945050602061212a87828801611ef9565b935050604061213b87828801611f90565b925050606085013567ffffffffffffffff81111561215857600080fd5b61216487828801611fb1565b91505092959194509250565b6000806040838503121561218357600080fd5b600061218f8585611ef9565b92505060206120a085828601611f85565b600080604083850312156121b357600080fd5b60006121bf8585611ef9565b92505060206120a085828601611f90565b6000602082840312156121e257600080fd5b6000610f5a8484611f9b565b60006020828403121561220057600080fd5b6000610f5a8484611fa6565b60006020828403121561221e57600080fd5b813567ffffffffffffffff81111561223557600080fd5b610f5a84828501611fb1565b60006020828403121561225357600080fd5b6000610f5a8484611f90565b6000806040838503121561227257600080fd5b60006121bf8585611f90565b60008060008060008060c0878903121561229757600080fd5b60006122a38989611f90565b96505060206122b489828a01612047565b95505060406122c589828a01611f90565b94505060606122d689828a01611f90565b935050608087013567ffffffffffffffff8111156122f357600080fd5b6122ff89828a01611f04565b92505060a087013567ffffffffffffffff81111561231c57600080fd5b61232889828a01611fb1565b9150509295509295509295565b60006123418383612355565b505060200190565b60006123418383612462565b61235e81613013565b82525050565b600061236f82613001565b6123798185613005565b935061238483612ffb565b8060005b838110156123b257815161239c8882612335565b97506123a783612ffb565b925050600101612388565b509495945050505050565b60006123c882613001565b6123d28185613005565b93506123dd83612ffb565b8060005b838110156123b25781516123f58882612335565b975061240083612ffb565b9250506001016123e1565b600061241682613001565b6124208185613005565b935061242b83612ffb565b8060005b838110156123b25781516124438882612349565b975061244e83612ffb565b92505060010161242f565b61235e8161301e565b61235e8161077c565b600061247682613001565b6124808185613005565b9350612490818560208601613059565b61249981613096565b9093019392505050565b60006124ae82613001565b6124b8818561300e565b93506124c8818560208601613059565b9290920192915050565b61235e6124de82613042565b613085565b60006124f0601c83613005565b7f4665652076616c75652073686f756c6420626520706f73697469766500000000815260200192915050565b6000612529601f83613005565b7f526f6c65733a206163636f756e7420616c72656164792068617320726f6c6500815260200192915050565b6000612562602b83613005565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7581526a74206f6620626f756e647360a81b602082015260400192915050565b60006125af603283613005565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526581527131b2b4bb32b91034b6b83632b6b2b73a32b960711b602082015260400192915050565b6000612603602683613005565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181526564647265737360d01b602082015260400192915050565b600061264b601c83613005565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000815260200192915050565b6000612684602483613005565b7f4552433732313a207472616e7366657220746f20746865207a65726f206164648152637265737360e01b602082015260400192915050565b60006126ca601983613005565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000815260200192915050565b6000612703602c83613005565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b602082015260400192915050565b6000612751603883613005565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7781527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015260400192915050565b60006127b0602a83613005565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a65815269726f206164647265737360b01b602082015260400192915050565b60006127fc602983613005565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737481526832b73a103a37b5b2b760b91b602082015260400192915050565b6000612847602183613005565b7f526f6c65733a206163636f756e7420646f6573206e6f74206861766520726f6c8152606560f81b602082015260400192915050565b600061288a602083613005565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373815260200192915050565b60006128c3602c83613005565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b602082015260400192915050565b6000612911602c83613005565b7f4552433732314d657461646174613a2055524920736574206f66206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b602082015260400192915050565b600061295f602083613005565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572815260200192915050565b6000612998602283613005565b7f526f6c65733a206163636f756e7420697320746865207a65726f206164647265815261737360f01b602082015260400192915050565b60006129dc602983613005565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206981526839903737ba1037bbb760b91b602082015260400192915050565b6000612a27602f83613005565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f81526e3732bc34b9ba32b73a103a37b5b2b760891b602082015260400192915050565b6000612a78602183613005565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e658152603960f91b602082015260400192915050565b6000612abb603183613005565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f8152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b602082015260400192915050565b6000612b0e602c83613005565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f81526b7574206f6620626f756e647360a01b602082015260400192915050565b6000612b5c602583613005565b7f4552433732313a206275726e206f6620746f6b656e2074686174206973206e6f8152643a1037bbb760d91b602082015260400192915050565b6000612ba3601b83613005565b7f526563697069656e742073686f756c642062652070726573656e740000000000815260200192915050565b6000612bdc603083613005565b7f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7781526f1b995c881b9bdc88185c1c1c9bdd995960821b602082015260400192915050565b6000612c2e601a83613005565b7f7369676e65722073686f756c64207369676e20746f6b656e4964000000000000815260200192915050565b61235e612c668261077c565b61077c565b61235e8161303c565b6000612c8082846124a3565b9392505050565b6000612c9382856124d2565b601482019150612ca38284612c5a565b5060200192915050565b602081016108178284612355565b60808101612cc98287612355565b612cd66020830186612355565b612ce36040830185612462565b8181036060830152612cf5818461246b565b9695505050505050565b60408101612d0d8285612355565b612c806020830184612462565b60208082528101612c8081846123bd565b60208082528101612c80818461240b565b602081016108178284612459565b60808101612d588287612462565b612d656020830186612c6b565b612d726040830185612462565b612d7f6060830184612462565b95945050505050565b60208082528101612c80818461246b565b60208082528101610817816124e3565b602080825281016108178161251c565b6020808252810161081781612555565b60208082528101610817816125a2565b60208082528101610817816125f6565b602080825281016108178161263e565b6020808252810161081781612677565b60208082528101610817816126bd565b60208082528101610817816126f6565b6020808252810161081781612744565b60208082528101610817816127a3565b60208082528101610817816127ef565b602080825281016108178161283a565b602080825281016108178161287d565b60208082528101610817816128b6565b6020808252810161081781612904565b6020808252810161081781612952565b602080825281016108178161298b565b60208082528101610817816129cf565b6020808252810161081781612a1a565b6020808252810161081781612a6b565b6020808252810161081781612aae565b6020808252810161081781612b01565b6020808252810161081781612b4f565b6020808252810161081781612b96565b6020808252810161081781612bcf565b6020808252810161081781612c21565b602081016108178284612462565b60608101612f658286612462565b8181036020830152612f778185612364565b90508181036040830152612d7f818461240b565b60405181810167ffffffffffffffff81118282101715612faa57600080fd5b604052919050565b600067ffffffffffffffff821115612fc957600080fd5b5060209081020190565b600067ffffffffffffffff821115612fea57600080fd5b506020601f91909101601f19160190565b60200190565b5190565b90815260200190565b919050565b600061081782613030565b151590565b6001600160e01b03191690565b6001600160a01b031690565b60ff1690565b600061081782613013565b82818337506000910152565b60005b8381101561307457818101518382015260200161305c565b83811115610bf65750506000910152565b6000610817826000610817826130a0565b601f01601f191690565b60601b90565b6130af81613013565b811461068257600080fd5b6130af8161301e565b6130af8161077c565b6130af81613023565b6130af8161303c56fea365627a7a7231582073eb079a03654ed618c7d3df054d2a41ef9837165730b15d5916a3e7a071ef166c6578706572696d656e74616cf564736f6c6343000511004000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001a0000000000000000000000000418bd146d56a54dfcc1dfb44890cde870c50df4f000000000000000000000000000000000000000000000000000000000000000e4e465420535441525320434f494e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044e46545300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004568747470733a2f2f6e667473746172732e6170702f6261636b656e642f6170692f76312f6e6674732f6d657461646174612f7b616464726573737d2f7b746f6b656e49647d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101fb5760003560e01c8063715018a61161011a578063b88d4fde116100ad578063e5c8b03d1161007c578063e5c8b03d1461042e578063e8a3d48514610436578063e985e9c51461043e578063eb12d61e14610451578063f2fde38b14610464576101fb565b8063b88d4fde146103e0578063b9c4d9fb146103f3578063c0ac998314610413578063c87b56dd1461041b576101fb565b8063938e3d7b116100e9578063938e3d7b1461039f57806395d89b41146103b257806399e0dd7c146103ba578063a22cb465146103cd576101fb565b8063715018a6146103745780637df73e271461037c5780638da5cb5b1461038f5780638f32d59b14610397576101fb565b80632f745c59116101925780636308f1cd116101615780636308f1cd1461031a5780636352211e1461033b578063672a94001461034e57806370a0823114610361576101fb565b80632f745c59146102ce57806342842e0e146102e157806342966c68146102f45780634f6ccce714610307576101fb565b80630e316ab7116101ce5780630e316ab7146102735780630ebd4c7f1461028657806318160ddd146102a657806323b872dd146102bb576101fb565b806301ffc9a71461020057806306fdde0314610229578063081812fc1461023e578063095ea7b31461025e575b600080fd5b61021361020e3660046121d0565b610477565b6040516102209190612d3c565b60405180910390f35b610231610496565b6040516102209190612d88565b61025161024c366004612241565b610524565b6040516102209190612cad565b61027161026c3660046121a0565b610570565b005b610271610281366004612052565b610655565b610299610294366004612241565b610685565b6040516102209190612d2b565b6102ae610778565b6040516102209190612f49565b6102716102c93660046120aa565b61077f565b6102ae6102dc3660046121a0565b6107bc565b6102716102ef3660046120aa565b61081d565b610271610302366004612241565b610838565b6102ae610315366004612241565b610868565b61032d61032836600461225f565b6108af565b604051610220929190612cff565b610251610349366004612241565b6108f2565b61027161035c36600461227e565b610927565b6102ae61036f366004612052565b61093d565b610271610986565b61021361038a366004612052565b6109f4565b610251610a07565b610213610a16565b6102716103ad36600461220c565b610a3a565b610231610a67565b6102716103c836600461220c565b610ac2565b6102716103db366004612170565b610aef565b6102716103ee3660046120f7565b610bbd565b610406610401366004612241565b610bfc565b6040516102209190612d1a565b610231610cf4565b610231610429366004612241565b610d4f565b610271610d7f565b610231610d91565b61021361044c366004612070565b610dec565b61027161045f366004612052565b610e1a565b610271610472366004612052565b610e47565b6001600160e01b03191660009081526001602052604090205460ff1690565b600d805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561051c5780601f106104f15761010080835404028352916020019161051c565b820191906000526020600020905b8154815290600101906020018083116104ff57829003601f168201915b505050505081565b600061052f82610e74565b6105545760405162461bcd60e51b815260040161054b90612e79565b60405180910390fd5b506000908152600360205260409020546001600160a01b031690565b600061057b826108f2565b9050806001600160a01b0316836001600160a01b031614156105af5760405162461bcd60e51b815260040161054b90612ed9565b806001600160a01b03166105c1610e91565b6001600160a01b031614806105dd57506105dd8161044c610e91565b6105f95760405162461bcd60e51b815260040161054b90612e29565b60008281526003602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b61065d610a16565b6106795760405162461bcd60e51b815260040161054b90612e99565b61068281610e95565b50565b6000818152600f602090815260408083208054825181850281018501909352808352606094859484015b828210156106f7576000848152602090819020604080518082019091526002850290910180546001600160a01b031682526001908101548284015290835290920191016106af565b5050505090506060815160405190808252806020026020018201604052801561072a578160200160208202803883390190505b50905060005b82518110156107705782818151811061074557fe5b60200260200101516020015182828151811061075d57fe5b6020908102919091010152600101610730565b509392505050565b600b545b90565b61079061078a610e91565b82610edd565b6107ac5760405162461bcd60e51b815260040161054b90612ee9565b6107b7838383610f62565b505050565b60006107c78361093d565b82106107e55760405162461bcd60e51b815260040161054b90612db9565b6001600160a01b038316600090815260096020526040902080548390811061080957fe5b906000526020600020015490505b92915050565b6107b783838360405180602001604052806000815250610bbd565b61084361078a610e91565b61085f5760405162461bcd60e51b815260040161054b90612f29565b61068281610f81565b6000610872610778565b82106108905760405162461bcd60e51b815260040161054b90612ef9565b600b828154811061089d57fe5b90600052602060002001549050919050565b600f60205281600052604060002081815481106108c857fe5b6000918252602090912060029091020180546001909101546001600160a01b039091169250905082565b6000818152600260205260408120546001600160a01b0316806108175760405162461bcd60e51b815260040161054b90612e49565b610935868686868686610f93565b505050505050565b60006001600160a01b0382166109655760405162461bcd60e51b815260040161054b90612e39565b6001600160a01b038216600090815260046020526040902061081790611043565b61098e610a16565b6109aa5760405162461bcd60e51b815260040161054b90612e99565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b600061081760108363ffffffff61104716565b6000546001600160a01b031690565b600080546001600160a01b0316610a2b610e91565b6001600160a01b031614905090565b610a42610a16565b610a5e5760405162461bcd60e51b815260040161054b90612e99565b6106828161108f565b600e805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561051c5780601f106104f15761010080835404028352916020019161051c565b610aca610a16565b610ae65760405162461bcd60e51b815260040161054b90612e99565b610682816110a6565b610af7610e91565b6001600160a01b0316826001600160a01b03161415610b285760405162461bcd60e51b815260040161054b90612e09565b8060056000610b35610e91565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610b79610e91565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610bb19190612d3c565b60405180910390a35050565b610bce610bc8610e91565b83610edd565b610bea5760405162461bcd60e51b815260040161054b90612ee9565b610bf6848484846110b9565b50505050565b6000818152600f602090815260408083208054825181850281018501909352808352606094859484015b82821015610c6e576000848152602090819020604080518082019091526002850290910180546001600160a01b03168252600190810154828401529083529092019101610c26565b50505050905060608151604051908082528060200260200182016040528015610ca1578160200160208202803883390190505b50905060005b825181101561077057828181518110610cbc57fe5b602002602001015160000151828281518110610cd457fe5b6001600160a01b0390921660209283029190910190910152600101610ca7565b6007805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561051c5780601f106104f15761010080835404028352916020019161051c565b6060610d5a82610e74565b610d765760405162461bcd60e51b815260040161054b90612ec9565b610817826110ec565b610d8f610d8a610e91565b610e95565b565b6006805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561051c5780601f106104f15761010080835404028352916020019161051c565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b610e22610a16565b610e3e5760405162461bcd60e51b815260040161054b90612e99565b61068281611227565b610e4f610a16565b610e6b5760405162461bcd60e51b815260040161054b90612e99565b6106828161126f565b6000908152600260205260409020546001600160a01b0316151590565b3390565b610ea660108263ffffffff6112f016565b6040516001600160a01b038216907f3525e22824a8a7df2c9a6029941c824cf95b6447f1e13d5128fd3826d35afe8b90600090a250565b6000610ee882610e74565b610f045760405162461bcd60e51b815260040161054b90612e19565b6000610f0f836108f2565b9050806001600160a01b0316846001600160a01b03161480610f4a5750836001600160a01b0316610f3f84610524565b6001600160a01b0316145b80610f5a5750610f5a8185610dec565b949350505050565b610f6d838383611338565b610f77838261143e565b6107b78282611533565b610682610f8d826108f2565b82611571565b61101260013088604051602001610fab929190612c87565b6040516020818303038152906040528051906020012087878760405160008152602001604052604051610fe19493929190612d4a565b6020604051602081039080840390855afa158015611003573d6000803e3d6000fd5b505050602060405103516109f4565b61102e5760405162461bcd60e51b815260040161054b90612f39565b611039338784611584565b61093586826117a8565b5490565b60006001600160a01b03821661106f5760405162461bcd60e51b815260040161054b90612ea9565b506001600160a01b03166000908152602091909152604090205460ff1690565b80516110a2906006906020840190611dfd565b5050565b80516110a2906007906020840190611dfd565b6110c4848484610f62565b6110d0848484846117d7565b610bf65760405162461bcd60e51b815260040161054b90612dc9565b6000818152600860209081526040918290208054835160026001831615610100026000190190921691909104601f8101849004840282018401909452838152606093610817939192918301828280156111865780601f1061115b57610100808354040283529160200191611186565b820191906000526020600020905b81548152906001019060200180831161116957829003601f168201915b505060078054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152955091935091508301828280156112145780601f106111e957610100808354040283529160200191611214565b820191906000526020600020905b8154815290600101906020018083116111f757829003601f168201915b505050505061191190919063ffffffff16565b61123860108263ffffffff611a0616565b6040516001600160a01b038216907f47d1c22a25bb3a5d4e481b9b1e6944c2eade3181a0a20b495ed61d35b5323f2490600090a250565b6001600160a01b0381166112955760405162461bcd60e51b815260040161054b90612dd9565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6112fa8282611047565b6113165760405162461bcd60e51b815260040161054b90612e59565b6001600160a01b0316600090815260209190915260409020805460ff19169055565b826001600160a01b031661134b826108f2565b6001600160a01b0316146113715760405162461bcd60e51b815260040161054b90612eb9565b6001600160a01b0382166113975760405162461bcd60e51b815260040161054b90612df9565b6113a081611a52565b6001600160a01b03831660009081526004602052604090206113c190611a8d565b6001600160a01b03821660009081526004602052604090206113e290611aa4565b60008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b03821660009081526009602052604081205461146890600163ffffffff611aad16565b6000838152600a6020526040902054909150808214611503576001600160a01b03841660009081526009602052604081208054849081106114a557fe5b906000526020600020015490508060096000876001600160a01b03166001600160a01b0316815260200190815260200160002083815481106114e357fe5b6000918252602080832090910192909255918252600a9052604090208190555b6001600160a01b038416600090815260096020526040902080549061152c906000198301611e7b565b5050505050565b6001600160a01b0390911660009081526009602081815260408084208054868652600a84529185208290559282526001810183559183529091200155565b61157b8282611abf565b6110a281611aeb565b61158e8383611b29565b606081516040519080825280602002602001820160405280156115bb578160200160208202803883390190505b509050606082516040519080825280602002602001820160405280156115eb578160200160208202803883390190505b50905060005b835181101561175e5760006001600160a01b031684828151811061161157fe5b6020026020010151600001516001600160a01b031614156116445760405162461bcd60e51b815260040161054b90612f19565b83818151811061165057fe5b6020026020010151602001516000141561167c5760405162461bcd60e51b815260040161054b90612d99565b6000858152600f60205260409020845185908390811061169857fe5b602090810291909101810151825460018082018555600094855293839020825160029092020180546001600160a01b0319166001600160a01b0390921691909117815591015191015583518490829081106116ef57fe5b60200260200101516000015183828151811061170757fe5b60200260200101906001600160a01b031690816001600160a01b03168152505083818151811061173357fe5b60200260200101516020015182828151811061174b57fe5b60209081029190910101526001016115f1565b5082511561152c577f99aba1d63749cfd5ad1afda7c4663840924d54eb5f005bbbeadedc6ec13674b284838360405161179993929190612f57565b60405180910390a15050505050565b6117b182610e74565b6117cd5760405162461bcd60e51b815260040161054b90612e89565b6110a28282611b46565b60006117eb846001600160a01b0316611b65565b6117f757506001610f5a565b600060606001600160a01b038616630a85bd0160e11b611815610e91565b89888860405160240161182b9493929190612cbb565b60408051601f198184030181529181526020820180516001600160e01b03166001600160e01b03199094169390931790925290516118699190612c74565b6000604051808303816000865af19150503d80600081146118a6576040519150601f19603f3d011682016040523d82523d6000602084013e6118ab565b606091505b5091509150816118dd578051156118c55780518082602001fd5b60405162461bcd60e51b815260040161054b90612dc9565b6000818060200190516118f391908101906121ee565b6001600160e01b031916630a85bd0160e11b149350610f5a92505050565b6060808390506060839050606081518351016040519080825280601f01601f19166020018201604052801561194d576020820181803883390190505b5090506000805b84518110156119a55784818151811061196957fe5b602001015160f81c60f81b83838060010194508151811061198657fe5b60200101906001600160f81b031916908160001a905350600101611954565b5060005b83518110156119fa578381815181106119be57fe5b602001015160f81c60f81b8383806001019450815181106119db57fe5b60200101906001600160f81b031916908160001a9053506001016119a9565b50909695505050505050565b611a108282611047565b15611a2d5760405162461bcd60e51b815260040161054b90612da9565b6001600160a01b0316600090815260209190915260409020805460ff19166001179055565b6000818152600360205260409020546001600160a01b03161561068257600090815260036020526040902080546001600160a01b0319169055565b8054611aa090600163ffffffff611aad16565b9055565b80546001019055565b600082821115611ab957fe5b50900390565b611ac98282611b9e565b611ad3828261143e565b6000818152600a60205260408120556110a281611c56565b600081815260086020526040902054600260001961010060018416150201909116041561068257600081815260086020526040812061068291611e9f565b611b338282611cf2565b611b3d8282611533565b6110a281611db9565b600082815260086020908152604090912082516107b792840190611dfd565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590610f5a575050151592915050565b816001600160a01b0316611bb1826108f2565b6001600160a01b031614611bd75760405162461bcd60e51b815260040161054b90612f09565b611be081611a52565b6001600160a01b0382166000908152600460205260409020611c0190611a8d565b60008181526002602052604080822080546001600160a01b0319169055518291906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600b54600090611c6d90600163ffffffff611aad16565b6000838152600c6020526040812054600b8054939450909284908110611c8f57fe5b9060005260206000200154905080600b8381548110611caa57fe5b6000918252602080832090910192909255828152600c90915260409020829055600b805490611cdd906000198301611e7b565b505050600091825250600c6020526040812055565b6001600160a01b038216611d185760405162461bcd60e51b815260040161054b90612e69565b611d2181610e74565b15611d3e5760405162461bcd60e51b815260040161054b90612de9565b600081815260026020908152604080832080546001600160a01b0319166001600160a01b038716908117909155835260049091529020611d7d90611aa4565b60405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600b80546000838152600c60205260408120829055600182018355919091527f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db90155565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10611e3e57805160ff1916838001178555611e6b565b82800160010185558215611e6b579182015b82811115611e6b578251825591602001919060010190611e50565b50611e77929150611edf565b5090565b8154818355818111156107b7576000838152602090206107b7918101908301611edf565b50805460018160011615610100020316600290046000825580601f10611ec55750610682565b601f01602090049060005260206000209081019061068291905b61077c91905b80821115611e775760008155600101611ee5565b8035610817816130a6565b600082601f830112611f1557600080fd5b8135611f28611f2382612fb2565b612f8b565b91508181835260208401935060208101905083856040840282011115611f4d57600080fd5b60005b83811015611f7b5781611f638882612000565b84525060209092019160409190910190600101611f50565b5050505092915050565b8035610817816130ba565b8035610817816130c3565b8035610817816130cc565b8051610817816130cc565b600082601f830112611fc257600080fd5b8135611fd0611f2382612fd3565b91508082526020830160208301858383011115611fec57600080fd5b611ff783828461304d565b50505092915050565b60006040828403121561201257600080fd5b61201c6040612f8b565b9050600061202a8484611ef9565b825250602061203b84848301611f90565b60208301525092915050565b8035610817816130d5565b60006020828403121561206457600080fd5b6000610f5a8484611ef9565b6000806040838503121561208357600080fd5b600061208f8585611ef9565b92505060206120a085828601611ef9565b9150509250929050565b6000806000606084860312156120bf57600080fd5b60006120cb8686611ef9565b93505060206120dc86828701611ef9565b92505060406120ed86828701611f90565b9150509250925092565b6000806000806080858703121561210d57600080fd5b60006121198787611ef9565b945050602061212a87828801611ef9565b935050604061213b87828801611f90565b925050606085013567ffffffffffffffff81111561215857600080fd5b61216487828801611fb1565b91505092959194509250565b6000806040838503121561218357600080fd5b600061218f8585611ef9565b92505060206120a085828601611f85565b600080604083850312156121b357600080fd5b60006121bf8585611ef9565b92505060206120a085828601611f90565b6000602082840312156121e257600080fd5b6000610f5a8484611f9b565b60006020828403121561220057600080fd5b6000610f5a8484611fa6565b60006020828403121561221e57600080fd5b813567ffffffffffffffff81111561223557600080fd5b610f5a84828501611fb1565b60006020828403121561225357600080fd5b6000610f5a8484611f90565b6000806040838503121561227257600080fd5b60006121bf8585611f90565b60008060008060008060c0878903121561229757600080fd5b60006122a38989611f90565b96505060206122b489828a01612047565b95505060406122c589828a01611f90565b94505060606122d689828a01611f90565b935050608087013567ffffffffffffffff8111156122f357600080fd5b6122ff89828a01611f04565b92505060a087013567ffffffffffffffff81111561231c57600080fd5b61232889828a01611fb1565b9150509295509295509295565b60006123418383612355565b505060200190565b60006123418383612462565b61235e81613013565b82525050565b600061236f82613001565b6123798185613005565b935061238483612ffb565b8060005b838110156123b257815161239c8882612335565b97506123a783612ffb565b925050600101612388565b509495945050505050565b60006123c882613001565b6123d28185613005565b93506123dd83612ffb565b8060005b838110156123b25781516123f58882612335565b975061240083612ffb565b9250506001016123e1565b600061241682613001565b6124208185613005565b935061242b83612ffb565b8060005b838110156123b25781516124438882612349565b975061244e83612ffb565b92505060010161242f565b61235e8161301e565b61235e8161077c565b600061247682613001565b6124808185613005565b9350612490818560208601613059565b61249981613096565b9093019392505050565b60006124ae82613001565b6124b8818561300e565b93506124c8818560208601613059565b9290920192915050565b61235e6124de82613042565b613085565b60006124f0601c83613005565b7f4665652076616c75652073686f756c6420626520706f73697469766500000000815260200192915050565b6000612529601f83613005565b7f526f6c65733a206163636f756e7420616c72656164792068617320726f6c6500815260200192915050565b6000612562602b83613005565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7581526a74206f6620626f756e647360a81b602082015260400192915050565b60006125af603283613005565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526581527131b2b4bb32b91034b6b83632b6b2b73a32b960711b602082015260400192915050565b6000612603602683613005565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181526564647265737360d01b602082015260400192915050565b600061264b601c83613005565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000815260200192915050565b6000612684602483613005565b7f4552433732313a207472616e7366657220746f20746865207a65726f206164648152637265737360e01b602082015260400192915050565b60006126ca601983613005565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000815260200192915050565b6000612703602c83613005565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b602082015260400192915050565b6000612751603883613005565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7781527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015260400192915050565b60006127b0602a83613005565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a65815269726f206164647265737360b01b602082015260400192915050565b60006127fc602983613005565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737481526832b73a103a37b5b2b760b91b602082015260400192915050565b6000612847602183613005565b7f526f6c65733a206163636f756e7420646f6573206e6f74206861766520726f6c8152606560f81b602082015260400192915050565b600061288a602083613005565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373815260200192915050565b60006128c3602c83613005565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b602082015260400192915050565b6000612911602c83613005565b7f4552433732314d657461646174613a2055524920736574206f66206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b602082015260400192915050565b600061295f602083613005565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572815260200192915050565b6000612998602283613005565b7f526f6c65733a206163636f756e7420697320746865207a65726f206164647265815261737360f01b602082015260400192915050565b60006129dc602983613005565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206981526839903737ba1037bbb760b91b602082015260400192915050565b6000612a27602f83613005565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f81526e3732bc34b9ba32b73a103a37b5b2b760891b602082015260400192915050565b6000612a78602183613005565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e658152603960f91b602082015260400192915050565b6000612abb603183613005565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f8152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b602082015260400192915050565b6000612b0e602c83613005565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f81526b7574206f6620626f756e647360a01b602082015260400192915050565b6000612b5c602583613005565b7f4552433732313a206275726e206f6620746f6b656e2074686174206973206e6f8152643a1037bbb760d91b602082015260400192915050565b6000612ba3601b83613005565b7f526563697069656e742073686f756c642062652070726573656e740000000000815260200192915050565b6000612bdc603083613005565b7f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7781526f1b995c881b9bdc88185c1c1c9bdd995960821b602082015260400192915050565b6000612c2e601a83613005565b7f7369676e65722073686f756c64207369676e20746f6b656e4964000000000000815260200192915050565b61235e612c668261077c565b61077c565b61235e8161303c565b6000612c8082846124a3565b9392505050565b6000612c9382856124d2565b601482019150612ca38284612c5a565b5060200192915050565b602081016108178284612355565b60808101612cc98287612355565b612cd66020830186612355565b612ce36040830185612462565b8181036060830152612cf5818461246b565b9695505050505050565b60408101612d0d8285612355565b612c806020830184612462565b60208082528101612c8081846123bd565b60208082528101612c80818461240b565b602081016108178284612459565b60808101612d588287612462565b612d656020830186612c6b565b612d726040830185612462565b612d7f6060830184612462565b95945050505050565b60208082528101612c80818461246b565b60208082528101610817816124e3565b602080825281016108178161251c565b6020808252810161081781612555565b60208082528101610817816125a2565b60208082528101610817816125f6565b602080825281016108178161263e565b6020808252810161081781612677565b60208082528101610817816126bd565b60208082528101610817816126f6565b6020808252810161081781612744565b60208082528101610817816127a3565b60208082528101610817816127ef565b602080825281016108178161283a565b602080825281016108178161287d565b60208082528101610817816128b6565b6020808252810161081781612904565b6020808252810161081781612952565b602080825281016108178161298b565b60208082528101610817816129cf565b6020808252810161081781612a1a565b6020808252810161081781612a6b565b6020808252810161081781612aae565b6020808252810161081781612b01565b6020808252810161081781612b4f565b6020808252810161081781612b96565b6020808252810161081781612bcf565b6020808252810161081781612c21565b602081016108178284612462565b60608101612f658286612462565b8181036020830152612f778185612364565b90508181036040830152612d7f818461240b565b60405181810167ffffffffffffffff81118282101715612faa57600080fd5b604052919050565b600067ffffffffffffffff821115612fc957600080fd5b5060209081020190565b600067ffffffffffffffff821115612fea57600080fd5b506020601f91909101601f19160190565b60200190565b5190565b90815260200190565b919050565b600061081782613030565b151590565b6001600160e01b03191690565b6001600160a01b031690565b60ff1690565b600061081782613013565b82818337506000910152565b60005b8381101561307457818101518382015260200161305c565b83811115610bf65750506000910152565b6000610817826000610817826130a0565b601f01601f191690565b60601b90565b6130af81613013565b811461068257600080fd5b6130af8161301e565b6130af8161077c565b6130af81613023565b6130af8161303c56fea365627a7a7231582073eb079a03654ed618c7d3df054d2a41ef9837165730b15d5916a3e7a071ef166c6578706572696d656e74616cf564736f6c63430005110040
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001a0000000000000000000000000418bd146d56a54dfcc1dfb44890cde870c50df4f000000000000000000000000000000000000000000000000000000000000000e4e465420535441525320434f494e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044e46545300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004568747470733a2f2f6e667473746172732e6170702f6261636b656e642f6170692f76312f6e6674732f6d657461646174612f7b616464726573737d2f7b746f6b656e49647d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name (string): NFT STARS COIN
Arg [1] : symbol (string): NFTS
Arg [2] : contractURI (string): https://nftstars.app/backend/api/v1/nfts/metadata/{address}/{tokenId}
Arg [3] : tokenURIPrefix (string):
Arg [4] : signer (address): 0x418Bd146d56a54dFCc1Dfb44890cDE870C50dF4F
-----Encoded View---------------
15 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [3] : 00000000000000000000000000000000000000000000000000000000000001a0
Arg [4] : 000000000000000000000000418bd146d56a54dfcc1dfb44890cde870c50df4f
Arg [5] : 000000000000000000000000000000000000000000000000000000000000000e
Arg [6] : 4e465420535441525320434f494e000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [8] : 4e46545300000000000000000000000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000045
Arg [10] : 68747470733a2f2f6e667473746172732e6170702f6261636b656e642f617069
Arg [11] : 2f76312f6e6674732f6d657461646174612f7b616464726573737d2f7b746f6b
Arg [12] : 656e49647d000000000000000000000000000000000000000000000000000000
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [14] : 0000000000000000000000000000000000000000000000000000000000000000
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.