ERC-721
Overview
Max Total Supply
152 MBEARS
Holders
61
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2 MBEARSLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
MoneyBears
Compiler Version
v0.8.4+commit.c7e474f2
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.0; import "erc721a/contracts/ERC721A.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; error Paused(); error SoldOut(); error SaleNotStarted(); error MintingTooMany(); error NotWhitelisted(); error Underpriced(); error MintedOut(); error SameAuthorizer(); error ZeroAddress(); error InvalidSender(); contract MoneyBears is ERC721A, Ownable, ReentrancyGuard{ using Strings for uint256; using ECDSA for bytes32; /*/////////////////////////////////////////////////////////////// VARIABLES //////////////////////////////////////////////////////////////*/ uint public maxRoundTwoSupply = 8999; uint public maxRoundOneSupply = 1665; uint public roundOneMintPrice = .743 ether; // $850 USD AT TIME OF LAUNCH uint public roundTwoMintPrice = .743 ether; // $850 USD AT TIME OF LAUNCH uint public maxPublicMints = 20; string public baseURI; string public notRevealedUri; string public uriSuffix = ".json"; mapping(address => uint256) public roundOneWhitelistMints; mapping(address => uint256) public roundTwoWhitelistMints; mapping(address => uint) public roundOnePublicMints; mapping(address => uint) public roundTwoPublicMints; address private wlAuthorizerRoundOne = 0x29e7844BD4b7478497dfbFb7610c51AFA3FdfF0c; address private wlAuthorizerRoundTwo; address private mintingContract; bool public revealed; bool public presaleRoundOneLive; bool public publicRoundOneLive; bool public presaleRoundTwoLive; bool public publicRoundTwoLive; /*/////////////////////////////////////////////////////////////// CONSTRUCTOR //////////////////////////////////////////////////////////////*/ constructor() ERC721A("MoneyBears", "MBEARS") { setNotRevealedURI("ipfs://QmbYzikXso84qzQjQZKwRSi9zpTVSTVMUHugeBcCWUmcQ8"); teamMint(0xC98Bd52AfafB99Cf17C001C7A5b37a246A782E31,18); } function teamMint(address to,uint amount) public onlyOwner { if(amount + totalSupply() > maxRoundTwoSupply) revert SoldOut(); _mint(to,amount); } function airdrop(address[] calldata accounts,uint[] calldata amounts) public onlyOwner { require(accounts.length == amounts.length,"Arrays Don't Match"); for(uint i; i<amounts.length;i++){ if(amounts[i] + totalSupply() > maxRoundTwoSupply) revert SoldOut(); _mint(accounts[i],amounts[i]); } } /*/////////////////////////////////////////////////////////////// PUBLIC SALE MINT //////////////////////////////////////////////////////////////*/ function roundOneWhitelistMint(uint amount, uint max, bytes memory signature) external payable{ bytes32 hash = keccak256(abi.encodePacked(max,msg.sender)); if(!presaleRoundOneLive) revert SaleNotStarted(); if(hash.toEthSignedMessageHash().recover(signature) != wlAuthorizerRoundOne) revert NotWhitelisted(); if(msg.value < amount * roundOneMintPrice) revert Underpriced(); if(roundOneWhitelistMints[msg.sender] + amount > max) revert MintingTooMany(); if(totalSupply() + amount > maxRoundOneSupply) revert SoldOut(); roundOneWhitelistMints[msg.sender] += amount; _mint(msg.sender,amount); } function roundTwoWhitelistMint(uint amount, uint max, bytes memory signature) external payable{ bytes32 hash = keccak256(abi.encodePacked(max,msg.sender)); if(!presaleRoundTwoLive) revert SaleNotStarted(); if(hash.toEthSignedMessageHash().recover(signature) != wlAuthorizerRoundTwo) revert NotWhitelisted(); if(msg.value < amount * roundTwoMintPrice) revert Underpriced(); if(roundTwoWhitelistMints[msg.sender] + amount > max) revert MintingTooMany(); if(totalSupply() + amount > maxRoundTwoSupply) revert SoldOut(); roundTwoWhitelistMints[msg.sender] += amount; _mint(msg.sender,amount); } function roundOnePublicMint(uint amount) external payable { if(!publicRoundOneLive) revert SaleNotStarted(); if(msg.value < amount * roundOneMintPrice) revert Underpriced(); if(totalSupply() + amount > maxRoundOneSupply) revert SoldOut(); if(roundOnePublicMints[msg.sender] + amount > maxPublicMints) revert MintingTooMany(); roundOnePublicMints[msg.sender] += amount; _mint(msg.sender,amount); } function contractMint(address to, uint amount) external { if(mintingContract == address(0)) revert ZeroAddress(); if(msg.sender != mintingContract) revert InvalidSender(); if(totalSupply() + amount > maxRoundTwoSupply) revert SoldOut(); _mint(to,amount); } function roundTwoPublicMint(uint amount) external payable { if(!publicRoundTwoLive) revert SaleNotStarted(); if(msg.value < amount * roundTwoMintPrice) revert Underpriced(); if(totalSupply() + amount > maxRoundTwoSupply) revert SoldOut(); if(roundTwoPublicMints[msg.sender] + amount > maxPublicMints) revert MintingTooMany(); roundTwoPublicMints[msg.sender] += amount; _mint(msg.sender,amount); } /*/////////////////////////////////////////////////////////////// METADATA UTILITIES //////////////////////////////////////////////////////////////*/ function setNotRevealedURI(string memory _notRevealedURI) public onlyOwner { notRevealedUri = _notRevealedURI; } function setBaseURI(string memory _newBaseURI) public onlyOwner { baseURI = _newBaseURI; } function setUriSuffix(string memory _uriSuffix) public onlyOwner { uriSuffix = _uriSuffix; } /*/////////////////////////////////////////////////////////////// SETTERS //////////////////////////////////////////////////////////////*/ function setMaxSupply(uint round, uint256 _maxSupply) public onlyOwner { if(round == 1) { maxRoundOneSupply = _maxSupply; } if(round == 2 ){ maxRoundTwoSupply = _maxSupply; } } function setPrice(uint round, uint newPrice) external onlyOwner{ if(round == 1 ){ roundOneMintPrice = newPrice; } if(round == 2 ) { roundTwoMintPrice = newPrice; } } function setRoundOneSaleState(bool presaleStatus, bool publicStatus) external onlyOwner { presaleRoundOneLive = presaleStatus; publicRoundOneLive = publicStatus; } function setRoundTwoSaleState(bool presaleStatus,bool publicStatus) external onlyOwner { presaleRoundTwoLive = presaleStatus; publicRoundTwoLive = publicStatus; } function setWlAuthorizer(uint round, address authorizer) external onlyOwner { if(round == 1 ){ wlAuthorizerRoundOne = authorizer; } if(round == 2 ){ if(authorizer == wlAuthorizerRoundOne) revert SameAuthorizer(); wlAuthorizerRoundTwo = authorizer; } } function setMaxPublicMints(uint amount) external onlyOwner{ maxPublicMints = amount; } function switchReveal() public onlyOwner { revealed = !revealed; } function setMintingContract(address _contract) external onlyOwner{ mintingContract = _contract; } /*/////////////////////////////////////////////////////////////// METADATA //////////////////////////////////////////////////////////////*/ function tokenURI(uint256 tokenId) public view override(ERC721A) returns (string memory) { if (revealed == false) { return notRevealedUri; } string memory currentBaseURI = baseURI; return bytes(currentBaseURI).length > 0 ? string(abi.encodePacked(currentBaseURI, tokenId.toString(),uriSuffix)) : ""; } /*/////////////////////////////////////////////////////////////// WITHDRAWAL //////////////////////////////////////////////////////////////*/ function withdraw() public payable onlyOwner { (bool os, ) = payable(owner()).call{value: address(this).balance}(""); require(os); } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.1.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @dev ERC721 token receiver interface. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, * including the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at `_startTokenId()` * (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Mask of an entry in packed address data. uint256 private constant BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with `_mintERC2309`. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to `_mintERC2309` // is required to cause an overflow, which is unrealistic. uint256 private constant MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The tokenId of the next token to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // 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 `_packedOwnershipOf` implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // 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; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see `_totalMinted`. */ function totalSupply() public view override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view returns (uint256) { // Counter underflow is impossible as _currentIndex does not decrement, // and it is initialized to `_startTokenId()` unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view returns (uint256) { return _burnCounter; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes of the XOR of // all function selectors in the interface. See: https://eips.ethereum.org/EIPS/eip-165 // e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)` return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> BITPOS_NUMBER_MINTED) & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> BITPOS_NUMBER_BURNED) & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & BITMASK_AUX_COMPLEMENT) | (auxCasted << BITPOS_AUX); _packedAddressData[owner] = packed; } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & BITMASK_BURNED == 0) { // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. // // We can directly compare the packed value. // If the address is zero, packed is zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> BITPOS_START_TIMESTAMP); ownership.burned = packed & BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> BITPOS_EXTRA_DATA); } /** * Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, BITMASK_ADDRESS) // `owner | (block.timestamp << BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @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) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @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, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << BITPOS_NEXT_INITIALIZED`. result := shl(BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSenderERC721A()) revert ApproveToCaller(); _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), 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-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 { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @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 _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & BITMASK_BURNED == 0; // and not burned. } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 tokenId = startTokenId; uint256 end = startTokenId + quantity; do { emit Transfer(address(0), to, tokenId++); } while (tokenId < end); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { mapping(uint256 => address) storage tokenApprovalsPtr = _tokenApprovals; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId]`. assembly { // Compute the slot. mstore(0x00, tokenId) mstore(0x20, tokenApprovalsPtr.slot) approvedAddressSlot := keccak256(0x00, 0x40) // Load the slot's value from storage. approvedAddress := sload(approvedAddressSlot) } } /** * @dev Returns whether the `approvedAddress` is equals to `from` or `msgSender`. */ function _isOwnerOrApproved( address approvedAddress, address from, address msgSender ) private pure returns (bool result) { assembly { // Mask `from` to the lower 160 bits, in case the upper bits somehow aren't clean. from := and(from, BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, BITMASK_ADDRESS) // `msgSender == from || msgSender == approvedAddress`. result := or(eq(msgSender, from), eq(msgSender, approvedAddress)) } } /** * @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 transferFrom( address from, address to, uint256 tokenId ) public virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isOwnerOrApproved(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isOwnerOrApproved(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (BITMASK_BURNED | BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target 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 _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << BITPOS_EXTRA_DATA; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * 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, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. * This includes minting. * And also called before burning one token. * * 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`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ 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. * And also called after one token has been burned. * * 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` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function _toString(uint256 value) internal pure returns (string memory ptr) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), // but we allocate 128 bytes to keep the free memory pointer 32-byte word aliged. // We will need 1 32-byte word to store the length, // and 3 32-byte words to store a maximum of 78 digits. Total: 32 + 3 * 32 = 128. ptr := add(mload(0x40), 128) // Update the free memory pointer to allocate. mstore(0x40, ptr) // Cache the end of the memory to calculate the length later. let end := ptr // We write the string from the rightmost digit to the leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // Costs a bit more than early returning for the zero case, // but cheaper in terms of deployment and overall runtime costs. for { // Initialize and perform the first pass without check. let temp := value // Move the pointer 1 byte leftwards to point to an empty character slot. ptr := sub(ptr, 1) // Write the character to the pointer. 48 is the ASCII index of '0'. mstore8(ptr, add(48, mod(temp, 10))) temp := div(temp, 10) } temp { // Keep dividing `temp` until zero. temp := div(temp, 10) } { // Body of the for loop. ptr := sub(ptr, 1) mstore8(ptr, add(48, mod(temp, 10))) } let length := sub(end, ptr) // Move the pointer 32 bytes leftwards to make room for the length. ptr := sub(ptr, 32) // Store the length. mstore(ptr, length) } } }
// 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 v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "../Strings.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.1.0 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of an ERC721A compliant contract. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set through `_extraData`. uint24 extraData; } /** * @dev Returns the total amount of tokens stored by the contract. * * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens. */ function totalSupply() external view returns (uint256); // ============================== // 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); // ============================== // IERC721 // ============================== /** * @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`. * * 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; /** * @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 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 the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @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); // ============================== // IERC721Metadata // ============================== /** * @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); // ============================== // IERC2309 // ============================== /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` (inclusive) is transferred from `from` to `to`, * as defined in the ERC2309 standard. See `_mintERC2309` for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); }
// 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/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); } }
{ "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"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"InvalidSender","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"MintingTooMany","type":"error"},{"inputs":[],"name":"NotWhitelisted","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"SaleNotStarted","type":"error"},{"inputs":[],"name":"SameAuthorizer","type":"error"},{"inputs":[],"name":"SoldOut","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"Underpriced","type":"error"},{"inputs":[],"name":"ZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","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":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"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":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"contractMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"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":"maxPublicMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxRoundOneSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxRoundTwoSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"notRevealedUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleRoundOneLive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleRoundTwoLive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicRoundOneLive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicRoundTwoLive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"roundOneMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"roundOnePublicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"roundOnePublicMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"max","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"roundOneWhitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"roundOneWhitelistMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"roundTwoMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"roundTwoPublicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"roundTwoPublicMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"max","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"roundTwoWhitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"roundTwoWhitelistMints","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":"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":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setMaxPublicMints","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"round","type":"uint256"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"}],"name":"setMintingContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_notRevealedURI","type":"string"}],"name":"setNotRevealedURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"round","type":"uint256"},{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"presaleStatus","type":"bool"},{"internalType":"bool","name":"publicStatus","type":"bool"}],"name":"setRoundOneSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"presaleStatus","type":"bool"},{"internalType":"bool","name":"publicStatus","type":"bool"}],"name":"setRoundTwoSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uriSuffix","type":"string"}],"name":"setUriSuffix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"round","type":"uint256"},{"internalType":"address","name":"authorizer","type":"address"}],"name":"setWlAuthorizer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"switchReveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"teamMint","outputs":[],"stateMutability":"nonpayable","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":"uriSuffix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"}]
Contract Creation Code
6080604052612327600a55610681600b55670a4faa903c1d8000600c55670a4faa903c1d8000600d556014600e556040518060400160405280600581526020017f2e6a736f6e000000000000000000000000000000000000000000000000000000815250601190805190602001906200007a92919062000757565b507329e7844bd4b7478497dfbfb7610c51afa3fdff0c601660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550348015620000dd57600080fd5b506040518060400160405280600a81526020017f4d6f6e65794265617273000000000000000000000000000000000000000000008152506040518060400160405280600681526020017f4d4245415253000000000000000000000000000000000000000000000000000081525081600290805190602001906200016292919062000757565b5080600390805190602001906200017b92919062000757565b506200018c6200021360201b60201c565b6000819055505050620001b4620001a86200021860201b60201c565b6200022060201b60201c565b6001600981905550620001e660405180606001604052806035815260200162005ba860359139620002e660201b60201c565b6200020d73c98bd52afafb99cf17c001c7a5b37a246a782e3160126200039160201b60201c565b62000985565b600090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b620002f66200021860201b60201c565b73ffffffffffffffffffffffffffffffffffffffff166200031c6200048f60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff161462000375576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200036c906200082e565b60405180910390fd5b80601090805190602001906200038d92919062000757565b5050565b620003a16200021860201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16620003c76200048f60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff161462000420576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000417906200082e565b60405180910390fd5b600a5462000433620004b960201b60201c565b8262000440919062000861565b111562000479576040517f52df9fe500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6200048b8282620004d860201b60201c565b5050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000620004cb6200021360201b60201c565b6001546000540303905090565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141562000546576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600082141562000582576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b620005976000848385620006d760201b60201c565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506200062683620006086000866000620006dd60201b60201c565b62000619856200070d60201b60201c565b176200071d60201b60201c565b60046000838152602001908152602001600020819055506000819050600083830190505b818060010192508573ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a48082106200064a57806000819055505050620006d260008483856200074860201b60201c565b505050565b50505050565b60008060e883901c905060e8620006fc8686846200074e60201b60201c565b62ffffff16901b9150509392505050565b60006001821460e11b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b60009392505050565b8280546200076590620008c8565b90600052602060002090601f016020900481019282620007895760008555620007d5565b82601f10620007a457805160ff1916838001178555620007d5565b82800160010185558215620007d5579182015b82811115620007d4578251825591602001919060010190620007b7565b5b509050620007e49190620007e8565b5090565b5b8082111562000803576000816000905550600101620007e9565b5090565b60006200081660208362000850565b915062000823826200095c565b602082019050919050565b60006020820190508181036000830152620008498162000807565b9050919050565b600082825260208201905092915050565b60006200086e82620008be565b91506200087b83620008be565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115620008b357620008b2620008fe565b5b828201905092915050565b6000819050919050565b60006002820490506001821680620008e157607f821691505b60208210811415620008f857620008f76200092d565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b61521380620009956000396000f3fe60806040526004361061031a5760003560e01c80638da5cb5b116101ab578063c87b56dd116100f7578063dc22bca311610095578063ec5a2d451161006f578063ec5a2d4514610b7d578063f2c4ce1e14610b94578063f2fde38b14610bbd578063f7d9757714610be65761031a565b8063dc22bca314610af9578063de63e78514610b24578063e985e9c514610b405761031a565b8063d35d1e05116100d1578063d35d1e0514610a2b578063d5939d3b14610a68578063d95da30714610a91578063da1cd4a114610ace5761031a565b8063c87b56dd146109a9578063c9882a97146109e6578063cfb093c714610a025761031a565b8063a22cb46511610164578063add5a4fa1161013e578063add5a4fa14610903578063b88d4fde1461092c578063c56e137514610955578063c7b0dcbc1461097e5761031a565b8063a22cb46514610886578063a93fef3b146108af578063ada70692146108d85761031a565b80638da5cb5b1461079357806395d89b41146107be578063972d85bb146107e9578063995334c3146108145780639abbd25a1461083f5780639af464131461086a5761031a565b8063518302271161026a5780636724348211610223578063715018a6116101fd578063715018a6146106eb578063798293461461070257806384229e671461072d578063857040da146107565761031a565b8063672434821461065a5780636c0360eb1461068357806370a08231146106ae5761031a565b8063518302271461053657806354fa9dab146105615780635503a0e81461058c57806355f804b3146105b75780635d32ec45146105e05780636352211e1461061d5761031a565b806318160ddd116102d75780633c91a881116102b15780633c91a881146104be5780633ccfd60b146104e757806342842e0e146104f15780634ac324161461051a5761031a565b806318160ddd1461044157806323b872dd1461046c57806337da577c146104955761031a565b806301ffc9a71461031f57806306fdde031461035c578063081812fc14610387578063081c8c44146103c4578063095ea7b3146103ef57806316ba10e014610418575b600080fd5b34801561032b57600080fd5b5061034660048036038101906103419190614405565b610c0f565b604051610353919061498c565b60405180910390f35b34801561036857600080fd5b50610371610ca1565b60405161037e91906149ec565b60405180910390f35b34801561039357600080fd5b506103ae60048036038101906103a99190614498565b610d33565b6040516103bb9190614925565b60405180910390f35b3480156103d057600080fd5b506103d9610daf565b6040516103e691906149ec565b60405180910390f35b3480156103fb57600080fd5b5061041660048036038101906104119190614318565b610e3d565b005b34801561042457600080fd5b5061043f600480360381019061043a9190614457565b610f7e565b005b34801561044d57600080fd5b50610456611014565b6040516104639190614aee565b60405180910390f35b34801561047857600080fd5b50610493600480360381019061048e9190614212565b61102b565b005b3480156104a157600080fd5b506104bc60048036038101906104b791906144fd565b611350565b005b3480156104ca57600080fd5b506104e560048036038101906104e091906144c1565b6113f2565b005b6104ef611590565b005b3480156104fd57600080fd5b5061051860048036038101906105139190614212565b61168c565b005b610534600480360381019061052f9190614498565b6116ac565b005b34801561054257600080fd5b5061054b611870565b604051610558919061498c565b60405180910390f35b34801561056d57600080fd5b50610576611883565b6040516105839190614aee565b60405180910390f35b34801561059857600080fd5b506105a1611889565b6040516105ae91906149ec565b60405180910390f35b3480156105c357600080fd5b506105de60048036038101906105d99190614457565b611917565b005b3480156105ec57600080fd5b50610607600480360381019061060291906141ad565b6119ad565b6040516106149190614aee565b60405180910390f35b34801561062957600080fd5b50610644600480360381019061063f9190614498565b6119c5565b6040516106519190614925565b60405180910390f35b34801561066657600080fd5b50610681600480360381019061067c9190614354565b6119d7565b005b34801561068f57600080fd5b50610698611be6565b6040516106a591906149ec565b60405180910390f35b3480156106ba57600080fd5b506106d560048036038101906106d091906141ad565b611c74565b6040516106e29190614aee565b60405180910390f35b3480156106f757600080fd5b50610700611d2d565b005b34801561070e57600080fd5b50610717611db5565b6040516107249190614aee565b60405180910390f35b34801561073957600080fd5b50610754600480360381019061074f9190614318565b611dbb565b005b34801561076257600080fd5b5061077d600480360381019061077891906141ad565b611f27565b60405161078a9190614aee565b60405180910390f35b34801561079f57600080fd5b506107a8611f3f565b6040516107b59190614925565b60405180910390f35b3480156107ca57600080fd5b506107d3611f69565b6040516107e091906149ec565b60405180910390f35b3480156107f557600080fd5b506107fe611ffb565b60405161080b919061498c565b60405180910390f35b34801561082057600080fd5b5061082961200e565b604051610836919061498c565b60405180910390f35b34801561084b57600080fd5b50610854612021565b604051610861919061498c565b60405180910390f35b610884600480360381019061087f9190614539565b612034565b005b34801561089257600080fd5b506108ad60048036038101906108a891906142dc565b6122c7565b005b3480156108bb57600080fd5b506108d660048036038101906108d19190614498565b61243f565b005b3480156108e457600080fd5b506108ed6124c5565b6040516108fa9190614aee565b60405180910390f35b34801561090f57600080fd5b5061092a60048036038101906109259190614318565b6124cb565b005b34801561093857600080fd5b50610953600480360381019061094e9190614261565b6125a3565b005b34801561096157600080fd5b5061097c600480360381019061097791906141ad565b612616565b005b34801561098a57600080fd5b506109936126d6565b6040516109a09190614aee565b60405180910390f35b3480156109b557600080fd5b506109d060048036038101906109cb9190614498565b6126dc565b6040516109dd91906149ec565b60405180910390f35b610a0060048036038101906109fb9190614539565b612870565b005b348015610a0e57600080fd5b50610a296004803603810190610a2491906143c9565b612b03565b005b348015610a3757600080fd5b50610a526004803603810190610a4d91906141ad565b612bb7565b604051610a5f9190614aee565b60405180910390f35b348015610a7457600080fd5b50610a8f6004803603810190610a8a91906143c9565b612bcf565b005b348015610a9d57600080fd5b50610ab86004803603810190610ab391906141ad565b612c82565b604051610ac59190614aee565b60405180910390f35b348015610ada57600080fd5b50610ae3612c9a565b604051610af09190614aee565b60405180910390f35b348015610b0557600080fd5b50610b0e612ca0565b604051610b1b919061498c565b60405180910390f35b610b3e6004803603810190610b399190614498565b612cb1565b005b348015610b4c57600080fd5b50610b676004803603810190610b6291906141d6565b612e73565b604051610b74919061498c565b60405180910390f35b348015610b8957600080fd5b50610b92612f07565b005b348015610ba057600080fd5b50610bbb6004803603810190610bb69190614457565b612faf565b005b348015610bc957600080fd5b50610be46004803603810190610bdf91906141ad565b613045565b005b348015610bf257600080fd5b50610c0d6004803603810190610c0891906144fd565b61313d565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610c6a57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610c9a5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b606060028054610cb090614dd5565b80601f0160208091040260200160405190810160405280929190818152602001828054610cdc90614dd5565b8015610d295780601f10610cfe57610100808354040283529160200191610d29565b820191906000526020600020905b815481529060010190602001808311610d0c57829003601f168201915b5050505050905090565b6000610d3e826131df565b610d74576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60108054610dbc90614dd5565b80601f0160208091040260200160405190810160405280929190818152602001828054610de890614dd5565b8015610e355780601f10610e0a57610100808354040283529160200191610e35565b820191906000526020600020905b815481529060010190602001808311610e1857829003601f168201915b505050505081565b6000610e48826119c5565b90508073ffffffffffffffffffffffffffffffffffffffff16610e6961323e565b73ffffffffffffffffffffffffffffffffffffffff1614610ecc57610e9581610e9061323e565b612e73565b610ecb576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b610f86613246565b73ffffffffffffffffffffffffffffffffffffffff16610fa4611f3f565b73ffffffffffffffffffffffffffffffffffffffff1614610ffa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ff190614ace565b60405180910390fd5b8060119080519060200190611010929190613f3d565b5050565b600061101e61324e565b6001546000540303905090565b600061103682613253565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461109d576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000806110a984613321565b915091506110bf81876110ba61323e565b613343565b61110b576110d4866110cf61323e565b612e73565b61110a576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415611172576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61117f8686866001613387565b801561118a57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055506112588561123488888761338d565b7c0200000000000000000000000000000000000000000000000000000000176133b5565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841614156112e05760006001850190506000600460008381526020019081526020016000205414156112de5760005481146112dd578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461134886868660016133e0565b505050505050565b611358613246565b73ffffffffffffffffffffffffffffffffffffffff16611376611f3f565b73ffffffffffffffffffffffffffffffffffffffff16146113cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113c390614ace565b60405180910390fd5b60018214156113dd5780600b819055505b60028214156113ee5780600a819055505b5050565b6113fa613246565b73ffffffffffffffffffffffffffffffffffffffff16611418611f3f565b73ffffffffffffffffffffffffffffffffffffffff161461146e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161146590614ace565b60405180910390fd5b60018214156114b95780601660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b600282141561158c57601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561154a576040517f2e3d795d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80601760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b5050565b611598613246565b73ffffffffffffffffffffffffffffffffffffffff166115b6611f3f565b73ffffffffffffffffffffffffffffffffffffffff161461160c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161160390614ace565b60405180910390fd5b6000611616611f3f565b73ffffffffffffffffffffffffffffffffffffffff1647604051611639906148e4565b60006040518083038185875af1925050503d8060008114611676576040519150601f19603f3d011682016040523d82523d6000602084013e61167b565b606091505b505090508061168957600080fd5b50565b6116a7838383604051806020016040528060008152506125a3565b505050565b601860169054906101000a900460ff166116f2576040517f2d0a346e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600c54816117009190614c7a565b341015611739576040517fd0afc53400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600b5481611745611014565b61174f9190614bf3565b1115611787576040517f52df9fe500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600e5481601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546117d59190614bf3565b111561180d576040517f7c5369f600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461185c9190614bf3565b9250508190555061186d33826133e6565b50565b601860149054906101000a900460ff1681565b600c5481565b6011805461189690614dd5565b80601f01602080910402602001604051908101604052809291908181526020018280546118c290614dd5565b801561190f5780601f106118e45761010080835404028352916020019161190f565b820191906000526020600020905b8154815290600101906020018083116118f257829003601f168201915b505050505081565b61191f613246565b73ffffffffffffffffffffffffffffffffffffffff1661193d611f3f565b73ffffffffffffffffffffffffffffffffffffffff1614611993576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161198a90614ace565b60405180910390fd5b80600f90805190602001906119a9929190613f3d565b5050565b60136020528060005260406000206000915090505481565b60006119d082613253565b9050919050565b6119df613246565b73ffffffffffffffffffffffffffffffffffffffff166119fd611f3f565b73ffffffffffffffffffffffffffffffffffffffff1614611a53576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a4a90614ace565b60405180910390fd5b818190508484905014611a9b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a9290614a6e565b60405180910390fd5b60005b82829050811015611bdf57600a54611ab4611014565b848484818110611aed577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020020135611afe9190614bf3565b1115611b36576040517f52df9fe500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611bcc858583818110611b72577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9050602002016020810190611b8791906141ad565b848484818110611bc0577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b905060200201356133e6565b8080611bd790614e38565b915050611a9e565b5050505050565b600f8054611bf390614dd5565b80601f0160208091040260200160405190810160405280929190818152602001828054611c1f90614dd5565b8015611c6c5780601f10611c4157610100808354040283529160200191611c6c565b820191906000526020600020905b815481529060010190602001808311611c4f57829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611cdc576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611d35613246565b73ffffffffffffffffffffffffffffffffffffffff16611d53611f3f565b73ffffffffffffffffffffffffffffffffffffffff1614611da9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611da090614ace565b60405180910390fd5b611db360006135ba565b565b600a5481565b600073ffffffffffffffffffffffffffffffffffffffff16601860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415611e44576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611ecb576040517fddb5de5e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a5481611ed7611014565b611ee19190614bf3565b1115611f19576040517f52df9fe500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611f2382826133e6565b5050565b60156020528060005260406000206000915090505481565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060038054611f7890614dd5565b80601f0160208091040260200160405190810160405280929190818152602001828054611fa490614dd5565b8015611ff15780601f10611fc657610100808354040283529160200191611ff1565b820191906000526020600020905b815481529060010190602001808311611fd457829003601f168201915b5050505050905090565b601860179054906101000a900460ff1681565b601860159054906101000a900460ff1681565b601860169054906101000a900460ff1681565b600082336040516020016120499291906148f9565b604051602081830303815290604052805190602001209050601860159054906101000a900460ff166120a7576040517f2d0a346e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166120fb836120ed84613680565b6136b090919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff1614612148576040517f584a793800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600c54846121569190614c7a565b34101561218f576040517fd0afc53400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8284601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546121db9190614bf3565b1115612213576040517f7c5369f600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600b548461221f611014565b6122299190614bf3565b1115612261576040517f52df9fe500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b83601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546122b09190614bf3565b925050819055506122c133856133e6565b50505050565b6122cf61323e565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612334576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806007600061234161323e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166123ee61323e565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612433919061498c565b60405180910390a35050565b612447613246565b73ffffffffffffffffffffffffffffffffffffffff16612465611f3f565b73ffffffffffffffffffffffffffffffffffffffff16146124bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124b290614ace565b60405180910390fd5b80600e8190555050565b600b5481565b6124d3613246565b73ffffffffffffffffffffffffffffffffffffffff166124f1611f3f565b73ffffffffffffffffffffffffffffffffffffffff1614612547576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161253e90614ace565b60405180910390fd5b600a54612552611014565b8261255d9190614bf3565b1115612595576040517f52df9fe500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61259f82826133e6565b5050565b6125ae84848461102b565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612610576125d9848484846136d7565b61260f576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b61261e613246565b73ffffffffffffffffffffffffffffffffffffffff1661263c611f3f565b73ffffffffffffffffffffffffffffffffffffffff1614612692576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161268990614ace565b60405180910390fd5b80601860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600e5481565b606060001515601860149054906101000a900460ff161515141561278c576010805461270790614dd5565b80601f016020809104026020016040519081016040528092919081815260200182805461273390614dd5565b80156127805780601f1061275557610100808354040283529160200191612780565b820191906000526020600020905b81548152906001019060200180831161276357829003601f168201915b5050505050905061286b565b6000600f805461279b90614dd5565b80601f01602080910402602001604051908101604052809291908181526020018280546127c790614dd5565b80156128145780601f106127e957610100808354040283529160200191612814565b820191906000526020600020905b8154815290600101906020018083116127f757829003601f168201915b5050505050905060008151116128395760405180602001604052806000815250612867565b8061284384613837565b60116040516020016128579392919061488d565b6040516020818303038152906040525b9150505b919050565b600082336040516020016128859291906148f9565b604051602081830303815290604052805190602001209050601860179054906101000a900460ff166128e3576040517f2d0a346e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166129378361292984613680565b6136b090919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff1614612984576040517f584a793800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600d54846129929190614c7a565b3410156129cb576040517fd0afc53400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8284601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612a179190614bf3565b1115612a4f576040517f7c5369f600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a5484612a5b611014565b612a659190614bf3565b1115612a9d576040517f52df9fe500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b83601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612aec9190614bf3565b92505081905550612afd33856133e6565b50505050565b612b0b613246565b73ffffffffffffffffffffffffffffffffffffffff16612b29611f3f565b73ffffffffffffffffffffffffffffffffffffffff1614612b7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b7690614ace565b60405180910390fd5b81601860156101000a81548160ff02191690831515021790555080601860166101000a81548160ff0219169083151502179055505050565b60146020528060005260406000206000915090505481565b612bd7613246565b73ffffffffffffffffffffffffffffffffffffffff16612bf5611f3f565b73ffffffffffffffffffffffffffffffffffffffff1614612c4b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c4290614ace565b60405180910390fd5b81601860176101000a81548160ff021916908315150217905550806018806101000a81548160ff0219169083151502179055505050565b60126020528060005260406000206000915090505481565b600d5481565b60188054906101000a900460ff1681565b60188054906101000a900460ff16612cf5576040517f2d0a346e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600d5481612d039190614c7a565b341015612d3c576040517fd0afc53400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a5481612d48611014565b612d529190614bf3565b1115612d8a576040517f52df9fe500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600e5481601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612dd89190614bf3565b1115612e10576040517f7c5369f600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612e5f9190614bf3565b92505081905550612e7033826133e6565b50565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b612f0f613246565b73ffffffffffffffffffffffffffffffffffffffff16612f2d611f3f565b73ffffffffffffffffffffffffffffffffffffffff1614612f83576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f7a90614ace565b60405180910390fd5b601860149054906101000a900460ff1615601860146101000a81548160ff021916908315150217905550565b612fb7613246565b73ffffffffffffffffffffffffffffffffffffffff16612fd5611f3f565b73ffffffffffffffffffffffffffffffffffffffff161461302b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161302290614ace565b60405180910390fd5b8060109080519060200190613041929190613f3d565b5050565b61304d613246565b73ffffffffffffffffffffffffffffffffffffffff1661306b611f3f565b73ffffffffffffffffffffffffffffffffffffffff16146130c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130b890614ace565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415613131576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161312890614a4e565b60405180910390fd5b61313a816135ba565b50565b613145613246565b73ffffffffffffffffffffffffffffffffffffffff16613163611f3f565b73ffffffffffffffffffffffffffffffffffffffff16146131b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131b090614ace565b60405180910390fd5b60018214156131ca5780600c819055505b60028214156131db5780600d819055505b5050565b6000816131ea61324e565b111580156131f9575060005482105b8015613237575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b600033905090565b600090565b6000808290508061326261324e565b116132ea576000548110156132e95760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821614156132e7575b60008114156132dd5760046000836001900393508381526020019081526020016000205490506132b2565b809250505061331c565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000806000600690508360005280602052604060002092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e86133a48686846139e4565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415613453576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600082141561348e576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61349b6000848385613387565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555061351283613503600086600061338d565b61350c856139ed565b176133b5565b60046000838152602001908152602001600020819055506000819050600083830190505b818060010192508573ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4808210613536578060008190555050506135b560008483856133e0565b505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008160405160200161369391906148be565b604051602081830303815290604052805190602001209050919050565b60008060006136bf85856139fd565b915091506136cc81613a80565b819250505092915050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026136fd61323e565b8786866040518563ffffffff1660e01b815260040161371f9493929190614940565b602060405180830381600087803b15801561373957600080fd5b505af192505050801561376a57506040513d601f19601f82011682018060405250810190613767919061442e565b60015b6137e4573d806000811461379a576040519150601f19603f3d011682016040523d82523d6000602084013e61379f565b606091505b506000815114156137dc576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060600082141561387f576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506139df565b600082905060005b600082146138b157808061389a90614e38565b915050600a826138aa9190614c49565b9150613887565b60008167ffffffffffffffff8111156138f3577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156139255781602001600182028036833780820191505090505b5090505b600085146139d85760018261393e9190614cd4565b9150600a8561394d9190614eb9565b60306139599190614bf3565b60f81b818381518110613995577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856139d19190614c49565b9450613929565b8093505050505b919050565b60009392505050565b60006001821460e11b9050919050565b600080604183511415613a3f5760008060006020860151925060408601519150606086015160001a9050613a3387828585613dd1565b94509450505050613a79565b604083511415613a70576000806020850151915060408501519050613a65868383613ede565b935093505050613a79565b60006002915091505b9250929050565b60006004811115613aba577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115613af3577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613afe57613dce565b60016004811115613b38577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115613b71577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613bb2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613ba990614a0e565b60405180910390fd5b60026004811115613bec577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115613c25577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613c66576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613c5d90614a2e565b60405180910390fd5b60036004811115613ca0577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115613cd9577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613d1a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613d1190614a8e565b60405180910390fd5b600480811115613d53577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115613d8c577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613dcd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613dc490614aae565b60405180910390fd5b5b50565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115613e0c576000600391509150613ed5565b601b8560ff1614158015613e245750601c8560ff1614155b15613e36576000600491509150613ed5565b600060018787878760405160008152602001604052604051613e5b94939291906149a7565b6020604051602081039080840390855afa158015613e7d573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415613ecc57600060019250925050613ed5565b80600092509250505b94509492505050565b60008060007f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60001b841690506000601b60ff8660001c901c613f219190614bf3565b9050613f2f87828885613dd1565b935093505050935093915050565b828054613f4990614dd5565b90600052602060002090601f016020900481019282613f6b5760008555613fb2565b82601f10613f8457805160ff1916838001178555613fb2565b82800160010185558215613fb2579182015b82811115613fb1578251825591602001919060010190613f96565b5b509050613fbf9190613fc3565b5090565b5b80821115613fdc576000816000905550600101613fc4565b5090565b6000613ff3613fee84614b2e565b614b09565b90508281526020810184848401111561400b57600080fd5b614016848285614d93565b509392505050565b600061403161402c84614b5f565b614b09565b90508281526020810184848401111561404957600080fd5b614054848285614d93565b509392505050565b60008135905061406b81615181565b92915050565b60008083601f84011261408357600080fd5b8235905067ffffffffffffffff81111561409c57600080fd5b6020830191508360208202830111156140b457600080fd5b9250929050565b60008083601f8401126140cd57600080fd5b8235905067ffffffffffffffff8111156140e657600080fd5b6020830191508360208202830111156140fe57600080fd5b9250929050565b60008135905061411481615198565b92915050565b600081359050614129816151af565b92915050565b60008151905061413e816151af565b92915050565b600082601f83011261415557600080fd5b8135614165848260208601613fe0565b91505092915050565b600082601f83011261417f57600080fd5b813561418f84826020860161401e565b91505092915050565b6000813590506141a7816151c6565b92915050565b6000602082840312156141bf57600080fd5b60006141cd8482850161405c565b91505092915050565b600080604083850312156141e957600080fd5b60006141f78582860161405c565b92505060206142088582860161405c565b9150509250929050565b60008060006060848603121561422757600080fd5b60006142358682870161405c565b93505060206142468682870161405c565b925050604061425786828701614198565b9150509250925092565b6000806000806080858703121561427757600080fd5b60006142858782880161405c565b94505060206142968782880161405c565b93505060406142a787828801614198565b925050606085013567ffffffffffffffff8111156142c457600080fd5b6142d087828801614144565b91505092959194509250565b600080604083850312156142ef57600080fd5b60006142fd8582860161405c565b925050602061430e85828601614105565b9150509250929050565b6000806040838503121561432b57600080fd5b60006143398582860161405c565b925050602061434a85828601614198565b9150509250929050565b6000806000806040858703121561436a57600080fd5b600085013567ffffffffffffffff81111561438457600080fd5b61439087828801614071565b9450945050602085013567ffffffffffffffff8111156143af57600080fd5b6143bb878288016140bb565b925092505092959194509250565b600080604083850312156143dc57600080fd5b60006143ea85828601614105565b92505060206143fb85828601614105565b9150509250929050565b60006020828403121561441757600080fd5b60006144258482850161411a565b91505092915050565b60006020828403121561444057600080fd5b600061444e8482850161412f565b91505092915050565b60006020828403121561446957600080fd5b600082013567ffffffffffffffff81111561448357600080fd5b61448f8482850161416e565b91505092915050565b6000602082840312156144aa57600080fd5b60006144b884828501614198565b91505092915050565b600080604083850312156144d457600080fd5b60006144e285828601614198565b92505060206144f38582860161405c565b9150509250929050565b6000806040838503121561451057600080fd5b600061451e85828601614198565b925050602061452f85828601614198565b9150509250929050565b60008060006060848603121561454e57600080fd5b600061455c86828701614198565b935050602061456d86828701614198565b925050604084013567ffffffffffffffff81111561458a57600080fd5b61459686828701614144565b9150509250925092565b6145a981614d08565b82525050565b6145c06145bb82614d08565b614e81565b82525050565b6145cf81614d1a565b82525050565b6145de81614d26565b82525050565b6145f56145f082614d26565b614e93565b82525050565b600061460682614ba5565b6146108185614bbb565b9350614620818560208601614da2565b61462981614fa6565b840191505092915050565b600061463f82614bb0565b6146498185614bd7565b9350614659818560208601614da2565b61466281614fa6565b840191505092915050565b600061467882614bb0565b6146828185614be8565b9350614692818560208601614da2565b80840191505092915050565b600081546146ab81614dd5565b6146b58186614be8565b945060018216600081146146d057600181146146e157614714565b60ff19831686528186019350614714565b6146ea85614b90565b60005b8381101561470c578154818901526001820191506020810190506146ed565b838801955050505b50505092915050565b600061472a601883614bd7565b915061473582614fc4565b602082019050919050565b600061474d601f83614bd7565b915061475882614fed565b602082019050919050565b6000614770601c83614be8565b915061477b82615016565b601c82019050919050565b6000614793602683614bd7565b915061479e8261503f565b604082019050919050565b60006147b6601283614bd7565b91506147c18261508e565b602082019050919050565b60006147d9602283614bd7565b91506147e4826150b7565b604082019050919050565b60006147fc602283614bd7565b915061480782615106565b604082019050919050565b600061481f602083614bd7565b915061482a82615155565b602082019050919050565b6000614842600083614bcc565b915061484d8261517e565b600082019050919050565b61486181614d7c565b82525050565b61487861487382614d7c565b614eaf565b82525050565b61488781614d86565b82525050565b6000614899828661466d565b91506148a5828561466d565b91506148b1828461469e565b9150819050949350505050565b60006148c982614763565b91506148d582846145e4565b60208201915081905092915050565b60006148ef82614835565b9150819050919050565b60006149058285614867565b60208201915061491582846145af565b6014820191508190509392505050565b600060208201905061493a60008301846145a0565b92915050565b600060808201905061495560008301876145a0565b61496260208301866145a0565b61496f6040830185614858565b818103606083015261498181846145fb565b905095945050505050565b60006020820190506149a160008301846145c6565b92915050565b60006080820190506149bc60008301876145d5565b6149c9602083018661487e565b6149d660408301856145d5565b6149e360608301846145d5565b95945050505050565b60006020820190508181036000830152614a068184614634565b905092915050565b60006020820190508181036000830152614a278161471d565b9050919050565b60006020820190508181036000830152614a4781614740565b9050919050565b60006020820190508181036000830152614a6781614786565b9050919050565b60006020820190508181036000830152614a87816147a9565b9050919050565b60006020820190508181036000830152614aa7816147cc565b9050919050565b60006020820190508181036000830152614ac7816147ef565b9050919050565b60006020820190508181036000830152614ae781614812565b9050919050565b6000602082019050614b036000830184614858565b92915050565b6000614b13614b24565b9050614b1f8282614e07565b919050565b6000604051905090565b600067ffffffffffffffff821115614b4957614b48614f77565b5b614b5282614fa6565b9050602081019050919050565b600067ffffffffffffffff821115614b7a57614b79614f77565b5b614b8382614fa6565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000614bfe82614d7c565b9150614c0983614d7c565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614c3e57614c3d614eea565b5b828201905092915050565b6000614c5482614d7c565b9150614c5f83614d7c565b925082614c6f57614c6e614f19565b5b828204905092915050565b6000614c8582614d7c565b9150614c9083614d7c565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614cc957614cc8614eea565b5b828202905092915050565b6000614cdf82614d7c565b9150614cea83614d7c565b925082821015614cfd57614cfc614eea565b5b828203905092915050565b6000614d1382614d5c565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b83811015614dc0578082015181840152602081019050614da5565b83811115614dcf576000848401525b50505050565b60006002820490506001821680614ded57607f821691505b60208210811415614e0157614e00614f48565b5b50919050565b614e1082614fa6565b810181811067ffffffffffffffff82111715614e2f57614e2e614f77565b5b80604052505050565b6000614e4382614d7c565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614e7657614e75614eea565b5b600182019050919050565b6000614e8c82614e9d565b9050919050565b6000819050919050565b6000614ea882614fb7565b9050919050565b6000819050919050565b6000614ec482614d7c565b9150614ecf83614d7c565b925082614edf57614ede614f19565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f41727261797320446f6e2774204d617463680000000000000000000000000000600082015250565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b50565b61518a81614d08565b811461519557600080fd5b50565b6151a181614d1a565b81146151ac57600080fd5b50565b6151b881614d30565b81146151c357600080fd5b50565b6151cf81614d7c565b81146151da57600080fd5b5056fea264697066735822122033a0a56ead0ea6a2134b840f722946c6389fa87b915df76221b050b82e33750b64736f6c63430008040033697066733a2f2f516d62597a696b58736f3834717a516a515a4b77525369397a7054565354564d554875676542634357556d635138
Deployed Bytecode
0x60806040526004361061031a5760003560e01c80638da5cb5b116101ab578063c87b56dd116100f7578063dc22bca311610095578063ec5a2d451161006f578063ec5a2d4514610b7d578063f2c4ce1e14610b94578063f2fde38b14610bbd578063f7d9757714610be65761031a565b8063dc22bca314610af9578063de63e78514610b24578063e985e9c514610b405761031a565b8063d35d1e05116100d1578063d35d1e0514610a2b578063d5939d3b14610a68578063d95da30714610a91578063da1cd4a114610ace5761031a565b8063c87b56dd146109a9578063c9882a97146109e6578063cfb093c714610a025761031a565b8063a22cb46511610164578063add5a4fa1161013e578063add5a4fa14610903578063b88d4fde1461092c578063c56e137514610955578063c7b0dcbc1461097e5761031a565b8063a22cb46514610886578063a93fef3b146108af578063ada70692146108d85761031a565b80638da5cb5b1461079357806395d89b41146107be578063972d85bb146107e9578063995334c3146108145780639abbd25a1461083f5780639af464131461086a5761031a565b8063518302271161026a5780636724348211610223578063715018a6116101fd578063715018a6146106eb578063798293461461070257806384229e671461072d578063857040da146107565761031a565b8063672434821461065a5780636c0360eb1461068357806370a08231146106ae5761031a565b8063518302271461053657806354fa9dab146105615780635503a0e81461058c57806355f804b3146105b75780635d32ec45146105e05780636352211e1461061d5761031a565b806318160ddd116102d75780633c91a881116102b15780633c91a881146104be5780633ccfd60b146104e757806342842e0e146104f15780634ac324161461051a5761031a565b806318160ddd1461044157806323b872dd1461046c57806337da577c146104955761031a565b806301ffc9a71461031f57806306fdde031461035c578063081812fc14610387578063081c8c44146103c4578063095ea7b3146103ef57806316ba10e014610418575b600080fd5b34801561032b57600080fd5b5061034660048036038101906103419190614405565b610c0f565b604051610353919061498c565b60405180910390f35b34801561036857600080fd5b50610371610ca1565b60405161037e91906149ec565b60405180910390f35b34801561039357600080fd5b506103ae60048036038101906103a99190614498565b610d33565b6040516103bb9190614925565b60405180910390f35b3480156103d057600080fd5b506103d9610daf565b6040516103e691906149ec565b60405180910390f35b3480156103fb57600080fd5b5061041660048036038101906104119190614318565b610e3d565b005b34801561042457600080fd5b5061043f600480360381019061043a9190614457565b610f7e565b005b34801561044d57600080fd5b50610456611014565b6040516104639190614aee565b60405180910390f35b34801561047857600080fd5b50610493600480360381019061048e9190614212565b61102b565b005b3480156104a157600080fd5b506104bc60048036038101906104b791906144fd565b611350565b005b3480156104ca57600080fd5b506104e560048036038101906104e091906144c1565b6113f2565b005b6104ef611590565b005b3480156104fd57600080fd5b5061051860048036038101906105139190614212565b61168c565b005b610534600480360381019061052f9190614498565b6116ac565b005b34801561054257600080fd5b5061054b611870565b604051610558919061498c565b60405180910390f35b34801561056d57600080fd5b50610576611883565b6040516105839190614aee565b60405180910390f35b34801561059857600080fd5b506105a1611889565b6040516105ae91906149ec565b60405180910390f35b3480156105c357600080fd5b506105de60048036038101906105d99190614457565b611917565b005b3480156105ec57600080fd5b50610607600480360381019061060291906141ad565b6119ad565b6040516106149190614aee565b60405180910390f35b34801561062957600080fd5b50610644600480360381019061063f9190614498565b6119c5565b6040516106519190614925565b60405180910390f35b34801561066657600080fd5b50610681600480360381019061067c9190614354565b6119d7565b005b34801561068f57600080fd5b50610698611be6565b6040516106a591906149ec565b60405180910390f35b3480156106ba57600080fd5b506106d560048036038101906106d091906141ad565b611c74565b6040516106e29190614aee565b60405180910390f35b3480156106f757600080fd5b50610700611d2d565b005b34801561070e57600080fd5b50610717611db5565b6040516107249190614aee565b60405180910390f35b34801561073957600080fd5b50610754600480360381019061074f9190614318565b611dbb565b005b34801561076257600080fd5b5061077d600480360381019061077891906141ad565b611f27565b60405161078a9190614aee565b60405180910390f35b34801561079f57600080fd5b506107a8611f3f565b6040516107b59190614925565b60405180910390f35b3480156107ca57600080fd5b506107d3611f69565b6040516107e091906149ec565b60405180910390f35b3480156107f557600080fd5b506107fe611ffb565b60405161080b919061498c565b60405180910390f35b34801561082057600080fd5b5061082961200e565b604051610836919061498c565b60405180910390f35b34801561084b57600080fd5b50610854612021565b604051610861919061498c565b60405180910390f35b610884600480360381019061087f9190614539565b612034565b005b34801561089257600080fd5b506108ad60048036038101906108a891906142dc565b6122c7565b005b3480156108bb57600080fd5b506108d660048036038101906108d19190614498565b61243f565b005b3480156108e457600080fd5b506108ed6124c5565b6040516108fa9190614aee565b60405180910390f35b34801561090f57600080fd5b5061092a60048036038101906109259190614318565b6124cb565b005b34801561093857600080fd5b50610953600480360381019061094e9190614261565b6125a3565b005b34801561096157600080fd5b5061097c600480360381019061097791906141ad565b612616565b005b34801561098a57600080fd5b506109936126d6565b6040516109a09190614aee565b60405180910390f35b3480156109b557600080fd5b506109d060048036038101906109cb9190614498565b6126dc565b6040516109dd91906149ec565b60405180910390f35b610a0060048036038101906109fb9190614539565b612870565b005b348015610a0e57600080fd5b50610a296004803603810190610a2491906143c9565b612b03565b005b348015610a3757600080fd5b50610a526004803603810190610a4d91906141ad565b612bb7565b604051610a5f9190614aee565b60405180910390f35b348015610a7457600080fd5b50610a8f6004803603810190610a8a91906143c9565b612bcf565b005b348015610a9d57600080fd5b50610ab86004803603810190610ab391906141ad565b612c82565b604051610ac59190614aee565b60405180910390f35b348015610ada57600080fd5b50610ae3612c9a565b604051610af09190614aee565b60405180910390f35b348015610b0557600080fd5b50610b0e612ca0565b604051610b1b919061498c565b60405180910390f35b610b3e6004803603810190610b399190614498565b612cb1565b005b348015610b4c57600080fd5b50610b676004803603810190610b6291906141d6565b612e73565b604051610b74919061498c565b60405180910390f35b348015610b8957600080fd5b50610b92612f07565b005b348015610ba057600080fd5b50610bbb6004803603810190610bb69190614457565b612faf565b005b348015610bc957600080fd5b50610be46004803603810190610bdf91906141ad565b613045565b005b348015610bf257600080fd5b50610c0d6004803603810190610c0891906144fd565b61313d565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610c6a57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610c9a5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b606060028054610cb090614dd5565b80601f0160208091040260200160405190810160405280929190818152602001828054610cdc90614dd5565b8015610d295780601f10610cfe57610100808354040283529160200191610d29565b820191906000526020600020905b815481529060010190602001808311610d0c57829003601f168201915b5050505050905090565b6000610d3e826131df565b610d74576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60108054610dbc90614dd5565b80601f0160208091040260200160405190810160405280929190818152602001828054610de890614dd5565b8015610e355780601f10610e0a57610100808354040283529160200191610e35565b820191906000526020600020905b815481529060010190602001808311610e1857829003601f168201915b505050505081565b6000610e48826119c5565b90508073ffffffffffffffffffffffffffffffffffffffff16610e6961323e565b73ffffffffffffffffffffffffffffffffffffffff1614610ecc57610e9581610e9061323e565b612e73565b610ecb576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b610f86613246565b73ffffffffffffffffffffffffffffffffffffffff16610fa4611f3f565b73ffffffffffffffffffffffffffffffffffffffff1614610ffa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ff190614ace565b60405180910390fd5b8060119080519060200190611010929190613f3d565b5050565b600061101e61324e565b6001546000540303905090565b600061103682613253565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461109d576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000806110a984613321565b915091506110bf81876110ba61323e565b613343565b61110b576110d4866110cf61323e565b612e73565b61110a576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415611172576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61117f8686866001613387565b801561118a57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055506112588561123488888761338d565b7c0200000000000000000000000000000000000000000000000000000000176133b5565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841614156112e05760006001850190506000600460008381526020019081526020016000205414156112de5760005481146112dd578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461134886868660016133e0565b505050505050565b611358613246565b73ffffffffffffffffffffffffffffffffffffffff16611376611f3f565b73ffffffffffffffffffffffffffffffffffffffff16146113cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113c390614ace565b60405180910390fd5b60018214156113dd5780600b819055505b60028214156113ee5780600a819055505b5050565b6113fa613246565b73ffffffffffffffffffffffffffffffffffffffff16611418611f3f565b73ffffffffffffffffffffffffffffffffffffffff161461146e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161146590614ace565b60405180910390fd5b60018214156114b95780601660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b600282141561158c57601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561154a576040517f2e3d795d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80601760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b5050565b611598613246565b73ffffffffffffffffffffffffffffffffffffffff166115b6611f3f565b73ffffffffffffffffffffffffffffffffffffffff161461160c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161160390614ace565b60405180910390fd5b6000611616611f3f565b73ffffffffffffffffffffffffffffffffffffffff1647604051611639906148e4565b60006040518083038185875af1925050503d8060008114611676576040519150601f19603f3d011682016040523d82523d6000602084013e61167b565b606091505b505090508061168957600080fd5b50565b6116a7838383604051806020016040528060008152506125a3565b505050565b601860169054906101000a900460ff166116f2576040517f2d0a346e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600c54816117009190614c7a565b341015611739576040517fd0afc53400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600b5481611745611014565b61174f9190614bf3565b1115611787576040517f52df9fe500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600e5481601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546117d59190614bf3565b111561180d576040517f7c5369f600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461185c9190614bf3565b9250508190555061186d33826133e6565b50565b601860149054906101000a900460ff1681565b600c5481565b6011805461189690614dd5565b80601f01602080910402602001604051908101604052809291908181526020018280546118c290614dd5565b801561190f5780601f106118e45761010080835404028352916020019161190f565b820191906000526020600020905b8154815290600101906020018083116118f257829003601f168201915b505050505081565b61191f613246565b73ffffffffffffffffffffffffffffffffffffffff1661193d611f3f565b73ffffffffffffffffffffffffffffffffffffffff1614611993576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161198a90614ace565b60405180910390fd5b80600f90805190602001906119a9929190613f3d565b5050565b60136020528060005260406000206000915090505481565b60006119d082613253565b9050919050565b6119df613246565b73ffffffffffffffffffffffffffffffffffffffff166119fd611f3f565b73ffffffffffffffffffffffffffffffffffffffff1614611a53576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a4a90614ace565b60405180910390fd5b818190508484905014611a9b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a9290614a6e565b60405180910390fd5b60005b82829050811015611bdf57600a54611ab4611014565b848484818110611aed577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020020135611afe9190614bf3565b1115611b36576040517f52df9fe500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611bcc858583818110611b72577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9050602002016020810190611b8791906141ad565b848484818110611bc0577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b905060200201356133e6565b8080611bd790614e38565b915050611a9e565b5050505050565b600f8054611bf390614dd5565b80601f0160208091040260200160405190810160405280929190818152602001828054611c1f90614dd5565b8015611c6c5780601f10611c4157610100808354040283529160200191611c6c565b820191906000526020600020905b815481529060010190602001808311611c4f57829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611cdc576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611d35613246565b73ffffffffffffffffffffffffffffffffffffffff16611d53611f3f565b73ffffffffffffffffffffffffffffffffffffffff1614611da9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611da090614ace565b60405180910390fd5b611db360006135ba565b565b600a5481565b600073ffffffffffffffffffffffffffffffffffffffff16601860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415611e44576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611ecb576040517fddb5de5e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a5481611ed7611014565b611ee19190614bf3565b1115611f19576040517f52df9fe500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611f2382826133e6565b5050565b60156020528060005260406000206000915090505481565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060038054611f7890614dd5565b80601f0160208091040260200160405190810160405280929190818152602001828054611fa490614dd5565b8015611ff15780601f10611fc657610100808354040283529160200191611ff1565b820191906000526020600020905b815481529060010190602001808311611fd457829003601f168201915b5050505050905090565b601860179054906101000a900460ff1681565b601860159054906101000a900460ff1681565b601860169054906101000a900460ff1681565b600082336040516020016120499291906148f9565b604051602081830303815290604052805190602001209050601860159054906101000a900460ff166120a7576040517f2d0a346e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166120fb836120ed84613680565b6136b090919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff1614612148576040517f584a793800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600c54846121569190614c7a565b34101561218f576040517fd0afc53400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8284601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546121db9190614bf3565b1115612213576040517f7c5369f600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600b548461221f611014565b6122299190614bf3565b1115612261576040517f52df9fe500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b83601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546122b09190614bf3565b925050819055506122c133856133e6565b50505050565b6122cf61323e565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612334576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806007600061234161323e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166123ee61323e565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612433919061498c565b60405180910390a35050565b612447613246565b73ffffffffffffffffffffffffffffffffffffffff16612465611f3f565b73ffffffffffffffffffffffffffffffffffffffff16146124bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124b290614ace565b60405180910390fd5b80600e8190555050565b600b5481565b6124d3613246565b73ffffffffffffffffffffffffffffffffffffffff166124f1611f3f565b73ffffffffffffffffffffffffffffffffffffffff1614612547576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161253e90614ace565b60405180910390fd5b600a54612552611014565b8261255d9190614bf3565b1115612595576040517f52df9fe500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61259f82826133e6565b5050565b6125ae84848461102b565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612610576125d9848484846136d7565b61260f576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b61261e613246565b73ffffffffffffffffffffffffffffffffffffffff1661263c611f3f565b73ffffffffffffffffffffffffffffffffffffffff1614612692576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161268990614ace565b60405180910390fd5b80601860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600e5481565b606060001515601860149054906101000a900460ff161515141561278c576010805461270790614dd5565b80601f016020809104026020016040519081016040528092919081815260200182805461273390614dd5565b80156127805780601f1061275557610100808354040283529160200191612780565b820191906000526020600020905b81548152906001019060200180831161276357829003601f168201915b5050505050905061286b565b6000600f805461279b90614dd5565b80601f01602080910402602001604051908101604052809291908181526020018280546127c790614dd5565b80156128145780601f106127e957610100808354040283529160200191612814565b820191906000526020600020905b8154815290600101906020018083116127f757829003601f168201915b5050505050905060008151116128395760405180602001604052806000815250612867565b8061284384613837565b60116040516020016128579392919061488d565b6040516020818303038152906040525b9150505b919050565b600082336040516020016128859291906148f9565b604051602081830303815290604052805190602001209050601860179054906101000a900460ff166128e3576040517f2d0a346e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166129378361292984613680565b6136b090919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff1614612984576040517f584a793800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600d54846129929190614c7a565b3410156129cb576040517fd0afc53400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8284601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612a179190614bf3565b1115612a4f576040517f7c5369f600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a5484612a5b611014565b612a659190614bf3565b1115612a9d576040517f52df9fe500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b83601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612aec9190614bf3565b92505081905550612afd33856133e6565b50505050565b612b0b613246565b73ffffffffffffffffffffffffffffffffffffffff16612b29611f3f565b73ffffffffffffffffffffffffffffffffffffffff1614612b7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b7690614ace565b60405180910390fd5b81601860156101000a81548160ff02191690831515021790555080601860166101000a81548160ff0219169083151502179055505050565b60146020528060005260406000206000915090505481565b612bd7613246565b73ffffffffffffffffffffffffffffffffffffffff16612bf5611f3f565b73ffffffffffffffffffffffffffffffffffffffff1614612c4b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c4290614ace565b60405180910390fd5b81601860176101000a81548160ff021916908315150217905550806018806101000a81548160ff0219169083151502179055505050565b60126020528060005260406000206000915090505481565b600d5481565b60188054906101000a900460ff1681565b60188054906101000a900460ff16612cf5576040517f2d0a346e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600d5481612d039190614c7a565b341015612d3c576040517fd0afc53400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a5481612d48611014565b612d529190614bf3565b1115612d8a576040517f52df9fe500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600e5481601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612dd89190614bf3565b1115612e10576040517f7c5369f600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612e5f9190614bf3565b92505081905550612e7033826133e6565b50565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b612f0f613246565b73ffffffffffffffffffffffffffffffffffffffff16612f2d611f3f565b73ffffffffffffffffffffffffffffffffffffffff1614612f83576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f7a90614ace565b60405180910390fd5b601860149054906101000a900460ff1615601860146101000a81548160ff021916908315150217905550565b612fb7613246565b73ffffffffffffffffffffffffffffffffffffffff16612fd5611f3f565b73ffffffffffffffffffffffffffffffffffffffff161461302b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161302290614ace565b60405180910390fd5b8060109080519060200190613041929190613f3d565b5050565b61304d613246565b73ffffffffffffffffffffffffffffffffffffffff1661306b611f3f565b73ffffffffffffffffffffffffffffffffffffffff16146130c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130b890614ace565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415613131576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161312890614a4e565b60405180910390fd5b61313a816135ba565b50565b613145613246565b73ffffffffffffffffffffffffffffffffffffffff16613163611f3f565b73ffffffffffffffffffffffffffffffffffffffff16146131b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131b090614ace565b60405180910390fd5b60018214156131ca5780600c819055505b60028214156131db5780600d819055505b5050565b6000816131ea61324e565b111580156131f9575060005482105b8015613237575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b600033905090565b600090565b6000808290508061326261324e565b116132ea576000548110156132e95760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821614156132e7575b60008114156132dd5760046000836001900393508381526020019081526020016000205490506132b2565b809250505061331c565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000806000600690508360005280602052604060002092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e86133a48686846139e4565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415613453576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600082141561348e576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61349b6000848385613387565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555061351283613503600086600061338d565b61350c856139ed565b176133b5565b60046000838152602001908152602001600020819055506000819050600083830190505b818060010192508573ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4808210613536578060008190555050506135b560008483856133e0565b505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008160405160200161369391906148be565b604051602081830303815290604052805190602001209050919050565b60008060006136bf85856139fd565b915091506136cc81613a80565b819250505092915050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026136fd61323e565b8786866040518563ffffffff1660e01b815260040161371f9493929190614940565b602060405180830381600087803b15801561373957600080fd5b505af192505050801561376a57506040513d601f19601f82011682018060405250810190613767919061442e565b60015b6137e4573d806000811461379a576040519150601f19603f3d011682016040523d82523d6000602084013e61379f565b606091505b506000815114156137dc576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060600082141561387f576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506139df565b600082905060005b600082146138b157808061389a90614e38565b915050600a826138aa9190614c49565b9150613887565b60008167ffffffffffffffff8111156138f3577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156139255781602001600182028036833780820191505090505b5090505b600085146139d85760018261393e9190614cd4565b9150600a8561394d9190614eb9565b60306139599190614bf3565b60f81b818381518110613995577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856139d19190614c49565b9450613929565b8093505050505b919050565b60009392505050565b60006001821460e11b9050919050565b600080604183511415613a3f5760008060006020860151925060408601519150606086015160001a9050613a3387828585613dd1565b94509450505050613a79565b604083511415613a70576000806020850151915060408501519050613a65868383613ede565b935093505050613a79565b60006002915091505b9250929050565b60006004811115613aba577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115613af3577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613afe57613dce565b60016004811115613b38577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115613b71577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613bb2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613ba990614a0e565b60405180910390fd5b60026004811115613bec577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115613c25577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613c66576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613c5d90614a2e565b60405180910390fd5b60036004811115613ca0577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115613cd9577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613d1a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613d1190614a8e565b60405180910390fd5b600480811115613d53577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115613d8c577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613dcd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613dc490614aae565b60405180910390fd5b5b50565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115613e0c576000600391509150613ed5565b601b8560ff1614158015613e245750601c8560ff1614155b15613e36576000600491509150613ed5565b600060018787878760405160008152602001604052604051613e5b94939291906149a7565b6020604051602081039080840390855afa158015613e7d573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415613ecc57600060019250925050613ed5565b80600092509250505b94509492505050565b60008060007f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60001b841690506000601b60ff8660001c901c613f219190614bf3565b9050613f2f87828885613dd1565b935093505050935093915050565b828054613f4990614dd5565b90600052602060002090601f016020900481019282613f6b5760008555613fb2565b82601f10613f8457805160ff1916838001178555613fb2565b82800160010185558215613fb2579182015b82811115613fb1578251825591602001919060010190613f96565b5b509050613fbf9190613fc3565b5090565b5b80821115613fdc576000816000905550600101613fc4565b5090565b6000613ff3613fee84614b2e565b614b09565b90508281526020810184848401111561400b57600080fd5b614016848285614d93565b509392505050565b600061403161402c84614b5f565b614b09565b90508281526020810184848401111561404957600080fd5b614054848285614d93565b509392505050565b60008135905061406b81615181565b92915050565b60008083601f84011261408357600080fd5b8235905067ffffffffffffffff81111561409c57600080fd5b6020830191508360208202830111156140b457600080fd5b9250929050565b60008083601f8401126140cd57600080fd5b8235905067ffffffffffffffff8111156140e657600080fd5b6020830191508360208202830111156140fe57600080fd5b9250929050565b60008135905061411481615198565b92915050565b600081359050614129816151af565b92915050565b60008151905061413e816151af565b92915050565b600082601f83011261415557600080fd5b8135614165848260208601613fe0565b91505092915050565b600082601f83011261417f57600080fd5b813561418f84826020860161401e565b91505092915050565b6000813590506141a7816151c6565b92915050565b6000602082840312156141bf57600080fd5b60006141cd8482850161405c565b91505092915050565b600080604083850312156141e957600080fd5b60006141f78582860161405c565b92505060206142088582860161405c565b9150509250929050565b60008060006060848603121561422757600080fd5b60006142358682870161405c565b93505060206142468682870161405c565b925050604061425786828701614198565b9150509250925092565b6000806000806080858703121561427757600080fd5b60006142858782880161405c565b94505060206142968782880161405c565b93505060406142a787828801614198565b925050606085013567ffffffffffffffff8111156142c457600080fd5b6142d087828801614144565b91505092959194509250565b600080604083850312156142ef57600080fd5b60006142fd8582860161405c565b925050602061430e85828601614105565b9150509250929050565b6000806040838503121561432b57600080fd5b60006143398582860161405c565b925050602061434a85828601614198565b9150509250929050565b6000806000806040858703121561436a57600080fd5b600085013567ffffffffffffffff81111561438457600080fd5b61439087828801614071565b9450945050602085013567ffffffffffffffff8111156143af57600080fd5b6143bb878288016140bb565b925092505092959194509250565b600080604083850312156143dc57600080fd5b60006143ea85828601614105565b92505060206143fb85828601614105565b9150509250929050565b60006020828403121561441757600080fd5b60006144258482850161411a565b91505092915050565b60006020828403121561444057600080fd5b600061444e8482850161412f565b91505092915050565b60006020828403121561446957600080fd5b600082013567ffffffffffffffff81111561448357600080fd5b61448f8482850161416e565b91505092915050565b6000602082840312156144aa57600080fd5b60006144b884828501614198565b91505092915050565b600080604083850312156144d457600080fd5b60006144e285828601614198565b92505060206144f38582860161405c565b9150509250929050565b6000806040838503121561451057600080fd5b600061451e85828601614198565b925050602061452f85828601614198565b9150509250929050565b60008060006060848603121561454e57600080fd5b600061455c86828701614198565b935050602061456d86828701614198565b925050604084013567ffffffffffffffff81111561458a57600080fd5b61459686828701614144565b9150509250925092565b6145a981614d08565b82525050565b6145c06145bb82614d08565b614e81565b82525050565b6145cf81614d1a565b82525050565b6145de81614d26565b82525050565b6145f56145f082614d26565b614e93565b82525050565b600061460682614ba5565b6146108185614bbb565b9350614620818560208601614da2565b61462981614fa6565b840191505092915050565b600061463f82614bb0565b6146498185614bd7565b9350614659818560208601614da2565b61466281614fa6565b840191505092915050565b600061467882614bb0565b6146828185614be8565b9350614692818560208601614da2565b80840191505092915050565b600081546146ab81614dd5565b6146b58186614be8565b945060018216600081146146d057600181146146e157614714565b60ff19831686528186019350614714565b6146ea85614b90565b60005b8381101561470c578154818901526001820191506020810190506146ed565b838801955050505b50505092915050565b600061472a601883614bd7565b915061473582614fc4565b602082019050919050565b600061474d601f83614bd7565b915061475882614fed565b602082019050919050565b6000614770601c83614be8565b915061477b82615016565b601c82019050919050565b6000614793602683614bd7565b915061479e8261503f565b604082019050919050565b60006147b6601283614bd7565b91506147c18261508e565b602082019050919050565b60006147d9602283614bd7565b91506147e4826150b7565b604082019050919050565b60006147fc602283614bd7565b915061480782615106565b604082019050919050565b600061481f602083614bd7565b915061482a82615155565b602082019050919050565b6000614842600083614bcc565b915061484d8261517e565b600082019050919050565b61486181614d7c565b82525050565b61487861487382614d7c565b614eaf565b82525050565b61488781614d86565b82525050565b6000614899828661466d565b91506148a5828561466d565b91506148b1828461469e565b9150819050949350505050565b60006148c982614763565b91506148d582846145e4565b60208201915081905092915050565b60006148ef82614835565b9150819050919050565b60006149058285614867565b60208201915061491582846145af565b6014820191508190509392505050565b600060208201905061493a60008301846145a0565b92915050565b600060808201905061495560008301876145a0565b61496260208301866145a0565b61496f6040830185614858565b818103606083015261498181846145fb565b905095945050505050565b60006020820190506149a160008301846145c6565b92915050565b60006080820190506149bc60008301876145d5565b6149c9602083018661487e565b6149d660408301856145d5565b6149e360608301846145d5565b95945050505050565b60006020820190508181036000830152614a068184614634565b905092915050565b60006020820190508181036000830152614a278161471d565b9050919050565b60006020820190508181036000830152614a4781614740565b9050919050565b60006020820190508181036000830152614a6781614786565b9050919050565b60006020820190508181036000830152614a87816147a9565b9050919050565b60006020820190508181036000830152614aa7816147cc565b9050919050565b60006020820190508181036000830152614ac7816147ef565b9050919050565b60006020820190508181036000830152614ae781614812565b9050919050565b6000602082019050614b036000830184614858565b92915050565b6000614b13614b24565b9050614b1f8282614e07565b919050565b6000604051905090565b600067ffffffffffffffff821115614b4957614b48614f77565b5b614b5282614fa6565b9050602081019050919050565b600067ffffffffffffffff821115614b7a57614b79614f77565b5b614b8382614fa6565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000614bfe82614d7c565b9150614c0983614d7c565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614c3e57614c3d614eea565b5b828201905092915050565b6000614c5482614d7c565b9150614c5f83614d7c565b925082614c6f57614c6e614f19565b5b828204905092915050565b6000614c8582614d7c565b9150614c9083614d7c565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614cc957614cc8614eea565b5b828202905092915050565b6000614cdf82614d7c565b9150614cea83614d7c565b925082821015614cfd57614cfc614eea565b5b828203905092915050565b6000614d1382614d5c565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b83811015614dc0578082015181840152602081019050614da5565b83811115614dcf576000848401525b50505050565b60006002820490506001821680614ded57607f821691505b60208210811415614e0157614e00614f48565b5b50919050565b614e1082614fa6565b810181811067ffffffffffffffff82111715614e2f57614e2e614f77565b5b80604052505050565b6000614e4382614d7c565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614e7657614e75614eea565b5b600182019050919050565b6000614e8c82614e9d565b9050919050565b6000819050919050565b6000614ea882614fb7565b9050919050565b6000819050919050565b6000614ec482614d7c565b9150614ecf83614d7c565b925082614edf57614ede614f19565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f41727261797320446f6e2774204d617463680000000000000000000000000000600082015250565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b50565b61518a81614d08565b811461519557600080fd5b50565b6151a181614d1a565b81146151ac57600080fd5b50565b6151b881614d30565b81146151c357600080fd5b50565b6151cf81614d7c565b81146151da57600080fd5b5056fea264697066735822122033a0a56ead0ea6a2134b840f722946c6389fa87b915df76221b050b82e33750b64736f6c63430008040033
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.