Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
289 CAN
Holders
171
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2 CANLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
nftealandvending
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT /* .___...__....______..._________..______...________.......__.......________...___...__....______...... /__/\./__/\./_____/\./________/\/_____/\./_______/\...../_/\...../_______/\./__/\./__/\./_____/\..... \ \_\\ \.\\ _\/_\__ __\/\ _\/_\ _ \.\....\ \.\....\ _ \.\\ \_\\ \.\\ _ \.\.... .\ `-\ \.\\ \/___/\..\ \.\...\ \/___/\\ (_) \.\....\ \.\....\ (_) \.\\ `-\ \.\\ \.\ \.\... ..\ _ \.\\ _\/...\ \.\...\ ___\/_\ __ \.\....\ \.\____\ __ \.\\ _ \.\\ \.\ \.\.. ...\ \`-\ \.\\ \.\......\ \.\...\ \____/\\ \.\ \.\....\ \/___/\\ \.\ \.\\ \`-\ \.\\ \/ |.|. ....\__\/.\__\/.\_\/.......\__\/....\_____\/.\__\/\__\/.....\_____\/.\__\/\__\/.\__\/.\__\/.\____/_/. ..................................................................................................... */ pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import "./Constants.sol"; contract nftealandvending is ERC721Enumerable, ERC721Burnable, ReentrancyGuard, AccessControl { using Strings for uint; bytes32 merkleRoot; bool public saleActive; uint public pricePerToken = 0.00025 ether; uint public maxPublicMint = 1; uint public maxAllowListMint = 1; bool public allowListActive; string private _baseURIExtended; uint public seriesCount; uint constant ONE_MILLION = 1_000_000; string private _mysteryTokenURI; address public topsContract; mapping(uint => uint) public seriesSupply; mapping(uint => uint) public seriesMaxSupply; mapping(uint => bool) public seriesRevealed; mapping(uint => string) public seriesProvenance; mapping(uint => mapping(address => uint)) private _seriesAllowListNumMinted; mapping(uint => Constants.Tier) public canTier; constructor() ERC721("Cans", "CAN") { _setupRole(DEFAULT_ADMIN_ROLE, msg.sender); _setupRole(Constants.SUPPORT_ROLE, msg.sender); } function currentSeries() public view returns (uint) { return seriesCount - 1; } function getTokenId(uint series, uint idInSeries) public pure returns (uint) { return (series * ONE_MILLION) + idInSeries; } function getSeries(uint tokenId) public view returns (uint) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); return tokenId / ONE_MILLION; } function getCanTierBatch(uint[] memory ids) public view returns (Constants.Tier[] memory) { Constants.Tier[] memory canTiers = new Constants.Tier[](ids.length); for (uint i; i < ids.length; i++) { canTiers[i] = canTier[ids[i]]; } return canTiers; } function setMaxSupply(uint seriesMaxSupply_) public onlyRole(Constants.SUPPORT_ROLE) { require(seriesMaxSupply_ < ONE_MILLION, "Cannot exceed 1,000,000"); seriesMaxSupply[currentSeries()] = seriesMaxSupply_; } function createSeries(uint seriesMaxSupply_) external onlyRole(Constants.SUPPORT_ROLE) { require(seriesMaxSupply_ < ONE_MILLION, "Cannot exceed 1,000,000"); seriesMaxSupply[seriesCount] = seriesMaxSupply_; seriesCount++; } function setCanTier(uint[] calldata ids, Constants.Tier _tier) external onlyRole(Constants.SUPPORT_ROLE) { for (uint i; i < ids.length; i++) { canTier[ids[i]] = _tier; } } function setSeriesCount(uint seriesCount_) external onlyRole(Constants.SUPPORT_ROLE) { seriesCount = seriesCount_; } function setPricePerToken(uint pricePerToken_) external onlyRole(Constants.SUPPORT_ROLE) { pricePerToken = pricePerToken_; } function setMaxPublicMint(uint maxPublicMint_) external onlyRole(Constants.SUPPORT_ROLE) { maxPublicMint = maxPublicMint_; } function setMaxAllowListMint(uint maxAllowListMint_) external onlyRole(Constants.SUPPORT_ROLE) { maxAllowListMint = maxAllowListMint_; } function setAllowListActive(bool allowListActive_) external onlyRole(Constants.SUPPORT_ROLE) { allowListActive = allowListActive_; } function setAllowList(bytes32 merkleRoot_) external onlyRole(Constants.SUPPORT_ROLE) { merkleRoot = merkleRoot_; } function onAllowList(address claimer, bytes32[] memory proof) public view returns(bool){ bytes32 leaf = keccak256(abi.encodePacked(claimer)); return MerkleProof.verify(proof, merkleRoot, leaf); } function numAvailableToMint(address claimer, bytes32[] memory proof) external view returns (uint) { if (onAllowList(claimer, proof)) { return maxAllowListMint - _seriesAllowListNumMinted[currentSeries()][claimer]; } else { return 0; } } function _internalMint(uint numberOfTokens) internal { uint series = currentSeries(); uint startingSupply = seriesSupply[series]; require(startingSupply + numberOfTokens <= seriesMaxSupply[series], "Purchase would exceed max supply of tokens"); for (uint i; i < numberOfTokens; i++) { _safeMint(msg.sender, getTokenId(currentSeries(), startingSupply + i)); } seriesSupply[series] += numberOfTokens; } function allowListMint(uint numberOfTokens, bytes32[] memory merkleProof) external payable nonReentrant { uint series = currentSeries(); require(allowListActive, "Allow list is not active"); require(onAllowList(msg.sender, merkleProof), "Not on allow list"); require(numberOfTokens <= maxAllowListMint - _seriesAllowListNumMinted[series][msg.sender], "Exceeded max available to purchase"); require(pricePerToken * numberOfTokens <= msg.value, "Ether value sent is not correct"); _seriesAllowListNumMinted[series][msg.sender] += numberOfTokens; _internalMint(numberOfTokens); } function setBaseURI(string memory baseURI_) external onlyRole(Constants.SUPPORT_ROLE) { _baseURIExtended = baseURI_; } function setMysteryTokenURI(string memory mysteryTokenURI_) external onlyRole(Constants.SUPPORT_ROLE) { _mysteryTokenURI = mysteryTokenURI_; } function setRevealed(bool revealed_) external onlyRole(Constants.SUPPORT_ROLE) { seriesRevealed[currentSeries()] = revealed_; } function tokenURI(uint tokenId) public view override returns (string memory) { uint series = getSeries(tokenId); if (seriesRevealed[series]) { return bytes(_baseURIExtended).length > 0 ? string(abi.encodePacked(_baseURIExtended, getTokenId(series, uint(canTier[tokenId])).toString())) : ""; } else { return _mysteryTokenURI; } } function setProvenance(string memory provenance) external onlyRole(Constants.SUPPORT_ROLE) { seriesProvenance[currentSeries()] = provenance; } function devMint(uint n) external onlyRole(Constants.SUPPORT_ROLE) { _internalMint(n); } function setSaleActive(bool saleActive_) external onlyRole(Constants.SUPPORT_ROLE) { saleActive = saleActive_; } function setTopsContract(address topsContract_) external onlyRole(Constants.SUPPORT_ROLE) { topsContract = topsContract_; } function isApprovedForAll(address owner, address operator) public view override returns (bool) { if (topsContract != address(0) && operator == topsContract) { return true; } return super.isApprovedForAll(owner, operator); } function mint(uint numberOfTokens) external payable nonReentrant { require(saleActive, "Sale must be active to mint tokens"); require(numberOfTokens <= maxPublicMint, "Exceeded max token purchase"); require(pricePerToken * numberOfTokens == msg.value, "Ether value sent is not correct"); _internalMint(numberOfTokens); } function withdraw() external onlyRole(DEFAULT_ADMIN_ROLE) { uint balance = address(this).balance; payable(msg.sender).transfer(balance); } function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal override(ERC721, ERC721Enumerable) { super._beforeTokenTransfer(from, to, tokenId); } function supportsInterface(bytes4 interfaceId) public view virtual override(AccessControl, ERC721, ERC721Enumerable) returns (bool) { return super.supportsInterface(interfaceId); } } /* .-----------. . ``````````````.`` - . ``:- ` ``````.../gm/```````````` ` -- -. ````--/:+/+/::/:-.```````````````````` .` `` ```./++:.-.````````````````````````` ```` `-w:` ` `` `.:/+/:` ` `.` ``-``````````` ./e/` .:` ``:/p::` :/ `` ` +. ``````````` -l/` ` ``-a+. ```````````````` ``````````````` -c/` .:` ``-s-. ```.`:::::::::..``````````````````` :o/` ` ``..s. .:/:-`.......`-//:.`````````````````` :m` ``` ``+w. -/.` ``-```````````````````` .e/ ` ``:o- -gm` :.` ` ``.````````````````` — .` ``/r` :GM+:` `n` .+++++/. ``` //```````-``````````` `-e . ``:d` gM:gm `f --//-----.`:: ``` //````` -````````````` /x `` ``::` :Gm`-` `t :/````` `````//```` -``````````````` p: :. `:i. `gM`+: `e //```` `````//`` ` -```````````````` `l` `` ``s. —-`/: `a `+--``::- ` ```//`` -`````````````````` o+ . ``+/ gM`/: `l .++:::::::``` ```//`` -````````````````` `r ` `-t gm`i. `a .+.......`` ` ```//`` -`````````````````` /e ```o/ -g-.m `n //````` `````//`` -`````````````````` r ` ``p` g:`m+ `d //``` `````//``` -````````````````` /+ ```.p :g`/m `- //```````` `````//``` -`````````````````` `t ```y/ `G:.m` `g //``+::::- `````//```` -`````````````````` `o ```w: g-`:m `m //``s ```- ` ```` //```` -`````````````````` `- ```i: ++`.-` `i .o``+:/ ` ` `+:````` -```````````````` `N ```:n -g`-m: `/- ```.+- `.:+``````` -``````````````` `F ` ``s .g-`m+ ```-/` .-.```` .::-````````` -`````````````` :T ```s: g-`m+ `.-::::-.`:-. ` `-:/-``````````` -```````````` E ` `-s -g`-m -::-///--/`--:/:.` .``::-.` `--- ```` -```````````` -A ` ``-- --`// /:..`/gm/:-`.```..+`./````` .::w/o-z `` -``````````` L. ` `-:` g``m``g`m.`````-://--``````````` .:-.`````/: ``` -``````````` +A /```/:. g``m `g.m-.```````.+gm:::::::::/-`````````:: ``` -`````````` N. -:```/: s`tr ee.t/```````````.........```````````` ````` -````````` +D `` `.:+` g.`m:``+-`-:-..`````````````````````````` ````` -```````` .. ` ``+:` .g`.m```.``.-:::`````````````````````` ``````` -```````` -s. - ``/:/ `-` ``````````` ````````````````` ```````` -`````` /h` ::```.::.`````- ``````````````` ```````````````` -`````` `a+ `:` ``-gm.````- ``````````````````````````````````` -`````` -k. .` `.::+.`````- `````````````````````````` -``````` -e+. -- ``.:-````````- `````````````` -```````` ..w. ` :``````````````:`:`::: :::-::`````` `` .+e-` `:.-.` `` `````````````::::::::`:`:``````````` ` `-+l- .gm/.` ````````````````````````````````` `` `./l:-` `-gm:-` ``` ```````````````````` .-/…` .-:gm::..``` ````````` ``` ```..:/+/:-` ``--wgmi....```````````...-wgmi--` ----/----------::---` */
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {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. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) 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) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @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` cannot be the zero address. * - `to` cannot be the zero address. * * 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 override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC721.sol"; import "../../../utils/Context.sol"; /** * @title ERC721 Burnable Token * @dev ERC721 Token that can be irreversibly burned (destroyed). */ abstract contract ERC721Burnable is Context, ERC721 { /** * @dev Burns `tokenId`. See {ERC721-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) public virtual { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved"); _burn(tokenId); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = keccak256(abi.encodePacked(computedHash, proofElement)); } else { // Hash(current element of the proof + current computed hash) computedHash = keccak256(abi.encodePacked(proofElement, computedHash)); } } // Check if the computed hash (root) is equal to the provided root return computedHash == root; } }
// 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"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { function hasRole(bytes32 role, address account) external view returns (bool); function getRoleAdmin(bytes32 role) external view returns (bytes32); function grantRole(bytes32 role, address account) external; function revokeRole(bytes32 role, address account) external; function renounceRole(bytes32 role, address account) external; } /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{20}) is missing role (0x[0-9a-f]{32})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role, _msgSender()); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{20}) is missing role (0x[0-9a-f]{32})$/ */ function _checkRole(bytes32 role, address account) internal view { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { emit RoleAdminChanged(role, getRoleAdmin(role), adminRole); _roles[role].adminRole = adminRole; } function _grantRole(bytes32 role, address account) private { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } function _revokeRole(bytes32 role, address account) private { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; library Constants { enum Tier { bronze, silver, gold } bytes32 constant public SUPPORT_ROLE = keccak256("SUPPORT"); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) private pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// 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); }
{ "optimizer": { "enabled": true, "runs": 1000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allowListActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"allowListMint","outputs":[],"stateMutability":"payable","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":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"canTier","outputs":[{"internalType":"enum Constants.Tier","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"seriesMaxSupply_","type":"uint256"}],"name":"createSeries","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currentSeries","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"n","type":"uint256"}],"name":"devMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"getCanTierBatch","outputs":[{"internalType":"enum Constants.Tier[]","name":"","type":"uint8[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getSeries","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"series","type":"uint256"},{"internalType":"uint256","name":"idInSeries","type":"uint256"}],"name":"getTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxAllowListMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPublicMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"claimer","type":"address"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"numAvailableToMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"claimer","type":"address"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"onAllowList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pricePerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","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":[],"name":"saleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"seriesCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"seriesMaxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"seriesProvenance","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"seriesRevealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"seriesSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot_","type":"bytes32"}],"name":"setAllowList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"allowListActive_","type":"bool"}],"name":"setAllowListActive","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":"baseURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"enum Constants.Tier","name":"_tier","type":"uint8"}],"name":"setCanTier","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxAllowListMint_","type":"uint256"}],"name":"setMaxAllowListMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxPublicMint_","type":"uint256"}],"name":"setMaxPublicMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"seriesMaxSupply_","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"mysteryTokenURI_","type":"string"}],"name":"setMysteryTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"pricePerToken_","type":"uint256"}],"name":"setPricePerToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"provenance","type":"string"}],"name":"setProvenance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"revealed_","type":"bool"}],"name":"setRevealed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"saleActive_","type":"bool"}],"name":"setSaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"seriesCount_","type":"uint256"}],"name":"setSeriesCount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"topsContract_","type":"address"}],"name":"setTopsContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","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":"","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":"topsContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405265e35fa931a000600e556001600f5560016010553480156200002557600080fd5b50604080518082018252600481526343616e7360e01b60208083019182528351808501909452600384526221a0a760e91b9084015281519192916200006d916000916200017e565b508051620000839060019060208401906200017e565b50506001600a555062000098600033620000ca565b620000c47fd8acb51ff3d48f690a25887aaf234c4ae5a66ab9839243cd8e2b639cade0663b33620000ca565b62000261565b620000d68282620000da565b5050565b6000828152600b602090815260408083206001600160a01b038516845290915290205460ff16620000d6576000828152600b602090815260408083206001600160a01b03851684529091529020805460ff191660011790556200013a3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b8280546200018c9062000224565b90600052602060002090601f016020900481019282620001b05760008555620001fb565b82601f10620001cb57805160ff1916838001178555620001fb565b82800160010185558215620001fb579182015b82811115620001fb578251825591602001919060010190620001de565b50620002099291506200020d565b5090565b5b808211156200020957600081556001016200020e565b600181811c908216806200023957607f821691505b602082108114156200025b57634e487b7160e01b600052602260045260246000fd5b50919050565b613b6c80620002716000396000f3fe6080604052600436106103975760003560e01c8063841718a6116101dc578063c30c239611610102578063db119b1a116100a0578063eb5c60f21161006f578063eb5c60f214610ae0578063ec8bda8e14610b0d578063f6c11dad14610b20578063ffe630b514610b4057600080fd5b8063db119b1a14610a50578063e0a8085314610a70578063e92e53b514610a90578063e985e9c514610ac057600080fd5b8063cfab5f32116100dc578063cfab5f32146109cd578063d4ac0ac0146109ed578063d547741f14610a1a578063d7f2c0ef14610a3a57600080fd5b8063c30c239614610977578063c87b56dd14610997578063cabadaa0146109b757600080fd5b80639e2a1f4d1161017a578063a3c3a48f11610149578063a3c3a48f146108f7578063acb0037914610917578063b32c568014610937578063b88d4fde1461095757600080fd5b80639e2a1f4d14610899578063a0712d68146108af578063a217fddf146108c2578063a22cb465146108d757600080fd5b806391d14854116101b657806391d14854146107e157806395d89b41146108275780639bdd43b61461083c5780639dec512a1461087957600080fd5b8063841718a61461077457806384584d07146107945780638c487519146107b457600080fd5b8063375a069a116102c1578063514229301161025f57806368428a1b1161022e57806368428a1b146107045780636f8b44b01461071e57806370a082311461073e5780637b1b1de61461075e57600080fd5b8063514229301461068f57806355f804b3146106af5780635caa0dec146106cf5780636352211e146106e457600080fd5b806342842e0e1161029b57806342842e0e1461061557806342966c6814610635578063457dbf21146106555780634f6ccce71461066f57600080fd5b8063375a069a146105c05780633a73c58d146105e05780633ccfd60b1461060057600080fd5b806323b872dd116103395780632f2ff15d116103085780632f2ff15d146105405780632f745c59146105605780633112de9a1461058057806336568abe146105a057600080fd5b806323b872dd146104b0578063248a9ca3146104d0578063270ab52c146105005780632bf2762f1461052057600080fd5b8063095ea7b311610375578063095ea7b31461042b5780631160da151461044d578063159b9a821461047b57806318160ddd1461049b57600080fd5b806301ffc9a71461039c57806306fdde03146103d1578063081812fc146103f3575b600080fd5b3480156103a857600080fd5b506103bc6103b736600461360e565b610b60565b60405190151581526020015b60405180910390f35b3480156103dd57600080fd5b506103e6610b71565b6040516103c8919061390b565b3480156103ff57600080fd5b5061041361040e3660046135d2565b610c03565b6040516001600160a01b0390911681526020016103c8565b34801561043757600080fd5b5061044b61044636600461346b565b610c9d565b005b34801561045957600080fd5b5061046d6104683660046135d2565b610dcf565b6040519081526020016103c8565b34801561048757600080fd5b506103e66104963660046135d2565b610e66565b3480156104a757600080fd5b5060085461046d565b3480156104bc57600080fd5b5061044b6104cb36600461333b565b610f00565b3480156104dc57600080fd5b5061046d6104eb3660046135d2565b6000908152600b602052604090206001015490565b34801561050c57600080fd5b5061044b61051b3660046135d2565b610f88565b34801561052c57600080fd5b5061044b61053b3660046135d2565b610fa7565b34801561054c57600080fd5b5061044b61055b3660046135eb565b610fc6565b34801561056c57600080fd5b5061046d61057b36600461346b565b610fec565b34801561058c57600080fd5b5061046d61059b3660046136c2565b611094565b3480156105ac57600080fd5b5061044b6105bb3660046135eb565b6110b5565b3480156105cc57600080fd5b5061044b6105db3660046135d2565b611141565b3480156105ec57600080fd5b5061044b6105fb3660046135b7565b611163565b34801561060c57600080fd5b5061044b611190565b34801561062157600080fd5b5061044b61063036600461333b565b6111cb565b34801561064157600080fd5b5061044b6106503660046135d2565b6111e6565b34801561066157600080fd5b506011546103bc9060ff1681565b34801561067b57600080fd5b5061046d61068a3660046135d2565b61126d565b34801561069b57600080fd5b5061044b6106aa366004613495565b611311565b3480156106bb57600080fd5b5061044b6106ca366004613648565b61139d565b3480156106db57600080fd5b5061046d6113c9565b3480156106f057600080fd5b506104136106ff3660046135d2565b6113df565b34801561071057600080fd5b50600d546103bc9060ff1681565b34801561072a57600080fd5b5061044b6107393660046135d2565b61146a565b34801561074a57600080fd5b5061046d6107593660046132ed565b6114f7565b34801561076a57600080fd5b5061046d600e5481565b34801561078057600080fd5b5061044b61078f3660046135b7565b611591565b3480156107a057600080fd5b5061044b6107af3660046135d2565b6115be565b3480156107c057600080fd5b506107d46107cf36600461351f565b6115dd565b6040516103c891906138b2565b3480156107ed57600080fd5b506103bc6107fc3660046135eb565b6000918252600b602090815260408084206001600160a01b0393909316845291905290205460ff1690565b34801561083357600080fd5b506103e66116c7565b34801561084857600080fd5b5061086c6108573660046135d2565b601b6020526000908152604090205460ff1681565b6040516103c891906138fd565b34801561088557600080fd5b5061044b6108943660046135d2565b6116d6565b3480156108a557600080fd5b5061046d60105481565b61044b6108bd3660046135d2565b61176c565b3480156108ce57600080fd5b5061046d600081565b3480156108e357600080fd5b5061044b6108f2366004613441565b6118fb565b34801561090357600080fd5b50601554610413906001600160a01b031681565b34801561092357600080fd5b5061044b6109323660046135d2565b6119c0565b34801561094357600080fd5b506103bc6109523660046133f3565b6119df565b34801561096357600080fd5b5061044b610972366004613377565b611a30565b34801561098357600080fd5b5061044b610992366004613648565b611abe565b3480156109a357600080fd5b506103e66109b23660046135d2565b611aea565b3480156109c357600080fd5b5061046d600f5481565b3480156109d957600080fd5b5061044b6109e83660046135d2565b611c31565b3480156109f957600080fd5b5061046d610a083660046135d2565b60166020526000908152604090205481565b348015610a2657600080fd5b5061044b610a353660046135eb565b611c50565b348015610a4657600080fd5b5061046d60135481565b348015610a5c57600080fd5b5061044b610a6b3660046132ed565b611c76565b348015610a7c57600080fd5b5061044b610a8b3660046135b7565b611cb2565b348015610a9c57600080fd5b506103bc610aab3660046135d2565b60186020526000908152604090205460ff1681565b348015610acc57600080fd5b506103bc610adb366004613308565b611cfb565b348015610aec57600080fd5b5061046d610afb3660046135d2565b60176020526000908152604090205481565b61044b610b1b366004613691565b611d60565b348015610b2c57600080fd5b5061046d610b3b3660046133f3565b611fa8565b348015610b4c57600080fd5b5061044b610b5b366004613648565b612013565b6000610b6b8261205a565b92915050565b606060008054610b8090613a18565b80601f0160208091040260200160405190810160405280929190818152602001828054610bac90613a18565b8015610bf95780601f10610bce57610100808354040283529160200191610bf9565b820191906000526020600020905b815481529060010190602001808311610bdc57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610c815760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610ca8826113df565b9050806001600160a01b0316836001600160a01b03161415610d325760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610c78565b336001600160a01b0382161480610d4e5750610d4e8133611cfb565b610dc05760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610c78565b610dca8383612098565b505050565b6000818152600260205260408120546001600160a01b0316610e595760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610c78565b610b6b620f42408361398b565b60196020526000908152604090208054610e7f90613a18565b80601f0160208091040260200160405190810160405280929190818152602001828054610eab90613a18565b8015610ef85780601f10610ecd57610100808354040283529160200191610ef8565b820191906000526020600020905b815481529060010190602001808311610edb57829003601f168201915b505050505081565b610f0b335b82612106565b610f7d5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610c78565b610dca8383836121d5565b600080516020613b17833981519152610fa181336123ad565b50600f55565b600080516020613b17833981519152610fc081336123ad565b50600e55565b6000828152600b6020526040902060010154610fe281336123ad565b610dca838361242d565b6000610ff7836114f7565b821061106b5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610c78565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6000816110a4620f42408561399f565b6110ae9190613973565b9392505050565b6001600160a01b03811633146111335760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610c78565b61113d82826124cf565b5050565b600080516020613b1783398151915261115a81336123ad565b61113d82612552565b600080516020613b1783398151915261117c81336123ad565b506011805460ff1916911515919091179055565b600061119c81336123ad565b6040514790339082156108fc029083906000818181858888f19350505050158015610dca573d6000803e3d6000fd5b610dca83838360405180602001604052806000815250611a30565b6111ef33610f05565b6112615760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f766564000000000000000000000000000000006064820152608401610c78565b61126a8161265d565b50565b600061127860085490565b82106112ec5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610c78565b600882815481106112ff576112ff613ad4565b90600052602060002001549050919050565b600080516020613b1783398151915261132a81336123ad565b60005b838110156113965782601b600087878581811061134c5761134c613ad4565b60209081029290920135835250810191909152604001600020805460ff1916600183600281111561137f5761137f613aa8565b02179055508061138e81613a4d565b91505061132d565b5050505050565b600080516020613b178339815191526113b681336123ad565b8151610dca90601290602085019061315e565b600060016013546113da91906139be565b905090565b6000818152600260205260408120546001600160a01b031680610b6b5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610c78565b600080516020613b1783398151915261148381336123ad565b620f424082106114d55760405162461bcd60e51b815260206004820152601760248201527f43616e6e6f742065786365656420312c3030302c3030300000000000000000006044820152606401610c78565b81601760006114e26113c9565b81526020810191909152604001600020555050565b60006001600160a01b0382166115755760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610c78565b506001600160a01b031660009081526003602052604090205490565b600080516020613b178339815191526115aa81336123ad565b50600d805460ff1916911515919091179055565b600080516020613b178339815191526115d781336123ad565b50600c55565b60606000825167ffffffffffffffff8111156115fb576115fb613aea565b604051908082528060200260200182016040528015611624578160200160208202803683370190505b50905060005b83518110156116c057601b600085838151811061164957611649613ad4565b6020026020010151815260200190815260200160002060009054906101000a900460ff1682828151811061167f5761167f613ad4565b6020026020010190600281111561169857611698613aa8565b908160028111156116ab576116ab613aa8565b905250806116b881613a4d565b91505061162a565b5092915050565b606060018054610b8090613a18565b600080516020613b178339815191526116ef81336123ad565b620f424082106117415760405162461bcd60e51b815260206004820152601760248201527f43616e6e6f742065786365656420312c3030302c3030300000000000000000006044820152606401610c78565b6013805460009081526017602052604081208490558154919061176383613a4d565b91905055505050565b6002600a5414156117bf5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610c78565b6002600a55600d5460ff1661183c5760405162461bcd60e51b815260206004820152602260248201527f53616c65206d7573742062652061637469766520746f206d696e7420746f6b6560448201527f6e730000000000000000000000000000000000000000000000000000000000006064820152608401610c78565b600f5481111561188e5760405162461bcd60e51b815260206004820152601b60248201527f4578636565646564206d617820746f6b656e20707572636861736500000000006044820152606401610c78565b3481600e5461189d919061399f565b146118ea5760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610c78565b6118f381612552565b506001600a55565b6001600160a01b0382163314156119545760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610c78565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600080516020613b178339815191526119d981336123ad565b50601355565b6040516bffffffffffffffffffffffff19606084901b1660208201526000908190603401604051602081830303815290604052805190602001209050611a2883600c5483612704565b949350505050565b611a3a3383612106565b611aac5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610c78565b611ab8848484846127b3565b50505050565b600080516020613b17833981519152611ad781336123ad565b8151610dca90601490602085019061315e565b60606000611af783610dcf565b60008181526018602052604090205490915060ff1615611b9857600060128054611b2090613a18565b905011611b3c57604051806020016040528060008152506110ae565b6000838152601b6020526040902054601290611b7190611b6c90849060ff16600281111561059b5761059b613aa8565b612831565b604051602001611b8292919061374e565b6040516020818303038152906040529392505050565b60148054611ba590613a18565b80601f0160208091040260200160405190810160405280929190818152602001828054611bd190613a18565b8015611c1e5780601f10611bf357610100808354040283529160200191611c1e565b820191906000526020600020905b815481529060010190602001808311611c0157829003601f168201915b5050505050915050919050565b50919050565b600080516020613b17833981519152611c4a81336123ad565b50601055565b6000828152600b6020526040902060010154611c6c81336123ad565b610dca83836124cf565b600080516020613b17833981519152611c8f81336123ad565b50601580546001600160a01b0319166001600160a01b0392909216919091179055565b600080516020613b17833981519152611ccb81336123ad565b8160186000611cd86113c9565b81526020810191909152604001600020805460ff19169115159190911790555050565b6015546000906001600160a01b031615801590611d2557506015546001600160a01b038381169116145b15611d3257506001610b6b565b6001600160a01b0380841660009081526005602090815260408083209386168352929052205460ff166110ae565b6002600a541415611db35760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610c78565b6002600a556000611dc26113c9565b60115490915060ff16611e175760405162461bcd60e51b815260206004820152601860248201527f416c6c6f77206c697374206973206e6f742061637469766500000000000000006044820152606401610c78565b611e2133836119df565b611e6d5760405162461bcd60e51b815260206004820152601160248201527f4e6f74206f6e20616c6c6f77206c6973740000000000000000000000000000006044820152606401610c78565b6000818152601a60209081526040808320338452909152902054601054611e9491906139be565b831115611f095760405162461bcd60e51b815260206004820152602260248201527f4578636565646564206d617820617661696c61626c6520746f2070757263686160448201527f73650000000000000000000000000000000000000000000000000000000000006064820152608401610c78565b3483600e54611f18919061399f565b1115611f665760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610c78565b6000818152601a6020908152604080832033845290915281208054859290611f8f908490613973565b90915550611f9e905083612552565b50506001600a5550565b6000611fb483836119df565b1561200b57601a6000611fc56113c9565b81526020019081526020016000206000846001600160a01b03166001600160a01b031681526020019081526020016000205460105461200491906139be565b9050610b6b565b506000610b6b565b600080516020613b1783398151915261202c81336123ad565b81601960006120396113c9565b81526020019081526020016000209080519060200190610dca92919061315e565b60006001600160e01b031982167f7965db0b000000000000000000000000000000000000000000000000000000001480610b6b5750610b6b8261292f565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906120cd826113df565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b031661217f5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610c78565b600061218a836113df565b9050806001600160a01b0316846001600160a01b031614806121c55750836001600160a01b03166121ba84610c03565b6001600160a01b0316145b80611a285750611a288185611cfb565b826001600160a01b03166121e8826113df565b6001600160a01b0316146122645760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610c78565b6001600160a01b0382166122df5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610c78565b6122ea83838361296d565b6122f5600082612098565b6001600160a01b038316600090815260036020526040812080546001929061231e9084906139be565b90915550506001600160a01b038216600090815260036020526040812080546001929061234c908490613973565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000828152600b602090815260408083206001600160a01b038516845290915290205460ff1661113d576123eb816001600160a01b03166014612978565b6123f6836020612978565b6040516020016124079291906137f5565b60408051601f198184030181529082905262461bcd60e51b8252610c789160040161390b565b6000828152600b602090815260408083206001600160a01b038516845290915290205460ff1661113d576000828152600b602090815260408083206001600160a01b03851684529091529020805460ff1916600117905561248b3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152600b602090815260408083206001600160a01b038516845290915290205460ff161561113d576000828152600b602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600061255c6113c9565b600081815260166020908152604080832054601790925290912054919250906125858483613973565b11156125f95760405162461bcd60e51b815260206004820152602a60248201527f507572636861736520776f756c6420657863656564206d617820737570706c7960448201527f206f6620746f6b656e73000000000000000000000000000000000000000000006064820152608401610c78565b60005b83811015612634576126223361261d6126136113c9565b61059b8587613973565b612b3d565b8061262c81613a4d565b9150506125fc565b5060008281526016602052604081208054859290612653908490613973565b9091555050505050565b6000612668826113df565b90506126768160008461296d565b612681600083612098565b6001600160a01b03811660009081526003602052604081208054600192906126aa9084906139be565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600081815b85518110156127a857600086828151811061272657612726613ad4565b60200260200101519050808311612768576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250612795565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b50806127a081613a4d565b915050612709565b509092149392505050565b6127be8484846121d5565b6127ca84848484612b57565b611ab85760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610c78565b6060816128555750506040805180820190915260018152600360fc1b602082015290565b8160005b811561287f578061286981613a4d565b91506128789050600a8361398b565b9150612859565b60008167ffffffffffffffff81111561289a5761289a613aea565b6040519080825280601f01601f1916602001820160405280156128c4576020820181803683370190505b5090505b8415611a28576128d96001836139be565b91506128e6600a86613a68565b6128f1906030613973565b60f81b81838151811061290657612906613ad4565b60200101906001600160f81b031916908160001a905350612928600a8661398b565b94506128c8565b60006001600160e01b031982167f780e9d63000000000000000000000000000000000000000000000000000000001480610b6b5750610b6b82612caf565b610dca838383612d4a565b6060600061298783600261399f565b612992906002613973565b67ffffffffffffffff8111156129aa576129aa613aea565b6040519080825280601f01601f1916602001820160405280156129d4576020820181803683370190505b509050600360fc1b816000815181106129ef576129ef613ad4565b60200101906001600160f81b031916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110612a3a57612a3a613ad4565b60200101906001600160f81b031916908160001a9053506000612a5e84600261399f565b612a69906001613973565b90505b6001811115612aee577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110612aaa57612aaa613ad4565b1a60f81b828281518110612ac057612ac0613ad4565b60200101906001600160f81b031916908160001a90535060049490941c93612ae781613a01565b9050612a6c565b5083156110ae5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610c78565b61113d828260405180602001604052806000815250612e02565b60006001600160a01b0384163b15612ca457604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612b9b903390899088908890600401613876565b602060405180830381600087803b158015612bb557600080fd5b505af1925050508015612be5575060408051601f3d908101601f19168201909252612be29181019061362b565b60015b612c8a573d808015612c13576040519150601f19603f3d011682016040523d82523d6000602084013e612c18565b606091505b508051612c825760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610c78565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611a28565b506001949350505050565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480612d1257506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610b6b57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610b6b565b6001600160a01b038316612da557612da081600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b612dc8565b816001600160a01b0316836001600160a01b031614612dc857612dc88382612e80565b6001600160a01b038216612ddf57610dca81612f1d565b826001600160a01b0316826001600160a01b031614610dca57610dca8282612fcc565b612e0c8383613010565b612e196000848484612b57565b610dca5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610c78565b60006001612e8d846114f7565b612e9791906139be565b600083815260076020526040902054909150808214612eea576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090612f2f906001906139be565b60008381526009602052604081205460088054939450909284908110612f5757612f57613ad4565b906000526020600020015490508060088381548110612f7857612f78613ad4565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480612fb057612fb0613abe565b6001900381819060005260206000200160009055905550505050565b6000612fd7836114f7565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b0382166130665760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610c78565b6000818152600260205260409020546001600160a01b0316156130cb5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610c78565b6130d76000838361296d565b6001600160a01b0382166000908152600360205260408120805460019290613100908490613973565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461316a90613a18565b90600052602060002090601f01602090048101928261318c57600085556131d2565b82601f106131a557805160ff19168380011785556131d2565b828001600101855582156131d2579182015b828111156131d25782518255916020019190600101906131b7565b506131de9291506131e2565b5090565b5b808211156131de57600081556001016131e3565b600067ffffffffffffffff83111561321157613211613aea565b613224601f8401601f191660200161391e565b905082815283838301111561323857600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b038116811461326657600080fd5b919050565b600082601f83011261327c57600080fd5b8135602061329161328c8361394f565b61391e565b80838252828201915082860187848660051b89010111156132b157600080fd5b60005b858110156132d0578135845292840192908401906001016132b4565b5090979650505050505050565b8035801515811461326657600080fd5b6000602082840312156132ff57600080fd5b6110ae8261324f565b6000806040838503121561331b57600080fd5b6133248361324f565b91506133326020840161324f565b90509250929050565b60008060006060848603121561335057600080fd5b6133598461324f565b92506133676020850161324f565b9150604084013590509250925092565b6000806000806080858703121561338d57600080fd5b6133968561324f565b93506133a46020860161324f565b925060408501359150606085013567ffffffffffffffff8111156133c757600080fd5b8501601f810187136133d857600080fd5b6133e7878235602084016131f7565b91505092959194509250565b6000806040838503121561340657600080fd5b61340f8361324f565b9150602083013567ffffffffffffffff81111561342b57600080fd5b6134378582860161326b565b9150509250929050565b6000806040838503121561345457600080fd5b61345d8361324f565b9150613332602084016132dd565b6000806040838503121561347e57600080fd5b6134878361324f565b946020939093013593505050565b6000806000604084860312156134aa57600080fd5b833567ffffffffffffffff808211156134c257600080fd5b818601915086601f8301126134d657600080fd5b8135818111156134e557600080fd5b8760208260051b85010111156134fa57600080fd5b602092830195509350508401356003811061351457600080fd5b809150509250925092565b6000602080838503121561353257600080fd5b823567ffffffffffffffff81111561354957600080fd5b8301601f8101851361355a57600080fd5b803561356861328c8261394f565b80828252848201915084840188868560051b870101111561358857600080fd5b600094505b838510156135ab57803583526001949094019391850191850161358d565b50979650505050505050565b6000602082840312156135c957600080fd5b6110ae826132dd565b6000602082840312156135e457600080fd5b5035919050565b600080604083850312156135fe57600080fd5b823591506133326020840161324f565b60006020828403121561362057600080fd5b81356110ae81613b00565b60006020828403121561363d57600080fd5b81516110ae81613b00565b60006020828403121561365a57600080fd5b813567ffffffffffffffff81111561367157600080fd5b8201601f8101841361368257600080fd5b611a28848235602084016131f7565b600080604083850312156136a457600080fd5b82359150602083013567ffffffffffffffff81111561342b57600080fd5b600080604083850312156136d557600080fd5b50508035926020909101359150565b600081518084526136fc8160208601602086016139d5565b601f01601f19169290920160200192915050565b6003811061372e57634e487b7160e01b600052602160045260246000fd5b9052565b600081516137448185602086016139d5565b9290920192915050565b600080845481600182811c91508083168061376a57607f831692505b602080841082141561378a57634e487b7160e01b86526022600452602486fd5b81801561379e57600181146137af576137dc565b60ff198616895284890196506137dc565b60008b81526020902060005b868110156137d45781548b8201529085019083016137bb565b505084890196505b5050505050506137ec8185613732565b95945050505050565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161382d8160178501602088016139d5565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000601791840191820152835161386a8160288401602088016139d5565b01602801949350505050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526138a860808301846136e4565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156138f1576138e1838551613710565b92840192918401916001016138ce565b50909695505050505050565b60208101610b6b8284613710565b6020815260006110ae60208301846136e4565b604051601f8201601f1916810167ffffffffffffffff8111828210171561394757613947613aea565b604052919050565b600067ffffffffffffffff82111561396957613969613aea565b5060051b60200190565b6000821982111561398657613986613a7c565b500190565b60008261399a5761399a613a92565b500490565b60008160001904831182151516156139b9576139b9613a7c565b500290565b6000828210156139d0576139d0613a7c565b500390565b60005b838110156139f05781810151838201526020016139d8565b83811115611ab85750506000910152565b600081613a1057613a10613a7c565b506000190190565b600181811c90821680613a2c57607f821691505b60208210811415611c2b57634e487b7160e01b600052602260045260246000fd5b6000600019821415613a6157613a61613a7c565b5060010190565b600082613a7757613a77613a92565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461126a57600080fdfed8acb51ff3d48f690a25887aaf234c4ae5a66ab9839243cd8e2b639cade0663ba26469706673582212201a38b560c3004b6265c1ee57068973f41ad102a74037c2c3a7a9531b0d9709ed64736f6c63430008070033
Deployed Bytecode
0x6080604052600436106103975760003560e01c8063841718a6116101dc578063c30c239611610102578063db119b1a116100a0578063eb5c60f21161006f578063eb5c60f214610ae0578063ec8bda8e14610b0d578063f6c11dad14610b20578063ffe630b514610b4057600080fd5b8063db119b1a14610a50578063e0a8085314610a70578063e92e53b514610a90578063e985e9c514610ac057600080fd5b8063cfab5f32116100dc578063cfab5f32146109cd578063d4ac0ac0146109ed578063d547741f14610a1a578063d7f2c0ef14610a3a57600080fd5b8063c30c239614610977578063c87b56dd14610997578063cabadaa0146109b757600080fd5b80639e2a1f4d1161017a578063a3c3a48f11610149578063a3c3a48f146108f7578063acb0037914610917578063b32c568014610937578063b88d4fde1461095757600080fd5b80639e2a1f4d14610899578063a0712d68146108af578063a217fddf146108c2578063a22cb465146108d757600080fd5b806391d14854116101b657806391d14854146107e157806395d89b41146108275780639bdd43b61461083c5780639dec512a1461087957600080fd5b8063841718a61461077457806384584d07146107945780638c487519146107b457600080fd5b8063375a069a116102c1578063514229301161025f57806368428a1b1161022e57806368428a1b146107045780636f8b44b01461071e57806370a082311461073e5780637b1b1de61461075e57600080fd5b8063514229301461068f57806355f804b3146106af5780635caa0dec146106cf5780636352211e146106e457600080fd5b806342842e0e1161029b57806342842e0e1461061557806342966c6814610635578063457dbf21146106555780634f6ccce71461066f57600080fd5b8063375a069a146105c05780633a73c58d146105e05780633ccfd60b1461060057600080fd5b806323b872dd116103395780632f2ff15d116103085780632f2ff15d146105405780632f745c59146105605780633112de9a1461058057806336568abe146105a057600080fd5b806323b872dd146104b0578063248a9ca3146104d0578063270ab52c146105005780632bf2762f1461052057600080fd5b8063095ea7b311610375578063095ea7b31461042b5780631160da151461044d578063159b9a821461047b57806318160ddd1461049b57600080fd5b806301ffc9a71461039c57806306fdde03146103d1578063081812fc146103f3575b600080fd5b3480156103a857600080fd5b506103bc6103b736600461360e565b610b60565b60405190151581526020015b60405180910390f35b3480156103dd57600080fd5b506103e6610b71565b6040516103c8919061390b565b3480156103ff57600080fd5b5061041361040e3660046135d2565b610c03565b6040516001600160a01b0390911681526020016103c8565b34801561043757600080fd5b5061044b61044636600461346b565b610c9d565b005b34801561045957600080fd5b5061046d6104683660046135d2565b610dcf565b6040519081526020016103c8565b34801561048757600080fd5b506103e66104963660046135d2565b610e66565b3480156104a757600080fd5b5060085461046d565b3480156104bc57600080fd5b5061044b6104cb36600461333b565b610f00565b3480156104dc57600080fd5b5061046d6104eb3660046135d2565b6000908152600b602052604090206001015490565b34801561050c57600080fd5b5061044b61051b3660046135d2565b610f88565b34801561052c57600080fd5b5061044b61053b3660046135d2565b610fa7565b34801561054c57600080fd5b5061044b61055b3660046135eb565b610fc6565b34801561056c57600080fd5b5061046d61057b36600461346b565b610fec565b34801561058c57600080fd5b5061046d61059b3660046136c2565b611094565b3480156105ac57600080fd5b5061044b6105bb3660046135eb565b6110b5565b3480156105cc57600080fd5b5061044b6105db3660046135d2565b611141565b3480156105ec57600080fd5b5061044b6105fb3660046135b7565b611163565b34801561060c57600080fd5b5061044b611190565b34801561062157600080fd5b5061044b61063036600461333b565b6111cb565b34801561064157600080fd5b5061044b6106503660046135d2565b6111e6565b34801561066157600080fd5b506011546103bc9060ff1681565b34801561067b57600080fd5b5061046d61068a3660046135d2565b61126d565b34801561069b57600080fd5b5061044b6106aa366004613495565b611311565b3480156106bb57600080fd5b5061044b6106ca366004613648565b61139d565b3480156106db57600080fd5b5061046d6113c9565b3480156106f057600080fd5b506104136106ff3660046135d2565b6113df565b34801561071057600080fd5b50600d546103bc9060ff1681565b34801561072a57600080fd5b5061044b6107393660046135d2565b61146a565b34801561074a57600080fd5b5061046d6107593660046132ed565b6114f7565b34801561076a57600080fd5b5061046d600e5481565b34801561078057600080fd5b5061044b61078f3660046135b7565b611591565b3480156107a057600080fd5b5061044b6107af3660046135d2565b6115be565b3480156107c057600080fd5b506107d46107cf36600461351f565b6115dd565b6040516103c891906138b2565b3480156107ed57600080fd5b506103bc6107fc3660046135eb565b6000918252600b602090815260408084206001600160a01b0393909316845291905290205460ff1690565b34801561083357600080fd5b506103e66116c7565b34801561084857600080fd5b5061086c6108573660046135d2565b601b6020526000908152604090205460ff1681565b6040516103c891906138fd565b34801561088557600080fd5b5061044b6108943660046135d2565b6116d6565b3480156108a557600080fd5b5061046d60105481565b61044b6108bd3660046135d2565b61176c565b3480156108ce57600080fd5b5061046d600081565b3480156108e357600080fd5b5061044b6108f2366004613441565b6118fb565b34801561090357600080fd5b50601554610413906001600160a01b031681565b34801561092357600080fd5b5061044b6109323660046135d2565b6119c0565b34801561094357600080fd5b506103bc6109523660046133f3565b6119df565b34801561096357600080fd5b5061044b610972366004613377565b611a30565b34801561098357600080fd5b5061044b610992366004613648565b611abe565b3480156109a357600080fd5b506103e66109b23660046135d2565b611aea565b3480156109c357600080fd5b5061046d600f5481565b3480156109d957600080fd5b5061044b6109e83660046135d2565b611c31565b3480156109f957600080fd5b5061046d610a083660046135d2565b60166020526000908152604090205481565b348015610a2657600080fd5b5061044b610a353660046135eb565b611c50565b348015610a4657600080fd5b5061046d60135481565b348015610a5c57600080fd5b5061044b610a6b3660046132ed565b611c76565b348015610a7c57600080fd5b5061044b610a8b3660046135b7565b611cb2565b348015610a9c57600080fd5b506103bc610aab3660046135d2565b60186020526000908152604090205460ff1681565b348015610acc57600080fd5b506103bc610adb366004613308565b611cfb565b348015610aec57600080fd5b5061046d610afb3660046135d2565b60176020526000908152604090205481565b61044b610b1b366004613691565b611d60565b348015610b2c57600080fd5b5061046d610b3b3660046133f3565b611fa8565b348015610b4c57600080fd5b5061044b610b5b366004613648565b612013565b6000610b6b8261205a565b92915050565b606060008054610b8090613a18565b80601f0160208091040260200160405190810160405280929190818152602001828054610bac90613a18565b8015610bf95780601f10610bce57610100808354040283529160200191610bf9565b820191906000526020600020905b815481529060010190602001808311610bdc57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610c815760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610ca8826113df565b9050806001600160a01b0316836001600160a01b03161415610d325760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610c78565b336001600160a01b0382161480610d4e5750610d4e8133611cfb565b610dc05760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610c78565b610dca8383612098565b505050565b6000818152600260205260408120546001600160a01b0316610e595760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610c78565b610b6b620f42408361398b565b60196020526000908152604090208054610e7f90613a18565b80601f0160208091040260200160405190810160405280929190818152602001828054610eab90613a18565b8015610ef85780601f10610ecd57610100808354040283529160200191610ef8565b820191906000526020600020905b815481529060010190602001808311610edb57829003601f168201915b505050505081565b610f0b335b82612106565b610f7d5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610c78565b610dca8383836121d5565b600080516020613b17833981519152610fa181336123ad565b50600f55565b600080516020613b17833981519152610fc081336123ad565b50600e55565b6000828152600b6020526040902060010154610fe281336123ad565b610dca838361242d565b6000610ff7836114f7565b821061106b5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610c78565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6000816110a4620f42408561399f565b6110ae9190613973565b9392505050565b6001600160a01b03811633146111335760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610c78565b61113d82826124cf565b5050565b600080516020613b1783398151915261115a81336123ad565b61113d82612552565b600080516020613b1783398151915261117c81336123ad565b506011805460ff1916911515919091179055565b600061119c81336123ad565b6040514790339082156108fc029083906000818181858888f19350505050158015610dca573d6000803e3d6000fd5b610dca83838360405180602001604052806000815250611a30565b6111ef33610f05565b6112615760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f766564000000000000000000000000000000006064820152608401610c78565b61126a8161265d565b50565b600061127860085490565b82106112ec5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610c78565b600882815481106112ff576112ff613ad4565b90600052602060002001549050919050565b600080516020613b1783398151915261132a81336123ad565b60005b838110156113965782601b600087878581811061134c5761134c613ad4565b60209081029290920135835250810191909152604001600020805460ff1916600183600281111561137f5761137f613aa8565b02179055508061138e81613a4d565b91505061132d565b5050505050565b600080516020613b178339815191526113b681336123ad565b8151610dca90601290602085019061315e565b600060016013546113da91906139be565b905090565b6000818152600260205260408120546001600160a01b031680610b6b5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610c78565b600080516020613b1783398151915261148381336123ad565b620f424082106114d55760405162461bcd60e51b815260206004820152601760248201527f43616e6e6f742065786365656420312c3030302c3030300000000000000000006044820152606401610c78565b81601760006114e26113c9565b81526020810191909152604001600020555050565b60006001600160a01b0382166115755760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610c78565b506001600160a01b031660009081526003602052604090205490565b600080516020613b178339815191526115aa81336123ad565b50600d805460ff1916911515919091179055565b600080516020613b178339815191526115d781336123ad565b50600c55565b60606000825167ffffffffffffffff8111156115fb576115fb613aea565b604051908082528060200260200182016040528015611624578160200160208202803683370190505b50905060005b83518110156116c057601b600085838151811061164957611649613ad4565b6020026020010151815260200190815260200160002060009054906101000a900460ff1682828151811061167f5761167f613ad4565b6020026020010190600281111561169857611698613aa8565b908160028111156116ab576116ab613aa8565b905250806116b881613a4d565b91505061162a565b5092915050565b606060018054610b8090613a18565b600080516020613b178339815191526116ef81336123ad565b620f424082106117415760405162461bcd60e51b815260206004820152601760248201527f43616e6e6f742065786365656420312c3030302c3030300000000000000000006044820152606401610c78565b6013805460009081526017602052604081208490558154919061176383613a4d565b91905055505050565b6002600a5414156117bf5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610c78565b6002600a55600d5460ff1661183c5760405162461bcd60e51b815260206004820152602260248201527f53616c65206d7573742062652061637469766520746f206d696e7420746f6b6560448201527f6e730000000000000000000000000000000000000000000000000000000000006064820152608401610c78565b600f5481111561188e5760405162461bcd60e51b815260206004820152601b60248201527f4578636565646564206d617820746f6b656e20707572636861736500000000006044820152606401610c78565b3481600e5461189d919061399f565b146118ea5760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610c78565b6118f381612552565b506001600a55565b6001600160a01b0382163314156119545760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610c78565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600080516020613b178339815191526119d981336123ad565b50601355565b6040516bffffffffffffffffffffffff19606084901b1660208201526000908190603401604051602081830303815290604052805190602001209050611a2883600c5483612704565b949350505050565b611a3a3383612106565b611aac5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610c78565b611ab8848484846127b3565b50505050565b600080516020613b17833981519152611ad781336123ad565b8151610dca90601490602085019061315e565b60606000611af783610dcf565b60008181526018602052604090205490915060ff1615611b9857600060128054611b2090613a18565b905011611b3c57604051806020016040528060008152506110ae565b6000838152601b6020526040902054601290611b7190611b6c90849060ff16600281111561059b5761059b613aa8565b612831565b604051602001611b8292919061374e565b6040516020818303038152906040529392505050565b60148054611ba590613a18565b80601f0160208091040260200160405190810160405280929190818152602001828054611bd190613a18565b8015611c1e5780601f10611bf357610100808354040283529160200191611c1e565b820191906000526020600020905b815481529060010190602001808311611c0157829003601f168201915b5050505050915050919050565b50919050565b600080516020613b17833981519152611c4a81336123ad565b50601055565b6000828152600b6020526040902060010154611c6c81336123ad565b610dca83836124cf565b600080516020613b17833981519152611c8f81336123ad565b50601580546001600160a01b0319166001600160a01b0392909216919091179055565b600080516020613b17833981519152611ccb81336123ad565b8160186000611cd86113c9565b81526020810191909152604001600020805460ff19169115159190911790555050565b6015546000906001600160a01b031615801590611d2557506015546001600160a01b038381169116145b15611d3257506001610b6b565b6001600160a01b0380841660009081526005602090815260408083209386168352929052205460ff166110ae565b6002600a541415611db35760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610c78565b6002600a556000611dc26113c9565b60115490915060ff16611e175760405162461bcd60e51b815260206004820152601860248201527f416c6c6f77206c697374206973206e6f742061637469766500000000000000006044820152606401610c78565b611e2133836119df565b611e6d5760405162461bcd60e51b815260206004820152601160248201527f4e6f74206f6e20616c6c6f77206c6973740000000000000000000000000000006044820152606401610c78565b6000818152601a60209081526040808320338452909152902054601054611e9491906139be565b831115611f095760405162461bcd60e51b815260206004820152602260248201527f4578636565646564206d617820617661696c61626c6520746f2070757263686160448201527f73650000000000000000000000000000000000000000000000000000000000006064820152608401610c78565b3483600e54611f18919061399f565b1115611f665760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610c78565b6000818152601a6020908152604080832033845290915281208054859290611f8f908490613973565b90915550611f9e905083612552565b50506001600a5550565b6000611fb483836119df565b1561200b57601a6000611fc56113c9565b81526020019081526020016000206000846001600160a01b03166001600160a01b031681526020019081526020016000205460105461200491906139be565b9050610b6b565b506000610b6b565b600080516020613b1783398151915261202c81336123ad565b81601960006120396113c9565b81526020019081526020016000209080519060200190610dca92919061315e565b60006001600160e01b031982167f7965db0b000000000000000000000000000000000000000000000000000000001480610b6b5750610b6b8261292f565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906120cd826113df565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b031661217f5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610c78565b600061218a836113df565b9050806001600160a01b0316846001600160a01b031614806121c55750836001600160a01b03166121ba84610c03565b6001600160a01b0316145b80611a285750611a288185611cfb565b826001600160a01b03166121e8826113df565b6001600160a01b0316146122645760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610c78565b6001600160a01b0382166122df5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610c78565b6122ea83838361296d565b6122f5600082612098565b6001600160a01b038316600090815260036020526040812080546001929061231e9084906139be565b90915550506001600160a01b038216600090815260036020526040812080546001929061234c908490613973565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000828152600b602090815260408083206001600160a01b038516845290915290205460ff1661113d576123eb816001600160a01b03166014612978565b6123f6836020612978565b6040516020016124079291906137f5565b60408051601f198184030181529082905262461bcd60e51b8252610c789160040161390b565b6000828152600b602090815260408083206001600160a01b038516845290915290205460ff1661113d576000828152600b602090815260408083206001600160a01b03851684529091529020805460ff1916600117905561248b3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152600b602090815260408083206001600160a01b038516845290915290205460ff161561113d576000828152600b602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600061255c6113c9565b600081815260166020908152604080832054601790925290912054919250906125858483613973565b11156125f95760405162461bcd60e51b815260206004820152602a60248201527f507572636861736520776f756c6420657863656564206d617820737570706c7960448201527f206f6620746f6b656e73000000000000000000000000000000000000000000006064820152608401610c78565b60005b83811015612634576126223361261d6126136113c9565b61059b8587613973565b612b3d565b8061262c81613a4d565b9150506125fc565b5060008281526016602052604081208054859290612653908490613973565b9091555050505050565b6000612668826113df565b90506126768160008461296d565b612681600083612098565b6001600160a01b03811660009081526003602052604081208054600192906126aa9084906139be565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600081815b85518110156127a857600086828151811061272657612726613ad4565b60200260200101519050808311612768576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250612795565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b50806127a081613a4d565b915050612709565b509092149392505050565b6127be8484846121d5565b6127ca84848484612b57565b611ab85760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610c78565b6060816128555750506040805180820190915260018152600360fc1b602082015290565b8160005b811561287f578061286981613a4d565b91506128789050600a8361398b565b9150612859565b60008167ffffffffffffffff81111561289a5761289a613aea565b6040519080825280601f01601f1916602001820160405280156128c4576020820181803683370190505b5090505b8415611a28576128d96001836139be565b91506128e6600a86613a68565b6128f1906030613973565b60f81b81838151811061290657612906613ad4565b60200101906001600160f81b031916908160001a905350612928600a8661398b565b94506128c8565b60006001600160e01b031982167f780e9d63000000000000000000000000000000000000000000000000000000001480610b6b5750610b6b82612caf565b610dca838383612d4a565b6060600061298783600261399f565b612992906002613973565b67ffffffffffffffff8111156129aa576129aa613aea565b6040519080825280601f01601f1916602001820160405280156129d4576020820181803683370190505b509050600360fc1b816000815181106129ef576129ef613ad4565b60200101906001600160f81b031916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110612a3a57612a3a613ad4565b60200101906001600160f81b031916908160001a9053506000612a5e84600261399f565b612a69906001613973565b90505b6001811115612aee577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110612aaa57612aaa613ad4565b1a60f81b828281518110612ac057612ac0613ad4565b60200101906001600160f81b031916908160001a90535060049490941c93612ae781613a01565b9050612a6c565b5083156110ae5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610c78565b61113d828260405180602001604052806000815250612e02565b60006001600160a01b0384163b15612ca457604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612b9b903390899088908890600401613876565b602060405180830381600087803b158015612bb557600080fd5b505af1925050508015612be5575060408051601f3d908101601f19168201909252612be29181019061362b565b60015b612c8a573d808015612c13576040519150601f19603f3d011682016040523d82523d6000602084013e612c18565b606091505b508051612c825760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610c78565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611a28565b506001949350505050565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480612d1257506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610b6b57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610b6b565b6001600160a01b038316612da557612da081600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b612dc8565b816001600160a01b0316836001600160a01b031614612dc857612dc88382612e80565b6001600160a01b038216612ddf57610dca81612f1d565b826001600160a01b0316826001600160a01b031614610dca57610dca8282612fcc565b612e0c8383613010565b612e196000848484612b57565b610dca5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610c78565b60006001612e8d846114f7565b612e9791906139be565b600083815260076020526040902054909150808214612eea576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090612f2f906001906139be565b60008381526009602052604081205460088054939450909284908110612f5757612f57613ad4565b906000526020600020015490508060088381548110612f7857612f78613ad4565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480612fb057612fb0613abe565b6001900381819060005260206000200160009055905550505050565b6000612fd7836114f7565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b0382166130665760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610c78565b6000818152600260205260409020546001600160a01b0316156130cb5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610c78565b6130d76000838361296d565b6001600160a01b0382166000908152600360205260408120805460019290613100908490613973565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461316a90613a18565b90600052602060002090601f01602090048101928261318c57600085556131d2565b82601f106131a557805160ff19168380011785556131d2565b828001600101855582156131d2579182015b828111156131d25782518255916020019190600101906131b7565b506131de9291506131e2565b5090565b5b808211156131de57600081556001016131e3565b600067ffffffffffffffff83111561321157613211613aea565b613224601f8401601f191660200161391e565b905082815283838301111561323857600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b038116811461326657600080fd5b919050565b600082601f83011261327c57600080fd5b8135602061329161328c8361394f565b61391e565b80838252828201915082860187848660051b89010111156132b157600080fd5b60005b858110156132d0578135845292840192908401906001016132b4565b5090979650505050505050565b8035801515811461326657600080fd5b6000602082840312156132ff57600080fd5b6110ae8261324f565b6000806040838503121561331b57600080fd5b6133248361324f565b91506133326020840161324f565b90509250929050565b60008060006060848603121561335057600080fd5b6133598461324f565b92506133676020850161324f565b9150604084013590509250925092565b6000806000806080858703121561338d57600080fd5b6133968561324f565b93506133a46020860161324f565b925060408501359150606085013567ffffffffffffffff8111156133c757600080fd5b8501601f810187136133d857600080fd5b6133e7878235602084016131f7565b91505092959194509250565b6000806040838503121561340657600080fd5b61340f8361324f565b9150602083013567ffffffffffffffff81111561342b57600080fd5b6134378582860161326b565b9150509250929050565b6000806040838503121561345457600080fd5b61345d8361324f565b9150613332602084016132dd565b6000806040838503121561347e57600080fd5b6134878361324f565b946020939093013593505050565b6000806000604084860312156134aa57600080fd5b833567ffffffffffffffff808211156134c257600080fd5b818601915086601f8301126134d657600080fd5b8135818111156134e557600080fd5b8760208260051b85010111156134fa57600080fd5b602092830195509350508401356003811061351457600080fd5b809150509250925092565b6000602080838503121561353257600080fd5b823567ffffffffffffffff81111561354957600080fd5b8301601f8101851361355a57600080fd5b803561356861328c8261394f565b80828252848201915084840188868560051b870101111561358857600080fd5b600094505b838510156135ab57803583526001949094019391850191850161358d565b50979650505050505050565b6000602082840312156135c957600080fd5b6110ae826132dd565b6000602082840312156135e457600080fd5b5035919050565b600080604083850312156135fe57600080fd5b823591506133326020840161324f565b60006020828403121561362057600080fd5b81356110ae81613b00565b60006020828403121561363d57600080fd5b81516110ae81613b00565b60006020828403121561365a57600080fd5b813567ffffffffffffffff81111561367157600080fd5b8201601f8101841361368257600080fd5b611a28848235602084016131f7565b600080604083850312156136a457600080fd5b82359150602083013567ffffffffffffffff81111561342b57600080fd5b600080604083850312156136d557600080fd5b50508035926020909101359150565b600081518084526136fc8160208601602086016139d5565b601f01601f19169290920160200192915050565b6003811061372e57634e487b7160e01b600052602160045260246000fd5b9052565b600081516137448185602086016139d5565b9290920192915050565b600080845481600182811c91508083168061376a57607f831692505b602080841082141561378a57634e487b7160e01b86526022600452602486fd5b81801561379e57600181146137af576137dc565b60ff198616895284890196506137dc565b60008b81526020902060005b868110156137d45781548b8201529085019083016137bb565b505084890196505b5050505050506137ec8185613732565b95945050505050565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161382d8160178501602088016139d5565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000601791840191820152835161386a8160288401602088016139d5565b01602801949350505050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526138a860808301846136e4565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156138f1576138e1838551613710565b92840192918401916001016138ce565b50909695505050505050565b60208101610b6b8284613710565b6020815260006110ae60208301846136e4565b604051601f8201601f1916810167ffffffffffffffff8111828210171561394757613947613aea565b604052919050565b600067ffffffffffffffff82111561396957613969613aea565b5060051b60200190565b6000821982111561398657613986613a7c565b500190565b60008261399a5761399a613a92565b500490565b60008160001904831182151516156139b9576139b9613a7c565b500290565b6000828210156139d0576139d0613a7c565b500390565b60005b838110156139f05781810151838201526020016139d8565b83811115611ab85750506000910152565b600081613a1057613a10613a7c565b506000190190565b600181811c90821680613a2c57607f821691505b60208210811415611c2b57634e487b7160e01b600052602260045260246000fd5b6000600019821415613a6157613a61613a7c565b5060010190565b600082613a7757613a77613a92565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461126a57600080fdfed8acb51ff3d48f690a25887aaf234c4ae5a66ab9839243cd8e2b639cade0663ba26469706673582212201a38b560c3004b6265c1ee57068973f41ad102a74037c2c3a7a9531b0d9709ed64736f6c63430008070033
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.