NFT
Overview
TokenID
4305
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
MoonRunners
Compiler Version
v0.8.11+commit.d7f03943
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: Unlicense pragma solidity ^0.8.11; // ........................................................................................................................ // ........................................................................................................................ // ........................................................................................................................ // ....................................................... .............................................................. // ................................................................. ......... ........................................ // .............................................. ............... .................................................. // ........................................... .............. .................................................... // .............................................. ....................................... ............................... // ..................................................(@@@@@@@@@@@@@@@@@@@@@@@@@@@@(.... ............................ // ................................................@@( ,,,,,,,,,,/////////%@@..... ............................... // ................................................@@( ,,,,,,,,,,,,,,///////%@@...................................... // ................................................@@@&&&&&&&//////////////%&&&&&&@@@...................................... // ..................................................(@@/////,,,,,,,,,,,,,,/////@@(........................................ // .....................................................@@#////*,,,,,,,,,////#@@,.......................................... // .......................................................%@@/////,,,,*////&@%............................................. // ........................................,@@@@%...........,@@(/////////@@/............................................... // ......................................(@@////#@@............&@@////%@@...........,@@@@%................................. // ....................................@@%((##(((//@@(,,.........,@@@@(.........,,#@@##((#@@............................... // ....................................@@%(#@@#((////%@@........................@@%(#@@#(#@@............................... // ....................................@@%(#@@@@&((//#&&**,................,*/&&(/(#%@@#(#@@............................... // ....................................@@%(#@@@@@%%/////@@(****************%&%((((&@@@@#(#@@............................... // ....................................@@%(#@@@@@@@(((//%%%%%&&&&&%%&&&&&%%(/(##%%&@@&&%%%##............................... // ....................................@@%(#@@@@@@@((//////////(((////(((((///((@@@@@((@@%................................. // ....................................@@&##%%@@@@@//////////**(((((***//(((((((##%%%((@@%................................. // ....................................@@%//((@@&##(((/////////***(((((((*******(((((((@@%................................. // ....................................@@%((**///*******((////////****/((((/////****/@@**,................................. // .................................*@@/****((((((((((((@@@@@@@(///////****&@@@@#((((@@,................................... // .................................*@@((((/*******((%@@ %@@##@@&///////@@%#%@@@@%((//@@%................................. // ...............................%@&((*****/////((@@( %@@ &@@///////((. *@@. (@@//@@%................................. // ...............................%@&**//////////(( %@@((@@@((//(((//((%@@. //@@%................................. // ...............................%@&////////////((((, /((//@@@(((((((/////(( ////#@@............................... // .............................@@#/////////((*,,,,((((((((((((((((((((((,,*//(((((((((//#@@............................... // .............................@@#//////(((,,,,,,,,,/(((((((((,,,,,,,,,,,,,,*//((((((((((//@@#............................ // .............................@@%((((((/,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,//((((((((((@@#............................ // .............................@@(******/((((*,,,,(((((,,,,,,,,,,,,@@@@@@@@@@@@,,*//((/////@@#............................ // ...............................%@&//((/,,,,,,,,,(((((,,,,,,,,,,,,%&@@@@@@@@&&,,*//(((((((@@#............................ // ...............................%@&****///((*,,,,,,,,,(((((,,,,,,,,,(&&@@&&#,,,,*//((//#@@............................... // ...............................%@&((((/**,,,,,,,,,,,,,,/((((((((((((((&&#(/,,%&#((((((#@@............................... // .............................@@#////((((((((((((,,,,,,,,,,&&&&&&&&&&&&&&&&&&&#((((((@@%................................. // .............................@@#////(((((**//*,,,,,,,,,,,,,,,,*&&/*/((**#&#,,(((((//@@%................................. // .............................@@%((//(((((**///**(((((((*,,,,,,*&&/*/((**#&%(((((((((@@%................................. // ..........................(@@(((((//(((((**///(((((((,,,,,,,,,*%%///////#&%(((((////((#@@............................... // ..........................(@@///////(((((**///**((/(((((((,,,,,,,%&&&&&&#((((/////((((#@@............................... // ..........................(@@/////((((/**/////**/////,,,,,,,,,,,,,,,,,,,,,*((((((((((((//@@#............................ // ........................**#&&/////((((/**//***((((/////*,,**,,,,,,,,,,,,,**(((((((((/////&&#**.......................... // ........................@@%(((((((//**///**////////////***//,,,,,,,,,,,,/(((((((((//((///**#@@.......................... // ........................@@%/////////////*///(//////((**,,,,,,,,,,,,,,,,,**/(((((((//(((**//(%%##*....................... // ........................@@%/////////**//////////(((//*****//,,,,,,,,,,,,//((((////((////////**@@/....................... import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol"; import {ERC721A} from "erc721a/contracts/ERC721A.sol"; import {ERC721ABurnable} from "erc721a/contracts/extensions/ERC721ABurnable.sol"; import {ERC721AQueryable} from "erc721a/contracts/extensions/ERC721AQueryable.sol"; import {EnumerableSet} from "@openzeppelin/contracts/utils/structs/EnumerableSet.sol"; contract MoonRunners is ERC721AQueryable, ERC721ABurnable, Ownable { using EnumerableSet for EnumerableSet.UintSet; event ForceMoon(uint256 phase); uint256 public constant MAX_SUPPLY = 10_000; uint256 public maxByWallet = 2; mapping(address => uint256) public mintedByWallet; // 0:close | 1:open bool public saleState; //baseURI string public baseURI; //uriSuffix string public uriSuffix; /// @notice the moooon uint256 public constant NEW_MOON = 592500; // 07/01/1970 : 21h35 uint256 public constant MOON_CYCLE = (29530 * 86400) / 1000; // 29.53 days // 2551392 uint256 public constant MOON_CYCLE_1_8 = MOON_CYCLE / 8; // 3.69 days // 318924 uint256 public constant NEW_MOON_START = NEW_MOON - (MOON_CYCLE_1_8 / 2); uint256 public forcedPhase = 8; EnumerableSet.UintSet private usedPhases; constructor( string memory name, string memory symbol, string memory baseURI_, string memory uriSuffix_ ) ERC721A(name, symbol) { baseURI = baseURI_; uriSuffix = uriSuffix_; usedPhases.add(4); } /******************** PUBLIC ********************/ function mint(uint256 amount) external { require(msg.sender == tx.origin, "not allowed"); require(saleState, "Sale is closed!"); require(_totalMinted() + amount <= MAX_SUPPLY, "Exceed MAX_SUPPLY"); require(amount > 0, "Amount can't be 0"); require(amount + mintedByWallet[msg.sender] <= maxByWallet, "Exceed maxByWallet"); mintedByWallet[msg.sender] += amount; _safeMint(msg.sender, amount); } /******************** OVERRIDES ********************/ function _startTokenId() internal view virtual override returns (uint256) { return 1; } function _baseURI() internal view virtual override returns (string memory) { return baseURI; } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); uint256 currentMoonPhase = getMoonPhase(block.timestamp); if (bytes(baseURI).length == 0) { return _toString(tokenId); } if (usedPhases.contains(currentMoonPhase)) { return string(abi.encodePacked(baseURI, _toString(tokenId), "_", _toString(currentMoonPhase), uriSuffix)); } return string(abi.encodePacked(baseURI, _toString(tokenId), uriSuffix)); } /******************** OWNER ********************/ /// @notice Set baseURI. /// @param newBaseURI New baseURI. /// @param newUriSuffix New uriSuffix. function setBaseURI(string memory newBaseURI, string memory newUriSuffix) external onlyOwner { baseURI = newBaseURI; uriSuffix = newUriSuffix; } /// @notice Set saleState. /// @param newSaleState New sale state. function setSaleState(bool newSaleState) external onlyOwner { saleState = newSaleState; } /// @notice Set maxByWallet. /// @param newMaxByWallet New max by wallet function setMaxByWallet(uint256 newMaxByWallet) external onlyOwner { maxByWallet = newMaxByWallet; } /******************** ALPHA MINT ********************/ function alphaMint(address[] calldata addresses, uint256[] calldata count) external onlyOwner { require(!saleState, "sale is open!"); require(addresses.length == count.length, "mismatching lengths!"); for (uint256 i; i < addresses.length; i++) { _safeMint(addresses[i], count[i]); } require(_totalMinted() <= MAX_SUPPLY, "Exceed MAX_SUPPLY"); } /******************** MOON CYCLES ********************/ function getMoonPhase(uint256 timestamp) public view returns (uint256 moonPhase) { if (forcedPhase >= 0 && forcedPhase <= 7) { return forcedPhase; } uint256 cycle_offset = (timestamp - NEW_MOON_START) % MOON_CYCLE; return ((cycle_offset * 10**18 * 8) / (MOON_CYCLE)) / 10**18; } function getMoonPhaseName(uint256 timestamp) public view returns (string memory phase) { uint256 moonPhase = getMoonPhase(timestamp); if (moonPhase == 0) return "0 - New Moon"; if (moonPhase == 1) return "1 - Waxing Crescent Moon"; if (moonPhase == 2) return "2 - First Quarter Moon"; if (moonPhase == 3) return "3 - Waxing Gibbous Moon"; if (moonPhase == 4) return "4 - Full Moon"; if (moonPhase == 5) return "5 - Waning Gibbous Moon"; if (moonPhase == 6) return "6 - Last Quarter Moon"; if (moonPhase == 7) return "7 - Waning Crescent Moon"; } function getCurrentMoonPhase() external view returns (uint256 moonPhase) { return getMoonPhase(block.timestamp); } function getCurrentMoonPhaseName() external view returns (string memory) { return getMoonPhaseName(block.timestamp); } function getUsedPhases() external view returns (uint256[] memory) { return usedPhases.values(); } function addUsedPhase(uint256 phase) external onlyOwner { require(phase >= 0 && phase <= 7, "invalid phase"); require(!usedPhases.contains(phase), "already in"); usedPhases.add(phase); } function removeUsedPhase(uint256 phase) external onlyOwner { require(usedPhases.contains(phase), "not in"); usedPhases.remove(phase); } /******************** MOON EVENTS ********************/ /// @notice 0-7: force a phase (0:new moon, 4:full moon), > 7: default phase function forceMoon(uint256 phase) external onlyOwner { forcedPhase = phase; emit ForceMoon(phase); } }
// 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 // ERC721A Contracts v4.0.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 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` 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 auxillary 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 auxillary 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; assembly { // Cast aux without masking. 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; } /** * 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 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, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev Casts the address to uint256 without masking. */ function _addressToUint256(address value) private pure returns (uint256 result) { assembly { result := value } } /** * @dev Casts the boolean to uint256 without branching. */ function _boolToUint256(bool value) private pure returns (uint256 result) { assembly { result := value } } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = address(uint160(_packedOwnershipOf(tokenId))); if (to == owner) revert ApprovalToCurrentOwner(); 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-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { _transfer(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. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) 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 or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the balance and number minted. _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] = _addressToUint256(to) | (block.timestamp << BITPOS_START_TIMESTAMP) | (_boolToUint256(quantity == 1) << BITPOS_NEXT_INITIALIZED); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; if (to.code.length != 0) { do { emit Transfer(address(0), to, updatedIndex); if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (updatedIndex < end); // Reentrancy protection if (_currentIndex != startTokenId) revert(); } else { do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex < end); } _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @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. */ 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 or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the balance and number minted. _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] = _addressToUint256(to) | (block.timestamp << BITPOS_START_TIMESTAMP) | (_boolToUint256(quantity == 1) << BITPOS_NEXT_INITIALIZED); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex < end); _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) private { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); bool isApprovedOrOwner = (_msgSenderERC721A() == from || isApprovedForAll(from, _msgSenderERC721A()) || getApproved(tokenId) == _msgSenderERC721A()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. delete _tokenApprovals[tokenId]; // 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] = _addressToUint256(to) | (block.timestamp << BITPOS_START_TIMESTAMP) | BITMASK_NEXT_INITIALIZED; // 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)); if (approvalCheck) { bool isApprovedOrOwner = (_msgSenderERC721A() == from || isApprovedForAll(from, _msgSenderERC721A()) || getApproved(tokenId) == _msgSenderERC721A()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. delete _tokenApprovals[tokenId]; // 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] = _addressToUint256(from) | (block.timestamp << BITPOS_START_TIMESTAMP) | BITMASK_BURNED | BITMASK_NEXT_INITIALIZED; // 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 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 // ERC721A Contracts v4.0.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721ABurnable.sol'; import '../ERC721A.sol'; /** * @title ERC721A Burnable Token * @dev ERC721A Token that can be irreversibly burned (destroyed). */ abstract contract ERC721ABurnable is ERC721A, IERC721ABurnable { /** * @dev Burns `tokenId`. See {ERC721A-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) public virtual override { _burn(tokenId, true); } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.0.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721AQueryable.sol'; import '../ERC721A.sol'; /** * @title ERC721A Queryable * @dev ERC721A subclass with convenience query functions. */ abstract contract ERC721AQueryable is ERC721A, IERC721AQueryable { /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * - `addr` = `address(0)` * - `startTimestamp` = `0` * - `burned` = `false` * * If the `tokenId` is burned: * - `addr` = `<Address of owner before token was burned>` * - `startTimestamp` = `<Timestamp when token was burned>` * - `burned = `true` * * Otherwise: * - `addr` = `<Address of owner>` * - `startTimestamp` = `<Timestamp of start of ownership>` * - `burned = `false` */ function explicitOwnershipOf(uint256 tokenId) public view override returns (TokenOwnership memory) { TokenOwnership memory ownership; if (tokenId < _startTokenId() || tokenId >= _nextTokenId()) { return ownership; } ownership = _ownershipAt(tokenId); if (ownership.burned) { return ownership; } return _ownershipOf(tokenId); } /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] memory tokenIds) external view override returns (TokenOwnership[] memory) { unchecked { uint256 tokenIdsLength = tokenIds.length; TokenOwnership[] memory ownerships = new TokenOwnership[](tokenIdsLength); for (uint256 i; i != tokenIdsLength; ++i) { ownerships[i] = explicitOwnershipOf(tokenIds[i]); } return ownerships; } } /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start` < `stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view override returns (uint256[] memory) { unchecked { if (start >= stop) revert InvalidQueryRange(); uint256 tokenIdsIdx; uint256 stopLimit = _nextTokenId(); // Set `start = max(start, _startTokenId())`. if (start < _startTokenId()) { start = _startTokenId(); } // Set `stop = min(stop, stopLimit)`. if (stop > stopLimit) { stop = stopLimit; } uint256 tokenIdsMaxLength = balanceOf(owner); // Set `tokenIdsMaxLength = min(balanceOf(owner), stop - start)`, // to cater for cases where `balanceOf(owner)` is too big. if (start < stop) { uint256 rangeLength = stop - start; if (rangeLength < tokenIdsMaxLength) { tokenIdsMaxLength = rangeLength; } } else { tokenIdsMaxLength = 0; } uint256[] memory tokenIds = new uint256[](tokenIdsMaxLength); if (tokenIdsMaxLength == 0) { return tokenIds; } // We need to call `explicitOwnershipOf(start)`, // because the slot at `start` may not be initialized. TokenOwnership memory ownership = explicitOwnershipOf(start); address currOwnershipAddr; // If the starting slot exists (i.e. not burned), initialize `currOwnershipAddr`. // `ownership.address` will not be zero, as `start` is clamped to the valid token ID range. if (!ownership.burned) { currOwnershipAddr = ownership.addr; } for (uint256 i = start; i != stop && tokenIdsIdx != tokenIdsMaxLength; ++i) { ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } // Downsize the array to fit. assembly { mstore(tokenIds, tokenIdsIdx) } return tokenIds; } } /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(totalSupply) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K pfp collections should be fine). */ function tokensOfOwner(address owner) external view override returns (uint256[] memory) { unchecked { uint256 tokenIdsIdx; address currOwnershipAddr; uint256 tokenIdsLength = balanceOf(owner); uint256[] memory tokenIds = new uint256[](tokenIdsLength); TokenOwnership memory ownership; for (uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i) { ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } return tokenIds; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (utils/structs/EnumerableSet.sol) pragma solidity ^0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping(bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; if (lastIndex != toDeleteIndex) { bytes32 lastValue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastValue; // Update the index for the moved value set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex } // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { return set._values[index]; } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function _values(Set storage set) private view returns (bytes32[] memory) { return set._values; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(Bytes32Set storage set) internal view returns (bytes32[] memory) { return _values(set._inner); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(AddressSet storage set) internal view returns (address[] memory) { bytes32[] memory store = _values(set._inner); address[] memory result; assembly { result := store } return result; } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(UintSet storage set) internal view returns (uint256[] memory) { bytes32[] memory store = _values(set._inner); uint256[] memory result; assembly { result := store } return result; } }
// 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 // ERC721A Contracts v4.0.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(); /** * The caller cannot approve to the current owner. */ error ApprovalToCurrentOwner(); /** * 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(); 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; } /** * @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); }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.0.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import '../IERC721A.sol'; /** * @dev Interface of an ERC721ABurnable compliant contract. */ interface IERC721ABurnable is IERC721A { /** * @dev Burns `tokenId`. See {ERC721A-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) external; }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.0.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import '../IERC721A.sol'; /** * @dev Interface of an ERC721AQueryable compliant contract. */ interface IERC721AQueryable is IERC721A { /** * Invalid query range (`start` >= `stop`). */ error InvalidQueryRange(); /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * - `addr` = `address(0)` * - `startTimestamp` = `0` * - `burned` = `false` * * If the `tokenId` is burned: * - `addr` = `<Address of owner before token was burned>` * - `startTimestamp` = `<Timestamp when token was burned>` * - `burned = `true` * * Otherwise: * - `addr` = `<Address of owner>` * - `startTimestamp` = `<Timestamp of start of ownership>` * - `burned = `false` */ function explicitOwnershipOf(uint256 tokenId) external view returns (TokenOwnership memory); /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] memory tokenIds) external view returns (TokenOwnership[] memory); /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start` < `stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view returns (uint256[] memory); /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(totalSupply) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K pfp collections should be fine). */ function tokensOfOwner(address owner) external view returns (uint256[] memory); }
{ "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":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"string","name":"baseURI_","type":"string"},{"internalType":"string","name":"uriSuffix_","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"InvalidQueryRange","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"phase","type":"uint256"}],"name":"ForceMoon","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MOON_CYCLE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MOON_CYCLE_1_8","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NEW_MOON","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NEW_MOON_START","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"phase","type":"uint256"}],"name":"addUsedPhase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"},{"internalType":"uint256[]","name":"count","type":"uint256[]"}],"name":"alphaMint","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":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"}],"internalType":"struct IERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"}],"internalType":"struct IERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"phase","type":"uint256"}],"name":"forceMoon","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"forcedPhase","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentMoonPhase","outputs":[{"internalType":"uint256","name":"moonPhase","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentMoonPhaseName","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"getMoonPhase","outputs":[{"internalType":"uint256","name":"moonPhase","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"getMoonPhaseName","outputs":[{"internalType":"string","name":"phase","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getUsedPhases","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxByWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mintedByWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"phase","type":"uint256"}],"name":"removeUsedPhase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleState","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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"},{"internalType":"string","name":"newUriSuffix","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMaxByWallet","type":"uint256"}],"name":"setMaxByWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"newSaleState","type":"bool"}],"name":"setSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"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"}]
Contract Creation Code
608060405260026009556008600e553480156200001b57600080fd5b5060405162005392380380620053928339818101604052810190620000419190620004e9565b838381600290805190602001906200005b9291906200029c565b508060039080519060200190620000749291906200029c565b50620000856200010660201b60201c565b6000819055505050620000ad620000a16200010f60201b60201c565b6200011760201b60201c565b81600c9080519060200190620000c59291906200029c565b5080600d9080519060200190620000de9291906200029c565b50620000fb6004600f620001dd60201b620024fe1790919060201c565b50505050506200063c565b60006001905090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000620001f7836000018360001b620001ff60201b60201c565b905092915050565b60006200021383836200027960201b60201c565b6200026e57826000018290806001815401808255809150506001900390600052602060002001600090919091909150558260000180549050836001016000848152602001908152602001600020819055506001905062000273565b600090505b92915050565b600080836001016000848152602001908152602001600020541415905092915050565b828054620002aa9062000606565b90600052602060002090601f016020900481019282620002ce57600085556200031a565b82601f10620002e957805160ff19168380011785556200031a565b828001600101855582156200031a579182015b8281111562000319578251825591602001919060010190620002fc565b5b5090506200032991906200032d565b5090565b5b80821115620003485760008160009055506001016200032e565b5090565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620003b5826200036a565b810181811067ffffffffffffffff82111715620003d757620003d66200037b565b5b80604052505050565b6000620003ec6200034c565b9050620003fa8282620003aa565b919050565b600067ffffffffffffffff8211156200041d576200041c6200037b565b5b62000428826200036a565b9050602081019050919050565b60005b838110156200045557808201518184015260208101905062000438565b8381111562000465576000848401525b50505050565b6000620004826200047c84620003ff565b620003e0565b905082815260208101848484011115620004a157620004a062000365565b5b620004ae84828562000435565b509392505050565b600082601f830112620004ce57620004cd62000360565b5b8151620004e08482602086016200046b565b91505092915050565b6000806000806080858703121562000506576200050562000356565b5b600085015167ffffffffffffffff8111156200052757620005266200035b565b5b6200053587828801620004b6565b945050602085015167ffffffffffffffff8111156200055957620005586200035b565b5b6200056787828801620004b6565b935050604085015167ffffffffffffffff8111156200058b576200058a6200035b565b5b6200059987828801620004b6565b925050606085015167ffffffffffffffff811115620005bd57620005bc6200035b565b5b620005cb87828801620004b6565b91505092959194509250565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200061f57607f821691505b60208210811415620006365762000635620005d7565b5b50919050565b614d46806200064c6000396000f3fe608060405234801561001057600080fd5b506004361061028a5760003560e01c80636c0360eb1161015c57806399a2557a116100ce578063c87b56dd11610087578063c87b56dd146107d7578063c9e5512614610807578063cadc9bbf14610825578063e985e9c514610843578063f09a03c014610873578063f2fde38b1461088f5761028a565b806399a2557a14610707578063a0712d6814610737578063a22cb46514610753578063b88d4fde1461076f578063c23dc68f1461078b578063c4e37095146107bb5761028a565b8063841709ff11610120578063841709ff146106335780638462151c1461064f5780638d814d0d1461067f5780638da5cb5b1461069b57806391833ab5146106b957806395d89b41146106e95761028a565b80636c0360eb1461058d57806370a08231146105ab57806370ac810f146105db578063715018a61461060b57806379fd5c08146106155761028a565b806332cb6b0c116102005780635503a0e8116101b95780635503a0e8146104b75780635bbb2177146104d5578063603f4d52146105055780636352211e146105235780636790a9de14610553578063699f68121461056f5761028a565b806332cb6b0c1461040757806334ecc70a146104255780633f665efd1461044357806342842e0e1461046157806342966c681461047d5780634ccf5c6d146104995761028a565b8063095ea7b311610252578063095ea7b3146103475780630d7581111461036357806318160ddd1461039357806323b872dd146103b15780632bc84975146103cd5780632e067421146103eb5761028a565b8063013c53b91461028f57806301ffc9a7146102ad57806306fdde03146102dd578063081812fc146102fb57806308b219401461032b575b600080fd5b6102976108ab565b6040516102a4919061369e565b60405180910390f35b6102c760048036038101906102c29190613725565b6108be565b6040516102d4919061376d565b60405180910390f35b6102e5610950565b6040516102f29190613821565b60405180910390f35b6103156004803603810190610310919061386f565b6109e2565b60405161032291906138dd565b60405180910390f35b6103456004803603810190610340919061386f565b610a5e565b005b610361600480360381019061035c9190613924565b610b97565b005b61037d60048036038101906103789190613964565b610d3e565b60405161038a919061369e565b60405180910390f35b61039b610d56565b6040516103a8919061369e565b60405180910390f35b6103cb60048036038101906103c69190613991565b610d6d565b005b6103d5610d7d565b6040516103e2919061369e565b60405180910390f35b6104056004803603810190610400919061386f565b610d84565b005b61040f610e0a565b60405161041c919061369e565b60405180910390f35b61042d610e10565b60405161043a919061369e565b60405180910390f35b61044b610e16565b604051610458919061369e565b60405180910390f35b61047b60048036038101906104769190613991565b610e1d565b005b6104976004803603810190610492919061386f565b610e3d565b005b6104a1610e4b565b6040516104ae919061369e565b60405180910390f35b6104bf610e5b565b6040516104cc9190613821565b60405180910390f35b6104ef60048036038101906104ea9190613b2c565b610ee9565b6040516104fc9190613ca7565b60405180910390f35b61050d610faa565b60405161051a919061376d565b60405180910390f35b61053d6004803603810190610538919061386f565b610fbd565b60405161054a91906138dd565b60405180910390f35b61056d60048036038101906105689190613d7e565b610fcf565b005b61057761107d565b604051610584919061369e565b60405180910390f35b6105956110aa565b6040516105a29190613821565b60405180910390f35b6105c560048036038101906105c09190613964565b611138565b6040516105d2919061369e565b60405180910390f35b6105f560048036038101906105f0919061386f565b6111f1565b604051610602919061369e565b60405180910390f35b6106136112a8565b005b61061d611330565b60405161062a9190613821565b60405180910390f35b61064d6004803603810190610648919061386f565b611340565b005b61066960048036038101906106649190613964565b611427565b6040516106769190613eb4565b60405180910390f35b6106996004803603810190610694919061386f565b611571565b005b6106a361162e565b6040516106b091906138dd565b60405180910390f35b6106d360048036038101906106ce919061386f565b611658565b6040516106e09190613821565b60405180910390f35b6106f16118a6565b6040516106fe9190613821565b60405180910390f35b610721600480360381019061071c9190613ed6565b611938565b60405161072e9190613eb4565b60405180910390f35b610751600480360381019061074c919061386f565b611b4c565b005b61076d60048036038101906107689190613f55565b611d95565b005b61078960048036038101906107849190614036565b611f0d565b005b6107a560048036038101906107a0919061386f565b611f80565b6040516107b291906140fb565b60405180910390f35b6107d560048036038101906107d09190614116565b611fea565b005b6107f160048036038101906107ec919061386f565b612083565b6040516107fe9190613821565b60405180910390f35b61080f612189565b60405161081c9190613eb4565b60405180910390f35b61082d61219a565b60405161083a919061369e565b60405180910390f35b61085d60048036038101906108589190614143565b6121a0565b60405161086a919061376d565b60405180910390f35b61088d60048036038101906108889190614234565b612234565b005b6108a960048036038101906108a49190613964565b612406565b005b60086226ee606108bb9190614313565b81565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061091957506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806109495750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60606002805461095f90614373565b80601f016020809104026020016040519081016040528092919081815260200182805461098b90614373565b80156109d85780601f106109ad576101008083540402835291602001916109d8565b820191906000526020600020905b8154815290600101906020018083116109bb57829003601f168201915b5050505050905090565b60006109ed82612518565b610a23576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b610a66612577565b73ffffffffffffffffffffffffffffffffffffffff16610a8461162e565b73ffffffffffffffffffffffffffffffffffffffff1614610ada576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ad1906143f1565b60405180910390fd5b60008110158015610aec575060078111155b610b2b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b229061445d565b60405180910390fd5b610b3f81600f61257f90919063ffffffff16565b15610b7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b76906144c9565b60405180910390fd5b610b9381600f6124fe90919063ffffffff16565b5050565b6000610ba282612599565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610c0a576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610c29612667565b73ffffffffffffffffffffffffffffffffffffffff1614610c8c57610c5581610c50612667565b6121a0565b610c8b576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600a6020528060005260406000206000915090505481565b6000610d6061266f565b6001546000540303905090565b610d78838383612678565b505050565b6226ee6081565b610d8c612577565b73ffffffffffffffffffffffffffffffffffffffff16610daa61162e565b73ffffffffffffffffffffffffffffffffffffffff1614610e00576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610df7906143f1565b60405180910390fd5b8060098190555050565b61271081565b60095481565b62090a7481565b610e3883838360405180602001604052806000815250611f0d565b505050565b610e48816001612a22565b50565b6000610e56426111f1565b905090565b600d8054610e6890614373565b80601f0160208091040260200160405190810160405280929190818152602001828054610e9490614373565b8015610ee15780601f10610eb657610100808354040283529160200191610ee1565b820191906000526020600020905b815481529060010190602001808311610ec457829003601f168201915b505050505081565b606060008251905060008167ffffffffffffffff811115610f0d57610f0c6139e9565b5b604051908082528060200260200182016040528015610f4657816020015b610f3361359f565b815260200190600190039081610f2b5790505b50905060005b828114610f9f57610f76858281518110610f6957610f686144e9565b5b6020026020010151611f80565b828281518110610f8957610f886144e9565b5b6020026020010181905250806001019050610f4c565b508092505050919050565b600b60009054906101000a900460ff1681565b6000610fc882612599565b9050919050565b610fd7612577565b73ffffffffffffffffffffffffffffffffffffffff16610ff561162e565b73ffffffffffffffffffffffffffffffffffffffff161461104b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611042906143f1565b60405180910390fd5b81600c90805190602001906110619291906135e2565b5080600d90805190602001906110789291906135e2565b505050565b600260086226ee6061108f9190614313565b6110999190614313565b62090a746110a79190614518565b81565b600c80546110b790614373565b80601f01602080910402602001604051908101604052809291908181526020018280546110e390614373565b80156111305780601f1061110557610100808354040283529160200191611130565b820191906000526020600020905b81548152906001019060200180831161111357829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156111a0576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b600080600e541015801561120857506007600e5411155b1561121757600e5490506112a3565b60006226ee60600260086226ee6061122f9190614313565b6112399190614313565b62090a746112479190614518565b846112529190614518565b61125c919061454c565b9050670de0b6b3a76400006226ee606008670de0b6b3a764000084611281919061457d565b61128b919061457d565b6112959190614313565b61129f9190614313565b9150505b919050565b6112b0612577565b73ffffffffffffffffffffffffffffffffffffffff166112ce61162e565b73ffffffffffffffffffffffffffffffffffffffff1614611324576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161131b906143f1565b60405180910390fd5b61132e6000612cfa565b565b606061133b42611658565b905090565b611348612577565b73ffffffffffffffffffffffffffffffffffffffff1661136661162e565b73ffffffffffffffffffffffffffffffffffffffff16146113bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113b3906143f1565b60405180910390fd5b6113d081600f61257f90919063ffffffff16565b61140f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161140690614623565b60405180910390fd5b61142381600f612dc090919063ffffffff16565b5050565b6060600080600061143785611138565b905060008167ffffffffffffffff811115611455576114546139e9565b5b6040519080825280602002602001820160405280156114835781602001602082028036833780820191505090505b50905061148e61359f565b600061149861266f565b90505b838614611563576114ab81612dda565b91508160400151156114bc57611558565b600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff16146114fc57816000015194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415611557578083878060010198508151811061154a576115496144e9565b5b6020026020010181815250505b5b80600101905061149b565b508195505050505050919050565b611579612577565b73ffffffffffffffffffffffffffffffffffffffff1661159761162e565b73ffffffffffffffffffffffffffffffffffffffff16146115ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115e4906143f1565b60405180910390fd5b80600e819055507f8e7ea54f67e11ec76348554f9b2250e4dffb1390980b62d626821f62d552e84a81604051611623919061369e565b60405180910390a150565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606000611665836111f1565b905060008114156116ae576040518060400160405280600c81526020017f30202d204e6577204d6f6f6e00000000000000000000000000000000000000008152509150506118a1565b60018114156116f5576040518060400160405280601881526020017f31202d20576178696e67204372657363656e74204d6f6f6e00000000000000008152509150506118a1565b600281141561173c576040518060400160405280601681526020017f32202d2046697273742051756172746572204d6f6f6e000000000000000000008152509150506118a1565b6003811415611783576040518060400160405280601781526020017f33202d20576178696e6720476962626f7573204d6f6f6e0000000000000000008152509150506118a1565b60048114156117ca576040518060400160405280600d81526020017f34202d2046756c6c204d6f6f6e000000000000000000000000000000000000008152509150506118a1565b6005811415611811576040518060400160405280601781526020017f35202d2057616e696e6720476962626f7573204d6f6f6e0000000000000000008152509150506118a1565b6006811415611858576040518060400160405280601581526020017f36202d204c6173742051756172746572204d6f6f6e00000000000000000000008152509150506118a1565b600781141561189f576040518060400160405280601881526020017f37202d2057616e696e67204372657363656e74204d6f6f6e00000000000000008152509150506118a1565b505b919050565b6060600380546118b590614373565b80601f01602080910402602001604051908101604052809291908181526020018280546118e190614373565b801561192e5780601f106119035761010080835404028352916020019161192e565b820191906000526020600020905b81548152906001019060200180831161191157829003601f168201915b5050505050905090565b6060818310611973576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008061197e612e05565b905061198861266f565b85101561199a5761199761266f565b94505b808411156119a6578093505b60006119b187611138565b9050848610156119d45760008686039050818110156119ce578091505b506119d9565b600090505b60008167ffffffffffffffff8111156119f5576119f46139e9565b5b604051908082528060200260200182016040528015611a235781602001602082028036833780820191505090505b5090506000821415611a3b5780945050505050611b45565b6000611a4688611f80565b905060008160400151611a5b57816000015190505b60008990505b888114158015611a715750848714155b15611b3757611a7f81612dda565b9250826040015115611a9057611b2c565b600073ffffffffffffffffffffffffffffffffffffffff16836000015173ffffffffffffffffffffffffffffffffffffffff1614611ad057826000015191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611b2b5780848880600101995081518110611b1e57611b1d6144e9565b5b6020026020010181815250505b5b806001019050611a61565b508583528296505050505050505b9392505050565b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611bba576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bb19061468f565b60405180910390fd5b600b60009054906101000a900460ff16611c09576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c00906146fb565b60405180910390fd5b61271081611c15612e0e565b611c1f919061471b565b1115611c60576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c57906147bd565b60405180910390fd5b60008111611ca3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c9a90614829565b60405180910390fd5b600954600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205482611cf1919061471b565b1115611d32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d2990614895565b60405180910390fd5b80600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611d81919061471b565b92505081905550611d923382612e21565b50565b611d9d612667565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611e02576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060076000611e0f612667565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611ebc612667565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611f01919061376d565b60405180910390a35050565b611f18848484612678565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611f7a57611f4384848484612e3f565b611f79576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b611f8861359f565b611f9061359f565b611f9861266f565b831080611fac5750611fa8612e05565b8310155b15611fba5780915050611fe5565b611fc383612dda565b9050806040015115611fd85780915050611fe5565b611fe183612f90565b9150505b919050565b611ff2612577565b73ffffffffffffffffffffffffffffffffffffffff1661201061162e565b73ffffffffffffffffffffffffffffffffffffffff1614612066576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161205d906143f1565b60405180910390fd5b80600b60006101000a81548160ff02191690831515021790555050565b606061208e82612518565b6120c4576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006120cf426111f1565b90506000600c80546120e090614373565b905014156120f9576120f183612fb0565b915050612184565b61210d81600f61257f90919063ffffffff16565b1561215257600c61211d84612fb0565b61212683612fb0565b600d60405160200161213b94939291906149d1565b604051602081830303815290604052915050612184565b600c61215d84612fb0565b600d60405160200161217193929190614a1a565b6040516020818303038152906040529150505b919050565b6060612195600f61300a565b905090565b600e5481565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61223c612577565b73ffffffffffffffffffffffffffffffffffffffff1661225a61162e565b73ffffffffffffffffffffffffffffffffffffffff16146122b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122a7906143f1565b60405180910390fd5b600b60009054906101000a900460ff1615612300576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122f790614a97565b60405180910390fd5b818190508484905014612348576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161233f90614b03565b60405180910390fd5b60005b848490508110156123b3576123a085858381811061236c5761236b6144e9565b5b90506020020160208101906123819190613964565b848484818110612394576123936144e9565b5b90506020020135612e21565b80806123ab90614b23565b91505061234b565b506127106123bf612e0e565b1115612400576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123f7906147bd565b60405180910390fd5b50505050565b61240e612577565b73ffffffffffffffffffffffffffffffffffffffff1661242c61162e565b73ffffffffffffffffffffffffffffffffffffffff1614612482576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612479906143f1565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156124f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124e990614bde565b60405180910390fd5b6124fb81612cfa565b50565b6000612510836000018360001b61302b565b905092915050565b60008161252361266f565b11158015612532575060005482105b8015612570575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b6000612591836000018360001b61309b565b905092915050565b600080829050806125a861266f565b116126305760005481101561262f5760006004600083815260200190815260200160002054905060007c01000000000000000000000000000000000000000000000000000000008216141561262d575b60008114156126235760046000836001900393508381526020019081526020016000205490506125f8565b8092505050612662565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b600033905090565b60006001905090565b600061268382612599565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146126ea576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008473ffffffffffffffffffffffffffffffffffffffff1661270b612667565b73ffffffffffffffffffffffffffffffffffffffff16148061273a575061273985612734612667565b6121a0565b5b8061277f5750612748612667565b73ffffffffffffffffffffffffffffffffffffffff16612767846109e2565b73ffffffffffffffffffffffffffffffffffffffff16145b9050806127b8576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141561281f576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61282c85858560016130be565b6006600084815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055507c020000000000000000000000000000000000000000000000000000000060a042901b612929866130c4565b1717600460008581526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000831614156129b35760006001840190506000600460008381526020019081526020016000205414156129b15760005481146129b0578260046000838152602001908152602001600020819055505b5b505b828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612a1b85858560016130ce565b5050505050565b6000612a2d83612599565b905060008190508215612b0a5760008173ffffffffffffffffffffffffffffffffffffffff16612a5b612667565b73ffffffffffffffffffffffffffffffffffffffff161480612a8a5750612a8982612a84612667565b6121a0565b5b80612acf5750612a98612667565b73ffffffffffffffffffffffffffffffffffffffff16612ab7866109e2565b73ffffffffffffffffffffffffffffffffffffffff16145b905080612b08576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505b612b188160008660016130be565b6006600085815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600160806001901b03600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055507c02000000000000000000000000000000000000000000000000000000007c010000000000000000000000000000000000000000000000000000000060a042901b612bed846130c4565b171717600460008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000083161415612c78576000600185019050600060046000838152602001908152602001600020541415612c76576000548114612c75578260046000838152602001908152602001600020819055505b5b505b83600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612ce28160008660016130ce565b60016000815480929190600101919050555050505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000612dd2836000018360001b6130d4565b905092915050565b612de261359f565b612dfe60046000848152602001908152602001600020546131e8565b9050919050565b60008054905090565b6000612e1861266f565b60005403905090565b612e3b828260405180602001604052806000815250613284565b5050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612e65612667565b8786866040518563ffffffff1660e01b8152600401612e879493929190614c53565b6020604051808303816000875af1925050508015612ec357506040513d601f19601f82011682018060405250810190612ec09190614cb4565b60015b612f3d573d8060008114612ef3576040519150601f19603f3d011682016040523d82523d6000602084013e612ef8565b606091505b50600081511415612f35576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b612f9861359f565b612fa9612fa483612599565b6131e8565b9050919050565b60606080604051019050806040528082600183039250600a81066030018353600a810490505b8015612ff657600183039250600a81066030018353600a81049050612fd6565b508181036020830392508083525050919050565b6060600061301a83600001613539565b905060608190508092505050919050565b6000613037838361309b565b613090578260000182908060018154018082558091505060019003906000526020600020016000909190919091505582600001805490508360010160008481526020019081526020016000208190555060019050613095565b600090505b92915050565b600080836001016000848152602001908152602001600020541415905092915050565b50505050565b6000819050919050565b50505050565b600080836001016000848152602001908152602001600020549050600081146131dc5760006001826131069190614518565b905060006001866000018054905061311e9190614518565b905081811461318d57600086600001828154811061313f5761313e6144e9565b5b9060005260206000200154905080876000018481548110613163576131626144e9565b5b90600052602060002001819055508387600101600083815260200190815260200160002081905550505b856000018054806131a1576131a0614ce1565b5b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506131e2565b60009150505b92915050565b6131f061359f565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c010000000000000000000000000000000000000000000000000000000083161415816040019015159081151581525050919050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156132f1576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600083141561332c576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61333960008583866130be565b600160406001901b178302600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555060e161339e60018514613595565b901b60a042901b6133ae866130c4565b1717600460008381526020019081526020016000208190555060008190506000848201905060008673ffffffffffffffffffffffffffffffffffffffff163b146134b2575b818673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46134626000878480600101955087612e3f565b613498576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8082106133f35782600054146134ad57600080fd5b61351d565b5b818060010192508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a48082106134b3575b81600081905550505061353360008583866130ce565b50505050565b60608160000180548060200260200160405190810160405280929190818152602001828054801561358957602002820191906000526020600020905b815481526020019060010190808311613575575b50505050509050919050565b6000819050919050565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681526020016000151581525090565b8280546135ee90614373565b90600052602060002090601f0160209004810192826136105760008555613657565b82601f1061362957805160ff1916838001178555613657565b82800160010185558215613657579182015b8281111561365657825182559160200191906001019061363b565b5b5090506136649190613668565b5090565b5b80821115613681576000816000905550600101613669565b5090565b6000819050919050565b61369881613685565b82525050565b60006020820190506136b3600083018461368f565b92915050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613702816136cd565b811461370d57600080fd5b50565b60008135905061371f816136f9565b92915050565b60006020828403121561373b5761373a6136c3565b5b600061374984828501613710565b91505092915050565b60008115159050919050565b61376781613752565b82525050565b6000602082019050613782600083018461375e565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156137c25780820151818401526020810190506137a7565b838111156137d1576000848401525b50505050565b6000601f19601f8301169050919050565b60006137f382613788565b6137fd8185613793565b935061380d8185602086016137a4565b613816816137d7565b840191505092915050565b6000602082019050818103600083015261383b81846137e8565b905092915050565b61384c81613685565b811461385757600080fd5b50565b60008135905061386981613843565b92915050565b600060208284031215613885576138846136c3565b5b60006138938482850161385a565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006138c78261389c565b9050919050565b6138d7816138bc565b82525050565b60006020820190506138f260008301846138ce565b92915050565b613901816138bc565b811461390c57600080fd5b50565b60008135905061391e816138f8565b92915050565b6000806040838503121561393b5761393a6136c3565b5b60006139498582860161390f565b925050602061395a8582860161385a565b9150509250929050565b60006020828403121561397a576139796136c3565b5b60006139888482850161390f565b91505092915050565b6000806000606084860312156139aa576139a96136c3565b5b60006139b88682870161390f565b93505060206139c98682870161390f565b92505060406139da8682870161385a565b9150509250925092565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613a21826137d7565b810181811067ffffffffffffffff82111715613a4057613a3f6139e9565b5b80604052505050565b6000613a536136b9565b9050613a5f8282613a18565b919050565b600067ffffffffffffffff821115613a7f57613a7e6139e9565b5b602082029050602081019050919050565b600080fd5b6000613aa8613aa384613a64565b613a49565b90508083825260208201905060208402830185811115613acb57613aca613a90565b5b835b81811015613af45780613ae0888261385a565b845260208401935050602081019050613acd565b5050509392505050565b600082601f830112613b1357613b126139e4565b5b8135613b23848260208601613a95565b91505092915050565b600060208284031215613b4257613b416136c3565b5b600082013567ffffffffffffffff811115613b6057613b5f6136c8565b5b613b6c84828501613afe565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613baa816138bc565b82525050565b600067ffffffffffffffff82169050919050565b613bcd81613bb0565b82525050565b613bdc81613752565b82525050565b606082016000820151613bf86000850182613ba1565b506020820151613c0b6020850182613bc4565b506040820151613c1e6040850182613bd3565b50505050565b6000613c308383613be2565b60608301905092915050565b6000602082019050919050565b6000613c5482613b75565b613c5e8185613b80565b9350613c6983613b91565b8060005b83811015613c9a578151613c818882613c24565b9750613c8c83613c3c565b925050600181019050613c6d565b5085935050505092915050565b60006020820190508181036000830152613cc18184613c49565b905092915050565b600080fd5b600067ffffffffffffffff821115613ce957613ce86139e9565b5b613cf2826137d7565b9050602081019050919050565b82818337600083830152505050565b6000613d21613d1c84613cce565b613a49565b905082815260208101848484011115613d3d57613d3c613cc9565b5b613d48848285613cff565b509392505050565b600082601f830112613d6557613d646139e4565b5b8135613d75848260208601613d0e565b91505092915050565b60008060408385031215613d9557613d946136c3565b5b600083013567ffffffffffffffff811115613db357613db26136c8565b5b613dbf85828601613d50565b925050602083013567ffffffffffffffff811115613de057613ddf6136c8565b5b613dec85828601613d50565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613e2b81613685565b82525050565b6000613e3d8383613e22565b60208301905092915050565b6000602082019050919050565b6000613e6182613df6565b613e6b8185613e01565b9350613e7683613e12565b8060005b83811015613ea7578151613e8e8882613e31565b9750613e9983613e49565b925050600181019050613e7a565b5085935050505092915050565b60006020820190508181036000830152613ece8184613e56565b905092915050565b600080600060608486031215613eef57613eee6136c3565b5b6000613efd8682870161390f565b9350506020613f0e8682870161385a565b9250506040613f1f8682870161385a565b9150509250925092565b613f3281613752565b8114613f3d57600080fd5b50565b600081359050613f4f81613f29565b92915050565b60008060408385031215613f6c57613f6b6136c3565b5b6000613f7a8582860161390f565b9250506020613f8b85828601613f40565b9150509250929050565b600067ffffffffffffffff821115613fb057613faf6139e9565b5b613fb9826137d7565b9050602081019050919050565b6000613fd9613fd484613f95565b613a49565b905082815260208101848484011115613ff557613ff4613cc9565b5b614000848285613cff565b509392505050565b600082601f83011261401d5761401c6139e4565b5b813561402d848260208601613fc6565b91505092915050565b600080600080608085870312156140505761404f6136c3565b5b600061405e8782880161390f565b945050602061406f8782880161390f565b93505060406140808782880161385a565b925050606085013567ffffffffffffffff8111156140a1576140a06136c8565b5b6140ad87828801614008565b91505092959194509250565b6060820160008201516140cf6000850182613ba1565b5060208201516140e26020850182613bc4565b5060408201516140f56040850182613bd3565b50505050565b600060608201905061411060008301846140b9565b92915050565b60006020828403121561412c5761412b6136c3565b5b600061413a84828501613f40565b91505092915050565b6000806040838503121561415a576141596136c3565b5b60006141688582860161390f565b92505060206141798582860161390f565b9150509250929050565b600080fd5b60008083601f84011261419e5761419d6139e4565b5b8235905067ffffffffffffffff8111156141bb576141ba614183565b5b6020830191508360208202830111156141d7576141d6613a90565b5b9250929050565b60008083601f8401126141f4576141f36139e4565b5b8235905067ffffffffffffffff81111561421157614210614183565b5b60208301915083602082028301111561422d5761422c613a90565b5b9250929050565b6000806000806040858703121561424e5761424d6136c3565b5b600085013567ffffffffffffffff81111561426c5761426b6136c8565b5b61427887828801614188565b9450945050602085013567ffffffffffffffff81111561429b5761429a6136c8565b5b6142a7878288016141de565b925092505092959194509250565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061431e82613685565b915061432983613685565b925082614339576143386142b5565b5b828204905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061438b57607f821691505b6020821081141561439f5761439e614344565b5b50919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006143db602083613793565b91506143e6826143a5565b602082019050919050565b6000602082019050818103600083015261440a816143ce565b9050919050565b7f696e76616c696420706861736500000000000000000000000000000000000000600082015250565b6000614447600d83613793565b915061445282614411565b602082019050919050565b600060208201905081810360008301526144768161443a565b9050919050565b7f616c726561647920696e00000000000000000000000000000000000000000000600082015250565b60006144b3600a83613793565b91506144be8261447d565b602082019050919050565b600060208201905081810360008301526144e2816144a6565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600061452382613685565b915061452e83613685565b925082821015614541576145406142e4565b5b828203905092915050565b600061455782613685565b915061456283613685565b925082614572576145716142b5565b5b828206905092915050565b600061458882613685565b915061459383613685565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156145cc576145cb6142e4565b5b828202905092915050565b7f6e6f7420696e0000000000000000000000000000000000000000000000000000600082015250565b600061460d600683613793565b9150614618826145d7565b602082019050919050565b6000602082019050818103600083015261463c81614600565b9050919050565b7f6e6f7420616c6c6f776564000000000000000000000000000000000000000000600082015250565b6000614679600b83613793565b915061468482614643565b602082019050919050565b600060208201905081810360008301526146a88161466c565b9050919050565b7f53616c6520697320636c6f736564210000000000000000000000000000000000600082015250565b60006146e5600f83613793565b91506146f0826146af565b602082019050919050565b60006020820190508181036000830152614714816146d8565b9050919050565b600061472682613685565b915061473183613685565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614766576147656142e4565b5b828201905092915050565b7f457863656564204d41585f535550504c59000000000000000000000000000000600082015250565b60006147a7601183613793565b91506147b282614771565b602082019050919050565b600060208201905081810360008301526147d68161479a565b9050919050565b7f416d6f756e742063616e27742062652030000000000000000000000000000000600082015250565b6000614813601183613793565b915061481e826147dd565b602082019050919050565b6000602082019050818103600083015261484281614806565b9050919050565b7f457863656564206d6178427957616c6c65740000000000000000000000000000600082015250565b600061487f601283613793565b915061488a82614849565b602082019050919050565b600060208201905081810360008301526148ae81614872565b9050919050565b600081905092915050565b60008190508160005260206000209050919050565b600081546148e281614373565b6148ec81866148b5565b9450600182166000811461490757600181146149185761494b565b60ff1983168652818601935061494b565b614921856148c0565b60005b8381101561494357815481890152600182019150602081019050614924565b838801955050505b50505092915050565b600061495f82613788565b61496981856148b5565b93506149798185602086016137a4565b80840191505092915050565b7f5f00000000000000000000000000000000000000000000000000000000000000600082015250565b60006149bb6001836148b5565b91506149c682614985565b600182019050919050565b60006149dd82876148d5565b91506149e98286614954565b91506149f4826149ae565b9150614a008285614954565b9150614a0c82846148d5565b915081905095945050505050565b6000614a2682866148d5565b9150614a328285614954565b9150614a3e82846148d5565b9150819050949350505050565b7f73616c65206973206f70656e2100000000000000000000000000000000000000600082015250565b6000614a81600d83613793565b9150614a8c82614a4b565b602082019050919050565b60006020820190508181036000830152614ab081614a74565b9050919050565b7f6d69736d61746368696e67206c656e6774687321000000000000000000000000600082015250565b6000614aed601483613793565b9150614af882614ab7565b602082019050919050565b60006020820190508181036000830152614b1c81614ae0565b9050919050565b6000614b2e82613685565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614b6157614b606142e4565b5b600182019050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614bc8602683613793565b9150614bd382614b6c565b604082019050919050565b60006020820190508181036000830152614bf781614bbb565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000614c2582614bfe565b614c2f8185614c09565b9350614c3f8185602086016137a4565b614c48816137d7565b840191505092915050565b6000608082019050614c6860008301876138ce565b614c7560208301866138ce565b614c82604083018561368f565b8181036060830152614c948184614c1a565b905095945050505050565b600081519050614cae816136f9565b92915050565b600060208284031215614cca57614cc96136c3565b5b6000614cd884828501614c9f565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea264697066735822122010e29aa4a3c2a4949317eba75b7cfb9cb4abfeb251152acda0f995823e70ad2164736f6c634300080b0033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000000b4d6f6f6e72756e6e65727300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000054d4f4f4e52000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002668747470733a2f2f6d6f6f6e72756e6e6572732e6865726f6b756170702e636f6d2f6170692f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061028a5760003560e01c80636c0360eb1161015c57806399a2557a116100ce578063c87b56dd11610087578063c87b56dd146107d7578063c9e5512614610807578063cadc9bbf14610825578063e985e9c514610843578063f09a03c014610873578063f2fde38b1461088f5761028a565b806399a2557a14610707578063a0712d6814610737578063a22cb46514610753578063b88d4fde1461076f578063c23dc68f1461078b578063c4e37095146107bb5761028a565b8063841709ff11610120578063841709ff146106335780638462151c1461064f5780638d814d0d1461067f5780638da5cb5b1461069b57806391833ab5146106b957806395d89b41146106e95761028a565b80636c0360eb1461058d57806370a08231146105ab57806370ac810f146105db578063715018a61461060b57806379fd5c08146106155761028a565b806332cb6b0c116102005780635503a0e8116101b95780635503a0e8146104b75780635bbb2177146104d5578063603f4d52146105055780636352211e146105235780636790a9de14610553578063699f68121461056f5761028a565b806332cb6b0c1461040757806334ecc70a146104255780633f665efd1461044357806342842e0e1461046157806342966c681461047d5780634ccf5c6d146104995761028a565b8063095ea7b311610252578063095ea7b3146103475780630d7581111461036357806318160ddd1461039357806323b872dd146103b15780632bc84975146103cd5780632e067421146103eb5761028a565b8063013c53b91461028f57806301ffc9a7146102ad57806306fdde03146102dd578063081812fc146102fb57806308b219401461032b575b600080fd5b6102976108ab565b6040516102a4919061369e565b60405180910390f35b6102c760048036038101906102c29190613725565b6108be565b6040516102d4919061376d565b60405180910390f35b6102e5610950565b6040516102f29190613821565b60405180910390f35b6103156004803603810190610310919061386f565b6109e2565b60405161032291906138dd565b60405180910390f35b6103456004803603810190610340919061386f565b610a5e565b005b610361600480360381019061035c9190613924565b610b97565b005b61037d60048036038101906103789190613964565b610d3e565b60405161038a919061369e565b60405180910390f35b61039b610d56565b6040516103a8919061369e565b60405180910390f35b6103cb60048036038101906103c69190613991565b610d6d565b005b6103d5610d7d565b6040516103e2919061369e565b60405180910390f35b6104056004803603810190610400919061386f565b610d84565b005b61040f610e0a565b60405161041c919061369e565b60405180910390f35b61042d610e10565b60405161043a919061369e565b60405180910390f35b61044b610e16565b604051610458919061369e565b60405180910390f35b61047b60048036038101906104769190613991565b610e1d565b005b6104976004803603810190610492919061386f565b610e3d565b005b6104a1610e4b565b6040516104ae919061369e565b60405180910390f35b6104bf610e5b565b6040516104cc9190613821565b60405180910390f35b6104ef60048036038101906104ea9190613b2c565b610ee9565b6040516104fc9190613ca7565b60405180910390f35b61050d610faa565b60405161051a919061376d565b60405180910390f35b61053d6004803603810190610538919061386f565b610fbd565b60405161054a91906138dd565b60405180910390f35b61056d60048036038101906105689190613d7e565b610fcf565b005b61057761107d565b604051610584919061369e565b60405180910390f35b6105956110aa565b6040516105a29190613821565b60405180910390f35b6105c560048036038101906105c09190613964565b611138565b6040516105d2919061369e565b60405180910390f35b6105f560048036038101906105f0919061386f565b6111f1565b604051610602919061369e565b60405180910390f35b6106136112a8565b005b61061d611330565b60405161062a9190613821565b60405180910390f35b61064d6004803603810190610648919061386f565b611340565b005b61066960048036038101906106649190613964565b611427565b6040516106769190613eb4565b60405180910390f35b6106996004803603810190610694919061386f565b611571565b005b6106a361162e565b6040516106b091906138dd565b60405180910390f35b6106d360048036038101906106ce919061386f565b611658565b6040516106e09190613821565b60405180910390f35b6106f16118a6565b6040516106fe9190613821565b60405180910390f35b610721600480360381019061071c9190613ed6565b611938565b60405161072e9190613eb4565b60405180910390f35b610751600480360381019061074c919061386f565b611b4c565b005b61076d60048036038101906107689190613f55565b611d95565b005b61078960048036038101906107849190614036565b611f0d565b005b6107a560048036038101906107a0919061386f565b611f80565b6040516107b291906140fb565b60405180910390f35b6107d560048036038101906107d09190614116565b611fea565b005b6107f160048036038101906107ec919061386f565b612083565b6040516107fe9190613821565b60405180910390f35b61080f612189565b60405161081c9190613eb4565b60405180910390f35b61082d61219a565b60405161083a919061369e565b60405180910390f35b61085d60048036038101906108589190614143565b6121a0565b60405161086a919061376d565b60405180910390f35b61088d60048036038101906108889190614234565b612234565b005b6108a960048036038101906108a49190613964565b612406565b005b60086226ee606108bb9190614313565b81565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061091957506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806109495750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60606002805461095f90614373565b80601f016020809104026020016040519081016040528092919081815260200182805461098b90614373565b80156109d85780601f106109ad576101008083540402835291602001916109d8565b820191906000526020600020905b8154815290600101906020018083116109bb57829003601f168201915b5050505050905090565b60006109ed82612518565b610a23576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b610a66612577565b73ffffffffffffffffffffffffffffffffffffffff16610a8461162e565b73ffffffffffffffffffffffffffffffffffffffff1614610ada576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ad1906143f1565b60405180910390fd5b60008110158015610aec575060078111155b610b2b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b229061445d565b60405180910390fd5b610b3f81600f61257f90919063ffffffff16565b15610b7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b76906144c9565b60405180910390fd5b610b9381600f6124fe90919063ffffffff16565b5050565b6000610ba282612599565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610c0a576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610c29612667565b73ffffffffffffffffffffffffffffffffffffffff1614610c8c57610c5581610c50612667565b6121a0565b610c8b576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600a6020528060005260406000206000915090505481565b6000610d6061266f565b6001546000540303905090565b610d78838383612678565b505050565b6226ee6081565b610d8c612577565b73ffffffffffffffffffffffffffffffffffffffff16610daa61162e565b73ffffffffffffffffffffffffffffffffffffffff1614610e00576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610df7906143f1565b60405180910390fd5b8060098190555050565b61271081565b60095481565b62090a7481565b610e3883838360405180602001604052806000815250611f0d565b505050565b610e48816001612a22565b50565b6000610e56426111f1565b905090565b600d8054610e6890614373565b80601f0160208091040260200160405190810160405280929190818152602001828054610e9490614373565b8015610ee15780601f10610eb657610100808354040283529160200191610ee1565b820191906000526020600020905b815481529060010190602001808311610ec457829003601f168201915b505050505081565b606060008251905060008167ffffffffffffffff811115610f0d57610f0c6139e9565b5b604051908082528060200260200182016040528015610f4657816020015b610f3361359f565b815260200190600190039081610f2b5790505b50905060005b828114610f9f57610f76858281518110610f6957610f686144e9565b5b6020026020010151611f80565b828281518110610f8957610f886144e9565b5b6020026020010181905250806001019050610f4c565b508092505050919050565b600b60009054906101000a900460ff1681565b6000610fc882612599565b9050919050565b610fd7612577565b73ffffffffffffffffffffffffffffffffffffffff16610ff561162e565b73ffffffffffffffffffffffffffffffffffffffff161461104b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611042906143f1565b60405180910390fd5b81600c90805190602001906110619291906135e2565b5080600d90805190602001906110789291906135e2565b505050565b600260086226ee6061108f9190614313565b6110999190614313565b62090a746110a79190614518565b81565b600c80546110b790614373565b80601f01602080910402602001604051908101604052809291908181526020018280546110e390614373565b80156111305780601f1061110557610100808354040283529160200191611130565b820191906000526020600020905b81548152906001019060200180831161111357829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156111a0576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b600080600e541015801561120857506007600e5411155b1561121757600e5490506112a3565b60006226ee60600260086226ee6061122f9190614313565b6112399190614313565b62090a746112479190614518565b846112529190614518565b61125c919061454c565b9050670de0b6b3a76400006226ee606008670de0b6b3a764000084611281919061457d565b61128b919061457d565b6112959190614313565b61129f9190614313565b9150505b919050565b6112b0612577565b73ffffffffffffffffffffffffffffffffffffffff166112ce61162e565b73ffffffffffffffffffffffffffffffffffffffff1614611324576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161131b906143f1565b60405180910390fd5b61132e6000612cfa565b565b606061133b42611658565b905090565b611348612577565b73ffffffffffffffffffffffffffffffffffffffff1661136661162e565b73ffffffffffffffffffffffffffffffffffffffff16146113bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113b3906143f1565b60405180910390fd5b6113d081600f61257f90919063ffffffff16565b61140f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161140690614623565b60405180910390fd5b61142381600f612dc090919063ffffffff16565b5050565b6060600080600061143785611138565b905060008167ffffffffffffffff811115611455576114546139e9565b5b6040519080825280602002602001820160405280156114835781602001602082028036833780820191505090505b50905061148e61359f565b600061149861266f565b90505b838614611563576114ab81612dda565b91508160400151156114bc57611558565b600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff16146114fc57816000015194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415611557578083878060010198508151811061154a576115496144e9565b5b6020026020010181815250505b5b80600101905061149b565b508195505050505050919050565b611579612577565b73ffffffffffffffffffffffffffffffffffffffff1661159761162e565b73ffffffffffffffffffffffffffffffffffffffff16146115ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115e4906143f1565b60405180910390fd5b80600e819055507f8e7ea54f67e11ec76348554f9b2250e4dffb1390980b62d626821f62d552e84a81604051611623919061369e565b60405180910390a150565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606000611665836111f1565b905060008114156116ae576040518060400160405280600c81526020017f30202d204e6577204d6f6f6e00000000000000000000000000000000000000008152509150506118a1565b60018114156116f5576040518060400160405280601881526020017f31202d20576178696e67204372657363656e74204d6f6f6e00000000000000008152509150506118a1565b600281141561173c576040518060400160405280601681526020017f32202d2046697273742051756172746572204d6f6f6e000000000000000000008152509150506118a1565b6003811415611783576040518060400160405280601781526020017f33202d20576178696e6720476962626f7573204d6f6f6e0000000000000000008152509150506118a1565b60048114156117ca576040518060400160405280600d81526020017f34202d2046756c6c204d6f6f6e000000000000000000000000000000000000008152509150506118a1565b6005811415611811576040518060400160405280601781526020017f35202d2057616e696e6720476962626f7573204d6f6f6e0000000000000000008152509150506118a1565b6006811415611858576040518060400160405280601581526020017f36202d204c6173742051756172746572204d6f6f6e00000000000000000000008152509150506118a1565b600781141561189f576040518060400160405280601881526020017f37202d2057616e696e67204372657363656e74204d6f6f6e00000000000000008152509150506118a1565b505b919050565b6060600380546118b590614373565b80601f01602080910402602001604051908101604052809291908181526020018280546118e190614373565b801561192e5780601f106119035761010080835404028352916020019161192e565b820191906000526020600020905b81548152906001019060200180831161191157829003601f168201915b5050505050905090565b6060818310611973576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008061197e612e05565b905061198861266f565b85101561199a5761199761266f565b94505b808411156119a6578093505b60006119b187611138565b9050848610156119d45760008686039050818110156119ce578091505b506119d9565b600090505b60008167ffffffffffffffff8111156119f5576119f46139e9565b5b604051908082528060200260200182016040528015611a235781602001602082028036833780820191505090505b5090506000821415611a3b5780945050505050611b45565b6000611a4688611f80565b905060008160400151611a5b57816000015190505b60008990505b888114158015611a715750848714155b15611b3757611a7f81612dda565b9250826040015115611a9057611b2c565b600073ffffffffffffffffffffffffffffffffffffffff16836000015173ffffffffffffffffffffffffffffffffffffffff1614611ad057826000015191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611b2b5780848880600101995081518110611b1e57611b1d6144e9565b5b6020026020010181815250505b5b806001019050611a61565b508583528296505050505050505b9392505050565b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611bba576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bb19061468f565b60405180910390fd5b600b60009054906101000a900460ff16611c09576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c00906146fb565b60405180910390fd5b61271081611c15612e0e565b611c1f919061471b565b1115611c60576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c57906147bd565b60405180910390fd5b60008111611ca3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c9a90614829565b60405180910390fd5b600954600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205482611cf1919061471b565b1115611d32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d2990614895565b60405180910390fd5b80600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611d81919061471b565b92505081905550611d923382612e21565b50565b611d9d612667565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611e02576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060076000611e0f612667565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611ebc612667565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611f01919061376d565b60405180910390a35050565b611f18848484612678565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611f7a57611f4384848484612e3f565b611f79576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b611f8861359f565b611f9061359f565b611f9861266f565b831080611fac5750611fa8612e05565b8310155b15611fba5780915050611fe5565b611fc383612dda565b9050806040015115611fd85780915050611fe5565b611fe183612f90565b9150505b919050565b611ff2612577565b73ffffffffffffffffffffffffffffffffffffffff1661201061162e565b73ffffffffffffffffffffffffffffffffffffffff1614612066576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161205d906143f1565b60405180910390fd5b80600b60006101000a81548160ff02191690831515021790555050565b606061208e82612518565b6120c4576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006120cf426111f1565b90506000600c80546120e090614373565b905014156120f9576120f183612fb0565b915050612184565b61210d81600f61257f90919063ffffffff16565b1561215257600c61211d84612fb0565b61212683612fb0565b600d60405160200161213b94939291906149d1565b604051602081830303815290604052915050612184565b600c61215d84612fb0565b600d60405160200161217193929190614a1a565b6040516020818303038152906040529150505b919050565b6060612195600f61300a565b905090565b600e5481565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61223c612577565b73ffffffffffffffffffffffffffffffffffffffff1661225a61162e565b73ffffffffffffffffffffffffffffffffffffffff16146122b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122a7906143f1565b60405180910390fd5b600b60009054906101000a900460ff1615612300576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122f790614a97565b60405180910390fd5b818190508484905014612348576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161233f90614b03565b60405180910390fd5b60005b848490508110156123b3576123a085858381811061236c5761236b6144e9565b5b90506020020160208101906123819190613964565b848484818110612394576123936144e9565b5b90506020020135612e21565b80806123ab90614b23565b91505061234b565b506127106123bf612e0e565b1115612400576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123f7906147bd565b60405180910390fd5b50505050565b61240e612577565b73ffffffffffffffffffffffffffffffffffffffff1661242c61162e565b73ffffffffffffffffffffffffffffffffffffffff1614612482576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612479906143f1565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156124f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124e990614bde565b60405180910390fd5b6124fb81612cfa565b50565b6000612510836000018360001b61302b565b905092915050565b60008161252361266f565b11158015612532575060005482105b8015612570575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b6000612591836000018360001b61309b565b905092915050565b600080829050806125a861266f565b116126305760005481101561262f5760006004600083815260200190815260200160002054905060007c01000000000000000000000000000000000000000000000000000000008216141561262d575b60008114156126235760046000836001900393508381526020019081526020016000205490506125f8565b8092505050612662565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b600033905090565b60006001905090565b600061268382612599565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146126ea576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008473ffffffffffffffffffffffffffffffffffffffff1661270b612667565b73ffffffffffffffffffffffffffffffffffffffff16148061273a575061273985612734612667565b6121a0565b5b8061277f5750612748612667565b73ffffffffffffffffffffffffffffffffffffffff16612767846109e2565b73ffffffffffffffffffffffffffffffffffffffff16145b9050806127b8576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141561281f576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61282c85858560016130be565b6006600084815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055507c020000000000000000000000000000000000000000000000000000000060a042901b612929866130c4565b1717600460008581526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000831614156129b35760006001840190506000600460008381526020019081526020016000205414156129b15760005481146129b0578260046000838152602001908152602001600020819055505b5b505b828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612a1b85858560016130ce565b5050505050565b6000612a2d83612599565b905060008190508215612b0a5760008173ffffffffffffffffffffffffffffffffffffffff16612a5b612667565b73ffffffffffffffffffffffffffffffffffffffff161480612a8a5750612a8982612a84612667565b6121a0565b5b80612acf5750612a98612667565b73ffffffffffffffffffffffffffffffffffffffff16612ab7866109e2565b73ffffffffffffffffffffffffffffffffffffffff16145b905080612b08576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505b612b188160008660016130be565b6006600085815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600160806001901b03600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055507c02000000000000000000000000000000000000000000000000000000007c010000000000000000000000000000000000000000000000000000000060a042901b612bed846130c4565b171717600460008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000083161415612c78576000600185019050600060046000838152602001908152602001600020541415612c76576000548114612c75578260046000838152602001908152602001600020819055505b5b505b83600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612ce28160008660016130ce565b60016000815480929190600101919050555050505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000612dd2836000018360001b6130d4565b905092915050565b612de261359f565b612dfe60046000848152602001908152602001600020546131e8565b9050919050565b60008054905090565b6000612e1861266f565b60005403905090565b612e3b828260405180602001604052806000815250613284565b5050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612e65612667565b8786866040518563ffffffff1660e01b8152600401612e879493929190614c53565b6020604051808303816000875af1925050508015612ec357506040513d601f19601f82011682018060405250810190612ec09190614cb4565b60015b612f3d573d8060008114612ef3576040519150601f19603f3d011682016040523d82523d6000602084013e612ef8565b606091505b50600081511415612f35576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b612f9861359f565b612fa9612fa483612599565b6131e8565b9050919050565b60606080604051019050806040528082600183039250600a81066030018353600a810490505b8015612ff657600183039250600a81066030018353600a81049050612fd6565b508181036020830392508083525050919050565b6060600061301a83600001613539565b905060608190508092505050919050565b6000613037838361309b565b613090578260000182908060018154018082558091505060019003906000526020600020016000909190919091505582600001805490508360010160008481526020019081526020016000208190555060019050613095565b600090505b92915050565b600080836001016000848152602001908152602001600020541415905092915050565b50505050565b6000819050919050565b50505050565b600080836001016000848152602001908152602001600020549050600081146131dc5760006001826131069190614518565b905060006001866000018054905061311e9190614518565b905081811461318d57600086600001828154811061313f5761313e6144e9565b5b9060005260206000200154905080876000018481548110613163576131626144e9565b5b90600052602060002001819055508387600101600083815260200190815260200160002081905550505b856000018054806131a1576131a0614ce1565b5b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506131e2565b60009150505b92915050565b6131f061359f565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c010000000000000000000000000000000000000000000000000000000083161415816040019015159081151581525050919050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156132f1576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600083141561332c576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61333960008583866130be565b600160406001901b178302600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555060e161339e60018514613595565b901b60a042901b6133ae866130c4565b1717600460008381526020019081526020016000208190555060008190506000848201905060008673ffffffffffffffffffffffffffffffffffffffff163b146134b2575b818673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46134626000878480600101955087612e3f565b613498576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8082106133f35782600054146134ad57600080fd5b61351d565b5b818060010192508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a48082106134b3575b81600081905550505061353360008583866130ce565b50505050565b60608160000180548060200260200160405190810160405280929190818152602001828054801561358957602002820191906000526020600020905b815481526020019060010190808311613575575b50505050509050919050565b6000819050919050565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681526020016000151581525090565b8280546135ee90614373565b90600052602060002090601f0160209004810192826136105760008555613657565b82601f1061362957805160ff1916838001178555613657565b82800160010185558215613657579182015b8281111561365657825182559160200191906001019061363b565b5b5090506136649190613668565b5090565b5b80821115613681576000816000905550600101613669565b5090565b6000819050919050565b61369881613685565b82525050565b60006020820190506136b3600083018461368f565b92915050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613702816136cd565b811461370d57600080fd5b50565b60008135905061371f816136f9565b92915050565b60006020828403121561373b5761373a6136c3565b5b600061374984828501613710565b91505092915050565b60008115159050919050565b61376781613752565b82525050565b6000602082019050613782600083018461375e565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156137c25780820151818401526020810190506137a7565b838111156137d1576000848401525b50505050565b6000601f19601f8301169050919050565b60006137f382613788565b6137fd8185613793565b935061380d8185602086016137a4565b613816816137d7565b840191505092915050565b6000602082019050818103600083015261383b81846137e8565b905092915050565b61384c81613685565b811461385757600080fd5b50565b60008135905061386981613843565b92915050565b600060208284031215613885576138846136c3565b5b60006138938482850161385a565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006138c78261389c565b9050919050565b6138d7816138bc565b82525050565b60006020820190506138f260008301846138ce565b92915050565b613901816138bc565b811461390c57600080fd5b50565b60008135905061391e816138f8565b92915050565b6000806040838503121561393b5761393a6136c3565b5b60006139498582860161390f565b925050602061395a8582860161385a565b9150509250929050565b60006020828403121561397a576139796136c3565b5b60006139888482850161390f565b91505092915050565b6000806000606084860312156139aa576139a96136c3565b5b60006139b88682870161390f565b93505060206139c98682870161390f565b92505060406139da8682870161385a565b9150509250925092565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613a21826137d7565b810181811067ffffffffffffffff82111715613a4057613a3f6139e9565b5b80604052505050565b6000613a536136b9565b9050613a5f8282613a18565b919050565b600067ffffffffffffffff821115613a7f57613a7e6139e9565b5b602082029050602081019050919050565b600080fd5b6000613aa8613aa384613a64565b613a49565b90508083825260208201905060208402830185811115613acb57613aca613a90565b5b835b81811015613af45780613ae0888261385a565b845260208401935050602081019050613acd565b5050509392505050565b600082601f830112613b1357613b126139e4565b5b8135613b23848260208601613a95565b91505092915050565b600060208284031215613b4257613b416136c3565b5b600082013567ffffffffffffffff811115613b6057613b5f6136c8565b5b613b6c84828501613afe565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613baa816138bc565b82525050565b600067ffffffffffffffff82169050919050565b613bcd81613bb0565b82525050565b613bdc81613752565b82525050565b606082016000820151613bf86000850182613ba1565b506020820151613c0b6020850182613bc4565b506040820151613c1e6040850182613bd3565b50505050565b6000613c308383613be2565b60608301905092915050565b6000602082019050919050565b6000613c5482613b75565b613c5e8185613b80565b9350613c6983613b91565b8060005b83811015613c9a578151613c818882613c24565b9750613c8c83613c3c565b925050600181019050613c6d565b5085935050505092915050565b60006020820190508181036000830152613cc18184613c49565b905092915050565b600080fd5b600067ffffffffffffffff821115613ce957613ce86139e9565b5b613cf2826137d7565b9050602081019050919050565b82818337600083830152505050565b6000613d21613d1c84613cce565b613a49565b905082815260208101848484011115613d3d57613d3c613cc9565b5b613d48848285613cff565b509392505050565b600082601f830112613d6557613d646139e4565b5b8135613d75848260208601613d0e565b91505092915050565b60008060408385031215613d9557613d946136c3565b5b600083013567ffffffffffffffff811115613db357613db26136c8565b5b613dbf85828601613d50565b925050602083013567ffffffffffffffff811115613de057613ddf6136c8565b5b613dec85828601613d50565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613e2b81613685565b82525050565b6000613e3d8383613e22565b60208301905092915050565b6000602082019050919050565b6000613e6182613df6565b613e6b8185613e01565b9350613e7683613e12565b8060005b83811015613ea7578151613e8e8882613e31565b9750613e9983613e49565b925050600181019050613e7a565b5085935050505092915050565b60006020820190508181036000830152613ece8184613e56565b905092915050565b600080600060608486031215613eef57613eee6136c3565b5b6000613efd8682870161390f565b9350506020613f0e8682870161385a565b9250506040613f1f8682870161385a565b9150509250925092565b613f3281613752565b8114613f3d57600080fd5b50565b600081359050613f4f81613f29565b92915050565b60008060408385031215613f6c57613f6b6136c3565b5b6000613f7a8582860161390f565b9250506020613f8b85828601613f40565b9150509250929050565b600067ffffffffffffffff821115613fb057613faf6139e9565b5b613fb9826137d7565b9050602081019050919050565b6000613fd9613fd484613f95565b613a49565b905082815260208101848484011115613ff557613ff4613cc9565b5b614000848285613cff565b509392505050565b600082601f83011261401d5761401c6139e4565b5b813561402d848260208601613fc6565b91505092915050565b600080600080608085870312156140505761404f6136c3565b5b600061405e8782880161390f565b945050602061406f8782880161390f565b93505060406140808782880161385a565b925050606085013567ffffffffffffffff8111156140a1576140a06136c8565b5b6140ad87828801614008565b91505092959194509250565b6060820160008201516140cf6000850182613ba1565b5060208201516140e26020850182613bc4565b5060408201516140f56040850182613bd3565b50505050565b600060608201905061411060008301846140b9565b92915050565b60006020828403121561412c5761412b6136c3565b5b600061413a84828501613f40565b91505092915050565b6000806040838503121561415a576141596136c3565b5b60006141688582860161390f565b92505060206141798582860161390f565b9150509250929050565b600080fd5b60008083601f84011261419e5761419d6139e4565b5b8235905067ffffffffffffffff8111156141bb576141ba614183565b5b6020830191508360208202830111156141d7576141d6613a90565b5b9250929050565b60008083601f8401126141f4576141f36139e4565b5b8235905067ffffffffffffffff81111561421157614210614183565b5b60208301915083602082028301111561422d5761422c613a90565b5b9250929050565b6000806000806040858703121561424e5761424d6136c3565b5b600085013567ffffffffffffffff81111561426c5761426b6136c8565b5b61427887828801614188565b9450945050602085013567ffffffffffffffff81111561429b5761429a6136c8565b5b6142a7878288016141de565b925092505092959194509250565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061431e82613685565b915061432983613685565b925082614339576143386142b5565b5b828204905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061438b57607f821691505b6020821081141561439f5761439e614344565b5b50919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006143db602083613793565b91506143e6826143a5565b602082019050919050565b6000602082019050818103600083015261440a816143ce565b9050919050565b7f696e76616c696420706861736500000000000000000000000000000000000000600082015250565b6000614447600d83613793565b915061445282614411565b602082019050919050565b600060208201905081810360008301526144768161443a565b9050919050565b7f616c726561647920696e00000000000000000000000000000000000000000000600082015250565b60006144b3600a83613793565b91506144be8261447d565b602082019050919050565b600060208201905081810360008301526144e2816144a6565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600061452382613685565b915061452e83613685565b925082821015614541576145406142e4565b5b828203905092915050565b600061455782613685565b915061456283613685565b925082614572576145716142b5565b5b828206905092915050565b600061458882613685565b915061459383613685565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156145cc576145cb6142e4565b5b828202905092915050565b7f6e6f7420696e0000000000000000000000000000000000000000000000000000600082015250565b600061460d600683613793565b9150614618826145d7565b602082019050919050565b6000602082019050818103600083015261463c81614600565b9050919050565b7f6e6f7420616c6c6f776564000000000000000000000000000000000000000000600082015250565b6000614679600b83613793565b915061468482614643565b602082019050919050565b600060208201905081810360008301526146a88161466c565b9050919050565b7f53616c6520697320636c6f736564210000000000000000000000000000000000600082015250565b60006146e5600f83613793565b91506146f0826146af565b602082019050919050565b60006020820190508181036000830152614714816146d8565b9050919050565b600061472682613685565b915061473183613685565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614766576147656142e4565b5b828201905092915050565b7f457863656564204d41585f535550504c59000000000000000000000000000000600082015250565b60006147a7601183613793565b91506147b282614771565b602082019050919050565b600060208201905081810360008301526147d68161479a565b9050919050565b7f416d6f756e742063616e27742062652030000000000000000000000000000000600082015250565b6000614813601183613793565b915061481e826147dd565b602082019050919050565b6000602082019050818103600083015261484281614806565b9050919050565b7f457863656564206d6178427957616c6c65740000000000000000000000000000600082015250565b600061487f601283613793565b915061488a82614849565b602082019050919050565b600060208201905081810360008301526148ae81614872565b9050919050565b600081905092915050565b60008190508160005260206000209050919050565b600081546148e281614373565b6148ec81866148b5565b9450600182166000811461490757600181146149185761494b565b60ff1983168652818601935061494b565b614921856148c0565b60005b8381101561494357815481890152600182019150602081019050614924565b838801955050505b50505092915050565b600061495f82613788565b61496981856148b5565b93506149798185602086016137a4565b80840191505092915050565b7f5f00000000000000000000000000000000000000000000000000000000000000600082015250565b60006149bb6001836148b5565b91506149c682614985565b600182019050919050565b60006149dd82876148d5565b91506149e98286614954565b91506149f4826149ae565b9150614a008285614954565b9150614a0c82846148d5565b915081905095945050505050565b6000614a2682866148d5565b9150614a328285614954565b9150614a3e82846148d5565b9150819050949350505050565b7f73616c65206973206f70656e2100000000000000000000000000000000000000600082015250565b6000614a81600d83613793565b9150614a8c82614a4b565b602082019050919050565b60006020820190508181036000830152614ab081614a74565b9050919050565b7f6d69736d61746368696e67206c656e6774687321000000000000000000000000600082015250565b6000614aed601483613793565b9150614af882614ab7565b602082019050919050565b60006020820190508181036000830152614b1c81614ae0565b9050919050565b6000614b2e82613685565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614b6157614b606142e4565b5b600182019050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614bc8602683613793565b9150614bd382614b6c565b604082019050919050565b60006020820190508181036000830152614bf781614bbb565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000614c2582614bfe565b614c2f8185614c09565b9350614c3f8185602086016137a4565b614c48816137d7565b840191505092915050565b6000608082019050614c6860008301876138ce565b614c7560208301866138ce565b614c82604083018561368f565b8181036060830152614c948184614c1a565b905095945050505050565b600081519050614cae816136f9565b92915050565b600060208284031215614cca57614cc96136c3565b5b6000614cd884828501614c9f565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea264697066735822122010e29aa4a3c2a4949317eba75b7cfb9cb4abfeb251152acda0f995823e70ad2164736f6c634300080b0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000000b4d6f6f6e72756e6e65727300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000054d4f4f4e52000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002668747470733a2f2f6d6f6f6e72756e6e6572732e6865726f6b756170702e636f6d2f6170692f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name (string): Moonrunners
Arg [1] : symbol (string): MOONR
Arg [2] : baseURI_ (string): https://moonrunners.herokuapp.com/api/
Arg [3] : uriSuffix_ (string):
-----Encoded View---------------
12 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [4] : 000000000000000000000000000000000000000000000000000000000000000b
Arg [5] : 4d6f6f6e72756e6e657273000000000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [7] : 4d4f4f4e52000000000000000000000000000000000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000026
Arg [9] : 68747470733a2f2f6d6f6f6e72756e6e6572732e6865726f6b756170702e636f
Arg [10] : 6d2f6170692f0000000000000000000000000000000000000000000000000000
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
[ 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.