Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
Value | ||||
---|---|---|---|---|---|---|---|---|---|
0x60806040 | 14582390 | 812 days ago | IN | Create: MintableERC721New | 0 ETH | 0.09289784 |
Advanced mode: Intended for advanced users or developers and will display all Internal Transactions including zero value transfers. Name tag integration is not available in advanced view.
Latest 6 internal transactions
Advanced mode:
Loading...
Loading
Contract Name:
MintableERC721New
Compiler Version
v0.5.2+commit.1df8f40c
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
pragma solidity ^0.5.0; pragma experimental ABIEncoderV2; /* * @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; } } /** * @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; } } /** * @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); } interface IERC2981 { /** * @dev Called with the sale price to determine how much royalty is owed and to whom. * @param tokenId - the NFT asset queried for royalty information * @param salePrice - the sale price of the NFT asset specified by `tokenId` * @return receiver - address of who should be sent the royalty payment * @return royaltyAmount - the royalty payment amount for `salePrice` */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); } /** * @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; } /** * @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); } /** * @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); } /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot overflow. * * _Available since v2.4.0._ */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. * * _Available since v2.4.0._ */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { // Solidity only automatically asserts when dividing by 0 require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. * * _Available since v2.4.0._ */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } } /** * @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"); } } /** * @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); } } /** * @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; function _initRegisterInterfaceForErc165() 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; } } /** * @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; function _initRegisterInterfaceForErc721() internal { // 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); } } } /** * @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); } /** * @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; function _initRegisterInterfaceForErc721Enumerable() internal { // 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; } } library UintLibrary { 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); } } 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; } } contract HasContractURI is ERC165 { string public contractURI; /* * bytes4(keccak256('contractURI()')) == 0xe8a3d485 */ bytes4 private constant _INTERFACE_ID_CONTRACT_URI = 0xe8a3d485; function _initRegisterInterfaceForContractURI() internal { _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; } } contract HasTokenURI { using StringLibrary for string; // Token URI prefix string public tokenURIPrefix; // Optional mapping for token URIs mapping(uint256 => string) private _tokenURIs; /** * @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]; } } } contract HasSecondarySaleFees is ERC165 { struct Copyright { address author; uint256 feeRateNumerator; } uint public constant feeRateDenominator = 10000; event SetCopyright(uint256 _tokenId, address _creator, address _author, uint256 _feeRateNumerator, uint256 _feeRateDenominator); /* * bytes4(keccak256('getCopyright(uint256)')) == 0x6f4eaff1 */ bytes4 private constant _INTERFACE_ID_COPYRIGHT = 0x6f4eaff1; function _initRegisterInterfaceForCopyright() internal { _registerInterface(_INTERFACE_ID_COPYRIGHT); } function getCopyright(uint256 _tokenId) public view returns (Copyright memory); } /** * @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 ERC721BaseNew is HasSecondarySaleFees, ERC721, HasContractURI, HasTokenURI, ERC721Enumerable,IERC2981 { // Token name string public name; // Token symbol string public symbol; // id => copyright mapping(uint256 => Copyright) public copyrights; /* * 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; bytes4 private constant _INTERFACE_ID_ERC2981 = 0x2a55205a; function _initRegisterInterfaceForErc2981() internal { // register the supported interfaces to conform to ERC721 via ERC165 _registerInterface(_INTERFACE_ID_ERC2981); } function _initRegisterInterfaceForErc721Metadata() internal { // register the supported interfaces to conform to ERC721 via ERC165 _registerInterface(_INTERFACE_ID_ERC721_METADATA); } function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount){ uint256 royaltyAmount = (salePrice * copyrights[tokenId].feeRateNumerator) / 10000; return ( copyrights[tokenId].author,royaltyAmount); } function _mint(uint256 _tokenId, address _receiver, Copyright[] memory _copyrightInfos) internal { // set copyright info uint256 copyrightLen = _copyrightInfos.length; require(copyrightLen <= 1, "ERC721Base: the length of copyrights must be <= 1"); if (copyrightLen == 1) { require(_copyrightInfos[0].author != address(0), "ERC721Base: the author in copyright can't be zero" ); require(_copyrightInfos[0].feeRateNumerator <= feeRateDenominator, "ERC721Base: the feeRate in copyright must be <= 1" ); copyrights[_tokenId] = _copyrightInfos[0]; emit SetCopyright(_tokenId, msg.sender, _copyrightInfos[0].author, _copyrightInfos[0].feeRateNumerator, feeRateDenominator); } _mint(_receiver, _tokenId); } function getCopyright(uint256 _tokenId) public view returns (Copyright memory){ return copyrights[_tokenId]; } /** * @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); } } /** * @title MintableToken * @dev anyone can mint token. */ contract MintableERC721New is Ownable, ERC721BaseNew { uint256 private tokenIdCounter; bool private onlyInitOnce; event SetTokenURI(uint256 _tokenId, string _tokenURI); function init( string memory _name, string memory _symbol, address _newOwner, string memory _contractURI, string memory _tokenURIPrefix ) public { require(!onlyInitOnce, "already initialized"); name = _name; symbol = _symbol; contractURI = _contractURI; tokenURIPrefix = _tokenURIPrefix; _initRegisterInterfaceForErc165(); _initRegisterInterfaceForErc721(); _initRegisterInterfaceForErc721Metadata(); _initRegisterInterfaceForErc721Enumerable(); _initRegisterInterfaceForContractURI(); _initRegisterInterfaceForCopyright(); _initRegisterInterfaceForErc2981(); _registerInterface(bytes4(keccak256('MINT_WITH_ADDRESS'))); _transferOwnership(_newOwner); onlyInitOnce = true; } function mint(address _receiver, string memory _tokenURI, Copyright[] memory _copyrightInfos) public { // 1. get tokenID with auto-increment uint256 currentTokenId = tokenIdCounter; tokenIdCounter++; // 2. mint _mint(currentTokenId, _receiver, _copyrightInfos); // 3. set tokenURI _setTokenURI(currentTokenId, _tokenURI); emit SetTokenURI(currentTokenId, _tokenURI); } function setTokenURIPrefix(string memory tokenURIPrefix) public onlyOwner { _setTokenURIPrefix(tokenURIPrefix); } function setContractURI(string memory contractURI) public onlyOwner { _setContractURI(contractURI); } address public serverAddress; function setServerAddress(address targetAddress) public onlyOwner{ serverAddress = targetAddress; } /* var result = instanceWeb3.eth.accounts.sign(msg,privkey); {"message":"123","messageHash":"0x3b453794f074c43f21713fe98eaccb2728a71bd4584e5d5958e7e73546e02603", "v":"0x1c","r":"0x983d3f213b86e7df3204610a4b22e4c941c2e9c2c31d0e8c45bf76dd2d71b589", "s":"0x16156a4fc8d72f03e03a3e90c94e95c4e3cc3a4aeb5f4e30333add95abc026f4","signature":"0x983d3f213b86e7df3204610a4b22e4c941c2e9c2c31d0e8c45bf76dd2d71b58916156a4fc8d72f03e03a3e90c94e95c4e3cc3a4aeb5f4e30333add95abc026f41c"} 对消息进行签名,然后验证messageHash */ function mintBySign(address _receiver, string memory _tokenURI, Copyright[] memory _copyrightInfos,bytes32 hash,uint8 v, bytes32 r, bytes32 s) public { require(ecrecover(hash, v, r, s) == serverAddress,"verify server sign failed") ; // 1. get tokenID with auto-increment uint256 currentTokenId = tokenIdCounter; tokenIdCounter++; // 2. mint _mint(currentTokenId, _receiver, _copyrightInfos); // 3. set tokenURI _setTokenURI(currentTokenId, _tokenURI); emit SetTokenURI(currentTokenId, _tokenURI); } function mintMuti(address _receiver,uint amount,Copyright[] memory _copyrightInfos) public onlyOwner{ for (uint i = 0; i < amount; i++){ // 1. get tokenID with auto-increment uint256 currentTokenId = tokenIdCounter; _mint(currentTokenId, _receiver, _copyrightInfos); tokenIdCounter++; } } function mintMutiAndTokenUri(address _receiver,uint amount,string[] memory tokenUriList,Copyright[] memory _copyrightInfos) public onlyOwner{ for (uint i = 0; i < amount; i++){ // 1. get tokenID with auto-increment uint256 currentTokenId = tokenIdCounter; _mint(currentTokenId, _receiver, _copyrightInfos); _setTokenURI(currentTokenId, tokenUriList[i]); tokenIdCounter++; } } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":true,"inputs":[{"name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"to","type":"address"},{"name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_receiver","type":"address"},{"name":"amount","type":"uint256"},{"name":"tokenUriList","type":"string[]"},{"components":[{"name":"author","type":"address"},{"name":"feeRateNumerator","type":"uint256"}],"name":"_copyrightInfos","type":"tuple[]"}],"name":"mintMutiAndTokenUri","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"from","type":"address"},{"name":"to","type":"address"},{"name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"tokenId","type":"uint256"},{"name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"name":"receiver","type":"address"},{"name":"royaltyAmount","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"owner","type":"address"},{"name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"from","type":"address"},{"name":"to","type":"address"},{"name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"targetAddress","type":"address"}],"name":"setServerAddress","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_tokenId","type":"uint256"}],"name":"getCopyright","outputs":[{"components":[{"name":"author","type":"address"},{"name":"feeRateNumerator","type":"uint256"}],"name":"","type":"tuple"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_receiver","type":"address"},{"name":"_tokenURI","type":"string"},{"components":[{"name":"author","type":"address"},{"name":"feeRateNumerator","type":"uint256"}],"name":"_copyrightInfos","type":"tuple[]"}],"name":"mint","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"copyrights","outputs":[{"name":"author","type":"address"},{"name":"feeRateNumerator","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"contractURI","type":"string"}],"name":"setContractURI","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_receiver","type":"address"},{"name":"amount","type":"uint256"},{"components":[{"name":"author","type":"address"},{"name":"feeRateNumerator","type":"uint256"}],"name":"_copyrightInfos","type":"tuple[]"}],"name":"mintMuti","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"tokenURIPrefix","type":"string"}],"name":"setTokenURIPrefix","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"to","type":"address"},{"name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_name","type":"string"},{"name":"_symbol","type":"string"},{"name":"_newOwner","type":"address"},{"name":"_contractURI","type":"string"},{"name":"_tokenURIPrefix","type":"string"}],"name":"init","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"from","type":"address"},{"name":"to","type":"address"},{"name":"tokenId","type":"uint256"},{"name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"tokenURIPrefix","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"serverAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_receiver","type":"address"},{"name":"_tokenURI","type":"string"},{"components":[{"name":"author","type":"address"},{"name":"feeRateNumerator","type":"uint256"}],"name":"_copyrightInfos","type":"tuple[]"},{"name":"hash","type":"bytes32"},{"name":"v","type":"uint8"},{"name":"r","type":"bytes32"},{"name":"s","type":"bytes32"}],"name":"mintBySign","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"contractURI","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"owner","type":"address"},{"name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"feeRateDenominator","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_tokenId","type":"uint256"},{"indexed":false,"name":"_tokenURI","type":"string"}],"name":"SetTokenURI","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":true,"name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"},{"indexed":true,"name":"approved","type":"address"},{"indexed":true,"name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"},{"indexed":true,"name":"operator","type":"address"},{"indexed":false,"name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_tokenId","type":"uint256"},{"indexed":false,"name":"_creator","type":"address"},{"indexed":false,"name":"_author","type":"address"},{"indexed":false,"name":"_feeRateNumerator","type":"uint256"},{"indexed":false,"name":"_feeRateDenominator","type":"uint256"}],"name":"SetCopyright","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"}]
Contract Creation Code
60806040526000610017640100000000610066810204565b60008054600160a060020a031916600160a060020a0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35061006a565b3390565b61311f806100796000396000f3fe608060405234801561001057600080fd5b506004361061022e576000357c0100000000000000000000000000000000000000000000000000000000900480637ceffa5811610142578063b88d4fde116100ca578063e2a941ff11610099578063e2a941ff1461046f578063e8a3d48514610482578063e985e9c51461048a578063f0b10c361461049d578063f2fde38b146104a55761022e565b8063b88d4fde14610439578063c0ac99831461044c578063c87b56dd14610454578063db420fe3146104675761022e565b8063954926ab11610111578063954926ab146103e557806395d89b41146103f857806399e0dd7c14610400578063a22cb46514610413578063b7ec8239146104265761022e565b80637ceffa58146103af5780638da5cb5b146103c25780638f32d59b146103ca578063938e3d7b146103d25761022e565b80632f745c59116101c55780636352211e116101945780636352211e1461034e5780636f4eaff11461036157806370a0823114610381578063715018a6146103945780637a5d8d171461039c5761022e565b80632f745c591461030257806342842e0e1461031557806347b64eb0146103285780634f6ccce71461033b5761022e565b8063142ecc1211610201578063142ecc12146102a657806318160ddd146102b957806323b872dd146102ce5780632a55205a146102e15761022e565b806301ffc9a71461023357806306fdde031461025c578063081812fc14610271578063095ea7b314610291575b600080fd5b6102466102413660046123f8565b6104b8565b6040516102539190612dc2565b60405180910390f35b6102646104d7565b6040516102539190612dd0565b61028461027f36600461253d565b610565565b6040516102539190612d55565b6102a461029f366004612311565b6105b6565b005b6102a46102b4366004612341565b61069d565b6102c161071a565b6040516102539190612f7f565b6102a46102dc3660046120dc565b610721565b6102f46102ef36600461255b565b610763565b604051610253929190612da7565b6102c1610310366004612311565b61078e565b6102a46103233660046120dc565b6107f2565b6102a4610336366004612084565b61080e565b6102c161034936600461253d565b61086c565b61028461035c36600461253d565b6108b7565b61037461036f36600461253d565b6108f1565b6040516102539190612f71565b6102c161038f366004612084565b61092c565b6102a461097a565b6102a46103aa3660046121d2565b6109ed565b6102f46103bd36600461253d565b610a4c565b610284610a71565b610246610a80565b6102a46103e0366004612434565b610aa4565b6102a46103f33660046123c6565b610ad9565b610264610b34565b6102a461040e366004612434565b610b8f565b6102a46104213660046121a2565b610bc1565b6102a4610434366004612469565b610c8c565b6102a4610447366004612129565b610d92565b610264610dd0565b61026461046236600461253d565b610e2b565b610284610e60565b6102a461047d366004612245565b610e74565b610264610f76565b6102466104983660046120a2565b610fd1565b6102c1610fff565b6102a46104b3366004612084565b611005565b600160e060020a03191660009081526001602052604090205460ff1690565b600d805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561055d5780601f106105325761010080835404028352916020019161055d565b820191906000526020600020905b81548152906001019060200180831161054057829003601f168201915b505050505081565b600061057082611037565b151561059a5760405160e560020a62461bcd02815260040161059190612ed1565b60405180910390fd5b50600090815260036020526040902054600160a060020a031690565b60006105c1826108b7565b9050600160a060020a0383811690821614156105f25760405160e560020a62461bcd02815260040161059190612f31565b80600160a060020a0316610604611054565b600160a060020a03161480610620575061062081610498611054565b15156106415760405160e560020a62461bcd02815260040161059190612e81565b6000828152600360205260408082208054600160a060020a031916600160a060020a0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6106a5610a80565b15156106c65760405160e560020a62461bcd02815260040161059190612ef1565b60005b83811015610713576010546106df818785611058565b6107008185848151811015156106f157fe5b906020019060200201516111dd565b50601080546001908101909155016106c9565b5050505050565b600b545b90565b61073261072c611054565b82611215565b15156107535760405160e560020a62461bcd02815260040161059190612f41565b61075e83838361129f565b505050565b6000918252600f602052604090912060018101549054600160a060020a031692612710919092020490565b60006107998361092c565b82106107ba5760405160e560020a62461bcd02815260040161059190612de1565b600160a060020a03831660009081526009602052604090208054839081106107de57fe5b906000526020600020015490505b92915050565b61075e8383836020604051908101604052806000815250610d92565b610816610a80565b15156108375760405160e560020a62461bcd02815260040161059190612ef1565b60118054600160a060020a039092166101000274ffffffffffffffffffffffffffffffffffffffff0019909216919091179055565b600061087661071a565b82106108975760405160e560020a62461bcd02815260040161059190612f51565b600b8054839081106108a557fe5b90600052602060002001549050919050565b600081815260026020526040812054600160a060020a03168015156107ec5760405160e560020a62461bcd02815260040161059190612eb1565b6108f9611df9565b506000908152600f602090815260409182902082518084019093528054600160a060020a03168352600101549082015290565b6000600160a060020a03821615156109595760405160e560020a62461bcd02815260040161059190612ea1565b600160a060020a03821660009081526004602052604090206107ec906112be565b610982610a80565b15156109a35760405160e560020a62461bcd02815260040161059190612ef1565b60008054604051600160a060020a03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a360008054600160a060020a0319169055565b6010805460018101909155610a03818584611058565b610a0d81846111dd565b7fd2d827dddfc9c9a02afc5fc68d3251684b36e213a7999ebd90a861f25df4077e8184604051610a3e929190612fcf565b60405180910390a150505050565b600f6020526000908152604090208054600190910154600160a060020a039091169082565b600054600160a060020a031690565b60008054600160a060020a0316610a95611054565b600160a060020a031614905090565b610aac610a80565b1515610acd5760405160e560020a62461bcd02815260040161059190612ef1565b610ad6816112c2565b50565b610ae1610a80565b1515610b025760405160e560020a62461bcd02815260040161059190612ef1565b60005b82811015610b2e57601054610b1b818685611058565b5060108054600190810190915501610b05565b50505050565b600e805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561055d5780601f106105325761010080835404028352916020019161055d565b610b97610a80565b1515610bb85760405160e560020a62461bcd02815260040161059190612ef1565b610ad6816112d5565b610bc9611054565b600160a060020a0383811691161415610bf75760405160e560020a62461bcd02815260040161059190612e51565b8060056000610c04611054565b600160a060020a03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610c48611054565b600160a060020a03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610c809190612dc2565b60405180910390a35050565b60115460ff1615610cb25760405160e560020a62461bcd02815260040161059190612e91565b8451610cc590600d906020880190611e10565b508351610cd990600e906020870190611e10565b508151610ced906006906020850190611e10565b508051610d01906007906020840190611e10565b50610d0a6112e8565b610d12611313565b610d1a61133c565b610d22611365565b610d2a61138e565b610d326113b7565b610d3a6113e0565b604080517f4d494e545f574954485f4144445245535300000000000000000000000000000081529051908190036011019020610d7590611405565b610d7e8361145a565b50506011805460ff19166001179055505050565b610da3610d9d611054565b83611215565b1515610dc45760405160e560020a62461bcd02815260040161059190612f41565b610b2e848484846114e0565b6007805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561055d5780601f106105325761010080835404028352916020019161055d565b6060610e3682611037565b1515610e575760405160e560020a62461bcd02815260040161059190612f11565b6107ec82611518565b6011546101009004600160a060020a031681565b6011546040805160008152602080820180845288905260ff87168284015260608201869052608082018590529151610100909304600160a060020a03169260019260a0808401939192601f1981019281900390910190855afa158015610ede573d6000803e3d6000fd5b50505060206040510351600160a060020a0316141515610f135760405160e560020a62461bcd02815260040161059190612e71565b6010805460018101909155610f29818988611058565b610f3381886111dd565b7fd2d827dddfc9c9a02afc5fc68d3251684b36e213a7999ebd90a861f25df4077e8188604051610f64929190612fcf565b60405180910390a15050505050505050565b6006805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561055d5780601f106105325761010080835404028352916020019161055d565b600160a060020a03918216600090815260056020908152604080832093909416825291909152205460ff1690565b61271081565b61100d610a80565b151561102e5760405160e560020a62461bcd02815260040161059190612ef1565b610ad68161145a565b600090815260026020526040902054600160a060020a0316151590565b3390565b8051600181111561107e5760405160e560020a62461bcd02815260040161059190612f61565b80600114156111d357815160009083908290811061109857fe5b6020908102909101015151600160a060020a031614156110cd5760405160e560020a62461bcd02815260040161059190612f21565b6127108260008151811015156110df57fe5b60209081029091018101510151111561110d5760405160e560020a62461bcd02815260040161059190612e31565b81600081518110151561111c57fe5b6020908102919091018101516000868152600f83526040812082518154600160a060020a031916600160a060020a03909116178155919092015160019091015582517f0744eac43f2c274aeab710e028e1557486f24427dd812cb06edb74fe166e4dfc91869133918691811061118e57fe5b60209081029091010151518551869060009081106111a857fe5b90602001906020020151602001516127106040516111ca959493929190612f8d565b60405180910390a15b610b2e8385611653565b6111e682611037565b15156112075760405160e560020a62461bcd02815260040161059190612ee1565b6112118282611670565b5050565b600061122082611037565b15156112415760405160e560020a62461bcd02815260040161059190612e61565b600061124c836108b7565b905080600160a060020a031684600160a060020a03161480611287575083600160a060020a031661127c84610565565b600160a060020a0316145b8061129757506112978185610fd1565b949350505050565b6112aa83838361168f565b6112b4838261179d565b61075e828261188d565b5490565b8051611211906006906020840190611e10565b8051611211906007906020840190611e10565b6113117f01ffc9a700000000000000000000000000000000000000000000000000000000611405565b565b6113117f80ac58cd00000000000000000000000000000000000000000000000000000000611405565b6113117f5b5e139f00000000000000000000000000000000000000000000000000000000611405565b6113117f780e9d6300000000000000000000000000000000000000000000000000000000611405565b6113117fe8a3d48500000000000000000000000000000000000000000000000000000000611405565b6113117f6f4eaff100000000000000000000000000000000000000000000000000000000611405565b6113117f2a55205a000000000000000000000000000000000000000000000000000000005b600160e060020a031980821614156114325760405160e560020a62461bcd02815260040161059190612e11565b600160e060020a0319166000908152600160208190526040909120805460ff19169091179055565b600160a060020a03811615156114855760405160e560020a62461bcd02815260040161059190612e01565b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a360008054600160a060020a031916600160a060020a0392909216919091179055565b6114eb84848461129f565b6114f7848484846118cb565b1515610b2e5760405160e560020a62461bcd02815260040161059190612df1565b6000818152600860209081526040918290208054835160026001831615610100026000190190921691909104601f81018490048402820184019094528381526060936107ec939192918301828280156115b25780601f10611587576101008083540402835291602001916115b2565b820191906000526020600020905b81548152906001019060200180831161159557829003601f168201915b505060078054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152955091935091508301828280156116405780601f1061161557610100808354040283529160200191611640565b820191906000526020600020905b81548152906001019060200180831161162357829003601f168201915b5050505050611a9b90919063ffffffff16565b61165d8282611bda565b611667828261188d565b61121181611ca9565b6000828152600860209081526040909120825161075e92840190611e10565b82600160a060020a03166116a2826108b7565b600160a060020a0316146116cb5760405160e560020a62461bcd02815260040161059190612f01565b600160a060020a03821615156116f65760405160e560020a62461bcd02815260040161059190612e41565b6116ff81611ced565b600160a060020a038316600090815260046020526040902061172090611d28565b600160a060020a038216600090815260046020526040902061174190611d3f565b6000818152600260205260408082208054600160a060020a031916600160a060020a0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600160a060020a0382166000908152600960205260408120546117c790600163ffffffff611d4816565b6000838152600a602052604090205490915080821461186457600160a060020a038416600090815260096020526040812080548490811061180457fe5b90600052602060002001549050806009600087600160a060020a0316600160a060020a031681526020019081526020016000208381548110151561184457fe5b6000918252602080832090910192909255918252600a9052604090208190555b600160a060020a0384166000908152600960205260409020805490610713906000198301611e8e565b600160a060020a0390911660009081526009602081815260408084208054868652600a84529185208290559282526001810183559183529091200155565b60006118df84600160a060020a0316611d91565b15156118ed57506001611297565b60006060600160a060020a0386167f150b7a0200000000000000000000000000000000000000000000000000000000611924611054565b89888860405160240161193a9493929190612d63565b60408051601f198184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16600160e060020a0319909416939093178352518151919290918291908083835b602083106119ad5780518252601f19909201916020918201910161198e565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611a0f576040519150601f19603f3d011682016040523d82523d6000602084013e611a14565b606091505b5091509150811515611a4e57600081511115611a335780518082602001fd5b60405160e560020a62461bcd02815260040161059190612df1565b600081806020019051611a649190810190612416565b600160e060020a0319167f150b7a020000000000000000000000000000000000000000000000000000000014935061129792505050565b6060808390506060839050606081518351016040519080825280601f01601f191660200182016040528015611ad7576020820181803883390190505b5090506000805b8451811015611b54578481815181101515611af557fe5b90602001015160f860020a900460f860020a028383806001019450815181101515611b1c57fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600101611ade565b5060005b8351811015611bce578381815181101515611b6f57fe5b90602001015160f860020a900460f860020a028383806001019450815181101515611b9657fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600101611b58565b50909695505050505050565b600160a060020a0382161515611c055760405160e560020a62461bcd02815260040161059190612ec1565b611c0e81611037565b15611c2e5760405160e560020a62461bcd02815260040161059190612e21565b60008181526002602090815260408083208054600160a060020a031916600160a060020a038716908117909155835260049091529020611c6d90611d3f565b6040518190600160a060020a038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600b80546000838152600c60205260408120829055600182018355919091527f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db90155565b600081815260036020526040902054600160a060020a031615610ad65760009081526003602052604090208054600160a060020a0319169055565b8054611d3b90600163ffffffff611d4816565b9055565b80546001019055565b6000611d8a83836040805190810160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611dca565b9392505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590611297575050151592915050565b60008184841115611df15760405160e560020a62461bcd0281526004016105919190612dd0565b505050900390565b604080518082019091526000808252602082015290565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10611e5157805160ff1916838001178555611e7e565b82800160010185558215611e7e579182015b82811115611e7e578251825591602001919060010190611e63565b50611e8a929150611eae565b5090565b81548183558181111561075e5760008381526020902061075e9181019083015b61071e91905b80821115611e8a5760008155600101611eb4565b6000611d8a8235613063565b6000601f82018313611ee557600080fd5b8135611ef8611ef382613016565b612fef565b81815260209384019390925082018360005b83811015611f365781358601611f208882611fe2565b8452506020928301929190910190600101611f0a565b5050505092915050565b6000601f82018313611f5157600080fd5b8135611f5f611ef382613016565b91508181835260208401935060208101905083856040840282011115611f8457600080fd5b60005b83811015611f365781611f9a8882612031565b84525060209092019160409190910190600101611f87565b6000611d8a823561306e565b6000611d8a823561071e565b6000611d8a823561307f565b6000611d8a825161307f565b6000601f82018313611ff357600080fd5b8135612001611ef382613037565b9150808252602083016020830185838301111561201d57600080fd5b6120288382846130a3565b50505092915050565b60006040828403121561204357600080fd5b61204d6040612fef565b9050600061205b8484611ec8565b825250602061206c84848301611fbe565b60208301525092915050565b6000611d8a823561308c565b60006020828403121561209657600080fd5b60006112978484611ec8565b600080604083850312156120b557600080fd5b60006120c18585611ec8565b92505060206120d285828601611ec8565b9150509250929050565b6000806000606084860312156120f157600080fd5b60006120fd8686611ec8565b935050602061210e86828701611ec8565b925050604061211f86828701611fbe565b9150509250925092565b6000806000806080858703121561213f57600080fd5b600061214b8787611ec8565b945050602061215c87828801611ec8565b935050604061216d87828801611fbe565b925050606085013567ffffffffffffffff81111561218a57600080fd5b61219687828801611fe2565b91505092959194509250565b600080604083850312156121b557600080fd5b60006121c18585611ec8565b92505060206120d285828601611fb2565b6000806000606084860312156121e757600080fd5b60006121f38686611ec8565b935050602084013567ffffffffffffffff81111561221057600080fd5b61221c86828701611fe2565b925050604084013567ffffffffffffffff81111561223957600080fd5b61211f86828701611f40565b600080600080600080600060e0888a03121561226057600080fd5b600061226c8a8a611ec8565b975050602088013567ffffffffffffffff81111561228957600080fd5b6122958a828b01611fe2565b965050604088013567ffffffffffffffff8111156122b257600080fd5b6122be8a828b01611f40565b95505060606122cf8a828b01611fbe565b94505060806122e08a828b01612078565b93505060a06122f18a828b01611fbe565b92505060c06123028a828b01611fbe565b91505092959891949750929550565b6000806040838503121561232457600080fd5b60006123308585611ec8565b92505060206120d285828601611fbe565b6000806000806080858703121561235757600080fd5b60006123638787611ec8565b945050602061237487828801611fbe565b935050604085013567ffffffffffffffff81111561239157600080fd5b61239d87828801611ed4565b925050606085013567ffffffffffffffff8111156123ba57600080fd5b61219687828801611f40565b6000806000606084860312156123db57600080fd5b60006123e78686611ec8565b935050602061221c86828701611fbe565b60006020828403121561240a57600080fd5b60006112978484611fca565b60006020828403121561242857600080fd5b60006112978484611fd6565b60006020828403121561244657600080fd5b813567ffffffffffffffff81111561245d57600080fd5b61129784828501611fe2565b600080600080600060a0868803121561248157600080fd5b853567ffffffffffffffff81111561249857600080fd5b6124a488828901611fe2565b955050602086013567ffffffffffffffff8111156124c157600080fd5b6124cd88828901611fe2565b94505060406124de88828901611ec8565b935050606086013567ffffffffffffffff8111156124fb57600080fd5b61250788828901611fe2565b925050608086013567ffffffffffffffff81111561252457600080fd5b61253088828901611fe2565b9150509295509295909350565b60006020828403121561254f57600080fd5b60006112978484611fbe565b6000806040838503121561256e57600080fd5b60006123308585611fbe565b61258381613092565b82525050565b61258381613063565b6125838161306e565b60006125a68261305f565b8084526125ba8160208601602086016130af565b6125c3816130db565b9093016020019392505050565b602b81527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560208201527f74206f6620626f756e6473000000000000000000000000000000000000000000604082015260600190565b603281527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560208201527f63656976657220696d706c656d656e7465720000000000000000000000000000604082015260600190565b602681527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160208201527f6464726573730000000000000000000000000000000000000000000000000000604082015260600190565b601c81527f4552433136353a20696e76616c696420696e7465726661636520696400000000602082015260400190565b601c81527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000602082015260400190565b603181527f455243373231426173653a20746865206665655261746520696e20636f70797260208201527f69676874206d757374206265203c3d2031000000000000000000000000000000604082015260600190565b602481527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460208201527f7265737300000000000000000000000000000000000000000000000000000000604082015260600190565b601981527f4552433732313a20617070726f766520746f2063616c6c657200000000000000602082015260400190565b602c81527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860208201527f697374656e7420746f6b656e0000000000000000000000000000000000000000604082015260600190565b601981527f76657269667920736572766572207369676e206661696c656400000000000000602082015260400190565b603881527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760208201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000604082015260600190565b601381527f616c726561647920696e697469616c697a656400000000000000000000000000602082015260400190565b602a81527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560208201527f726f206164647265737300000000000000000000000000000000000000000000604082015260600190565b602981527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460208201527f656e7420746f6b656e0000000000000000000000000000000000000000000000604082015260600190565b60208082527f4552433732313a206d696e7420746f20746865207a65726f20616464726573739082015260400190565b602c81527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860208201527f697374656e7420746f6b656e0000000000000000000000000000000000000000604082015260600190565b602c81527f4552433732314d657461646174613a2055524920736574206f66206e6f6e657860208201527f697374656e7420746f6b656e0000000000000000000000000000000000000000604082015260600190565b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65729082015260400190565b602981527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960208201527f73206e6f74206f776e0000000000000000000000000000000000000000000000604082015260600190565b602f81527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60208201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000604082015260600190565b603181527f455243373231426173653a2074686520617574686f7220696e20636f7079726960208201527f6768742063616e2774206265207a65726f000000000000000000000000000000604082015260600190565b602181527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560208201527f7200000000000000000000000000000000000000000000000000000000000000604082015260600190565b603181527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60208201527f776e6572206e6f7220617070726f766564000000000000000000000000000000604082015260600190565b602c81527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60208201527f7574206f6620626f756e64730000000000000000000000000000000000000000604082015260600190565b603181527f455243373231426173653a20746865206c656e677468206f6620636f7079726960208201527f67687473206d757374206265203c3d2031000000000000000000000000000000604082015260600190565b80516040830190612d3d8482612589565b506020820151610b2e60208501825b6125838161071e565b602081016107ec8284612589565b60808101612d718287612589565b612d7e6020830186612589565b612d8b6040830185612d4c565b8181036060830152612d9d818461259b565b9695505050505050565b60408101612db58285612589565b611d8a6020830184612d4c565b602081016107ec8284612592565b60208082528101611d8a818461259b565b602080825281016107ec816125d0565b602080825281016107ec81612626565b602080825281016107ec8161267c565b602080825281016107ec816126d2565b602080825281016107ec81612702565b602080825281016107ec81612732565b602080825281016107ec81612788565b602080825281016107ec816127de565b602080825281016107ec8161280e565b602080825281016107ec81612864565b602080825281016107ec81612894565b602080825281016107ec816128ea565b602080825281016107ec8161291a565b602080825281016107ec81612970565b602080825281016107ec816129c6565b602080825281016107ec816129f6565b602080825281016107ec81612a4c565b602080825281016107ec81612aa2565b602080825281016107ec81612ad2565b602080825281016107ec81612b28565b602080825281016107ec81612b7e565b602080825281016107ec81612bd4565b602080825281016107ec81612c2a565b602080825281016107ec81612c80565b602080825281016107ec81612cd6565b604081016107ec8284612d2c565b602081016107ec8284612d4c565b60a08101612f9b8288612d4c565b612fa8602083018761257a565b612fb56040830186612589565b612fc26060830185612d4c565b612d9d6080830184612d4c565b60408101612fdd8285612d4c565b8181036020830152611297818461259b565b60405181810167ffffffffffffffff8111828210171561300e57600080fd5b604052919050565b600067ffffffffffffffff82111561302d57600080fd5b5060209081020190565b600067ffffffffffffffff82111561304e57600080fd5b506020601f91909101601f19160190565b5190565b60006107ec82613073565b151590565b600160a060020a031690565b600160e060020a03191690565b60ff1690565b60006107ec8260006107ec82613063565b82818337506000910152565b60005b838110156130ca5781810151838201526020016130b2565b83811115610b2e5750506000910152565b601f01601f19169056fea265627a7a723058202f7a37de58bb75b626ca13a7b9ef13415ccd4f873262e13a7c22a8a3b82ec7046c6578706572696d656e74616cf50037
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061022e576000357c0100000000000000000000000000000000000000000000000000000000900480637ceffa5811610142578063b88d4fde116100ca578063e2a941ff11610099578063e2a941ff1461046f578063e8a3d48514610482578063e985e9c51461048a578063f0b10c361461049d578063f2fde38b146104a55761022e565b8063b88d4fde14610439578063c0ac99831461044c578063c87b56dd14610454578063db420fe3146104675761022e565b8063954926ab11610111578063954926ab146103e557806395d89b41146103f857806399e0dd7c14610400578063a22cb46514610413578063b7ec8239146104265761022e565b80637ceffa58146103af5780638da5cb5b146103c25780638f32d59b146103ca578063938e3d7b146103d25761022e565b80632f745c59116101c55780636352211e116101945780636352211e1461034e5780636f4eaff11461036157806370a0823114610381578063715018a6146103945780637a5d8d171461039c5761022e565b80632f745c591461030257806342842e0e1461031557806347b64eb0146103285780634f6ccce71461033b5761022e565b8063142ecc1211610201578063142ecc12146102a657806318160ddd146102b957806323b872dd146102ce5780632a55205a146102e15761022e565b806301ffc9a71461023357806306fdde031461025c578063081812fc14610271578063095ea7b314610291575b600080fd5b6102466102413660046123f8565b6104b8565b6040516102539190612dc2565b60405180910390f35b6102646104d7565b6040516102539190612dd0565b61028461027f36600461253d565b610565565b6040516102539190612d55565b6102a461029f366004612311565b6105b6565b005b6102a46102b4366004612341565b61069d565b6102c161071a565b6040516102539190612f7f565b6102a46102dc3660046120dc565b610721565b6102f46102ef36600461255b565b610763565b604051610253929190612da7565b6102c1610310366004612311565b61078e565b6102a46103233660046120dc565b6107f2565b6102a4610336366004612084565b61080e565b6102c161034936600461253d565b61086c565b61028461035c36600461253d565b6108b7565b61037461036f36600461253d565b6108f1565b6040516102539190612f71565b6102c161038f366004612084565b61092c565b6102a461097a565b6102a46103aa3660046121d2565b6109ed565b6102f46103bd36600461253d565b610a4c565b610284610a71565b610246610a80565b6102a46103e0366004612434565b610aa4565b6102a46103f33660046123c6565b610ad9565b610264610b34565b6102a461040e366004612434565b610b8f565b6102a46104213660046121a2565b610bc1565b6102a4610434366004612469565b610c8c565b6102a4610447366004612129565b610d92565b610264610dd0565b61026461046236600461253d565b610e2b565b610284610e60565b6102a461047d366004612245565b610e74565b610264610f76565b6102466104983660046120a2565b610fd1565b6102c1610fff565b6102a46104b3366004612084565b611005565b600160e060020a03191660009081526001602052604090205460ff1690565b600d805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561055d5780601f106105325761010080835404028352916020019161055d565b820191906000526020600020905b81548152906001019060200180831161054057829003601f168201915b505050505081565b600061057082611037565b151561059a5760405160e560020a62461bcd02815260040161059190612ed1565b60405180910390fd5b50600090815260036020526040902054600160a060020a031690565b60006105c1826108b7565b9050600160a060020a0383811690821614156105f25760405160e560020a62461bcd02815260040161059190612f31565b80600160a060020a0316610604611054565b600160a060020a03161480610620575061062081610498611054565b15156106415760405160e560020a62461bcd02815260040161059190612e81565b6000828152600360205260408082208054600160a060020a031916600160a060020a0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6106a5610a80565b15156106c65760405160e560020a62461bcd02815260040161059190612ef1565b60005b83811015610713576010546106df818785611058565b6107008185848151811015156106f157fe5b906020019060200201516111dd565b50601080546001908101909155016106c9565b5050505050565b600b545b90565b61073261072c611054565b82611215565b15156107535760405160e560020a62461bcd02815260040161059190612f41565b61075e83838361129f565b505050565b6000918252600f602052604090912060018101549054600160a060020a031692612710919092020490565b60006107998361092c565b82106107ba5760405160e560020a62461bcd02815260040161059190612de1565b600160a060020a03831660009081526009602052604090208054839081106107de57fe5b906000526020600020015490505b92915050565b61075e8383836020604051908101604052806000815250610d92565b610816610a80565b15156108375760405160e560020a62461bcd02815260040161059190612ef1565b60118054600160a060020a039092166101000274ffffffffffffffffffffffffffffffffffffffff0019909216919091179055565b600061087661071a565b82106108975760405160e560020a62461bcd02815260040161059190612f51565b600b8054839081106108a557fe5b90600052602060002001549050919050565b600081815260026020526040812054600160a060020a03168015156107ec5760405160e560020a62461bcd02815260040161059190612eb1565b6108f9611df9565b506000908152600f602090815260409182902082518084019093528054600160a060020a03168352600101549082015290565b6000600160a060020a03821615156109595760405160e560020a62461bcd02815260040161059190612ea1565b600160a060020a03821660009081526004602052604090206107ec906112be565b610982610a80565b15156109a35760405160e560020a62461bcd02815260040161059190612ef1565b60008054604051600160a060020a03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a360008054600160a060020a0319169055565b6010805460018101909155610a03818584611058565b610a0d81846111dd565b7fd2d827dddfc9c9a02afc5fc68d3251684b36e213a7999ebd90a861f25df4077e8184604051610a3e929190612fcf565b60405180910390a150505050565b600f6020526000908152604090208054600190910154600160a060020a039091169082565b600054600160a060020a031690565b60008054600160a060020a0316610a95611054565b600160a060020a031614905090565b610aac610a80565b1515610acd5760405160e560020a62461bcd02815260040161059190612ef1565b610ad6816112c2565b50565b610ae1610a80565b1515610b025760405160e560020a62461bcd02815260040161059190612ef1565b60005b82811015610b2e57601054610b1b818685611058565b5060108054600190810190915501610b05565b50505050565b600e805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561055d5780601f106105325761010080835404028352916020019161055d565b610b97610a80565b1515610bb85760405160e560020a62461bcd02815260040161059190612ef1565b610ad6816112d5565b610bc9611054565b600160a060020a0383811691161415610bf75760405160e560020a62461bcd02815260040161059190612e51565b8060056000610c04611054565b600160a060020a03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610c48611054565b600160a060020a03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610c809190612dc2565b60405180910390a35050565b60115460ff1615610cb25760405160e560020a62461bcd02815260040161059190612e91565b8451610cc590600d906020880190611e10565b508351610cd990600e906020870190611e10565b508151610ced906006906020850190611e10565b508051610d01906007906020840190611e10565b50610d0a6112e8565b610d12611313565b610d1a61133c565b610d22611365565b610d2a61138e565b610d326113b7565b610d3a6113e0565b604080517f4d494e545f574954485f4144445245535300000000000000000000000000000081529051908190036011019020610d7590611405565b610d7e8361145a565b50506011805460ff19166001179055505050565b610da3610d9d611054565b83611215565b1515610dc45760405160e560020a62461bcd02815260040161059190612f41565b610b2e848484846114e0565b6007805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561055d5780601f106105325761010080835404028352916020019161055d565b6060610e3682611037565b1515610e575760405160e560020a62461bcd02815260040161059190612f11565b6107ec82611518565b6011546101009004600160a060020a031681565b6011546040805160008152602080820180845288905260ff87168284015260608201869052608082018590529151610100909304600160a060020a03169260019260a0808401939192601f1981019281900390910190855afa158015610ede573d6000803e3d6000fd5b50505060206040510351600160a060020a0316141515610f135760405160e560020a62461bcd02815260040161059190612e71565b6010805460018101909155610f29818988611058565b610f3381886111dd565b7fd2d827dddfc9c9a02afc5fc68d3251684b36e213a7999ebd90a861f25df4077e8188604051610f64929190612fcf565b60405180910390a15050505050505050565b6006805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561055d5780601f106105325761010080835404028352916020019161055d565b600160a060020a03918216600090815260056020908152604080832093909416825291909152205460ff1690565b61271081565b61100d610a80565b151561102e5760405160e560020a62461bcd02815260040161059190612ef1565b610ad68161145a565b600090815260026020526040902054600160a060020a0316151590565b3390565b8051600181111561107e5760405160e560020a62461bcd02815260040161059190612f61565b80600114156111d357815160009083908290811061109857fe5b6020908102909101015151600160a060020a031614156110cd5760405160e560020a62461bcd02815260040161059190612f21565b6127108260008151811015156110df57fe5b60209081029091018101510151111561110d5760405160e560020a62461bcd02815260040161059190612e31565b81600081518110151561111c57fe5b6020908102919091018101516000868152600f83526040812082518154600160a060020a031916600160a060020a03909116178155919092015160019091015582517f0744eac43f2c274aeab710e028e1557486f24427dd812cb06edb74fe166e4dfc91869133918691811061118e57fe5b60209081029091010151518551869060009081106111a857fe5b90602001906020020151602001516127106040516111ca959493929190612f8d565b60405180910390a15b610b2e8385611653565b6111e682611037565b15156112075760405160e560020a62461bcd02815260040161059190612ee1565b6112118282611670565b5050565b600061122082611037565b15156112415760405160e560020a62461bcd02815260040161059190612e61565b600061124c836108b7565b905080600160a060020a031684600160a060020a03161480611287575083600160a060020a031661127c84610565565b600160a060020a0316145b8061129757506112978185610fd1565b949350505050565b6112aa83838361168f565b6112b4838261179d565b61075e828261188d565b5490565b8051611211906006906020840190611e10565b8051611211906007906020840190611e10565b6113117f01ffc9a700000000000000000000000000000000000000000000000000000000611405565b565b6113117f80ac58cd00000000000000000000000000000000000000000000000000000000611405565b6113117f5b5e139f00000000000000000000000000000000000000000000000000000000611405565b6113117f780e9d6300000000000000000000000000000000000000000000000000000000611405565b6113117fe8a3d48500000000000000000000000000000000000000000000000000000000611405565b6113117f6f4eaff100000000000000000000000000000000000000000000000000000000611405565b6113117f2a55205a000000000000000000000000000000000000000000000000000000005b600160e060020a031980821614156114325760405160e560020a62461bcd02815260040161059190612e11565b600160e060020a0319166000908152600160208190526040909120805460ff19169091179055565b600160a060020a03811615156114855760405160e560020a62461bcd02815260040161059190612e01565b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a360008054600160a060020a031916600160a060020a0392909216919091179055565b6114eb84848461129f565b6114f7848484846118cb565b1515610b2e5760405160e560020a62461bcd02815260040161059190612df1565b6000818152600860209081526040918290208054835160026001831615610100026000190190921691909104601f81018490048402820184019094528381526060936107ec939192918301828280156115b25780601f10611587576101008083540402835291602001916115b2565b820191906000526020600020905b81548152906001019060200180831161159557829003601f168201915b505060078054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152955091935091508301828280156116405780601f1061161557610100808354040283529160200191611640565b820191906000526020600020905b81548152906001019060200180831161162357829003601f168201915b5050505050611a9b90919063ffffffff16565b61165d8282611bda565b611667828261188d565b61121181611ca9565b6000828152600860209081526040909120825161075e92840190611e10565b82600160a060020a03166116a2826108b7565b600160a060020a0316146116cb5760405160e560020a62461bcd02815260040161059190612f01565b600160a060020a03821615156116f65760405160e560020a62461bcd02815260040161059190612e41565b6116ff81611ced565b600160a060020a038316600090815260046020526040902061172090611d28565b600160a060020a038216600090815260046020526040902061174190611d3f565b6000818152600260205260408082208054600160a060020a031916600160a060020a0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600160a060020a0382166000908152600960205260408120546117c790600163ffffffff611d4816565b6000838152600a602052604090205490915080821461186457600160a060020a038416600090815260096020526040812080548490811061180457fe5b90600052602060002001549050806009600087600160a060020a0316600160a060020a031681526020019081526020016000208381548110151561184457fe5b6000918252602080832090910192909255918252600a9052604090208190555b600160a060020a0384166000908152600960205260409020805490610713906000198301611e8e565b600160a060020a0390911660009081526009602081815260408084208054868652600a84529185208290559282526001810183559183529091200155565b60006118df84600160a060020a0316611d91565b15156118ed57506001611297565b60006060600160a060020a0386167f150b7a0200000000000000000000000000000000000000000000000000000000611924611054565b89888860405160240161193a9493929190612d63565b60408051601f198184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16600160e060020a0319909416939093178352518151919290918291908083835b602083106119ad5780518252601f19909201916020918201910161198e565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611a0f576040519150601f19603f3d011682016040523d82523d6000602084013e611a14565b606091505b5091509150811515611a4e57600081511115611a335780518082602001fd5b60405160e560020a62461bcd02815260040161059190612df1565b600081806020019051611a649190810190612416565b600160e060020a0319167f150b7a020000000000000000000000000000000000000000000000000000000014935061129792505050565b6060808390506060839050606081518351016040519080825280601f01601f191660200182016040528015611ad7576020820181803883390190505b5090506000805b8451811015611b54578481815181101515611af557fe5b90602001015160f860020a900460f860020a028383806001019450815181101515611b1c57fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600101611ade565b5060005b8351811015611bce578381815181101515611b6f57fe5b90602001015160f860020a900460f860020a028383806001019450815181101515611b9657fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600101611b58565b50909695505050505050565b600160a060020a0382161515611c055760405160e560020a62461bcd02815260040161059190612ec1565b611c0e81611037565b15611c2e5760405160e560020a62461bcd02815260040161059190612e21565b60008181526002602090815260408083208054600160a060020a031916600160a060020a038716908117909155835260049091529020611c6d90611d3f565b6040518190600160a060020a038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600b80546000838152600c60205260408120829055600182018355919091527f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db90155565b600081815260036020526040902054600160a060020a031615610ad65760009081526003602052604090208054600160a060020a0319169055565b8054611d3b90600163ffffffff611d4816565b9055565b80546001019055565b6000611d8a83836040805190810160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611dca565b9392505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590611297575050151592915050565b60008184841115611df15760405160e560020a62461bcd0281526004016105919190612dd0565b505050900390565b604080518082019091526000808252602082015290565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10611e5157805160ff1916838001178555611e7e565b82800160010185558215611e7e579182015b82811115611e7e578251825591602001919060010190611e63565b50611e8a929150611eae565b5090565b81548183558181111561075e5760008381526020902061075e9181019083015b61071e91905b80821115611e8a5760008155600101611eb4565b6000611d8a8235613063565b6000601f82018313611ee557600080fd5b8135611ef8611ef382613016565b612fef565b81815260209384019390925082018360005b83811015611f365781358601611f208882611fe2565b8452506020928301929190910190600101611f0a565b5050505092915050565b6000601f82018313611f5157600080fd5b8135611f5f611ef382613016565b91508181835260208401935060208101905083856040840282011115611f8457600080fd5b60005b83811015611f365781611f9a8882612031565b84525060209092019160409190910190600101611f87565b6000611d8a823561306e565b6000611d8a823561071e565b6000611d8a823561307f565b6000611d8a825161307f565b6000601f82018313611ff357600080fd5b8135612001611ef382613037565b9150808252602083016020830185838301111561201d57600080fd5b6120288382846130a3565b50505092915050565b60006040828403121561204357600080fd5b61204d6040612fef565b9050600061205b8484611ec8565b825250602061206c84848301611fbe565b60208301525092915050565b6000611d8a823561308c565b60006020828403121561209657600080fd5b60006112978484611ec8565b600080604083850312156120b557600080fd5b60006120c18585611ec8565b92505060206120d285828601611ec8565b9150509250929050565b6000806000606084860312156120f157600080fd5b60006120fd8686611ec8565b935050602061210e86828701611ec8565b925050604061211f86828701611fbe565b9150509250925092565b6000806000806080858703121561213f57600080fd5b600061214b8787611ec8565b945050602061215c87828801611ec8565b935050604061216d87828801611fbe565b925050606085013567ffffffffffffffff81111561218a57600080fd5b61219687828801611fe2565b91505092959194509250565b600080604083850312156121b557600080fd5b60006121c18585611ec8565b92505060206120d285828601611fb2565b6000806000606084860312156121e757600080fd5b60006121f38686611ec8565b935050602084013567ffffffffffffffff81111561221057600080fd5b61221c86828701611fe2565b925050604084013567ffffffffffffffff81111561223957600080fd5b61211f86828701611f40565b600080600080600080600060e0888a03121561226057600080fd5b600061226c8a8a611ec8565b975050602088013567ffffffffffffffff81111561228957600080fd5b6122958a828b01611fe2565b965050604088013567ffffffffffffffff8111156122b257600080fd5b6122be8a828b01611f40565b95505060606122cf8a828b01611fbe565b94505060806122e08a828b01612078565b93505060a06122f18a828b01611fbe565b92505060c06123028a828b01611fbe565b91505092959891949750929550565b6000806040838503121561232457600080fd5b60006123308585611ec8565b92505060206120d285828601611fbe565b6000806000806080858703121561235757600080fd5b60006123638787611ec8565b945050602061237487828801611fbe565b935050604085013567ffffffffffffffff81111561239157600080fd5b61239d87828801611ed4565b925050606085013567ffffffffffffffff8111156123ba57600080fd5b61219687828801611f40565b6000806000606084860312156123db57600080fd5b60006123e78686611ec8565b935050602061221c86828701611fbe565b60006020828403121561240a57600080fd5b60006112978484611fca565b60006020828403121561242857600080fd5b60006112978484611fd6565b60006020828403121561244657600080fd5b813567ffffffffffffffff81111561245d57600080fd5b61129784828501611fe2565b600080600080600060a0868803121561248157600080fd5b853567ffffffffffffffff81111561249857600080fd5b6124a488828901611fe2565b955050602086013567ffffffffffffffff8111156124c157600080fd5b6124cd88828901611fe2565b94505060406124de88828901611ec8565b935050606086013567ffffffffffffffff8111156124fb57600080fd5b61250788828901611fe2565b925050608086013567ffffffffffffffff81111561252457600080fd5b61253088828901611fe2565b9150509295509295909350565b60006020828403121561254f57600080fd5b60006112978484611fbe565b6000806040838503121561256e57600080fd5b60006123308585611fbe565b61258381613092565b82525050565b61258381613063565b6125838161306e565b60006125a68261305f565b8084526125ba8160208601602086016130af565b6125c3816130db565b9093016020019392505050565b602b81527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560208201527f74206f6620626f756e6473000000000000000000000000000000000000000000604082015260600190565b603281527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560208201527f63656976657220696d706c656d656e7465720000000000000000000000000000604082015260600190565b602681527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160208201527f6464726573730000000000000000000000000000000000000000000000000000604082015260600190565b601c81527f4552433136353a20696e76616c696420696e7465726661636520696400000000602082015260400190565b601c81527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000602082015260400190565b603181527f455243373231426173653a20746865206665655261746520696e20636f70797260208201527f69676874206d757374206265203c3d2031000000000000000000000000000000604082015260600190565b602481527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460208201527f7265737300000000000000000000000000000000000000000000000000000000604082015260600190565b601981527f4552433732313a20617070726f766520746f2063616c6c657200000000000000602082015260400190565b602c81527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860208201527f697374656e7420746f6b656e0000000000000000000000000000000000000000604082015260600190565b601981527f76657269667920736572766572207369676e206661696c656400000000000000602082015260400190565b603881527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760208201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000604082015260600190565b601381527f616c726561647920696e697469616c697a656400000000000000000000000000602082015260400190565b602a81527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560208201527f726f206164647265737300000000000000000000000000000000000000000000604082015260600190565b602981527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460208201527f656e7420746f6b656e0000000000000000000000000000000000000000000000604082015260600190565b60208082527f4552433732313a206d696e7420746f20746865207a65726f20616464726573739082015260400190565b602c81527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860208201527f697374656e7420746f6b656e0000000000000000000000000000000000000000604082015260600190565b602c81527f4552433732314d657461646174613a2055524920736574206f66206e6f6e657860208201527f697374656e7420746f6b656e0000000000000000000000000000000000000000604082015260600190565b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65729082015260400190565b602981527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960208201527f73206e6f74206f776e0000000000000000000000000000000000000000000000604082015260600190565b602f81527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60208201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000604082015260600190565b603181527f455243373231426173653a2074686520617574686f7220696e20636f7079726960208201527f6768742063616e2774206265207a65726f000000000000000000000000000000604082015260600190565b602181527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560208201527f7200000000000000000000000000000000000000000000000000000000000000604082015260600190565b603181527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60208201527f776e6572206e6f7220617070726f766564000000000000000000000000000000604082015260600190565b602c81527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60208201527f7574206f6620626f756e64730000000000000000000000000000000000000000604082015260600190565b603181527f455243373231426173653a20746865206c656e677468206f6620636f7079726960208201527f67687473206d757374206265203c3d2031000000000000000000000000000000604082015260600190565b80516040830190612d3d8482612589565b506020820151610b2e60208501825b6125838161071e565b602081016107ec8284612589565b60808101612d718287612589565b612d7e6020830186612589565b612d8b6040830185612d4c565b8181036060830152612d9d818461259b565b9695505050505050565b60408101612db58285612589565b611d8a6020830184612d4c565b602081016107ec8284612592565b60208082528101611d8a818461259b565b602080825281016107ec816125d0565b602080825281016107ec81612626565b602080825281016107ec8161267c565b602080825281016107ec816126d2565b602080825281016107ec81612702565b602080825281016107ec81612732565b602080825281016107ec81612788565b602080825281016107ec816127de565b602080825281016107ec8161280e565b602080825281016107ec81612864565b602080825281016107ec81612894565b602080825281016107ec816128ea565b602080825281016107ec8161291a565b602080825281016107ec81612970565b602080825281016107ec816129c6565b602080825281016107ec816129f6565b602080825281016107ec81612a4c565b602080825281016107ec81612aa2565b602080825281016107ec81612ad2565b602080825281016107ec81612b28565b602080825281016107ec81612b7e565b602080825281016107ec81612bd4565b602080825281016107ec81612c2a565b602080825281016107ec81612c80565b602080825281016107ec81612cd6565b604081016107ec8284612d2c565b602081016107ec8284612d4c565b60a08101612f9b8288612d4c565b612fa8602083018761257a565b612fb56040830186612589565b612fc26060830185612d4c565b612d9d6080830184612d4c565b60408101612fdd8285612d4c565b8181036020830152611297818461259b565b60405181810167ffffffffffffffff8111828210171561300e57600080fd5b604052919050565b600067ffffffffffffffff82111561302d57600080fd5b5060209081020190565b600067ffffffffffffffff82111561304e57600080fd5b506020601f91909101601f19160190565b5190565b60006107ec82613073565b151590565b600160a060020a031690565b600160e060020a03191690565b60ff1690565b60006107ec8260006107ec82613063565b82818337506000910152565b60005b838110156130ca5781810151838201526020016130b2565b83811115610b2e5750506000910152565b601f01601f19169056fea265627a7a723058202f7a37de58bb75b626ca13a7b9ef13415ccd4f873262e13a7c22a8a3b82ec7046c6578706572696d656e74616cf50037
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.