Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
0 BLANK
Holders
940
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
5 BLANKLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
BlankArt
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
Yes with 100 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/access/Ownable.sol"; 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/cryptography/draft-EIP712.sol"; import "./IERC2981.sol"; contract BlankArt is ERC721, EIP712, ERC721URIStorage, Ownable, IERC2981 { event Initialized( address controller, address signer, string baseURI, uint256 mintPrice, uint256 maxTokenSupply, bool active, bool publicMint ); // An event whenever the foundation address is updated event FoundationAddressUpdated(address foundationAddress); // An event whenever the voucher signer address is updated event VoucherSignersUpdated(address foundationAddress, bool active); event BaseTokenUriUpdated(string baseTokenURI); event PermanentURI(string _value, uint256 indexed _id); // https://docs.opensea.io/docs/metadata-standards event Minted(uint256 tokenId, address member, string tokenURI); event BlankRoyaltySet(address recipient, uint16 bps); // if a token's URI has been locked or not mapping(uint256 => uint256) public tokenURILocked; // signing domain string private constant SIGNING_DOMAIN = "BlankNFT"; // signature version string private constant SIGNATURE_VERSION = "1"; // address which signs the voucher mapping(address => bool) _voucherSigners; // Array of _baseURIs string[] private _baseURIs; // gets incremented to placehold for tokens not minted yet uint256 public maxTokenSupply; // cost to mint during the public sale uint256 public mintPrice; // Enables/Disables voucher redemption bool public active; // Enables/Disables public minting (without a whitelisted voucher) bool public publicMint; // the address of the platform (for receiving commissions and royalties) address payable public foundationAddress; // pending withdrawals by account address mapping(address => uint256) pendingWithdrawals; // Max number of tokens a member can mint uint8 public memberMaxMintCount; // current token index uint256 public tokenIndex; // pending withdrawals by account address mapping(bytes32 => bool) private voucherClaimed; // EIP2981 struct RoyaltyInfo { address recipient; uint24 bps; } RoyaltyInfo public blankRoyalty; constructor( address payable _foundationAddress, address _signer, uint256 _maxTokenSupply, string memory baseURI, uint16 _royaltyBPS ) ERC721("BlankArt", "BLANK") EIP712(SIGNING_DOMAIN, SIGNATURE_VERSION) { memberMaxMintCount = 5; foundationAddress = _foundationAddress; _voucherSigners[_signer] = true; maxTokenSupply = _maxTokenSupply; require(maxTokenSupply > 0); tokenIndex = 1; mintPrice = 0; publicMint = false; _baseURIs.push(""); // Default the initial index to 1. The lockTokenURI map will default to 0 for all unmapped tokens. _baseURIs.push(baseURI); active = true; emit Initialized( foundationAddress, _signer, baseURI, mintPrice, maxTokenSupply, active, publicMint ); //Setup the initial royalty recipient and amount blankRoyalty = RoyaltyInfo(_foundationAddress, _royaltyBPS); } /// @notice Represents a voucher to claim any un-minted NFT (up to memberMaxMintCount), which has not yet been recorded into the blockchain. A signed voucher can be redeemed for real NFTs using the redeemVoucher function. struct BlankNFTVoucher { /// @notice address of intended redeemer address redeemerAddress; /// @notice Expiration of the voucher, expressed in seconds since the Unix epoch. uint256 expiration; /// @notice The minimum price (in wei) that the NFT creator is willing to accept for the initial sale of this NFT. uint256 minPrice; /// @notice amount of tokens the voucher can claim. uint16 tokenCount; /// @notice the EIP-712 signature of all other fields in the NFTVoucher struct. For a voucher to be valid, it must be signed by an account with the MINTER_ROLE. bytes signature; } function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal override(ERC721) { super._beforeTokenTransfer(from, to, tokenId); } function _burn(uint256 tokenId) internal override(ERC721, ERC721URIStorage) { super._burn(tokenId); } function isMember(address account) external view returns (bool) { return (balanceOf(account) > 0); } function addBaseURI(string calldata baseURI) external onlyOwner { _baseURIs.push(baseURI); emit BaseTokenUriUpdated(baseURI); } // Overridden. Gets the TokenURI based on the locked version. function tokenURI(uint256 tokenId) public view override(ERC721, ERC721URIStorage) returns (string memory) { string memory _base = ""; require(_exists(tokenId), "ERC721URIStorage: URI query for nonexistent token"); if (tokenURILocked[tokenId] > 0) _base = _baseURIs[tokenURILocked[tokenId]]; else _base = _baseURIs[_baseURIs.length - 1]; return string(abi.encodePacked(_base, Strings.toString(tokenId), ".json")); } function _checkMemberMintCount(address account) internal view { if (balanceOf(account) >= memberMaxMintCount) { revert( string( abi.encodePacked( "Account ", Strings.toHexString(uint160(account), 20), " has reached its minting limit of ", memberMaxMintCount, ", so cannot mint" ) ) ); } } // Allows the current foundation address to update to something different function updateFoundationAddress(address payable newFoundationAddress) external onlyOwner { foundationAddress = newFoundationAddress; emit FoundationAddressUpdated(newFoundationAddress); } // Allows the voucher signing address function addVoucherSigner(address newVoucherSigner) external onlyOwner { _voucherSigners[newVoucherSigner] = true; emit VoucherSignersUpdated(newVoucherSigner, true); } // Disallows a voucher signing address function removeVoucherSigner(address oldVoucherSigner) external onlyOwner { _voucherSigners[oldVoucherSigner] = false; emit VoucherSignersUpdated(oldVoucherSigner, false); } // Locks a token's URI from being updated. Only callable by the token owner. function lockTokenURI(uint256 tokenId) external { // ensure that this token exists require(_exists(tokenId), "ERC721URIStorage: URI query for nonexistent token"); // ensure that the token is owned by the caller require(ownerOf(tokenId) == msg.sender, "Invalid: Only the owner can lock their token"); // lock this token's URI from being changed tokenURILocked[tokenId] = _baseURIs.length - 1; emit PermanentURI(tokenURI(tokenId), tokenId); } // Updates the mintPrice function updateMintPrice(uint256 price) external onlyOwner { // Update the mintPrice mintPrice = price; } // Updates the memberMaxMintCount function updateMaxMintCount(uint8 _maxMint) external onlyOwner { require(_maxMint > 0, "Max mint cannot be zero"); memberMaxMintCount = _maxMint; } // Toggle the value of publicMint function togglePublicMint() external onlyOwner { publicMint = !publicMint; } // Pause minting function toggleActivation() external onlyOwner { active = !active; } function _mintBlank(address owner) private returns (uint256) { uint256 tokenId = tokenIndex; _checkMemberMintCount(owner); super._safeMint(owner, tokenId); tokenIndex++; string memory tokenUri = tokenURI(tokenId); emit Minted(tokenId, owner, tokenUri); return tokenId; } function redeemVoucher(uint256 amount, BlankNFTVoucher calldata voucher) public payable returns (uint256[] memory) { // make sure voucher redemption period is active require(active, "Voucher redemption is not currently active"); // make sure signature is valid and get the address of the signer address signer = _verify(voucher); // make sure caller is the redeemer require(msg.sender == voucher.redeemerAddress, "Voucher is for a different wallet address"); // make sure voucher has not expired. require(block.timestamp <= voucher.expiration, "Voucher has expired"); // make sure that the signer is the designated signer require(_voucherSigners[signer], "Signature invalid or unauthorized"); require( balanceOf(voucher.redeemerAddress) + amount <= memberMaxMintCount, "Amount is more than the minting limit" ); require(tokenIndex + amount <= maxTokenSupply + 1, "All tokens have already been minted"); // make sure that the redeemer is paying enough to cover the buyer's cost require(msg.value >= (voucher.minPrice * amount), "Insufficient funds to redeem"); require(amount <= voucher.tokenCount, "Amount is more than the voucher allows"); // make sure voucher has not already been claimed. If true, it HAS been claimed require(!voucherClaimed[_hash(voucher)], "Voucher has already been claimed"); // assign the token directly to the redeemer uint256[] memory tokenIds = new uint256[](amount); for (uint256 num = 0; num < amount; num++) { uint256 tokenId = _mintBlank(voucher.redeemerAddress); tokenIds[num] = tokenId; } // record payment to signer's withdrawal balance pendingWithdrawals[foundationAddress] += msg.value; voucherClaimed[_hash(voucher)] = true; return tokenIds; } // Public mint function. Whitelisted members will utilize redeemVoucher() function mint(uint256 amount) public payable returns (uint256[] memory) { require(publicMint && active, "Public minting is not active."); require( balanceOf(msg.sender) + amount <= memberMaxMintCount, "Amount is more than the minting limit" ); require(tokenIndex + amount <= maxTokenSupply + 1, "All tokens have already been minted"); // make sure that the caller is paying enough to cover the mintPrice require(msg.value >= (mintPrice * amount), "Insufficient funds to mint"); // assign the token directly to the redeemer uint256[] memory tokenIds = new uint256[](amount); for (uint256 num = 0; num < amount; num++) { uint256 tokenId = _mintBlank(msg.sender); tokenIds[num] = tokenId; } // record payment to foundationAddress withdrawal balance pendingWithdrawals[foundationAddress] += msg.value; return tokenIds; } /// @notice Transfers all pending withdrawal balance to the caller. Reverts if the caller is not an authorized minter. function withdraw() public { // IMPORTANT: casting msg.sender to a payable address is only safe if ALL members of the minter role are payable addresses. address payable receiver = payable(msg.sender); uint256 amount = pendingWithdrawals[receiver]; // zero account before transfer to prevent re-entrancy attack pendingWithdrawals[receiver] = 0; receiver.transfer(amount); } /// @notice Returns the amount of Ether available to the caller to withdraw. function availableToWithdraw() public view returns (uint256) { return pendingWithdrawals[msg.sender]; } /// @notice Returns a hash of the given BlankNFTVoucher, prepared using EIP712 typed data hashing rules. /// @param voucher An NFTVoucher to hash. function _hash(BlankNFTVoucher calldata voucher) internal view returns (bytes32) { return _hashTypedDataV4( keccak256( abi.encode( keccak256( "BlankNFTVoucher(address redeemerAddress,uint256 expiration,uint256 minPrice,uint16 tokenCount)" ), voucher.redeemerAddress, voucher.expiration, voucher.minPrice, voucher.tokenCount ) ) ); } /// @notice Returns the chain id of the current blockchain. /// @dev This is used to workaround an issue with ganache returning different values from the on-chain chainid() function and /// the eth_chainId RPC method. See https://github.com/protocol/nft-website/issues/121 for context. function getChainID() external view returns (uint256) { uint256 id; assembly { id := chainid() } return id; } /// @notice Verifies the signature for a given BlankNFTVoucher, returning the address of the signer. /// @dev Will revert if the signature is invalid. Does not verify that the signer is authorized to mint NFTs. /// @param voucher An BlankNFTVoucher describing an unminted NFT. function _verify(BlankNFTVoucher calldata voucher) internal view returns (address) { bytes32 digest = _hash(voucher); return ECDSA.recover(digest, voucher.signature); } /// @notice Called with the sale price to determine how much royalty // is owed and to whom. /// @param - the tokenId queried for royalty information --Not Utilized, All tokens have the same royalty /// @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, uint256 salePrice) external view override(IERC2981) returns (address receiver, uint256 royaltyAmount) { return ( blankRoyalty.recipient, (salePrice * blankRoyalty.bps) / 10000 ); } /// @dev Update the address which receives royalties, and the fee charged /// @param recipient address of who should be sent the royalty payment /// @param bps uint256 amount of fee (1% == 100) function setDefaultRoyalty(address recipient, uint16 bps) public onlyOwner { blankRoyalty = RoyaltyInfo(recipient, bps); emit BlankRoyaltySet(recipient, bps); } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, IERC165) returns (bool) { return ERC721.supportsInterface(interfaceId) || interfaceId == type(IERC2981).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @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. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * 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. */ abstract 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() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the 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 virtual onlyOwner { _setOwner(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 virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// 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.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 { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. 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] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // 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 tryRecover(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 tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @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. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} 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.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s; uint8 v; assembly { s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) v := add(shr(255, vs), 27) } return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // 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 (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): 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. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @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) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @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; import "./ECDSA.sol"; /** * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data. * * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible, * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding * they need in their contracts using a combination of `abi.encode` and `keccak256`. * * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA * ({_hashTypedDataV4}). * * The implementation of the domain separator was designed to be as efficient as possible while still properly updating * the chain id to protect against replay attacks on an eventual fork of the chain. * * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask]. * * _Available since v3.4._ */ abstract contract EIP712 { /* solhint-disable var-name-mixedcase */ // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to // invalidate the cached domain separator if the chain id changes. bytes32 private immutable _CACHED_DOMAIN_SEPARATOR; uint256 private immutable _CACHED_CHAIN_ID; bytes32 private immutable _HASHED_NAME; bytes32 private immutable _HASHED_VERSION; bytes32 private immutable _TYPE_HASH; /* solhint-enable var-name-mixedcase */ /** * @dev Initializes the domain separator and parameter caches. * * The meaning of `name` and `version` is specified in * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]: * * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol. * - `version`: the current major version of the signing domain. * * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart * contract upgrade]. */ constructor(string memory name, string memory version) { bytes32 hashedName = keccak256(bytes(name)); bytes32 hashedVersion = keccak256(bytes(version)); bytes32 typeHash = keccak256( "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)" ); _HASHED_NAME = hashedName; _HASHED_VERSION = hashedVersion; _CACHED_CHAIN_ID = block.chainid; _CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(typeHash, hashedName, hashedVersion); _TYPE_HASH = typeHash; } /** * @dev Returns the domain separator for the current chain. */ function _domainSeparatorV4() internal view returns (bytes32) { if (block.chainid == _CACHED_CHAIN_ID) { return _CACHED_DOMAIN_SEPARATOR; } else { return _buildDomainSeparator(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION); } } function _buildDomainSeparator( bytes32 typeHash, bytes32 nameHash, bytes32 versionHash ) private view returns (bytes32) { return keccak256(abi.encode(typeHash, nameHash, versionHash, block.chainid, address(this))); } /** * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this * function returns the hash of the fully encoded EIP712 message for this domain. * * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example: * * ```solidity * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode( * keccak256("Mail(address to,string contents)"), * mailTo, * keccak256(bytes(mailContents)) * ))); * address signer = ECDSA.recover(digest, signature); * ``` */ function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) { return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/utils/introspection/IERC165.sol"; /// /// @dev Interface for the NFT Royalty Standard /// interface IERC2981 is IERC165 { /// ERC165 bytes to add to interface array - set in parent contract /// implementing this standard /// /// bytes4(keccak256("royaltyInfo(uint256,uint256)")) == 0x2a55205a /// bytes4 private constant _INTERFACE_ID_ERC2981 = 0x2a55205a; /// _registerInterface(_INTERFACE_ID_ERC2981); /// @notice 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 ); }
// 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; 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); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal 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 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": 100 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address payable","name":"_foundationAddress","type":"address"},{"internalType":"address","name":"_signer","type":"address"},{"internalType":"uint256","name":"_maxTokenSupply","type":"uint256"},{"internalType":"string","name":"baseURI","type":"string"},{"internalType":"uint16","name":"_royaltyBPS","type":"uint16"}],"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":false,"internalType":"string","name":"baseTokenURI","type":"string"}],"name":"BaseTokenUriUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint16","name":"bps","type":"uint16"}],"name":"BlankRoyaltySet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"foundationAddress","type":"address"}],"name":"FoundationAddressUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"controller","type":"address"},{"indexed":false,"internalType":"address","name":"signer","type":"address"},{"indexed":false,"internalType":"string","name":"baseURI","type":"string"},{"indexed":false,"internalType":"uint256","name":"mintPrice","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"maxTokenSupply","type":"uint256"},{"indexed":false,"internalType":"bool","name":"active","type":"bool"},{"indexed":false,"internalType":"bool","name":"publicMint","type":"bool"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"address","name":"member","type":"address"},{"indexed":false,"internalType":"string","name":"tokenURI","type":"string"}],"name":"Minted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"_value","type":"string"},{"indexed":true,"internalType":"uint256","name":"_id","type":"uint256"}],"name":"PermanentURI","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"foundationAddress","type":"address"},{"indexed":false,"internalType":"bool","name":"active","type":"bool"}],"name":"VoucherSignersUpdated","type":"event"},{"inputs":[],"name":"active","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"addBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newVoucherSigner","type":"address"}],"name":"addVoucherSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"availableToWithdraw","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"blankRoyalty","outputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint24","name":"bps","type":"uint24"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"foundationAddress","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":[],"name":"getChainID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[{"internalType":"address","name":"account","type":"address"}],"name":"isMember","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"lockTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxTokenSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"memberMaxMintCount","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"components":[{"internalType":"address","name":"redeemerAddress","type":"address"},{"internalType":"uint256","name":"expiration","type":"uint256"},{"internalType":"uint256","name":"minPrice","type":"uint256"},{"internalType":"uint16","name":"tokenCount","type":"uint16"},{"internalType":"bytes","name":"signature","type":"bytes"}],"internalType":"struct BlankArt.BlankNFTVoucher","name":"voucher","type":"tuple"}],"name":"redeemVoucher","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"oldVoucherSigner","type":"address"}],"name":"removeVoucherSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","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":"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":"address","name":"recipient","type":"address"},{"internalType":"uint16","name":"bps","type":"uint16"}],"name":"setDefaultRoyalty","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":[],"name":"toggleActivation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"togglePublicMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tokenIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenURILocked","outputs":[{"internalType":"uint256","name":"","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"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"newFoundationAddress","type":"address"}],"name":"updateFoundationAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_maxMint","type":"uint8"}],"name":"updateMaxMintCount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"updateMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6101206040523480156200001257600080fd5b5060405162003bb938038062003bb9833981016040819052620000359162000493565b60405180604001604052806008815260200167109b185b9ad3919560c21b815250604051806040016040528060018152602001603160f81b81525060405180604001604052806008815260200167109b185b9ad05c9d60c21b81525060405180604001604052806005815260200164424c414e4b60d81b8152508160009080519060200190620000c792919062000373565b508051620000dd90600190602084019062000373565b5050825160209384012082519284019290922060c083815260e08290524660a0818152604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f818a018190528183019890985260608101959095526080808601939093523085830152805180860390920182529390920190925280519401939093209092526101005250620001743362000321565b600f805460ff19908116600517909155600d80546001600160a01b03808916620100000262010000600160b01b0319909216919091179091558516600090815260096020526040902080549091166001179055600b83905582620001d757600080fd5b600160108190556000600c819055600d805461ff0019169055600a805492830181558152604080516020810191829052829052620002279260008051602062003b99833981519152019162000373565b50600a805460018101825560009190915282516200025c9160008051602062003b998339815191520190602085019062000373565b50600d805460ff1916600190811791829055600c54600b546040517f85fa87f20cddf1bda16779d751461632ac56a88cd997f20bf1e5f89b7f610b2a94620002c7946001600160a01b0362010000830416948b948a94919390929161010090910460ff169062000595565b60405180910390a1604080518082019091526001600160a01b0390951680865261ffff909116602090950185905260128054600160a01b9096026001600160b81b031990961690911794909417909355506200063f915050565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620003819062000602565b90600052602060002090601f016020900481019282620003a55760008555620003f0565b82601f10620003c057805160ff1916838001178555620003f0565b82800160010185558215620003f0579182015b82811115620003f0578251825591602001919060010190620003d3565b50620003fe92915062000402565b5090565b5b80821115620003fe576000815560010162000403565b6001600160a01b03811681146200042f57600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b83811015620004655781810151838201526020016200044b565b8381111562000475576000848401525b50505050565b805161ffff811681146200048e57600080fd5b919050565b600080600080600060a08688031215620004ac57600080fd5b8551620004b98162000419565b6020870151909550620004cc8162000419565b6040870151606088015191955093506001600160401b0380821115620004f157600080fd5b818801915088601f8301126200050657600080fd5b8151818111156200051b576200051b62000432565b604051601f8201601f19908116603f0116810190838211818310171562000546576200054662000432565b816040528281528b60208487010111156200056057600080fd5b6200057383602083016020880162000448565b809650505050505062000589608087016200047b565b90509295509295909350565b600060018060a01b03808a16835280891660208401525060e0604083015286518060e0840152610100620005d08282860160208c0162000448565b606084019790975260808301959095525091151560a0830152151560c0820152601f909101601f191601019392505050565b600181811c908216806200061757607f821691505b602082108114156200063957634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c05160e0516101005161351562000684600039600061284d0152600061289c01526000612877015260006127fb0152600061282401526135156000f3fe6080604052600436106102505760003560e01c80636817c76c11610139578063a82cf343116100b6578063e322ad2b1161007a578063e322ad2b146106d8578063e985e9c5146106fa578063f2fde38b1461071a578063fa23f27a1461073a578063fcf07c6b1461074d578063fd96b91c1461077357600080fd5b8063a82cf3431461064d578063b7794fd414610662578063b88d4fde14610682578063c87b56dd146106a2578063d55f9273146106c257600080fd5b80638da5cb5b116100fd5780638da5cb5b146105c357806395d89b41146105d8578063a0712d68146105ed578063a22cb4651461060d578063a230c5241461062d57600080fd5b80636817c76c1461052b57806370a0823114610541578063715018a614610561578063734f851e1461057657806388010f31146105a357600080fd5b80633ccfd60b116101d25780634af88f5d116101965780634af88f5d1461046857806350f7c20414610494578063564b81ef146104b85780635e4606ef146104cb5780635f408c4d146104eb5780636352211e1461050b57600080fd5b80633ccfd60b146103de5780634047638d146103f357806342842e0e146104085780634331f6391461042857806345c0c5021461044857600080fd5b8063095ea7b311610219578063095ea7b31461032057806323b872dd1461034057806326092b831461036057806327cfa7d21461037f5780632a55205a1461039f57600080fd5b8062728e461461025557806301ffc9a71461027757806302fb0c5e146102ac57806306fdde03146102c6578063081812fc146102e8575b600080fd5b34801561026157600080fd5b50610275610270366004612bc8565b6107c4565b005b34801561028357600080fd5b50610297610292366004612bf7565b610801565b60405190151581526020015b60405180910390f35b3480156102b857600080fd5b50600d546102979060ff1681565b3480156102d257600080fd5b506102db61082d565b6040516102a39190612c6c565b3480156102f457600080fd5b50610308610303366004612bc8565b6108bf565b6040516001600160a01b0390911681526020016102a3565b34801561032c57600080fd5b5061027561033b366004612c94565b610947565b34801561034c57600080fd5b5061027561035b366004612cc0565b610a58565b34801561036c57600080fd5b50600d5461029790610100900460ff1681565b34801561038b57600080fd5b5061027561039a366004612d01565b610a89565b3480156103ab57600080fd5b506103bf6103ba366004612d72565b610b33565b604080516001600160a01b0390931683526020830191909152016102a3565b3480156103ea57600080fd5b50610275610b76565b3480156103ff57600080fd5b50610275610bb9565b34801561041457600080fd5b50610275610423366004612cc0565b610c05565b34801561043457600080fd5b50610275610443366004612dab565b610c20565b34801561045457600080fd5b50610275610463366004612bc8565b610cc0565b34801561047457600080fd5b50600f546104829060ff1681565b60405160ff90911681526020016102a3565b3480156104a057600080fd5b506104aa600b5481565b6040519081526020016102a3565b3480156104c457600080fd5b50466104aa565b3480156104d757600080fd5b506102756104e6366004612de0565b610dbb565b3480156104f757600080fd5b50610275610506366004612de0565b610e4c565b34801561051757600080fd5b50610308610526366004612bc8565b610ed2565b34801561053757600080fd5b506104aa600c5481565b34801561054d57600080fd5b506104aa61055c366004612de0565b610f49565b34801561056d57600080fd5b50610275610fd0565b34801561058257600080fd5b506104aa610591366004612bc8565b60086020526000908152604090205481565b3480156105af57600080fd5b506102756105be366004612dfd565b61100b565b3480156105cf57600080fd5b5061030861109d565b3480156105e457600080fd5b506102db6110ac565b6106006105fb366004612bc8565b6110bb565b6040516102a39190612e20565b34801561061957600080fd5b50610275610628366004612e64565b6112be565b34801561063957600080fd5b50610297610648366004612de0565b61137f565b34801561065957600080fd5b50610275611392565b34801561066e57600080fd5b5061027561067d366004612de0565b6113d5565b34801561068e57600080fd5b5061027561069d366004612eb8565b61145c565b3480156106ae57600080fd5b506102db6106bd366004612bc8565b611494565b3480156106ce57600080fd5b506104aa60105481565b3480156106e457600080fd5b50336000908152600e60205260409020546104aa565b34801561070657600080fd5b50610297610715366004612f97565b611685565b34801561072657600080fd5b50610275610735366004612de0565b6116b3565b610600610748366004612fc5565b611753565b34801561075957600080fd5b50600d54610308906201000090046001600160a01b031681565b34801561077f57600080fd5b506012546107a1906001600160a01b03811690600160a01b900462ffffff1682565b604080516001600160a01b03909316835262ffffff9091166020830152016102a3565b336107cd61109d565b6001600160a01b0316146107fc5760405162461bcd60e51b81526004016107f390613007565b60405180910390fd5b600c55565b600061080c82611bc1565b8061082757506001600160e01b0319821663152a902d60e11b145b92915050565b60606000805461083c9061303c565b80601f01602080910402602001604051908101604052809291908181526020018280546108689061303c565b80156108b55780601f1061088a576101008083540402835291602001916108b5565b820191906000526020600020905b81548152906001019060200180831161089857829003601f168201915b5050505050905090565b60006108ca82611c11565b61092b5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016107f3565b506000908152600460205260409020546001600160a01b031690565b600061095282610ed2565b9050806001600160a01b0316836001600160a01b031614156109c05760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016107f3565b336001600160a01b03821614806109dc57506109dc8133611685565b610a495760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b60648201526084016107f3565b610a538383611c2e565b505050565b610a623382611c9c565b610a7e5760405162461bcd60e51b81526004016107f390613077565b610a53838383611d66565b33610a9261109d565b6001600160a01b031614610ab85760405162461bcd60e51b81526004016107f390613007565b600a8054600181018255600091909152610af5907fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a8018383612b2f565b507fe0b4aa3a614e11365fec002edc82449b5849402d025b31c4770f0e270286e6908282604051610b279291906130c8565b60405180910390a15050565b60125460009081906001600160a01b0381169061271090610b6090600160a01b900462ffffff168661310d565b610b6a9190613142565b915091505b9250929050565b336000818152600e602052604080822080549083905590519091839183156108fc0291849190818181858888f19350505050158015610a53573d6000803e3d6000fd5b33610bc261109d565b6001600160a01b031614610be85760405162461bcd60e51b81526004016107f390613007565b600d805461ff001981166101009182900460ff1615909102179055565b610a538383836040518060200160405280600081525061145c565b33610c2961109d565b6001600160a01b031614610c4f5760405162461bcd60e51b81526004016107f390613007565b6040805180820182526001600160a01b03841680825261ffff84166020928301819052601280546001600160b81b0319168317600160a01b83021790558351918252918101919091527fbc2af66faf88b113c4ba737c0b05c909569d2ead9066803ef9a5179ef248bf179101610b27565b610cc981611c11565b610ce55760405162461bcd60e51b81526004016107f390613156565b33610cef82610ed2565b6001600160a01b031614610d5a5760405162461bcd60e51b815260206004820152602c60248201527f496e76616c69643a204f6e6c7920746865206f776e65722063616e206c6f636b60448201526b103a3432b4b9103a37b5b2b760a11b60648201526084016107f3565b600a54610d69906001906131a7565b600082815260086020526040902055807fa109ba539900bf1b633f956d63c96fc89b814c7287f7aa50a9216d0b55657207610da382611494565b604051610db09190612c6c565b60405180910390a250565b33610dc461109d565b6001600160a01b031614610dea5760405162461bcd60e51b81526004016107f390613007565b6001600160a01b038116600081815260096020908152604091829020805460ff191660019081179091558251938452908301527fd33c8cd5a775abb0c7667805232ee5eb8370596dd7fce257edcf0128bfe391d591015b60405180910390a150565b33610e5561109d565b6001600160a01b031614610e7b5760405162461bcd60e51b81526004016107f390613007565b6001600160a01b0381166000818152600960209081526040808320805460ff191690558051938452908301919091527fd33c8cd5a775abb0c7667805232ee5eb8370596dd7fce257edcf0128bfe391d59101610e41565b6000818152600260205260408120546001600160a01b0316806108275760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016107f3565b60006001600160a01b038216610fb45760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016107f3565b506001600160a01b031660009081526003602052604090205490565b33610fd961109d565b6001600160a01b031614610fff5760405162461bcd60e51b81526004016107f390613007565b6110096000611f06565b565b3361101461109d565b6001600160a01b03161461103a5760405162461bcd60e51b81526004016107f390613007565b60008160ff16116110875760405162461bcd60e51b81526020600482015260176024820152764d6178206d696e742063616e6e6f74206265207a65726f60481b60448201526064016107f3565b600f805460ff191660ff92909216919091179055565b6007546001600160a01b031690565b60606001805461083c9061303c565b600d54606090610100900460ff1680156110d75750600d5460ff165b6111235760405162461bcd60e51b815260206004820152601d60248201527f5075626c6963206d696e74696e67206973206e6f74206163746976652e00000060448201526064016107f3565b600f5460ff168261113333610f49565b61113d91906131be565b111561115b5760405162461bcd60e51b81526004016107f3906131d6565b600b546111699060016131be565b8260105461117791906131be565b11156111955760405162461bcd60e51b81526004016107f39061321b565b81600c546111a3919061310d565b3410156111f25760405162461bcd60e51b815260206004820152601a60248201527f496e73756666696369656e742066756e647320746f206d696e7400000000000060448201526064016107f3565b6000826001600160401b0381111561120c5761120c612ea2565b604051908082528060200260200182016040528015611235578160200160208202803683370190505b50905060005b8381101561128157600061124e33611f58565b9050808383815181106112635761126361325e565b6020908102919091010152508061127981613274565b91505061123b565b50600d546201000090046001600160a01b03166000908152600e6020526040812080543492906112b29084906131be565b90915550909392505050565b6001600160a01b0382163314156113135760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b60448201526064016107f3565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60008061138b83610f49565b1192915050565b3361139b61109d565b6001600160a01b0316146113c15760405162461bcd60e51b81526004016107f390613007565b600d805460ff19811660ff90911615179055565b336113de61109d565b6001600160a01b0316146114045760405162461bcd60e51b81526004016107f390613007565b600d805462010000600160b01b031916620100006001600160a01b038416908102919091179091556040519081527fd451575e0d555b0fcd35add8eff1239d7486e3f4f256239a9af21ea316250e4b90602001610e41565b6114663383611c9c565b6114825760405162461bcd60e51b81526004016107f390613077565b61148e84848484611fd5565b50505050565b6040805160208101909152600081526060906114af83611c11565b6114cb5760405162461bcd60e51b81526004016107f390613156565b6000838152600860205260409020541561159d57600083815260086020526040902054600a805490919081106115035761150361325e565b9060005260206000200180546115189061303c565b80601f01602080910402602001604051908101604052809291908181526020018280546115449061303c565b80156115915780601f1061156657610100808354040283529160200191611591565b820191906000526020600020905b81548152906001019060200180831161157457829003601f168201915b50505050509050611653565b600a80546115ad906001906131a7565b815481106115bd576115bd61325e565b9060005260206000200180546115d29061303c565b80601f01602080910402602001604051908101604052809291908181526020018280546115fe9061303c565b801561164b5780601f106116205761010080835404028352916020019161164b565b820191906000526020600020905b81548152906001019060200180831161162e57829003601f168201915b505050505090505b8061165d84612008565b60405160200161166e92919061328f565b604051602081830303815290604052915050919050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b336116bc61109d565b6001600160a01b0316146116e25760405162461bcd60e51b81526004016107f390613007565b6001600160a01b0381166117475760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107f3565b61175081611f06565b50565b600d5460609060ff166117bb5760405162461bcd60e51b815260206004820152602a60248201527f566f756368657220726564656d7074696f6e206973206e6f742063757272656e604482015269746c792061637469766560b01b60648201526084016107f3565b60006117c683612105565b90506117d56020840184612de0565b6001600160a01b0316336001600160a01b0316146118475760405162461bcd60e51b815260206004820152602960248201527f566f756368657220697320666f72206120646966666572656e742077616c6c6560448201526874206164647265737360b81b60648201526084016107f3565b82602001354211156118915760405162461bcd60e51b8152602060048201526013602482015272159bdd58da195c881a185cc8195e1c1a5c9959606a1b60448201526064016107f3565b6001600160a01b03811660009081526009602052604090205460ff166119035760405162461bcd60e51b815260206004820152602160248201527f5369676e617475726520696e76616c6964206f7220756e617574686f72697a656044820152601960fa1b60648201526084016107f3565b600f5460ff168461191a61055c6020870187612de0565b61192491906131be565b11156119425760405162461bcd60e51b81526004016107f3906131d6565b600b546119509060016131be565b8460105461195e91906131be565b111561197c5760405162461bcd60e51b81526004016107f39061321b565b61198a84604085013561310d565b3410156119d95760405162461bcd60e51b815260206004820152601c60248201527f496e73756666696369656e742066756e647320746f2072656465656d0000000060448201526064016107f3565b6119e960808401606085016132ce565b61ffff16841115611a4b5760405162461bcd60e51b815260206004820152602660248201527f416d6f756e74206973206d6f7265207468616e2074686520766f756368657220604482015265616c6c6f777360d01b60648201526084016107f3565b60116000611a5885612165565b815260208101919091526040016000205460ff1615611ab95760405162461bcd60e51b815260206004820181905260248201527f566f75636865722068617320616c7265616479206265656e20636c61696d656460448201526064016107f3565b6000846001600160401b03811115611ad357611ad3612ea2565b604051908082528060200260200182016040528015611afc578160200160208202803683370190505b50905060005b85811015611b54576000611b21611b1c6020880188612de0565b611f58565b905080838381518110611b3657611b3661325e565b60209081029190910101525080611b4c81613274565b915050611b02565b50600d546201000090046001600160a01b03166000908152600e602052604081208054349290611b859084906131be565b909155506001905060116000611b9a87612165565b81526020810191909152604001600020805460ff1916911515919091179055949350505050565b60006001600160e01b031982166380ac58cd60e01b1480611bf257506001600160e01b03198216635b5e139f60e01b145b8061082757506301ffc9a760e01b6001600160e01b0319831614610827565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611c6382610ed2565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611ca782611c11565b611d085760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016107f3565b6000611d1383610ed2565b9050806001600160a01b0316846001600160a01b03161480611d4e5750836001600160a01b0316611d43846108bf565b6001600160a01b0316145b80611d5e5750611d5e8185611685565b949350505050565b826001600160a01b0316611d7982610ed2565b6001600160a01b031614611de15760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016107f3565b6001600160a01b038216611e435760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016107f3565b611e4e600082611c2e565b6001600160a01b0383166000908152600360205260408120805460019290611e779084906131a7565b90915550506001600160a01b0382166000908152600360205260408120805460019290611ea59084906131be565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b601054600090611f6783612204565b611f718382612269565b60108054906000611f8183613274565b91905055506000611f9182611494565b90507f3b8a974a6971dbe70c8718ec80406b2790d2aa5477b6a5bed3d94fa19e06d60d828583604051611fc6939291906132e9565b60405180910390a15092915050565b611fe0848484611d66565b611fec84848484612287565b61148e5760405162461bcd60e51b81526004016107f39061331c565b60608161202c5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612056578061204081613274565b915061204f9050600a83613142565b9150612030565b6000816001600160401b0381111561207057612070612ea2565b6040519080825280601f01601f19166020018201604052801561209a576020820181803683370190505b5090505b8415611d5e576120af6001836131a7565b91506120bc600a8661336e565b6120c79060306131be565b60f81b8183815181106120dc576120dc61325e565b60200101906001600160f81b031916908160001a9053506120fe600a86613142565b945061209e565b60008061211183612165565b905061215e816121246080860186613382565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061239492505050565b9392505050565b60006108277f18c963369850fd0c70b87a149b595923c868a8e81d5099c0abb969f37e98f2ea6121986020850185612de0565b602085013560408601356121b260808801606089016132ce565b6040805160208101969096526001600160a01b03909416938501939093526060840191909152608083015261ffff1660a082015260c001604051602081830303815290604052805190602001206123b8565b600f5460ff1661221382610f49565b106117505761222c816001600160a01b03166014612406565b600f54604051612243929160ff16906020016133c8565b60408051601f198184030181529082905262461bcd60e51b82526107f391600401612c6c565b6122838282604051806020016040528060008152506125a1565b5050565b60006001600160a01b0384163b1561238957604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906122cb903390899088908890600401613458565b602060405180830381600087803b1580156122e557600080fd5b505af1925050508015612315575060408051601f3d908101601f1916820190925261231291810190613495565b60015b61236f573d808015612343576040519150601f19603f3d011682016040523d82523d6000602084013e612348565b606091505b5080516123675760405162461bcd60e51b81526004016107f39061331c565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611d5e565b506001949350505050565b60008060006123a385856125d4565b915091506123b081612641565b509392505050565b60006108276123c56127f7565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b6060600061241583600261310d565b6124209060026131be565b6001600160401b0381111561243757612437612ea2565b6040519080825280601f01601f191660200182016040528015612461576020820181803683370190505b509050600360fc1b8160008151811061247c5761247c61325e565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106124ab576124ab61325e565b60200101906001600160f81b031916908160001a90535060006124cf84600261310d565b6124da9060016131be565b90505b6001811115612552576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061250e5761250e61325e565b1a60f81b8282815181106125245761252461325e565b60200101906001600160f81b031916908160001a90535060049490941c9361254b816134b2565b90506124dd565b50831561215e5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016107f3565b6125ab83836128ea565b6125b86000848484612287565b610a535760405162461bcd60e51b81526004016107f39061331c565b60008082516041141561260b5760208301516040840151606085015160001a6125ff87828585612a1d565b94509450505050610b6f565b825160401415612635576020830151604084015161262a868383612b00565b935093505050610b6f565b50600090506002610b6f565b6000816004811115612655576126556134c9565b141561265e5750565b6001816004811115612672576126726134c9565b14156126bb5760405162461bcd60e51b815260206004820152601860248201527745434453413a20696e76616c6964207369676e617475726560401b60448201526064016107f3565b60028160048111156126cf576126cf6134c9565b141561271d5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016107f3565b6003816004811115612731576127316134c9565b141561278a5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016107f3565b600481600481111561279e5761279e6134c9565b14156117505760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016107f3565b60007f000000000000000000000000000000000000000000000000000000000000000046141561284657507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b6001600160a01b0382166129405760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016107f3565b61294981611c11565b156129965760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016107f3565b6001600160a01b03821660009081526003602052604081208054600192906129bf9084906131be565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000806fa2a8918ca85bafe22016d0b997e4df60600160ff1b03831115612a4a5750600090506003612af7565b8460ff16601b14158015612a6257508460ff16601c14155b15612a735750600090506004612af7565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612ac7573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612af057600060019250925050612af7565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b01612b2187828885612a1d565b935093505050935093915050565b828054612b3b9061303c565b90600052602060002090601f016020900481019282612b5d5760008555612ba3565b82601f10612b765782800160ff19823516178555612ba3565b82800160010185558215612ba3579182015b82811115612ba3578235825591602001919060010190612b88565b50612baf929150612bb3565b5090565b5b80821115612baf5760008155600101612bb4565b600060208284031215612bda57600080fd5b5035919050565b6001600160e01b03198116811461175057600080fd5b600060208284031215612c0957600080fd5b813561215e81612be1565b60005b83811015612c2f578181015183820152602001612c17565b8381111561148e5750506000910152565b60008151808452612c58816020860160208601612c14565b601f01601f19169290920160200192915050565b60208152600061215e6020830184612c40565b6001600160a01b038116811461175057600080fd5b60008060408385031215612ca757600080fd5b8235612cb281612c7f565b946020939093013593505050565b600080600060608486031215612cd557600080fd5b8335612ce081612c7f565b92506020840135612cf081612c7f565b929592945050506040919091013590565b60008060208385031215612d1457600080fd5b82356001600160401b0380821115612d2b57600080fd5b818501915085601f830112612d3f57600080fd5b813581811115612d4e57600080fd5b866020828501011115612d6057600080fd5b60209290920196919550909350505050565b60008060408385031215612d8557600080fd5b50508035926020909101359150565b803561ffff81168114612da657600080fd5b919050565b60008060408385031215612dbe57600080fd5b8235612dc981612c7f565b9150612dd760208401612d94565b90509250929050565b600060208284031215612df257600080fd5b813561215e81612c7f565b600060208284031215612e0f57600080fd5b813560ff8116811461215e57600080fd5b6020808252825182820181905260009190848201906040850190845b81811015612e5857835183529284019291840191600101612e3c565b50909695505050505050565b60008060408385031215612e7757600080fd5b8235612e8281612c7f565b915060208301358015158114612e9757600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215612ece57600080fd5b8435612ed981612c7f565b93506020850135612ee981612c7f565b92506040850135915060608501356001600160401b0380821115612f0c57600080fd5b818701915087601f830112612f2057600080fd5b813581811115612f3257612f32612ea2565b604051601f8201601f19908116603f01168101908382118183101715612f5a57612f5a612ea2565b816040528281528a6020848701011115612f7357600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215612faa57600080fd5b8235612fb581612c7f565b91506020830135612e9781612c7f565b60008060408385031215612fd857600080fd5b8235915060208301356001600160401b03811115612ff557600080fd5b830160a08186031215612e9757600080fd5b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c9082168061305057607f821691505b6020821081141561307157634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60208152816020820152818360408301376000818301604090810191909152601f909201601f19160101919050565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615613127576131276130f7565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826131515761315161312c565b500490565b60208082526031908201527f45524337323155524953746f726167653a2055524920717565727920666f72206040820152703737b732bc34b9ba32b73a103a37b5b2b760791b606082015260800190565b6000828210156131b9576131b96130f7565b500390565b600082198211156131d1576131d16130f7565b500190565b60208082526025908201527f416d6f756e74206973206d6f7265207468616e20746865206d696e74696e67206040820152641b1a5b5a5d60da1b606082015260800190565b60208082526023908201527f416c6c20746f6b656e73206861766520616c7265616479206265656e206d696e6040820152621d195960ea1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b6000600019821415613288576132886130f7565b5060010190565b600083516132a1818460208801612c14565b8351908301906132b5818360208801612c14565b64173539b7b760d91b9101908152600501949350505050565b6000602082840312156132e057600080fd5b61215e82612d94565b8381526001600160a01b038316602082015260606040820181905260009061331390830184612c40565b95945050505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008261337d5761337d61312c565b500690565b6000808335601e1984360301811261339957600080fd5b8301803591506001600160401b038211156133b357600080fd5b602001915036819003821315610b6f57600080fd5b67020b1b1b7bab73a160c51b8152600083516133eb816008850160208801612c14565b7f20686173207265616368656420697473206d696e74696e67206c696d6974206f600893909101928301525061033160f51b602882015260f89190911b6001600160f81b031916602a8201526f0b081cdbc818d85b9b9bdd081b5a5b9d60821b602b820152603b01919050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061348b90830184612c40565b9695505050505050565b6000602082840312156134a757600080fd5b815161215e81612be1565b6000816134c1576134c16130f7565b506000190190565b634e487b7160e01b600052602160045260246000fdfea2646970667358221220c4b232644f617214b399ba3abcf56bc05e5f0c5c8018a4e4eb30b1533b91795c64736f6c63430008090033c65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a80000000000000000000000000e871cccd4bedb96b8e5feba032b70c182c3ace5000000000000000000000000a818d2d27a11ec73a1084fa1b2a7df8072abbd84000000000000000000000000000000000000000000000000000000000000271000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004068747470733a2f2f617277656176652e6e65742f3475735148755572494b4f4d61684d6a536c675973504b6a4f703277505350385a385173364e6d63545f6b2f
Deployed Bytecode
0x6080604052600436106102505760003560e01c80636817c76c11610139578063a82cf343116100b6578063e322ad2b1161007a578063e322ad2b146106d8578063e985e9c5146106fa578063f2fde38b1461071a578063fa23f27a1461073a578063fcf07c6b1461074d578063fd96b91c1461077357600080fd5b8063a82cf3431461064d578063b7794fd414610662578063b88d4fde14610682578063c87b56dd146106a2578063d55f9273146106c257600080fd5b80638da5cb5b116100fd5780638da5cb5b146105c357806395d89b41146105d8578063a0712d68146105ed578063a22cb4651461060d578063a230c5241461062d57600080fd5b80636817c76c1461052b57806370a0823114610541578063715018a614610561578063734f851e1461057657806388010f31146105a357600080fd5b80633ccfd60b116101d25780634af88f5d116101965780634af88f5d1461046857806350f7c20414610494578063564b81ef146104b85780635e4606ef146104cb5780635f408c4d146104eb5780636352211e1461050b57600080fd5b80633ccfd60b146103de5780634047638d146103f357806342842e0e146104085780634331f6391461042857806345c0c5021461044857600080fd5b8063095ea7b311610219578063095ea7b31461032057806323b872dd1461034057806326092b831461036057806327cfa7d21461037f5780632a55205a1461039f57600080fd5b8062728e461461025557806301ffc9a71461027757806302fb0c5e146102ac57806306fdde03146102c6578063081812fc146102e8575b600080fd5b34801561026157600080fd5b50610275610270366004612bc8565b6107c4565b005b34801561028357600080fd5b50610297610292366004612bf7565b610801565b60405190151581526020015b60405180910390f35b3480156102b857600080fd5b50600d546102979060ff1681565b3480156102d257600080fd5b506102db61082d565b6040516102a39190612c6c565b3480156102f457600080fd5b50610308610303366004612bc8565b6108bf565b6040516001600160a01b0390911681526020016102a3565b34801561032c57600080fd5b5061027561033b366004612c94565b610947565b34801561034c57600080fd5b5061027561035b366004612cc0565b610a58565b34801561036c57600080fd5b50600d5461029790610100900460ff1681565b34801561038b57600080fd5b5061027561039a366004612d01565b610a89565b3480156103ab57600080fd5b506103bf6103ba366004612d72565b610b33565b604080516001600160a01b0390931683526020830191909152016102a3565b3480156103ea57600080fd5b50610275610b76565b3480156103ff57600080fd5b50610275610bb9565b34801561041457600080fd5b50610275610423366004612cc0565b610c05565b34801561043457600080fd5b50610275610443366004612dab565b610c20565b34801561045457600080fd5b50610275610463366004612bc8565b610cc0565b34801561047457600080fd5b50600f546104829060ff1681565b60405160ff90911681526020016102a3565b3480156104a057600080fd5b506104aa600b5481565b6040519081526020016102a3565b3480156104c457600080fd5b50466104aa565b3480156104d757600080fd5b506102756104e6366004612de0565b610dbb565b3480156104f757600080fd5b50610275610506366004612de0565b610e4c565b34801561051757600080fd5b50610308610526366004612bc8565b610ed2565b34801561053757600080fd5b506104aa600c5481565b34801561054d57600080fd5b506104aa61055c366004612de0565b610f49565b34801561056d57600080fd5b50610275610fd0565b34801561058257600080fd5b506104aa610591366004612bc8565b60086020526000908152604090205481565b3480156105af57600080fd5b506102756105be366004612dfd565b61100b565b3480156105cf57600080fd5b5061030861109d565b3480156105e457600080fd5b506102db6110ac565b6106006105fb366004612bc8565b6110bb565b6040516102a39190612e20565b34801561061957600080fd5b50610275610628366004612e64565b6112be565b34801561063957600080fd5b50610297610648366004612de0565b61137f565b34801561065957600080fd5b50610275611392565b34801561066e57600080fd5b5061027561067d366004612de0565b6113d5565b34801561068e57600080fd5b5061027561069d366004612eb8565b61145c565b3480156106ae57600080fd5b506102db6106bd366004612bc8565b611494565b3480156106ce57600080fd5b506104aa60105481565b3480156106e457600080fd5b50336000908152600e60205260409020546104aa565b34801561070657600080fd5b50610297610715366004612f97565b611685565b34801561072657600080fd5b50610275610735366004612de0565b6116b3565b610600610748366004612fc5565b611753565b34801561075957600080fd5b50600d54610308906201000090046001600160a01b031681565b34801561077f57600080fd5b506012546107a1906001600160a01b03811690600160a01b900462ffffff1682565b604080516001600160a01b03909316835262ffffff9091166020830152016102a3565b336107cd61109d565b6001600160a01b0316146107fc5760405162461bcd60e51b81526004016107f390613007565b60405180910390fd5b600c55565b600061080c82611bc1565b8061082757506001600160e01b0319821663152a902d60e11b145b92915050565b60606000805461083c9061303c565b80601f01602080910402602001604051908101604052809291908181526020018280546108689061303c565b80156108b55780601f1061088a576101008083540402835291602001916108b5565b820191906000526020600020905b81548152906001019060200180831161089857829003601f168201915b5050505050905090565b60006108ca82611c11565b61092b5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016107f3565b506000908152600460205260409020546001600160a01b031690565b600061095282610ed2565b9050806001600160a01b0316836001600160a01b031614156109c05760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016107f3565b336001600160a01b03821614806109dc57506109dc8133611685565b610a495760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b60648201526084016107f3565b610a538383611c2e565b505050565b610a623382611c9c565b610a7e5760405162461bcd60e51b81526004016107f390613077565b610a53838383611d66565b33610a9261109d565b6001600160a01b031614610ab85760405162461bcd60e51b81526004016107f390613007565b600a8054600181018255600091909152610af5907fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a8018383612b2f565b507fe0b4aa3a614e11365fec002edc82449b5849402d025b31c4770f0e270286e6908282604051610b279291906130c8565b60405180910390a15050565b60125460009081906001600160a01b0381169061271090610b6090600160a01b900462ffffff168661310d565b610b6a9190613142565b915091505b9250929050565b336000818152600e602052604080822080549083905590519091839183156108fc0291849190818181858888f19350505050158015610a53573d6000803e3d6000fd5b33610bc261109d565b6001600160a01b031614610be85760405162461bcd60e51b81526004016107f390613007565b600d805461ff001981166101009182900460ff1615909102179055565b610a538383836040518060200160405280600081525061145c565b33610c2961109d565b6001600160a01b031614610c4f5760405162461bcd60e51b81526004016107f390613007565b6040805180820182526001600160a01b03841680825261ffff84166020928301819052601280546001600160b81b0319168317600160a01b83021790558351918252918101919091527fbc2af66faf88b113c4ba737c0b05c909569d2ead9066803ef9a5179ef248bf179101610b27565b610cc981611c11565b610ce55760405162461bcd60e51b81526004016107f390613156565b33610cef82610ed2565b6001600160a01b031614610d5a5760405162461bcd60e51b815260206004820152602c60248201527f496e76616c69643a204f6e6c7920746865206f776e65722063616e206c6f636b60448201526b103a3432b4b9103a37b5b2b760a11b60648201526084016107f3565b600a54610d69906001906131a7565b600082815260086020526040902055807fa109ba539900bf1b633f956d63c96fc89b814c7287f7aa50a9216d0b55657207610da382611494565b604051610db09190612c6c565b60405180910390a250565b33610dc461109d565b6001600160a01b031614610dea5760405162461bcd60e51b81526004016107f390613007565b6001600160a01b038116600081815260096020908152604091829020805460ff191660019081179091558251938452908301527fd33c8cd5a775abb0c7667805232ee5eb8370596dd7fce257edcf0128bfe391d591015b60405180910390a150565b33610e5561109d565b6001600160a01b031614610e7b5760405162461bcd60e51b81526004016107f390613007565b6001600160a01b0381166000818152600960209081526040808320805460ff191690558051938452908301919091527fd33c8cd5a775abb0c7667805232ee5eb8370596dd7fce257edcf0128bfe391d59101610e41565b6000818152600260205260408120546001600160a01b0316806108275760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016107f3565b60006001600160a01b038216610fb45760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016107f3565b506001600160a01b031660009081526003602052604090205490565b33610fd961109d565b6001600160a01b031614610fff5760405162461bcd60e51b81526004016107f390613007565b6110096000611f06565b565b3361101461109d565b6001600160a01b03161461103a5760405162461bcd60e51b81526004016107f390613007565b60008160ff16116110875760405162461bcd60e51b81526020600482015260176024820152764d6178206d696e742063616e6e6f74206265207a65726f60481b60448201526064016107f3565b600f805460ff191660ff92909216919091179055565b6007546001600160a01b031690565b60606001805461083c9061303c565b600d54606090610100900460ff1680156110d75750600d5460ff165b6111235760405162461bcd60e51b815260206004820152601d60248201527f5075626c6963206d696e74696e67206973206e6f74206163746976652e00000060448201526064016107f3565b600f5460ff168261113333610f49565b61113d91906131be565b111561115b5760405162461bcd60e51b81526004016107f3906131d6565b600b546111699060016131be565b8260105461117791906131be565b11156111955760405162461bcd60e51b81526004016107f39061321b565b81600c546111a3919061310d565b3410156111f25760405162461bcd60e51b815260206004820152601a60248201527f496e73756666696369656e742066756e647320746f206d696e7400000000000060448201526064016107f3565b6000826001600160401b0381111561120c5761120c612ea2565b604051908082528060200260200182016040528015611235578160200160208202803683370190505b50905060005b8381101561128157600061124e33611f58565b9050808383815181106112635761126361325e565b6020908102919091010152508061127981613274565b91505061123b565b50600d546201000090046001600160a01b03166000908152600e6020526040812080543492906112b29084906131be565b90915550909392505050565b6001600160a01b0382163314156113135760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b60448201526064016107f3565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60008061138b83610f49565b1192915050565b3361139b61109d565b6001600160a01b0316146113c15760405162461bcd60e51b81526004016107f390613007565b600d805460ff19811660ff90911615179055565b336113de61109d565b6001600160a01b0316146114045760405162461bcd60e51b81526004016107f390613007565b600d805462010000600160b01b031916620100006001600160a01b038416908102919091179091556040519081527fd451575e0d555b0fcd35add8eff1239d7486e3f4f256239a9af21ea316250e4b90602001610e41565b6114663383611c9c565b6114825760405162461bcd60e51b81526004016107f390613077565b61148e84848484611fd5565b50505050565b6040805160208101909152600081526060906114af83611c11565b6114cb5760405162461bcd60e51b81526004016107f390613156565b6000838152600860205260409020541561159d57600083815260086020526040902054600a805490919081106115035761150361325e565b9060005260206000200180546115189061303c565b80601f01602080910402602001604051908101604052809291908181526020018280546115449061303c565b80156115915780601f1061156657610100808354040283529160200191611591565b820191906000526020600020905b81548152906001019060200180831161157457829003601f168201915b50505050509050611653565b600a80546115ad906001906131a7565b815481106115bd576115bd61325e565b9060005260206000200180546115d29061303c565b80601f01602080910402602001604051908101604052809291908181526020018280546115fe9061303c565b801561164b5780601f106116205761010080835404028352916020019161164b565b820191906000526020600020905b81548152906001019060200180831161162e57829003601f168201915b505050505090505b8061165d84612008565b60405160200161166e92919061328f565b604051602081830303815290604052915050919050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b336116bc61109d565b6001600160a01b0316146116e25760405162461bcd60e51b81526004016107f390613007565b6001600160a01b0381166117475760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107f3565b61175081611f06565b50565b600d5460609060ff166117bb5760405162461bcd60e51b815260206004820152602a60248201527f566f756368657220726564656d7074696f6e206973206e6f742063757272656e604482015269746c792061637469766560b01b60648201526084016107f3565b60006117c683612105565b90506117d56020840184612de0565b6001600160a01b0316336001600160a01b0316146118475760405162461bcd60e51b815260206004820152602960248201527f566f756368657220697320666f72206120646966666572656e742077616c6c6560448201526874206164647265737360b81b60648201526084016107f3565b82602001354211156118915760405162461bcd60e51b8152602060048201526013602482015272159bdd58da195c881a185cc8195e1c1a5c9959606a1b60448201526064016107f3565b6001600160a01b03811660009081526009602052604090205460ff166119035760405162461bcd60e51b815260206004820152602160248201527f5369676e617475726520696e76616c6964206f7220756e617574686f72697a656044820152601960fa1b60648201526084016107f3565b600f5460ff168461191a61055c6020870187612de0565b61192491906131be565b11156119425760405162461bcd60e51b81526004016107f3906131d6565b600b546119509060016131be565b8460105461195e91906131be565b111561197c5760405162461bcd60e51b81526004016107f39061321b565b61198a84604085013561310d565b3410156119d95760405162461bcd60e51b815260206004820152601c60248201527f496e73756666696369656e742066756e647320746f2072656465656d0000000060448201526064016107f3565b6119e960808401606085016132ce565b61ffff16841115611a4b5760405162461bcd60e51b815260206004820152602660248201527f416d6f756e74206973206d6f7265207468616e2074686520766f756368657220604482015265616c6c6f777360d01b60648201526084016107f3565b60116000611a5885612165565b815260208101919091526040016000205460ff1615611ab95760405162461bcd60e51b815260206004820181905260248201527f566f75636865722068617320616c7265616479206265656e20636c61696d656460448201526064016107f3565b6000846001600160401b03811115611ad357611ad3612ea2565b604051908082528060200260200182016040528015611afc578160200160208202803683370190505b50905060005b85811015611b54576000611b21611b1c6020880188612de0565b611f58565b905080838381518110611b3657611b3661325e565b60209081029190910101525080611b4c81613274565b915050611b02565b50600d546201000090046001600160a01b03166000908152600e602052604081208054349290611b859084906131be565b909155506001905060116000611b9a87612165565b81526020810191909152604001600020805460ff1916911515919091179055949350505050565b60006001600160e01b031982166380ac58cd60e01b1480611bf257506001600160e01b03198216635b5e139f60e01b145b8061082757506301ffc9a760e01b6001600160e01b0319831614610827565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611c6382610ed2565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611ca782611c11565b611d085760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016107f3565b6000611d1383610ed2565b9050806001600160a01b0316846001600160a01b03161480611d4e5750836001600160a01b0316611d43846108bf565b6001600160a01b0316145b80611d5e5750611d5e8185611685565b949350505050565b826001600160a01b0316611d7982610ed2565b6001600160a01b031614611de15760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016107f3565b6001600160a01b038216611e435760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016107f3565b611e4e600082611c2e565b6001600160a01b0383166000908152600360205260408120805460019290611e779084906131a7565b90915550506001600160a01b0382166000908152600360205260408120805460019290611ea59084906131be565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b601054600090611f6783612204565b611f718382612269565b60108054906000611f8183613274565b91905055506000611f9182611494565b90507f3b8a974a6971dbe70c8718ec80406b2790d2aa5477b6a5bed3d94fa19e06d60d828583604051611fc6939291906132e9565b60405180910390a15092915050565b611fe0848484611d66565b611fec84848484612287565b61148e5760405162461bcd60e51b81526004016107f39061331c565b60608161202c5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612056578061204081613274565b915061204f9050600a83613142565b9150612030565b6000816001600160401b0381111561207057612070612ea2565b6040519080825280601f01601f19166020018201604052801561209a576020820181803683370190505b5090505b8415611d5e576120af6001836131a7565b91506120bc600a8661336e565b6120c79060306131be565b60f81b8183815181106120dc576120dc61325e565b60200101906001600160f81b031916908160001a9053506120fe600a86613142565b945061209e565b60008061211183612165565b905061215e816121246080860186613382565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061239492505050565b9392505050565b60006108277f18c963369850fd0c70b87a149b595923c868a8e81d5099c0abb969f37e98f2ea6121986020850185612de0565b602085013560408601356121b260808801606089016132ce565b6040805160208101969096526001600160a01b03909416938501939093526060840191909152608083015261ffff1660a082015260c001604051602081830303815290604052805190602001206123b8565b600f5460ff1661221382610f49565b106117505761222c816001600160a01b03166014612406565b600f54604051612243929160ff16906020016133c8565b60408051601f198184030181529082905262461bcd60e51b82526107f391600401612c6c565b6122838282604051806020016040528060008152506125a1565b5050565b60006001600160a01b0384163b1561238957604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906122cb903390899088908890600401613458565b602060405180830381600087803b1580156122e557600080fd5b505af1925050508015612315575060408051601f3d908101601f1916820190925261231291810190613495565b60015b61236f573d808015612343576040519150601f19603f3d011682016040523d82523d6000602084013e612348565b606091505b5080516123675760405162461bcd60e51b81526004016107f39061331c565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611d5e565b506001949350505050565b60008060006123a385856125d4565b915091506123b081612641565b509392505050565b60006108276123c56127f7565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b6060600061241583600261310d565b6124209060026131be565b6001600160401b0381111561243757612437612ea2565b6040519080825280601f01601f191660200182016040528015612461576020820181803683370190505b509050600360fc1b8160008151811061247c5761247c61325e565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106124ab576124ab61325e565b60200101906001600160f81b031916908160001a90535060006124cf84600261310d565b6124da9060016131be565b90505b6001811115612552576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061250e5761250e61325e565b1a60f81b8282815181106125245761252461325e565b60200101906001600160f81b031916908160001a90535060049490941c9361254b816134b2565b90506124dd565b50831561215e5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016107f3565b6125ab83836128ea565b6125b86000848484612287565b610a535760405162461bcd60e51b81526004016107f39061331c565b60008082516041141561260b5760208301516040840151606085015160001a6125ff87828585612a1d565b94509450505050610b6f565b825160401415612635576020830151604084015161262a868383612b00565b935093505050610b6f565b50600090506002610b6f565b6000816004811115612655576126556134c9565b141561265e5750565b6001816004811115612672576126726134c9565b14156126bb5760405162461bcd60e51b815260206004820152601860248201527745434453413a20696e76616c6964207369676e617475726560401b60448201526064016107f3565b60028160048111156126cf576126cf6134c9565b141561271d5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016107f3565b6003816004811115612731576127316134c9565b141561278a5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016107f3565b600481600481111561279e5761279e6134c9565b14156117505760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016107f3565b60007f000000000000000000000000000000000000000000000000000000000000000146141561284657507f8b66e566d072873d26f13dae2fa849010380d8ee614d1b68f0b3aa31cecfe60890565b50604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6020808301919091527f8827cf4418f6e0006322b28978c20a3b4e7dccd0ce86073e53c695864ef153b1828401527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b6001600160a01b0382166129405760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016107f3565b61294981611c11565b156129965760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016107f3565b6001600160a01b03821660009081526003602052604081208054600192906129bf9084906131be565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000806fa2a8918ca85bafe22016d0b997e4df60600160ff1b03831115612a4a5750600090506003612af7565b8460ff16601b14158015612a6257508460ff16601c14155b15612a735750600090506004612af7565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612ac7573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612af057600060019250925050612af7565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b01612b2187828885612a1d565b935093505050935093915050565b828054612b3b9061303c565b90600052602060002090601f016020900481019282612b5d5760008555612ba3565b82601f10612b765782800160ff19823516178555612ba3565b82800160010185558215612ba3579182015b82811115612ba3578235825591602001919060010190612b88565b50612baf929150612bb3565b5090565b5b80821115612baf5760008155600101612bb4565b600060208284031215612bda57600080fd5b5035919050565b6001600160e01b03198116811461175057600080fd5b600060208284031215612c0957600080fd5b813561215e81612be1565b60005b83811015612c2f578181015183820152602001612c17565b8381111561148e5750506000910152565b60008151808452612c58816020860160208601612c14565b601f01601f19169290920160200192915050565b60208152600061215e6020830184612c40565b6001600160a01b038116811461175057600080fd5b60008060408385031215612ca757600080fd5b8235612cb281612c7f565b946020939093013593505050565b600080600060608486031215612cd557600080fd5b8335612ce081612c7f565b92506020840135612cf081612c7f565b929592945050506040919091013590565b60008060208385031215612d1457600080fd5b82356001600160401b0380821115612d2b57600080fd5b818501915085601f830112612d3f57600080fd5b813581811115612d4e57600080fd5b866020828501011115612d6057600080fd5b60209290920196919550909350505050565b60008060408385031215612d8557600080fd5b50508035926020909101359150565b803561ffff81168114612da657600080fd5b919050565b60008060408385031215612dbe57600080fd5b8235612dc981612c7f565b9150612dd760208401612d94565b90509250929050565b600060208284031215612df257600080fd5b813561215e81612c7f565b600060208284031215612e0f57600080fd5b813560ff8116811461215e57600080fd5b6020808252825182820181905260009190848201906040850190845b81811015612e5857835183529284019291840191600101612e3c565b50909695505050505050565b60008060408385031215612e7757600080fd5b8235612e8281612c7f565b915060208301358015158114612e9757600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215612ece57600080fd5b8435612ed981612c7f565b93506020850135612ee981612c7f565b92506040850135915060608501356001600160401b0380821115612f0c57600080fd5b818701915087601f830112612f2057600080fd5b813581811115612f3257612f32612ea2565b604051601f8201601f19908116603f01168101908382118183101715612f5a57612f5a612ea2565b816040528281528a6020848701011115612f7357600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215612faa57600080fd5b8235612fb581612c7f565b91506020830135612e9781612c7f565b60008060408385031215612fd857600080fd5b8235915060208301356001600160401b03811115612ff557600080fd5b830160a08186031215612e9757600080fd5b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c9082168061305057607f821691505b6020821081141561307157634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60208152816020820152818360408301376000818301604090810191909152601f909201601f19160101919050565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615613127576131276130f7565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826131515761315161312c565b500490565b60208082526031908201527f45524337323155524953746f726167653a2055524920717565727920666f72206040820152703737b732bc34b9ba32b73a103a37b5b2b760791b606082015260800190565b6000828210156131b9576131b96130f7565b500390565b600082198211156131d1576131d16130f7565b500190565b60208082526025908201527f416d6f756e74206973206d6f7265207468616e20746865206d696e74696e67206040820152641b1a5b5a5d60da1b606082015260800190565b60208082526023908201527f416c6c20746f6b656e73206861766520616c7265616479206265656e206d696e6040820152621d195960ea1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b6000600019821415613288576132886130f7565b5060010190565b600083516132a1818460208801612c14565b8351908301906132b5818360208801612c14565b64173539b7b760d91b9101908152600501949350505050565b6000602082840312156132e057600080fd5b61215e82612d94565b8381526001600160a01b038316602082015260606040820181905260009061331390830184612c40565b95945050505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008261337d5761337d61312c565b500690565b6000808335601e1984360301811261339957600080fd5b8301803591506001600160401b038211156133b357600080fd5b602001915036819003821315610b6f57600080fd5b67020b1b1b7bab73a160c51b8152600083516133eb816008850160208801612c14565b7f20686173207265616368656420697473206d696e74696e67206c696d6974206f600893909101928301525061033160f51b602882015260f89190911b6001600160f81b031916602a8201526f0b081cdbc818d85b9b9bdd081b5a5b9d60821b602b820152603b01919050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061348b90830184612c40565b9695505050505050565b6000602082840312156134a757600080fd5b815161215e81612be1565b6000816134c1576134c16130f7565b506000190190565b634e487b7160e01b600052602160045260246000fdfea2646970667358221220c4b232644f617214b399ba3abcf56bc05e5f0c5c8018a4e4eb30b1533b91795c64736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000e871cccd4bedb96b8e5feba032b70c182c3ace5000000000000000000000000a818d2d27a11ec73a1084fa1b2a7df8072abbd84000000000000000000000000000000000000000000000000000000000000271000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004068747470733a2f2f617277656176652e6e65742f3475735148755572494b4f4d61684d6a536c675973504b6a4f703277505350385a385173364e6d63545f6b2f
-----Decoded View---------------
Arg [0] : _foundationAddress (address): 0x0E871CCCD4bedB96b8E5FEbA032b70c182c3Ace5
Arg [1] : _signer (address): 0xA818d2D27a11eC73A1084fA1b2A7dF8072aBbD84
Arg [2] : _maxTokenSupply (uint256): 10000
Arg [3] : baseURI (string): https://arweave.net/4usQHuUrIKOMahMjSlgYsPKjOp2wPSP8Z8Qs6NmcT_k/
Arg [4] : _royaltyBPS (uint16): 0
-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000e871cccd4bedb96b8e5feba032b70c182c3ace5
Arg [1] : 000000000000000000000000a818d2d27a11ec73a1084fa1b2a7df8072abbd84
Arg [2] : 0000000000000000000000000000000000000000000000000000000000002710
Arg [3] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [6] : 68747470733a2f2f617277656176652e6e65742f3475735148755572494b4f4d
Arg [7] : 61684d6a536c675973504b6a4f703277505350385a385173364e6d63545f6b2f
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.