ERC-721
NFT
Overview
Max Total Supply
34 AVG
Holders
34
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 AVGLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
AvantGarde
Compiler Version
v0.8.6+commit.11564f7e
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: MIT pragma solidity 0.8.6; // import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; contract AvantGarde is ERC721URIStorage { using ECDSA for bytes32; using Counters for Counters.Counter; using Address for address payable; event Minted(uint256 indexed tokenId, uint256 indexed mintPrice); event Burned(uint256 indexed tokenId, uint256 indexed burnPrice); Counters.Counter public totalSupply; uint8 constant fees = 10; // 10% address payable public feesReceiver; address public manager; constructor(address _manager, address payable _feesReceiver) ERC721("AvantGarde", "AVG") { manager = _manager; feesReceiver = _feesReceiver; } function changeFeesReceiver(address _newFeesReceiver) public returns (bool){ require(msg.sender == feesReceiver, "NFR"); feesReceiver = payable(_newFeesReceiver); return true; } function changeManager(address _newManager) public returns (bool){ require(msg.sender == manager, "NM"); manager = _newManager; return true; } function _baseURI() internal override pure returns (string memory) { return "ipfs://"; } function mint(string memory _uri, bytes memory _signature) public payable returns (uint256 _tokenId) { bytes memory _message = abi.encodePacked(_uri, msg.sender); address _recoveredAddress = keccak256(_message).toEthSignedMessageHash().recover(_signature); require(manager == _recoveredAddress, "NM"); // Check price (uint256 price, uint256 mintFees) = currentMintPrice(); require(msg.value == price + mintFees, "AI"); totalSupply.increment(); // Mint token _tokenId = uint256(uint160(bytes20(msg.sender))); _safeMint(msg.sender, _tokenId); _setTokenURI(_tokenId, _uri); feesReceiver.sendValue(mintFees); emit Minted(_tokenId, msg.value); return _tokenId; } function burn(uint256 _tokenId, uint256 _minBurnPrice) public returns (bool){ require(ownerOf(_tokenId) == msg.sender, "NO"); totalSupply.decrement(); _burn(_tokenId); uint256 burnPrice = currentPrice(); require(burnPrice >= _minBurnPrice, "MBPI"); payable(msg.sender).sendValue(burnPrice); emit Burned(_tokenId, burnPrice); return true; } // Price function currentPrice() public view returns (uint256){ return priceFor(totalSupply.current() + 1); } function currentMintPrice() public view returns (uint256, uint256){ return mintPriceFor(totalSupply.current() + 1); } function currentBurnPrice() public view returns (uint256){ return priceFor(totalSupply.current()); } function currentMintWithFeesPrice() public view returns (uint256){ return mintWithFeesPriceFor(totalSupply.current() + 1); } function mintWithFeesPriceFor(uint256 _current) public pure returns (uint256){ (uint256 mintPrice, uint256 mintFees) = mintPriceFor(_current); return mintPrice + mintFees; } function mintPriceFor(uint256 _current) public pure returns (uint256 _currentPrice, uint256 _fees){ _currentPrice = priceFor(_current); _fees = _currentPrice / fees; } function priceFor(uint256 _current) public pure returns (uint256){ return _current ** 2 * (10 ** 18) / 10000; // x^2 / 10000 } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.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" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), 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. * * @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 ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC721.sol"; /** * @dev ERC721 token with storage based token URI management. */ abstract contract ERC721URIStorage is ERC721 { using Strings for uint256; // Optional mapping for token URIs mapping(uint256 => string) private _tokenURIs; /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721URIStorage: URI query for nonexistent token"); string memory _tokenURI = _tokenURIs[tokenId]; string memory base = _baseURI(); // If there is no base URI, return the token URI. if (bytes(base).length == 0) { return _tokenURI; } // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked). if (bytes(_tokenURI).length > 0) { return string(abi.encodePacked(base, _tokenURI)); } return super.tokenURI(tokenId); } /** * @dev Sets `_tokenURI` as the tokenURI of `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual { require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token"); _tokenURIs[tokenId] = _tokenURI; } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual override { super._burn(tokenId); if (bytes(_tokenURIs[tokenId]).length != 0) { delete _tokenURIs[tokenId]; } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return recover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return recover(hash, r, vs); } else { revert("ECDSA: invalid signature length"); } } /** * @dev Overload of {ECDSA-recover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { bytes32 s; uint8 v; assembly { s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) v := add(shr(255, vs), 27) } return recover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (281): 0 < s < secp256k1n ÷ 2 + 1, and for v in (282): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. require( uint256(s) <= 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0, "ECDSA: invalid signature 's' value" ); require(v == 27 || v == 28, "ECDSA: invalid signature 'v' value"); // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); require(signer != address(0), "ECDSA: invalid signature"); return signer; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. 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;` */ library Counters { 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 { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @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) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @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]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) private pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /* * @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 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. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @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); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_manager","type":"address"},{"internalType":"address payable","name":"_feesReceiver","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"burnPrice","type":"uint256"}],"name":"Burned","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"mintPrice","type":"uint256"}],"name":"Minted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_minBurnPrice","type":"uint256"}],"name":"burn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newFeesReceiver","type":"address"}],"name":"changeFeesReceiver","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newManager","type":"address"}],"name":"changeManager","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currentBurnPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentMintWithFeesPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feesReceiver","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"manager","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"mint","outputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_current","type":"uint256"}],"name":"mintPriceFor","outputs":[{"internalType":"uint256","name":"_currentPrice","type":"uint256"},{"internalType":"uint256","name":"_fees","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"_current","type":"uint256"}],"name":"mintWithFeesPriceFor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_current","type":"uint256"}],"name":"priceFor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040516200269a3803806200269a833981016040819052620000349162000176565b604080518082018252600a8152694176616e74476172646560b01b60208083019182528351808501909452600384526241564760e81b9084015281519192916200008191600091620000d0565b50805162000097906001906020840190620000d0565b5050600980546001600160a01b039485166001600160a01b0319918216179091556008805493909416921691909117909155506200020b565b828054620000de90620001b5565b90600052602060002090601f0160209004810192826200010257600085556200014d565b82601f106200011d57805160ff19168380011785556200014d565b828001600101855582156200014d579182015b828111156200014d57825182559160200191906001019062000130565b506200015b9291506200015f565b5090565b5b808211156200015b576000815560010162000160565b600080604083850312156200018a57600080fd5b82516200019781620001f2565b6020840151909250620001aa81620001f2565b809150509250929050565b600181811c90821680620001ca57607f821691505b60208210811415620001ec57634e487b7160e01b600052602260045260246000fd5b50919050565b6001600160a01b03811681146200020857600080fd5b50565b61247f806200021b6000396000f3fe60806040526004361061019c5760003560e01c806377119765116100ec578063a3fbbaae1161008a578063bca93cf511610064578063bca93cf514610493578063c87b56dd146104b3578063e985e9c5146104d3578063f620c8151461051c57600080fd5b8063a3fbbaae14610433578063b390c0ab14610453578063b88d4fde1461047357600080fd5b806395d89b41116100c657806395d89b41146103c957806399f7ab31146103de5780639d1b464a146103fe578063a22cb4651461041357600080fd5b806377119765146103745780638d5555f2146103895780638def9f82146103a957600080fd5b806323b872dd116101595780634737576e116101335780634737576e14610301578063481c6a75146103145780636352211e1461033457806370a082311461035457600080fd5b806323b872dd146102a157806331fd9fd1146102c157806342842e0e146102e157600080fd5b806301ffc9a7146101a15780630561942a146101d657806306fdde0314610200578063081812fc14610222578063095ea7b31461025a57806318160ddd1461027c575b600080fd5b3480156101ad57600080fd5b506101c16101bc366004611f8a565b610531565b60405190151581526020015b60405180910390f35b3480156101e257600080fd5b506101eb610583565b604080519283526020830191909152016101cd565b34801561020c57600080fd5b506102156105a5565b6040516101cd919061213f565b34801561022e57600080fd5b5061024261023d36600461203f565b610637565b6040516001600160a01b0390911681526020016101cd565b34801561026657600080fd5b5061027a610275366004611f60565b6106c4565b005b34801561028857600080fd5b506007546102939081565b6040519081526020016101cd565b3480156102ad57600080fd5b5061027a6102bc366004611e80565b6107da565b3480156102cd57600080fd5b506101c16102dc366004611e32565b61080b565b3480156102ed57600080fd5b5061027a6102fc366004611e80565b610874565b61029361030f366004611fc4565b61088f565b34801561032057600080fd5b50600954610242906001600160a01b031681565b34801561034057600080fd5b5061024261034f36600461203f565b610a24565b34801561036057600080fd5b5061029361036f366004611e32565b610a9b565b34801561038057600080fd5b50610293610b22565b34801561039557600080fd5b506102936103a436600461203f565b610b35565b3480156103b557600080fd5b506102936103c436600461203f565b610b61565b3480156103d557600080fd5b50610215610b86565b3480156103ea57600080fd5b506101eb6103f936600461203f565b610b95565b34801561040a57600080fd5b50610293610bb5565b34801561041f57600080fd5b5061027a61042e366004611f24565b610bce565b34801561043f57600080fd5b506101c161044e366004611e32565b610c93565b34801561045f57600080fd5b506101c161046e366004612058565b610cfb565b34801561047f57600080fd5b5061027a61048e366004611ebc565b610ddb565b34801561049f57600080fd5b50600854610242906001600160a01b031681565b3480156104bf57600080fd5b506102156104ce36600461203f565b610e13565b3480156104df57600080fd5b506101c16104ee366004611e4d565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561052857600080fd5b50610293610f91565b60006001600160e01b031982166380ac58cd60e01b148061056257506001600160e01b03198216635b5e139f60e01b145b8061057d57506301ffc9a760e01b6001600160e01b03198316145b92915050565b60008061059d61059260075490565b6103f99060016121f5565b915091509091565b6060600080546105b490612371565b80601f01602080910402602001604051908101604052809291908181526020018280546105e090612371565b801561062d5780601f106106025761010080835404028352916020019161062d565b820191906000526020600020905b81548152906001019060200180831161061057829003601f168201915b5050505050905090565b600061064282610faa565b6106a85760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006106cf82610a24565b9050806001600160a01b0316836001600160a01b0316141561073d5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161069f565b336001600160a01b0382161480610759575061075981336104ee565b6107cb5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161069f565b6107d58383610fc7565b505050565b6107e43382611035565b6108005760405162461bcd60e51b815260040161069f906121a4565b6107d583838361111b565b6008546000906001600160a01b0316331461084e5760405162461bcd60e51b815260206004820152600360248201526227232960e91b604482015260640161069f565b50600880546001600160a01b0319166001600160a01b0392909216919091179055600190565b6107d583838360405180602001604052806000815250610ddb565b60008083336040516020016108a59291906120a6565b604051602081830303815290604052905060006109208461091a84805190602001206040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b906112bb565b6009549091506001600160a01b038083169116146109655760405162461bcd60e51b81526020600482015260026024820152614e4d60f01b604482015260640161069f565b600080610970610583565b909250905061097f81836121f5565b34146109b25760405162461bcd60e51b8152602060048201526002602482015261414960f01b604482015260640161069f565b6109c0600780546001019055565b3394506109cd858061135f565b6109d7858861137d565b6008546109ed906001600160a01b031682611408565b604051349086907f8a9dcf4e150b1153011b29fec302d5be0c13e84fa8f56ab78587f778a32a90dd90600090a35050505092915050565b6000818152600260205260408120546001600160a01b03168061057d5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161069f565b60006001600160a01b038216610b065760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161069f565b506001600160a01b031660009081526003602052604090205490565b6000610b306103a460075490565b905090565b6000612710610b45600284612264565b610b5790670de0b6b3a764000061230f565b61057d919061220d565b6000806000610b6f84610b95565b9092509050610b7e81836121f5565b949350505050565b6060600180546105b490612371565b600080610ba183610b35565b9150610bae600a8361220d565b9050915091565b6000610b30610bc360075490565b6103a49060016121f5565b6001600160a01b038216331415610c275760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161069f565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6009546000906001600160a01b03163314610cd55760405162461bcd60e51b81526020600482015260026024820152614e4d60f01b604482015260640161069f565b50600980546001600160a01b0319166001600160a01b0392909216919091179055600190565b600033610d0784610a24565b6001600160a01b031614610d425760405162461bcd60e51b81526020600482015260026024820152614e4f60f01b604482015260640161069f565b610d4c6007611521565b610d5583611578565b6000610d5f610bb5565b905082811015610d9a5760405162461bcd60e51b815260040161069f906020808252600490820152634d42504960e01b604082015260600190565b610da43382611408565b604051819085907fcec1bae6e024d929f2929f3478ce70f55f9c636c8ef7b5073a61d7c3a432451b90600090a35060019392505050565b610de53383611035565b610e015760405162461bcd60e51b815260040161069f906121a4565b610e0d848484846115bb565b50505050565b6060610e1e82610faa565b610e845760405162461bcd60e51b815260206004820152603160248201527f45524337323155524953746f726167653a2055524920717565727920666f72206044820152703737b732bc34b9ba32b73a103a37b5b2b760791b606482015260840161069f565b60008281526006602052604081208054610e9d90612371565b80601f0160208091040260200160405190810160405280929190818152602001828054610ec990612371565b8015610f165780601f10610eeb57610100808354040283529160200191610f16565b820191906000526020600020905b815481529060010190602001808311610ef957829003601f168201915b505050505090506000610f43604080518082019091526007815266697066733a2f2f60c81b602082015290565b9050805160001415610f56575092915050565b815115610f88578082604051602001610f709291906120dd565b60405160208183030381529060405292505050919050565b610b7e846115ee565b6000610b30610f9f60075490565b6103c49060016121f5565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610ffc82610a24565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061104082610faa565b6110a15760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161069f565b60006110ac83610a24565b9050806001600160a01b0316846001600160a01b031614806110e75750836001600160a01b03166110dc84610637565b6001600160a01b0316145b80610b7e57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff16610b7e565b826001600160a01b031661112e82610a24565b6001600160a01b0316146111965760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b606482015260840161069f565b6001600160a01b0382166111f85760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161069f565b611203600082610fc7565b6001600160a01b038316600090815260036020526040812080546001929061122c90849061232e565b90915550506001600160a01b038216600090815260036020526040812080546001929061125a9084906121f5565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60008151604114156112ef5760208201516040830151606084015160001a6112e5868285856116d5565b935050505061057d565b815160401415611317576020820151604083015161130e85838361187e565b9250505061057d565b60405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161069f565b6113798282604051806020016040528060008152506118a8565b5050565b61138682610faa565b6113e95760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b606482015260840161069f565b600082815260066020908152604090912082516107d592840190611cb1565b804710156114585760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015260640161069f565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146114a5576040519150601f19603f3d011682016040523d82523d6000602084013e6114aa565b606091505b50509050806107d55760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d61792068617665207265766572746564000000000000606482015260840161069f565b8054806115705760405162461bcd60e51b815260206004820152601b60248201527f436f756e7465723a2064656372656d656e74206f766572666c6f770000000000604482015260640161069f565b600019019055565b611581816118db565b6000818152600660205260409020805461159a90612371565b1590506115b85760008181526006602052604081206115b891611d35565b50565b6115c684848461111b565b6115d284848484611976565b610e0d5760405162461bcd60e51b815260040161069f90612152565b60606115f982610faa565b61165d5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161069f565b6000611683604080518082019091526007815266697066733a2f2f60c81b602082015290565b905060008151116116a357604051806020016040528060008152506116ce565b806116ad84611a80565b6040516020016116be9291906120dd565b6040516020818303038152906040525b9392505050565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08211156117525760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b606482015260840161069f565b8360ff16601b148061176757508360ff16601c145b6117be5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b606482015260840161069f565b6040805160008082526020820180845288905260ff871692820192909252606081018590526080810184905260019060a0016020604051602081039080840390855afa158015611812573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166118755760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161069f565b95945050505050565b60006001600160ff1b03821660ff83901c601b0161189e868287856116d5565b9695505050505050565b6118b28383611b7e565b6118bf6000848484611976565b6107d55760405162461bcd60e51b815260040161069f90612152565b60006118e682610a24565b90506118f3600083610fc7565b6001600160a01b038116600090815260036020526040812080546001929061191c90849061232e565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60006001600160a01b0384163b15611a7857604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906119ba90339089908890889060040161210c565b602060405180830381600087803b1580156119d457600080fd5b505af1925050508015611a04575060408051601f3d908101601f19168201909252611a0191810190611fa7565b60015b611a5e573d808015611a32576040519150601f19603f3d011682016040523d82523d6000602084013e611a37565b606091505b508051611a565760405162461bcd60e51b815260040161069f90612152565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610b7e565b506001610b7e565b606081611aa45750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611ace5780611ab8816123ac565b9150611ac79050600a8361220d565b9150611aa8565b60008167ffffffffffffffff811115611ae957611ae961241d565b6040519080825280601f01601f191660200182016040528015611b13576020820181803683370190505b5090505b8415610b7e57611b2860018361232e565b9150611b35600a866123c7565b611b409060306121f5565b60f81b818381518110611b5557611b55612407565b60200101906001600160f81b031916908160001a905350611b77600a8661220d565b9450611b17565b6001600160a01b038216611bd45760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161069f565b611bdd81610faa565b15611c2a5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161069f565b6001600160a01b0382166000908152600360205260408120805460019290611c539084906121f5565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054611cbd90612371565b90600052602060002090601f016020900481019282611cdf5760008555611d25565b82601f10611cf857805160ff1916838001178555611d25565b82800160010185558215611d25579182015b82811115611d25578251825591602001919060010190611d0a565b50611d31929150611d6b565b5090565b508054611d4190612371565b6000825580601f10611d51575050565b601f0160209004906000526020600020908101906115b891905b5b80821115611d315760008155600101611d6c565b600067ffffffffffffffff80841115611d9b57611d9b61241d565b604051601f8501601f19908116603f01168101908282118183101715611dc357611dc361241d565b81604052809350858152868686011115611ddc57600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b0381168114611e0d57600080fd5b919050565b600082601f830112611e2357600080fd5b6116ce83833560208501611d80565b600060208284031215611e4457600080fd5b6116ce82611df6565b60008060408385031215611e6057600080fd5b611e6983611df6565b9150611e7760208401611df6565b90509250929050565b600080600060608486031215611e9557600080fd5b611e9e84611df6565b9250611eac60208501611df6565b9150604084013590509250925092565b60008060008060808587031215611ed257600080fd5b611edb85611df6565b9350611ee960208601611df6565b925060408501359150606085013567ffffffffffffffff811115611f0c57600080fd5b611f1887828801611e12565b91505092959194509250565b60008060408385031215611f3757600080fd5b611f4083611df6565b915060208301358015158114611f5557600080fd5b809150509250929050565b60008060408385031215611f7357600080fd5b611f7c83611df6565b946020939093013593505050565b600060208284031215611f9c57600080fd5b81356116ce81612433565b600060208284031215611fb957600080fd5b81516116ce81612433565b60008060408385031215611fd757600080fd5b823567ffffffffffffffff80821115611fef57600080fd5b818501915085601f83011261200357600080fd5b61201286833560208501611d80565b9350602085013591508082111561202857600080fd5b5061203585828601611e12565b9150509250929050565b60006020828403121561205157600080fd5b5035919050565b6000806040838503121561206b57600080fd5b50508035926020909101359150565b60008151808452612092816020860160208601612345565b601f01601f19169290920160200192915050565b600083516120b8818460208801612345565b60609390931b6bffffffffffffffffffffffff19169190920190815260140192915050565b600083516120ef818460208801612345565b835190830190612103818360208801612345565b01949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061189e9083018461207a565b6020815260006116ce602083018461207a565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60008219821115612208576122086123db565b500190565b60008261221c5761221c6123f1565b500490565b600181815b8085111561225c578160001904821115612242576122426123db565b8085161561224f57918102915b93841c9390800290612226565b509250929050565b60006116ce60ff84168360008261227d5750600161057d565b8161228a5750600061057d565b81600181146122a057600281146122aa576122c6565b600191505061057d565b60ff8411156122bb576122bb6123db565b50506001821b61057d565b5060208310610133831016604e8410600b84101617156122e9575081810a61057d565b6122f38383612221565b8060001904821115612307576123076123db565b029392505050565b6000816000190483118215151615612329576123296123db565b500290565b600082821015612340576123406123db565b500390565b60005b83811015612360578181015183820152602001612348565b83811115610e0d5750506000910152565b600181811c9082168061238557607f821691505b602082108114156123a657634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156123c0576123c06123db565b5060010190565b6000826123d6576123d66123f1565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b0319811681146115b857600080fdfea2646970667358221220b1eae1411e039c77b744d2005dac8843c45f41020cafa3325ed5f0eb23b8884764736f6c634300080600330000000000000000000000002a3624b3c2d5492c5ed6001d078455c5c10de6170000000000000000000000007b7e9410a2245459b7270140c45f55ddaef58392
Deployed Bytecode
0x60806040526004361061019c5760003560e01c806377119765116100ec578063a3fbbaae1161008a578063bca93cf511610064578063bca93cf514610493578063c87b56dd146104b3578063e985e9c5146104d3578063f620c8151461051c57600080fd5b8063a3fbbaae14610433578063b390c0ab14610453578063b88d4fde1461047357600080fd5b806395d89b41116100c657806395d89b41146103c957806399f7ab31146103de5780639d1b464a146103fe578063a22cb4651461041357600080fd5b806377119765146103745780638d5555f2146103895780638def9f82146103a957600080fd5b806323b872dd116101595780634737576e116101335780634737576e14610301578063481c6a75146103145780636352211e1461033457806370a082311461035457600080fd5b806323b872dd146102a157806331fd9fd1146102c157806342842e0e146102e157600080fd5b806301ffc9a7146101a15780630561942a146101d657806306fdde0314610200578063081812fc14610222578063095ea7b31461025a57806318160ddd1461027c575b600080fd5b3480156101ad57600080fd5b506101c16101bc366004611f8a565b610531565b60405190151581526020015b60405180910390f35b3480156101e257600080fd5b506101eb610583565b604080519283526020830191909152016101cd565b34801561020c57600080fd5b506102156105a5565b6040516101cd919061213f565b34801561022e57600080fd5b5061024261023d36600461203f565b610637565b6040516001600160a01b0390911681526020016101cd565b34801561026657600080fd5b5061027a610275366004611f60565b6106c4565b005b34801561028857600080fd5b506007546102939081565b6040519081526020016101cd565b3480156102ad57600080fd5b5061027a6102bc366004611e80565b6107da565b3480156102cd57600080fd5b506101c16102dc366004611e32565b61080b565b3480156102ed57600080fd5b5061027a6102fc366004611e80565b610874565b61029361030f366004611fc4565b61088f565b34801561032057600080fd5b50600954610242906001600160a01b031681565b34801561034057600080fd5b5061024261034f36600461203f565b610a24565b34801561036057600080fd5b5061029361036f366004611e32565b610a9b565b34801561038057600080fd5b50610293610b22565b34801561039557600080fd5b506102936103a436600461203f565b610b35565b3480156103b557600080fd5b506102936103c436600461203f565b610b61565b3480156103d557600080fd5b50610215610b86565b3480156103ea57600080fd5b506101eb6103f936600461203f565b610b95565b34801561040a57600080fd5b50610293610bb5565b34801561041f57600080fd5b5061027a61042e366004611f24565b610bce565b34801561043f57600080fd5b506101c161044e366004611e32565b610c93565b34801561045f57600080fd5b506101c161046e366004612058565b610cfb565b34801561047f57600080fd5b5061027a61048e366004611ebc565b610ddb565b34801561049f57600080fd5b50600854610242906001600160a01b031681565b3480156104bf57600080fd5b506102156104ce36600461203f565b610e13565b3480156104df57600080fd5b506101c16104ee366004611e4d565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561052857600080fd5b50610293610f91565b60006001600160e01b031982166380ac58cd60e01b148061056257506001600160e01b03198216635b5e139f60e01b145b8061057d57506301ffc9a760e01b6001600160e01b03198316145b92915050565b60008061059d61059260075490565b6103f99060016121f5565b915091509091565b6060600080546105b490612371565b80601f01602080910402602001604051908101604052809291908181526020018280546105e090612371565b801561062d5780601f106106025761010080835404028352916020019161062d565b820191906000526020600020905b81548152906001019060200180831161061057829003601f168201915b5050505050905090565b600061064282610faa565b6106a85760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006106cf82610a24565b9050806001600160a01b0316836001600160a01b0316141561073d5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161069f565b336001600160a01b0382161480610759575061075981336104ee565b6107cb5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161069f565b6107d58383610fc7565b505050565b6107e43382611035565b6108005760405162461bcd60e51b815260040161069f906121a4565b6107d583838361111b565b6008546000906001600160a01b0316331461084e5760405162461bcd60e51b815260206004820152600360248201526227232960e91b604482015260640161069f565b50600880546001600160a01b0319166001600160a01b0392909216919091179055600190565b6107d583838360405180602001604052806000815250610ddb565b60008083336040516020016108a59291906120a6565b604051602081830303815290604052905060006109208461091a84805190602001206040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b906112bb565b6009549091506001600160a01b038083169116146109655760405162461bcd60e51b81526020600482015260026024820152614e4d60f01b604482015260640161069f565b600080610970610583565b909250905061097f81836121f5565b34146109b25760405162461bcd60e51b8152602060048201526002602482015261414960f01b604482015260640161069f565b6109c0600780546001019055565b3394506109cd858061135f565b6109d7858861137d565b6008546109ed906001600160a01b031682611408565b604051349086907f8a9dcf4e150b1153011b29fec302d5be0c13e84fa8f56ab78587f778a32a90dd90600090a35050505092915050565b6000818152600260205260408120546001600160a01b03168061057d5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161069f565b60006001600160a01b038216610b065760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161069f565b506001600160a01b031660009081526003602052604090205490565b6000610b306103a460075490565b905090565b6000612710610b45600284612264565b610b5790670de0b6b3a764000061230f565b61057d919061220d565b6000806000610b6f84610b95565b9092509050610b7e81836121f5565b949350505050565b6060600180546105b490612371565b600080610ba183610b35565b9150610bae600a8361220d565b9050915091565b6000610b30610bc360075490565b6103a49060016121f5565b6001600160a01b038216331415610c275760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161069f565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6009546000906001600160a01b03163314610cd55760405162461bcd60e51b81526020600482015260026024820152614e4d60f01b604482015260640161069f565b50600980546001600160a01b0319166001600160a01b0392909216919091179055600190565b600033610d0784610a24565b6001600160a01b031614610d425760405162461bcd60e51b81526020600482015260026024820152614e4f60f01b604482015260640161069f565b610d4c6007611521565b610d5583611578565b6000610d5f610bb5565b905082811015610d9a5760405162461bcd60e51b815260040161069f906020808252600490820152634d42504960e01b604082015260600190565b610da43382611408565b604051819085907fcec1bae6e024d929f2929f3478ce70f55f9c636c8ef7b5073a61d7c3a432451b90600090a35060019392505050565b610de53383611035565b610e015760405162461bcd60e51b815260040161069f906121a4565b610e0d848484846115bb565b50505050565b6060610e1e82610faa565b610e845760405162461bcd60e51b815260206004820152603160248201527f45524337323155524953746f726167653a2055524920717565727920666f72206044820152703737b732bc34b9ba32b73a103a37b5b2b760791b606482015260840161069f565b60008281526006602052604081208054610e9d90612371565b80601f0160208091040260200160405190810160405280929190818152602001828054610ec990612371565b8015610f165780601f10610eeb57610100808354040283529160200191610f16565b820191906000526020600020905b815481529060010190602001808311610ef957829003601f168201915b505050505090506000610f43604080518082019091526007815266697066733a2f2f60c81b602082015290565b9050805160001415610f56575092915050565b815115610f88578082604051602001610f709291906120dd565b60405160208183030381529060405292505050919050565b610b7e846115ee565b6000610b30610f9f60075490565b6103c49060016121f5565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610ffc82610a24565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061104082610faa565b6110a15760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161069f565b60006110ac83610a24565b9050806001600160a01b0316846001600160a01b031614806110e75750836001600160a01b03166110dc84610637565b6001600160a01b0316145b80610b7e57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff16610b7e565b826001600160a01b031661112e82610a24565b6001600160a01b0316146111965760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b606482015260840161069f565b6001600160a01b0382166111f85760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161069f565b611203600082610fc7565b6001600160a01b038316600090815260036020526040812080546001929061122c90849061232e565b90915550506001600160a01b038216600090815260036020526040812080546001929061125a9084906121f5565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60008151604114156112ef5760208201516040830151606084015160001a6112e5868285856116d5565b935050505061057d565b815160401415611317576020820151604083015161130e85838361187e565b9250505061057d565b60405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161069f565b6113798282604051806020016040528060008152506118a8565b5050565b61138682610faa565b6113e95760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b606482015260840161069f565b600082815260066020908152604090912082516107d592840190611cb1565b804710156114585760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015260640161069f565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146114a5576040519150601f19603f3d011682016040523d82523d6000602084013e6114aa565b606091505b50509050806107d55760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d61792068617665207265766572746564000000000000606482015260840161069f565b8054806115705760405162461bcd60e51b815260206004820152601b60248201527f436f756e7465723a2064656372656d656e74206f766572666c6f770000000000604482015260640161069f565b600019019055565b611581816118db565b6000818152600660205260409020805461159a90612371565b1590506115b85760008181526006602052604081206115b891611d35565b50565b6115c684848461111b565b6115d284848484611976565b610e0d5760405162461bcd60e51b815260040161069f90612152565b60606115f982610faa565b61165d5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161069f565b6000611683604080518082019091526007815266697066733a2f2f60c81b602082015290565b905060008151116116a357604051806020016040528060008152506116ce565b806116ad84611a80565b6040516020016116be9291906120dd565b6040516020818303038152906040525b9392505050565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08211156117525760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b606482015260840161069f565b8360ff16601b148061176757508360ff16601c145b6117be5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b606482015260840161069f565b6040805160008082526020820180845288905260ff871692820192909252606081018590526080810184905260019060a0016020604051602081039080840390855afa158015611812573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166118755760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161069f565b95945050505050565b60006001600160ff1b03821660ff83901c601b0161189e868287856116d5565b9695505050505050565b6118b28383611b7e565b6118bf6000848484611976565b6107d55760405162461bcd60e51b815260040161069f90612152565b60006118e682610a24565b90506118f3600083610fc7565b6001600160a01b038116600090815260036020526040812080546001929061191c90849061232e565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60006001600160a01b0384163b15611a7857604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906119ba90339089908890889060040161210c565b602060405180830381600087803b1580156119d457600080fd5b505af1925050508015611a04575060408051601f3d908101601f19168201909252611a0191810190611fa7565b60015b611a5e573d808015611a32576040519150601f19603f3d011682016040523d82523d6000602084013e611a37565b606091505b508051611a565760405162461bcd60e51b815260040161069f90612152565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610b7e565b506001610b7e565b606081611aa45750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611ace5780611ab8816123ac565b9150611ac79050600a8361220d565b9150611aa8565b60008167ffffffffffffffff811115611ae957611ae961241d565b6040519080825280601f01601f191660200182016040528015611b13576020820181803683370190505b5090505b8415610b7e57611b2860018361232e565b9150611b35600a866123c7565b611b409060306121f5565b60f81b818381518110611b5557611b55612407565b60200101906001600160f81b031916908160001a905350611b77600a8661220d565b9450611b17565b6001600160a01b038216611bd45760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161069f565b611bdd81610faa565b15611c2a5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161069f565b6001600160a01b0382166000908152600360205260408120805460019290611c539084906121f5565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054611cbd90612371565b90600052602060002090601f016020900481019282611cdf5760008555611d25565b82601f10611cf857805160ff1916838001178555611d25565b82800160010185558215611d25579182015b82811115611d25578251825591602001919060010190611d0a565b50611d31929150611d6b565b5090565b508054611d4190612371565b6000825580601f10611d51575050565b601f0160209004906000526020600020908101906115b891905b5b80821115611d315760008155600101611d6c565b600067ffffffffffffffff80841115611d9b57611d9b61241d565b604051601f8501601f19908116603f01168101908282118183101715611dc357611dc361241d565b81604052809350858152868686011115611ddc57600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b0381168114611e0d57600080fd5b919050565b600082601f830112611e2357600080fd5b6116ce83833560208501611d80565b600060208284031215611e4457600080fd5b6116ce82611df6565b60008060408385031215611e6057600080fd5b611e6983611df6565b9150611e7760208401611df6565b90509250929050565b600080600060608486031215611e9557600080fd5b611e9e84611df6565b9250611eac60208501611df6565b9150604084013590509250925092565b60008060008060808587031215611ed257600080fd5b611edb85611df6565b9350611ee960208601611df6565b925060408501359150606085013567ffffffffffffffff811115611f0c57600080fd5b611f1887828801611e12565b91505092959194509250565b60008060408385031215611f3757600080fd5b611f4083611df6565b915060208301358015158114611f5557600080fd5b809150509250929050565b60008060408385031215611f7357600080fd5b611f7c83611df6565b946020939093013593505050565b600060208284031215611f9c57600080fd5b81356116ce81612433565b600060208284031215611fb957600080fd5b81516116ce81612433565b60008060408385031215611fd757600080fd5b823567ffffffffffffffff80821115611fef57600080fd5b818501915085601f83011261200357600080fd5b61201286833560208501611d80565b9350602085013591508082111561202857600080fd5b5061203585828601611e12565b9150509250929050565b60006020828403121561205157600080fd5b5035919050565b6000806040838503121561206b57600080fd5b50508035926020909101359150565b60008151808452612092816020860160208601612345565b601f01601f19169290920160200192915050565b600083516120b8818460208801612345565b60609390931b6bffffffffffffffffffffffff19169190920190815260140192915050565b600083516120ef818460208801612345565b835190830190612103818360208801612345565b01949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061189e9083018461207a565b6020815260006116ce602083018461207a565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60008219821115612208576122086123db565b500190565b60008261221c5761221c6123f1565b500490565b600181815b8085111561225c578160001904821115612242576122426123db565b8085161561224f57918102915b93841c9390800290612226565b509250929050565b60006116ce60ff84168360008261227d5750600161057d565b8161228a5750600061057d565b81600181146122a057600281146122aa576122c6565b600191505061057d565b60ff8411156122bb576122bb6123db565b50506001821b61057d565b5060208310610133831016604e8410600b84101617156122e9575081810a61057d565b6122f38383612221565b8060001904821115612307576123076123db565b029392505050565b6000816000190483118215151615612329576123296123db565b500290565b600082821015612340576123406123db565b500390565b60005b83811015612360578181015183820152602001612348565b83811115610e0d5750506000910152565b600181811c9082168061238557607f821691505b602082108114156123a657634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156123c0576123c06123db565b5060010190565b6000826123d6576123d66123f1565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b0319811681146115b857600080fdfea2646970667358221220b1eae1411e039c77b744d2005dac8843c45f41020cafa3325ed5f0eb23b8884764736f6c63430008060033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000002a3624b3c2d5492c5ed6001d078455c5c10de6170000000000000000000000007b7e9410a2245459b7270140c45f55ddaef58392
-----Decoded View---------------
Arg [0] : _manager (address): 0x2a3624b3C2d5492C5eD6001d078455C5C10de617
Arg [1] : _feesReceiver (address): 0x7B7e9410A2245459b7270140C45F55DDaeF58392
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000002a3624b3c2d5492c5ed6001d078455c5c10de617
Arg [1] : 0000000000000000000000007b7e9410a2245459b7270140c45f55ddaef58392
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.