Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
3,888 AGS
Holders
1,475
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 AGSLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
AGS
Compiler Version
v0.8.12+commit.f00d7308
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.12; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "./ERC721A.sol"; // ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ // ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ // ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ // ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ // ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ // ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ // ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ // ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ // ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ // ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ // ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ // ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ // ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ // ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ // ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ // ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ // ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ // ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ // ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ // ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ // ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ // ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ // ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ // ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ // ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ // ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ // ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ // ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ // ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ // ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ // ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ // ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ // ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ // ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ // ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ // ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ // ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ // ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ // ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ // ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ // ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ // ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ // ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ // ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ // ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ // ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ // ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ // ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ // ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ contract AGS is ERC721A, Ownable { using Strings for uint256; uint256 public supply = 8888; string public baseUri = "https://gateway.pinata.cloud/ipfs/QmWanHwbtoLn9PzWFx5Q16i3fToLkE2oMDmeFhrkLp11AF/"; string public extension = ".json"; bytes32 public tier1Whitelist; bytes32 public tier2Whitelist; bool public tier1MintLive; bool public tier2MintLive; bool public publicLive; uint8 public TIER1_MINT_CAP = 3; uint8 public TIER2_MINT_CAP = 3; uint8 public PUBLIC_MINT_CAP = 8; uint256 public TIER1_PRICE = 0.05 ether; uint256 public NON_TIER1_PRICE = 0.08 ether; address public withdrawAddress = 0xe3Cb43481F105108F5E0Fce0A3bC33A21e864C03; constructor() ERC721A("Astro Girls Society", "AGS", supply) {} function setMintCaps(uint8 _tier1, uint8 _tier2, uint8 _public) public onlyOwner { TIER1_MINT_CAP = _tier1; TIER2_MINT_CAP = _tier2; PUBLIC_MINT_CAP = _public; } function setWithdrawAddress(address _addr) public onlyOwner { withdrawAddress = _addr; } function setSupply(uint256 _supply) public onlyOwner { supply = _supply; } function setPrices(uint256 _tier1, uint256 _tier2) public onlyOwner { TIER1_PRICE = _tier1; NON_TIER1_PRICE = _tier2; } function setBaseUri(string calldata _baseUri) public onlyOwner { baseUri = _baseUri; } function setMerkleTier1(bytes32 _whitelist) external onlyOwner { tier1Whitelist = _whitelist; } function setMerkleTier2(bytes32 _whitelist) external onlyOwner { tier2Whitelist = _whitelist; } function setMintStages(bool _tier1, bool _tier2, bool _public) public onlyOwner { tier1MintLive = _tier1; tier2MintLive = _tier2; publicLive = _public; } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: Nonexistent token"); string memory currentBaseURI = baseUri; return bytes(currentBaseURI).length > 0 ? string( abi.encodePacked( currentBaseURI, tokenId.toString(), extension ) ) : ""; } function tier1Mint(uint8 numToMint, bytes32[] calldata proof) public payable { require(tier1MintLive, "Not live"); require(msg.value >= TIER1_PRICE * numToMint, "invalid price"); require(MerkleProof.verify(proof, tier1Whitelist, keccak256(abi.encodePacked(msg.sender))), "Leaf node could not be verified, check proof."); require(_numberMinted(msg.sender) + numToMint < TIER1_MINT_CAP + 1, "minted too many"); _safeMint(msg.sender, numToMint); } function tier2Mint(uint8 numToMint, bytes32[] calldata proof) public payable isMintValid(numToMint) { require(tier2MintLive, "Not live"); require(msg.value >= NON_TIER1_PRICE * numToMint, "invalid price"); require(MerkleProof.verify(proof, tier2Whitelist, keccak256(abi.encodePacked(msg.sender))), "Leaf node could not be verified, check proof."); require(_numberMinted(msg.sender) + numToMint < TIER2_MINT_CAP + 1, "minted too many"); _safeMint(msg.sender, numToMint); } function publicMint(uint8 numToMint) public payable isMintValid(numToMint){ require(publicLive, "Not live"); require(msg.value >= NON_TIER1_PRICE * numToMint, "invalid price"); require(_numberMinted(msg.sender) + numToMint < PUBLIC_MINT_CAP + 1, "minted too many"); _safeMint(msg.sender, numToMint); } function devMint(uint256 count, address to) public onlyOwner isMintValid(count) { _safeMint(to, count); } function checkTier1Whitelist(bytes32[] memory proof) external view returns (bool) { return MerkleProof.verify(proof, tier1Whitelist, keccak256(abi.encodePacked(msg.sender))); } function checkTier2Whitelist(bytes32[] memory proof) external view returns (bool) { return MerkleProof.verify(proof, tier2Whitelist, keccak256(abi.encodePacked(msg.sender))); } function checkNumMinted(address user) public view returns (uint256) { return _numberMinted(user); } function withdraw() public onlyOwner { payable(withdrawAddress).transfer(payable(address(this)).balance); } modifier isMintValid(uint256 numToMint) { require(totalSupply() + numToMint < supply + 1, "Not enough remaining for mint amount requested"); require(numToMint > 0, "Quantity needs to be more than 0"); _; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) 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 // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol) 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 { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _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); _afterTokenTransfer(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); _afterTokenTransfer(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 from incorrect owner"); 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); _afterTokenTransfer(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 Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/MerkleProof.sol) 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) { return processProof(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { 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 = _efficientHash(computedHash, proofElement); } else { // Hash(current element of the proof + current computed hash) computedHash = _efficientHash(proofElement, computedHash); } } return computedHash; } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // Creators: locationtba.eth, 2pmflow.eth pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..). * * Does not support burning tokens to address(0). */ contract ERC721A is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable { using Address for address; using Strings for uint256; struct TokenOwnership { address addr; uint64 startTimestamp; } struct AddressData { uint128 balance; uint128 numberMinted; } uint256 private currentIndex = 0; uint256 internal immutable maxBatchSize; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See ownershipOf implementation for details. mapping(uint256 => TokenOwnership) private _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // 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 * `maxBatchSize` refers to how much a minter can mint at a time. */ constructor( string memory name_, string memory symbol_, uint256 maxBatchSize_ ) { require(maxBatchSize_ > 0, "ERC721A: max batch size must be nonzero"); _name = name_; _symbol = symbol_; maxBatchSize = maxBatchSize_; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view override returns (uint256) { return currentIndex; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view override returns (uint256) { require(index < totalSupply(), "ERC721A: global index out of bounds"); return index; } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. * This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first. * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) { require(index < balanceOf(owner), "ERC721A: owner index out of bounds"); uint256 numMintedSoFar = totalSupply(); uint256 tokenIdsIdx = 0; address currOwnershipAddr = address(0); for (uint256 i = 0; i < numMintedSoFar; i++) { TokenOwnership memory ownership = _ownerships[i]; if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { if (tokenIdsIdx == index) { return i; } tokenIdsIdx++; } } revert("ERC721A: unable to get token of owner by index"); } /** * @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 || interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { require(owner != address(0), "ERC721A: balance query for the zero address"); return uint256(_addressData[owner].balance); } function _numberMinted(address owner) internal view returns (uint256) { require( owner != address(0), "ERC721A: number minted query for the zero address" ); return uint256(_addressData[owner].numberMinted); } function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { require(_exists(tokenId), "ERC721A: owner query for nonexistent token"); uint256 lowestTokenToCheck; if (tokenId >= maxBatchSize) { lowestTokenToCheck = tokenId - maxBatchSize + 1; } for (uint256 curr = tokenId; curr >= lowestTokenToCheck; curr--) { TokenOwnership memory ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } revert("ERC721A: unable to determine the owner of token"); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return ownershipOf(tokenId).addr; } /** * @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 override { address owner = ERC721A.ownerOf(tokenId); require(to != owner, "ERC721A: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721A: approve caller is not owner nor approved for all" ); _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { require(_exists(tokenId), "ERC721A: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public override { require(operator != _msgSender(), "ERC721A: 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 override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public override { _transfer(from, to, tokenId); require( _checkOnERC721Received(from, to, tokenId, _data), "ERC721A: 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`), */ function _exists(uint256 tokenId) internal view returns (bool) { return tokenId < currentIndex; } function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ""); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` cannot be larger than the max batch size. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { uint256 startTokenId = currentIndex; require(to != address(0), "ERC721A: mint to the zero address"); // We know if the first token in the batch doesn't exist, the other ones don't as well, because of serial ordering. require(!_exists(startTokenId), "ERC721A: token already minted"); require(quantity <= maxBatchSize, "ERC721A: quantity to mint too high"); _beforeTokenTransfers(address(0), to, startTokenId, quantity); AddressData memory addressData = _addressData[to]; _addressData[to] = AddressData( addressData.balance + uint128(quantity), addressData.numberMinted + uint128(quantity) ); _ownerships[startTokenId] = TokenOwnership(to, uint64(block.timestamp)); uint256 updatedIndex = startTokenId; for (uint256 i = 0; i < quantity; i++) { emit Transfer(address(0), to, updatedIndex); require( _checkOnERC721Received(address(0), to, updatedIndex, _data), "ERC721A: transfer to non ERC721Receiver implementer" ); updatedIndex++; } currentIndex = updatedIndex; _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * 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 ) private { TokenOwnership memory prevOwnership = ownershipOf(tokenId); bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr || getApproved(tokenId) == _msgSender() || isApprovedForAll(prevOwnership.addr, _msgSender())); require( isApprovedOrOwner, "ERC721A: transfer caller is not owner nor approved" ); require( prevOwnership.addr == from, "ERC721A: transfer from incorrect owner" ); require(to != address(0), "ERC721A: transfer to the zero address"); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); _addressData[from].balance -= 1; _addressData[to].balance += 1; _ownerships[tokenId] = TokenOwnership(to, uint64(block.timestamp)); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; if (_ownerships[nextTokenId].addr == address(0)) { if (_exists(nextTokenId)) { _ownerships[nextTokenId] = TokenOwnership( prevOwnership.addr, prevOwnership.startTimestamp ); } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } uint256 public nextOwnerToExplicitlySet = 0; /** * @dev Explicitly set `owners` to eliminate loops in future calls of ownerOf(). */ function _setOwnersExplicit(uint256 quantity) internal { uint256 oldNextOwnerToSet = nextOwnerToExplicitlySet; require(quantity > 0, "quantity must be nonzero"); uint256 endIndex = oldNextOwnerToSet + quantity - 1; if (endIndex > currentIndex - 1) { endIndex = currentIndex - 1; } // We know if the last one in the group exists, all in the group exist, due to serial ordering. require(_exists(endIndex), "not enough minted yet for this cleanup"); for (uint256 i = oldNextOwnerToSet; i <= endIndex; i++) { if (_ownerships[i].addr == address(0)) { TokenOwnership memory ownership = ownershipOf(i); _ownerships[i] = TokenOwnership( ownership.addr, ownership.startTimestamp ); } } nextOwnerToExplicitlySet = endIndex + 1; } /** * @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("ERC721A: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * 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`. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) 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 // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) 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 // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) 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 // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @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 * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) 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 // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) 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 // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) 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 // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) 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); /** * @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": false, "runs": 200 }, "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":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","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":"NON_TIER1_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBLIC_MINT_CAP","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TIER1_MINT_CAP","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TIER1_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TIER2_MINT_CAP","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"checkNumMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"checkTier1Whitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"checkTier2Whitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"count","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"devMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"extension","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextOwnerToExplicitlySet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicLive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"numToMint","type":"uint8"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseUri","type":"string"}],"name":"setBaseUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_whitelist","type":"bytes32"}],"name":"setMerkleTier1","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_whitelist","type":"bytes32"}],"name":"setMerkleTier2","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_tier1","type":"uint8"},{"internalType":"uint8","name":"_tier2","type":"uint8"},{"internalType":"uint8","name":"_public","type":"uint8"}],"name":"setMintCaps","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_tier1","type":"bool"},{"internalType":"bool","name":"_tier2","type":"bool"},{"internalType":"bool","name":"_public","type":"bool"}],"name":"setMintStages","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tier1","type":"uint256"},{"internalType":"uint256","name":"_tier2","type":"uint256"}],"name":"setPrices","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_supply","type":"uint256"}],"name":"setSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"setWithdrawAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"supply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"numToMint","type":"uint8"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"tier1Mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"tier1MintLive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tier1Whitelist","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"numToMint","type":"uint8"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"tier2Mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"tier2MintLive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tier2Whitelist","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"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":"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":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60a06040526000805560006007556122b86009556040518060800160405280605181526020016200606060519139600a90805190602001906200004492919062000347565b506040518060400160405280600581526020017f2e6a736f6e000000000000000000000000000000000000000000000000000000815250600b90805190602001906200009292919062000347565b506003600e60036101000a81548160ff021916908360ff1602179055506003600e60046101000a81548160ff021916908360ff1602179055506008600e60056101000a81548160ff021916908360ff16021790555066b1a2bc2ec50000600f5567011c37937e08000060105573e3cb43481f105108f5e0fce0a3bc33a21e864c03601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055503480156200016057600080fd5b506040518060400160405280601381526020017f417374726f204769726c7320536f6369657479000000000000000000000000008152506040518060400160405280600381526020017f41475300000000000000000000000000000000000000000000000000000000008152506009546000811162000216576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200020d906200047e565b60405180910390fd5b82600190805190602001906200022e92919062000347565b5081600290805190602001906200024792919062000347565b50806080818152505050505062000273620002676200027960201b60201c565b6200028160201b60201c565b62000505565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8280546200035590620004cf565b90600052602060002090601f016020900481019282620003795760008555620003c5565b82601f106200039457805160ff1916838001178555620003c5565b82800160010185558215620003c5579182015b82811115620003c4578251825591602001919060010190620003a7565b5b509050620003d49190620003d8565b5090565b5b80821115620003f3576000816000905550600101620003d9565b5090565b600082825260208201905092915050565b7f455243373231413a206d61782062617463682073697a65206d7573742062652060008201527f6e6f6e7a65726f00000000000000000000000000000000000000000000000000602082015250565b600062000466602783620003f7565b9150620004738262000408565b604082019050919050565b60006020820190508181036000830152620004998162000457565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620004e857607f821691505b60208210811415620004ff57620004fe620004a0565b5b50919050565b608051615b316200052f60003960008181612fb101528181612fda015261373a0152615b316000f3fe6080604052600436106102c95760003560e01c80636352211e11610175578063a5f1b488116100dc578063c1367f6b11610095578063d7224ba01161006f578063d7224ba014610acb578063e051567c14610af6578063e985e9c514610b21578063f2fde38b14610b5e576102c9565b8063c1367f6b14610a35578063c87b56dd14610a51578063ccf2b28f14610a8e576102c9565b8063a5f1b48814610925578063a765827a14610950578063aa36c4221461097b578063b7f751d8146109a4578063b88d4fde146109cf578063bbcc606b146109f8576102c9565b806394f8ae8e1161012e57806394f8ae8e1461083857806395d89b41146108545780639abc83201461087f578063a0bcfc7f146108aa578063a22cb465146108d3578063a4793a59146108fc576102c9565b80636352211e1461073557806370a0823114610772578063715018a6146107af578063858e83b5146107c6578063899d4b1a146107e25780638da5cb5b1461080d576102c9565b806323b872dd1161023457806337df8e80116101ed5780633ccfd60b116101c75780633ccfd60b1461068f5780633cff4a4e146106a657806342842e0e146106cf5780634f6ccce7146106f8576102c9565b806337df8e80146106125780633ab1a4941461063d5780633b4c4b2514610666576102c9565b806323b872dd14610504578063293cf87c1461052d5780632d1a12f6146105565780632d5537b01461057f5780632f745c59146105aa578063367bf858146105e7576102c9565b8063095ea7b311610286578063095ea7b3146104045780630ddef20b1461042d578063128e20391461045857806314cf19fe146104835780631581b600146104ae57806318160ddd146104d9576102c9565b806301ffc9a7146102ce578063047fc9aa1461030b57806305fefda7146103365780630605ede91461035f57806306fdde031461039c578063081812fc146103c7575b600080fd5b3480156102da57600080fd5b506102f560048036038101906102f09190613cdb565b610b87565b6040516103029190613d23565b60405180910390f35b34801561031757600080fd5b50610320610cd1565b60405161032d9190613d57565b60405180910390f35b34801561034257600080fd5b5061035d60048036038101906103589190613d9e565b610cd7565b005b34801561036b57600080fd5b5061038660048036038101906103819190613f6d565b610d65565b6040516103939190613d23565b60405180910390f35b3480156103a857600080fd5b506103b1610da1565b6040516103be919061403e565b60405180910390f35b3480156103d357600080fd5b506103ee60048036038101906103e99190614060565b610e33565b6040516103fb91906140ce565b60405180910390f35b34801561041057600080fd5b5061042b60048036038101906104269190614115565b610eb8565b005b34801561043957600080fd5b50610442610fd1565b60405161044f9190614171565b60405180910390f35b34801561046457600080fd5b5061046d610fe4565b60405161047a9190613d23565b60405180910390f35b34801561048f57600080fd5b50610498610ff7565b6040516104a59190613d57565b60405180910390f35b3480156104ba57600080fd5b506104c3610ffd565b6040516104d091906140ce565b60405180910390f35b3480156104e557600080fd5b506104ee611023565b6040516104fb9190613d57565b60405180910390f35b34801561051057600080fd5b5061052b6004803603810190610526919061418c565b61102c565b005b34801561053957600080fd5b50610554600480360381019061054f91906141df565b61103c565b005b34801561056257600080fd5b5061057d6004803603810190610578919061420c565b6110c2565b005b34801561058b57600080fd5b506105946111f3565b6040516105a1919061403e565b60405180910390f35b3480156105b657600080fd5b506105d160048036038101906105cc9190614115565b611281565b6040516105de9190613d57565b60405180910390f35b3480156105f357600080fd5b506105fc61147f565b6040516106099190614171565b60405180910390f35b34801561061e57600080fd5b50610627611492565b6040516106349190613d57565b60405180910390f35b34801561064957600080fd5b50610664600480360381019061065f919061424c565b611498565b005b34801561067257600080fd5b5061068d60048036038101906106889190614060565b611558565b005b34801561069b57600080fd5b506106a46115de565b005b3480156106b257600080fd5b506106cd60048036038101906106c891906142a5565b6116dc565b005b3480156106db57600080fd5b506106f660048036038101906106f1919061418c565b6117ab565b005b34801561070457600080fd5b5061071f600480360381019061071a9190614060565b6117cb565b60405161072c9190613d57565b60405180910390f35b34801561074157600080fd5b5061075c60048036038101906107579190614060565b61181e565b60405161076991906140ce565b60405180910390f35b34801561077e57600080fd5b506107996004803603810190610794919061424c565b611834565b6040516107a69190613d57565b60405180910390f35b3480156107bb57600080fd5b506107c461191d565b005b6107e060048036038101906107db9190614324565b6119a5565b005b3480156107ee57600080fd5b506107f7611b77565b6040516108049190614360565b60405180910390f35b34801561081957600080fd5b50610822611b7d565b60405161082f91906140ce565b60405180910390f35b610852600480360381019061084d91906143d6565b611ba7565b005b34801561086057600080fd5b50610869611e2e565b604051610876919061403e565b60405180910390f35b34801561088b57600080fd5b50610894611ec0565b6040516108a1919061403e565b60405180910390f35b3480156108b657600080fd5b506108d160048036038101906108cc919061448c565b611f4e565b005b3480156108df57600080fd5b506108fa60048036038101906108f591906144d9565b611fe0565b005b34801561090857600080fd5b50610923600480360381019061091e91906141df565b612161565b005b34801561093157600080fd5b5061093a6121e7565b6040516109479190614171565b60405180910390f35b34801561095c57600080fd5b506109656121fa565b6040516109729190614360565b60405180910390f35b34801561098757600080fd5b506109a2600480360381019061099d9190614519565b612200565b005b3480156109b057600080fd5b506109b96122d2565b6040516109c69190613d23565b60405180910390f35b3480156109db57600080fd5b506109f660048036038101906109f19190614621565b6122e5565b005b348015610a0457600080fd5b50610a1f6004803603810190610a1a9190613f6d565b612341565b604051610a2c9190613d23565b60405180910390f35b610a4f6004803603810190610a4a91906143d6565b61237d565b005b348015610a5d57600080fd5b50610a786004803603810190610a739190614060565b61255a565b604051610a85919061403e565b60405180910390f35b348015610a9a57600080fd5b50610ab56004803603810190610ab0919061424c565b612687565b604051610ac29190613d57565b60405180910390f35b348015610ad757600080fd5b50610ae0612699565b604051610aed9190613d57565b60405180910390f35b348015610b0257600080fd5b50610b0b61269f565b604051610b189190613d23565b60405180910390f35b348015610b2d57600080fd5b50610b486004803603810190610b4391906146a4565b6126b2565b604051610b559190613d23565b60405180910390f35b348015610b6a57600080fd5b50610b856004803603810190610b80919061424c565b612746565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610c5257507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610cba57507f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610cca5750610cc98261283e565b5b9050919050565b60095481565b610cdf6128a8565b73ffffffffffffffffffffffffffffffffffffffff16610cfd611b7d565b73ffffffffffffffffffffffffffffffffffffffff1614610d53576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d4a90614730565b60405180910390fd5b81600f81905550806010819055505050565b6000610d9a82600d5433604051602001610d7f9190614798565b604051602081830303815290604052805190602001206128b0565b9050919050565b606060018054610db0906147e2565b80601f0160208091040260200160405190810160405280929190818152602001828054610ddc906147e2565b8015610e295780601f10610dfe57610100808354040283529160200191610e29565b820191906000526020600020905b815481529060010190602001808311610e0c57829003601f168201915b5050505050905090565b6000610e3e826128c7565b610e7d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e7490614886565b60405180910390fd5b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610ec38261181e565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610f34576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f2b90614918565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610f536128a8565b73ffffffffffffffffffffffffffffffffffffffff161480610f825750610f8181610f7c6128a8565b6126b2565b5b610fc1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fb8906149aa565b60405180910390fd5b610fcc8383836128d4565b505050565b600e60039054906101000a900460ff1681565b600e60019054906101000a900460ff1681565b600f5481565b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008054905090565b611037838383612986565b505050565b6110446128a8565b73ffffffffffffffffffffffffffffffffffffffff16611062611b7d565b73ffffffffffffffffffffffffffffffffffffffff16146110b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110af90614730565b60405180910390fd5b80600c8190555050565b6110ca6128a8565b73ffffffffffffffffffffffffffffffffffffffff166110e8611b7d565b73ffffffffffffffffffffffffffffffffffffffff161461113e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161113590614730565b60405180910390fd5b81600160095461114e91906149f9565b81611157611023565b61116191906149f9565b106111a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161119890614ac1565b60405180910390fd5b600081116111e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111db90614b2d565b60405180910390fd5b6111ee8284612f3f565b505050565b600b8054611200906147e2565b80601f016020809104026020016040519081016040528092919081815260200182805461122c906147e2565b80156112795780601f1061124e57610100808354040283529160200191611279565b820191906000526020600020905b81548152906001019060200180831161125c57829003601f168201915b505050505081565b600061128c83611834565b82106112cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112c490614bbf565b60405180910390fd5b60006112d7611023565b905060008060005b8381101561143d576000600360008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146113d157806000015192505b8773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611429578684141561141a578195505050505050611479565b838061142590614bdf565b9450505b50808061143590614bdf565b9150506112df565b506040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161147090614c9a565b60405180910390fd5b92915050565b600e60049054906101000a900460ff1681565b60105481565b6114a06128a8565b73ffffffffffffffffffffffffffffffffffffffff166114be611b7d565b73ffffffffffffffffffffffffffffffffffffffff1614611514576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161150b90614730565b60405180910390fd5b80601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6115606128a8565b73ffffffffffffffffffffffffffffffffffffffff1661157e611b7d565b73ffffffffffffffffffffffffffffffffffffffff16146115d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115cb90614730565b60405180910390fd5b8060098190555050565b6115e66128a8565b73ffffffffffffffffffffffffffffffffffffffff16611604611b7d565b73ffffffffffffffffffffffffffffffffffffffff161461165a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161165190614730565b60405180910390fd5b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc3073ffffffffffffffffffffffffffffffffffffffff16319081150290604051600060405180830381858888f193505050501580156116d9573d6000803e3d6000fd5b50565b6116e46128a8565b73ffffffffffffffffffffffffffffffffffffffff16611702611b7d565b73ffffffffffffffffffffffffffffffffffffffff1614611758576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161174f90614730565b60405180910390fd5b82600e60006101000a81548160ff02191690831515021790555081600e60016101000a81548160ff02191690831515021790555080600e60026101000a81548160ff021916908315150217905550505050565b6117c6838383604051806020016040528060008152506122e5565b505050565b60006117d5611023565b8210611816576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161180d90614d2c565b60405180910390fd5b819050919050565b600061182982612f5d565b600001519050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156118a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161189c90614dbe565b60405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff169050919050565b6119256128a8565b73ffffffffffffffffffffffffffffffffffffffff16611943611b7d565b73ffffffffffffffffffffffffffffffffffffffff1614611999576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161199090614730565b60405180910390fd5b6119a36000613160565b565b8060ff1660016009546119b891906149f9565b816119c1611023565b6119cb91906149f9565b10611a0b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a0290614ac1565b60405180910390fd5b60008111611a4e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a4590614b2d565b60405180910390fd5b600e60029054906101000a900460ff16611a9d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a9490614e2a565b60405180910390fd5b8160ff16601054611aae9190614e4a565b341015611af0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ae790614ef0565b60405180910390fd5b6001600e60059054906101000a900460ff16611b0c9190614f10565b60ff168260ff16611b1c33613226565b611b2691906149f9565b10611b66576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b5d90614f93565b60405180910390fd5b611b73338360ff16612f3f565b5050565b600c5481565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b8260ff166001600954611bba91906149f9565b81611bc3611023565b611bcd91906149f9565b10611c0d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c0490614ac1565b60405180910390fd5b60008111611c50576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c4790614b2d565b60405180910390fd5b600e60019054906101000a900460ff16611c9f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c9690614e2a565b60405180910390fd5b8360ff16601054611cb09190614e4a565b341015611cf2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ce990614ef0565b60405180910390fd5b611d66838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600d5433604051602001611d4b9190614798565b604051602081830303815290604052805190602001206128b0565b611da5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d9c90615025565b60405180910390fd5b6001600e60049054906101000a900460ff16611dc19190614f10565b60ff168460ff16611dd133613226565b611ddb91906149f9565b10611e1b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e1290614f93565b60405180910390fd5b611e28338560ff16612f3f565b50505050565b606060028054611e3d906147e2565b80601f0160208091040260200160405190810160405280929190818152602001828054611e69906147e2565b8015611eb65780601f10611e8b57610100808354040283529160200191611eb6565b820191906000526020600020905b815481529060010190602001808311611e9957829003601f168201915b5050505050905090565b600a8054611ecd906147e2565b80601f0160208091040260200160405190810160405280929190818152602001828054611ef9906147e2565b8015611f465780601f10611f1b57610100808354040283529160200191611f46565b820191906000526020600020905b815481529060010190602001808311611f2957829003601f168201915b505050505081565b611f566128a8565b73ffffffffffffffffffffffffffffffffffffffff16611f74611b7d565b73ffffffffffffffffffffffffffffffffffffffff1614611fca576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fc190614730565b60405180910390fd5b8181600a9190611fdb929190613b92565b505050565b611fe86128a8565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612056576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161204d90615091565b60405180910390fd5b80600660006120636128a8565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166121106128a8565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516121559190613d23565b60405180910390a35050565b6121696128a8565b73ffffffffffffffffffffffffffffffffffffffff16612187611b7d565b73ffffffffffffffffffffffffffffffffffffffff16146121dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121d490614730565b60405180910390fd5b80600d8190555050565b600e60059054906101000a900460ff1681565b600d5481565b6122086128a8565b73ffffffffffffffffffffffffffffffffffffffff16612226611b7d565b73ffffffffffffffffffffffffffffffffffffffff161461227c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161227390614730565b60405180910390fd5b82600e60036101000a81548160ff021916908360ff16021790555081600e60046101000a81548160ff021916908360ff16021790555080600e60056101000a81548160ff021916908360ff160217905550505050565b600e60029054906101000a900460ff1681565b6122f0848484612986565b6122fc8484848461330f565b61233b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161233290615123565b60405180910390fd5b50505050565b600061237682600c543360405160200161235b9190614798565b604051602081830303815290604052805190602001206128b0565b9050919050565b600e60009054906101000a900460ff166123cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123c390614e2a565b60405180910390fd5b8260ff16600f546123dd9190614e4a565b34101561241f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161241690614ef0565b60405180910390fd5b612493828280806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600c54336040516020016124789190614798565b604051602081830303815290604052805190602001206128b0565b6124d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124c990615025565b60405180910390fd5b6001600e60039054906101000a900460ff166124ee9190614f10565b60ff168360ff166124fe33613226565b61250891906149f9565b10612548576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161253f90614f93565b60405180910390fd5b612555338460ff16612f3f565b505050565b6060612565826128c7565b6125a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161259b906151b5565b60405180910390fd5b6000600a80546125b3906147e2565b80601f01602080910402602001604051908101604052809291908181526020018280546125df906147e2565b801561262c5780601f106126015761010080835404028352916020019161262c565b820191906000526020600020905b81548152906001019060200180831161260f57829003601f168201915b505050505090506000815111612651576040518060200160405280600081525061267f565b8061265b84613497565b600b60405160200161266f939291906152a5565b6040516020818303038152906040525b915050919050565b600061269282613226565b9050919050565b60075481565b600e60009054906101000a900460ff1681565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61274e6128a8565b73ffffffffffffffffffffffffffffffffffffffff1661276c611b7d565b73ffffffffffffffffffffffffffffffffffffffff16146127c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127b990614730565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612832576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161282990615348565b60405180910390fd5b61283b81613160565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b6000826128bd85846135f8565b1490509392505050565b6000805482109050919050565b826005600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600061299182612f5d565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff166129b86128a8565b73ffffffffffffffffffffffffffffffffffffffff161480612a1457506129dd6128a8565b73ffffffffffffffffffffffffffffffffffffffff166129fc84610e33565b73ffffffffffffffffffffffffffffffffffffffff16145b80612a305750612a2f8260000151612a2a6128a8565b6126b2565b5b905080612a72576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a69906153da565b60405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1614612ae4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612adb9061546c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612b54576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b4b906154fe565b60405180910390fd5b612b61858585600161366d565b612b7160008484600001516128d4565b6001600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff16612bdf919061553a565b92506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055506001600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff16612c83919061556e565b92506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060405180604001604052808573ffffffffffffffffffffffffffffffffffffffff1681526020014267ffffffffffffffff168152506003600085815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055509050506000600184612d8991906149f9565b9050600073ffffffffffffffffffffffffffffffffffffffff166003600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415612ecf57612dff816128c7565b15612ece576040518060400160405280846000015173ffffffffffffffffffffffffffffffffffffffff168152602001846020015167ffffffffffffffff168152506003600083815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055509050505b5b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612f378686866001613673565b505050505050565b612f59828260405180602001604052806000815250613679565b5050565b612f65613c18565b612f6e826128c7565b612fad576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fa490615626565b60405180910390fd5b60007f000000000000000000000000000000000000000000000000000000000000000083106130115760017f0000000000000000000000000000000000000000000000000000000000000000846130049190615646565b61300e91906149f9565b90505b60008390505b81811061311f576000600360008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161461310b5780935050505061315b565b5080806131179061567a565b915050613017565b506040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161315290615716565b60405180910390fd5b919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613297576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161328e906157a8565b60405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff169050919050565b60006133308473ffffffffffffffffffffffffffffffffffffffff16613b58565b1561348a578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026133596128a8565b8786866040518563ffffffff1660e01b815260040161337b949392919061581d565b6020604051808303816000875af19250505080156133b757506040513d601f19601f820116820180604052508101906133b4919061587e565b60015b61343a573d80600081146133e7576040519150601f19603f3d011682016040523d82523d6000602084013e6133ec565b606091505b50600081511415613432576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161342990615123565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505061348f565b600190505b949350505050565b606060008214156134df576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506135f3565b600082905060005b600082146135115780806134fa90614bdf565b915050600a8261350a91906158da565b91506134e7565b60008167ffffffffffffffff81111561352d5761352c613df4565b5b6040519080825280601f01601f19166020018201604052801561355f5781602001600182028036833780820191505090505b5090505b600085146135ec576001826135789190615646565b9150600a85613587919061590b565b603061359391906149f9565b60f81b8183815181106135a9576135a861593c565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856135e591906158da565b9450613563565b8093505050505b919050565b60008082905060005b845181101561366257600085828151811061361f5761361e61593c565b5b602002602001015190508083116136415761363a8382613b7b565b925061364e565b61364b8184613b7b565b92505b50808061365a90614bdf565b915050613601565b508091505092915050565b50505050565b50505050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156136ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136e6906159dd565b60405180910390fd5b6136f8816128c7565b15613738576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161372f90615a49565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000083111561379b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161379290615adb565b60405180910390fd5b6137a8600085838661366d565b6000600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206040518060400160405290816000820160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681526020016000820160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681525050905060405180604001604052808583600001516138a5919061556e565b6fffffffffffffffffffffffffffffffff1681526020018583602001516138cc919061556e565b6fffffffffffffffffffffffffffffffff16815250600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008201518160000160006101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060208201518160000160106101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555090505060405180604001604052808673ffffffffffffffffffffffffffffffffffffffff1681526020014267ffffffffffffffff168152506003600084815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550905050600082905060005b85811015613b3b57818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613adb600088848861330f565b613b1a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b1190615123565b60405180910390fd5b8180613b2590614bdf565b9250508080613b3390614bdf565b915050613a6a565b5080600081905550613b506000878588613673565b505050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600082600052816020526040600020905092915050565b828054613b9e906147e2565b90600052602060002090601f016020900481019282613bc05760008555613c07565b82601f10613bd957803560ff1916838001178555613c07565b82800160010185558215613c07579182015b82811115613c06578235825591602001919060010190613beb565b5b509050613c149190613c52565b5090565b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681525090565b5b80821115613c6b576000816000905550600101613c53565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613cb881613c83565b8114613cc357600080fd5b50565b600081359050613cd581613caf565b92915050565b600060208284031215613cf157613cf0613c79565b5b6000613cff84828501613cc6565b91505092915050565b60008115159050919050565b613d1d81613d08565b82525050565b6000602082019050613d386000830184613d14565b92915050565b6000819050919050565b613d5181613d3e565b82525050565b6000602082019050613d6c6000830184613d48565b92915050565b613d7b81613d3e565b8114613d8657600080fd5b50565b600081359050613d9881613d72565b92915050565b60008060408385031215613db557613db4613c79565b5b6000613dc385828601613d89565b9250506020613dd485828601613d89565b9150509250929050565b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613e2c82613de3565b810181811067ffffffffffffffff82111715613e4b57613e4a613df4565b5b80604052505050565b6000613e5e613c6f565b9050613e6a8282613e23565b919050565b600067ffffffffffffffff821115613e8a57613e89613df4565b5b602082029050602081019050919050565b600080fd5b6000819050919050565b613eb381613ea0565b8114613ebe57600080fd5b50565b600081359050613ed081613eaa565b92915050565b6000613ee9613ee484613e6f565b613e54565b90508083825260208201905060208402830185811115613f0c57613f0b613e9b565b5b835b81811015613f355780613f218882613ec1565b845260208401935050602081019050613f0e565b5050509392505050565b600082601f830112613f5457613f53613dde565b5b8135613f64848260208601613ed6565b91505092915050565b600060208284031215613f8357613f82613c79565b5b600082013567ffffffffffffffff811115613fa157613fa0613c7e565b5b613fad84828501613f3f565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613ff0578082015181840152602081019050613fd5565b83811115613fff576000848401525b50505050565b600061401082613fb6565b61401a8185613fc1565b935061402a818560208601613fd2565b61403381613de3565b840191505092915050565b600060208201905081810360008301526140588184614005565b905092915050565b60006020828403121561407657614075613c79565b5b600061408484828501613d89565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006140b88261408d565b9050919050565b6140c8816140ad565b82525050565b60006020820190506140e360008301846140bf565b92915050565b6140f2816140ad565b81146140fd57600080fd5b50565b60008135905061410f816140e9565b92915050565b6000806040838503121561412c5761412b613c79565b5b600061413a85828601614100565b925050602061414b85828601613d89565b9150509250929050565b600060ff82169050919050565b61416b81614155565b82525050565b60006020820190506141866000830184614162565b92915050565b6000806000606084860312156141a5576141a4613c79565b5b60006141b386828701614100565b93505060206141c486828701614100565b92505060406141d586828701613d89565b9150509250925092565b6000602082840312156141f5576141f4613c79565b5b600061420384828501613ec1565b91505092915050565b6000806040838503121561422357614222613c79565b5b600061423185828601613d89565b925050602061424285828601614100565b9150509250929050565b60006020828403121561426257614261613c79565b5b600061427084828501614100565b91505092915050565b61428281613d08565b811461428d57600080fd5b50565b60008135905061429f81614279565b92915050565b6000806000606084860312156142be576142bd613c79565b5b60006142cc86828701614290565b93505060206142dd86828701614290565b92505060406142ee86828701614290565b9150509250925092565b61430181614155565b811461430c57600080fd5b50565b60008135905061431e816142f8565b92915050565b60006020828403121561433a57614339613c79565b5b60006143488482850161430f565b91505092915050565b61435a81613ea0565b82525050565b60006020820190506143756000830184614351565b92915050565b600080fd5b60008083601f84011261439657614395613dde565b5b8235905067ffffffffffffffff8111156143b3576143b261437b565b5b6020830191508360208202830111156143cf576143ce613e9b565b5b9250929050565b6000806000604084860312156143ef576143ee613c79565b5b60006143fd8682870161430f565b935050602084013567ffffffffffffffff81111561441e5761441d613c7e565b5b61442a86828701614380565b92509250509250925092565b60008083601f84011261444c5761444b613dde565b5b8235905067ffffffffffffffff8111156144695761446861437b565b5b60208301915083600182028301111561448557614484613e9b565b5b9250929050565b600080602083850312156144a3576144a2613c79565b5b600083013567ffffffffffffffff8111156144c1576144c0613c7e565b5b6144cd85828601614436565b92509250509250929050565b600080604083850312156144f0576144ef613c79565b5b60006144fe85828601614100565b925050602061450f85828601614290565b9150509250929050565b60008060006060848603121561453257614531613c79565b5b60006145408682870161430f565b93505060206145518682870161430f565b92505060406145628682870161430f565b9150509250925092565b600080fd5b600067ffffffffffffffff82111561458c5761458b613df4565b5b61459582613de3565b9050602081019050919050565b82818337600083830152505050565b60006145c46145bf84614571565b613e54565b9050828152602081018484840111156145e0576145df61456c565b5b6145eb8482856145a2565b509392505050565b600082601f83011261460857614607613dde565b5b81356146188482602086016145b1565b91505092915050565b6000806000806080858703121561463b5761463a613c79565b5b600061464987828801614100565b945050602061465a87828801614100565b935050604061466b87828801613d89565b925050606085013567ffffffffffffffff81111561468c5761468b613c7e565b5b614698878288016145f3565b91505092959194509250565b600080604083850312156146bb576146ba613c79565b5b60006146c985828601614100565b92505060206146da85828601614100565b9150509250929050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061471a602083613fc1565b9150614725826146e4565b602082019050919050565b600060208201905081810360008301526147498161470d565b9050919050565b60008160601b9050919050565b600061476882614750565b9050919050565b600061477a8261475d565b9050919050565b61479261478d826140ad565b61476f565b82525050565b60006147a48284614781565b60148201915081905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806147fa57607f821691505b6020821081141561480e5761480d6147b3565b5b50919050565b7f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560008201527f78697374656e7420746f6b656e00000000000000000000000000000000000000602082015250565b6000614870602d83613fc1565b915061487b82614814565b604082019050919050565b6000602082019050818103600083015261489f81614863565b9050919050565b7f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60008201527f6572000000000000000000000000000000000000000000000000000000000000602082015250565b6000614902602283613fc1565b915061490d826148a6565b604082019050919050565b60006020820190508181036000830152614931816148f5565b9050919050565b7f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f76656420666f7220616c6c00000000000000602082015250565b6000614994603983613fc1565b915061499f82614938565b604082019050919050565b600060208201905081810360008301526149c381614987565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614a0482613d3e565b9150614a0f83613d3e565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614a4457614a436149ca565b5b828201905092915050565b7f4e6f7420656e6f7567682072656d61696e696e6720666f72206d696e7420616d60008201527f6f756e7420726571756573746564000000000000000000000000000000000000602082015250565b6000614aab602e83613fc1565b9150614ab682614a4f565b604082019050919050565b60006020820190508181036000830152614ada81614a9e565b9050919050565b7f5175616e74697479206e6565647320746f206265206d6f7265207468616e2030600082015250565b6000614b17602083613fc1565b9150614b2282614ae1565b602082019050919050565b60006020820190508181036000830152614b4681614b0a565b9050919050565b7f455243373231413a206f776e657220696e646578206f7574206f6620626f756e60008201527f6473000000000000000000000000000000000000000000000000000000000000602082015250565b6000614ba9602283613fc1565b9150614bb482614b4d565b604082019050919050565b60006020820190508181036000830152614bd881614b9c565b9050919050565b6000614bea82613d3e565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614c1d57614c1c6149ca565b5b600182019050919050565b7f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060008201527f6f776e657220627920696e646578000000000000000000000000000000000000602082015250565b6000614c84602e83613fc1565b9150614c8f82614c28565b604082019050919050565b60006020820190508181036000830152614cb381614c77565b9050919050565b7f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f7560008201527f6e64730000000000000000000000000000000000000000000000000000000000602082015250565b6000614d16602383613fc1565b9150614d2182614cba565b604082019050919050565b60006020820190508181036000830152614d4581614d09565b9050919050565b7f455243373231413a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b6000614da8602b83613fc1565b9150614db382614d4c565b604082019050919050565b60006020820190508181036000830152614dd781614d9b565b9050919050565b7f4e6f74206c697665000000000000000000000000000000000000000000000000600082015250565b6000614e14600883613fc1565b9150614e1f82614dde565b602082019050919050565b60006020820190508181036000830152614e4381614e07565b9050919050565b6000614e5582613d3e565b9150614e6083613d3e565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614e9957614e986149ca565b5b828202905092915050565b7f696e76616c696420707269636500000000000000000000000000000000000000600082015250565b6000614eda600d83613fc1565b9150614ee582614ea4565b602082019050919050565b60006020820190508181036000830152614f0981614ecd565b9050919050565b6000614f1b82614155565b9150614f2683614155565b92508260ff03821115614f3c57614f3b6149ca565b5b828201905092915050565b7f6d696e74656420746f6f206d616e790000000000000000000000000000000000600082015250565b6000614f7d600f83613fc1565b9150614f8882614f47565b602082019050919050565b60006020820190508181036000830152614fac81614f70565b9050919050565b7f4c656166206e6f646520636f756c64206e6f742062652076657269666965642c60008201527f20636865636b2070726f6f662e00000000000000000000000000000000000000602082015250565b600061500f602d83613fc1565b915061501a82614fb3565b604082019050919050565b6000602082019050818103600083015261503e81615002565b9050919050565b7f455243373231413a20617070726f766520746f2063616c6c6572000000000000600082015250565b600061507b601a83613fc1565b915061508682615045565b602082019050919050565b600060208201905081810360008301526150aa8161506e565b9050919050565b7f455243373231413a207472616e7366657220746f206e6f6e204552433732315260008201527f6563656976657220696d706c656d656e74657200000000000000000000000000602082015250565b600061510d603383613fc1565b9150615118826150b1565b604082019050919050565b6000602082019050818103600083015261513c81615100565b9050919050565b7f4552433732314d657461646174613a204e6f6e6578697374656e7420746f6b6560008201527f6e00000000000000000000000000000000000000000000000000000000000000602082015250565b600061519f602183613fc1565b91506151aa82615143565b604082019050919050565b600060208201905081810360008301526151ce81615192565b9050919050565b600081905092915050565b60006151eb82613fb6565b6151f581856151d5565b9350615205818560208601613fd2565b80840191505092915050565b60008190508160005260206000209050919050565b60008154615233816147e2565b61523d81866151d5565b9450600182166000811461525857600181146152695761529c565b60ff1983168652818601935061529c565b61527285615211565b60005b8381101561529457815481890152600182019150602081019050615275565b838801955050505b50505092915050565b60006152b182866151e0565b91506152bd82856151e0565b91506152c98284615226565b9150819050949350505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000615332602683613fc1565b915061533d826152d6565b604082019050919050565b6000602082019050818103600083015261536181615325565b9050919050565b7f455243373231413a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b60006153c4603283613fc1565b91506153cf82615368565b604082019050919050565b600060208201905081810360008301526153f3816153b7565b9050919050565b7f455243373231413a207472616e736665722066726f6d20696e636f727265637460008201527f206f776e65720000000000000000000000000000000000000000000000000000602082015250565b6000615456602683613fc1565b9150615461826153fa565b604082019050919050565b6000602082019050818103600083015261548581615449565b9050919050565b7f455243373231413a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b60006154e8602583613fc1565b91506154f38261548c565b604082019050919050565b60006020820190508181036000830152615517816154db565b9050919050565b60006fffffffffffffffffffffffffffffffff82169050919050565b60006155458261551e565b91506155508361551e565b925082821015615563576155626149ca565b5b828203905092915050565b60006155798261551e565b91506155848361551e565b9250826fffffffffffffffffffffffffffffffff038211156155a9576155a86149ca565b5b828201905092915050565b7f455243373231413a206f776e657220717565727920666f72206e6f6e6578697360008201527f74656e7420746f6b656e00000000000000000000000000000000000000000000602082015250565b6000615610602a83613fc1565b915061561b826155b4565b604082019050919050565b6000602082019050818103600083015261563f81615603565b9050919050565b600061565182613d3e565b915061565c83613d3e565b92508282101561566f5761566e6149ca565b5b828203905092915050565b600061568582613d3e565b91506000821415615699576156986149ca565b5b600182039050919050565b7f455243373231413a20756e61626c6520746f2064657465726d696e652074686560008201527f206f776e6572206f6620746f6b656e0000000000000000000000000000000000602082015250565b6000615700602f83613fc1565b915061570b826156a4565b604082019050919050565b6000602082019050818103600083015261572f816156f3565b9050919050565b7f455243373231413a206e756d626572206d696e74656420717565727920666f7260008201527f20746865207a65726f2061646472657373000000000000000000000000000000602082015250565b6000615792603183613fc1565b915061579d82615736565b604082019050919050565b600060208201905081810360008301526157c181615785565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006157ef826157c8565b6157f981856157d3565b9350615809818560208601613fd2565b61581281613de3565b840191505092915050565b600060808201905061583260008301876140bf565b61583f60208301866140bf565b61584c6040830185613d48565b818103606083015261585e81846157e4565b905095945050505050565b60008151905061587881613caf565b92915050565b60006020828403121561589457615893613c79565b5b60006158a284828501615869565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006158e582613d3e565b91506158f083613d3e565b925082615900576158ff6158ab565b5b828204905092915050565b600061591682613d3e565b915061592183613d3e565b925082615931576159306158ab565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f455243373231413a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b60006159c7602183613fc1565b91506159d28261596b565b604082019050919050565b600060208201905081810360008301526159f6816159ba565b9050919050565b7f455243373231413a20746f6b656e20616c7265616479206d696e746564000000600082015250565b6000615a33601d83613fc1565b9150615a3e826159fd565b602082019050919050565b60006020820190508181036000830152615a6281615a26565b9050919050565b7f455243373231413a207175616e7469747920746f206d696e7420746f6f20686960008201527f6768000000000000000000000000000000000000000000000000000000000000602082015250565b6000615ac5602283613fc1565b9150615ad082615a69565b604082019050919050565b60006020820190508181036000830152615af481615ab8565b905091905056fea2646970667358221220e7bf6531363ec09fafcebb47f73390c4b64bf2efae6209b728980a896e59466d64736f6c634300080c003368747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066732f516d57616e487762746f4c6e39507a57467835513136693366546f4c6b45326f4d446d654668726b4c70313141462f
Deployed Bytecode
0x6080604052600436106102c95760003560e01c80636352211e11610175578063a5f1b488116100dc578063c1367f6b11610095578063d7224ba01161006f578063d7224ba014610acb578063e051567c14610af6578063e985e9c514610b21578063f2fde38b14610b5e576102c9565b8063c1367f6b14610a35578063c87b56dd14610a51578063ccf2b28f14610a8e576102c9565b8063a5f1b48814610925578063a765827a14610950578063aa36c4221461097b578063b7f751d8146109a4578063b88d4fde146109cf578063bbcc606b146109f8576102c9565b806394f8ae8e1161012e57806394f8ae8e1461083857806395d89b41146108545780639abc83201461087f578063a0bcfc7f146108aa578063a22cb465146108d3578063a4793a59146108fc576102c9565b80636352211e1461073557806370a0823114610772578063715018a6146107af578063858e83b5146107c6578063899d4b1a146107e25780638da5cb5b1461080d576102c9565b806323b872dd1161023457806337df8e80116101ed5780633ccfd60b116101c75780633ccfd60b1461068f5780633cff4a4e146106a657806342842e0e146106cf5780634f6ccce7146106f8576102c9565b806337df8e80146106125780633ab1a4941461063d5780633b4c4b2514610666576102c9565b806323b872dd14610504578063293cf87c1461052d5780632d1a12f6146105565780632d5537b01461057f5780632f745c59146105aa578063367bf858146105e7576102c9565b8063095ea7b311610286578063095ea7b3146104045780630ddef20b1461042d578063128e20391461045857806314cf19fe146104835780631581b600146104ae57806318160ddd146104d9576102c9565b806301ffc9a7146102ce578063047fc9aa1461030b57806305fefda7146103365780630605ede91461035f57806306fdde031461039c578063081812fc146103c7575b600080fd5b3480156102da57600080fd5b506102f560048036038101906102f09190613cdb565b610b87565b6040516103029190613d23565b60405180910390f35b34801561031757600080fd5b50610320610cd1565b60405161032d9190613d57565b60405180910390f35b34801561034257600080fd5b5061035d60048036038101906103589190613d9e565b610cd7565b005b34801561036b57600080fd5b5061038660048036038101906103819190613f6d565b610d65565b6040516103939190613d23565b60405180910390f35b3480156103a857600080fd5b506103b1610da1565b6040516103be919061403e565b60405180910390f35b3480156103d357600080fd5b506103ee60048036038101906103e99190614060565b610e33565b6040516103fb91906140ce565b60405180910390f35b34801561041057600080fd5b5061042b60048036038101906104269190614115565b610eb8565b005b34801561043957600080fd5b50610442610fd1565b60405161044f9190614171565b60405180910390f35b34801561046457600080fd5b5061046d610fe4565b60405161047a9190613d23565b60405180910390f35b34801561048f57600080fd5b50610498610ff7565b6040516104a59190613d57565b60405180910390f35b3480156104ba57600080fd5b506104c3610ffd565b6040516104d091906140ce565b60405180910390f35b3480156104e557600080fd5b506104ee611023565b6040516104fb9190613d57565b60405180910390f35b34801561051057600080fd5b5061052b6004803603810190610526919061418c565b61102c565b005b34801561053957600080fd5b50610554600480360381019061054f91906141df565b61103c565b005b34801561056257600080fd5b5061057d6004803603810190610578919061420c565b6110c2565b005b34801561058b57600080fd5b506105946111f3565b6040516105a1919061403e565b60405180910390f35b3480156105b657600080fd5b506105d160048036038101906105cc9190614115565b611281565b6040516105de9190613d57565b60405180910390f35b3480156105f357600080fd5b506105fc61147f565b6040516106099190614171565b60405180910390f35b34801561061e57600080fd5b50610627611492565b6040516106349190613d57565b60405180910390f35b34801561064957600080fd5b50610664600480360381019061065f919061424c565b611498565b005b34801561067257600080fd5b5061068d60048036038101906106889190614060565b611558565b005b34801561069b57600080fd5b506106a46115de565b005b3480156106b257600080fd5b506106cd60048036038101906106c891906142a5565b6116dc565b005b3480156106db57600080fd5b506106f660048036038101906106f1919061418c565b6117ab565b005b34801561070457600080fd5b5061071f600480360381019061071a9190614060565b6117cb565b60405161072c9190613d57565b60405180910390f35b34801561074157600080fd5b5061075c60048036038101906107579190614060565b61181e565b60405161076991906140ce565b60405180910390f35b34801561077e57600080fd5b506107996004803603810190610794919061424c565b611834565b6040516107a69190613d57565b60405180910390f35b3480156107bb57600080fd5b506107c461191d565b005b6107e060048036038101906107db9190614324565b6119a5565b005b3480156107ee57600080fd5b506107f7611b77565b6040516108049190614360565b60405180910390f35b34801561081957600080fd5b50610822611b7d565b60405161082f91906140ce565b60405180910390f35b610852600480360381019061084d91906143d6565b611ba7565b005b34801561086057600080fd5b50610869611e2e565b604051610876919061403e565b60405180910390f35b34801561088b57600080fd5b50610894611ec0565b6040516108a1919061403e565b60405180910390f35b3480156108b657600080fd5b506108d160048036038101906108cc919061448c565b611f4e565b005b3480156108df57600080fd5b506108fa60048036038101906108f591906144d9565b611fe0565b005b34801561090857600080fd5b50610923600480360381019061091e91906141df565b612161565b005b34801561093157600080fd5b5061093a6121e7565b6040516109479190614171565b60405180910390f35b34801561095c57600080fd5b506109656121fa565b6040516109729190614360565b60405180910390f35b34801561098757600080fd5b506109a2600480360381019061099d9190614519565b612200565b005b3480156109b057600080fd5b506109b96122d2565b6040516109c69190613d23565b60405180910390f35b3480156109db57600080fd5b506109f660048036038101906109f19190614621565b6122e5565b005b348015610a0457600080fd5b50610a1f6004803603810190610a1a9190613f6d565b612341565b604051610a2c9190613d23565b60405180910390f35b610a4f6004803603810190610a4a91906143d6565b61237d565b005b348015610a5d57600080fd5b50610a786004803603810190610a739190614060565b61255a565b604051610a85919061403e565b60405180910390f35b348015610a9a57600080fd5b50610ab56004803603810190610ab0919061424c565b612687565b604051610ac29190613d57565b60405180910390f35b348015610ad757600080fd5b50610ae0612699565b604051610aed9190613d57565b60405180910390f35b348015610b0257600080fd5b50610b0b61269f565b604051610b189190613d23565b60405180910390f35b348015610b2d57600080fd5b50610b486004803603810190610b4391906146a4565b6126b2565b604051610b559190613d23565b60405180910390f35b348015610b6a57600080fd5b50610b856004803603810190610b80919061424c565b612746565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610c5257507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610cba57507f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610cca5750610cc98261283e565b5b9050919050565b60095481565b610cdf6128a8565b73ffffffffffffffffffffffffffffffffffffffff16610cfd611b7d565b73ffffffffffffffffffffffffffffffffffffffff1614610d53576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d4a90614730565b60405180910390fd5b81600f81905550806010819055505050565b6000610d9a82600d5433604051602001610d7f9190614798565b604051602081830303815290604052805190602001206128b0565b9050919050565b606060018054610db0906147e2565b80601f0160208091040260200160405190810160405280929190818152602001828054610ddc906147e2565b8015610e295780601f10610dfe57610100808354040283529160200191610e29565b820191906000526020600020905b815481529060010190602001808311610e0c57829003601f168201915b5050505050905090565b6000610e3e826128c7565b610e7d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e7490614886565b60405180910390fd5b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610ec38261181e565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610f34576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f2b90614918565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610f536128a8565b73ffffffffffffffffffffffffffffffffffffffff161480610f825750610f8181610f7c6128a8565b6126b2565b5b610fc1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fb8906149aa565b60405180910390fd5b610fcc8383836128d4565b505050565b600e60039054906101000a900460ff1681565b600e60019054906101000a900460ff1681565b600f5481565b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008054905090565b611037838383612986565b505050565b6110446128a8565b73ffffffffffffffffffffffffffffffffffffffff16611062611b7d565b73ffffffffffffffffffffffffffffffffffffffff16146110b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110af90614730565b60405180910390fd5b80600c8190555050565b6110ca6128a8565b73ffffffffffffffffffffffffffffffffffffffff166110e8611b7d565b73ffffffffffffffffffffffffffffffffffffffff161461113e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161113590614730565b60405180910390fd5b81600160095461114e91906149f9565b81611157611023565b61116191906149f9565b106111a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161119890614ac1565b60405180910390fd5b600081116111e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111db90614b2d565b60405180910390fd5b6111ee8284612f3f565b505050565b600b8054611200906147e2565b80601f016020809104026020016040519081016040528092919081815260200182805461122c906147e2565b80156112795780601f1061124e57610100808354040283529160200191611279565b820191906000526020600020905b81548152906001019060200180831161125c57829003601f168201915b505050505081565b600061128c83611834565b82106112cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112c490614bbf565b60405180910390fd5b60006112d7611023565b905060008060005b8381101561143d576000600360008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146113d157806000015192505b8773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611429578684141561141a578195505050505050611479565b838061142590614bdf565b9450505b50808061143590614bdf565b9150506112df565b506040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161147090614c9a565b60405180910390fd5b92915050565b600e60049054906101000a900460ff1681565b60105481565b6114a06128a8565b73ffffffffffffffffffffffffffffffffffffffff166114be611b7d565b73ffffffffffffffffffffffffffffffffffffffff1614611514576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161150b90614730565b60405180910390fd5b80601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6115606128a8565b73ffffffffffffffffffffffffffffffffffffffff1661157e611b7d565b73ffffffffffffffffffffffffffffffffffffffff16146115d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115cb90614730565b60405180910390fd5b8060098190555050565b6115e66128a8565b73ffffffffffffffffffffffffffffffffffffffff16611604611b7d565b73ffffffffffffffffffffffffffffffffffffffff161461165a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161165190614730565b60405180910390fd5b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc3073ffffffffffffffffffffffffffffffffffffffff16319081150290604051600060405180830381858888f193505050501580156116d9573d6000803e3d6000fd5b50565b6116e46128a8565b73ffffffffffffffffffffffffffffffffffffffff16611702611b7d565b73ffffffffffffffffffffffffffffffffffffffff1614611758576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161174f90614730565b60405180910390fd5b82600e60006101000a81548160ff02191690831515021790555081600e60016101000a81548160ff02191690831515021790555080600e60026101000a81548160ff021916908315150217905550505050565b6117c6838383604051806020016040528060008152506122e5565b505050565b60006117d5611023565b8210611816576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161180d90614d2c565b60405180910390fd5b819050919050565b600061182982612f5d565b600001519050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156118a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161189c90614dbe565b60405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff169050919050565b6119256128a8565b73ffffffffffffffffffffffffffffffffffffffff16611943611b7d565b73ffffffffffffffffffffffffffffffffffffffff1614611999576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161199090614730565b60405180910390fd5b6119a36000613160565b565b8060ff1660016009546119b891906149f9565b816119c1611023565b6119cb91906149f9565b10611a0b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a0290614ac1565b60405180910390fd5b60008111611a4e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a4590614b2d565b60405180910390fd5b600e60029054906101000a900460ff16611a9d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a9490614e2a565b60405180910390fd5b8160ff16601054611aae9190614e4a565b341015611af0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ae790614ef0565b60405180910390fd5b6001600e60059054906101000a900460ff16611b0c9190614f10565b60ff168260ff16611b1c33613226565b611b2691906149f9565b10611b66576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b5d90614f93565b60405180910390fd5b611b73338360ff16612f3f565b5050565b600c5481565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b8260ff166001600954611bba91906149f9565b81611bc3611023565b611bcd91906149f9565b10611c0d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c0490614ac1565b60405180910390fd5b60008111611c50576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c4790614b2d565b60405180910390fd5b600e60019054906101000a900460ff16611c9f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c9690614e2a565b60405180910390fd5b8360ff16601054611cb09190614e4a565b341015611cf2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ce990614ef0565b60405180910390fd5b611d66838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600d5433604051602001611d4b9190614798565b604051602081830303815290604052805190602001206128b0565b611da5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d9c90615025565b60405180910390fd5b6001600e60049054906101000a900460ff16611dc19190614f10565b60ff168460ff16611dd133613226565b611ddb91906149f9565b10611e1b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e1290614f93565b60405180910390fd5b611e28338560ff16612f3f565b50505050565b606060028054611e3d906147e2565b80601f0160208091040260200160405190810160405280929190818152602001828054611e69906147e2565b8015611eb65780601f10611e8b57610100808354040283529160200191611eb6565b820191906000526020600020905b815481529060010190602001808311611e9957829003601f168201915b5050505050905090565b600a8054611ecd906147e2565b80601f0160208091040260200160405190810160405280929190818152602001828054611ef9906147e2565b8015611f465780601f10611f1b57610100808354040283529160200191611f46565b820191906000526020600020905b815481529060010190602001808311611f2957829003601f168201915b505050505081565b611f566128a8565b73ffffffffffffffffffffffffffffffffffffffff16611f74611b7d565b73ffffffffffffffffffffffffffffffffffffffff1614611fca576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fc190614730565b60405180910390fd5b8181600a9190611fdb929190613b92565b505050565b611fe86128a8565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612056576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161204d90615091565b60405180910390fd5b80600660006120636128a8565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166121106128a8565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516121559190613d23565b60405180910390a35050565b6121696128a8565b73ffffffffffffffffffffffffffffffffffffffff16612187611b7d565b73ffffffffffffffffffffffffffffffffffffffff16146121dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121d490614730565b60405180910390fd5b80600d8190555050565b600e60059054906101000a900460ff1681565b600d5481565b6122086128a8565b73ffffffffffffffffffffffffffffffffffffffff16612226611b7d565b73ffffffffffffffffffffffffffffffffffffffff161461227c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161227390614730565b60405180910390fd5b82600e60036101000a81548160ff021916908360ff16021790555081600e60046101000a81548160ff021916908360ff16021790555080600e60056101000a81548160ff021916908360ff160217905550505050565b600e60029054906101000a900460ff1681565b6122f0848484612986565b6122fc8484848461330f565b61233b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161233290615123565b60405180910390fd5b50505050565b600061237682600c543360405160200161235b9190614798565b604051602081830303815290604052805190602001206128b0565b9050919050565b600e60009054906101000a900460ff166123cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123c390614e2a565b60405180910390fd5b8260ff16600f546123dd9190614e4a565b34101561241f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161241690614ef0565b60405180910390fd5b612493828280806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600c54336040516020016124789190614798565b604051602081830303815290604052805190602001206128b0565b6124d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124c990615025565b60405180910390fd5b6001600e60039054906101000a900460ff166124ee9190614f10565b60ff168360ff166124fe33613226565b61250891906149f9565b10612548576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161253f90614f93565b60405180910390fd5b612555338460ff16612f3f565b505050565b6060612565826128c7565b6125a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161259b906151b5565b60405180910390fd5b6000600a80546125b3906147e2565b80601f01602080910402602001604051908101604052809291908181526020018280546125df906147e2565b801561262c5780601f106126015761010080835404028352916020019161262c565b820191906000526020600020905b81548152906001019060200180831161260f57829003601f168201915b505050505090506000815111612651576040518060200160405280600081525061267f565b8061265b84613497565b600b60405160200161266f939291906152a5565b6040516020818303038152906040525b915050919050565b600061269282613226565b9050919050565b60075481565b600e60009054906101000a900460ff1681565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61274e6128a8565b73ffffffffffffffffffffffffffffffffffffffff1661276c611b7d565b73ffffffffffffffffffffffffffffffffffffffff16146127c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127b990614730565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612832576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161282990615348565b60405180910390fd5b61283b81613160565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b6000826128bd85846135f8565b1490509392505050565b6000805482109050919050565b826005600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600061299182612f5d565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff166129b86128a8565b73ffffffffffffffffffffffffffffffffffffffff161480612a1457506129dd6128a8565b73ffffffffffffffffffffffffffffffffffffffff166129fc84610e33565b73ffffffffffffffffffffffffffffffffffffffff16145b80612a305750612a2f8260000151612a2a6128a8565b6126b2565b5b905080612a72576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a69906153da565b60405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1614612ae4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612adb9061546c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612b54576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b4b906154fe565b60405180910390fd5b612b61858585600161366d565b612b7160008484600001516128d4565b6001600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff16612bdf919061553a565b92506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055506001600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff16612c83919061556e565b92506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060405180604001604052808573ffffffffffffffffffffffffffffffffffffffff1681526020014267ffffffffffffffff168152506003600085815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055509050506000600184612d8991906149f9565b9050600073ffffffffffffffffffffffffffffffffffffffff166003600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415612ecf57612dff816128c7565b15612ece576040518060400160405280846000015173ffffffffffffffffffffffffffffffffffffffff168152602001846020015167ffffffffffffffff168152506003600083815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055509050505b5b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612f378686866001613673565b505050505050565b612f59828260405180602001604052806000815250613679565b5050565b612f65613c18565b612f6e826128c7565b612fad576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fa490615626565b60405180910390fd5b60007f00000000000000000000000000000000000000000000000000000000000022b883106130115760017f00000000000000000000000000000000000000000000000000000000000022b8846130049190615646565b61300e91906149f9565b90505b60008390505b81811061311f576000600360008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161461310b5780935050505061315b565b5080806131179061567a565b915050613017565b506040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161315290615716565b60405180910390fd5b919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613297576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161328e906157a8565b60405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff169050919050565b60006133308473ffffffffffffffffffffffffffffffffffffffff16613b58565b1561348a578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026133596128a8565b8786866040518563ffffffff1660e01b815260040161337b949392919061581d565b6020604051808303816000875af19250505080156133b757506040513d601f19601f820116820180604052508101906133b4919061587e565b60015b61343a573d80600081146133e7576040519150601f19603f3d011682016040523d82523d6000602084013e6133ec565b606091505b50600081511415613432576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161342990615123565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505061348f565b600190505b949350505050565b606060008214156134df576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506135f3565b600082905060005b600082146135115780806134fa90614bdf565b915050600a8261350a91906158da565b91506134e7565b60008167ffffffffffffffff81111561352d5761352c613df4565b5b6040519080825280601f01601f19166020018201604052801561355f5781602001600182028036833780820191505090505b5090505b600085146135ec576001826135789190615646565b9150600a85613587919061590b565b603061359391906149f9565b60f81b8183815181106135a9576135a861593c565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856135e591906158da565b9450613563565b8093505050505b919050565b60008082905060005b845181101561366257600085828151811061361f5761361e61593c565b5b602002602001015190508083116136415761363a8382613b7b565b925061364e565b61364b8184613b7b565b92505b50808061365a90614bdf565b915050613601565b508091505092915050565b50505050565b50505050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156136ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136e6906159dd565b60405180910390fd5b6136f8816128c7565b15613738576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161372f90615a49565b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000022b883111561379b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161379290615adb565b60405180910390fd5b6137a8600085838661366d565b6000600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206040518060400160405290816000820160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681526020016000820160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681525050905060405180604001604052808583600001516138a5919061556e565b6fffffffffffffffffffffffffffffffff1681526020018583602001516138cc919061556e565b6fffffffffffffffffffffffffffffffff16815250600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008201518160000160006101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060208201518160000160106101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555090505060405180604001604052808673ffffffffffffffffffffffffffffffffffffffff1681526020014267ffffffffffffffff168152506003600084815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550905050600082905060005b85811015613b3b57818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613adb600088848861330f565b613b1a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b1190615123565b60405180910390fd5b8180613b2590614bdf565b9250508080613b3390614bdf565b915050613a6a565b5080600081905550613b506000878588613673565b505050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600082600052816020526040600020905092915050565b828054613b9e906147e2565b90600052602060002090601f016020900481019282613bc05760008555613c07565b82601f10613bd957803560ff1916838001178555613c07565b82800160010185558215613c07579182015b82811115613c06578235825591602001919060010190613beb565b5b509050613c149190613c52565b5090565b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681525090565b5b80821115613c6b576000816000905550600101613c53565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613cb881613c83565b8114613cc357600080fd5b50565b600081359050613cd581613caf565b92915050565b600060208284031215613cf157613cf0613c79565b5b6000613cff84828501613cc6565b91505092915050565b60008115159050919050565b613d1d81613d08565b82525050565b6000602082019050613d386000830184613d14565b92915050565b6000819050919050565b613d5181613d3e565b82525050565b6000602082019050613d6c6000830184613d48565b92915050565b613d7b81613d3e565b8114613d8657600080fd5b50565b600081359050613d9881613d72565b92915050565b60008060408385031215613db557613db4613c79565b5b6000613dc385828601613d89565b9250506020613dd485828601613d89565b9150509250929050565b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613e2c82613de3565b810181811067ffffffffffffffff82111715613e4b57613e4a613df4565b5b80604052505050565b6000613e5e613c6f565b9050613e6a8282613e23565b919050565b600067ffffffffffffffff821115613e8a57613e89613df4565b5b602082029050602081019050919050565b600080fd5b6000819050919050565b613eb381613ea0565b8114613ebe57600080fd5b50565b600081359050613ed081613eaa565b92915050565b6000613ee9613ee484613e6f565b613e54565b90508083825260208201905060208402830185811115613f0c57613f0b613e9b565b5b835b81811015613f355780613f218882613ec1565b845260208401935050602081019050613f0e565b5050509392505050565b600082601f830112613f5457613f53613dde565b5b8135613f64848260208601613ed6565b91505092915050565b600060208284031215613f8357613f82613c79565b5b600082013567ffffffffffffffff811115613fa157613fa0613c7e565b5b613fad84828501613f3f565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613ff0578082015181840152602081019050613fd5565b83811115613fff576000848401525b50505050565b600061401082613fb6565b61401a8185613fc1565b935061402a818560208601613fd2565b61403381613de3565b840191505092915050565b600060208201905081810360008301526140588184614005565b905092915050565b60006020828403121561407657614075613c79565b5b600061408484828501613d89565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006140b88261408d565b9050919050565b6140c8816140ad565b82525050565b60006020820190506140e360008301846140bf565b92915050565b6140f2816140ad565b81146140fd57600080fd5b50565b60008135905061410f816140e9565b92915050565b6000806040838503121561412c5761412b613c79565b5b600061413a85828601614100565b925050602061414b85828601613d89565b9150509250929050565b600060ff82169050919050565b61416b81614155565b82525050565b60006020820190506141866000830184614162565b92915050565b6000806000606084860312156141a5576141a4613c79565b5b60006141b386828701614100565b93505060206141c486828701614100565b92505060406141d586828701613d89565b9150509250925092565b6000602082840312156141f5576141f4613c79565b5b600061420384828501613ec1565b91505092915050565b6000806040838503121561422357614222613c79565b5b600061423185828601613d89565b925050602061424285828601614100565b9150509250929050565b60006020828403121561426257614261613c79565b5b600061427084828501614100565b91505092915050565b61428281613d08565b811461428d57600080fd5b50565b60008135905061429f81614279565b92915050565b6000806000606084860312156142be576142bd613c79565b5b60006142cc86828701614290565b93505060206142dd86828701614290565b92505060406142ee86828701614290565b9150509250925092565b61430181614155565b811461430c57600080fd5b50565b60008135905061431e816142f8565b92915050565b60006020828403121561433a57614339613c79565b5b60006143488482850161430f565b91505092915050565b61435a81613ea0565b82525050565b60006020820190506143756000830184614351565b92915050565b600080fd5b60008083601f84011261439657614395613dde565b5b8235905067ffffffffffffffff8111156143b3576143b261437b565b5b6020830191508360208202830111156143cf576143ce613e9b565b5b9250929050565b6000806000604084860312156143ef576143ee613c79565b5b60006143fd8682870161430f565b935050602084013567ffffffffffffffff81111561441e5761441d613c7e565b5b61442a86828701614380565b92509250509250925092565b60008083601f84011261444c5761444b613dde565b5b8235905067ffffffffffffffff8111156144695761446861437b565b5b60208301915083600182028301111561448557614484613e9b565b5b9250929050565b600080602083850312156144a3576144a2613c79565b5b600083013567ffffffffffffffff8111156144c1576144c0613c7e565b5b6144cd85828601614436565b92509250509250929050565b600080604083850312156144f0576144ef613c79565b5b60006144fe85828601614100565b925050602061450f85828601614290565b9150509250929050565b60008060006060848603121561453257614531613c79565b5b60006145408682870161430f565b93505060206145518682870161430f565b92505060406145628682870161430f565b9150509250925092565b600080fd5b600067ffffffffffffffff82111561458c5761458b613df4565b5b61459582613de3565b9050602081019050919050565b82818337600083830152505050565b60006145c46145bf84614571565b613e54565b9050828152602081018484840111156145e0576145df61456c565b5b6145eb8482856145a2565b509392505050565b600082601f83011261460857614607613dde565b5b81356146188482602086016145b1565b91505092915050565b6000806000806080858703121561463b5761463a613c79565b5b600061464987828801614100565b945050602061465a87828801614100565b935050604061466b87828801613d89565b925050606085013567ffffffffffffffff81111561468c5761468b613c7e565b5b614698878288016145f3565b91505092959194509250565b600080604083850312156146bb576146ba613c79565b5b60006146c985828601614100565b92505060206146da85828601614100565b9150509250929050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061471a602083613fc1565b9150614725826146e4565b602082019050919050565b600060208201905081810360008301526147498161470d565b9050919050565b60008160601b9050919050565b600061476882614750565b9050919050565b600061477a8261475d565b9050919050565b61479261478d826140ad565b61476f565b82525050565b60006147a48284614781565b60148201915081905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806147fa57607f821691505b6020821081141561480e5761480d6147b3565b5b50919050565b7f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560008201527f78697374656e7420746f6b656e00000000000000000000000000000000000000602082015250565b6000614870602d83613fc1565b915061487b82614814565b604082019050919050565b6000602082019050818103600083015261489f81614863565b9050919050565b7f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60008201527f6572000000000000000000000000000000000000000000000000000000000000602082015250565b6000614902602283613fc1565b915061490d826148a6565b604082019050919050565b60006020820190508181036000830152614931816148f5565b9050919050565b7f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f76656420666f7220616c6c00000000000000602082015250565b6000614994603983613fc1565b915061499f82614938565b604082019050919050565b600060208201905081810360008301526149c381614987565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614a0482613d3e565b9150614a0f83613d3e565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614a4457614a436149ca565b5b828201905092915050565b7f4e6f7420656e6f7567682072656d61696e696e6720666f72206d696e7420616d60008201527f6f756e7420726571756573746564000000000000000000000000000000000000602082015250565b6000614aab602e83613fc1565b9150614ab682614a4f565b604082019050919050565b60006020820190508181036000830152614ada81614a9e565b9050919050565b7f5175616e74697479206e6565647320746f206265206d6f7265207468616e2030600082015250565b6000614b17602083613fc1565b9150614b2282614ae1565b602082019050919050565b60006020820190508181036000830152614b4681614b0a565b9050919050565b7f455243373231413a206f776e657220696e646578206f7574206f6620626f756e60008201527f6473000000000000000000000000000000000000000000000000000000000000602082015250565b6000614ba9602283613fc1565b9150614bb482614b4d565b604082019050919050565b60006020820190508181036000830152614bd881614b9c565b9050919050565b6000614bea82613d3e565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614c1d57614c1c6149ca565b5b600182019050919050565b7f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060008201527f6f776e657220627920696e646578000000000000000000000000000000000000602082015250565b6000614c84602e83613fc1565b9150614c8f82614c28565b604082019050919050565b60006020820190508181036000830152614cb381614c77565b9050919050565b7f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f7560008201527f6e64730000000000000000000000000000000000000000000000000000000000602082015250565b6000614d16602383613fc1565b9150614d2182614cba565b604082019050919050565b60006020820190508181036000830152614d4581614d09565b9050919050565b7f455243373231413a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b6000614da8602b83613fc1565b9150614db382614d4c565b604082019050919050565b60006020820190508181036000830152614dd781614d9b565b9050919050565b7f4e6f74206c697665000000000000000000000000000000000000000000000000600082015250565b6000614e14600883613fc1565b9150614e1f82614dde565b602082019050919050565b60006020820190508181036000830152614e4381614e07565b9050919050565b6000614e5582613d3e565b9150614e6083613d3e565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614e9957614e986149ca565b5b828202905092915050565b7f696e76616c696420707269636500000000000000000000000000000000000000600082015250565b6000614eda600d83613fc1565b9150614ee582614ea4565b602082019050919050565b60006020820190508181036000830152614f0981614ecd565b9050919050565b6000614f1b82614155565b9150614f2683614155565b92508260ff03821115614f3c57614f3b6149ca565b5b828201905092915050565b7f6d696e74656420746f6f206d616e790000000000000000000000000000000000600082015250565b6000614f7d600f83613fc1565b9150614f8882614f47565b602082019050919050565b60006020820190508181036000830152614fac81614f70565b9050919050565b7f4c656166206e6f646520636f756c64206e6f742062652076657269666965642c60008201527f20636865636b2070726f6f662e00000000000000000000000000000000000000602082015250565b600061500f602d83613fc1565b915061501a82614fb3565b604082019050919050565b6000602082019050818103600083015261503e81615002565b9050919050565b7f455243373231413a20617070726f766520746f2063616c6c6572000000000000600082015250565b600061507b601a83613fc1565b915061508682615045565b602082019050919050565b600060208201905081810360008301526150aa8161506e565b9050919050565b7f455243373231413a207472616e7366657220746f206e6f6e204552433732315260008201527f6563656976657220696d706c656d656e74657200000000000000000000000000602082015250565b600061510d603383613fc1565b9150615118826150b1565b604082019050919050565b6000602082019050818103600083015261513c81615100565b9050919050565b7f4552433732314d657461646174613a204e6f6e6578697374656e7420746f6b6560008201527f6e00000000000000000000000000000000000000000000000000000000000000602082015250565b600061519f602183613fc1565b91506151aa82615143565b604082019050919050565b600060208201905081810360008301526151ce81615192565b9050919050565b600081905092915050565b60006151eb82613fb6565b6151f581856151d5565b9350615205818560208601613fd2565b80840191505092915050565b60008190508160005260206000209050919050565b60008154615233816147e2565b61523d81866151d5565b9450600182166000811461525857600181146152695761529c565b60ff1983168652818601935061529c565b61527285615211565b60005b8381101561529457815481890152600182019150602081019050615275565b838801955050505b50505092915050565b60006152b182866151e0565b91506152bd82856151e0565b91506152c98284615226565b9150819050949350505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000615332602683613fc1565b915061533d826152d6565b604082019050919050565b6000602082019050818103600083015261536181615325565b9050919050565b7f455243373231413a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b60006153c4603283613fc1565b91506153cf82615368565b604082019050919050565b600060208201905081810360008301526153f3816153b7565b9050919050565b7f455243373231413a207472616e736665722066726f6d20696e636f727265637460008201527f206f776e65720000000000000000000000000000000000000000000000000000602082015250565b6000615456602683613fc1565b9150615461826153fa565b604082019050919050565b6000602082019050818103600083015261548581615449565b9050919050565b7f455243373231413a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b60006154e8602583613fc1565b91506154f38261548c565b604082019050919050565b60006020820190508181036000830152615517816154db565b9050919050565b60006fffffffffffffffffffffffffffffffff82169050919050565b60006155458261551e565b91506155508361551e565b925082821015615563576155626149ca565b5b828203905092915050565b60006155798261551e565b91506155848361551e565b9250826fffffffffffffffffffffffffffffffff038211156155a9576155a86149ca565b5b828201905092915050565b7f455243373231413a206f776e657220717565727920666f72206e6f6e6578697360008201527f74656e7420746f6b656e00000000000000000000000000000000000000000000602082015250565b6000615610602a83613fc1565b915061561b826155b4565b604082019050919050565b6000602082019050818103600083015261563f81615603565b9050919050565b600061565182613d3e565b915061565c83613d3e565b92508282101561566f5761566e6149ca565b5b828203905092915050565b600061568582613d3e565b91506000821415615699576156986149ca565b5b600182039050919050565b7f455243373231413a20756e61626c6520746f2064657465726d696e652074686560008201527f206f776e6572206f6620746f6b656e0000000000000000000000000000000000602082015250565b6000615700602f83613fc1565b915061570b826156a4565b604082019050919050565b6000602082019050818103600083015261572f816156f3565b9050919050565b7f455243373231413a206e756d626572206d696e74656420717565727920666f7260008201527f20746865207a65726f2061646472657373000000000000000000000000000000602082015250565b6000615792603183613fc1565b915061579d82615736565b604082019050919050565b600060208201905081810360008301526157c181615785565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006157ef826157c8565b6157f981856157d3565b9350615809818560208601613fd2565b61581281613de3565b840191505092915050565b600060808201905061583260008301876140bf565b61583f60208301866140bf565b61584c6040830185613d48565b818103606083015261585e81846157e4565b905095945050505050565b60008151905061587881613caf565b92915050565b60006020828403121561589457615893613c79565b5b60006158a284828501615869565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006158e582613d3e565b91506158f083613d3e565b925082615900576158ff6158ab565b5b828204905092915050565b600061591682613d3e565b915061592183613d3e565b925082615931576159306158ab565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f455243373231413a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b60006159c7602183613fc1565b91506159d28261596b565b604082019050919050565b600060208201905081810360008301526159f6816159ba565b9050919050565b7f455243373231413a20746f6b656e20616c7265616479206d696e746564000000600082015250565b6000615a33601d83613fc1565b9150615a3e826159fd565b602082019050919050565b60006020820190508181036000830152615a6281615a26565b9050919050565b7f455243373231413a207175616e7469747920746f206d696e7420746f6f20686960008201527f6768000000000000000000000000000000000000000000000000000000000000602082015250565b6000615ac5602283613fc1565b9150615ad082615a69565b604082019050919050565b60006020820190508181036000830152615af481615ab8565b905091905056fea2646970667358221220e7bf6531363ec09fafcebb47f73390c4b64bf2efae6209b728980a896e59466d64736f6c634300080c0033
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.