ERC-721
Overview
Max Total Supply
1,111 HOPPIN
Holders
355
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2 HOPPINLoading...
Loading
Loading...
Loading
Loading...
Loading
Contract Name:
ApetimismLaunchpadNFT
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
Yes with 160 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: Unlicense pragma solidity ^0.8.0; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; // import "@openzeppelin/contracts/token/common/ERC2981.sol"; import "erc721a/contracts/extensions/ERC721AQueryable.sol"; interface IERC20 { function balanceOf(address account) external view returns (uint256); function transfer(address _to, uint256 _amount) external returns (bool); function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); } contract ApetimismLaunchpadNFT is ERC721AQueryable, Ownable, ReentrancyGuard /*, ERC2981*/ { event Received(address, uint); event RoundChanged(uint8); event TotalMintedChanged(uint256); ////////////// // Constants ////////////// string private ERR_INVALID_SIGNATURE = "Invalid sig"; string private ERR_DUP_NONCE = "Dup nonce"; string private ERR_UNMATCHED_ETHER = "Unmatched ether"; string private ERR_HIT_MAXIMUM = "Hit maximum"; string private ERR_INVALID_AMOUNT = "Invalid amount"; string private ERR_RUN_OUT = "Run out"; uint256 public MAX_SUPPLY = 1111; uint256 public START_TOKEN_ID = 1; string private constant TOKEN_NAME = "Hoppin"; string private constant TOKEN_SYMBOL = "HOPPIN"; ////////////// // Internal ////////////// mapping(address => uint256) private _addressTokenMinted; mapping(address => mapping(uint8 => mapping(int16 => uint256))) private _addressTokenMintedInRoundByRole; mapping(address => mapping(int16 => uint256)) private _addressTokenMintedInRole; mapping(uint256 => uint8) private _nonces; uint16 private allowedRolesInRoundSetId = 0; uint16 private roundAllocationsSetId = 0; uint16 private roleAllocationsSetId = 0; ///////////////////// // Public Variables ///////////////////// address public signerAddress = 0xE61B1c9cc2cf22d3802Ad9d6759a11AbEC55CF6B; uint8 public currentRound = 0; bool public metadataFrozen = false; uint16 public maxMintPerTx = 30; uint16 public maxMintPerAddress = 30; string public baseURIExtended; bool public metdataHasExtension = true; mapping(int16 => uint256) mintPriceByRole; struct Role { uint8 round_id; int16 role_id; uint256 max_mint; uint256 mint_price; bool exists; } mapping(uint16 => mapping(uint8 => mapping(int16 => Role))) public allowedRolesInRound; mapping(uint16 => mapping(uint8 => uint16)) public allowedRolesInRoundCount; mapping(uint16 => mapping(uint8 => int16[])) public allowedRolesInRoundArr; uint8[] public availableAllowedRounds; uint8[] public availableRounds; mapping(uint16 => mapping(uint8 => uint256)) public roundAllocations; mapping(uint16 => mapping(int16 => uint256)) public roleAllocations; int16[] public availableRoles; mapping(uint8 => uint256) public totalMintedInRound; uint256 public totalRevenueShared = 0; address public currencyAddress; //////////////// // Parameters //////////////// struct RoleInRoundParams { uint8 round; int16 role; uint256 maxMint; uint256 mintPrice; } struct RoundAllocationParams { uint8 round; uint256 allocation; } struct RoleAllocationParams { int16 role; uint256 allocation; } //////////////// // Actual Code //////////////// constructor() ERC721A(TOKEN_NAME, TOKEN_SYMBOL) { } function _startTokenId() internal view virtual override returns (uint256) { return START_TOKEN_ID; } ////////////////////// // Setters for Owner ////////////////////// function setCurrentRound(uint8 round_) public onlyOwner { currentRound = round_; emit RoundChanged(round_); } function setMaxMintPerTx(uint16 count) public onlyOwner { maxMintPerTx = count; } function setMaxMintPerAddress(uint16 count) public onlyOwner { maxMintPerAddress = count; } function setBaseURI(string memory baseURI) public onlyOwner { require(!metadataFrozen, "Metadata frozen"); baseURIExtended = baseURI; } function setMetadataHasExtension(bool hasExtension) public onlyOwner { metdataHasExtension = hasExtension; } function setCurrencyAddress(address addr) public onlyOwner { currencyAddress = addr; } function addAllowedRolesInRound(RoleInRoundParams[] memory params, bool replace) public onlyOwner { if (replace) { allowedRolesInRoundSetId++; delete availableAllowedRounds; } for (uint i = 0; i < params.length; i++) { addAllowedRoleInRound( params[i].round, params[i].role, params[i].maxMint, params[i].mintPrice, false ); } } function addAllowedRoleInRound(uint8 round, int16 role, uint256 maxMint, uint256 mintPrice, bool replace) public onlyOwner { if (replace) { allowedRolesInRoundSetId++; delete availableAllowedRounds; } bool role_already_existed = allowedRolesInRound[allowedRolesInRoundSetId][round][role].exists; allowedRolesInRound[allowedRolesInRoundSetId][round][role].round_id = round; allowedRolesInRound[allowedRolesInRoundSetId][round][role].role_id = role; allowedRolesInRound[allowedRolesInRoundSetId][round][role].max_mint = maxMint; allowedRolesInRound[allowedRolesInRoundSetId][round][role].mint_price = mintPrice; allowedRolesInRound[allowedRolesInRoundSetId][round][role].exists = true; if (role_already_existed) // Role already existed return; allowedRolesInRoundCount[allowedRolesInRoundSetId][round]++; allowedRolesInRoundArr[allowedRolesInRoundSetId][round].push(role); bool found = false; for (uint8 i = 0; i < availableAllowedRounds.length; i++) if (availableAllowedRounds[i] == round) found = true; if (!found) availableAllowedRounds.push(round); } function removeAllowedRoleInRound(uint8 round, int16 role) public onlyOwner { require(allowedRolesInRound[allowedRolesInRoundSetId][round][role].exists, "Role not existed"); allowedRolesInRound[allowedRolesInRoundSetId][round][role].round_id = 0; allowedRolesInRound[allowedRolesInRoundSetId][round][role].role_id = 0; allowedRolesInRound[allowedRolesInRoundSetId][round][role].max_mint = 0; allowedRolesInRound[allowedRolesInRoundSetId][round][role].mint_price = 0; allowedRolesInRound[allowedRolesInRoundSetId][round][role].exists = false; allowedRolesInRoundCount[allowedRolesInRoundSetId][round]--; // Remove available role for (uint8 i = 0; i < allowedRolesInRoundArr[allowedRolesInRoundSetId][round].length; i++) { if (allowedRolesInRoundArr[allowedRolesInRoundSetId][round][i] == role) { removeArrayAtInt16Index(allowedRolesInRoundArr[allowedRolesInRoundSetId][round], i); break; } } if (allowedRolesInRoundCount[allowedRolesInRoundSetId][round] == 0) { // Remove available round for (uint8 i = 0; i < availableRounds.length; i++) { if (availableRounds[i] == round) { removeArrayAtUint8Index(availableRounds, i); break; } } } } function addRoundsAllocation(RoundAllocationParams[] memory params, bool replace) public onlyOwner { if (replace) { roundAllocationsSetId++; delete availableRounds; } for (uint i = 0; i < params.length; i++) addRoundAllocation(params[i].round, params[i].allocation, false); } function addRoundAllocation(uint8 round, uint256 allocation, bool replace) public onlyOwner { if (replace) { roundAllocationsSetId++; delete availableRounds; } roundAllocations[roundAllocationsSetId][round] = allocation; bool found = false; for (uint8 i = 0; i < availableRounds.length; i++) if (availableRounds[i] == round) found = true; if (!found) availableRounds.push(round); } function addRolesAllocation(RoleAllocationParams[] memory params, bool replace) public onlyOwner { if (replace) { roleAllocationsSetId++; delete availableRoles; } for (uint i = 0; i < params.length; i++) addRoleAllocation(params[i].role, params[i].allocation, false); } function addRoleAllocation(int16 role, uint256 allocation, bool replace) public onlyOwner { if (replace) { roleAllocationsSetId++; delete availableRoles; } roleAllocations[roleAllocationsSetId][role] = allocation; bool found = false; for (uint16 i = 0; i < availableRoles.length; i++) if (availableRoles[i] == role) found = true; if (!found) availableRoles.push(role); } function addRolesRounds( RoleInRoundParams[] memory rolesInRound, bool replaceRoleInRound, RoundAllocationParams[] memory roundAllocations, bool replaceRoundAllocations, RoleAllocationParams[] memory roleAllocations, bool replaceRoleAllocations ) public onlyOwner { addAllowedRolesInRound(rolesInRound, replaceRoleInRound); addRoundsAllocation(roundAllocations, replaceRoundAllocations); addRolesAllocation(roleAllocations, replaceRoleAllocations); } function freezeMetadata() public onlyOwner { metadataFrozen = true; } //////////// // Minting //////////// function mint(uint256 quantity, int16 role, uint16 apetimismFee, address apetimismAddress, uint256 nonce, uint8 v, bytes32 r, bytes32 s) external payable nonReentrant { require(currentRound != 0, "Not started"); uint256 combined_nonce = nonce; if (role >= 0) combined_nonce = (nonce << 16) + uint16(role); require(_nonces[combined_nonce] == 0, ERR_DUP_NONCE); require(_recoverAddress(abi.encodePacked(combined_nonce, apetimismFee, apetimismAddress), v, r, s) == signerAddress, ERR_INVALID_SIGNATURE); bool is_public_round = allowedRolesInRound[allowedRolesInRoundSetId][currentRound][0].exists; int16 selected_role = 0; if (role >= 0) selected_role = role; if (!allowedRolesInRound[allowedRolesInRoundSetId][currentRound][selected_role].exists) { if (!is_public_round) require(false, "Not eligible"); selected_role = 0; } require(quantity > 0, ERR_INVALID_AMOUNT); require(mintableLeft() >= quantity, ERR_RUN_OUT); if (role >= 0) require(maxMintableForTxForRole(msg.sender, role) >= quantity, ERR_HIT_MAXIMUM); else require(maxMintableForTxForRole(msg.sender, 0) >= quantity, ERR_HIT_MAXIMUM); uint256 cost = quantity * allowedRolesInRound[allowedRolesInRoundSetId][currentRound][selected_role].mint_price; _nonces[combined_nonce] = 1; if (currencyAddress != address(0)) { // Pay by Token require(msg.value == 0, ERR_UNMATCHED_ETHER); } else { require(msg.value == cost, ERR_UNMATCHED_ETHER); } _safeMint(msg.sender, quantity); totalMintedInRound[currentRound] = totalMintedInRound[currentRound] + quantity; _addressTokenMinted[msg.sender] = _addressTokenMinted[msg.sender] + quantity; _addressTokenMintedInRoundByRole[msg.sender][currentRound][selected_role] = _addressTokenMintedInRoundByRole[msg.sender][currentRound][selected_role] + quantity; if (selected_role >= 0) _addressTokenMintedInRole[msg.sender][selected_role] = _addressTokenMintedInRole[msg.sender][selected_role] + quantity; uint256 to_apetimism = cost * apetimismFee / 10000; if (currencyAddress != address(0)) { IERC20 tokenContract = IERC20(currencyAddress); tokenContract.transferFrom(msg.sender, address(this), cost); tokenContract.transfer(apetimismAddress, to_apetimism); } else { payable(apetimismAddress).transfer(to_apetimism); } totalRevenueShared = totalRevenueShared + to_apetimism; } function adminMintTo(address to, uint256 quantity) public onlyOwner { require(quantity > 0, ERR_INVALID_AMOUNT); require(mintableLeft() >= quantity, ERR_RUN_OUT); _safeMint(to, quantity); } ////////////// // Apetimism ////////////// function setCurrentRoundFromSignature(uint256 nonce, uint8 round, uint8 v, bytes32 r, bytes32 s) public { require(_nonces[nonce] == 0, ERR_DUP_NONCE); require(_recoverAddress(abi.encodePacked(nonce, round), v, r, s) == signerAddress, ERR_INVALID_SIGNATURE); _nonces[nonce] = 1; currentRound = round; emit RoundChanged(round); } function setSignerAddressFromSignature(uint256 nonce, address addr, uint8 v, bytes32 r, bytes32 s) public { require(_nonces[nonce] == 0, ERR_DUP_NONCE); require(_recoverAddress(abi.encodePacked(nonce, addr), v, r, s) == signerAddress, ERR_INVALID_SIGNATURE); _nonces[nonce] = 1; signerAddress = addr; } //////////////// // Transfering //////////////// function transfersFrom( address from, address to, uint256[] calldata tokenIds ) public virtual { for (uint i = 0; i < tokenIds.length; i++) transferFrom(from, to, tokenIds[i]); } function safeTransfersFrom( address from, address to, uint256[] calldata tokenIds ) public virtual { for (uint i = 0; i < tokenIds.length; i++) safeTransferFrom(from, to, tokenIds[i]); } function safeTransfersFrom( address from, address to, uint256[] calldata tokenIds, bytes memory _data ) public virtual { for (uint i = 0; i < tokenIds.length; i++) safeTransferFrom(from, to, tokenIds[i], _data); } ///////////////// // Public Views ///////////////// // function getAllAvailableRounds() public view returns (uint8[] memory) { // uint256 len = availableRounds.length; // uint8[] memory ret = new uint8[](len); // for (uint i = 0; i < len; i++) // ret[i] = availableRounds[i]; // return ret; // } function getAllowedRolesInRoundArr(uint8 round) public view returns (int16[] memory) { uint256 len = allowedRolesInRoundArr[allowedRolesInRoundSetId][round].length; int16[] memory ret = new int16[](len); for (uint i = 0; i < len; i++) ret[i] = allowedRolesInRoundArr[allowedRolesInRoundSetId][round][i]; return ret; } // function getAllAvailableRoles() public view returns (int16[] memory) { // uint256 len = availableRoles.length; // int16[] memory ret = new int16[](len); // for (uint i = 0; i < len; i++) // ret[i] = availableRoles[i]; // return ret; // } function getAllAllowedRolesInRounds() public view returns (RoleInRoundParams[] memory) { uint256 len = 0; for (uint i = 0; i < availableAllowedRounds.length; i++) len += allowedRolesInRoundCount[allowedRolesInRoundSetId][ availableAllowedRounds[i] ]; RoleInRoundParams[] memory ret = new RoleInRoundParams[](len); uint256 index = 0; for (uint i = 0; i < availableAllowedRounds.length; i++) { uint8 round = availableAllowedRounds[i]; for (uint j = 0; j < allowedRolesInRoundCount[allowedRolesInRoundSetId][ availableAllowedRounds[i] ]; j++) { int16 role = allowedRolesInRoundArr[allowedRolesInRoundSetId][round][j]; ret[index].round = round; ret[index].role = role; ret[index].maxMint = allowedRolesInRound[allowedRolesInRoundSetId][round][role].max_mint; ret[index].mintPrice = allowedRolesInRound[allowedRolesInRoundSetId][round][role].mint_price; index++; } } return ret; } function getAllRoundAllocations() public view returns (RoundAllocationParams[] memory) { uint256 len = availableRounds.length; RoundAllocationParams[] memory ret = new RoundAllocationParams[](len); for (uint i = 0; i < len; i++) { ret[i].round = availableRounds[i]; ret[i].allocation = roundAllocations[roundAllocationsSetId][availableRounds[i]]; } return ret; } function getAllRoleAllocations() public view returns (RoleAllocationParams[] memory) { uint256 len = availableRoles.length; RoleAllocationParams[] memory ret = new RoleAllocationParams[](len); for (uint i = 0; i < len; i++) { ret[i].role = availableRoles[i]; ret[i].allocation = roleAllocations[roleAllocationsSetId][availableRoles[i]]; } return ret; } function mintPriceForCurrentRoundForRole(int16 role) public view returns (uint256) { return allowedRolesInRound[allowedRolesInRoundSetId][currentRound][role].mint_price; } function maxMintableForRole(address addr, int16 role) public view virtual returns (uint256) { uint256 minted = _addressTokenMinted[addr]; uint256 max_mint = 0; // Not yet started if (currentRound == 0) return 0; // Total minted in this round reach the maximum allocated if (totalMintedInRound[currentRound] >= roundAllocations[roundAllocationsSetId][currentRound]) return 0; if (_addressTokenMintedInRole[addr][role] >= roleAllocations[roleAllocationsSetId][role]) return 0; if (allowedRolesInRound[allowedRolesInRoundSetId][currentRound][role].exists) max_mint = allowedRolesInRound[allowedRolesInRoundSetId][currentRound][role].max_mint; // Hit the maximum per wallet if (minted >= maxMintPerAddress) return 0; // Cannot mint more for this round if (_addressTokenMintedInRoundByRole[addr][currentRound][role] >= max_mint) return 0; // Prevent underflow if (totalMintedInRound[currentRound] >= roundAllocations[roundAllocationsSetId][currentRound]) return 0; // Cannot mint more than allocated for role if (_addressTokenMintedInRole[addr][role] >= roleAllocations[roleAllocationsSetId][role]) return 0; uint256 wallet_quota_left = maxMintPerAddress - minted; uint256 round_quota_left = max_mint - _addressTokenMintedInRoundByRole[addr][currentRound][role]; uint256 round_allocation_quota_left = roundAllocations[roundAllocationsSetId][currentRound] - totalMintedInRound[currentRound]; uint256 role_quota_left = roleAllocations[roleAllocationsSetId][role] - _addressTokenMintedInRole[addr][role]; return min(mintableLeft(), min(min(min(wallet_quota_left, round_quota_left), round_allocation_quota_left), role_quota_left)); } function maxMintableForTxForRole(address addr, int16 role) public view virtual returns (uint256) { uint256 mintable = maxMintableForRole(addr, role); if (mintable > maxMintPerTx) return maxMintPerTx; return mintable; } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), 'nonexistent token'); if (bytes(baseURIExtended).length == 0) return ''; string memory extension = ""; if (metdataHasExtension) extension = ".json"; return string(abi.encodePacked(baseURIExtended, Strings.toString(tokenId), extension)); } function totalMinted() public view returns (uint256) { return _totalMinted(); } function mintableLeft() public view returns (uint256) { return MAX_SUPPLY - totalMinted(); } //////////// // Helpers //////////// function removeArrayAtInt16Index(int16[] storage array, uint256 index) private { for (uint i = index; i < array.length - 1; i++) array[i] = array[i + 1]; delete array[array.length - 1]; array.pop(); } function removeArrayAtUint8Index(uint8[] storage array, uint256 index) private { for (uint i = index; i < array.length - 1; i++) array[i] = array[i + 1]; delete array[array.length - 1]; array.pop(); } function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } function _recoverAddress(bytes memory data, uint8 v, bytes32 r, bytes32 s) private pure returns (address) { bytes32 msgHash = keccak256(data); bytes32 messageDigest = keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", msgHash)); return ecrecover(messageDigest, v, r, s); } //////////// // ERC2981 //////////// function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721A) returns (bool) { return super.supportsInterface(interfaceId) || ERC721A.supportsInterface(interfaceId); } // function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721A, ERC2981) returns (bool) { // return super.supportsInterface(interfaceId) || ERC721A.supportsInterface(interfaceId) || ERC2981.supportsInterface(interfaceId); // } // function setDefaultRoyalty(address receiver, uint96 feeNumerator) public onlyOwner { // _setDefaultRoyalty(receiver, feeNumerator); // } // function deleteDefaultRoyalty() public onlyOwner { // _deleteDefaultRoyalty(); // } // function setTokenRoyalty(uint256 tokenId, address receiver, uint96 feeNumerator) public onlyOwner { // _setTokenRoyalty(tokenId, receiver, feeNumerator); // } // function resetTokenRoyalty(uint256 tokenId) public onlyOwner { // _resetTokenRoyalty(tokenId); // } /////////////// // Withdrawal /////////////// function withdraw() public onlyOwner { uint256 balance = address(this).balance; payable(msg.sender).transfer(balance); } function withdrawToken(address tokenAddress) public onlyOwner { IERC20 tokenContract = IERC20(tokenAddress); tokenContract.transfer(msg.sender, tokenContract.balanceOf(address(this))); } ///////////// // Fallback ///////////// receive() external payable { emit Received(msg.sender, msg.value); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/common/ERC2981.sol) pragma solidity ^0.8.0; import "../../interfaces/IERC2981.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: invalid receiver"); _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `tokenId` must be already minted. * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: Invalid parameters"); _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * 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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // ERC721A Contracts v3.3.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 >= _currentIndex) { return ownership; } ownership = _ownerships[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 = _currentIndex; // Set `start = max(start, _startTokenId())`. if (start < _startTokenId()) { start = _startTokenId(); } // Set `stop = min(stop, _currentIndex)`. 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 = _ownerships[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 = _ownerships[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 // ERC721A Contracts v3.3.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); }
// SPDX-License-Identifier: MIT // ERC721A Contracts v3.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol'; import '@openzeppelin/contracts/utils/Address.sol'; import '@openzeppelin/contracts/utils/Context.sol'; import '@openzeppelin/contracts/utils/Strings.sol'; import '@openzeppelin/contracts/utils/introspection/ERC165.sol'; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata 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 Context, ERC165, IERC721A { using Address for address; using Strings for uint256; // The tokenId of the next token to be minted. uint256 internal _currentIndex; // The number of tokens burned. uint256 internal _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 _ownershipOf implementation for details. mapping(uint256 => TokenOwnership) internal _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * To change the starting tokenId, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens. */ 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(); } } /** * 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 See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return uint256(_addressData[owner].balance); } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberMinted); } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberBurned); } /** * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return _addressData[owner].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 { _addressData[owner].aux = aux; } /** * 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) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { TokenOwnership memory ownership = _ownerships[curr]; if (!ownership.burned) { if (ownership.addr != address(0)) { return ownership; } // 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. while (true) { curr--; ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } } } } revert OwnerQueryForNonexistentToken(); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return _ownershipOf(tokenId).addr; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721A.ownerOf(tokenId); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSender() != owner) if(!isApprovedForAll(owner, _msgSender())) { revert ApprovalCallerNotOwnerNorApproved(); } _approve(to, tokenId, owner); } /** * @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 == _msgSender()) revert ApproveToCaller(); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { _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.isContract()) 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 && !_ownerships[tokenId].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 { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; if (to.isContract()) { 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 { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); 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 { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); if (prevOwnership.addr != from) revert TransferFromIncorrectOwner(); bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // 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 { _addressData[from].balance -= 1; _addressData[to].balance += 1; TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = to; currSlot.startTimestamp = uint64(block.timestamp); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } 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 { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); address from = prevOwnership.addr; if (approvalCheck) { bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // 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 { AddressData storage addressData = _addressData[from]; addressData.balance -= 1; addressData.numberBurned += 1; // Keep track of who burned the token, and the timestamp of burning. TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = from; currSlot.startTimestamp = uint64(block.timestamp); currSlot.burned = true; // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } 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 Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @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 IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert 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 {} }
// SPDX-License-Identifier: MIT // ERC721A Contracts v3.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import '@openzeppelin/contracts/token/ERC721/IERC721.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol'; /** * @dev Interface of an ERC721A compliant contract. */ interface IERC721A is IERC721, IERC721Metadata { /** * 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(); // Compiler will pack this into a single 256bit word. 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; } // Compiler will pack this into a single 256bit word. struct AddressData { // Realistically, 2**64-1 is more than enough. uint64 balance; // Keeps track of mint count with minimal overhead for tokenomics. uint64 numberMinted; // Keeps track of burn count with minimal overhead for tokenomics. uint64 numberBurned; // For miscellaneous variable(s) pertaining to the address // (e.g. number of whitelist mint slots used). // If there are multiple variables, please pack them into a uint64. uint64 aux; } /** * @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); }
{ "optimizer": { "enabled": true, "runs": 160 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"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":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"","type":"address"},{"indexed":false,"internalType":"uint256","name":"","type":"uint256"}],"name":"Received","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"","type":"uint8"}],"name":"RoundChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"","type":"uint256"}],"name":"TotalMintedChanged","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":"START_TOKEN_ID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"round","type":"uint8"},{"internalType":"int16","name":"role","type":"int16"},{"internalType":"uint256","name":"maxMint","type":"uint256"},{"internalType":"uint256","name":"mintPrice","type":"uint256"},{"internalType":"bool","name":"replace","type":"bool"}],"name":"addAllowedRoleInRound","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint8","name":"round","type":"uint8"},{"internalType":"int16","name":"role","type":"int16"},{"internalType":"uint256","name":"maxMint","type":"uint256"},{"internalType":"uint256","name":"mintPrice","type":"uint256"}],"internalType":"struct ApetimismLaunchpadNFT.RoleInRoundParams[]","name":"params","type":"tuple[]"},{"internalType":"bool","name":"replace","type":"bool"}],"name":"addAllowedRolesInRound","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"int16","name":"role","type":"int16"},{"internalType":"uint256","name":"allocation","type":"uint256"},{"internalType":"bool","name":"replace","type":"bool"}],"name":"addRoleAllocation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"int16","name":"role","type":"int16"},{"internalType":"uint256","name":"allocation","type":"uint256"}],"internalType":"struct ApetimismLaunchpadNFT.RoleAllocationParams[]","name":"params","type":"tuple[]"},{"internalType":"bool","name":"replace","type":"bool"}],"name":"addRolesAllocation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint8","name":"round","type":"uint8"},{"internalType":"int16","name":"role","type":"int16"},{"internalType":"uint256","name":"maxMint","type":"uint256"},{"internalType":"uint256","name":"mintPrice","type":"uint256"}],"internalType":"struct ApetimismLaunchpadNFT.RoleInRoundParams[]","name":"rolesInRound","type":"tuple[]"},{"internalType":"bool","name":"replaceRoleInRound","type":"bool"},{"components":[{"internalType":"uint8","name":"round","type":"uint8"},{"internalType":"uint256","name":"allocation","type":"uint256"}],"internalType":"struct ApetimismLaunchpadNFT.RoundAllocationParams[]","name":"roundAllocations","type":"tuple[]"},{"internalType":"bool","name":"replaceRoundAllocations","type":"bool"},{"components":[{"internalType":"int16","name":"role","type":"int16"},{"internalType":"uint256","name":"allocation","type":"uint256"}],"internalType":"struct ApetimismLaunchpadNFT.RoleAllocationParams[]","name":"roleAllocations","type":"tuple[]"},{"internalType":"bool","name":"replaceRoleAllocations","type":"bool"}],"name":"addRolesRounds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"round","type":"uint8"},{"internalType":"uint256","name":"allocation","type":"uint256"},{"internalType":"bool","name":"replace","type":"bool"}],"name":"addRoundAllocation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint8","name":"round","type":"uint8"},{"internalType":"uint256","name":"allocation","type":"uint256"}],"internalType":"struct ApetimismLaunchpadNFT.RoundAllocationParams[]","name":"params","type":"tuple[]"},{"internalType":"bool","name":"replace","type":"bool"}],"name":"addRoundsAllocation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"adminMintTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"},{"internalType":"uint8","name":"","type":"uint8"},{"internalType":"int16","name":"","type":"int16"}],"name":"allowedRolesInRound","outputs":[{"internalType":"uint8","name":"round_id","type":"uint8"},{"internalType":"int16","name":"role_id","type":"int16"},{"internalType":"uint256","name":"max_mint","type":"uint256"},{"internalType":"uint256","name":"mint_price","type":"uint256"},{"internalType":"bool","name":"exists","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"},{"internalType":"uint8","name":"","type":"uint8"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"allowedRolesInRoundArr","outputs":[{"internalType":"int16","name":"","type":"int16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"},{"internalType":"uint8","name":"","type":"uint8"}],"name":"allowedRolesInRoundCount","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"availableAllowedRounds","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"availableRoles","outputs":[{"internalType":"int16","name":"","type":"int16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"availableRounds","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURIExtended","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currencyAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentRound","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","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":[],"name":"freezeMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getAllAllowedRolesInRounds","outputs":[{"components":[{"internalType":"uint8","name":"round","type":"uint8"},{"internalType":"int16","name":"role","type":"int16"},{"internalType":"uint256","name":"maxMint","type":"uint256"},{"internalType":"uint256","name":"mintPrice","type":"uint256"}],"internalType":"struct ApetimismLaunchpadNFT.RoleInRoundParams[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAllRoleAllocations","outputs":[{"components":[{"internalType":"int16","name":"role","type":"int16"},{"internalType":"uint256","name":"allocation","type":"uint256"}],"internalType":"struct ApetimismLaunchpadNFT.RoleAllocationParams[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAllRoundAllocations","outputs":[{"components":[{"internalType":"uint8","name":"round","type":"uint8"},{"internalType":"uint256","name":"allocation","type":"uint256"}],"internalType":"struct ApetimismLaunchpadNFT.RoundAllocationParams[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"round","type":"uint8"}],"name":"getAllowedRolesInRoundArr","outputs":[{"internalType":"int16[]","name":"","type":"int16[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintPerAddress","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintPerTx","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"int16","name":"role","type":"int16"}],"name":"maxMintableForRole","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"int16","name":"role","type":"int16"}],"name":"maxMintableForTxForRole","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"metadataFrozen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"metdataHasExtension","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"int16","name":"role","type":"int16"},{"internalType":"uint16","name":"apetimismFee","type":"uint16"},{"internalType":"address","name":"apetimismAddress","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"int16","name":"role","type":"int16"}],"name":"mintPriceForCurrentRoundForRole","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintableLeft","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":"uint8","name":"round","type":"uint8"},{"internalType":"int16","name":"role","type":"int16"}],"name":"removeAllowedRoleInRound","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"},{"internalType":"int16","name":"","type":"int16"}],"name":"roleAllocations","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"},{"internalType":"uint8","name":"","type":"uint8"}],"name":"roundAllocations","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransfersFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"safeTransfersFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"setCurrencyAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"round_","type":"uint8"}],"name":"setCurrentRound","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint8","name":"round","type":"uint8"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"setCurrentRoundFromSignature","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"count","type":"uint16"}],"name":"setMaxMintPerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"count","type":"uint16"}],"name":"setMaxMintPerTx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"hasExtension","type":"bool"}],"name":"setMetadataHasExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"setSignerAddressFromSignature","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signerAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"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":"totalMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"","type":"uint8"}],"name":"totalMintedInRound","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalRevenueShared","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":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"transfersFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"withdrawToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60c0604052600b60808190526a496e76616c69642073696760a81b60a09081526200002e91600a919062000264565b5060408051808201909152600980825268447570206e6f6e636560b81b60209092019182526200006191600b9162000264565b5060408051808201909152600f8082526e2ab736b0ba31b432b21032ba3432b960891b60209092019182526200009a91600c9162000264565b5060408051808201909152600b8082526a486974206d6178696d756d60a81b6020909201918252620000cf91600d9162000264565b5060408051808201909152600e8082526d125b9d985b1a5908185b5bdd5b9d60921b602090920191825262000105918162000264565b5060408051808201909152600780825266149d5b881bdd5d60ca1b60209092019182526200013691600f9162000264565b50610457601055600160118190557e1e001e0000e61b1c9cc2cf22d3802ad9d6759a11abec55cf6b0000000000006016556018805460ff1916909117905560006023553480156200018657600080fd5b50604051806040016040528060068152602001652437b83834b760d11b815250604051806040016040528060068152602001652427a82824a760d11b8152508160029080519060200190620001dd92919062000264565b508051620001f390600390602084019062000264565b505060115460005550620002073362000212565b600160095562000347565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b82805462000272906200030a565b90600052602060002090601f016020900481019282620002965760008555620002e1565b82601f10620002b157805160ff1916838001178555620002e1565b82800160010185558215620002e1579182015b82811115620002e1578251825591602001919060010190620002c4565b50620002ef929150620002f3565b5090565b5b80821115620002ef5760008155600101620002f4565b600181811c908216806200031f57607f821691505b602082108114156200034157634e487b7160e01b600052602260045260246000fd5b50919050565b615e6980620003576000396000f3fe6080604052600436106104345760003560e01c80638462151c11610229578063bd8fc4a21161012e578063d0950e74116100b6578063e985e9c51161007a578063e985e9c514610e3f578063f2fde38b14610e88578063f5a4156c14610ea8578063fb3cc6c214610ede578063fe2e66f414610eff57600080fd5b8063d0950e7414610db9578063d111515d14610dd9578063de7fcb1d14610dee578063e08c5e3214610e10578063e4d3d44814610e2a57600080fd5b8063c87b56dd116100fd578063c87b56dd14610d01578063c9d4857914610d21578063cf502d0d14610d41578063d047d03814610d61578063d0667dd214610d9957600080fd5b8063bd8fc4a214610c4b578063be56844814610c87578063bf65eb3414610cb4578063c23dc68f14610cd457600080fd5b8063a13429a9116101b1578063b1ad048c11610180578063b1ad048c14610bab578063b1e8dbaa14610bcb578063b6a7412114610beb578063b88d4fde14610c0b578063ba1402d314610c2b57600080fd5b8063a13429a914610b41578063a22cb46514610b61578063a2309ff814610b81578063ac7dc68d14610b9657600080fd5b80638a19c8bc116101f85780638a19c8bc14610a395780638da5cb5b14610a5a57806395d89b4114610a7857806399a2557a14610a8d5780639e8cc8d314610aad57600080fd5b80638462151c146109b657806387f65c91146109e357806389476069146109f957806389b5a8c214610a1957600080fd5b80633ccfd60b1161033a578063572849c4116102c257806370a082311161028657806370a082311461091f578063715018a61461093f578063748a500a14610954578063796b89ec1461097657806379a2c3f81461099657600080fd5b8063572849c4146108565780635b7633d01461088b5780635bbb2177146108b25780636352211e146108df5780636e453d62146108ff57600080fd5b80633e9dbed0116103095780633e9dbed0146107ac57806342842e0e146107ce57806346830628146107ee578063500ea93b1461080457806355f804b31461083657600080fd5b80633ccfd60b146106fb5780633d6a5745146107105780633dd3802d146107305780633e8f18f01461075057600080fd5b80631a6d843e116103bd57806327854c151161038c57806327854c1514610658578063306279da1461068557806332ab9bbe146106a557806332cb6b0c146106c557806333ee7927146106db57600080fd5b80631a6d843e146105d85780631c1cb323146105f857806321120f7a1461061857806323b872dd1461063857600080fd5b8063081812fc11610404578063081812fc14610528578063095ea7b3146105605780630d23d6691461058257806318160ddd14610595578063183ab264146105b857600080fd5b80620319df1461047857806301ffc9a7146104a357806306a7c8de146104d357806306fdde031461050657600080fd5b3661047357604080513381523460208201527f88a5966d370b9919b20f3e2c13ff65706f196a4e32cc2c12bf57088f88525874910160405180910390a1005b600080fd5b34801561048457600080fd5b5061048d610f1f565b60405161049a9190614cd0565b60405180910390f35b3480156104af57600080fd5b506104c36104be366004614d38565b61108c565b604051901515815260200161049a565b3480156104df57600080fd5b506104f36104ee366004614d55565b6110ac565b60405160019190910b815260200161049a565b34801561051257600080fd5b5061051b6110e3565b60405161049a9190614dc6565b34801561053457600080fd5b50610548610543366004614d55565b611175565b6040516001600160a01b03909116815260200161049a565b34801561056c57600080fd5b5061058061057b366004614df5565b6111b9565b005b610580610590366004614e54565b611240565b3480156105a157600080fd5b506105aa6118e9565b60405190815260200161049a565b3480156105c457600080fd5b506105806105d3366004614ecf565b611901565b3480156105e457600080fd5b506105806105f3366004614ef8565b61197f565b34801561060457600080fd5b50602454610548906001600160a01b031681565b34801561062457600080fd5b506104f3610633366004614f53565b611dfb565b34801561064457600080fd5b50610580610653366004614f8f565b611e4e565b34801561066457600080fd5b506105aa610673366004614ecf565b60226020526000908152604090205481565b34801561069157600080fd5b506105806106a0366004614fbb565b611e59565b3480156106b157600080fd5b506105806106c036600461515b565b611f95565b3480156106d157600080fd5b506105aa60105481565b3480156106e757600080fd5b506105806106f636600461529e565b611fde565b34801561070757600080fd5b506105806120b6565b34801561071c57600080fd5b5061058061072b366004614df5565b612113565b34801561073c57600080fd5b5061058061074b366004615390565b612194565b34801561075c57600080fd5b506105aa61076b3660046153c5565b60165461ffff81166000908152601a60209081526040808320600160d01b90940460ff16835292815282822060019490940b82529290925290206002015490565b3480156107b857600080fd5b506107c16122a1565b60405161049a91906153e0565b3480156107da57600080fd5b506105806107e9366004614f8f565b6125d1565b3480156107fa57600080fd5b506105aa60235481565b34801561081057600080fd5b5061082461081f366004614d55565b6125ec565b60405160ff909116815260200161049a565b34801561084257600080fd5b50610580610851366004615440565b612620565b34801561086257600080fd5b5060165461087890600160f01b900461ffff1681565b60405161ffff909116815260200161049a565b34801561089757600080fd5b5060165461054890600160301b90046001600160a01b031681565b3480156108be57600080fd5b506108d26108cd366004615488565b6126a9565b60405161049a9190615545565b3480156108eb57600080fd5b506105486108fa366004614d55565b61276f565b34801561090b57600080fd5b5061058061091a366004615587565b612781565b34801561092b57600080fd5b506105aa61093a3660046155a4565b6127be565b34801561094b57600080fd5b5061058061280c565b34801561096057600080fd5b50610969612842565b60405161049a91906155bf565b34801561098257600080fd5b506105806109913660046155a4565b6129ad565b3480156109a257600080fd5b506105806109b1366004615605565b6129f9565b3480156109c257600080fd5b506109d66109d13660046155a4565b612a46565b60405161049a9190615620565b3480156109ef57600080fd5b506105aa60115481565b348015610a0557600080fd5b50610580610a143660046155a4565b612b9e565b348015610a2557600080fd5b50610580610a34366004615658565b612cc9565b348015610a4557600080fd5b5060165461082490600160d01b900460ff1681565b348015610a6657600080fd5b506008546001600160a01b0316610548565b348015610a8457600080fd5b5061051b612d09565b348015610a9957600080fd5b506109d6610aa83660046156b8565b612d18565b348015610ab957600080fd5b50610b10610ac83660046156eb565b601a60209081526000938452604080852082529284528284209052825290208054600180830154600284015460039094015460ff8085169561010090950490930b9391921685565b6040805160ff909616865260019490940b60208601529284019190915260608301521515608082015260a00161049a565b348015610b4d57600080fd5b50610580610b5c3660046157b4565b612ee0565b348015610b6d57600080fd5b50610580610b7c3660046157e9565b612fb7565b348015610b8d57600080fd5b506105aa61304d565b348015610ba257600080fd5b506105aa61305c565b348015610bb757600080fd5b506105aa610bc6366004615815565b613073565b348015610bd757600080fd5b50610824610be6366004614d55565b6130ad565b348015610bf757600080fd5b50610580610c06366004615605565b6130bd565b348015610c1757600080fd5b50610580610c26366004615848565b613109565b348015610c3757600080fd5b50610580610c463660046158af565b613153565b348015610c5757600080fd5b50610878610c663660046158ef565b601b60209081526000928352604080842090915290825290205461ffff1681565b348015610c9357600080fd5b50610ca7610ca2366004614ecf565b6132b7565b60405161049a9190615919565b348015610cc057600080fd5b50610580610ccf366004615954565b6133be565b348015610ce057600080fd5b50610cf4610cef366004614d55565b61352d565b60405161049a9190615972565b348015610d0d57600080fd5b5061051b610d1c366004614d55565b6135ed565b348015610d2d57600080fd5b50610580610d3c366004615980565b6136ce565b348015610d4d57600080fd5b50610580610d5c366004615658565b6137c4565b348015610d6d57600080fd5b506105aa610d7c3660046158ef565b601f60209081526000928352604080842090915290825290205481565b348015610da557600080fd5b50610580610db43660046159a8565b613804565b348015610dc557600080fd5b506105aa610dd4366004615815565b61384c565b348015610de557600080fd5b50610580613bf6565b348015610dfa57600080fd5b5060165461087890600160e01b900461ffff1681565b348015610e1c57600080fd5b506018546104c39060ff1681565b348015610e3657600080fd5b5061051b613c35565b348015610e4b57600080fd5b506104c3610e5a366004615a6c565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b348015610e9457600080fd5b50610580610ea33660046155a4565b613cc3565b348015610eb457600080fd5b506105aa610ec3366004615a96565b60208080526000928352604080842090915290825290205481565b348015610eea57600080fd5b506016546104c390600160d81b900460ff1681565b348015610f0b57600080fd5b50610580610f1a366004615ab2565b613d5e565b601e546060906000816001600160401b03811115610f3f57610f3f615054565b604051908082528060200260200182016040528015610f8457816020015b6040805180820190915260008082526020820152815260200190600190039081610f5d5790505b50905060005b8281101561108557601e8181548110610fa557610fa5615ace565b90600052602060002090602091828204019190069054906101000a900460ff16828281518110610fd757610fd7615ace565b60209081029190910181015160ff90921690915260165461ffff62010000909104166000908152601f90915260408120601e80549192918490811061101e5761101e615ace565b90600052602060002090602091828204019190069054906101000a900460ff1660ff1660ff1681526020019081526020016000205482828151811061106557611065615ace565b60209081029190910181015101528061107d81615afa565b915050610f8a565b5092915050565b600061109782614085565b806110a657506110a682614085565b92915050565b602181815481106110bc57600080fd5b9060005260206000209060109182820401919006600202915054906101000a900460010b81565b6060600280546110f290615b15565b80601f016020809104026020016040519081016040528092919081815260200182805461111e90615b15565b801561116b5780601f106111405761010080835404028352916020019161116b565b820191906000526020600020905b81548152906001019060200180831161114e57829003601f168201915b5050505050905090565b6000611180826140d5565b61119d576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006111c48261276f565b9050806001600160a01b0316836001600160a01b031614156111f95760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614611230576112138133610e5a565b611230576040516367d9dca160e11b815260040160405180910390fd5b61123b838383614115565b505050565b600260095414156112985760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b6002600955601654600160d01b900460ff166112e45760405162461bcd60e51b815260206004820152600b60248201526a139bdd081cdd185c9d195960aa1b604482015260640161128f565b836000600189900b126113065761130361ffff8916601087901b615b50565b90505b600081815260156020526040902054600b9060ff16156113395760405162461bcd60e51b815260040161128f9190615b68565b50601654604080516020810184905260f08a901b6001600160f01b03191691810191909152606088901b6001600160601b0319166042820152600160301b9091046001600160a01b0316906113a290605601604051602081830303815290604052868686614171565b6001600160a01b031614600a906113cc5760405162461bcd60e51b815260040161128f9190615b68565b5060165461ffff81166000908152601a6020908152604080832060ff600160d01b9095048516845282528083208380529091528120600301549091169060018a900b81136114175750885b60165461ffff81166000908152601a6020908152604080832060ff600160d01b909504851684528252808320600186900b84529091529020600301541661149857816114945760405162461bcd60e51b815260206004820152600c60248201526b4e6f7420656c696769626c6560a01b604482015260640161128f565b5060005b600e8b6114b85760405162461bcd60e51b815260040161128f9190615b68565b508a6114c261305c565b1015600f906114e45760405162461bcd60e51b815260040161128f9190615b68565b5060008a60010b12611523578a6114fb338c613073565b1015600d9061151d5760405162461bcd60e51b815260040161128f9190615b68565b50611553565b8a61152f336000613073565b1015600d906115515760405162461bcd60e51b815260040161128f9190615b68565b505b60165461ffff81166000908152601a60209081526040808320600160d01b90940460ff168352928152828220600185900b8352905290812060020154611599908d615bed565b6000858152601560205260409020805460ff191660011790556024549091506001600160a01b0316156115ed57600c34156115e75760405162461bcd60e51b815260040161128f9190615b68565b50611611565b600c34821461160f5760405162461bcd60e51b815260040161128f9190615b68565b505b61161b338d61423c565b601654600160d01b900460ff16600090815260226020526040902054611642908d90615b50565b601654600160d01b900460ff16600090815260226020908152604080832093909355338252601290522054611678908d90615b50565b3360009081526012602090815260408083209390935560138152828220601654600160d01b900460ff1683528152828220600186900b8352905220546116bf908d90615b50565b336000908152601360209081526040808320601654600160d01b900460ff1684528252808320600187900b80855292528220929092551361174457336000908152601460209081526040808320600186900b8452909152902054611724908d90615b50565b336000908152601460209081526040808320600187900b84529091529020555b600061271061175761ffff8d1684615bed565b6117619190615c22565b6024549091506001600160a01b03161561188c57602480546040516323b872dd60e01b81523360048201523092810192909252604482018490526001600160a01b03169081906323b872dd90606401602060405180830381600087803b1580156117ca57600080fd5b505af11580156117de573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118029190615c36565b5060405163a9059cbb60e01b81526001600160a01b038c811660048301526024820184905282169063a9059cbb90604401602060405180830381600087803b15801561184d57600080fd5b505af1158015611861573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118859190615c36565b50506118c4565b6040516001600160a01b038b169082156108fc029083906000818181858888f193505050501580156118c2573d6000803e3d6000fd5b505b806023546118d29190615b50565b602355505060016009555050505050505050505050565b60006118f460115490565b6001546000540303905090565b6008546001600160a01b0316331461192b5760405162461bcd60e51b815260040161128f90615c53565b6016805460ff60d01b1916600160d01b60ff8416908102919091179091556040519081527f5d14047d25a400b6364f7b505872a4f0e8437d0dfd6cbdd5eee59f37baee7f459060200160405180910390a150565b6008546001600160a01b031633146119a95760405162461bcd60e51b815260040161128f90615c53565b80156119ec576016805461ffff169060006119c383615c88565b91906101000a81548161ffff021916908361ffff16021790555050601d60006119ec9190614bed565b6000601a6000601660009054906101000a900461ffff1661ffff1661ffff16815260200190815260200160002060008760ff1660ff16815260200190815260200160002060008660010b60010b815260200190815260200160002060030160009054906101000a900460ff16905085601a6000601660009054906101000a900461ffff1661ffff1661ffff16815260200190815260200160002060008860ff1660ff16815260200190815260200160002060008760010b60010b815260200190815260200160002060000160006101000a81548160ff021916908360ff16021790555084601a6000601660009054906101000a900461ffff1661ffff1661ffff16815260200190815260200160002060008860ff1660ff16815260200190815260200160002060008760010b60010b815260200190815260200160002060000160016101000a81548161ffff021916908360010b61ffff16021790555083601a6000601660009054906101000a900461ffff1661ffff1661ffff16815260200190815260200160002060008860ff1660ff16815260200190815260200160002060008760010b60010b81526020019081526020016000206001018190555082601a6000601660009054906101000a900461ffff1661ffff1661ffff16815260200190815260200160002060008860ff1660ff16815260200190815260200160002060008760010b60010b8152602001908152602001600020600201819055506001601a6000601660009054906101000a900461ffff1661ffff1661ffff16815260200190815260200160002060008860ff1660ff16815260200190815260200160002060008760010b60010b815260200190815260200160002060030160006101000a81548160ff0219169083151502179055508015611c8c5750611df4565b60165461ffff9081166000908152601b6020908152604080832060ff8b168452909152812080549092169190611cc183615c88565b825461010092830a61ffff81810219909216928216029190911790925560165482166000908152601c6020908152604080832060ff8d16845282528220805460018101825590835290822060108204018054600f90921660020290930a80850219909116938a16029290921790559050805b601d5460ff82161015611d97578760ff16601d8260ff1681548110611d5a57611d5a615ace565b60009182526020918290209181049091015460ff601f9092166101000a9004161415611d8557600191505b80611d8f81615caa565b915050611d33565b5080611df157601d8054600181018255600091909152602081047f6d4407e7be21f808e6509aa9fa9143369579dd7d760fe20a2c09680fc146134f01805460ff808b16601f9094166101000a938402930219169190911790555b50505b5050505050565b601c6020528260005260406000206020528160005260406000208181548110611e2357600080fd5b906000526020600020906010918282040191900660020292509250509054906101000a900460010b81565b61123b838383614256565b600085815260156020526040902054600b9060ff1615611e8c5760405162461bcd60e51b815260040161128f9190615b68565b50601660069054906101000a90046001600160a01b03166001600160a01b0316611eef8686604051602001611ed892919091825260f81b6001600160f81b031916602082015260210190565b604051602081830303815290604052858585614171565b6001600160a01b031614600a90611f195760405162461bcd60e51b815260040161128f9190615b68565b5060008581526015602052604090819020805460ff191660011790556016805460ff8716600160d01b0260ff60d01b19909116179055517f5d14047d25a400b6364f7b505872a4f0e8437d0dfd6cbdd5eee59f37baee7f4590611f8690869060ff91909116815260200190565b60405180910390a15050505050565b60005b82811015611fd657611fc48686868685818110611fb757611fb7615ace565b9050602002013585613109565b80611fce81615afa565b915050611f98565b505050505050565b6008546001600160a01b031633146120085760405162461bcd60e51b815260040161128f90615c53565b80156120525760168054600160201b900461ffff1690600461202983615c88565b91906101000a81548161ffff021916908361ffff16021790555050602160006120529190614c12565b60005b825181101561123b576120a483828151811061207357612073615ace565b60200260200101516000015184838151811061209157612091615ace565b60200260200101516020015160006133be565b806120ae81615afa565b915050612055565b6008546001600160a01b031633146120e05760405162461bcd60e51b815260040161128f90615c53565b6040514790339082156108fc029083906000818181858888f1935050505015801561210f573d6000803e3d6000fd5b5050565b6008546001600160a01b0316331461213d5760405162461bcd60e51b815260040161128f90615c53565b600e8161215d5760405162461bcd60e51b815260040161128f9190615b68565b508061216761305c565b1015600f906121895760405162461bcd60e51b815260040161128f9190615b68565b5061210f828261423c565b6008546001600160a01b031633146121be5760405162461bcd60e51b815260040161128f90615c53565b8015612201576016805461ffff169060006121d883615c88565b91906101000a81548161ffff021916908361ffff16021790555050601d60006122019190614bed565b60005b825181101561123b5761228f83828151811061222257612222615ace565b60200260200101516000015184838151811061224057612240615ace565b60200260200101516020015185848151811061225e5761225e615ace565b60200260200101516040015186858151811061227c5761227c615ace565b602002602001015160600151600061197f565b8061229981615afa565b915050612204565b60606000805b601d5481101561232b5760165461ffff166000908152601b60205260408120601d8054919291849081106122dd576122dd615ace565b600091825260208083208183040154601f9092166101000a90910460ff1683528201929092526040019020546123179061ffff1683615b50565b91508061232381615afa565b9150506122a7565b506000816001600160401b0381111561234657612346615054565b60405190808252806020026020018201604052801561239857816020015b6040805160808101825260008082526020808301829052928201819052606082015282526000199092019101816123645790505b5090506000805b601d548110156125c8576000601d82815481106123be576123be615ace565b60009182526020808320908204015460ff601f9092166101000a90041691505b60165461ffff166000908152601b60205260408120601d80549192918690811061240a5761240a615ace565b600091825260208083208183040154601f9092166101000a90910460ff16835282019290925260400190205461ffff168110156125b35760165461ffff166000908152601c6020908152604080832060ff86168452909152812080548390811061247657612476615ace565b90600052602060002090601091828204019190066002029054906101000a900460010b9050828686815181106124ae576124ae615ace565b60200260200101516000019060ff16908160ff1681525050808686815181106124d9576124d9615ace565b602090810291909101810151600192830b9082015260165461ffff166000908152601a8252604080822060ff88168352835280822085850b8352909252200154865187908790811061252d5761252d615ace565b60209081029190910181015160409081019290925260165461ffff166000908152601a825282812060ff871682528252828120600185900b82529091522060020154865187908790811061258357612583615ace565b6020908102919091010151606001528461259c81615afa565b9550505080806125ab90615afa565b9150506123de565b505080806125c090615afa565b91505061239f565b50909392505050565b61123b83838360405180602001604052806000815250613109565b601d81815481106125fc57600080fd5b9060005260206000209060209182820401919006915054906101000a900460ff1681565b6008546001600160a01b0316331461264a5760405162461bcd60e51b815260040161128f90615c53565b601654600160d81b900460ff16156126965760405162461bcd60e51b815260206004820152600f60248201526e26b2ba30b230ba3090333937bd32b760891b604482015260640161128f565b805161210f906017906020840190614c37565b80516060906000816001600160401b038111156126c8576126c8615054565b60405190808252806020026020018201604052801561271357816020015b60408051606081018252600080825260208083018290529282015282526000199092019101816126e65790505b50905060005b8281146127675761274285828151811061273557612735615ace565b602002602001015161352d565b82828151811061275457612754615ace565b6020908102919091010152600101612719565b509392505050565b600061277a82614441565b5192915050565b6008546001600160a01b031633146127ab5760405162461bcd60e51b815260040161128f90615c53565b6018805460ff1916911515919091179055565b60006001600160a01b0382166127e7576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6008546001600160a01b031633146128365760405162461bcd60e51b815260040161128f90615c53565b612840600061456a565b565b6021546060906000816001600160401b0381111561286257612862615054565b6040519080825280602002602001820160405280156128a757816020015b60408051808201909152600080825260208201528152602001906001900390816128805790505b50905060005b8281101561108557602181815481106128c8576128c8615ace565b90600052602060002090601091828204019190066002029054906101000a900460010b8282815181106128fd576128fd615ace565b60209081029190910181015160019290920b909152601654600160201b900461ffff16600090815290805260408120602180549192918490811061294357612943615ace565b90600052602060002090601091828204019190066002029054906101000a900460010b60010b60010b81526020019081526020016000205482828151811061298d5761298d615ace565b6020908102919091018101510152806129a581615afa565b9150506128ad565b6008546001600160a01b031633146129d75760405162461bcd60e51b815260040161128f90615c53565b602480546001600160a01b0319166001600160a01b0392909216919091179055565b6008546001600160a01b03163314612a235760405162461bcd60e51b815260040161128f90615c53565b6016805461ffff909216600160f01b026001600160f01b03909216919091179055565b60606000806000612a56856127be565b90506000816001600160401b03811115612a7257612a72615054565b604051908082528060200260200182016040528015612a9b578160200160208202803683370190505b509050612ac1604080516060810182526000808252602082018190529181019190915290565b6000612acc60115490565b90505b838614612b9257600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16158015928201929092529250612b3557612b8a565b81516001600160a01b031615612b4a57815194505b876001600160a01b0316856001600160a01b03161415612b8a5780838780600101985081518110612b7d57612b7d615ace565b6020026020010181815250505b600101612acf565b50909695505050505050565b6008546001600160a01b03163314612bc85760405162461bcd60e51b815260040161128f90615c53565b6040516370a0823160e01b815230600482015281906001600160a01b0382169063a9059cbb90339083906370a082319060240160206040518083038186803b158015612c1357600080fd5b505afa158015612c27573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c4b9190615cca565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b158015612c9157600080fd5b505af1158015612ca5573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061123b9190615c36565b60005b81811015611df457612cf78585858585818110612ceb57612ceb615ace565b90506020020135611e4e565b80612d0181615afa565b915050612ccc565b6060600380546110f290615b15565b6060818310612d3a57604051631960ccad60e11b815260040160405180910390fd5b60008054601154851015612d4e5760115494505b80841115612d5a578093505b6000612d65876127be565b905084861015612d845785850381811015612d7e578091505b50612d88565b5060005b6000816001600160401b03811115612da257612da2615054565b604051908082528060200260200182016040528015612dcb578160200160208202803683370190505b50905081612dde579350612ed992505050565b6000612de98861352d565b905060008160400151612dfa575080515b885b888114158015612e0c5750848714155b15612ecd57600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16158015928201929092529350612e7057612ec5565b82516001600160a01b031615612e8557825191505b8a6001600160a01b0316826001600160a01b03161415612ec55780848880600101995081518110612eb857612eb8615ace565b6020026020010181815250505b600101612dfc565b50505092835250909150505b9392505050565b6008546001600160a01b03163314612f0a5760405162461bcd60e51b815260040161128f90615c53565b8015612f53576016805462010000900461ffff16906002612f2a83615c88565b91906101000a81548161ffff021916908361ffff16021790555050601e6000612f539190614bed565b60005b825181101561123b57612fa5838281518110612f7457612f74615ace565b602002602001015160000151848381518110612f9257612f92615ace565b6020026020010151602001516000613153565b80612faf81615afa565b915050612f56565b6001600160a01b038216331415612fe15760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60006130576145bc565b905090565b600061306661304d565b6010546130579190615ce3565b600080613080848461384c565b601654909150600160e01b900461ffff16811115612ed9575050601654600160e01b900461ffff166110a6565b601e81815481106125fc57600080fd5b6008546001600160a01b031633146130e75760405162461bcd60e51b815260040161128f90615c53565b6016805461ffff909216600160e01b0261ffff60e01b19909216919091179055565b613114848484614256565b6001600160a01b0383163b1561314d57613130848484846145d0565b61314d576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6008546001600160a01b0316331461317d5760405162461bcd60e51b815260040161128f90615c53565b80156131c6576016805462010000900461ffff1690600261319d83615c88565b91906101000a81548161ffff021916908361ffff16021790555050601e60006131c69190614bed565b60165462010000900461ffff166000908152601f6020908152604080832060ff871684529091528120839055805b601e5460ff82161015613258578460ff16601e8260ff168154811061321b5761321b615ace565b60009182526020918290209181049091015460ff601f9092166101000a900416141561324657600191505b8061325081615caa565b9150506131f4565b508061314d57601e8054600181018255600091909152602081047f50bb669a95c7b50b7e8a6f09454034b2b14cf2b85c730dca9a539ca82cb6e35001805460ff808816601f9094166101000a9384029302191691909117905550505050565b60165461ffff166000908152601c6020908152604080832060ff85168452909152812054606091816001600160401b038111156132f6576132f6615054565b60405190808252806020026020018201604052801561331f578160200160208202803683370190505b50905060005b828110156127675760165461ffff166000908152601c6020908152604080832060ff89168452909152902080548290811061336257613362615ace565b90600052602060002090601091828204019190066002029054906101000a900460010b82828151811061339757613397615ace565b602002602001019060010b908160010b8152505080806133b690615afa565b915050613325565b6008546001600160a01b031633146133e85760405162461bcd60e51b815260040161128f90615c53565b80156134325760168054600160201b900461ffff1690600461340983615c88565b91906101000a81548161ffff021916908361ffff16021790555050602160006134329190614c12565b601654600160201b900461ffff16600090815260208080526040808320600187900b84529091528120839055805b60215461ffff821610156134c7578460010b60218261ffff168154811061348957613489615ace565b60009182526020909120601082040154600f9091166002026101000a900460010b14156134b557600191505b806134bf81615c88565b915050613460565b508061314d5760218054600181018255600091909152601081047f3a6357012c1a3ae0a17d304c9920310382d968ebcc4b1771f41c6b304205b57001805461ffff8088166002600f909516949094026101000a9384029302191691909117905550505050565b6040805160608101825260008082526020820181905291810191909152604080516060810182526000808252602082018190529181019190915260115483108061357957506000548310155b156135845792915050565b50600082815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff1615801592820192909252906135e45792915050565b612ed983614441565b60606135f8826140d5565b6136385760405162461bcd60e51b81526020600482015260116024820152703737b732bc34b9ba32b73a103a37b5b2b760791b604482015260640161128f565b6017805461364590615b15565b1515905061366157505060408051602081019091526000815290565b60408051602081019091526000815260185460ff16156136995750604080518082019091526005815264173539b7b760d91b60208201525b60176136a4846146c4565b826040516020016136b793929190615cfa565b604051602081830303815290604052915050919050565b600085815260156020526040902054600b9060ff16156137015760405162461bcd60e51b815260040161128f9190615b68565b50601660069054906101000a90046001600160a01b03166001600160a01b031661374d8686604051602001611ed892919091825260601b6001600160601b031916602082015260340190565b6001600160a01b031614600a906137775760405162461bcd60e51b815260040161128f9190615b68565b50505060009283525060156020526040909120805460ff19166001179055601680546001600160a01b03909216600160301b026601000000000000600160d01b0319909216919091179055565b60005b81811015611df4576137f285858585858181106137e6576137e6615ace565b905060200201356125d1565b806137fc81615afa565b9150506137c7565b6008546001600160a01b0316331461382e5760405162461bcd60e51b815260040161128f90615c53565b6138388686612194565b6138428484612ee0565b611fd68282611fde565b6001600160a01b0382166000908152601260205260408120546016548290600160d01b900460ff16613883576000925050506110a6565b60165462010000810461ffff166000908152601f60209081526040808320600160d01b90940460ff16835292815282822054602290915291902054106138ce576000925050506110a6565b601654600160201b900461ffff16600090815260208080526040808320600188900b808552908352818420546001600160a01b038a1685526014845282852091855292529091205410613926576000925050506110a6565b60165461ffff81166000908152601a6020908152604080832060ff600160d01b909504851684528252808320600189900b845290915290206003015416156139a4575060165461ffff81166000908152601a60209081526040808320600160d01b90940460ff168352928152828220600187810b8452915291902001545b601654600160f01b900461ffff1682106139c3576000925050506110a6565b6001600160a01b0385166000908152601360209081526040808320601654600160d01b900460ff1684528252808320600188900b84529091529020548111613a10576000925050506110a6565b60165462010000810461ffff166000908152601f60209081526040808320600160d01b90940460ff1683529281528282205460229091529190205410613a5b576000925050506110a6565b601654600160201b900461ffff16600090815260208080526040808320600188900b808552908352818420546001600160a01b038a1685526014845282852091855292529091205410613ab3576000925050506110a6565b601654600090613acf908490600160f01b900461ffff16615ce3565b6001600160a01b0387166000908152601360209081526040808320601654600160d01b900460ff168452825280832060018a900b845290915281205491925090613b199084615ce3565b601654600160d01b810460ff166000818152602260209081526040808320546201000090950461ffff168352601f82528083209383529290529081205492935091613b649190615ce3565b6001600160a01b038916600090815260146020908152604080832060018c900b80855290835281842054601654600160201b900461ffff16855283805282852091855292528220549293509091613bbb9190615ce3565b9050613be9613bc861305c565b613be4613bde613bd888886147c1565b866147c1565b846147c1565b6147c1565b9998505050505050505050565b6008546001600160a01b03163314613c205760405162461bcd60e51b815260040161128f90615c53565b6016805460ff60d81b1916600160d81b179055565b60178054613c4290615b15565b80601f0160208091040260200160405190810160405280929190818152602001828054613c6e90615b15565b8015613cbb5780601f10613c9057610100808354040283529160200191613cbb565b820191906000526020600020905b815481529060010190602001808311613c9e57829003601f168201915b505050505081565b6008546001600160a01b03163314613ced5760405162461bcd60e51b815260040161128f90615c53565b6001600160a01b038116613d525760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161128f565b613d5b8161456a565b50565b6008546001600160a01b03163314613d885760405162461bcd60e51b815260040161128f90615c53565b60165461ffff166000908152601a6020908152604080832060ff8087168552908352818420600186900b85529092529091206003015416613dfe5760405162461bcd60e51b815260206004820152601060248201526f149bdb19481b9bdd08195e1a5cdd195960821b604482015260640161128f565b6016805461ffff9081166000908152601a6020818152604080842060ff8916808652908352818520600189810b808852918552838720805460ff1990811690915589548916885286865284882084895286528488208389528652848820805462ffff00191690558954891688528686528488208489528652848820838952865284882090910187905588548816875285855283872083885285528387208288528552838720600201879055885488168752948452828620828752845282862090865283528185206003018054909416909355945484168352601b815284832091835252918220805490911691613ef383615d91565b91906101000a81548161ffff021916908361ffff1602179055505060005b60165461ffff166000908152601c6020908152604080832060ff80881685529252909120549082161015613fe95760165461ffff166000908152601c6020908152604080832060ff808816855292529091208054600185900b928416908110613f7c57613f7c615ace565b60009182526020909120601082040154600f9091166002026101000a900460010b1415613fd75760165461ffff166000908152601c6020908152604080832060ff80881685529252909120613fd29183166147d7565b613fe9565b80613fe181615caa565b915050613f11565b5060165461ffff9081166000908152601b6020908152604080832060ff871684529091529020541661210f5760005b601e5460ff8216101561123b578260ff16601e8260ff168154811061403f5761403f615ace565b60009182526020918290209181049091015460ff601f9092166101000a90041614156140735761123b601e8260ff1661490b565b8061407d81615caa565b915050614018565b60006001600160e01b031982166380ac58cd60e01b14806140b657506001600160e01b03198216635b5e139f60e01b145b806110a657506301ffc9a760e01b6001600160e01b03198316146110a6565b6000816140e160115490565b111580156140f0575060005482105b80156110a6575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600080858051906020012090506000816040516020016141bd91907f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c810191909152603c0190565b60408051601f1981840301815282825280516020918201206000845290830180835281905260ff8916918301919091526060820187905260808201869052915060019060a0016020604051602081039080840390855afa158015614225573d6000803e3d6000fd5b50505060206040510351925050505b949350505050565b61210f828260405180602001604052806000815250614a2e565b600061426182614441565b9050836001600160a01b031681600001516001600160a01b0316146142985760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b03861614806142b657506142b68533610e5a565b806142d15750336142c684611175565b6001600160a01b0316145b9050806142f157604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03841661431857604051633a954ecd60e21b815260040160405180910390fd5b61432460008487614115565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b429092169190910217835587018084529220805491939091166143f85760005482146143f857805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611df4565b6040805160608101825260008082526020820181905291810191909152818061446960115490565b116145515760005481101561455157600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff1615159181018290529061454f5780516001600160a01b0316156144e6579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff161515928101929092521561454a579392505050565b6144e6565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006145c760115490565b60005403905090565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290614605903390899088908890600401615daf565b602060405180830381600087803b15801561461f57600080fd5b505af192505050801561464f575060408051601f3d908101601f1916820190925261464c91810190615dec565b60015b6146aa573d80801561467d576040519150601f19603f3d011682016040523d82523d6000602084013e614682565b606091505b5080516146a2576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050614234565b6060816146e85750506040805180820190915260018152600360fc1b602082015290565b8160005b811561471257806146fc81615afa565b915061470b9050600a83615c22565b91506146ec565b6000816001600160401b0381111561472c5761472c615054565b6040519080825280601f01601f191660200182016040528015614756576020820181803683370190505b5090505b84156142345761476b600183615ce3565b9150614778600a86615e09565b614783906030615b50565b60f81b81838151811061479857614798615ace565b60200101906001600160f81b031916908160001a9053506147ba600a86615c22565b945061475a565b60008183106147d05781612ed9565b5090919050565b805b82546147e790600190615ce3565b81101561488457826147fa826001615b50565b8154811061480a5761480a615ace565b90600052602060002090601091828204019190066002029054906101000a900460010b83828154811061483f5761483f615ace565b90600052602060002090601091828204019190066002026101000a81548161ffff021916908360010b61ffff160217905550808061487c90615afa565b9150506147d9565b508154829061489590600190615ce3565b815481106148a5576148a5615ace565b90600052602060002090601091828204019190066002026101000a81549061ffff0219169055818054806148db576148db615e1d565b600082815260209020601060001990920191820401805461ffff6002600f8516026101000a021916905590555050565b805b825461491b90600190615ce3565b8110156149ad578261492e826001615b50565b8154811061493e5761493e615ace565b90600052602060002090602091828204019190069054906101000a900460ff1683828154811061497057614970615ace565b90600052602060002090602091828204019190066101000a81548160ff021916908360ff16021790555080806149a590615afa565b91505061490d565b50815482906149be90600190615ce3565b815481106149ce576149ce615ace565b90600052602060002090602091828204019190066101000a81549060ff021916905581805480614a0057614a00615e1d565b60019003818190600052602060002090602091828204019190066101000a81549060ff021916905590555050565b6000546001600160a01b038416614a5757604051622e076360e81b815260040160405180910390fd5b82614a755760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038416600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168b018116918217600160401b67ffffffffffffffff1990941690921783900481168b01811690920217909155858452600490925290912080546001600160e01b0319168317600160a01b42909316929092029190911790558190818501903b15614b98575b60405182906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4614b6160008784806001019550876145d0565b614b7e576040516368d2bf6b60e11b815260040160405180910390fd5b808210614b16578260005414614b9357600080fd5b614bdd565b5b6040516001830192906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210614b99575b50600090815561314d9085838684565b50805460008255601f016020900490600052602060002090810190613d5b9190614cbb565b50805460008255600f016010900490600052602060002090810190613d5b9190614cbb565b828054614c4390615b15565b90600052602060002090601f016020900481019282614c655760008555614cab565b82601f10614c7e57805160ff1916838001178555614cab565b82800160010185558215614cab579182015b82811115614cab578251825591602001919060010190614c90565b50614cb7929150614cbb565b5090565b5b80821115614cb75760008155600101614cbc565b602080825282518282018190526000919060409081850190868401855b82811015614d15578151805160ff168552860151868501529284019290850190600101614ced565b5091979650505050505050565b6001600160e01b031981168114613d5b57600080fd5b600060208284031215614d4a57600080fd5b8135612ed981614d22565b600060208284031215614d6757600080fd5b5035919050565b60005b83811015614d89578181015183820152602001614d71565b8381111561314d5750506000910152565b60008151808452614db2816020860160208601614d6e565b601f01601f19169290920160200192915050565b602081526000612ed96020830184614d9a565b80356001600160a01b0381168114614df057600080fd5b919050565b60008060408385031215614e0857600080fd5b614e1183614dd9565b946020939093013593505050565b8035600181900b8114614df057600080fd5b803561ffff81168114614df057600080fd5b803560ff81168114614df057600080fd5b600080600080600080600080610100898b031215614e7157600080fd5b88359750614e8160208a01614e1f565b9650614e8f60408a01614e31565b9550614e9d60608a01614dd9565b945060808901359350614eb260a08a01614e43565b925060c0890135915060e089013590509295985092959890939650565b600060208284031215614ee157600080fd5b612ed982614e43565b8015158114613d5b57600080fd5b600080600080600060a08688031215614f1057600080fd5b614f1986614e43565b9450614f2760208701614e1f565b935060408601359250606086013591506080860135614f4581614eea565b809150509295509295909350565b600080600060608486031215614f6857600080fd5b614f7184614e31565b9250614f7f60208501614e43565b9150604084013590509250925092565b600080600060608486031215614fa457600080fd5b614fad84614dd9565b9250614f7f60208501614dd9565b600080600080600060a08688031215614fd357600080fd5b85359450614fe360208701614e43565b9350614ff160408701614e43565b94979396509394606081013594506080013592915050565b60008083601f84011261501b57600080fd5b5081356001600160401b0381111561503257600080fd5b6020830191508360208260051b850101111561504d57600080fd5b9250929050565b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b038111828210171561508c5761508c615054565b60405290565b604051608081016001600160401b038111828210171561508c5761508c615054565b604051601f8201601f191681016001600160401b03811182821017156150dc576150dc615054565b604052919050565b60006001600160401b038311156150fd576150fd615054565b615110601f8401601f19166020016150b4565b905082815283838301111561512457600080fd5b828260208301376000602084830101529392505050565b600082601f83011261514c57600080fd5b612ed9838335602085016150e4565b60008060008060006080868803121561517357600080fd5b61517c86614dd9565b945061518a60208701614dd9565b935060408601356001600160401b03808211156151a657600080fd5b6151b289838a01615009565b909550935060608801359150808211156151cb57600080fd5b506151d88882890161513b565b9150509295509295909350565b60006001600160401b038211156151fe576151fe615054565b5060051b60200190565b600082601f83011261521957600080fd5b8135602061522e615229836151e5565b6150b4565b82815260069290921b8401810191818101908684111561524d57600080fd5b8286015b84811015615293576040818903121561526a5760008081fd5b61527261506a565b61527b82614e1f565b81528185013585820152835291830191604001615251565b509695505050505050565b600080604083850312156152b157600080fd5b82356001600160401b038111156152c757600080fd5b6152d385828601615208565b92505060208301356152e481614eea565b809150509250929050565b600082601f83011261530057600080fd5b81356020615310615229836151e5565b82815260079290921b8401810191818101908684111561532f57600080fd5b8286015b84811015615293576080818903121561534c5760008081fd5b615354615092565b61535d82614e43565b815261536a858301614e1f565b818601526040828101359082015260608083013590820152835291830191608001615333565b600080604083850312156153a357600080fd5b82356001600160401b038111156153b957600080fd5b6152d3858286016152ef565b6000602082840312156153d757600080fd5b612ed982614e1f565b602080825282518282018190526000919060409081850190868401855b82811015614d15578151805160ff16855286810151600190810b8887015286820151878701526060918201519186019190915260809094019391860191016153fd565b60006020828403121561545257600080fd5b81356001600160401b0381111561546857600080fd5b8201601f8101841361547957600080fd5b614234848235602084016150e4565b6000602080838503121561549b57600080fd5b82356001600160401b038111156154b157600080fd5b8301601f810185136154c257600080fd5b80356154d0615229826151e5565b81815260059190911b820183019083810190878311156154ef57600080fd5b928401925b8284101561550d578335825292840192908401906154f4565b979650505050505050565b80516001600160a01b031682526020808201516001600160401b0316908301526040908101511515910152565b6020808252825182820181905260009190848201906040850190845b81811015612b9257615574838551615518565b9284019260609290920191600101615561565b60006020828403121561559957600080fd5b8135612ed981614eea565b6000602082840312156155b657600080fd5b612ed982614dd9565b602080825282518282018190526000919060409081850190868401855b82811015614d155781518051600190810b865290870151878601529385019391860191016155dc565b60006020828403121561561757600080fd5b612ed982614e31565b6020808252825182820181905260009190848201906040850190845b81811015612b925783518352928401929184019160010161563c565b6000806000806060858703121561566e57600080fd5b61567785614dd9565b935061568560208601614dd9565b925060408501356001600160401b038111156156a057600080fd5b6156ac87828801615009565b95989497509550505050565b6000806000606084860312156156cd57600080fd5b6156d684614dd9565b95602085013595506040909401359392505050565b60008060006060848603121561570057600080fd5b61570984614e31565b925061571760208501614e43565b915061572560408501614e1f565b90509250925092565b600082601f83011261573f57600080fd5b8135602061574f615229836151e5565b82815260069290921b8401810191818101908684111561576e57600080fd5b8286015b84811015615293576040818903121561578b5760008081fd5b61579361506a565b61579c82614e43565b81528185013585820152835291830191604001615772565b600080604083850312156157c757600080fd5b82356001600160401b038111156157dd57600080fd5b6152d38582860161572e565b600080604083850312156157fc57600080fd5b61580583614dd9565b915060208301356152e481614eea565b6000806040838503121561582857600080fd5b61583183614dd9565b915061583f60208401614e1f565b90509250929050565b6000806000806080858703121561585e57600080fd5b61586785614dd9565b935061587560208601614dd9565b92506040850135915060608501356001600160401b0381111561589757600080fd5b6158a38782880161513b565b91505092959194509250565b6000806000606084860312156158c457600080fd5b6158cd84614e43565b92506020840135915060408401356158e481614eea565b809150509250925092565b6000806040838503121561590257600080fd5b61590b83614e31565b915061583f60208401614e43565b6020808252825182820181905260009190848201906040850190845b81811015612b92578351600190810b8452938501939285019201615935565b60008060006060848603121561596957600080fd5b6158cd84614e1f565b606081016110a68284615518565b600080600080600060a0868803121561599857600080fd5b85359450614fe360208701614dd9565b60008060008060008060c087890312156159c157600080fd5b86356001600160401b03808211156159d857600080fd5b6159e48a838b016152ef565b9750602089013591506159f682614eea565b90955060408801359080821115615a0c57600080fd5b615a188a838b0161572e565b955060608901359150615a2a82614eea565b90935060808801359080821115615a4057600080fd5b50615a4d89828a01615208565b92505060a0870135615a5e81614eea565b809150509295509295509295565b60008060408385031215615a7f57600080fd5b615a8883614dd9565b915061583f60208401614dd9565b60008060408385031215615aa957600080fd5b61583183614e31565b60008060408385031215615ac557600080fd5b61583183614e43565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415615b0e57615b0e615ae4565b5060010190565b600181811c90821680615b2957607f821691505b60208210811415615b4a57634e487b7160e01b600052602260045260246000fd5b50919050565b60008219821115615b6357615b63615ae4565b500190565b6000602080835260008454615b7c81615b15565b80848701526040600180841660008114615b9d5760018114615bb157615bdf565b60ff19851689840152606089019550615bdf565b896000528660002060005b85811015615bd75781548b8201860152908301908801615bbc565b8a0184019650505b509398975050505050505050565b6000816000190483118215151615615c0757615c07615ae4565b500290565b634e487b7160e01b600052601260045260246000fd5b600082615c3157615c31615c0c565b500490565b600060208284031215615c4857600080fd5b8151612ed981614eea565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600061ffff80831681811415615ca057615ca0615ae4565b6001019392505050565b600060ff821660ff811415615cc157615cc1615ae4565b60010192915050565b600060208284031215615cdc57600080fd5b5051919050565b600082821015615cf557615cf5615ae4565b500390565b6000808554615d0881615b15565b60018281168015615d205760018114615d3157615d60565b60ff19841687528287019450615d60565b8960005260208060002060005b85811015615d575781548a820152908401908201615d3e565b50505082870194505b505050508451615d74818360208901614d6e565b8451910190615d87818360208801614d6e565b0195945050505050565b600061ffff821680615da557615da5615ae4565b6000190192915050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090615de290830184614d9a565b9695505050505050565b600060208284031215615dfe57600080fd5b8151612ed981614d22565b600082615e1857615e18615c0c565b500690565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220d82d99c31f26d4e94890805cfa853cf1373bc444e8d6e3d81e366d696854c5f964736f6c63430008090033
Deployed Bytecode
0x6080604052600436106104345760003560e01c80638462151c11610229578063bd8fc4a21161012e578063d0950e74116100b6578063e985e9c51161007a578063e985e9c514610e3f578063f2fde38b14610e88578063f5a4156c14610ea8578063fb3cc6c214610ede578063fe2e66f414610eff57600080fd5b8063d0950e7414610db9578063d111515d14610dd9578063de7fcb1d14610dee578063e08c5e3214610e10578063e4d3d44814610e2a57600080fd5b8063c87b56dd116100fd578063c87b56dd14610d01578063c9d4857914610d21578063cf502d0d14610d41578063d047d03814610d61578063d0667dd214610d9957600080fd5b8063bd8fc4a214610c4b578063be56844814610c87578063bf65eb3414610cb4578063c23dc68f14610cd457600080fd5b8063a13429a9116101b1578063b1ad048c11610180578063b1ad048c14610bab578063b1e8dbaa14610bcb578063b6a7412114610beb578063b88d4fde14610c0b578063ba1402d314610c2b57600080fd5b8063a13429a914610b41578063a22cb46514610b61578063a2309ff814610b81578063ac7dc68d14610b9657600080fd5b80638a19c8bc116101f85780638a19c8bc14610a395780638da5cb5b14610a5a57806395d89b4114610a7857806399a2557a14610a8d5780639e8cc8d314610aad57600080fd5b80638462151c146109b657806387f65c91146109e357806389476069146109f957806389b5a8c214610a1957600080fd5b80633ccfd60b1161033a578063572849c4116102c257806370a082311161028657806370a082311461091f578063715018a61461093f578063748a500a14610954578063796b89ec1461097657806379a2c3f81461099657600080fd5b8063572849c4146108565780635b7633d01461088b5780635bbb2177146108b25780636352211e146108df5780636e453d62146108ff57600080fd5b80633e9dbed0116103095780633e9dbed0146107ac57806342842e0e146107ce57806346830628146107ee578063500ea93b1461080457806355f804b31461083657600080fd5b80633ccfd60b146106fb5780633d6a5745146107105780633dd3802d146107305780633e8f18f01461075057600080fd5b80631a6d843e116103bd57806327854c151161038c57806327854c1514610658578063306279da1461068557806332ab9bbe146106a557806332cb6b0c146106c557806333ee7927146106db57600080fd5b80631a6d843e146105d85780631c1cb323146105f857806321120f7a1461061857806323b872dd1461063857600080fd5b8063081812fc11610404578063081812fc14610528578063095ea7b3146105605780630d23d6691461058257806318160ddd14610595578063183ab264146105b857600080fd5b80620319df1461047857806301ffc9a7146104a357806306a7c8de146104d357806306fdde031461050657600080fd5b3661047357604080513381523460208201527f88a5966d370b9919b20f3e2c13ff65706f196a4e32cc2c12bf57088f88525874910160405180910390a1005b600080fd5b34801561048457600080fd5b5061048d610f1f565b60405161049a9190614cd0565b60405180910390f35b3480156104af57600080fd5b506104c36104be366004614d38565b61108c565b604051901515815260200161049a565b3480156104df57600080fd5b506104f36104ee366004614d55565b6110ac565b60405160019190910b815260200161049a565b34801561051257600080fd5b5061051b6110e3565b60405161049a9190614dc6565b34801561053457600080fd5b50610548610543366004614d55565b611175565b6040516001600160a01b03909116815260200161049a565b34801561056c57600080fd5b5061058061057b366004614df5565b6111b9565b005b610580610590366004614e54565b611240565b3480156105a157600080fd5b506105aa6118e9565b60405190815260200161049a565b3480156105c457600080fd5b506105806105d3366004614ecf565b611901565b3480156105e457600080fd5b506105806105f3366004614ef8565b61197f565b34801561060457600080fd5b50602454610548906001600160a01b031681565b34801561062457600080fd5b506104f3610633366004614f53565b611dfb565b34801561064457600080fd5b50610580610653366004614f8f565b611e4e565b34801561066457600080fd5b506105aa610673366004614ecf565b60226020526000908152604090205481565b34801561069157600080fd5b506105806106a0366004614fbb565b611e59565b3480156106b157600080fd5b506105806106c036600461515b565b611f95565b3480156106d157600080fd5b506105aa60105481565b3480156106e757600080fd5b506105806106f636600461529e565b611fde565b34801561070757600080fd5b506105806120b6565b34801561071c57600080fd5b5061058061072b366004614df5565b612113565b34801561073c57600080fd5b5061058061074b366004615390565b612194565b34801561075c57600080fd5b506105aa61076b3660046153c5565b60165461ffff81166000908152601a60209081526040808320600160d01b90940460ff16835292815282822060019490940b82529290925290206002015490565b3480156107b857600080fd5b506107c16122a1565b60405161049a91906153e0565b3480156107da57600080fd5b506105806107e9366004614f8f565b6125d1565b3480156107fa57600080fd5b506105aa60235481565b34801561081057600080fd5b5061082461081f366004614d55565b6125ec565b60405160ff909116815260200161049a565b34801561084257600080fd5b50610580610851366004615440565b612620565b34801561086257600080fd5b5060165461087890600160f01b900461ffff1681565b60405161ffff909116815260200161049a565b34801561089757600080fd5b5060165461054890600160301b90046001600160a01b031681565b3480156108be57600080fd5b506108d26108cd366004615488565b6126a9565b60405161049a9190615545565b3480156108eb57600080fd5b506105486108fa366004614d55565b61276f565b34801561090b57600080fd5b5061058061091a366004615587565b612781565b34801561092b57600080fd5b506105aa61093a3660046155a4565b6127be565b34801561094b57600080fd5b5061058061280c565b34801561096057600080fd5b50610969612842565b60405161049a91906155bf565b34801561098257600080fd5b506105806109913660046155a4565b6129ad565b3480156109a257600080fd5b506105806109b1366004615605565b6129f9565b3480156109c257600080fd5b506109d66109d13660046155a4565b612a46565b60405161049a9190615620565b3480156109ef57600080fd5b506105aa60115481565b348015610a0557600080fd5b50610580610a143660046155a4565b612b9e565b348015610a2557600080fd5b50610580610a34366004615658565b612cc9565b348015610a4557600080fd5b5060165461082490600160d01b900460ff1681565b348015610a6657600080fd5b506008546001600160a01b0316610548565b348015610a8457600080fd5b5061051b612d09565b348015610a9957600080fd5b506109d6610aa83660046156b8565b612d18565b348015610ab957600080fd5b50610b10610ac83660046156eb565b601a60209081526000938452604080852082529284528284209052825290208054600180830154600284015460039094015460ff8085169561010090950490930b9391921685565b6040805160ff909616865260019490940b60208601529284019190915260608301521515608082015260a00161049a565b348015610b4d57600080fd5b50610580610b5c3660046157b4565b612ee0565b348015610b6d57600080fd5b50610580610b7c3660046157e9565b612fb7565b348015610b8d57600080fd5b506105aa61304d565b348015610ba257600080fd5b506105aa61305c565b348015610bb757600080fd5b506105aa610bc6366004615815565b613073565b348015610bd757600080fd5b50610824610be6366004614d55565b6130ad565b348015610bf757600080fd5b50610580610c06366004615605565b6130bd565b348015610c1757600080fd5b50610580610c26366004615848565b613109565b348015610c3757600080fd5b50610580610c463660046158af565b613153565b348015610c5757600080fd5b50610878610c663660046158ef565b601b60209081526000928352604080842090915290825290205461ffff1681565b348015610c9357600080fd5b50610ca7610ca2366004614ecf565b6132b7565b60405161049a9190615919565b348015610cc057600080fd5b50610580610ccf366004615954565b6133be565b348015610ce057600080fd5b50610cf4610cef366004614d55565b61352d565b60405161049a9190615972565b348015610d0d57600080fd5b5061051b610d1c366004614d55565b6135ed565b348015610d2d57600080fd5b50610580610d3c366004615980565b6136ce565b348015610d4d57600080fd5b50610580610d5c366004615658565b6137c4565b348015610d6d57600080fd5b506105aa610d7c3660046158ef565b601f60209081526000928352604080842090915290825290205481565b348015610da557600080fd5b50610580610db43660046159a8565b613804565b348015610dc557600080fd5b506105aa610dd4366004615815565b61384c565b348015610de557600080fd5b50610580613bf6565b348015610dfa57600080fd5b5060165461087890600160e01b900461ffff1681565b348015610e1c57600080fd5b506018546104c39060ff1681565b348015610e3657600080fd5b5061051b613c35565b348015610e4b57600080fd5b506104c3610e5a366004615a6c565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b348015610e9457600080fd5b50610580610ea33660046155a4565b613cc3565b348015610eb457600080fd5b506105aa610ec3366004615a96565b60208080526000928352604080842090915290825290205481565b348015610eea57600080fd5b506016546104c390600160d81b900460ff1681565b348015610f0b57600080fd5b50610580610f1a366004615ab2565b613d5e565b601e546060906000816001600160401b03811115610f3f57610f3f615054565b604051908082528060200260200182016040528015610f8457816020015b6040805180820190915260008082526020820152815260200190600190039081610f5d5790505b50905060005b8281101561108557601e8181548110610fa557610fa5615ace565b90600052602060002090602091828204019190069054906101000a900460ff16828281518110610fd757610fd7615ace565b60209081029190910181015160ff90921690915260165461ffff62010000909104166000908152601f90915260408120601e80549192918490811061101e5761101e615ace565b90600052602060002090602091828204019190069054906101000a900460ff1660ff1660ff1681526020019081526020016000205482828151811061106557611065615ace565b60209081029190910181015101528061107d81615afa565b915050610f8a565b5092915050565b600061109782614085565b806110a657506110a682614085565b92915050565b602181815481106110bc57600080fd5b9060005260206000209060109182820401919006600202915054906101000a900460010b81565b6060600280546110f290615b15565b80601f016020809104026020016040519081016040528092919081815260200182805461111e90615b15565b801561116b5780601f106111405761010080835404028352916020019161116b565b820191906000526020600020905b81548152906001019060200180831161114e57829003601f168201915b5050505050905090565b6000611180826140d5565b61119d576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006111c48261276f565b9050806001600160a01b0316836001600160a01b031614156111f95760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614611230576112138133610e5a565b611230576040516367d9dca160e11b815260040160405180910390fd5b61123b838383614115565b505050565b600260095414156112985760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b6002600955601654600160d01b900460ff166112e45760405162461bcd60e51b815260206004820152600b60248201526a139bdd081cdd185c9d195960aa1b604482015260640161128f565b836000600189900b126113065761130361ffff8916601087901b615b50565b90505b600081815260156020526040902054600b9060ff16156113395760405162461bcd60e51b815260040161128f9190615b68565b50601654604080516020810184905260f08a901b6001600160f01b03191691810191909152606088901b6001600160601b0319166042820152600160301b9091046001600160a01b0316906113a290605601604051602081830303815290604052868686614171565b6001600160a01b031614600a906113cc5760405162461bcd60e51b815260040161128f9190615b68565b5060165461ffff81166000908152601a6020908152604080832060ff600160d01b9095048516845282528083208380529091528120600301549091169060018a900b81136114175750885b60165461ffff81166000908152601a6020908152604080832060ff600160d01b909504851684528252808320600186900b84529091529020600301541661149857816114945760405162461bcd60e51b815260206004820152600c60248201526b4e6f7420656c696769626c6560a01b604482015260640161128f565b5060005b600e8b6114b85760405162461bcd60e51b815260040161128f9190615b68565b508a6114c261305c565b1015600f906114e45760405162461bcd60e51b815260040161128f9190615b68565b5060008a60010b12611523578a6114fb338c613073565b1015600d9061151d5760405162461bcd60e51b815260040161128f9190615b68565b50611553565b8a61152f336000613073565b1015600d906115515760405162461bcd60e51b815260040161128f9190615b68565b505b60165461ffff81166000908152601a60209081526040808320600160d01b90940460ff168352928152828220600185900b8352905290812060020154611599908d615bed565b6000858152601560205260409020805460ff191660011790556024549091506001600160a01b0316156115ed57600c34156115e75760405162461bcd60e51b815260040161128f9190615b68565b50611611565b600c34821461160f5760405162461bcd60e51b815260040161128f9190615b68565b505b61161b338d61423c565b601654600160d01b900460ff16600090815260226020526040902054611642908d90615b50565b601654600160d01b900460ff16600090815260226020908152604080832093909355338252601290522054611678908d90615b50565b3360009081526012602090815260408083209390935560138152828220601654600160d01b900460ff1683528152828220600186900b8352905220546116bf908d90615b50565b336000908152601360209081526040808320601654600160d01b900460ff1684528252808320600187900b80855292528220929092551361174457336000908152601460209081526040808320600186900b8452909152902054611724908d90615b50565b336000908152601460209081526040808320600187900b84529091529020555b600061271061175761ffff8d1684615bed565b6117619190615c22565b6024549091506001600160a01b03161561188c57602480546040516323b872dd60e01b81523360048201523092810192909252604482018490526001600160a01b03169081906323b872dd90606401602060405180830381600087803b1580156117ca57600080fd5b505af11580156117de573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118029190615c36565b5060405163a9059cbb60e01b81526001600160a01b038c811660048301526024820184905282169063a9059cbb90604401602060405180830381600087803b15801561184d57600080fd5b505af1158015611861573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118859190615c36565b50506118c4565b6040516001600160a01b038b169082156108fc029083906000818181858888f193505050501580156118c2573d6000803e3d6000fd5b505b806023546118d29190615b50565b602355505060016009555050505050505050505050565b60006118f460115490565b6001546000540303905090565b6008546001600160a01b0316331461192b5760405162461bcd60e51b815260040161128f90615c53565b6016805460ff60d01b1916600160d01b60ff8416908102919091179091556040519081527f5d14047d25a400b6364f7b505872a4f0e8437d0dfd6cbdd5eee59f37baee7f459060200160405180910390a150565b6008546001600160a01b031633146119a95760405162461bcd60e51b815260040161128f90615c53565b80156119ec576016805461ffff169060006119c383615c88565b91906101000a81548161ffff021916908361ffff16021790555050601d60006119ec9190614bed565b6000601a6000601660009054906101000a900461ffff1661ffff1661ffff16815260200190815260200160002060008760ff1660ff16815260200190815260200160002060008660010b60010b815260200190815260200160002060030160009054906101000a900460ff16905085601a6000601660009054906101000a900461ffff1661ffff1661ffff16815260200190815260200160002060008860ff1660ff16815260200190815260200160002060008760010b60010b815260200190815260200160002060000160006101000a81548160ff021916908360ff16021790555084601a6000601660009054906101000a900461ffff1661ffff1661ffff16815260200190815260200160002060008860ff1660ff16815260200190815260200160002060008760010b60010b815260200190815260200160002060000160016101000a81548161ffff021916908360010b61ffff16021790555083601a6000601660009054906101000a900461ffff1661ffff1661ffff16815260200190815260200160002060008860ff1660ff16815260200190815260200160002060008760010b60010b81526020019081526020016000206001018190555082601a6000601660009054906101000a900461ffff1661ffff1661ffff16815260200190815260200160002060008860ff1660ff16815260200190815260200160002060008760010b60010b8152602001908152602001600020600201819055506001601a6000601660009054906101000a900461ffff1661ffff1661ffff16815260200190815260200160002060008860ff1660ff16815260200190815260200160002060008760010b60010b815260200190815260200160002060030160006101000a81548160ff0219169083151502179055508015611c8c5750611df4565b60165461ffff9081166000908152601b6020908152604080832060ff8b168452909152812080549092169190611cc183615c88565b825461010092830a61ffff81810219909216928216029190911790925560165482166000908152601c6020908152604080832060ff8d16845282528220805460018101825590835290822060108204018054600f90921660020290930a80850219909116938a16029290921790559050805b601d5460ff82161015611d97578760ff16601d8260ff1681548110611d5a57611d5a615ace565b60009182526020918290209181049091015460ff601f9092166101000a9004161415611d8557600191505b80611d8f81615caa565b915050611d33565b5080611df157601d8054600181018255600091909152602081047f6d4407e7be21f808e6509aa9fa9143369579dd7d760fe20a2c09680fc146134f01805460ff808b16601f9094166101000a938402930219169190911790555b50505b5050505050565b601c6020528260005260406000206020528160005260406000208181548110611e2357600080fd5b906000526020600020906010918282040191900660020292509250509054906101000a900460010b81565b61123b838383614256565b600085815260156020526040902054600b9060ff1615611e8c5760405162461bcd60e51b815260040161128f9190615b68565b50601660069054906101000a90046001600160a01b03166001600160a01b0316611eef8686604051602001611ed892919091825260f81b6001600160f81b031916602082015260210190565b604051602081830303815290604052858585614171565b6001600160a01b031614600a90611f195760405162461bcd60e51b815260040161128f9190615b68565b5060008581526015602052604090819020805460ff191660011790556016805460ff8716600160d01b0260ff60d01b19909116179055517f5d14047d25a400b6364f7b505872a4f0e8437d0dfd6cbdd5eee59f37baee7f4590611f8690869060ff91909116815260200190565b60405180910390a15050505050565b60005b82811015611fd657611fc48686868685818110611fb757611fb7615ace565b9050602002013585613109565b80611fce81615afa565b915050611f98565b505050505050565b6008546001600160a01b031633146120085760405162461bcd60e51b815260040161128f90615c53565b80156120525760168054600160201b900461ffff1690600461202983615c88565b91906101000a81548161ffff021916908361ffff16021790555050602160006120529190614c12565b60005b825181101561123b576120a483828151811061207357612073615ace565b60200260200101516000015184838151811061209157612091615ace565b60200260200101516020015160006133be565b806120ae81615afa565b915050612055565b6008546001600160a01b031633146120e05760405162461bcd60e51b815260040161128f90615c53565b6040514790339082156108fc029083906000818181858888f1935050505015801561210f573d6000803e3d6000fd5b5050565b6008546001600160a01b0316331461213d5760405162461bcd60e51b815260040161128f90615c53565b600e8161215d5760405162461bcd60e51b815260040161128f9190615b68565b508061216761305c565b1015600f906121895760405162461bcd60e51b815260040161128f9190615b68565b5061210f828261423c565b6008546001600160a01b031633146121be5760405162461bcd60e51b815260040161128f90615c53565b8015612201576016805461ffff169060006121d883615c88565b91906101000a81548161ffff021916908361ffff16021790555050601d60006122019190614bed565b60005b825181101561123b5761228f83828151811061222257612222615ace565b60200260200101516000015184838151811061224057612240615ace565b60200260200101516020015185848151811061225e5761225e615ace565b60200260200101516040015186858151811061227c5761227c615ace565b602002602001015160600151600061197f565b8061229981615afa565b915050612204565b60606000805b601d5481101561232b5760165461ffff166000908152601b60205260408120601d8054919291849081106122dd576122dd615ace565b600091825260208083208183040154601f9092166101000a90910460ff1683528201929092526040019020546123179061ffff1683615b50565b91508061232381615afa565b9150506122a7565b506000816001600160401b0381111561234657612346615054565b60405190808252806020026020018201604052801561239857816020015b6040805160808101825260008082526020808301829052928201819052606082015282526000199092019101816123645790505b5090506000805b601d548110156125c8576000601d82815481106123be576123be615ace565b60009182526020808320908204015460ff601f9092166101000a90041691505b60165461ffff166000908152601b60205260408120601d80549192918690811061240a5761240a615ace565b600091825260208083208183040154601f9092166101000a90910460ff16835282019290925260400190205461ffff168110156125b35760165461ffff166000908152601c6020908152604080832060ff86168452909152812080548390811061247657612476615ace565b90600052602060002090601091828204019190066002029054906101000a900460010b9050828686815181106124ae576124ae615ace565b60200260200101516000019060ff16908160ff1681525050808686815181106124d9576124d9615ace565b602090810291909101810151600192830b9082015260165461ffff166000908152601a8252604080822060ff88168352835280822085850b8352909252200154865187908790811061252d5761252d615ace565b60209081029190910181015160409081019290925260165461ffff166000908152601a825282812060ff871682528252828120600185900b82529091522060020154865187908790811061258357612583615ace565b6020908102919091010151606001528461259c81615afa565b9550505080806125ab90615afa565b9150506123de565b505080806125c090615afa565b91505061239f565b50909392505050565b61123b83838360405180602001604052806000815250613109565b601d81815481106125fc57600080fd5b9060005260206000209060209182820401919006915054906101000a900460ff1681565b6008546001600160a01b0316331461264a5760405162461bcd60e51b815260040161128f90615c53565b601654600160d81b900460ff16156126965760405162461bcd60e51b815260206004820152600f60248201526e26b2ba30b230ba3090333937bd32b760891b604482015260640161128f565b805161210f906017906020840190614c37565b80516060906000816001600160401b038111156126c8576126c8615054565b60405190808252806020026020018201604052801561271357816020015b60408051606081018252600080825260208083018290529282015282526000199092019101816126e65790505b50905060005b8281146127675761274285828151811061273557612735615ace565b602002602001015161352d565b82828151811061275457612754615ace565b6020908102919091010152600101612719565b509392505050565b600061277a82614441565b5192915050565b6008546001600160a01b031633146127ab5760405162461bcd60e51b815260040161128f90615c53565b6018805460ff1916911515919091179055565b60006001600160a01b0382166127e7576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6008546001600160a01b031633146128365760405162461bcd60e51b815260040161128f90615c53565b612840600061456a565b565b6021546060906000816001600160401b0381111561286257612862615054565b6040519080825280602002602001820160405280156128a757816020015b60408051808201909152600080825260208201528152602001906001900390816128805790505b50905060005b8281101561108557602181815481106128c8576128c8615ace565b90600052602060002090601091828204019190066002029054906101000a900460010b8282815181106128fd576128fd615ace565b60209081029190910181015160019290920b909152601654600160201b900461ffff16600090815290805260408120602180549192918490811061294357612943615ace565b90600052602060002090601091828204019190066002029054906101000a900460010b60010b60010b81526020019081526020016000205482828151811061298d5761298d615ace565b6020908102919091018101510152806129a581615afa565b9150506128ad565b6008546001600160a01b031633146129d75760405162461bcd60e51b815260040161128f90615c53565b602480546001600160a01b0319166001600160a01b0392909216919091179055565b6008546001600160a01b03163314612a235760405162461bcd60e51b815260040161128f90615c53565b6016805461ffff909216600160f01b026001600160f01b03909216919091179055565b60606000806000612a56856127be565b90506000816001600160401b03811115612a7257612a72615054565b604051908082528060200260200182016040528015612a9b578160200160208202803683370190505b509050612ac1604080516060810182526000808252602082018190529181019190915290565b6000612acc60115490565b90505b838614612b9257600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16158015928201929092529250612b3557612b8a565b81516001600160a01b031615612b4a57815194505b876001600160a01b0316856001600160a01b03161415612b8a5780838780600101985081518110612b7d57612b7d615ace565b6020026020010181815250505b600101612acf565b50909695505050505050565b6008546001600160a01b03163314612bc85760405162461bcd60e51b815260040161128f90615c53565b6040516370a0823160e01b815230600482015281906001600160a01b0382169063a9059cbb90339083906370a082319060240160206040518083038186803b158015612c1357600080fd5b505afa158015612c27573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c4b9190615cca565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b158015612c9157600080fd5b505af1158015612ca5573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061123b9190615c36565b60005b81811015611df457612cf78585858585818110612ceb57612ceb615ace565b90506020020135611e4e565b80612d0181615afa565b915050612ccc565b6060600380546110f290615b15565b6060818310612d3a57604051631960ccad60e11b815260040160405180910390fd5b60008054601154851015612d4e5760115494505b80841115612d5a578093505b6000612d65876127be565b905084861015612d845785850381811015612d7e578091505b50612d88565b5060005b6000816001600160401b03811115612da257612da2615054565b604051908082528060200260200182016040528015612dcb578160200160208202803683370190505b50905081612dde579350612ed992505050565b6000612de98861352d565b905060008160400151612dfa575080515b885b888114158015612e0c5750848714155b15612ecd57600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16158015928201929092529350612e7057612ec5565b82516001600160a01b031615612e8557825191505b8a6001600160a01b0316826001600160a01b03161415612ec55780848880600101995081518110612eb857612eb8615ace565b6020026020010181815250505b600101612dfc565b50505092835250909150505b9392505050565b6008546001600160a01b03163314612f0a5760405162461bcd60e51b815260040161128f90615c53565b8015612f53576016805462010000900461ffff16906002612f2a83615c88565b91906101000a81548161ffff021916908361ffff16021790555050601e6000612f539190614bed565b60005b825181101561123b57612fa5838281518110612f7457612f74615ace565b602002602001015160000151848381518110612f9257612f92615ace565b6020026020010151602001516000613153565b80612faf81615afa565b915050612f56565b6001600160a01b038216331415612fe15760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60006130576145bc565b905090565b600061306661304d565b6010546130579190615ce3565b600080613080848461384c565b601654909150600160e01b900461ffff16811115612ed9575050601654600160e01b900461ffff166110a6565b601e81815481106125fc57600080fd5b6008546001600160a01b031633146130e75760405162461bcd60e51b815260040161128f90615c53565b6016805461ffff909216600160e01b0261ffff60e01b19909216919091179055565b613114848484614256565b6001600160a01b0383163b1561314d57613130848484846145d0565b61314d576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6008546001600160a01b0316331461317d5760405162461bcd60e51b815260040161128f90615c53565b80156131c6576016805462010000900461ffff1690600261319d83615c88565b91906101000a81548161ffff021916908361ffff16021790555050601e60006131c69190614bed565b60165462010000900461ffff166000908152601f6020908152604080832060ff871684529091528120839055805b601e5460ff82161015613258578460ff16601e8260ff168154811061321b5761321b615ace565b60009182526020918290209181049091015460ff601f9092166101000a900416141561324657600191505b8061325081615caa565b9150506131f4565b508061314d57601e8054600181018255600091909152602081047f50bb669a95c7b50b7e8a6f09454034b2b14cf2b85c730dca9a539ca82cb6e35001805460ff808816601f9094166101000a9384029302191691909117905550505050565b60165461ffff166000908152601c6020908152604080832060ff85168452909152812054606091816001600160401b038111156132f6576132f6615054565b60405190808252806020026020018201604052801561331f578160200160208202803683370190505b50905060005b828110156127675760165461ffff166000908152601c6020908152604080832060ff89168452909152902080548290811061336257613362615ace565b90600052602060002090601091828204019190066002029054906101000a900460010b82828151811061339757613397615ace565b602002602001019060010b908160010b8152505080806133b690615afa565b915050613325565b6008546001600160a01b031633146133e85760405162461bcd60e51b815260040161128f90615c53565b80156134325760168054600160201b900461ffff1690600461340983615c88565b91906101000a81548161ffff021916908361ffff16021790555050602160006134329190614c12565b601654600160201b900461ffff16600090815260208080526040808320600187900b84529091528120839055805b60215461ffff821610156134c7578460010b60218261ffff168154811061348957613489615ace565b60009182526020909120601082040154600f9091166002026101000a900460010b14156134b557600191505b806134bf81615c88565b915050613460565b508061314d5760218054600181018255600091909152601081047f3a6357012c1a3ae0a17d304c9920310382d968ebcc4b1771f41c6b304205b57001805461ffff8088166002600f909516949094026101000a9384029302191691909117905550505050565b6040805160608101825260008082526020820181905291810191909152604080516060810182526000808252602082018190529181019190915260115483108061357957506000548310155b156135845792915050565b50600082815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff1615801592820192909252906135e45792915050565b612ed983614441565b60606135f8826140d5565b6136385760405162461bcd60e51b81526020600482015260116024820152703737b732bc34b9ba32b73a103a37b5b2b760791b604482015260640161128f565b6017805461364590615b15565b1515905061366157505060408051602081019091526000815290565b60408051602081019091526000815260185460ff16156136995750604080518082019091526005815264173539b7b760d91b60208201525b60176136a4846146c4565b826040516020016136b793929190615cfa565b604051602081830303815290604052915050919050565b600085815260156020526040902054600b9060ff16156137015760405162461bcd60e51b815260040161128f9190615b68565b50601660069054906101000a90046001600160a01b03166001600160a01b031661374d8686604051602001611ed892919091825260601b6001600160601b031916602082015260340190565b6001600160a01b031614600a906137775760405162461bcd60e51b815260040161128f9190615b68565b50505060009283525060156020526040909120805460ff19166001179055601680546001600160a01b03909216600160301b026601000000000000600160d01b0319909216919091179055565b60005b81811015611df4576137f285858585858181106137e6576137e6615ace565b905060200201356125d1565b806137fc81615afa565b9150506137c7565b6008546001600160a01b0316331461382e5760405162461bcd60e51b815260040161128f90615c53565b6138388686612194565b6138428484612ee0565b611fd68282611fde565b6001600160a01b0382166000908152601260205260408120546016548290600160d01b900460ff16613883576000925050506110a6565b60165462010000810461ffff166000908152601f60209081526040808320600160d01b90940460ff16835292815282822054602290915291902054106138ce576000925050506110a6565b601654600160201b900461ffff16600090815260208080526040808320600188900b808552908352818420546001600160a01b038a1685526014845282852091855292529091205410613926576000925050506110a6565b60165461ffff81166000908152601a6020908152604080832060ff600160d01b909504851684528252808320600189900b845290915290206003015416156139a4575060165461ffff81166000908152601a60209081526040808320600160d01b90940460ff168352928152828220600187810b8452915291902001545b601654600160f01b900461ffff1682106139c3576000925050506110a6565b6001600160a01b0385166000908152601360209081526040808320601654600160d01b900460ff1684528252808320600188900b84529091529020548111613a10576000925050506110a6565b60165462010000810461ffff166000908152601f60209081526040808320600160d01b90940460ff1683529281528282205460229091529190205410613a5b576000925050506110a6565b601654600160201b900461ffff16600090815260208080526040808320600188900b808552908352818420546001600160a01b038a1685526014845282852091855292529091205410613ab3576000925050506110a6565b601654600090613acf908490600160f01b900461ffff16615ce3565b6001600160a01b0387166000908152601360209081526040808320601654600160d01b900460ff168452825280832060018a900b845290915281205491925090613b199084615ce3565b601654600160d01b810460ff166000818152602260209081526040808320546201000090950461ffff168352601f82528083209383529290529081205492935091613b649190615ce3565b6001600160a01b038916600090815260146020908152604080832060018c900b80855290835281842054601654600160201b900461ffff16855283805282852091855292528220549293509091613bbb9190615ce3565b9050613be9613bc861305c565b613be4613bde613bd888886147c1565b866147c1565b846147c1565b6147c1565b9998505050505050505050565b6008546001600160a01b03163314613c205760405162461bcd60e51b815260040161128f90615c53565b6016805460ff60d81b1916600160d81b179055565b60178054613c4290615b15565b80601f0160208091040260200160405190810160405280929190818152602001828054613c6e90615b15565b8015613cbb5780601f10613c9057610100808354040283529160200191613cbb565b820191906000526020600020905b815481529060010190602001808311613c9e57829003601f168201915b505050505081565b6008546001600160a01b03163314613ced5760405162461bcd60e51b815260040161128f90615c53565b6001600160a01b038116613d525760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161128f565b613d5b8161456a565b50565b6008546001600160a01b03163314613d885760405162461bcd60e51b815260040161128f90615c53565b60165461ffff166000908152601a6020908152604080832060ff8087168552908352818420600186900b85529092529091206003015416613dfe5760405162461bcd60e51b815260206004820152601060248201526f149bdb19481b9bdd08195e1a5cdd195960821b604482015260640161128f565b6016805461ffff9081166000908152601a6020818152604080842060ff8916808652908352818520600189810b808852918552838720805460ff1990811690915589548916885286865284882084895286528488208389528652848820805462ffff00191690558954891688528686528488208489528652848820838952865284882090910187905588548816875285855283872083885285528387208288528552838720600201879055885488168752948452828620828752845282862090865283528185206003018054909416909355945484168352601b815284832091835252918220805490911691613ef383615d91565b91906101000a81548161ffff021916908361ffff1602179055505060005b60165461ffff166000908152601c6020908152604080832060ff80881685529252909120549082161015613fe95760165461ffff166000908152601c6020908152604080832060ff808816855292529091208054600185900b928416908110613f7c57613f7c615ace565b60009182526020909120601082040154600f9091166002026101000a900460010b1415613fd75760165461ffff166000908152601c6020908152604080832060ff80881685529252909120613fd29183166147d7565b613fe9565b80613fe181615caa565b915050613f11565b5060165461ffff9081166000908152601b6020908152604080832060ff871684529091529020541661210f5760005b601e5460ff8216101561123b578260ff16601e8260ff168154811061403f5761403f615ace565b60009182526020918290209181049091015460ff601f9092166101000a90041614156140735761123b601e8260ff1661490b565b8061407d81615caa565b915050614018565b60006001600160e01b031982166380ac58cd60e01b14806140b657506001600160e01b03198216635b5e139f60e01b145b806110a657506301ffc9a760e01b6001600160e01b03198316146110a6565b6000816140e160115490565b111580156140f0575060005482105b80156110a6575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600080858051906020012090506000816040516020016141bd91907f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c810191909152603c0190565b60408051601f1981840301815282825280516020918201206000845290830180835281905260ff8916918301919091526060820187905260808201869052915060019060a0016020604051602081039080840390855afa158015614225573d6000803e3d6000fd5b50505060206040510351925050505b949350505050565b61210f828260405180602001604052806000815250614a2e565b600061426182614441565b9050836001600160a01b031681600001516001600160a01b0316146142985760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b03861614806142b657506142b68533610e5a565b806142d15750336142c684611175565b6001600160a01b0316145b9050806142f157604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03841661431857604051633a954ecd60e21b815260040160405180910390fd5b61432460008487614115565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b429092169190910217835587018084529220805491939091166143f85760005482146143f857805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611df4565b6040805160608101825260008082526020820181905291810191909152818061446960115490565b116145515760005481101561455157600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff1615159181018290529061454f5780516001600160a01b0316156144e6579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff161515928101929092521561454a579392505050565b6144e6565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006145c760115490565b60005403905090565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290614605903390899088908890600401615daf565b602060405180830381600087803b15801561461f57600080fd5b505af192505050801561464f575060408051601f3d908101601f1916820190925261464c91810190615dec565b60015b6146aa573d80801561467d576040519150601f19603f3d011682016040523d82523d6000602084013e614682565b606091505b5080516146a2576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050614234565b6060816146e85750506040805180820190915260018152600360fc1b602082015290565b8160005b811561471257806146fc81615afa565b915061470b9050600a83615c22565b91506146ec565b6000816001600160401b0381111561472c5761472c615054565b6040519080825280601f01601f191660200182016040528015614756576020820181803683370190505b5090505b84156142345761476b600183615ce3565b9150614778600a86615e09565b614783906030615b50565b60f81b81838151811061479857614798615ace565b60200101906001600160f81b031916908160001a9053506147ba600a86615c22565b945061475a565b60008183106147d05781612ed9565b5090919050565b805b82546147e790600190615ce3565b81101561488457826147fa826001615b50565b8154811061480a5761480a615ace565b90600052602060002090601091828204019190066002029054906101000a900460010b83828154811061483f5761483f615ace565b90600052602060002090601091828204019190066002026101000a81548161ffff021916908360010b61ffff160217905550808061487c90615afa565b9150506147d9565b508154829061489590600190615ce3565b815481106148a5576148a5615ace565b90600052602060002090601091828204019190066002026101000a81549061ffff0219169055818054806148db576148db615e1d565b600082815260209020601060001990920191820401805461ffff6002600f8516026101000a021916905590555050565b805b825461491b90600190615ce3565b8110156149ad578261492e826001615b50565b8154811061493e5761493e615ace565b90600052602060002090602091828204019190069054906101000a900460ff1683828154811061497057614970615ace565b90600052602060002090602091828204019190066101000a81548160ff021916908360ff16021790555080806149a590615afa565b91505061490d565b50815482906149be90600190615ce3565b815481106149ce576149ce615ace565b90600052602060002090602091828204019190066101000a81549060ff021916905581805480614a0057614a00615e1d565b60019003818190600052602060002090602091828204019190066101000a81549060ff021916905590555050565b6000546001600160a01b038416614a5757604051622e076360e81b815260040160405180910390fd5b82614a755760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038416600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168b018116918217600160401b67ffffffffffffffff1990941690921783900481168b01811690920217909155858452600490925290912080546001600160e01b0319168317600160a01b42909316929092029190911790558190818501903b15614b98575b60405182906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4614b6160008784806001019550876145d0565b614b7e576040516368d2bf6b60e11b815260040160405180910390fd5b808210614b16578260005414614b9357600080fd5b614bdd565b5b6040516001830192906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210614b99575b50600090815561314d9085838684565b50805460008255601f016020900490600052602060002090810190613d5b9190614cbb565b50805460008255600f016010900490600052602060002090810190613d5b9190614cbb565b828054614c4390615b15565b90600052602060002090601f016020900481019282614c655760008555614cab565b82601f10614c7e57805160ff1916838001178555614cab565b82800160010185558215614cab579182015b82811115614cab578251825591602001919060010190614c90565b50614cb7929150614cbb565b5090565b5b80821115614cb75760008155600101614cbc565b602080825282518282018190526000919060409081850190868401855b82811015614d15578151805160ff168552860151868501529284019290850190600101614ced565b5091979650505050505050565b6001600160e01b031981168114613d5b57600080fd5b600060208284031215614d4a57600080fd5b8135612ed981614d22565b600060208284031215614d6757600080fd5b5035919050565b60005b83811015614d89578181015183820152602001614d71565b8381111561314d5750506000910152565b60008151808452614db2816020860160208601614d6e565b601f01601f19169290920160200192915050565b602081526000612ed96020830184614d9a565b80356001600160a01b0381168114614df057600080fd5b919050565b60008060408385031215614e0857600080fd5b614e1183614dd9565b946020939093013593505050565b8035600181900b8114614df057600080fd5b803561ffff81168114614df057600080fd5b803560ff81168114614df057600080fd5b600080600080600080600080610100898b031215614e7157600080fd5b88359750614e8160208a01614e1f565b9650614e8f60408a01614e31565b9550614e9d60608a01614dd9565b945060808901359350614eb260a08a01614e43565b925060c0890135915060e089013590509295985092959890939650565b600060208284031215614ee157600080fd5b612ed982614e43565b8015158114613d5b57600080fd5b600080600080600060a08688031215614f1057600080fd5b614f1986614e43565b9450614f2760208701614e1f565b935060408601359250606086013591506080860135614f4581614eea565b809150509295509295909350565b600080600060608486031215614f6857600080fd5b614f7184614e31565b9250614f7f60208501614e43565b9150604084013590509250925092565b600080600060608486031215614fa457600080fd5b614fad84614dd9565b9250614f7f60208501614dd9565b600080600080600060a08688031215614fd357600080fd5b85359450614fe360208701614e43565b9350614ff160408701614e43565b94979396509394606081013594506080013592915050565b60008083601f84011261501b57600080fd5b5081356001600160401b0381111561503257600080fd5b6020830191508360208260051b850101111561504d57600080fd5b9250929050565b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b038111828210171561508c5761508c615054565b60405290565b604051608081016001600160401b038111828210171561508c5761508c615054565b604051601f8201601f191681016001600160401b03811182821017156150dc576150dc615054565b604052919050565b60006001600160401b038311156150fd576150fd615054565b615110601f8401601f19166020016150b4565b905082815283838301111561512457600080fd5b828260208301376000602084830101529392505050565b600082601f83011261514c57600080fd5b612ed9838335602085016150e4565b60008060008060006080868803121561517357600080fd5b61517c86614dd9565b945061518a60208701614dd9565b935060408601356001600160401b03808211156151a657600080fd5b6151b289838a01615009565b909550935060608801359150808211156151cb57600080fd5b506151d88882890161513b565b9150509295509295909350565b60006001600160401b038211156151fe576151fe615054565b5060051b60200190565b600082601f83011261521957600080fd5b8135602061522e615229836151e5565b6150b4565b82815260069290921b8401810191818101908684111561524d57600080fd5b8286015b84811015615293576040818903121561526a5760008081fd5b61527261506a565b61527b82614e1f565b81528185013585820152835291830191604001615251565b509695505050505050565b600080604083850312156152b157600080fd5b82356001600160401b038111156152c757600080fd5b6152d385828601615208565b92505060208301356152e481614eea565b809150509250929050565b600082601f83011261530057600080fd5b81356020615310615229836151e5565b82815260079290921b8401810191818101908684111561532f57600080fd5b8286015b84811015615293576080818903121561534c5760008081fd5b615354615092565b61535d82614e43565b815261536a858301614e1f565b818601526040828101359082015260608083013590820152835291830191608001615333565b600080604083850312156153a357600080fd5b82356001600160401b038111156153b957600080fd5b6152d3858286016152ef565b6000602082840312156153d757600080fd5b612ed982614e1f565b602080825282518282018190526000919060409081850190868401855b82811015614d15578151805160ff16855286810151600190810b8887015286820151878701526060918201519186019190915260809094019391860191016153fd565b60006020828403121561545257600080fd5b81356001600160401b0381111561546857600080fd5b8201601f8101841361547957600080fd5b614234848235602084016150e4565b6000602080838503121561549b57600080fd5b82356001600160401b038111156154b157600080fd5b8301601f810185136154c257600080fd5b80356154d0615229826151e5565b81815260059190911b820183019083810190878311156154ef57600080fd5b928401925b8284101561550d578335825292840192908401906154f4565b979650505050505050565b80516001600160a01b031682526020808201516001600160401b0316908301526040908101511515910152565b6020808252825182820181905260009190848201906040850190845b81811015612b9257615574838551615518565b9284019260609290920191600101615561565b60006020828403121561559957600080fd5b8135612ed981614eea565b6000602082840312156155b657600080fd5b612ed982614dd9565b602080825282518282018190526000919060409081850190868401855b82811015614d155781518051600190810b865290870151878601529385019391860191016155dc565b60006020828403121561561757600080fd5b612ed982614e31565b6020808252825182820181905260009190848201906040850190845b81811015612b925783518352928401929184019160010161563c565b6000806000806060858703121561566e57600080fd5b61567785614dd9565b935061568560208601614dd9565b925060408501356001600160401b038111156156a057600080fd5b6156ac87828801615009565b95989497509550505050565b6000806000606084860312156156cd57600080fd5b6156d684614dd9565b95602085013595506040909401359392505050565b60008060006060848603121561570057600080fd5b61570984614e31565b925061571760208501614e43565b915061572560408501614e1f565b90509250925092565b600082601f83011261573f57600080fd5b8135602061574f615229836151e5565b82815260069290921b8401810191818101908684111561576e57600080fd5b8286015b84811015615293576040818903121561578b5760008081fd5b61579361506a565b61579c82614e43565b81528185013585820152835291830191604001615772565b600080604083850312156157c757600080fd5b82356001600160401b038111156157dd57600080fd5b6152d38582860161572e565b600080604083850312156157fc57600080fd5b61580583614dd9565b915060208301356152e481614eea565b6000806040838503121561582857600080fd5b61583183614dd9565b915061583f60208401614e1f565b90509250929050565b6000806000806080858703121561585e57600080fd5b61586785614dd9565b935061587560208601614dd9565b92506040850135915060608501356001600160401b0381111561589757600080fd5b6158a38782880161513b565b91505092959194509250565b6000806000606084860312156158c457600080fd5b6158cd84614e43565b92506020840135915060408401356158e481614eea565b809150509250925092565b6000806040838503121561590257600080fd5b61590b83614e31565b915061583f60208401614e43565b6020808252825182820181905260009190848201906040850190845b81811015612b92578351600190810b8452938501939285019201615935565b60008060006060848603121561596957600080fd5b6158cd84614e1f565b606081016110a68284615518565b600080600080600060a0868803121561599857600080fd5b85359450614fe360208701614dd9565b60008060008060008060c087890312156159c157600080fd5b86356001600160401b03808211156159d857600080fd5b6159e48a838b016152ef565b9750602089013591506159f682614eea565b90955060408801359080821115615a0c57600080fd5b615a188a838b0161572e565b955060608901359150615a2a82614eea565b90935060808801359080821115615a4057600080fd5b50615a4d89828a01615208565b92505060a0870135615a5e81614eea565b809150509295509295509295565b60008060408385031215615a7f57600080fd5b615a8883614dd9565b915061583f60208401614dd9565b60008060408385031215615aa957600080fd5b61583183614e31565b60008060408385031215615ac557600080fd5b61583183614e43565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415615b0e57615b0e615ae4565b5060010190565b600181811c90821680615b2957607f821691505b60208210811415615b4a57634e487b7160e01b600052602260045260246000fd5b50919050565b60008219821115615b6357615b63615ae4565b500190565b6000602080835260008454615b7c81615b15565b80848701526040600180841660008114615b9d5760018114615bb157615bdf565b60ff19851689840152606089019550615bdf565b896000528660002060005b85811015615bd75781548b8201860152908301908801615bbc565b8a0184019650505b509398975050505050505050565b6000816000190483118215151615615c0757615c07615ae4565b500290565b634e487b7160e01b600052601260045260246000fd5b600082615c3157615c31615c0c565b500490565b600060208284031215615c4857600080fd5b8151612ed981614eea565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600061ffff80831681811415615ca057615ca0615ae4565b6001019392505050565b600060ff821660ff811415615cc157615cc1615ae4565b60010192915050565b600060208284031215615cdc57600080fd5b5051919050565b600082821015615cf557615cf5615ae4565b500390565b6000808554615d0881615b15565b60018281168015615d205760018114615d3157615d60565b60ff19841687528287019450615d60565b8960005260208060002060005b85811015615d575781548a820152908401908201615d3e565b50505082870194505b505050508451615d74818360208901614d6e565b8451910190615d87818360208801614d6e565b0195945050505050565b600061ffff821680615da557615da5615ae4565b6000190192915050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090615de290830184614d9a565b9695505050505050565b600060208284031215615dfe57600080fd5b8151612ed981614d22565b600082615e1857615e18615c0c565b500690565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220d82d99c31f26d4e94890805cfa853cf1373bc444e8d6e3d81e366d696854c5f964736f6c63430008090033
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.