Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
4,131 CSM
Holders
1,587
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 CSMLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Etherminators
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 2200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.2; // ___ _____ _ _ ___ ___ __ __ ___ _ _ _ _____ ___ ___ ___ // | __|_ _| || | __| _ \ \/ |_ _| \| | /_\_ _/ _ \| _ \/ __| // | _| | | | __ | _|| / |\/| || || .` |/ _ \| || (_) | /\__ \ // |___| |_| |_||_|___|_|_\_| |_|___|_|\_/_/ \_\_| \___/|_|_\|___/ // Creator @alwoenie // Developer @nftchef import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "./ERC721SeqEnumerable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/finance/PaymentSplitter.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; //---------------------------------------------------------------------------- // OpenSea proxy //---------------------------------------------------------------------------- import "./common/ContextMixin.sol"; import "./common/NativeMetaTransaction.sol"; contract OwnableDelegateProxy {} contract ProxyRegistry { mapping(address => OwnableDelegateProxy) public proxies; } //---------------------------------------------------------------------------- // Main contract //---------------------------------------------------------------------------- contract Etherminators is ERC721SeqEnumerable, ContextMixin, NativeMetaTransaction, Ownable, Pausable, ReentrancyGuard, PaymentSplitter { using Strings for uint256; using ECDSA for bytes32; uint128 public PUBLIC_SUPPLY = 6904; // Reserve 65 uint128 public MAX_SUPPLY = 6969; uint128 public PUBLIC_MINT_LIMIT = 10; uint128 public PRESALE_MINT_LIMIT = 5; int256 public priceTier; uint256 public tierLimit = 1000; // @dev enforce a per-address lifetime limit based on the mintBalances mapping bool public publicWalletLimit = true; bool public isPresale = true; bool public isRevealed = false; mapping(address => uint256) public mintBalances; mapping(uint256 => uint256) public pricelist; string internal baseTokenURI; address[] internal payees; address internal _SIGNER; string public PROVENANCE_HASH; // keccak256 // opensea proxy address private immutable _proxyRegistryAddress; constructor( string memory _initialURI, address[] memory _payees, uint256[] memory _shares, address proxyRegistryAddress ) payable ERC721Sequencial("ETHERMINATORS", "CSM") Pausable() PaymentSplitter(_payees, _shares) { _pause(); baseTokenURI = _initialURI; payees = _payees; // @dev: initialize the base price tiers pricelist[0] = 0.03 ether; pricelist[1] = 0.05 ether; _proxyRegistryAddress = proxyRegistryAddress; _initializeEIP712("ETHERMINATORS"); } function purchase(uint256 _quantity) public payable nonReentrant whenNotPaused { require(!isPresale, "Presale only."); require( _quantity <= PUBLIC_MINT_LIMIT, "Quantity exceeds PUBLIC_MINT_LIMIT" ); if (publicWalletLimit) { require( _quantity + mintBalances[msg.sender] <= PUBLIC_MINT_LIMIT, "Quantity exceeds per-wallet limit" ); } _mint(_quantity); } function presalePurchase( uint256 _quantity, bytes32 _hash, bytes memory _signature ) external payable nonReentrant whenNotPaused { require( checkHash(_hash, _signature, _SIGNER), "Address is not on Presale List" ); // @dev Presale always enforces a per-wallet limit require( _quantity + mintBalances[msg.sender] <= PRESALE_MINT_LIMIT, "Quantity exceeds per-wallet limit" ); _mint(_quantity); } function _mint(uint256 _quantity) internal { uint256 currentPrice = _owners.length < tierLimit ? pricelist[0] : pricelist[1]; require(msg.value >= currentPrice * _quantity, "Not enough minerals"); require( _quantity + _owners.length <= PUBLIC_SUPPLY, "Purchase exceeds available supply" ); for (uint256 i = 0; i < _quantity; i++) { _safeMint(msg.sender); } // @dev: contract state housekeeping mintBalances[msg.sender] += _quantity; } function tokenURI(uint256 tokenId) public view override returns (string memory) { require(_exists(tokenId), '"ERC721Metadata: tokenId does not exist"'); // @dev: The revealed URI does not add a `/` or a file extesion. return isRevealed ? string(abi.encodePacked(baseTokenURI, tokenId.toString())) : baseTokenURI; } function senderMessageHash() internal view returns (bytes32) { bytes32 message = keccak256( abi.encodePacked( "\x19Ethereum Signed Message:\n32", keccak256(abi.encodePacked(address(this), msg.sender)) ) ); return message; } /** * Override isApprovedForAll to whitelist user's OpenSea proxy accounts * to enable gas-less listings. */ function isApprovedForAll(address owner, address operator) public view override returns (bool) { // whitelist OpenSea proxy contract for easy trading. ProxyRegistry proxyRegistry = ProxyRegistry(_proxyRegistryAddress); if (address(proxyRegistry.proxies(owner)) == operator) { return true; } return super.isApprovedForAll(owner, operator); } function checkHash( bytes32 _hash, bytes memory signature, address _account ) internal view returns (bool) { bytes32 senderHash = senderMessageHash(); if (senderHash != _hash) { return false; } return _hash.recover(signature) == _account; } /** * Convinience function for checking the current price tier */ function getCurrentPrice() external view returns (uint256) { return _owners.length < tierLimit ? pricelist[0] : pricelist[1]; } //---------------------------------------------------------------------------- // Only Owner //---------------------------------------------------------------------------- function setSigner(address _address) external onlyOwner { _SIGNER = _address; } // @dev gift a single token to each address passed in through calldata // @param _recipients Array of addresses to send a single token to function gift(address[] calldata _recipients) external onlyOwner { uint256 recipients = _recipients.length; require( recipients + _owners.length <= MAX_SUPPLY, "_quantity exceeds supply" ); for (uint256 i = 0; i < recipients; i++) { _safeMint(_recipients[i]); } } function setPaused(bool _state) external onlyOwner { _state ? _pause() : _unpause(); } function updatePricing(uint256 _tier, uint256 _price) external onlyOwner { pricelist[_tier] = _price; } function updateTierCutoff(uint256 _limit) external onlyOwner { tierLimit = _limit; } function setPresale(bool _state) external onlyOwner { isPresale = _state; } function setPresaleLimit(uint128 _limit) external onlyOwner { PRESALE_MINT_LIMIT = _limit; } function setPublicLimit(uint128 _limit) external onlyOwner { PUBLIC_MINT_LIMIT = _limit; } function setWalletLimit(bool _state) external onlyOwner { publicWalletLimit = _state; } function setProvenance(string memory _provenance) external onlyOwner { PROVENANCE_HASH = _provenance; } function setReveal(bool _state) external onlyOwner { isRevealed = _state; } function setBaseURI(string memory _URI) external onlyOwner { baseTokenURI = _URI; } function withdrawAll() external onlyOwner { for (uint256 i = 0; i < payees.length; i++) { release(payable(payees[i])); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import {SafeMath} from "@openzeppelin/contracts/utils/math/SafeMath.sol"; import {EIP712Base} from "./EIP712Base.sol"; contract NativeMetaTransaction is EIP712Base { using SafeMath for uint256; bytes32 private constant META_TRANSACTION_TYPEHASH = keccak256( bytes( "MetaTransaction(uint256 nonce,address from,bytes functionSignature)" ) ); event MetaTransactionExecuted( address userAddress, address payable relayerAddress, bytes functionSignature ); mapping(address => uint256) nonces; /* * Meta transaction structure. * No point of including value field here as if user is doing value transfer then he has the funds to pay for gas * He should call the desired function directly in that case. */ struct MetaTransaction { uint256 nonce; address from; bytes functionSignature; } function executeMetaTransaction( address userAddress, bytes memory functionSignature, bytes32 sigR, bytes32 sigS, uint8 sigV ) public payable returns (bytes memory) { MetaTransaction memory metaTx = MetaTransaction({ nonce: nonces[userAddress], from: userAddress, functionSignature: functionSignature }); require( verify(userAddress, metaTx, sigR, sigS, sigV), "Signer and signature do not match" ); // increase nonce for user (to avoid re-use) nonces[userAddress] = nonces[userAddress].add(1); emit MetaTransactionExecuted( userAddress, payable(msg.sender), functionSignature ); // Append userAddress and relayer address at the end to extract it from calling context (bool success, bytes memory returnData) = address(this).call( abi.encodePacked(functionSignature, userAddress) ); require(success, "Function call not successful"); return returnData; } function hashMetaTransaction(MetaTransaction memory metaTx) internal pure returns (bytes32) { return keccak256( abi.encode( META_TRANSACTION_TYPEHASH, metaTx.nonce, metaTx.from, keccak256(metaTx.functionSignature) ) ); } function getNonce(address user) public view returns (uint256 nonce) { nonce = nonces[user]; } function verify( address signer, MetaTransaction memory metaTx, bytes32 sigR, bytes32 sigS, uint8 sigV ) internal view returns (bool) { require(signer != address(0), "NativeMetaTransaction: INVALID_SIGNER"); return signer == ecrecover( toTypedMessageHash(hashMetaTransaction(metaTx)), sigV, sigR, sigS ); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; contract Initializable { bool inited = false; modifier initializer() { require(!inited, "already inited"); _; inited = true; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import {Initializable} from "./Initializable.sol"; contract EIP712Base is Initializable { struct EIP712Domain { string name; string version; address verifyingContract; bytes32 salt; } string public constant ERC712_VERSION = "1"; bytes32 internal constant EIP712_DOMAIN_TYPEHASH = keccak256( bytes( "EIP712Domain(string name,string version,address verifyingContract,bytes32 salt)" ) ); bytes32 internal domainSeperator; // supposed to be called once while initializing. // one of the contracts that inherits this contract follows proxy pattern // so it is not possible to do this in a constructor function _initializeEIP712(string memory name) internal initializer { _setDomainSeperator(name); } function _setDomainSeperator(string memory name) internal { domainSeperator = keccak256( abi.encode( EIP712_DOMAIN_TYPEHASH, keccak256(bytes(name)), keccak256(bytes(ERC712_VERSION)), address(this), bytes32(getChainId()) ) ); } function getDomainSeperator() public view returns (bytes32) { return domainSeperator; } function getChainId() public view returns (uint256) { uint256 id; assembly { id := chainid() } return id; } /** * Accept message hash and returns hash message in EIP712 compatible form * So that it can be used to recover signer from signature signed using EIP712 formatted data * https://eips.ethereum.org/EIPS/eip-712 * "\\x19" makes the encoding deterministic * "\\x01" is the version byte to make it compatible to EIP-191 */ function toTypedMessageHash(bytes32 messageHash) internal view returns (bytes32) { return keccak256( abi.encodePacked("\x19\x01", getDomainSeperator(), messageHash) ); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; abstract contract ContextMixin { function msgSender() internal view returns (address payable sender) { if (msg.sender == address(this)) { bytes memory array = msg.data; uint256 index = msg.data.length; assembly { // Load the 32 bytes word from memory with the address on the lower 20 bytes, and mask those. sender := and( mload(add(array, index)), 0xffffffffffffffffffffffffffffffffffffffff ) } } else { sender = payable(msg.sender); } return sender; } }
// SPDX-License-Identifier: MIT // Forked from: OpenZeppelin Contracts v4.4.0 (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; //------------------------------------------------------------------------------ // geneticchain.io - NextGen Generative NFT Platform //------------------------------------------------------------------------------ // _______ __ __ ______ __ __ // | __|-----.-----.-----| |_|__|----. | | |--.---.-|__|-----. // | | | -__| | -__| _| | __| | ---| | _ | | | // |_______|_____|__|__|_____|____|__|____| |______|__|__|___._|__|__|__| // //------------------------------------------------------------------------------ // Genetic Chain: ERC721Sequencial //------------------------------------------------------------------------------ // Author: papaver (@tronicdreams) //------------------------------------------------------------------------------ import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721 * [ERC721] Non-Fungible Token Standard * * This implmentation of ERC721 assumes sequencial token creation to provide * efficient minting. Storage for balance are no longer required reducing * gas significantly. This comes at the price of calculating the balance by * iterating through the entire array. The balanceOf function should NOT * be used inside a contract. Gas usage will explode as the size of tokens * increase. A convineiance function is provided which returns the entire * list of owners whose index maps tokenIds to thier owners. Zero addresses * indicate burned tokens. * */ contract ERC721Sequencial 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 address[] _owners; // 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 balance) { require(owner != address(0), "ERC721: balance query for the zero address"); unchecked { uint256 length = _owners.length; for (uint256 i = 0; i < length; ++i) { if (_owners[i] == owner) { ++balance; } } } } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: owner query for nonexistent token"); address owner = _owners[tokenId]; return owner; } /** * @dev Returns entire list of owner enumerated by thier tokenIds. Burned tokens * will have a zero address. */ function owners() public view returns (address[] memory) { address[] memory owners_ = _owners; return owners_; } /** * @dev Return largest tokenId minted. */ function maxTokenId() public view returns (uint256) { return _owners.length > 0 ? _owners.length - 1 : 0; } /** * @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 = ERC721Sequencial.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 { _setApprovalForAll(_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 tokenId < _owners.length && _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 = ERC721Sequencial.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) internal virtual returns (uint256 tokenId) { tokenId = _safeMint(to, ""); } /** * @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, bytes memory _data ) internal virtual returns (uint256 tokenId) { tokenId = _mint(to); 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) internal virtual returns (uint256 tokenId) { require(to != address(0), "ERC721: mint to the zero address"); tokenId = _owners.length; _beforeTokenTransfer(address(0), to, tokenId); _owners.push(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 = ERC721Sequencial.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); 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(ERC721Sequencial.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); _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(ERC721Sequencial.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @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; //------------------------------------------------------------------------------ // geneticchain.io - NextGen Generative NFT Platform //------------------------------------------------------------------------------ // _______ __ __ ______ __ __ // | __|-----.-----.-----| |_|__|----. | | |--.---.-|__|-----. // | | | -__| | -__| _| | __| | ---| | _ | | | // |_______|_____|__|__|_____|____|__|____| |______|__|__|___._|__|__|__| // //------------------------------------------------------------------------------ // Genetic Chain: ERC721SeqEnumerable //------------------------------------------------------------------------------ // Author: papaver (@tronicdreams) //------------------------------------------------------------------------------ import "./ERC721Sequencial.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; /** * @dev This is a no storage implemntation of the optional extension {ERC721} * defined in the EIP that adds enumerability of all the token ids in the * contract as well as all token ids owned by each account. These functions * are mainly for convienence and should NEVER be called from inside a * contract on the chain. */ abstract contract ERC721SeqEnumerable is ERC721Sequencial, IERC721Enumerable { address constant zero = address(0); /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721Sequencial) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256 tokenId) { uint256 length = _owners.length; unchecked { for (; tokenId < length; ++tokenId) { if (_owners[tokenId] == owner) { if (index-- == 0) { break; } } } } require( tokenId < length, "ERC721Enumerable: owner index out of bounds" ); } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256 supply) { unchecked { uint256 length = _owners.length; for (uint256 tokenId = 0; tokenId < length; ++tokenId) { if (_owners[tokenId] != zero) { ++supply; } } } } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256 tokenId) { uint256 length = _owners.length; unchecked { for (; tokenId < length; ++tokenId) { if (_owners[tokenId] != zero) { if (index-- == 0) { break; } } } } require( tokenId < length, "ERC721Enumerable: global index out of bounds" ); } /** * @dev Get all tokens owned by owner. */ function ownerTokens(address owner) public view returns (uint256[] memory) { uint256 tokenCount = ERC721Sequencial.balanceOf(owner); require(tokenCount != 0, "ERC721Enumerable: owner owns no tokens"); uint256 length = _owners.length; uint256[] memory tokenIds = new uint256[](tokenCount); unchecked { uint256 i = 0; for (uint256 tokenId = 0; tokenId < length; ++tokenId) { if (_owners[tokenId] == owner) { tokenIds[i++] = tokenId; } } } return tokenIds; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// 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); }
// 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 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; /** * @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; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev 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; 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; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// 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 "../../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; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Address.sol"; import "../utils/Context.sol"; import "../utils/math/SafeMath.sol"; /** * @title PaymentSplitter * @dev This contract allows to split Ether payments among a group of accounts. The sender does not need to be aware * that the Ether will be split in this way, since it is handled transparently by the contract. * * The split can be in equal parts or in any other arbitrary proportion. The way this is specified is by assigning each * account to a number of shares. Of all the Ether that this contract receives, each account will then be able to claim * an amount proportional to the percentage of total shares they were assigned. * * `PaymentSplitter` follows a _pull payment_ model. This means that payments are not automatically forwarded to the * accounts but kept in this contract, and the actual transfer is triggered as a separate step by calling the {release} * function. */ contract PaymentSplitter is Context { event PayeeAdded(address account, uint256 shares); event PaymentReleased(address to, uint256 amount); event PaymentReceived(address from, uint256 amount); uint256 private _totalShares; uint256 private _totalReleased; mapping(address => uint256) private _shares; mapping(address => uint256) private _released; address[] private _payees; /** * @dev Creates an instance of `PaymentSplitter` where each account in `payees` is assigned the number of shares at * the matching position in the `shares` array. * * All addresses in `payees` must be non-zero. Both arrays must have the same non-zero length, and there must be no * duplicates in `payees`. */ constructor(address[] memory payees, uint256[] memory shares_) payable { require(payees.length == shares_.length, "PaymentSplitter: payees and shares length mismatch"); require(payees.length > 0, "PaymentSplitter: no payees"); for (uint256 i = 0; i < payees.length; i++) { _addPayee(payees[i], shares_[i]); } } /** * @dev The Ether received will be logged with {PaymentReceived} events. Note that these events are not fully * reliable: it's possible for a contract to receive Ether without triggering this function. This only affects the * reliability of the events, and not the actual splitting of Ether. * * To learn more about this see the Solidity documentation for * https://solidity.readthedocs.io/en/latest/contracts.html#fallback-function[fallback * functions]. */ receive() external payable virtual { emit PaymentReceived(_msgSender(), msg.value); } /** * @dev Getter for the total shares held by payees. */ function totalShares() public view returns (uint256) { return _totalShares; } /** * @dev Getter for the total amount of Ether already released. */ function totalReleased() public view returns (uint256) { return _totalReleased; } /** * @dev Getter for the amount of shares held by an account. */ function shares(address account) public view returns (uint256) { return _shares[account]; } /** * @dev Getter for the amount of Ether already released to a payee. */ function released(address account) public view returns (uint256) { return _released[account]; } /** * @dev Getter for the address of the payee number `index`. */ function payee(uint256 index) public view returns (address) { return _payees[index]; } /** * @dev Triggers a transfer to `account` of the amount of Ether they are owed, according to their percentage of the * total shares and their previous withdrawals. */ function release(address payable account) public virtual { require(_shares[account] > 0, "PaymentSplitter: account has no shares"); uint256 totalReceived = address(this).balance + _totalReleased; uint256 payment = (totalReceived * _shares[account]) / _totalShares - _released[account]; require(payment != 0, "PaymentSplitter: account is not due payment"); _released[account] = _released[account] + payment; _totalReleased = _totalReleased + payment; Address.sendValue(account, payment); emit PaymentReleased(account, payment); } /** * @dev Add a new payee to the contract. * @param account The address of the payee to add. * @param shares_ The number of shares owned by the payee. */ function _addPayee(address account, uint256 shares_) private { require(account != address(0), "PaymentSplitter: account is the zero address"); require(shares_ > 0, "PaymentSplitter: shares are 0"); require(_shares[account] == 0, "PaymentSplitter: account already has shares"); _payees.push(account); _shares[account] = shares_; _totalShares = _totalShares + shares_; emit PayeeAdded(account, shares_); } }
// 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); } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 2200 }, "evmVersion": "london", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_initialURI","type":"string"},{"internalType":"address[]","name":"_payees","type":"address[]"},{"internalType":"uint256[]","name":"_shares","type":"uint256[]"},{"internalType":"address","name":"proxyRegistryAddress","type":"address"}],"stateMutability":"payable","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":"address","name":"userAddress","type":"address"},{"indexed":false,"internalType":"address payable","name":"relayerAddress","type":"address"},{"indexed":false,"internalType":"bytes","name":"functionSignature","type":"bytes"}],"name":"MetaTransactionExecuted","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":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"PayeeAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReleased","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":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"ERC712_VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRESALE_MINT_LIMIT","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PROVENANCE_HASH","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBLIC_MINT_LIMIT","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBLIC_SUPPLY","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"userAddress","type":"address"},{"internalType":"bytes","name":"functionSignature","type":"bytes"},{"internalType":"bytes32","name":"sigR","type":"bytes32"},{"internalType":"bytes32","name":"sigS","type":"bytes32"},{"internalType":"uint8","name":"sigV","type":"uint8"}],"name":"executeMetaTransaction","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"payable","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":[],"name":"getCurrentPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDomainSeperator","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getNonce","outputs":[{"internalType":"uint256","name":"nonce","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_recipients","type":"address[]"}],"name":"gift","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPresale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isRevealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mintBalances","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":[{"internalType":"address","name":"owner","type":"address"}],"name":"ownerTokens","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owners","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"payee","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"},{"internalType":"bytes32","name":"_hash","type":"bytes32"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"presalePurchase","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"priceTier","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"pricelist","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicWalletLimit","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"purchase","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","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":"string","name":"_URI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setPresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"_limit","type":"uint128"}],"name":"setPresaleLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_provenance","type":"string"}],"name":"setProvenance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"_limit","type":"uint128"}],"name":"setPublicLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setReveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setWalletLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"shares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"tierLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"tokenId","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":[],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"supply","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":"uint256","name":"_tier","type":"uint256"},{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"updatePricing","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_limit","type":"uint256"}],"name":"updateTierCutoff","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60a060408190526005805460ff19169055711b3900000000000000000000000000001af8600f5570050000000000000000000000000000000a6010556103e86012556013805462ffffff1916610101179055620053e83881900390819083398101604081905262000070916200091c565b604080518082018252600d81526c45544845524d494e41544f525360981b60208083019182528351808501909452600384526243534d60e81b90840152815186938693929091620000c49160009162000717565b508051620000da90600190602084019062000717565b505050620000f7620000f16200032160201b60201c565b62000325565b6008805460ff60a01b19169055600160095580518251146200017b5760405162461bcd60e51b815260206004820152603260248201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726044820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b60648201526084015b60405180910390fd5b6000825111620001ce5760405162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f20706179656573000000000000604482015260640162000172565b60005b82518110156200023a5762000225838281518110620001f457620001f462000b20565b602002602001015183838151811062000211576200021162000b20565b60200260200101516200037760201b60201c565b80620002318162000aec565b915050620001d1565b506200024891505062000565565b83516200025d90601690602087019062000717565b50825162000273906017906020860190620007a6565b5060156020908152666a94d74f4300007fa31547ce6245cdb9ecea19cf8c7eb9f5974025bb4075011409251ae855b30aed55600160005266b1a2bc2ec500007f27739e4bb5e6f8b5e4b57a047dca8767cc9b982a011081e086cbb0dfa9de818d556001600160601b0319606083901b1660805260408051808201909152600d81526c45544845524d494e41544f525360981b91810191909152620003179062000614565b5050505062000b4c565b3390565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216620003e45760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b606482015260840162000172565b60008111620004365760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a20736861726573206172652030000000604482015260640162000172565b6001600160a01b0382166000908152600c602052604090205415620004b25760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b606482015260840162000172565b600e8054600181019091557fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd0180546001600160a01b0319166001600160a01b0384169081179091556000908152600c60205260409020819055600a546200051c90829062000a94565b600a55604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b62000579600854600160a01b900460ff1690565b15620005bb5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640162000172565b6008805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258620005f73390565b6040516001600160a01b03909116815260200160405180910390a1565b60055460ff16156200065a5760405162461bcd60e51b815260206004820152600e60248201526d185b1c9958591e481a5b9a5d195960921b604482015260640162000172565b620006658162000675565b506005805460ff19166001179055565b6040518060800160405280604f815260200162005399604f9139805160209182012082519282019290922060408051808201825260018152603160f81b90840152805180840194909452838101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608401523060808401524660a0808501919091528151808503909101815260c090930190528151910120600655565b828054620007259062000aaf565b90600052602060002090601f01602090048101928262000749576000855562000794565b82601f106200076457805160ff191683800117855562000794565b8280016001018555821562000794579182015b828111156200079457825182559160200191906001019062000777565b50620007a2929150620007fe565b5090565b82805482825590600052602060002090810192821562000794579160200282015b828111156200079457825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190620007c7565b5b80821115620007a25760008155600101620007ff565b80516001600160a01b03811681146200082d57600080fd5b919050565b600082601f8301126200084457600080fd5b815160206200085d620008578362000a6e565b62000a3b565b80838252828201915082860187848660051b89010111156200087e57600080fd5b60005b85811015620008a857620008958262000815565b8452928401929084019060010162000881565b5090979650505050505050565b600082601f830112620008c757600080fd5b81516020620008da620008578362000a6e565b80838252828201915082860187848660051b8901011115620008fb57600080fd5b60005b85811015620008a857815184529284019290840190600101620008fe565b600080600080608085870312156200093357600080fd5b84516001600160401b03808211156200094b57600080fd5b818701915087601f8301126200096057600080fd5b81518181111562000975576200097562000b36565b60206200098b601f8301601f1916820162000a3b565b8281528a82848701011115620009a057600080fd5b60005b83811015620009c0578581018301518282018401528201620009a3565b83811115620009d25760008385840101525b509089015190975092505080821115620009eb57600080fd5b620009f98883890162000832565b9450604087015191508082111562000a1057600080fd5b5062000a1f87828801620008b5565b92505062000a306060860162000815565b905092959194509250565b604051601f8201601f191681016001600160401b038111828210171562000a665762000a6662000b36565b604052919050565b60006001600160401b0382111562000a8a5762000a8a62000b36565b5060051b60200190565b6000821982111562000aaa5762000aaa62000b0a565b500190565b600181811c9082168062000ac457607f821691505b6020821081141562000ae657634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141562000b035762000b0362000b0a565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b60805160601c61482e62000b6b6000396000612483015261482e6000f3fe6080604052600436106103b15760003560e01c80638342083a116101e7578063bba7723e1161010d578063e33b7de3116100a0578063f2fde38b1161006f578063f2fde38b14610bad578063f5ebec8014610bcd578063ff1b655614610c0a578063ffe630b514610c1f57600080fd5b8063e33b7de314610b50578063e985e9c514610b65578063eb91d37e14610b85578063efef39a114610b9a57600080fd5b8063c54e73e3116100dc578063c54e73e314610ac7578063c86768d814610ae7578063c87b56dd14610afa578063ce7c2ac214610b1a57600080fd5b8063bba7723e14610a24578063bc56602f14610a51578063bceae77b14610a7e578063bf34be4414610aa757600080fd5b8063963c1d7a11610185578063abd0359611610154578063abd03596146109b2578063af33b63e146109cc578063affe39c1146109e2578063b88d4fde14610a0457600080fd5b8063963c1d7a1461090f5780639852595c1461092f57806399feddbf14610965578063a22cb4651461099257600080fd5b80638da5cb5b116101c15780638da5cb5b146108a857806391ba317a146108c657806395364a84146108db57806395d89b41146108fa57600080fd5b80638342083a1461084a578063853828b6146108735780638b83209b1461088857600080fd5b80632f745c59116102d75780635c975abb1161026a5780636cf80690116102395780636cf80690146107d55780636e27fb74146107f557806370a0823114610815578063715018a61461083557600080fd5b80635c975abb146107605780635cff59e81461077f5780636352211e146107955780636c19e783146107b557600080fd5b806342842e0e116102a657806342842e0e146106e05780634f6ccce71461070057806354214f691461072057806355f804b31461074057600080fd5b80632f745c591461063a57806332cb6b0c1461065a5780633408e470146106b85780633a98ef39146106cb57600080fd5b8063163e1e611161034f57806320379ee51161031e57806320379ee5146105af57806323b872dd146105c45780632a3f300c146105e45780632d0335ab1461060457600080fd5b8063163e1e611461052c57806316c38b3c1461054c57806318160ddd1461056c578063191655871461058f57600080fd5b8063095ea7b31161038b578063095ea7b31461048e5780630c53c51c146104b05780630f7e5970146104c357806310e5ab811461050c57600080fd5b806301ffc9a7146103ff57806306fdde0314610434578063081812fc1461045657600080fd5b366103fa577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b34801561040b57600080fd5b5061041f61041a366004614273565b610c3f565b60405190151581526020015b60405180910390f35b34801561044057600080fd5b50610449610c9b565b60405161042b91906145ff565b34801561046257600080fd5b50610476610471366004614345565b610d2d565b6040516001600160a01b03909116815260200161042b565b34801561049a57600080fd5b506104ae6104a93660046141b7565b610dcb565b005b6104496104be366004614139565b610efd565b3480156104cf57600080fd5b506104496040518060400160405280600181526020017f310000000000000000000000000000000000000000000000000000000000000081525081565b34801561051857600080fd5b506104ae6105273660046143ae565b611103565b34801561053857600080fd5b506104ae6105473660046141e3565b61116f565b34801561055857600080fd5b506104ae610567366004614258565b6112a3565b34801561057857600080fd5b50610581611315565b60405190815260200161042b565b34801561059b57600080fd5b506104ae6105aa366004614001565b611371565b3480156105bb57600080fd5b50600654610581565b3480156105d057600080fd5b506104ae6105df366004614057565b61156b565b3480156105f057600080fd5b506104ae6105ff366004614258565b6115f2565b34801561061057600080fd5b5061058161061f366004614001565b6001600160a01b031660009081526007602052604090205490565b34801561064657600080fd5b506105816106553660046141b7565b611684565b34801561066657600080fd5b50600f546106979070010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff1681565b6040516fffffffffffffffffffffffffffffffff909116815260200161042b565b3480156106c457600080fd5b5046610581565b3480156106d757600080fd5b50600a54610581565b3480156106ec57600080fd5b506104ae6106fb366004614057565b611761565b34801561070c57600080fd5b5061058161071b366004614345565b61177c565b34801561072c57600080fd5b5060135461041f9062010000900460ff1681565b34801561074c57600080fd5b506104ae61075b3660046142ca565b611858565b34801561076c57600080fd5b50600854600160a01b900460ff1661041f565b34801561078b57600080fd5b5061058160125481565b3480156107a157600080fd5b506104766107b0366004614345565b6118c9565b3480156107c157600080fd5b506104ae6107d0366004614001565b611977565b3480156107e157600080fd5b506104ae6107f0366004614258565b611a00565b34801561080157600080fd5b506104ae610810366004614313565b611a6d565b34801561082157600080fd5b50610581610830366004614001565b611afc565b34801561084157600080fd5b506104ae611bd6565b34801561085657600080fd5b50600f54610697906fffffffffffffffffffffffffffffffff1681565b34801561087f57600080fd5b506104ae611c3c565b34801561089457600080fd5b506104766108a3366004614345565b611ce5565b3480156108b457600080fd5b506008546001600160a01b0316610476565b3480156108d257600080fd5b50610581611d15565b3480156108e757600080fd5b5060135461041f90610100900460ff1681565b34801561090657600080fd5b50610449611d39565b34801561091b57600080fd5b506104ae61092a366004614345565b611d48565b34801561093b57600080fd5b5061058161094a366004614001565b6001600160a01b03166000908152600d602052604090205490565b34801561097157600080fd5b50610581610980366004614345565b60156020526000908152604090205481565b34801561099e57600080fd5b506104ae6109ad366004614104565b611da7565b3480156109be57600080fd5b5060135461041f9060ff1681565b3480156109d857600080fd5b5061058160115481565b3480156109ee57600080fd5b506109f7611db2565b60405161042b919061457a565b348015610a1057600080fd5b506104ae610a1f366004614098565b611e18565b348015610a3057600080fd5b50610a44610a3f366004614001565b611ea0565b60405161042b91906145c7565b348015610a5d57600080fd5b50610581610a6c366004614001565b60146020526000908152604090205481565b348015610a8a57600080fd5b50601054610697906fffffffffffffffffffffffffffffffff1681565b348015610ab357600080fd5b506104ae610ac2366004614313565b611fe9565b348015610ad357600080fd5b506104ae610ae2366004614258565b612086565b6104ae610af536600461435e565b612117565b348015610b0657600080fd5b50610449610b15366004614345565b6122fa565b348015610b2657600080fd5b50610581610b35366004614001565b6001600160a01b03166000908152600c602052604090205490565b348015610b5c57600080fd5b50600b54610581565b348015610b7157600080fd5b5061041f610b8036600461401e565b612448565b348015610b9157600080fd5b5061058161254f565b6104ae610ba8366004614345565b6125bc565b348015610bb957600080fd5b506104ae610bc8366004614001565b612812565b348015610bd957600080fd5b506010546106979070010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff1681565b348015610c1657600080fd5b506104496128f1565b348015610c2b57600080fd5b506104ae610c3a3660046142ca565b61297f565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d63000000000000000000000000000000000000000000000000000000001480610c955750610c95826129ec565b92915050565b606060008054610caa906146a0565b80601f0160208091040260200160405190810160405280929190818152602001828054610cd6906146a0565b8015610d235780601f10610cf857610100808354040283529160200191610d23565b820191906000526020600020905b815481529060010190602001808311610d0657829003601f168201915b5050505050905090565b6000610d3882612acf565b610daf5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152600360205260409020546001600160a01b031690565b6000610dd6826118c9565b9050806001600160a01b0316836001600160a01b03161415610e605760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610da6565b336001600160a01b0382161480610e7c5750610e7c8133612448565b610eee5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610da6565b610ef88383612b19565b505050565b60408051606081810183526001600160a01b03881660008181526007602090815290859020548452830152918101869052610f3b8782878787612b94565b610fad5760405162461bcd60e51b815260206004820152602160248201527f5369676e657220616e64207369676e617475726520646f206e6f74206d61746360448201527f68000000000000000000000000000000000000000000000000000000000000006064820152608401610da6565b6001600160a01b038716600090815260076020526040902054610fd1906001612c9c565b6001600160a01b0388166000908152600760205260409081902091909155517f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b9061102190899033908a90614512565b60405180910390a1600080306001600160a01b0316888a604051602001611049929190614434565b60408051601f198184030181529082905261106391614418565b6000604051808303816000865af19150503d80600081146110a0576040519150601f19603f3d011682016040523d82523d6000602084013e6110a5565b606091505b5091509150816110f75760405162461bcd60e51b815260206004820152601c60248201527f46756e6374696f6e2063616c6c206e6f74207375636365737366756c000000006044820152606401610da6565b98975050505050505050565b6008546001600160a01b0316331461115d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610da6565b60009182526015602052604090912055565b6008546001600160a01b031633146111c95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610da6565b600f54600254829170010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff16906112029083614612565b11156112505760405162461bcd60e51b815260206004820152601860248201527f5f7175616e74697479206578636565647320737570706c7900000000000000006044820152606401610da6565b60005b8181101561129d5761128a84848381811061127057611270614746565b90506020020160208101906112859190614001565b612caf565b5080611295816146d5565b915050611253565b50505050565b6008546001600160a01b031633146112fd5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610da6565b8061130d5761130a612cca565b50565b61130a612d8b565b600254600090815b8181101561136c5760006001600160a01b03166002828154811061134357611343614746565b6000918252602090912001546001600160a01b031614611364578260010192505b60010161131d565b505090565b6001600160a01b0381166000908152600c60205260409020546113fc5760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201527f73686172657300000000000000000000000000000000000000000000000000006064820152608401610da6565b6000600b544761140c9190614612565b6001600160a01b0383166000908152600d6020908152604080832054600a54600c909352908320549394509192611443908561463e565b61144d919061462a565b611457919061465d565b9050806114cc5760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201527f647565207061796d656e740000000000000000000000000000000000000000006064820152608401610da6565b6001600160a01b0383166000908152600d60205260409020546114f0908290614612565b6001600160a01b0384166000908152600d6020526040902055600b54611517908290614612565b600b556115248382612e3b565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b6115753382612f54565b6115e75760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610da6565b610ef8838383613027565b6008546001600160a01b0316331461164c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610da6565b6013805491151562010000027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffff909216919091179055565b6002546000905b808210156116e557836001600160a01b0316600283815481106116b0576116b0614746565b6000918252602090912001546001600160a01b031614156116da576000198301926116da576116e5565b81600101915061168b565b80821061175a5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610da6565b5092915050565b610ef883838360405180602001604052806000815250611e18565b6002546000905b808210156117dd5760006001600160a01b0316600283815481106117a9576117a9614746565b6000918252602090912001546001600160a01b0316146117d2576000198301926117d2576117dd565b816001019150611783565b8082106118525760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610da6565b50919050565b6008546001600160a01b031633146118b25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610da6565b80516118c5906016906020840190613ebd565b5050565b60006118d482612acf565b6119465760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610da6565b60006002838154811061195b5761195b614746565b6000918252602090912001546001600160a01b03169392505050565b6008546001600160a01b031633146119d15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610da6565b6018805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6008546001600160a01b03163314611a5a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610da6565b6013805460ff1916911515919091179055565b6008546001600160a01b03163314611ac75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610da6565b601080546fffffffffffffffffffffffffffffffff928316700100000000000000000000000000000000029216919091179055565b60006001600160a01b038216611b7a5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610da6565b60025460005b81811015611bcf57836001600160a01b031660028281548110611ba557611ba5614746565b6000918252602090912001546001600160a01b03161415611bc7578260010192505b600101611b80565b5050919050565b6008546001600160a01b03163314611c305760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610da6565b611c3a60006131b7565b565b6008546001600160a01b03163314611c965760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610da6565b60005b60175481101561130a57611cd360178281548110611cb957611cb9614746565b6000918252602090912001546001600160a01b0316611371565b80611cdd816146d5565b915050611c99565b6000600e8281548110611cfa57611cfa614746565b6000918252602090912001546001600160a01b031692915050565b600254600090611d255750600090565b600254611d349060019061465d565b905090565b606060018054610caa906146a0565b6008546001600160a01b03163314611da25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610da6565b601255565b6118c5338383613216565b606060006002805480602002602001604051908101604052809291908181526020018280548015611e0c57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611dee575b50939695505050505050565b611e223383612f54565b611e945760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610da6565b61129d848484846132e5565b60606000611ead83611afc565b905080611f225760405162461bcd60e51b815260206004820152602660248201527f455243373231456e756d657261626c653a206f776e6572206f776e73206e6f2060448201527f746f6b656e7300000000000000000000000000000000000000000000000000006064820152608401610da6565b60025460008267ffffffffffffffff811115611f4057611f4061475c565b604051908082528060200260200182016040528015611f69578160200160208202803683370190505b5090506000805b83811015611fde57866001600160a01b031660028281548110611f9557611f95614746565b6000918252602090912001546001600160a01b03161415611fd65780838380600101945081518110611fc957611fc9614746565b6020026020010181815250505b600101611f70565b509095945050505050565b6008546001600160a01b031633146120435760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610da6565b601080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff92909216919091179055565b6008546001600160a01b031633146120e05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610da6565b60138054911515610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff909216919091179055565b6002600954141561216a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610da6565b6002600955600854600160a01b900460ff16156121c95760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610da6565b6018546121e290839083906001600160a01b031661336e565b61222e5760405162461bcd60e51b815260206004820152601e60248201527f41646472657373206973206e6f74206f6e2050726573616c65204c69737400006044820152606401610da6565b601054336000908152601460205260409020547001000000000000000000000000000000009091046fffffffffffffffffffffffffffffffff16906122739085614612565b11156122e75760405162461bcd60e51b815260206004820152602160248201527f5175616e746974792065786365656473207065722d77616c6c6574206c696d6960448201527f74000000000000000000000000000000000000000000000000000000000000006064820152608401610da6565b6122f08361343b565b5050600160095550565b606061230582612acf565b6123775760405162461bcd60e51b815260206004820152602860248201527f224552433732314d657461646174613a20746f6b656e496420646f6573206e6f60448201527f74206578697374220000000000000000000000000000000000000000000000006064820152608401610da6565b60135462010000900460ff166124175760168054612394906146a0565b80601f01602080910402602001604051908101604052809291908181526020018280546123c0906146a0565b801561240d5780601f106123e25761010080835404028352916020019161240d565b820191906000526020600020905b8154815290600101906020018083116123f057829003601f168201915b5050505050610c95565b6016612422836135ea565b60405160200161243392919061446b565b60405160208183030381529060405292915050565b6040517fc45527910000000000000000000000000000000000000000000000000000000081526001600160a01b0383811660048301526000917f000000000000000000000000000000000000000000000000000000000000000091848116919083169063c45527919060240160206040518083038186803b1580156124cc57600080fd5b505afa1580156124e0573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061250491906142ad565b6001600160a01b0316141561251d576001915050610c95565b6001600160a01b0380851660009081526004602090815260408083209387168352929052205460ff165b949350505050565b6012546002546000911161258d5750600160005260156020527f27739e4bb5e6f8b5e4b57a047dca8767cc9b982a011081e086cbb0dfa9de818d5490565b506000805260156020527fa31547ce6245cdb9ecea19cf8c7eb9f5974025bb4075011409251ae855b30aed5490565b6002600954141561260f5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610da6565b6002600955600854600160a01b900460ff161561266e5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610da6565b601354610100900460ff16156126c65760405162461bcd60e51b815260206004820152600d60248201527f50726573616c65206f6e6c792e000000000000000000000000000000000000006044820152606401610da6565b6010546fffffffffffffffffffffffffffffffff168111156127505760405162461bcd60e51b815260206004820152602260248201527f5175616e746974792065786365656473205055424c49435f4d494e545f4c494d60448201527f49540000000000000000000000000000000000000000000000000000000000006064820152608401610da6565b60135460ff161561280157601054336000908152601460205260409020546fffffffffffffffffffffffffffffffff9091169061278d9083614612565b11156128015760405162461bcd60e51b815260206004820152602160248201527f5175616e746974792065786365656473207065722d77616c6c6574206c696d6960448201527f74000000000000000000000000000000000000000000000000000000000000006064820152608401610da6565b61280a8161343b565b506001600955565b6008546001600160a01b0316331461286c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610da6565b6001600160a01b0381166128e85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610da6565b61130a816131b7565b601980546128fe906146a0565b80601f016020809104026020016040519081016040528092919081815260200182805461292a906146a0565b80156129775780601f1061294c57610100808354040283529160200191612977565b820191906000526020600020905b81548152906001019060200180831161295a57829003601f168201915b505050505081565b6008546001600160a01b031633146129d95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610da6565b80516118c5906019906020840190613ebd565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480612a7f57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610c9557507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610c95565b60025460009082108015610c95575060006001600160a01b031660028381548110612afc57612afc614746565b6000918252602090912001546001600160a01b0316141592915050565b6000818152600360205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0384169081179091558190612b5b826118c9565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006001600160a01b038616612c125760405162461bcd60e51b815260206004820152602560248201527f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360448201527f49474e45520000000000000000000000000000000000000000000000000000006064820152608401610da6565b6001612c25612c208761371c565b613799565b6040805160008152602081018083529290925260ff851690820152606081018690526080810185905260a0016020604051602081039080840390855afa158015612c73573d6000803e3d6000fd5b505050602060405103516001600160a01b0316866001600160a01b031614905095945050505050565b6000612ca88284614612565b9392505050565b6000610c9582604051806020016040528060008152506137e4565b600854600160a01b900460ff16612d235760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610da6565b600880547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600854600160a01b900460ff1615612de55760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610da6565b600880547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612d6e3390565b80471015612e8b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610da6565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612ed8576040519150601f19603f3d011682016040523d82523d6000602084013e612edd565b606091505b5050905080610ef85760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610da6565b6000612f5f82612acf565b612fd15760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610da6565b6000612fdc836118c9565b9050806001600160a01b0316846001600160a01b031614806130175750836001600160a01b031661300c84610d2d565b6001600160a01b0316145b8061254757506125478185612448565b826001600160a01b031661303a826118c9565b6001600160a01b0316146130b65760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610da6565b6001600160a01b0382166131315760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610da6565b61313c600082612b19565b816002828154811061315057613150614746565b60009182526020822001805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b600880546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031614156132785760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610da6565b6001600160a01b03838116600081815260046020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6132f0848484613027565b6132fc84848484613870565b61129d5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610da6565b6000806134016040805130606090811b6bffffffffffffffffffffffff199081166020808501919091523390921b166034830152825160288184030181526048830184528051908201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000060688401526084808401919091528351808403909101815260a4909201909252805191012090565b9050848114613414576000915050612ca8565b6001600160a01b0383166134288686613a1d565b6001600160a01b03161495945050505050565b6012546002546000911161347a57600160005260156020527f27739e4bb5e6f8b5e4b57a047dca8767cc9b982a011081e086cbb0dfa9de818d546134a6565b6000805260156020527fa31547ce6245cdb9ecea19cf8c7eb9f5974025bb4075011409251ae855b30aed545b90506134b2828261463e565b3410156135015760405162461bcd60e51b815260206004820152601360248201527f4e6f7420656e6f756768206d696e6572616c73000000000000000000000000006044820152606401610da6565b600f546002546fffffffffffffffffffffffffffffffff909116906135269084614612565b111561359a5760405162461bcd60e51b815260206004820152602160248201527f5075726368617365206578636565647320617661696c61626c6520737570706c60448201527f79000000000000000000000000000000000000000000000000000000000000006064820152608401610da6565b60005b828110156135c1576135ae33612caf565b50806135b9816146d5565b91505061359d565b5033600090815260146020526040812080548492906135e1908490614612565b90915550505050565b60608161362a57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115613654578061363e816146d5565b915061364d9050600a8361462a565b915061362e565b60008167ffffffffffffffff81111561366f5761366f61475c565b6040519080825280601f01601f191660200182016040528015613699576020820181803683370190505b5090505b8415612547576136ae60018361465d565b91506136bb600a866146f0565b6136c6906030614612565b60f81b8183815181106136db576136db614746565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613715600a8661462a565b945061369d565b60006040518060800160405280604381526020016147b6604391398051602091820120835184830151604080870151805190860120905161377c950193845260208401929092526001600160a01b03166040830152606082015260800190565b604051602081830303815290604052805190602001209050919050565b60006137a460065490565b6040517f1901000000000000000000000000000000000000000000000000000000000000602082015260228101919091526042810183905260620161377c565b60006137ef83613a41565b90506137fe6000848385613870565b610c955760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610da6565b60006001600160a01b0384163b15613a12576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a02906138cd90339089908890889060040161453e565b602060405180830381600087803b1580156138e757600080fd5b505af1925050508015613917575060408051601f3d908101601f1916820190925261391491810190614290565b60015b6139c7573d808015613945576040519150601f19603f3d011682016040523d82523d6000602084013e61394a565b606091505b5080516139bf5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610da6565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050612547565b506001949350505050565b6000806000613a2c8585613b27565b91509150613a3981613b97565b509392505050565b60006001600160a01b038216613a995760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610da6565b506002546002805460018101825560009182527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace01805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4919050565b600080825160411415613b5e5760208301516040840151606085015160001a613b5287828585613d88565b94509450505050613b90565b825160401415613b885760208301516040840151613b7d868383613e75565b935093505050613b90565b506000905060025b9250929050565b6000816004811115613bab57613bab614730565b1415613bb45750565b6001816004811115613bc857613bc8614730565b1415613c165760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610da6565b6002816004811115613c2a57613c2a614730565b1415613c785760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610da6565b6003816004811115613c8c57613c8c614730565b1415613d005760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610da6565b6004816004811115613d1457613d14614730565b141561130a5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610da6565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115613dbf5750600090506003613e6c565b8460ff16601b14158015613dd757508460ff16601c14155b15613de85750600090506004613e6c565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613e3c573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116613e6557600060019250925050613e6c565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831660ff84901c601b01613eaf87828885613d88565b935093505050935093915050565b828054613ec9906146a0565b90600052602060002090601f016020900481019282613eeb5760008555613f31565b82601f10613f0457805160ff1916838001178555613f31565b82800160010185558215613f31579182015b82811115613f31578251825591602001919060010190613f16565b50613f3d929150613f41565b5090565b5b80821115613f3d5760008155600101613f42565b600067ffffffffffffffff80841115613f7157613f7161475c565b604051601f8501601f19908116603f01168101908282118183101715613f9957613f9961475c565b81604052809350858152868686011115613fb257600080fd5b858560208301376000602087830101525050509392505050565b80358015158114613fdc57600080fd5b919050565b600082601f830112613ff257600080fd5b612ca883833560208501613f56565b60006020828403121561401357600080fd5b8135612ca881614772565b6000806040838503121561403157600080fd5b823561403c81614772565b9150602083013561404c81614772565b809150509250929050565b60008060006060848603121561406c57600080fd5b833561407781614772565b9250602084013561408781614772565b929592945050506040919091013590565b600080600080608085870312156140ae57600080fd5b84356140b981614772565b935060208501356140c981614772565b925060408501359150606085013567ffffffffffffffff8111156140ec57600080fd5b6140f887828801613fe1565b91505092959194509250565b6000806040838503121561411757600080fd5b823561412281614772565b915061413060208401613fcc565b90509250929050565b600080600080600060a0868803121561415157600080fd5b853561415c81614772565b9450602086013567ffffffffffffffff81111561417857600080fd5b61418488828901613fe1565b9450506040860135925060608601359150608086013560ff811681146141a957600080fd5b809150509295509295909350565b600080604083850312156141ca57600080fd5b82356141d581614772565b946020939093013593505050565b600080602083850312156141f657600080fd5b823567ffffffffffffffff8082111561420e57600080fd5b818501915085601f83011261422257600080fd5b81358181111561423157600080fd5b8660208260051b850101111561424657600080fd5b60209290920196919550909350505050565b60006020828403121561426a57600080fd5b612ca882613fcc565b60006020828403121561428557600080fd5b8135612ca881614787565b6000602082840312156142a257600080fd5b8151612ca881614787565b6000602082840312156142bf57600080fd5b8151612ca881614772565b6000602082840312156142dc57600080fd5b813567ffffffffffffffff8111156142f357600080fd5b8201601f8101841361430457600080fd5b61254784823560208401613f56565b60006020828403121561432557600080fd5b81356fffffffffffffffffffffffffffffffff81168114612ca857600080fd5b60006020828403121561435757600080fd5b5035919050565b60008060006060848603121561437357600080fd5b8335925060208401359150604084013567ffffffffffffffff81111561439857600080fd5b6143a486828701613fe1565b9150509250925092565b600080604083850312156143c157600080fd5b50508035926020909101359150565b600081518084526143e8816020860160208601614674565b601f01601f19169290920160200192915050565b6000815161440e818560208601614674565b9290920192915050565b6000825161442a818460208701614674565b9190910192915050565b60008351614446818460208801614674565b60609390931b6bffffffffffffffffffffffff19169190920190815260140192915050565b600080845481600182811c91508083168061448757607f831692505b60208084108214156144a757634e487b7160e01b86526022600452602486fd5b8180156144bb57600181146144cc576144f9565b60ff198616895284890196506144f9565b60008b81526020902060005b868110156144f15781548b8201529085019083016144d8565b505084890196505b50505050505061450981856143fc565b95945050505050565b60006001600160a01b0380861683528085166020840152506060604083015261450960608301846143d0565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261457060808301846143d0565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156145bb5783516001600160a01b031683529284019291840191600101614596565b50909695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156145bb578351835292840192918401916001016145e3565b602081526000612ca860208301846143d0565b6000821982111561462557614625614704565b500190565b6000826146395761463961471a565b500490565b600081600019048311821515161561465857614658614704565b500290565b60008282101561466f5761466f614704565b500390565b60005b8381101561468f578181015183820152602001614677565b8381111561129d5750506000910152565b600181811c908216806146b457607f821691505b6020821081141561185257634e487b7160e01b600052602260045260246000fd5b60006000198214156146e9576146e9614704565b5060010190565b6000826146ff576146ff61471a565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461130a57600080fd5b7fffffffff000000000000000000000000000000000000000000000000000000008116811461130a57600080fdfe4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e617475726529a26469706673582212204e40eaba604f7e2120e36279a178a2bfaacef3a51a0410382927725ca30bed7f64736f6c63430008070033454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c6164647265737320766572696679696e67436f6e74726163742c627974657333322073616c7429000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000180000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1000000000000000000000000000000000000000000000000000000000000002868747470733a2f2f6d696e742e65746865726d696e61746f72732e636f6d2f6d657461646174612f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000eede69dd96d26cc74965ac8fc2672bf227b3a046000000000000000000000000eb1d8d26a2208503d23b923bf0e18bf51f65a3d600000000000000000000000019111a257b7a8471eefa4e7f795751c2dee9898c0000000000000000000000003fbb49f2d406af493568b73eda8cb60fdf1dd75f000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000007000000000000000000000000000000000000000000000000000000000000000f000000000000000000000000000000000000000000000000000000000000004c
Deployed Bytecode
0x6080604052600436106103b15760003560e01c80638342083a116101e7578063bba7723e1161010d578063e33b7de3116100a0578063f2fde38b1161006f578063f2fde38b14610bad578063f5ebec8014610bcd578063ff1b655614610c0a578063ffe630b514610c1f57600080fd5b8063e33b7de314610b50578063e985e9c514610b65578063eb91d37e14610b85578063efef39a114610b9a57600080fd5b8063c54e73e3116100dc578063c54e73e314610ac7578063c86768d814610ae7578063c87b56dd14610afa578063ce7c2ac214610b1a57600080fd5b8063bba7723e14610a24578063bc56602f14610a51578063bceae77b14610a7e578063bf34be4414610aa757600080fd5b8063963c1d7a11610185578063abd0359611610154578063abd03596146109b2578063af33b63e146109cc578063affe39c1146109e2578063b88d4fde14610a0457600080fd5b8063963c1d7a1461090f5780639852595c1461092f57806399feddbf14610965578063a22cb4651461099257600080fd5b80638da5cb5b116101c15780638da5cb5b146108a857806391ba317a146108c657806395364a84146108db57806395d89b41146108fa57600080fd5b80638342083a1461084a578063853828b6146108735780638b83209b1461088857600080fd5b80632f745c59116102d75780635c975abb1161026a5780636cf80690116102395780636cf80690146107d55780636e27fb74146107f557806370a0823114610815578063715018a61461083557600080fd5b80635c975abb146107605780635cff59e81461077f5780636352211e146107955780636c19e783146107b557600080fd5b806342842e0e116102a657806342842e0e146106e05780634f6ccce71461070057806354214f691461072057806355f804b31461074057600080fd5b80632f745c591461063a57806332cb6b0c1461065a5780633408e470146106b85780633a98ef39146106cb57600080fd5b8063163e1e611161034f57806320379ee51161031e57806320379ee5146105af57806323b872dd146105c45780632a3f300c146105e45780632d0335ab1461060457600080fd5b8063163e1e611461052c57806316c38b3c1461054c57806318160ddd1461056c578063191655871461058f57600080fd5b8063095ea7b31161038b578063095ea7b31461048e5780630c53c51c146104b05780630f7e5970146104c357806310e5ab811461050c57600080fd5b806301ffc9a7146103ff57806306fdde0314610434578063081812fc1461045657600080fd5b366103fa577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b34801561040b57600080fd5b5061041f61041a366004614273565b610c3f565b60405190151581526020015b60405180910390f35b34801561044057600080fd5b50610449610c9b565b60405161042b91906145ff565b34801561046257600080fd5b50610476610471366004614345565b610d2d565b6040516001600160a01b03909116815260200161042b565b34801561049a57600080fd5b506104ae6104a93660046141b7565b610dcb565b005b6104496104be366004614139565b610efd565b3480156104cf57600080fd5b506104496040518060400160405280600181526020017f310000000000000000000000000000000000000000000000000000000000000081525081565b34801561051857600080fd5b506104ae6105273660046143ae565b611103565b34801561053857600080fd5b506104ae6105473660046141e3565b61116f565b34801561055857600080fd5b506104ae610567366004614258565b6112a3565b34801561057857600080fd5b50610581611315565b60405190815260200161042b565b34801561059b57600080fd5b506104ae6105aa366004614001565b611371565b3480156105bb57600080fd5b50600654610581565b3480156105d057600080fd5b506104ae6105df366004614057565b61156b565b3480156105f057600080fd5b506104ae6105ff366004614258565b6115f2565b34801561061057600080fd5b5061058161061f366004614001565b6001600160a01b031660009081526007602052604090205490565b34801561064657600080fd5b506105816106553660046141b7565b611684565b34801561066657600080fd5b50600f546106979070010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff1681565b6040516fffffffffffffffffffffffffffffffff909116815260200161042b565b3480156106c457600080fd5b5046610581565b3480156106d757600080fd5b50600a54610581565b3480156106ec57600080fd5b506104ae6106fb366004614057565b611761565b34801561070c57600080fd5b5061058161071b366004614345565b61177c565b34801561072c57600080fd5b5060135461041f9062010000900460ff1681565b34801561074c57600080fd5b506104ae61075b3660046142ca565b611858565b34801561076c57600080fd5b50600854600160a01b900460ff1661041f565b34801561078b57600080fd5b5061058160125481565b3480156107a157600080fd5b506104766107b0366004614345565b6118c9565b3480156107c157600080fd5b506104ae6107d0366004614001565b611977565b3480156107e157600080fd5b506104ae6107f0366004614258565b611a00565b34801561080157600080fd5b506104ae610810366004614313565b611a6d565b34801561082157600080fd5b50610581610830366004614001565b611afc565b34801561084157600080fd5b506104ae611bd6565b34801561085657600080fd5b50600f54610697906fffffffffffffffffffffffffffffffff1681565b34801561087f57600080fd5b506104ae611c3c565b34801561089457600080fd5b506104766108a3366004614345565b611ce5565b3480156108b457600080fd5b506008546001600160a01b0316610476565b3480156108d257600080fd5b50610581611d15565b3480156108e757600080fd5b5060135461041f90610100900460ff1681565b34801561090657600080fd5b50610449611d39565b34801561091b57600080fd5b506104ae61092a366004614345565b611d48565b34801561093b57600080fd5b5061058161094a366004614001565b6001600160a01b03166000908152600d602052604090205490565b34801561097157600080fd5b50610581610980366004614345565b60156020526000908152604090205481565b34801561099e57600080fd5b506104ae6109ad366004614104565b611da7565b3480156109be57600080fd5b5060135461041f9060ff1681565b3480156109d857600080fd5b5061058160115481565b3480156109ee57600080fd5b506109f7611db2565b60405161042b919061457a565b348015610a1057600080fd5b506104ae610a1f366004614098565b611e18565b348015610a3057600080fd5b50610a44610a3f366004614001565b611ea0565b60405161042b91906145c7565b348015610a5d57600080fd5b50610581610a6c366004614001565b60146020526000908152604090205481565b348015610a8a57600080fd5b50601054610697906fffffffffffffffffffffffffffffffff1681565b348015610ab357600080fd5b506104ae610ac2366004614313565b611fe9565b348015610ad357600080fd5b506104ae610ae2366004614258565b612086565b6104ae610af536600461435e565b612117565b348015610b0657600080fd5b50610449610b15366004614345565b6122fa565b348015610b2657600080fd5b50610581610b35366004614001565b6001600160a01b03166000908152600c602052604090205490565b348015610b5c57600080fd5b50600b54610581565b348015610b7157600080fd5b5061041f610b8036600461401e565b612448565b348015610b9157600080fd5b5061058161254f565b6104ae610ba8366004614345565b6125bc565b348015610bb957600080fd5b506104ae610bc8366004614001565b612812565b348015610bd957600080fd5b506010546106979070010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff1681565b348015610c1657600080fd5b506104496128f1565b348015610c2b57600080fd5b506104ae610c3a3660046142ca565b61297f565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d63000000000000000000000000000000000000000000000000000000001480610c955750610c95826129ec565b92915050565b606060008054610caa906146a0565b80601f0160208091040260200160405190810160405280929190818152602001828054610cd6906146a0565b8015610d235780601f10610cf857610100808354040283529160200191610d23565b820191906000526020600020905b815481529060010190602001808311610d0657829003601f168201915b5050505050905090565b6000610d3882612acf565b610daf5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152600360205260409020546001600160a01b031690565b6000610dd6826118c9565b9050806001600160a01b0316836001600160a01b03161415610e605760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610da6565b336001600160a01b0382161480610e7c5750610e7c8133612448565b610eee5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610da6565b610ef88383612b19565b505050565b60408051606081810183526001600160a01b03881660008181526007602090815290859020548452830152918101869052610f3b8782878787612b94565b610fad5760405162461bcd60e51b815260206004820152602160248201527f5369676e657220616e64207369676e617475726520646f206e6f74206d61746360448201527f68000000000000000000000000000000000000000000000000000000000000006064820152608401610da6565b6001600160a01b038716600090815260076020526040902054610fd1906001612c9c565b6001600160a01b0388166000908152600760205260409081902091909155517f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b9061102190899033908a90614512565b60405180910390a1600080306001600160a01b0316888a604051602001611049929190614434565b60408051601f198184030181529082905261106391614418565b6000604051808303816000865af19150503d80600081146110a0576040519150601f19603f3d011682016040523d82523d6000602084013e6110a5565b606091505b5091509150816110f75760405162461bcd60e51b815260206004820152601c60248201527f46756e6374696f6e2063616c6c206e6f74207375636365737366756c000000006044820152606401610da6565b98975050505050505050565b6008546001600160a01b0316331461115d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610da6565b60009182526015602052604090912055565b6008546001600160a01b031633146111c95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610da6565b600f54600254829170010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff16906112029083614612565b11156112505760405162461bcd60e51b815260206004820152601860248201527f5f7175616e74697479206578636565647320737570706c7900000000000000006044820152606401610da6565b60005b8181101561129d5761128a84848381811061127057611270614746565b90506020020160208101906112859190614001565b612caf565b5080611295816146d5565b915050611253565b50505050565b6008546001600160a01b031633146112fd5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610da6565b8061130d5761130a612cca565b50565b61130a612d8b565b600254600090815b8181101561136c5760006001600160a01b03166002828154811061134357611343614746565b6000918252602090912001546001600160a01b031614611364578260010192505b60010161131d565b505090565b6001600160a01b0381166000908152600c60205260409020546113fc5760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201527f73686172657300000000000000000000000000000000000000000000000000006064820152608401610da6565b6000600b544761140c9190614612565b6001600160a01b0383166000908152600d6020908152604080832054600a54600c909352908320549394509192611443908561463e565b61144d919061462a565b611457919061465d565b9050806114cc5760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201527f647565207061796d656e740000000000000000000000000000000000000000006064820152608401610da6565b6001600160a01b0383166000908152600d60205260409020546114f0908290614612565b6001600160a01b0384166000908152600d6020526040902055600b54611517908290614612565b600b556115248382612e3b565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b6115753382612f54565b6115e75760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610da6565b610ef8838383613027565b6008546001600160a01b0316331461164c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610da6565b6013805491151562010000027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffff909216919091179055565b6002546000905b808210156116e557836001600160a01b0316600283815481106116b0576116b0614746565b6000918252602090912001546001600160a01b031614156116da576000198301926116da576116e5565b81600101915061168b565b80821061175a5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610da6565b5092915050565b610ef883838360405180602001604052806000815250611e18565b6002546000905b808210156117dd5760006001600160a01b0316600283815481106117a9576117a9614746565b6000918252602090912001546001600160a01b0316146117d2576000198301926117d2576117dd565b816001019150611783565b8082106118525760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610da6565b50919050565b6008546001600160a01b031633146118b25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610da6565b80516118c5906016906020840190613ebd565b5050565b60006118d482612acf565b6119465760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610da6565b60006002838154811061195b5761195b614746565b6000918252602090912001546001600160a01b03169392505050565b6008546001600160a01b031633146119d15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610da6565b6018805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6008546001600160a01b03163314611a5a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610da6565b6013805460ff1916911515919091179055565b6008546001600160a01b03163314611ac75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610da6565b601080546fffffffffffffffffffffffffffffffff928316700100000000000000000000000000000000029216919091179055565b60006001600160a01b038216611b7a5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610da6565b60025460005b81811015611bcf57836001600160a01b031660028281548110611ba557611ba5614746565b6000918252602090912001546001600160a01b03161415611bc7578260010192505b600101611b80565b5050919050565b6008546001600160a01b03163314611c305760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610da6565b611c3a60006131b7565b565b6008546001600160a01b03163314611c965760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610da6565b60005b60175481101561130a57611cd360178281548110611cb957611cb9614746565b6000918252602090912001546001600160a01b0316611371565b80611cdd816146d5565b915050611c99565b6000600e8281548110611cfa57611cfa614746565b6000918252602090912001546001600160a01b031692915050565b600254600090611d255750600090565b600254611d349060019061465d565b905090565b606060018054610caa906146a0565b6008546001600160a01b03163314611da25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610da6565b601255565b6118c5338383613216565b606060006002805480602002602001604051908101604052809291908181526020018280548015611e0c57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611dee575b50939695505050505050565b611e223383612f54565b611e945760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610da6565b61129d848484846132e5565b60606000611ead83611afc565b905080611f225760405162461bcd60e51b815260206004820152602660248201527f455243373231456e756d657261626c653a206f776e6572206f776e73206e6f2060448201527f746f6b656e7300000000000000000000000000000000000000000000000000006064820152608401610da6565b60025460008267ffffffffffffffff811115611f4057611f4061475c565b604051908082528060200260200182016040528015611f69578160200160208202803683370190505b5090506000805b83811015611fde57866001600160a01b031660028281548110611f9557611f95614746565b6000918252602090912001546001600160a01b03161415611fd65780838380600101945081518110611fc957611fc9614746565b6020026020010181815250505b600101611f70565b509095945050505050565b6008546001600160a01b031633146120435760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610da6565b601080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff92909216919091179055565b6008546001600160a01b031633146120e05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610da6565b60138054911515610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff909216919091179055565b6002600954141561216a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610da6565b6002600955600854600160a01b900460ff16156121c95760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610da6565b6018546121e290839083906001600160a01b031661336e565b61222e5760405162461bcd60e51b815260206004820152601e60248201527f41646472657373206973206e6f74206f6e2050726573616c65204c69737400006044820152606401610da6565b601054336000908152601460205260409020547001000000000000000000000000000000009091046fffffffffffffffffffffffffffffffff16906122739085614612565b11156122e75760405162461bcd60e51b815260206004820152602160248201527f5175616e746974792065786365656473207065722d77616c6c6574206c696d6960448201527f74000000000000000000000000000000000000000000000000000000000000006064820152608401610da6565b6122f08361343b565b5050600160095550565b606061230582612acf565b6123775760405162461bcd60e51b815260206004820152602860248201527f224552433732314d657461646174613a20746f6b656e496420646f6573206e6f60448201527f74206578697374220000000000000000000000000000000000000000000000006064820152608401610da6565b60135462010000900460ff166124175760168054612394906146a0565b80601f01602080910402602001604051908101604052809291908181526020018280546123c0906146a0565b801561240d5780601f106123e25761010080835404028352916020019161240d565b820191906000526020600020905b8154815290600101906020018083116123f057829003601f168201915b5050505050610c95565b6016612422836135ea565b60405160200161243392919061446b565b60405160208183030381529060405292915050565b6040517fc45527910000000000000000000000000000000000000000000000000000000081526001600160a01b0383811660048301526000917f000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c191848116919083169063c45527919060240160206040518083038186803b1580156124cc57600080fd5b505afa1580156124e0573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061250491906142ad565b6001600160a01b0316141561251d576001915050610c95565b6001600160a01b0380851660009081526004602090815260408083209387168352929052205460ff165b949350505050565b6012546002546000911161258d5750600160005260156020527f27739e4bb5e6f8b5e4b57a047dca8767cc9b982a011081e086cbb0dfa9de818d5490565b506000805260156020527fa31547ce6245cdb9ecea19cf8c7eb9f5974025bb4075011409251ae855b30aed5490565b6002600954141561260f5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610da6565b6002600955600854600160a01b900460ff161561266e5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610da6565b601354610100900460ff16156126c65760405162461bcd60e51b815260206004820152600d60248201527f50726573616c65206f6e6c792e000000000000000000000000000000000000006044820152606401610da6565b6010546fffffffffffffffffffffffffffffffff168111156127505760405162461bcd60e51b815260206004820152602260248201527f5175616e746974792065786365656473205055424c49435f4d494e545f4c494d60448201527f49540000000000000000000000000000000000000000000000000000000000006064820152608401610da6565b60135460ff161561280157601054336000908152601460205260409020546fffffffffffffffffffffffffffffffff9091169061278d9083614612565b11156128015760405162461bcd60e51b815260206004820152602160248201527f5175616e746974792065786365656473207065722d77616c6c6574206c696d6960448201527f74000000000000000000000000000000000000000000000000000000000000006064820152608401610da6565b61280a8161343b565b506001600955565b6008546001600160a01b0316331461286c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610da6565b6001600160a01b0381166128e85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610da6565b61130a816131b7565b601980546128fe906146a0565b80601f016020809104026020016040519081016040528092919081815260200182805461292a906146a0565b80156129775780601f1061294c57610100808354040283529160200191612977565b820191906000526020600020905b81548152906001019060200180831161295a57829003601f168201915b505050505081565b6008546001600160a01b031633146129d95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610da6565b80516118c5906019906020840190613ebd565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480612a7f57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610c9557507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610c95565b60025460009082108015610c95575060006001600160a01b031660028381548110612afc57612afc614746565b6000918252602090912001546001600160a01b0316141592915050565b6000818152600360205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0384169081179091558190612b5b826118c9565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006001600160a01b038616612c125760405162461bcd60e51b815260206004820152602560248201527f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360448201527f49474e45520000000000000000000000000000000000000000000000000000006064820152608401610da6565b6001612c25612c208761371c565b613799565b6040805160008152602081018083529290925260ff851690820152606081018690526080810185905260a0016020604051602081039080840390855afa158015612c73573d6000803e3d6000fd5b505050602060405103516001600160a01b0316866001600160a01b031614905095945050505050565b6000612ca88284614612565b9392505050565b6000610c9582604051806020016040528060008152506137e4565b600854600160a01b900460ff16612d235760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610da6565b600880547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600854600160a01b900460ff1615612de55760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610da6565b600880547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612d6e3390565b80471015612e8b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610da6565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612ed8576040519150601f19603f3d011682016040523d82523d6000602084013e612edd565b606091505b5050905080610ef85760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610da6565b6000612f5f82612acf565b612fd15760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610da6565b6000612fdc836118c9565b9050806001600160a01b0316846001600160a01b031614806130175750836001600160a01b031661300c84610d2d565b6001600160a01b0316145b8061254757506125478185612448565b826001600160a01b031661303a826118c9565b6001600160a01b0316146130b65760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610da6565b6001600160a01b0382166131315760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610da6565b61313c600082612b19565b816002828154811061315057613150614746565b60009182526020822001805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b600880546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031614156132785760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610da6565b6001600160a01b03838116600081815260046020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6132f0848484613027565b6132fc84848484613870565b61129d5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610da6565b6000806134016040805130606090811b6bffffffffffffffffffffffff199081166020808501919091523390921b166034830152825160288184030181526048830184528051908201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000060688401526084808401919091528351808403909101815260a4909201909252805191012090565b9050848114613414576000915050612ca8565b6001600160a01b0383166134288686613a1d565b6001600160a01b03161495945050505050565b6012546002546000911161347a57600160005260156020527f27739e4bb5e6f8b5e4b57a047dca8767cc9b982a011081e086cbb0dfa9de818d546134a6565b6000805260156020527fa31547ce6245cdb9ecea19cf8c7eb9f5974025bb4075011409251ae855b30aed545b90506134b2828261463e565b3410156135015760405162461bcd60e51b815260206004820152601360248201527f4e6f7420656e6f756768206d696e6572616c73000000000000000000000000006044820152606401610da6565b600f546002546fffffffffffffffffffffffffffffffff909116906135269084614612565b111561359a5760405162461bcd60e51b815260206004820152602160248201527f5075726368617365206578636565647320617661696c61626c6520737570706c60448201527f79000000000000000000000000000000000000000000000000000000000000006064820152608401610da6565b60005b828110156135c1576135ae33612caf565b50806135b9816146d5565b91505061359d565b5033600090815260146020526040812080548492906135e1908490614612565b90915550505050565b60608161362a57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115613654578061363e816146d5565b915061364d9050600a8361462a565b915061362e565b60008167ffffffffffffffff81111561366f5761366f61475c565b6040519080825280601f01601f191660200182016040528015613699576020820181803683370190505b5090505b8415612547576136ae60018361465d565b91506136bb600a866146f0565b6136c6906030614612565b60f81b8183815181106136db576136db614746565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613715600a8661462a565b945061369d565b60006040518060800160405280604381526020016147b6604391398051602091820120835184830151604080870151805190860120905161377c950193845260208401929092526001600160a01b03166040830152606082015260800190565b604051602081830303815290604052805190602001209050919050565b60006137a460065490565b6040517f1901000000000000000000000000000000000000000000000000000000000000602082015260228101919091526042810183905260620161377c565b60006137ef83613a41565b90506137fe6000848385613870565b610c955760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610da6565b60006001600160a01b0384163b15613a12576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a02906138cd90339089908890889060040161453e565b602060405180830381600087803b1580156138e757600080fd5b505af1925050508015613917575060408051601f3d908101601f1916820190925261391491810190614290565b60015b6139c7573d808015613945576040519150601f19603f3d011682016040523d82523d6000602084013e61394a565b606091505b5080516139bf5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610da6565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050612547565b506001949350505050565b6000806000613a2c8585613b27565b91509150613a3981613b97565b509392505050565b60006001600160a01b038216613a995760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610da6565b506002546002805460018101825560009182527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace01805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4919050565b600080825160411415613b5e5760208301516040840151606085015160001a613b5287828585613d88565b94509450505050613b90565b825160401415613b885760208301516040840151613b7d868383613e75565b935093505050613b90565b506000905060025b9250929050565b6000816004811115613bab57613bab614730565b1415613bb45750565b6001816004811115613bc857613bc8614730565b1415613c165760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610da6565b6002816004811115613c2a57613c2a614730565b1415613c785760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610da6565b6003816004811115613c8c57613c8c614730565b1415613d005760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610da6565b6004816004811115613d1457613d14614730565b141561130a5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610da6565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115613dbf5750600090506003613e6c565b8460ff16601b14158015613dd757508460ff16601c14155b15613de85750600090506004613e6c565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613e3c573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116613e6557600060019250925050613e6c565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831660ff84901c601b01613eaf87828885613d88565b935093505050935093915050565b828054613ec9906146a0565b90600052602060002090601f016020900481019282613eeb5760008555613f31565b82601f10613f0457805160ff1916838001178555613f31565b82800160010185558215613f31579182015b82811115613f31578251825591602001919060010190613f16565b50613f3d929150613f41565b5090565b5b80821115613f3d5760008155600101613f42565b600067ffffffffffffffff80841115613f7157613f7161475c565b604051601f8501601f19908116603f01168101908282118183101715613f9957613f9961475c565b81604052809350858152868686011115613fb257600080fd5b858560208301376000602087830101525050509392505050565b80358015158114613fdc57600080fd5b919050565b600082601f830112613ff257600080fd5b612ca883833560208501613f56565b60006020828403121561401357600080fd5b8135612ca881614772565b6000806040838503121561403157600080fd5b823561403c81614772565b9150602083013561404c81614772565b809150509250929050565b60008060006060848603121561406c57600080fd5b833561407781614772565b9250602084013561408781614772565b929592945050506040919091013590565b600080600080608085870312156140ae57600080fd5b84356140b981614772565b935060208501356140c981614772565b925060408501359150606085013567ffffffffffffffff8111156140ec57600080fd5b6140f887828801613fe1565b91505092959194509250565b6000806040838503121561411757600080fd5b823561412281614772565b915061413060208401613fcc565b90509250929050565b600080600080600060a0868803121561415157600080fd5b853561415c81614772565b9450602086013567ffffffffffffffff81111561417857600080fd5b61418488828901613fe1565b9450506040860135925060608601359150608086013560ff811681146141a957600080fd5b809150509295509295909350565b600080604083850312156141ca57600080fd5b82356141d581614772565b946020939093013593505050565b600080602083850312156141f657600080fd5b823567ffffffffffffffff8082111561420e57600080fd5b818501915085601f83011261422257600080fd5b81358181111561423157600080fd5b8660208260051b850101111561424657600080fd5b60209290920196919550909350505050565b60006020828403121561426a57600080fd5b612ca882613fcc565b60006020828403121561428557600080fd5b8135612ca881614787565b6000602082840312156142a257600080fd5b8151612ca881614787565b6000602082840312156142bf57600080fd5b8151612ca881614772565b6000602082840312156142dc57600080fd5b813567ffffffffffffffff8111156142f357600080fd5b8201601f8101841361430457600080fd5b61254784823560208401613f56565b60006020828403121561432557600080fd5b81356fffffffffffffffffffffffffffffffff81168114612ca857600080fd5b60006020828403121561435757600080fd5b5035919050565b60008060006060848603121561437357600080fd5b8335925060208401359150604084013567ffffffffffffffff81111561439857600080fd5b6143a486828701613fe1565b9150509250925092565b600080604083850312156143c157600080fd5b50508035926020909101359150565b600081518084526143e8816020860160208601614674565b601f01601f19169290920160200192915050565b6000815161440e818560208601614674565b9290920192915050565b6000825161442a818460208701614674565b9190910192915050565b60008351614446818460208801614674565b60609390931b6bffffffffffffffffffffffff19169190920190815260140192915050565b600080845481600182811c91508083168061448757607f831692505b60208084108214156144a757634e487b7160e01b86526022600452602486fd5b8180156144bb57600181146144cc576144f9565b60ff198616895284890196506144f9565b60008b81526020902060005b868110156144f15781548b8201529085019083016144d8565b505084890196505b50505050505061450981856143fc565b95945050505050565b60006001600160a01b0380861683528085166020840152506060604083015261450960608301846143d0565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261457060808301846143d0565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156145bb5783516001600160a01b031683529284019291840191600101614596565b50909695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156145bb578351835292840192918401916001016145e3565b602081526000612ca860208301846143d0565b6000821982111561462557614625614704565b500190565b6000826146395761463961471a565b500490565b600081600019048311821515161561465857614658614704565b500290565b60008282101561466f5761466f614704565b500390565b60005b8381101561468f578181015183820152602001614677565b8381111561129d5750506000910152565b600181811c908216806146b457607f821691505b6020821081141561185257634e487b7160e01b600052602260045260246000fd5b60006000198214156146e9576146e9614704565b5060010190565b6000826146ff576146ff61471a565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461130a57600080fd5b7fffffffff000000000000000000000000000000000000000000000000000000008116811461130a57600080fdfe4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e617475726529a26469706673582212204e40eaba604f7e2120e36279a178a2bfaacef3a51a0410382927725ca30bed7f64736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000180000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1000000000000000000000000000000000000000000000000000000000000002868747470733a2f2f6d696e742e65746865726d696e61746f72732e636f6d2f6d657461646174612f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000eede69dd96d26cc74965ac8fc2672bf227b3a046000000000000000000000000eb1d8d26a2208503d23b923bf0e18bf51f65a3d600000000000000000000000019111a257b7a8471eefa4e7f795751c2dee9898c0000000000000000000000003fbb49f2d406af493568b73eda8cb60fdf1dd75f000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000007000000000000000000000000000000000000000000000000000000000000000f000000000000000000000000000000000000000000000000000000000000004c
-----Decoded View---------------
Arg [0] : _initialURI (string): https://mint.etherminators.com/metadata/
Arg [1] : _payees (address[]): 0xEEDe69Dd96D26CC74965Ac8Fc2672Bf227B3a046,0xEB1d8D26A2208503d23b923bF0E18Bf51f65A3d6,0x19111a257b7a8471eefa4E7f795751c2DEe9898c,0x3FBB49F2D406Af493568b73Eda8cB60Fdf1dD75f
Arg [2] : _shares (uint256[]): 2,7,15,76
Arg [3] : proxyRegistryAddress (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1
-----Encoded View---------------
17 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [3] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000028
Arg [5] : 68747470733a2f2f6d696e742e65746865726d696e61746f72732e636f6d2f6d
Arg [6] : 657461646174612f000000000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [8] : 000000000000000000000000eede69dd96d26cc74965ac8fc2672bf227b3a046
Arg [9] : 000000000000000000000000eb1d8d26a2208503d23b923bf0e18bf51f65a3d6
Arg [10] : 00000000000000000000000019111a257b7a8471eefa4e7f795751c2dee9898c
Arg [11] : 0000000000000000000000003fbb49f2d406af493568b73eda8cb60fdf1dd75f
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [14] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [15] : 000000000000000000000000000000000000000000000000000000000000000f
Arg [16] : 000000000000000000000000000000000000000000000000000000000000004c
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.