ERC-721
Overview
Max Total Supply
696 LOZEN
Holders
297
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2 LOZENLoading...
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 constant MAX_SUPPLY = 696; uint256 public constant START_TOKEN_ID = 1; string private constant TOKEN_NAME = "Optimistic Lozen"; string private constant TOKEN_SYMBOL = "LOZEN"; ////////////// // 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 = 0xf4aB1D91ed39eE1f849ABA13859175A1D3401c60; uint8 public currentRound = 0; bool public metadataFrozen = false; uint16 public maxMintPerTx = 100; uint16 public maxMintPerAddress = 100; 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); }
{ "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "optimizer": { "enabled": true, "runs": 160 } }
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
60c0604052600b60808190526a496e76616c69642073696760a81b60a09081526200002e91600a919062000255565b5060408051808201909152600980825268447570206e6f6e636560b81b60209092019182526200006191600b9162000255565b5060408051808201909152600f8082526e2ab736b0ba31b432b21032ba3432b960891b60209092019182526200009a91600c9162000255565b5060408051808201909152600b8082526a486974206d6178696d756d60a81b6020909201918252620000cf91600d9162000255565b5060408051808201909152600e8082526d125b9d985b1a5908185b5bdd5b9d60921b602090920191825262000105918162000255565b5060408051808201909152600780825266149d5b881bdd5d60ca1b60209092019182526200013691600f9162000255565b507e6400640000f4ab1d91ed39ee1f849aba13859175a1d3401c600000000000006014556016805460ff1916600117905560006021553480156200017957600080fd5b50604080518082018252601081526f27b83a34b6b4b9ba34b1902637bd32b760811b6020808301918252835180850190945260058452642627ad22a760d91b908401528151919291620001cf9160029162000255565b508051620001e590600390602084019062000255565b5050600160005550620001f83362000203565b600160095562000338565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200026390620002fb565b90600052602060002090601f016020900481019282620002875760008555620002d2565b82601f10620002a257805160ff1916838001178555620002d2565b82800160010185558215620002d2579182015b82811115620002d2578251825591602001919060010190620002b5565b50620002e0929150620002e4565b5090565b5b80821115620002e05760008155600101620002e5565b600181811c908216806200031057607f821691505b602082108114156200033257634e487b7160e01b600052602260045260246000fd5b50919050565b615e1680620003486000396000f3fe6080604052600436106104345760003560e01c80638462151c11610229578063bd8fc4a21161012e578063d0950e74116100b6578063e985e9c51161007a578063e985e9c514610e45578063f2fde38b14610e8e578063f5a4156c14610eae578063fb3cc6c214610ee6578063fe2e66f414610f0757600080fd5b8063d0950e7414610dbf578063d111515d14610ddf578063de7fcb1d14610df4578063e08c5e3214610e16578063e4d3d44814610e3057600080fd5b8063c87b56dd116100fd578063c87b56dd14610d07578063c9d4857914610d27578063cf502d0d14610d47578063d047d03814610d67578063d0667dd214610d9f57600080fd5b8063bd8fc4a214610c51578063be56844814610c8d578063bf65eb3414610cba578063c23dc68f14610cda57600080fd5b8063a13429a9116101b1578063b1ad048c11610180578063b1ad048c14610bb1578063b1e8dbaa14610bd1578063b6a7412114610bf1578063b88d4fde14610c11578063ba1402d314610c3157600080fd5b8063a13429a914610b43578063a22cb46514610b63578063a2309ff814610b83578063ac7dc68d14610b9c57600080fd5b80638a19c8bc116101f85780638a19c8bc14610a3b5780638da5cb5b14610a5c57806395d89b4114610a7a57806399a2557a14610a8f5780639e8cc8d314610aaf57600080fd5b80638462151c146109b957806387f65c91146109e657806389476069146109fb57806389b5a8c214610a1b57600080fd5b80633ccfd60b1161033a578063572849c4116102c257806370a082311161028657806370a0823114610922578063715018a614610942578063748a500a14610957578063796b89ec1461097957806379a2c3f81461099957600080fd5b8063572849c4146108595780635b7633d01461088e5780635bbb2177146108b55780636352211e146108e25780636e453d621461090257600080fd5b80633e9dbed0116103095780633e9dbed0146107af57806342842e0e146107d157806346830628146107f1578063500ea93b1461080757806355f804b31461083957600080fd5b80633ccfd60b146106fe5780633d6a5745146107135780633dd3802d146107335780633e8f18f01461075357600080fd5b80631a6d843e116103bd57806327854c151161038c57806327854c151461065c578063306279da1461068857806332ab9bbe146106a857806332cb6b0c146106c857806333ee7927146106de57600080fd5b80631a6d843e146105dc5780631c1cb323146105fc57806321120f7a1461061c57806323b872dd1461063c57600080fd5b8063081812fc11610404578063081812fc14610528578063095ea7b3146105605780630d23d6691461058257806318160ddd14610595578063183ab264146105bc57600080fd5b80620319df1461047857806301ffc9a7146104a357806306a7c8de146104d357806306fdde031461050657600080fd5b3661047357604080513381523460208201527f88a5966d370b9919b20f3e2c13ff65706f196a4e32cc2c12bf57088f88525874910160405180910390a1005b600080fd5b34801561048457600080fd5b5061048d610f27565b60405161049a9190614c7d565b60405180910390f35b3480156104af57600080fd5b506104c36104be366004614ce5565b611094565b604051901515815260200161049a565b3480156104df57600080fd5b506104f36104ee366004614d02565b6110b4565b60405160019190910b815260200161049a565b34801561051257600080fd5b5061051b6110eb565b60405161049a9190614d73565b34801561053457600080fd5b50610548610543366004614d02565b61117d565b6040516001600160a01b03909116815260200161049a565b34801561056c57600080fd5b5061058061057b366004614da2565b6111c1565b005b610580610590366004614e01565b611248565b3480156105a157600080fd5b5060015460005403600019015b60405190815260200161049a565b3480156105c857600080fd5b506105806105d7366004614e7c565b6118ed565b3480156105e857600080fd5b506105806105f7366004614ea5565b61196b565b34801561060857600080fd5b50602254610548906001600160a01b031681565b34801561062857600080fd5b506104f3610637366004614f00565b611de7565b34801561064857600080fd5b50610580610657366004614f3c565b611e3a565b34801561066857600080fd5b506105ae610677366004614e7c565b602080526000908152604090205481565b34801561069457600080fd5b506105806106a3366004614f68565b611e45565b3480156106b457600080fd5b506105806106c3366004615108565b611f81565b3480156106d457600080fd5b506105ae6102b881565b3480156106ea57600080fd5b506105806106f936600461524b565b611fca565b34801561070a57600080fd5b506105806120a2565b34801561071f57600080fd5b5061058061072e366004614da2565b6120ff565b34801561073f57600080fd5b5061058061074e36600461533d565b612180565b34801561075f57600080fd5b506105ae61076e366004615372565b60145461ffff81166000908152601860209081526040808320600160d01b90940460ff16835292815282822060019490940b82529290925290206002015490565b3480156107bb57600080fd5b506107c461228d565b60405161049a919061538d565b3480156107dd57600080fd5b506105806107ec366004614f3c565b6125bd565b3480156107fd57600080fd5b506105ae60215481565b34801561081357600080fd5b50610827610822366004614d02565b6125d8565b60405160ff909116815260200161049a565b34801561084557600080fd5b506105806108543660046153ed565b61260c565b34801561086557600080fd5b5060145461087b90600160f01b900461ffff1681565b60405161ffff909116815260200161049a565b34801561089a57600080fd5b5060145461054890600160301b90046001600160a01b031681565b3480156108c157600080fd5b506108d56108d0366004615435565b612695565b60405161049a91906154f2565b3480156108ee57600080fd5b506105486108fd366004614d02565b61275b565b34801561090e57600080fd5b5061058061091d366004615534565b61276d565b34801561092e57600080fd5b506105ae61093d366004615551565b6127aa565b34801561094e57600080fd5b506105806127f8565b34801561096357600080fd5b5061096c61282e565b60405161049a919061556c565b34801561098557600080fd5b50610580610994366004615551565b61299b565b3480156109a557600080fd5b506105806109b43660046155b2565b6129e7565b3480156109c557600080fd5b506109d96109d4366004615551565b612a34565b60405161049a91906155cd565b3480156109f257600080fd5b506105ae600181565b348015610a0757600080fd5b50610580610a16366004615551565b612b81565b348015610a2757600080fd5b50610580610a36366004615605565b612cac565b348015610a4757600080fd5b5060145461082790600160d01b900460ff1681565b348015610a6857600080fd5b506008546001600160a01b0316610548565b348015610a8657600080fd5b5061051b612cec565b348015610a9b57600080fd5b506109d9610aaa366004615665565b612cfb565b348015610abb57600080fd5b50610b12610aca366004615698565b601860209081526000938452604080852082529284528284209052825290208054600180830154600284015460039094015460ff8085169561010090950490930b9391921685565b6040805160ff909616865260019490940b60208601529284019190915260608301521515608082015260a00161049a565b348015610b4f57600080fd5b50610580610b5e366004615761565b612ec1565b348015610b6f57600080fd5b50610580610b7e366004615796565b612f98565b348015610b8f57600080fd5b50600054600019016105ae565b348015610ba857600080fd5b506105ae613033565b348015610bbd57600080fd5b506105ae610bcc3660046157c2565b613047565b348015610bdd57600080fd5b50610827610bec366004614d02565b613081565b348015610bfd57600080fd5b50610580610c0c3660046155b2565b613091565b348015610c1d57600080fd5b50610580610c2c3660046157f5565b6130dd565b348015610c3d57600080fd5b50610580610c4c36600461585c565b613127565b348015610c5d57600080fd5b5061087b610c6c36600461589c565b601960209081526000928352604080842090915290825290205461ffff1681565b348015610c9957600080fd5b50610cad610ca8366004614e7c565b61328b565b60405161049a91906158c6565b348015610cc657600080fd5b50610580610cd5366004615901565b613392565b348015610ce657600080fd5b50610cfa610cf5366004614d02565b613503565b60405161049a919061591f565b348015610d1357600080fd5b5061051b610d22366004614d02565b6135bd565b348015610d3357600080fd5b50610580610d4236600461592d565b61369e565b348015610d5357600080fd5b50610580610d62366004615605565b613794565b348015610d7357600080fd5b506105ae610d8236600461589c565b601d60209081526000928352604080842090915290825290205481565b348015610dab57600080fd5b50610580610dba366004615955565b6137d4565b348015610dcb57600080fd5b506105ae610dda3660046157c2565b61381c565b348015610deb57600080fd5b50610580613bc5565b348015610e0057600080fd5b5060145461087b90600160e01b900461ffff1681565b348015610e2257600080fd5b506016546104c39060ff1681565b348015610e3c57600080fd5b5061051b613c04565b348015610e5157600080fd5b506104c3610e60366004615a19565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b348015610e9a57600080fd5b50610580610ea9366004615551565b613c92565b348015610eba57600080fd5b506105ae610ec9366004615a43565b601e60209081526000928352604080842090915290825290205481565b348015610ef257600080fd5b506014546104c390600160d81b900460ff1681565b348015610f1357600080fd5b50610580610f22366004615a5f565b613d2d565b601c546060906000816001600160401b03811115610f4757610f47615001565b604051908082528060200260200182016040528015610f8c57816020015b6040805180820190915260008082526020820152815260200190600190039081610f655790505b50905060005b8281101561108d57601c8181548110610fad57610fad615a7b565b90600052602060002090602091828204019190069054906101000a900460ff16828281518110610fdf57610fdf615a7b565b60209081029190910181015160ff90921690915260145461ffff62010000909104166000908152601d90915260408120601c80549192918490811061102657611026615a7b565b90600052602060002090602091828204019190069054906101000a900460ff1660ff1660ff1681526020019081526020016000205482828151811061106d5761106d615a7b565b60209081029190910181015101528061108581615aa7565b915050610f92565b5092915050565b600061109f82614054565b806110ae57506110ae82614054565b92915050565b601f81815481106110c457600080fd5b9060005260206000209060109182820401919006600202915054906101000a900460010b81565b6060600280546110fa90615ac2565b80601f016020809104026020016040519081016040528092919081815260200182805461112690615ac2565b80156111735780601f1061114857610100808354040283529160200191611173565b820191906000526020600020905b81548152906001019060200180831161115657829003601f168201915b5050505050905090565b6000611188826140a4565b6111a5576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006111cc8261275b565b9050806001600160a01b0316836001600160a01b031614156112015760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b038216146112385761121b8133610e60565b611238576040516367d9dca160e11b815260040160405180910390fd5b6112438383836140dd565b505050565b600260095414156112a05760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b6002600955601454600160d01b900460ff166112ec5760405162461bcd60e51b815260206004820152600b60248201526a139bdd081cdd185c9d195960aa1b6044820152606401611297565b836000600189900b1261130e5761130b61ffff8916601087901b615afd565b90505b600081815260136020526040902054600b9060ff16156113415760405162461bcd60e51b81526004016112979190615b15565b50601454604080516020810184905260f08a901b6001600160f01b03191691810191909152606088901b6001600160601b0319166042820152600160301b9091046001600160a01b0316906113aa90605601604051602081830303815290604052868686614139565b6001600160a01b031614600a906113d45760405162461bcd60e51b81526004016112979190615b15565b5060145461ffff8116600090815260186020908152604080832060ff600160d01b9095048516845282528083208380529091528120600301549091169060018a900b811361141f5750885b60145461ffff8116600090815260186020908152604080832060ff600160d01b909504851684528252808320600186900b8452909152902060030154166114a0578161149c5760405162461bcd60e51b815260206004820152600c60248201526b4e6f7420656c696769626c6560a01b6044820152606401611297565b5060005b600e8b6114c05760405162461bcd60e51b81526004016112979190615b15565b508a6114ca613033565b1015600f906114ec5760405162461bcd60e51b81526004016112979190615b15565b5060008a60010b1261152b578a611503338c613047565b1015600d906115255760405162461bcd60e51b81526004016112979190615b15565b5061155b565b8a611537336000613047565b1015600d906115595760405162461bcd60e51b81526004016112979190615b15565b505b60145461ffff81166000908152601860209081526040808320600160d01b90940460ff168352928152828220600185900b83529052908120600201546115a1908d615b9a565b6000858152601360205260409020805460ff191660011790556022549091506001600160a01b0316156115f557600c34156115ef5760405162461bcd60e51b81526004016112979190615b15565b50611619565b600c3482146116175760405162461bcd60e51b81526004016112979190615b15565b505b611623338d614204565b601454600160d01b900460ff166000908152602080526040902054611649908d90615afd565b601454600160d01b900460ff166000908152602080805260408083209390935533825260109052205461167d908d90615afd565b3360009081526010602090815260408083209390935560118152828220601454600160d01b900460ff1683528152828220600186900b8352905220546116c4908d90615afd565b336000908152601160209081526040808320601454600160d01b900460ff1684528252808320600187900b80855292528220929092551361174957336000908152601260209081526040808320600186900b8452909152902054611729908d90615afd565b336000908152601260209081526040808320600187900b84529091529020555b600061271061175c61ffff8d1684615b9a565b6117669190615bcf565b6022549091506001600160a01b031615611890576022546040516323b872dd60e01b8152336004820152306024820152604481018490526001600160a01b039091169081906323b872dd90606401602060405180830381600087803b1580156117ce57600080fd5b505af11580156117e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118069190615be3565b5060405163a9059cbb60e01b81526001600160a01b038c811660048301526024820184905282169063a9059cbb90604401602060405180830381600087803b15801561185157600080fd5b505af1158015611865573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118899190615be3565b50506118c8565b6040516001600160a01b038b169082156108fc029083906000818181858888f193505050501580156118c6573d6000803e3d6000fd5b505b806021546118d69190615afd565b602155505060016009555050505050505050505050565b6008546001600160a01b031633146119175760405162461bcd60e51b815260040161129790615c00565b6014805460ff60d01b1916600160d01b60ff8416908102919091179091556040519081527f5d14047d25a400b6364f7b505872a4f0e8437d0dfd6cbdd5eee59f37baee7f459060200160405180910390a150565b6008546001600160a01b031633146119955760405162461bcd60e51b815260040161129790615c00565b80156119d8576014805461ffff169060006119af83615c35565b91906101000a81548161ffff021916908361ffff16021790555050601b60006119d89190614b9a565b600060186000601460009054906101000a900461ffff1661ffff1661ffff16815260200190815260200160002060008760ff1660ff16815260200190815260200160002060008660010b60010b815260200190815260200160002060030160009054906101000a900460ff1690508560186000601460009054906101000a900461ffff1661ffff1661ffff16815260200190815260200160002060008860ff1660ff16815260200190815260200160002060008760010b60010b815260200190815260200160002060000160006101000a81548160ff021916908360ff1602179055508460186000601460009054906101000a900461ffff1661ffff1661ffff16815260200190815260200160002060008860ff1660ff16815260200190815260200160002060008760010b60010b815260200190815260200160002060000160016101000a81548161ffff021916908360010b61ffff1602179055508360186000601460009054906101000a900461ffff1661ffff1661ffff16815260200190815260200160002060008860ff1660ff16815260200190815260200160002060008760010b60010b8152602001908152602001600020600101819055508260186000601460009054906101000a900461ffff1661ffff1661ffff16815260200190815260200160002060008860ff1660ff16815260200190815260200160002060008760010b60010b815260200190815260200160002060020181905550600160186000601460009054906101000a900461ffff1661ffff1661ffff16815260200190815260200160002060008860ff1660ff16815260200190815260200160002060008760010b60010b815260200190815260200160002060030160006101000a81548160ff0219169083151502179055508015611c785750611de0565b60145461ffff908116600090815260196020908152604080832060ff8b168452909152812080549092169190611cad83615c35565b825461010092830a61ffff81810219909216928216029190911790925560145482166000908152601a6020908152604080832060ff8d16845282528220805460018101825590835290822060108204018054600f90921660020290930a80850219909116938a16029290921790559050805b601b5460ff82161015611d83578760ff16601b8260ff1681548110611d4657611d46615a7b565b60009182526020918290209181049091015460ff601f9092166101000a9004161415611d7157600191505b80611d7b81615c57565b915050611d1f565b5080611ddd57601b8054600181018255600091909152602081047f3ad8aa4f87544323a9d1e5dd902f40c356527a7955687113db5f9a85ad579dc101805460ff808b16601f9094166101000a938402930219169190911790555b50505b5050505050565b601a6020528260005260406000206020528160005260406000208181548110611e0f57600080fd5b906000526020600020906010918282040191900660020292509250509054906101000a900460010b81565b61124383838361421e565b600085815260136020526040902054600b9060ff1615611e785760405162461bcd60e51b81526004016112979190615b15565b50601460069054906101000a90046001600160a01b03166001600160a01b0316611edb8686604051602001611ec492919091825260f81b6001600160f81b031916602082015260210190565b604051602081830303815290604052858585614139565b6001600160a01b031614600a90611f055760405162461bcd60e51b81526004016112979190615b15565b5060008581526013602052604090819020805460ff191660011790556014805460ff8716600160d01b0260ff60d01b19909116179055517f5d14047d25a400b6364f7b505872a4f0e8437d0dfd6cbdd5eee59f37baee7f4590611f7290869060ff91909116815260200190565b60405180910390a15050505050565b60005b82811015611fc257611fb08686868685818110611fa357611fa3615a7b565b90506020020135856130dd565b80611fba81615aa7565b915050611f84565b505050505050565b6008546001600160a01b03163314611ff45760405162461bcd60e51b815260040161129790615c00565b801561203e5760148054600160201b900461ffff1690600461201583615c35565b91906101000a81548161ffff021916908361ffff16021790555050601f600061203e9190614bbf565b60005b82518110156112435761209083828151811061205f5761205f615a7b565b60200260200101516000015184838151811061207d5761207d615a7b565b6020026020010151602001516000613392565b8061209a81615aa7565b915050612041565b6008546001600160a01b031633146120cc5760405162461bcd60e51b815260040161129790615c00565b6040514790339082156108fc029083906000818181858888f193505050501580156120fb573d6000803e3d6000fd5b5050565b6008546001600160a01b031633146121295760405162461bcd60e51b815260040161129790615c00565b600e816121495760405162461bcd60e51b81526004016112979190615b15565b5080612153613033565b1015600f906121755760405162461bcd60e51b81526004016112979190615b15565b506120fb8282614204565b6008546001600160a01b031633146121aa5760405162461bcd60e51b815260040161129790615c00565b80156121ed576014805461ffff169060006121c483615c35565b91906101000a81548161ffff021916908361ffff16021790555050601b60006121ed9190614b9a565b60005b82518110156112435761227b83828151811061220e5761220e615a7b565b60200260200101516000015184838151811061222c5761222c615a7b565b60200260200101516020015185848151811061224a5761224a615a7b565b60200260200101516040015186858151811061226857612268615a7b565b602002602001015160600151600061196b565b8061228581615aa7565b9150506121f0565b60606000805b601b548110156123175760145461ffff166000908152601960205260408120601b8054919291849081106122c9576122c9615a7b565b600091825260208083208183040154601f9092166101000a90910460ff1683528201929092526040019020546123039061ffff1683615afd565b91508061230f81615aa7565b915050612293565b506000816001600160401b0381111561233257612332615001565b60405190808252806020026020018201604052801561238457816020015b6040805160808101825260008082526020808301829052928201819052606082015282526000199092019101816123505790505b5090506000805b601b548110156125b4576000601b82815481106123aa576123aa615a7b565b60009182526020808320908204015460ff601f9092166101000a90041691505b60145461ffff166000908152601960205260408120601b8054919291869081106123f6576123f6615a7b565b600091825260208083208183040154601f9092166101000a90910460ff16835282019290925260400190205461ffff1681101561259f5760145461ffff166000908152601a6020908152604080832060ff86168452909152812080548390811061246257612462615a7b565b90600052602060002090601091828204019190066002029054906101000a900460010b90508286868151811061249a5761249a615a7b565b60200260200101516000019060ff16908160ff1681525050808686815181106124c5576124c5615a7b565b602090810291909101810151600192830b9082015260145461ffff16600090815260188252604080822060ff88168352835280822085850b8352909252200154865187908790811061251957612519615a7b565b60209081029190910181015160409081019290925260145461ffff1660009081526018825282812060ff871682528252828120600185900b82529091522060020154865187908790811061256f5761256f615a7b565b6020908102919091010151606001528461258881615aa7565b95505050808061259790615aa7565b9150506123ca565b505080806125ac90615aa7565b91505061238b565b50909392505050565b611243838383604051806020016040528060008152506130dd565b601b81815481106125e857600080fd5b9060005260206000209060209182820401919006915054906101000a900460ff1681565b6008546001600160a01b031633146126365760405162461bcd60e51b815260040161129790615c00565b601454600160d81b900460ff16156126825760405162461bcd60e51b815260206004820152600f60248201526e26b2ba30b230ba3090333937bd32b760891b6044820152606401611297565b80516120fb906015906020840190614be4565b80516060906000816001600160401b038111156126b4576126b4615001565b6040519080825280602002602001820160405280156126ff57816020015b60408051606081018252600080825260208083018290529282015282526000199092019101816126d25790505b50905060005b8281146127535761272e85828151811061272157612721615a7b565b6020026020010151613503565b82828151811061274057612740615a7b565b6020908102919091010152600101612705565b509392505050565b600061276682614409565b5192915050565b6008546001600160a01b031633146127975760405162461bcd60e51b815260040161129790615c00565b6016805460ff1916911515919091179055565b60006001600160a01b0382166127d3576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6008546001600160a01b031633146128225760405162461bcd60e51b815260040161129790615c00565b61282c600061452b565b565b601f546060906000816001600160401b0381111561284e5761284e615001565b60405190808252806020026020018201604052801561289357816020015b604080518082019091526000808252602082015281526020019060019003908161286c5790505b50905060005b8281101561108d57601f81815481106128b4576128b4615a7b565b90600052602060002090601091828204019190066002029054906101000a900460010b8282815181106128e9576128e9615a7b565b60209081029190910181015160019290920b909152601454600160201b900461ffff166000908152601e90915260408120601f80549192918490811061293157612931615a7b565b90600052602060002090601091828204019190066002029054906101000a900460010b60010b60010b81526020019081526020016000205482828151811061297b5761297b615a7b565b60209081029190910181015101528061299381615aa7565b915050612899565b6008546001600160a01b031633146129c55760405162461bcd60e51b815260040161129790615c00565b602280546001600160a01b0319166001600160a01b0392909216919091179055565b6008546001600160a01b03163314612a115760405162461bcd60e51b815260040161129790615c00565b6014805461ffff909216600160f01b026001600160f01b03909216919091179055565b60606000806000612a44856127aa565b90506000816001600160401b03811115612a6057612a60615001565b604051908082528060200260200182016040528015612a89578160200160208202803683370190505b509050612aaf604080516060810182526000808252602082018190529181019190915290565b60015b838614612b7557600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16158015928201929092529250612b1857612b6d565b81516001600160a01b031615612b2d57815194505b876001600160a01b0316856001600160a01b03161415612b6d5780838780600101985081518110612b6057612b60615a7b565b6020026020010181815250505b600101612ab2565b50909695505050505050565b6008546001600160a01b03163314612bab5760405162461bcd60e51b815260040161129790615c00565b6040516370a0823160e01b815230600482015281906001600160a01b0382169063a9059cbb90339083906370a082319060240160206040518083038186803b158015612bf657600080fd5b505afa158015612c0a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c2e9190615c77565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b158015612c7457600080fd5b505af1158015612c88573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112439190615be3565b60005b81811015611de057612cda8585858585818110612cce57612cce615a7b565b90506020020135611e3a565b80612ce481615aa7565b915050612caf565b6060600380546110fa90615ac2565b6060818310612d1d57604051631960ccad60e11b815260040160405180910390fd5b600080546001851015612d2f57600194505b80841115612d3b578093505b6000612d46876127aa565b905084861015612d655785850381811015612d5f578091505b50612d69565b5060005b6000816001600160401b03811115612d8357612d83615001565b604051908082528060200260200182016040528015612dac578160200160208202803683370190505b50905081612dbf579350612eba92505050565b6000612dca88613503565b905060008160400151612ddb575080515b885b888114158015612ded5750848714155b15612eae57600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16158015928201929092529350612e5157612ea6565b82516001600160a01b031615612e6657825191505b8a6001600160a01b0316826001600160a01b03161415612ea65780848880600101995081518110612e9957612e99615a7b565b6020026020010181815250505b600101612ddd565b50505092835250909150505b9392505050565b6008546001600160a01b03163314612eeb5760405162461bcd60e51b815260040161129790615c00565b8015612f34576014805462010000900461ffff16906002612f0b83615c35565b91906101000a81548161ffff021916908361ffff16021790555050601c6000612f349190614b9a565b60005b825181101561124357612f86838281518110612f5557612f55615a7b565b602002602001015160000151848381518110612f7357612f73615a7b565b6020026020010151602001516000613127565b80612f9081615aa7565b915050612f37565b6001600160a01b038216331415612fc25760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b905090565b600080546000190161302e906102b8615c90565b600080613054848461381c565b601454909150600160e01b900461ffff16811115612eba575050601454600160e01b900461ffff166110ae565b601c81815481106125e857600080fd5b6008546001600160a01b031633146130bb5760405162461bcd60e51b815260040161129790615c00565b6014805461ffff909216600160e01b0261ffff60e01b19909216919091179055565b6130e884848461421e565b6001600160a01b0383163b15613121576131048484848461457d565b613121576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6008546001600160a01b031633146131515760405162461bcd60e51b815260040161129790615c00565b801561319a576014805462010000900461ffff1690600261317183615c35565b91906101000a81548161ffff021916908361ffff16021790555050601c600061319a9190614b9a565b60145462010000900461ffff166000908152601d6020908152604080832060ff871684529091528120839055805b601c5460ff8216101561322c578460ff16601c8260ff16815481106131ef576131ef615a7b565b60009182526020918290209181049091015460ff601f9092166101000a900416141561321a57600191505b8061322481615c57565b9150506131c8565b508061312157601c8054600181018255600091909152602081047f0e4562a10381dec21b205ed72637e6b1b523bdd0e4d4d50af5cd23dd4500a21101805460ff808816601f9094166101000a9384029302191691909117905550505050565b60145461ffff166000908152601a6020908152604080832060ff85168452909152812054606091816001600160401b038111156132ca576132ca615001565b6040519080825280602002602001820160405280156132f3578160200160208202803683370190505b50905060005b828110156127535760145461ffff166000908152601a6020908152604080832060ff89168452909152902080548290811061333657613336615a7b565b90600052602060002090601091828204019190066002029054906101000a900460010b82828151811061336b5761336b615a7b565b602002602001019060010b908160010b81525050808061338a90615aa7565b9150506132f9565b6008546001600160a01b031633146133bc5760405162461bcd60e51b815260040161129790615c00565b80156134065760148054600160201b900461ffff169060046133dd83615c35565b91906101000a81548161ffff021916908361ffff16021790555050601f60006134069190614bbf565b601454600160201b900461ffff166000908152601e60209081526040808320600187900b84529091528120839055805b601f5461ffff8216101561349d578460010b601f8261ffff168154811061345f5761345f615a7b565b60009182526020909120601082040154600f9091166002026101000a900460010b141561348b57600191505b8061349581615c35565b915050613436565b508061312157601f8054600181018255600091909152601081047fa03837a25210ee280c2113ff4b77ca23440b19d4866cca721c801278fd08d80701805461ffff8088166002600f909516949094026101000a9384029302191691909117905550505050565b6040805160608082018352600080835260208084018290528385018290528451928301855281835282018190529281019290925290600183108061354957506000548310155b156135545792915050565b50600082815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff1615801592820192909252906135b45792915050565b612eba83614409565b60606135c8826140a4565b6136085760405162461bcd60e51b81526020600482015260116024820152703737b732bc34b9ba32b73a103a37b5b2b760791b6044820152606401611297565b6015805461361590615ac2565b1515905061363157505060408051602081019091526000815290565b60408051602081019091526000815260165460ff16156136695750604080518082019091526005815264173539b7b760d91b60208201525b601561367484614671565b8260405160200161368793929190615ca7565b604051602081830303815290604052915050919050565b600085815260136020526040902054600b9060ff16156136d15760405162461bcd60e51b81526004016112979190615b15565b50601460069054906101000a90046001600160a01b03166001600160a01b031661371d8686604051602001611ec492919091825260601b6001600160601b031916602082015260340190565b6001600160a01b031614600a906137475760405162461bcd60e51b81526004016112979190615b15565b50505060009283525060136020526040909120805460ff19166001179055601480546001600160a01b03909216600160301b026601000000000000600160d01b0319909216919091179055565b60005b81811015611de0576137c285858585858181106137b6576137b6615a7b565b905060200201356125bd565b806137cc81615aa7565b915050613797565b6008546001600160a01b031633146137fe5760405162461bcd60e51b815260040161129790615c00565b6138088686612180565b6138128484612ec1565b611fc28282611fca565b6001600160a01b0382166000908152601060205260408120546014548290600160d01b900460ff16613853576000925050506110ae565b60145462010000810461ffff166000908152601d60209081526040808320600160d01b90940460ff16835292815282822054908052919020541061389c576000925050506110ae565b601454600160201b900461ffff166000908152601e60209081526040808320600188900b808552908352818420546001600160a01b038a16855260128452828520918552925290912054106138f6576000925050506110ae565b60145461ffff8116600090815260186020908152604080832060ff600160d01b909504851684528252808320600189900b84529091529020600301541615613974575060145461ffff81166000908152601860209081526040808320600160d01b90940460ff168352928152828220600187810b8452915291902001545b601454600160f01b900461ffff168210613993576000925050506110ae565b6001600160a01b0385166000908152601160209081526040808320601454600160d01b900460ff1684528252808320600188900b845290915290205481116139e0576000925050506110ae565b60145462010000810461ffff166000908152601d60209081526040808320600160d01b90940460ff168352928152828220549080529190205410613a29576000925050506110ae565b601454600160201b900461ffff166000908152601e60209081526040808320600188900b808552908352818420546001600160a01b038a1685526012845282852091855292529091205410613a83576000925050506110ae565b601454600090613a9f908490600160f01b900461ffff16615c90565b6001600160a01b0387166000908152601160209081526040808320601454600160d01b900460ff168452825280832060018a900b845290915281205491925090613ae99084615c90565b601454600160d01b810460ff16600081815260208080526040808320546201000090950461ffff168352601d82528083209383529290529081205492935091613b329190615c90565b6001600160a01b038916600090815260126020908152604080832060018c900b80855290835281842054601454600160201b900461ffff168552601e845282852091855292528220549293509091613b8a9190615c90565b9050613bb8613b97613033565b613bb3613bad613ba7888861476e565b8661476e565b8461476e565b61476e565b9998505050505050505050565b6008546001600160a01b03163314613bef5760405162461bcd60e51b815260040161129790615c00565b6014805460ff60d81b1916600160d81b179055565b60158054613c1190615ac2565b80601f0160208091040260200160405190810160405280929190818152602001828054613c3d90615ac2565b8015613c8a5780601f10613c5f57610100808354040283529160200191613c8a565b820191906000526020600020905b815481529060010190602001808311613c6d57829003601f168201915b505050505081565b6008546001600160a01b03163314613cbc5760405162461bcd60e51b815260040161129790615c00565b6001600160a01b038116613d215760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401611297565b613d2a8161452b565b50565b6008546001600160a01b03163314613d575760405162461bcd60e51b815260040161129790615c00565b60145461ffff16600090815260186020908152604080832060ff8087168552908352818420600186900b85529092529091206003015416613dcd5760405162461bcd60e51b815260206004820152601060248201526f149bdb19481b9bdd08195e1a5cdd195960821b6044820152606401611297565b6014805461ffff908116600090815260186020818152604080842060ff8916808652908352818520600189810b808852918552838720805460ff1990811690915589548916885286865284882084895286528488208389528652848820805462ffff001916905589548916885286865284882084895286528488208389528652848820909101879055885488168752858552838720838852855283872082885285528387206002018790558854881687529484528286208287528452828620908652835281852060030180549094169093559454841683526019815284832091835252918220805490911691613ec283615d3e565b91906101000a81548161ffff021916908361ffff1602179055505060005b60145461ffff166000908152601a6020908152604080832060ff80881685529252909120549082161015613fb85760145461ffff166000908152601a6020908152604080832060ff808816855292529091208054600185900b928416908110613f4b57613f4b615a7b565b60009182526020909120601082040154600f9091166002026101000a900460010b1415613fa65760145461ffff166000908152601a6020908152604080832060ff80881685529252909120613fa1918316614784565b613fb8565b80613fb081615c57565b915050613ee0565b5060145461ffff908116600090815260196020908152604080832060ff87168452909152902054166120fb5760005b601c5460ff82161015611243578260ff16601c8260ff168154811061400e5761400e615a7b565b60009182526020918290209181049091015460ff601f9092166101000a900416141561404257611243601c8260ff166148b8565b8061404c81615c57565b915050613fe7565b60006001600160e01b031982166380ac58cd60e01b148061408557506001600160e01b03198216635b5e139f60e01b145b806110ae57506301ffc9a760e01b6001600160e01b03198316146110ae565b6000816001111580156140b8575060005482105b80156110ae575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000808580519060200120905060008160405160200161418591907f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c810191909152603c0190565b60408051601f1981840301815282825280516020918201206000845290830180835281905260ff8916918301919091526060820187905260808201869052915060019060a0016020604051602081039080840390855afa1580156141ed573d6000803e3d6000fd5b50505060206040510351925050505b949350505050565b6120fb8282604051806020016040528060008152506149db565b600061422982614409565b9050836001600160a01b031681600001516001600160a01b0316146142605760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b038616148061427e575061427e8533610e60565b8061429957503361428e8461117d565b6001600160a01b0316145b9050806142b957604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0384166142e057604051633a954ecd60e21b815260040160405180910390fd5b6142ec600084876140dd565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b429092169190910217835587018084529220805491939091166143c05760005482146143c057805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611de0565b604080516060810182526000808252602082018190529181019190915281806001116145125760005481101561451257600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161515918101829052906145105780516001600160a01b0316156144a7579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff161515928101929092521561450b579392505050565b6144a7565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906145b2903390899088908890600401615d5c565b602060405180830381600087803b1580156145cc57600080fd5b505af19250505080156145fc575060408051601f3d908101601f191682019092526145f991810190615d99565b60015b614657573d80801561462a576040519150601f19603f3d011682016040523d82523d6000602084013e61462f565b606091505b50805161464f576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506141fc565b6060816146955750506040805180820190915260018152600360fc1b602082015290565b8160005b81156146bf57806146a981615aa7565b91506146b89050600a83615bcf565b9150614699565b6000816001600160401b038111156146d9576146d9615001565b6040519080825280601f01601f191660200182016040528015614703576020820181803683370190505b5090505b84156141fc57614718600183615c90565b9150614725600a86615db6565b614730906030615afd565b60f81b81838151811061474557614745615a7b565b60200101906001600160f81b031916908160001a905350614767600a86615bcf565b9450614707565b600081831061477d5781612eba565b5090919050565b805b825461479490600190615c90565b81101561483157826147a7826001615afd565b815481106147b7576147b7615a7b565b90600052602060002090601091828204019190066002029054906101000a900460010b8382815481106147ec576147ec615a7b565b90600052602060002090601091828204019190066002026101000a81548161ffff021916908360010b61ffff160217905550808061482990615aa7565b915050614786565b508154829061484290600190615c90565b8154811061485257614852615a7b565b90600052602060002090601091828204019190066002026101000a81549061ffff02191690558180548061488857614888615dca565b600082815260209020601060001990920191820401805461ffff6002600f8516026101000a021916905590555050565b805b82546148c890600190615c90565b81101561495a57826148db826001615afd565b815481106148eb576148eb615a7b565b90600052602060002090602091828204019190069054906101000a900460ff1683828154811061491d5761491d615a7b565b90600052602060002090602091828204019190066101000a81548160ff021916908360ff160217905550808061495290615aa7565b9150506148ba565b508154829061496b90600190615c90565b8154811061497b5761497b615a7b565b90600052602060002090602091828204019190066101000a81549060ff0219169055818054806149ad576149ad615dca565b60019003818190600052602060002090602091828204019190066101000a81549060ff021916905590555050565b6000546001600160a01b038416614a0457604051622e076360e81b815260040160405180910390fd5b82614a225760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038416600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168b018116918217600160401b67ffffffffffffffff1990941690921783900481168b01811690920217909155858452600490925290912080546001600160e01b0319168317600160a01b42909316929092029190911790558190818501903b15614b45575b60405182906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4614b0e600087848060010195508761457d565b614b2b576040516368d2bf6b60e11b815260040160405180910390fd5b808210614ac3578260005414614b4057600080fd5b614b8a565b5b6040516001830192906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210614b46575b5060009081556131219085838684565b50805460008255601f016020900490600052602060002090810190613d2a9190614c68565b50805460008255600f016010900490600052602060002090810190613d2a9190614c68565b828054614bf090615ac2565b90600052602060002090601f016020900481019282614c125760008555614c58565b82601f10614c2b57805160ff1916838001178555614c58565b82800160010185558215614c58579182015b82811115614c58578251825591602001919060010190614c3d565b50614c64929150614c68565b5090565b5b80821115614c645760008155600101614c69565b602080825282518282018190526000919060409081850190868401855b82811015614cc2578151805160ff168552860151868501529284019290850190600101614c9a565b5091979650505050505050565b6001600160e01b031981168114613d2a57600080fd5b600060208284031215614cf757600080fd5b8135612eba81614ccf565b600060208284031215614d1457600080fd5b5035919050565b60005b83811015614d36578181015183820152602001614d1e565b838111156131215750506000910152565b60008151808452614d5f816020860160208601614d1b565b601f01601f19169290920160200192915050565b602081526000612eba6020830184614d47565b80356001600160a01b0381168114614d9d57600080fd5b919050565b60008060408385031215614db557600080fd5b614dbe83614d86565b946020939093013593505050565b8035600181900b8114614d9d57600080fd5b803561ffff81168114614d9d57600080fd5b803560ff81168114614d9d57600080fd5b600080600080600080600080610100898b031215614e1e57600080fd5b88359750614e2e60208a01614dcc565b9650614e3c60408a01614dde565b9550614e4a60608a01614d86565b945060808901359350614e5f60a08a01614df0565b925060c0890135915060e089013590509295985092959890939650565b600060208284031215614e8e57600080fd5b612eba82614df0565b8015158114613d2a57600080fd5b600080600080600060a08688031215614ebd57600080fd5b614ec686614df0565b9450614ed460208701614dcc565b935060408601359250606086013591506080860135614ef281614e97565b809150509295509295909350565b600080600060608486031215614f1557600080fd5b614f1e84614dde565b9250614f2c60208501614df0565b9150604084013590509250925092565b600080600060608486031215614f5157600080fd5b614f5a84614d86565b9250614f2c60208501614d86565b600080600080600060a08688031215614f8057600080fd5b85359450614f9060208701614df0565b9350614f9e60408701614df0565b94979396509394606081013594506080013592915050565b60008083601f840112614fc857600080fd5b5081356001600160401b03811115614fdf57600080fd5b6020830191508360208260051b8501011115614ffa57600080fd5b9250929050565b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b038111828210171561503957615039615001565b60405290565b604051608081016001600160401b038111828210171561503957615039615001565b604051601f8201601f191681016001600160401b038111828210171561508957615089615001565b604052919050565b60006001600160401b038311156150aa576150aa615001565b6150bd601f8401601f1916602001615061565b90508281528383830111156150d157600080fd5b828260208301376000602084830101529392505050565b600082601f8301126150f957600080fd5b612eba83833560208501615091565b60008060008060006080868803121561512057600080fd5b61512986614d86565b945061513760208701614d86565b935060408601356001600160401b038082111561515357600080fd5b61515f89838a01614fb6565b9095509350606088013591508082111561517857600080fd5b50615185888289016150e8565b9150509295509295909350565b60006001600160401b038211156151ab576151ab615001565b5060051b60200190565b600082601f8301126151c657600080fd5b813560206151db6151d683615192565b615061565b82815260069290921b840181019181810190868411156151fa57600080fd5b8286015b8481101561524057604081890312156152175760008081fd5b61521f615017565b61522882614dcc565b815281850135858201528352918301916040016151fe565b509695505050505050565b6000806040838503121561525e57600080fd5b82356001600160401b0381111561527457600080fd5b615280858286016151b5565b925050602083013561529181614e97565b809150509250929050565b600082601f8301126152ad57600080fd5b813560206152bd6151d683615192565b82815260079290921b840181019181810190868411156152dc57600080fd5b8286015b8481101561524057608081890312156152f95760008081fd5b61530161503f565b61530a82614df0565b8152615317858301614dcc565b8186015260408281013590820152606080830135908201528352918301916080016152e0565b6000806040838503121561535057600080fd5b82356001600160401b0381111561536657600080fd5b6152808582860161529c565b60006020828403121561538457600080fd5b612eba82614dcc565b602080825282518282018190526000919060409081850190868401855b82811015614cc2578151805160ff16855286810151600190810b8887015286820151878701526060918201519186019190915260809094019391860191016153aa565b6000602082840312156153ff57600080fd5b81356001600160401b0381111561541557600080fd5b8201601f8101841361542657600080fd5b6141fc84823560208401615091565b6000602080838503121561544857600080fd5b82356001600160401b0381111561545e57600080fd5b8301601f8101851361546f57600080fd5b803561547d6151d682615192565b81815260059190911b8201830190838101908783111561549c57600080fd5b928401925b828410156154ba578335825292840192908401906154a1565b979650505050505050565b80516001600160a01b031682526020808201516001600160401b0316908301526040908101511515910152565b6020808252825182820181905260009190848201906040850190845b81811015612b75576155218385516154c5565b928401926060929092019160010161550e565b60006020828403121561554657600080fd5b8135612eba81614e97565b60006020828403121561556357600080fd5b612eba82614d86565b602080825282518282018190526000919060409081850190868401855b82811015614cc25781518051600190810b86529087015187860152938501939186019101615589565b6000602082840312156155c457600080fd5b612eba82614dde565b6020808252825182820181905260009190848201906040850190845b81811015612b75578351835292840192918401916001016155e9565b6000806000806060858703121561561b57600080fd5b61562485614d86565b935061563260208601614d86565b925060408501356001600160401b0381111561564d57600080fd5b61565987828801614fb6565b95989497509550505050565b60008060006060848603121561567a57600080fd5b61568384614d86565b95602085013595506040909401359392505050565b6000806000606084860312156156ad57600080fd5b6156b684614dde565b92506156c460208501614df0565b91506156d260408501614dcc565b90509250925092565b600082601f8301126156ec57600080fd5b813560206156fc6151d683615192565b82815260069290921b8401810191818101908684111561571b57600080fd5b8286015b8481101561524057604081890312156157385760008081fd5b615740615017565b61574982614df0565b8152818501358582015283529183019160400161571f565b6000806040838503121561577457600080fd5b82356001600160401b0381111561578a57600080fd5b615280858286016156db565b600080604083850312156157a957600080fd5b6157b283614d86565b9150602083013561529181614e97565b600080604083850312156157d557600080fd5b6157de83614d86565b91506157ec60208401614dcc565b90509250929050565b6000806000806080858703121561580b57600080fd5b61581485614d86565b935061582260208601614d86565b92506040850135915060608501356001600160401b0381111561584457600080fd5b615850878288016150e8565b91505092959194509250565b60008060006060848603121561587157600080fd5b61587a84614df0565b925060208401359150604084013561589181614e97565b809150509250925092565b600080604083850312156158af57600080fd5b6158b883614dde565b91506157ec60208401614df0565b6020808252825182820181905260009190848201906040850190845b81811015612b75578351600190810b84529385019392850192016158e2565b60008060006060848603121561591657600080fd5b61587a84614dcc565b606081016110ae82846154c5565b600080600080600060a0868803121561594557600080fd5b85359450614f9060208701614d86565b60008060008060008060c0878903121561596e57600080fd5b86356001600160401b038082111561598557600080fd5b6159918a838b0161529c565b9750602089013591506159a382614e97565b909550604088013590808211156159b957600080fd5b6159c58a838b016156db565b9550606089013591506159d782614e97565b909350608088013590808211156159ed57600080fd5b506159fa89828a016151b5565b92505060a0870135615a0b81614e97565b809150509295509295509295565b60008060408385031215615a2c57600080fd5b615a3583614d86565b91506157ec60208401614d86565b60008060408385031215615a5657600080fd5b6157de83614dde565b60008060408385031215615a7257600080fd5b6157de83614df0565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415615abb57615abb615a91565b5060010190565b600181811c90821680615ad657607f821691505b60208210811415615af757634e487b7160e01b600052602260045260246000fd5b50919050565b60008219821115615b1057615b10615a91565b500190565b6000602080835260008454615b2981615ac2565b80848701526040600180841660008114615b4a5760018114615b5e57615b8c565b60ff19851689840152606089019550615b8c565b896000528660002060005b85811015615b845781548b8201860152908301908801615b69565b8a0184019650505b509398975050505050505050565b6000816000190483118215151615615bb457615bb4615a91565b500290565b634e487b7160e01b600052601260045260246000fd5b600082615bde57615bde615bb9565b500490565b600060208284031215615bf557600080fd5b8151612eba81614e97565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600061ffff80831681811415615c4d57615c4d615a91565b6001019392505050565b600060ff821660ff811415615c6e57615c6e615a91565b60010192915050565b600060208284031215615c8957600080fd5b5051919050565b600082821015615ca257615ca2615a91565b500390565b6000808554615cb581615ac2565b60018281168015615ccd5760018114615cde57615d0d565b60ff19841687528287019450615d0d565b8960005260208060002060005b85811015615d045781548a820152908401908201615ceb565b50505082870194505b505050508451615d21818360208901614d1b565b8451910190615d34818360208801614d1b565b0195945050505050565b600061ffff821680615d5257615d52615a91565b6000190192915050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090615d8f90830184614d47565b9695505050505050565b600060208284031215615dab57600080fd5b8151612eba81614ccf565b600082615dc557615dc5615bb9565b500690565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220e8af675b00ca2676b2afacbd46ac491d9a580e42b339f2081b482020b38567eb64736f6c63430008090033
Deployed Bytecode
0x6080604052600436106104345760003560e01c80638462151c11610229578063bd8fc4a21161012e578063d0950e74116100b6578063e985e9c51161007a578063e985e9c514610e45578063f2fde38b14610e8e578063f5a4156c14610eae578063fb3cc6c214610ee6578063fe2e66f414610f0757600080fd5b8063d0950e7414610dbf578063d111515d14610ddf578063de7fcb1d14610df4578063e08c5e3214610e16578063e4d3d44814610e3057600080fd5b8063c87b56dd116100fd578063c87b56dd14610d07578063c9d4857914610d27578063cf502d0d14610d47578063d047d03814610d67578063d0667dd214610d9f57600080fd5b8063bd8fc4a214610c51578063be56844814610c8d578063bf65eb3414610cba578063c23dc68f14610cda57600080fd5b8063a13429a9116101b1578063b1ad048c11610180578063b1ad048c14610bb1578063b1e8dbaa14610bd1578063b6a7412114610bf1578063b88d4fde14610c11578063ba1402d314610c3157600080fd5b8063a13429a914610b43578063a22cb46514610b63578063a2309ff814610b83578063ac7dc68d14610b9c57600080fd5b80638a19c8bc116101f85780638a19c8bc14610a3b5780638da5cb5b14610a5c57806395d89b4114610a7a57806399a2557a14610a8f5780639e8cc8d314610aaf57600080fd5b80638462151c146109b957806387f65c91146109e657806389476069146109fb57806389b5a8c214610a1b57600080fd5b80633ccfd60b1161033a578063572849c4116102c257806370a082311161028657806370a0823114610922578063715018a614610942578063748a500a14610957578063796b89ec1461097957806379a2c3f81461099957600080fd5b8063572849c4146108595780635b7633d01461088e5780635bbb2177146108b55780636352211e146108e25780636e453d621461090257600080fd5b80633e9dbed0116103095780633e9dbed0146107af57806342842e0e146107d157806346830628146107f1578063500ea93b1461080757806355f804b31461083957600080fd5b80633ccfd60b146106fe5780633d6a5745146107135780633dd3802d146107335780633e8f18f01461075357600080fd5b80631a6d843e116103bd57806327854c151161038c57806327854c151461065c578063306279da1461068857806332ab9bbe146106a857806332cb6b0c146106c857806333ee7927146106de57600080fd5b80631a6d843e146105dc5780631c1cb323146105fc57806321120f7a1461061c57806323b872dd1461063c57600080fd5b8063081812fc11610404578063081812fc14610528578063095ea7b3146105605780630d23d6691461058257806318160ddd14610595578063183ab264146105bc57600080fd5b80620319df1461047857806301ffc9a7146104a357806306a7c8de146104d357806306fdde031461050657600080fd5b3661047357604080513381523460208201527f88a5966d370b9919b20f3e2c13ff65706f196a4e32cc2c12bf57088f88525874910160405180910390a1005b600080fd5b34801561048457600080fd5b5061048d610f27565b60405161049a9190614c7d565b60405180910390f35b3480156104af57600080fd5b506104c36104be366004614ce5565b611094565b604051901515815260200161049a565b3480156104df57600080fd5b506104f36104ee366004614d02565b6110b4565b60405160019190910b815260200161049a565b34801561051257600080fd5b5061051b6110eb565b60405161049a9190614d73565b34801561053457600080fd5b50610548610543366004614d02565b61117d565b6040516001600160a01b03909116815260200161049a565b34801561056c57600080fd5b5061058061057b366004614da2565b6111c1565b005b610580610590366004614e01565b611248565b3480156105a157600080fd5b5060015460005403600019015b60405190815260200161049a565b3480156105c857600080fd5b506105806105d7366004614e7c565b6118ed565b3480156105e857600080fd5b506105806105f7366004614ea5565b61196b565b34801561060857600080fd5b50602254610548906001600160a01b031681565b34801561062857600080fd5b506104f3610637366004614f00565b611de7565b34801561064857600080fd5b50610580610657366004614f3c565b611e3a565b34801561066857600080fd5b506105ae610677366004614e7c565b602080526000908152604090205481565b34801561069457600080fd5b506105806106a3366004614f68565b611e45565b3480156106b457600080fd5b506105806106c3366004615108565b611f81565b3480156106d457600080fd5b506105ae6102b881565b3480156106ea57600080fd5b506105806106f936600461524b565b611fca565b34801561070a57600080fd5b506105806120a2565b34801561071f57600080fd5b5061058061072e366004614da2565b6120ff565b34801561073f57600080fd5b5061058061074e36600461533d565b612180565b34801561075f57600080fd5b506105ae61076e366004615372565b60145461ffff81166000908152601860209081526040808320600160d01b90940460ff16835292815282822060019490940b82529290925290206002015490565b3480156107bb57600080fd5b506107c461228d565b60405161049a919061538d565b3480156107dd57600080fd5b506105806107ec366004614f3c565b6125bd565b3480156107fd57600080fd5b506105ae60215481565b34801561081357600080fd5b50610827610822366004614d02565b6125d8565b60405160ff909116815260200161049a565b34801561084557600080fd5b506105806108543660046153ed565b61260c565b34801561086557600080fd5b5060145461087b90600160f01b900461ffff1681565b60405161ffff909116815260200161049a565b34801561089a57600080fd5b5060145461054890600160301b90046001600160a01b031681565b3480156108c157600080fd5b506108d56108d0366004615435565b612695565b60405161049a91906154f2565b3480156108ee57600080fd5b506105486108fd366004614d02565b61275b565b34801561090e57600080fd5b5061058061091d366004615534565b61276d565b34801561092e57600080fd5b506105ae61093d366004615551565b6127aa565b34801561094e57600080fd5b506105806127f8565b34801561096357600080fd5b5061096c61282e565b60405161049a919061556c565b34801561098557600080fd5b50610580610994366004615551565b61299b565b3480156109a557600080fd5b506105806109b43660046155b2565b6129e7565b3480156109c557600080fd5b506109d96109d4366004615551565b612a34565b60405161049a91906155cd565b3480156109f257600080fd5b506105ae600181565b348015610a0757600080fd5b50610580610a16366004615551565b612b81565b348015610a2757600080fd5b50610580610a36366004615605565b612cac565b348015610a4757600080fd5b5060145461082790600160d01b900460ff1681565b348015610a6857600080fd5b506008546001600160a01b0316610548565b348015610a8657600080fd5b5061051b612cec565b348015610a9b57600080fd5b506109d9610aaa366004615665565b612cfb565b348015610abb57600080fd5b50610b12610aca366004615698565b601860209081526000938452604080852082529284528284209052825290208054600180830154600284015460039094015460ff8085169561010090950490930b9391921685565b6040805160ff909616865260019490940b60208601529284019190915260608301521515608082015260a00161049a565b348015610b4f57600080fd5b50610580610b5e366004615761565b612ec1565b348015610b6f57600080fd5b50610580610b7e366004615796565b612f98565b348015610b8f57600080fd5b50600054600019016105ae565b348015610ba857600080fd5b506105ae613033565b348015610bbd57600080fd5b506105ae610bcc3660046157c2565b613047565b348015610bdd57600080fd5b50610827610bec366004614d02565b613081565b348015610bfd57600080fd5b50610580610c0c3660046155b2565b613091565b348015610c1d57600080fd5b50610580610c2c3660046157f5565b6130dd565b348015610c3d57600080fd5b50610580610c4c36600461585c565b613127565b348015610c5d57600080fd5b5061087b610c6c36600461589c565b601960209081526000928352604080842090915290825290205461ffff1681565b348015610c9957600080fd5b50610cad610ca8366004614e7c565b61328b565b60405161049a91906158c6565b348015610cc657600080fd5b50610580610cd5366004615901565b613392565b348015610ce657600080fd5b50610cfa610cf5366004614d02565b613503565b60405161049a919061591f565b348015610d1357600080fd5b5061051b610d22366004614d02565b6135bd565b348015610d3357600080fd5b50610580610d4236600461592d565b61369e565b348015610d5357600080fd5b50610580610d62366004615605565b613794565b348015610d7357600080fd5b506105ae610d8236600461589c565b601d60209081526000928352604080842090915290825290205481565b348015610dab57600080fd5b50610580610dba366004615955565b6137d4565b348015610dcb57600080fd5b506105ae610dda3660046157c2565b61381c565b348015610deb57600080fd5b50610580613bc5565b348015610e0057600080fd5b5060145461087b90600160e01b900461ffff1681565b348015610e2257600080fd5b506016546104c39060ff1681565b348015610e3c57600080fd5b5061051b613c04565b348015610e5157600080fd5b506104c3610e60366004615a19565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b348015610e9a57600080fd5b50610580610ea9366004615551565b613c92565b348015610eba57600080fd5b506105ae610ec9366004615a43565b601e60209081526000928352604080842090915290825290205481565b348015610ef257600080fd5b506014546104c390600160d81b900460ff1681565b348015610f1357600080fd5b50610580610f22366004615a5f565b613d2d565b601c546060906000816001600160401b03811115610f4757610f47615001565b604051908082528060200260200182016040528015610f8c57816020015b6040805180820190915260008082526020820152815260200190600190039081610f655790505b50905060005b8281101561108d57601c8181548110610fad57610fad615a7b565b90600052602060002090602091828204019190069054906101000a900460ff16828281518110610fdf57610fdf615a7b565b60209081029190910181015160ff90921690915260145461ffff62010000909104166000908152601d90915260408120601c80549192918490811061102657611026615a7b565b90600052602060002090602091828204019190069054906101000a900460ff1660ff1660ff1681526020019081526020016000205482828151811061106d5761106d615a7b565b60209081029190910181015101528061108581615aa7565b915050610f92565b5092915050565b600061109f82614054565b806110ae57506110ae82614054565b92915050565b601f81815481106110c457600080fd5b9060005260206000209060109182820401919006600202915054906101000a900460010b81565b6060600280546110fa90615ac2565b80601f016020809104026020016040519081016040528092919081815260200182805461112690615ac2565b80156111735780601f1061114857610100808354040283529160200191611173565b820191906000526020600020905b81548152906001019060200180831161115657829003601f168201915b5050505050905090565b6000611188826140a4565b6111a5576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006111cc8261275b565b9050806001600160a01b0316836001600160a01b031614156112015760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b038216146112385761121b8133610e60565b611238576040516367d9dca160e11b815260040160405180910390fd5b6112438383836140dd565b505050565b600260095414156112a05760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b6002600955601454600160d01b900460ff166112ec5760405162461bcd60e51b815260206004820152600b60248201526a139bdd081cdd185c9d195960aa1b6044820152606401611297565b836000600189900b1261130e5761130b61ffff8916601087901b615afd565b90505b600081815260136020526040902054600b9060ff16156113415760405162461bcd60e51b81526004016112979190615b15565b50601454604080516020810184905260f08a901b6001600160f01b03191691810191909152606088901b6001600160601b0319166042820152600160301b9091046001600160a01b0316906113aa90605601604051602081830303815290604052868686614139565b6001600160a01b031614600a906113d45760405162461bcd60e51b81526004016112979190615b15565b5060145461ffff8116600090815260186020908152604080832060ff600160d01b9095048516845282528083208380529091528120600301549091169060018a900b811361141f5750885b60145461ffff8116600090815260186020908152604080832060ff600160d01b909504851684528252808320600186900b8452909152902060030154166114a0578161149c5760405162461bcd60e51b815260206004820152600c60248201526b4e6f7420656c696769626c6560a01b6044820152606401611297565b5060005b600e8b6114c05760405162461bcd60e51b81526004016112979190615b15565b508a6114ca613033565b1015600f906114ec5760405162461bcd60e51b81526004016112979190615b15565b5060008a60010b1261152b578a611503338c613047565b1015600d906115255760405162461bcd60e51b81526004016112979190615b15565b5061155b565b8a611537336000613047565b1015600d906115595760405162461bcd60e51b81526004016112979190615b15565b505b60145461ffff81166000908152601860209081526040808320600160d01b90940460ff168352928152828220600185900b83529052908120600201546115a1908d615b9a565b6000858152601360205260409020805460ff191660011790556022549091506001600160a01b0316156115f557600c34156115ef5760405162461bcd60e51b81526004016112979190615b15565b50611619565b600c3482146116175760405162461bcd60e51b81526004016112979190615b15565b505b611623338d614204565b601454600160d01b900460ff166000908152602080526040902054611649908d90615afd565b601454600160d01b900460ff166000908152602080805260408083209390935533825260109052205461167d908d90615afd565b3360009081526010602090815260408083209390935560118152828220601454600160d01b900460ff1683528152828220600186900b8352905220546116c4908d90615afd565b336000908152601160209081526040808320601454600160d01b900460ff1684528252808320600187900b80855292528220929092551361174957336000908152601260209081526040808320600186900b8452909152902054611729908d90615afd565b336000908152601260209081526040808320600187900b84529091529020555b600061271061175c61ffff8d1684615b9a565b6117669190615bcf565b6022549091506001600160a01b031615611890576022546040516323b872dd60e01b8152336004820152306024820152604481018490526001600160a01b039091169081906323b872dd90606401602060405180830381600087803b1580156117ce57600080fd5b505af11580156117e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118069190615be3565b5060405163a9059cbb60e01b81526001600160a01b038c811660048301526024820184905282169063a9059cbb90604401602060405180830381600087803b15801561185157600080fd5b505af1158015611865573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118899190615be3565b50506118c8565b6040516001600160a01b038b169082156108fc029083906000818181858888f193505050501580156118c6573d6000803e3d6000fd5b505b806021546118d69190615afd565b602155505060016009555050505050505050505050565b6008546001600160a01b031633146119175760405162461bcd60e51b815260040161129790615c00565b6014805460ff60d01b1916600160d01b60ff8416908102919091179091556040519081527f5d14047d25a400b6364f7b505872a4f0e8437d0dfd6cbdd5eee59f37baee7f459060200160405180910390a150565b6008546001600160a01b031633146119955760405162461bcd60e51b815260040161129790615c00565b80156119d8576014805461ffff169060006119af83615c35565b91906101000a81548161ffff021916908361ffff16021790555050601b60006119d89190614b9a565b600060186000601460009054906101000a900461ffff1661ffff1661ffff16815260200190815260200160002060008760ff1660ff16815260200190815260200160002060008660010b60010b815260200190815260200160002060030160009054906101000a900460ff1690508560186000601460009054906101000a900461ffff1661ffff1661ffff16815260200190815260200160002060008860ff1660ff16815260200190815260200160002060008760010b60010b815260200190815260200160002060000160006101000a81548160ff021916908360ff1602179055508460186000601460009054906101000a900461ffff1661ffff1661ffff16815260200190815260200160002060008860ff1660ff16815260200190815260200160002060008760010b60010b815260200190815260200160002060000160016101000a81548161ffff021916908360010b61ffff1602179055508360186000601460009054906101000a900461ffff1661ffff1661ffff16815260200190815260200160002060008860ff1660ff16815260200190815260200160002060008760010b60010b8152602001908152602001600020600101819055508260186000601460009054906101000a900461ffff1661ffff1661ffff16815260200190815260200160002060008860ff1660ff16815260200190815260200160002060008760010b60010b815260200190815260200160002060020181905550600160186000601460009054906101000a900461ffff1661ffff1661ffff16815260200190815260200160002060008860ff1660ff16815260200190815260200160002060008760010b60010b815260200190815260200160002060030160006101000a81548160ff0219169083151502179055508015611c785750611de0565b60145461ffff908116600090815260196020908152604080832060ff8b168452909152812080549092169190611cad83615c35565b825461010092830a61ffff81810219909216928216029190911790925560145482166000908152601a6020908152604080832060ff8d16845282528220805460018101825590835290822060108204018054600f90921660020290930a80850219909116938a16029290921790559050805b601b5460ff82161015611d83578760ff16601b8260ff1681548110611d4657611d46615a7b565b60009182526020918290209181049091015460ff601f9092166101000a9004161415611d7157600191505b80611d7b81615c57565b915050611d1f565b5080611ddd57601b8054600181018255600091909152602081047f3ad8aa4f87544323a9d1e5dd902f40c356527a7955687113db5f9a85ad579dc101805460ff808b16601f9094166101000a938402930219169190911790555b50505b5050505050565b601a6020528260005260406000206020528160005260406000208181548110611e0f57600080fd5b906000526020600020906010918282040191900660020292509250509054906101000a900460010b81565b61124383838361421e565b600085815260136020526040902054600b9060ff1615611e785760405162461bcd60e51b81526004016112979190615b15565b50601460069054906101000a90046001600160a01b03166001600160a01b0316611edb8686604051602001611ec492919091825260f81b6001600160f81b031916602082015260210190565b604051602081830303815290604052858585614139565b6001600160a01b031614600a90611f055760405162461bcd60e51b81526004016112979190615b15565b5060008581526013602052604090819020805460ff191660011790556014805460ff8716600160d01b0260ff60d01b19909116179055517f5d14047d25a400b6364f7b505872a4f0e8437d0dfd6cbdd5eee59f37baee7f4590611f7290869060ff91909116815260200190565b60405180910390a15050505050565b60005b82811015611fc257611fb08686868685818110611fa357611fa3615a7b565b90506020020135856130dd565b80611fba81615aa7565b915050611f84565b505050505050565b6008546001600160a01b03163314611ff45760405162461bcd60e51b815260040161129790615c00565b801561203e5760148054600160201b900461ffff1690600461201583615c35565b91906101000a81548161ffff021916908361ffff16021790555050601f600061203e9190614bbf565b60005b82518110156112435761209083828151811061205f5761205f615a7b565b60200260200101516000015184838151811061207d5761207d615a7b565b6020026020010151602001516000613392565b8061209a81615aa7565b915050612041565b6008546001600160a01b031633146120cc5760405162461bcd60e51b815260040161129790615c00565b6040514790339082156108fc029083906000818181858888f193505050501580156120fb573d6000803e3d6000fd5b5050565b6008546001600160a01b031633146121295760405162461bcd60e51b815260040161129790615c00565b600e816121495760405162461bcd60e51b81526004016112979190615b15565b5080612153613033565b1015600f906121755760405162461bcd60e51b81526004016112979190615b15565b506120fb8282614204565b6008546001600160a01b031633146121aa5760405162461bcd60e51b815260040161129790615c00565b80156121ed576014805461ffff169060006121c483615c35565b91906101000a81548161ffff021916908361ffff16021790555050601b60006121ed9190614b9a565b60005b82518110156112435761227b83828151811061220e5761220e615a7b565b60200260200101516000015184838151811061222c5761222c615a7b565b60200260200101516020015185848151811061224a5761224a615a7b565b60200260200101516040015186858151811061226857612268615a7b565b602002602001015160600151600061196b565b8061228581615aa7565b9150506121f0565b60606000805b601b548110156123175760145461ffff166000908152601960205260408120601b8054919291849081106122c9576122c9615a7b565b600091825260208083208183040154601f9092166101000a90910460ff1683528201929092526040019020546123039061ffff1683615afd565b91508061230f81615aa7565b915050612293565b506000816001600160401b0381111561233257612332615001565b60405190808252806020026020018201604052801561238457816020015b6040805160808101825260008082526020808301829052928201819052606082015282526000199092019101816123505790505b5090506000805b601b548110156125b4576000601b82815481106123aa576123aa615a7b565b60009182526020808320908204015460ff601f9092166101000a90041691505b60145461ffff166000908152601960205260408120601b8054919291869081106123f6576123f6615a7b565b600091825260208083208183040154601f9092166101000a90910460ff16835282019290925260400190205461ffff1681101561259f5760145461ffff166000908152601a6020908152604080832060ff86168452909152812080548390811061246257612462615a7b565b90600052602060002090601091828204019190066002029054906101000a900460010b90508286868151811061249a5761249a615a7b565b60200260200101516000019060ff16908160ff1681525050808686815181106124c5576124c5615a7b565b602090810291909101810151600192830b9082015260145461ffff16600090815260188252604080822060ff88168352835280822085850b8352909252200154865187908790811061251957612519615a7b565b60209081029190910181015160409081019290925260145461ffff1660009081526018825282812060ff871682528252828120600185900b82529091522060020154865187908790811061256f5761256f615a7b565b6020908102919091010151606001528461258881615aa7565b95505050808061259790615aa7565b9150506123ca565b505080806125ac90615aa7565b91505061238b565b50909392505050565b611243838383604051806020016040528060008152506130dd565b601b81815481106125e857600080fd5b9060005260206000209060209182820401919006915054906101000a900460ff1681565b6008546001600160a01b031633146126365760405162461bcd60e51b815260040161129790615c00565b601454600160d81b900460ff16156126825760405162461bcd60e51b815260206004820152600f60248201526e26b2ba30b230ba3090333937bd32b760891b6044820152606401611297565b80516120fb906015906020840190614be4565b80516060906000816001600160401b038111156126b4576126b4615001565b6040519080825280602002602001820160405280156126ff57816020015b60408051606081018252600080825260208083018290529282015282526000199092019101816126d25790505b50905060005b8281146127535761272e85828151811061272157612721615a7b565b6020026020010151613503565b82828151811061274057612740615a7b565b6020908102919091010152600101612705565b509392505050565b600061276682614409565b5192915050565b6008546001600160a01b031633146127975760405162461bcd60e51b815260040161129790615c00565b6016805460ff1916911515919091179055565b60006001600160a01b0382166127d3576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6008546001600160a01b031633146128225760405162461bcd60e51b815260040161129790615c00565b61282c600061452b565b565b601f546060906000816001600160401b0381111561284e5761284e615001565b60405190808252806020026020018201604052801561289357816020015b604080518082019091526000808252602082015281526020019060019003908161286c5790505b50905060005b8281101561108d57601f81815481106128b4576128b4615a7b565b90600052602060002090601091828204019190066002029054906101000a900460010b8282815181106128e9576128e9615a7b565b60209081029190910181015160019290920b909152601454600160201b900461ffff166000908152601e90915260408120601f80549192918490811061293157612931615a7b565b90600052602060002090601091828204019190066002029054906101000a900460010b60010b60010b81526020019081526020016000205482828151811061297b5761297b615a7b565b60209081029190910181015101528061299381615aa7565b915050612899565b6008546001600160a01b031633146129c55760405162461bcd60e51b815260040161129790615c00565b602280546001600160a01b0319166001600160a01b0392909216919091179055565b6008546001600160a01b03163314612a115760405162461bcd60e51b815260040161129790615c00565b6014805461ffff909216600160f01b026001600160f01b03909216919091179055565b60606000806000612a44856127aa565b90506000816001600160401b03811115612a6057612a60615001565b604051908082528060200260200182016040528015612a89578160200160208202803683370190505b509050612aaf604080516060810182526000808252602082018190529181019190915290565b60015b838614612b7557600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16158015928201929092529250612b1857612b6d565b81516001600160a01b031615612b2d57815194505b876001600160a01b0316856001600160a01b03161415612b6d5780838780600101985081518110612b6057612b60615a7b565b6020026020010181815250505b600101612ab2565b50909695505050505050565b6008546001600160a01b03163314612bab5760405162461bcd60e51b815260040161129790615c00565b6040516370a0823160e01b815230600482015281906001600160a01b0382169063a9059cbb90339083906370a082319060240160206040518083038186803b158015612bf657600080fd5b505afa158015612c0a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c2e9190615c77565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b158015612c7457600080fd5b505af1158015612c88573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112439190615be3565b60005b81811015611de057612cda8585858585818110612cce57612cce615a7b565b90506020020135611e3a565b80612ce481615aa7565b915050612caf565b6060600380546110fa90615ac2565b6060818310612d1d57604051631960ccad60e11b815260040160405180910390fd5b600080546001851015612d2f57600194505b80841115612d3b578093505b6000612d46876127aa565b905084861015612d655785850381811015612d5f578091505b50612d69565b5060005b6000816001600160401b03811115612d8357612d83615001565b604051908082528060200260200182016040528015612dac578160200160208202803683370190505b50905081612dbf579350612eba92505050565b6000612dca88613503565b905060008160400151612ddb575080515b885b888114158015612ded5750848714155b15612eae57600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16158015928201929092529350612e5157612ea6565b82516001600160a01b031615612e6657825191505b8a6001600160a01b0316826001600160a01b03161415612ea65780848880600101995081518110612e9957612e99615a7b565b6020026020010181815250505b600101612ddd565b50505092835250909150505b9392505050565b6008546001600160a01b03163314612eeb5760405162461bcd60e51b815260040161129790615c00565b8015612f34576014805462010000900461ffff16906002612f0b83615c35565b91906101000a81548161ffff021916908361ffff16021790555050601c6000612f349190614b9a565b60005b825181101561124357612f86838281518110612f5557612f55615a7b565b602002602001015160000151848381518110612f7357612f73615a7b565b6020026020010151602001516000613127565b80612f9081615aa7565b915050612f37565b6001600160a01b038216331415612fc25760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b905090565b600080546000190161302e906102b8615c90565b600080613054848461381c565b601454909150600160e01b900461ffff16811115612eba575050601454600160e01b900461ffff166110ae565b601c81815481106125e857600080fd5b6008546001600160a01b031633146130bb5760405162461bcd60e51b815260040161129790615c00565b6014805461ffff909216600160e01b0261ffff60e01b19909216919091179055565b6130e884848461421e565b6001600160a01b0383163b15613121576131048484848461457d565b613121576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6008546001600160a01b031633146131515760405162461bcd60e51b815260040161129790615c00565b801561319a576014805462010000900461ffff1690600261317183615c35565b91906101000a81548161ffff021916908361ffff16021790555050601c600061319a9190614b9a565b60145462010000900461ffff166000908152601d6020908152604080832060ff871684529091528120839055805b601c5460ff8216101561322c578460ff16601c8260ff16815481106131ef576131ef615a7b565b60009182526020918290209181049091015460ff601f9092166101000a900416141561321a57600191505b8061322481615c57565b9150506131c8565b508061312157601c8054600181018255600091909152602081047f0e4562a10381dec21b205ed72637e6b1b523bdd0e4d4d50af5cd23dd4500a21101805460ff808816601f9094166101000a9384029302191691909117905550505050565b60145461ffff166000908152601a6020908152604080832060ff85168452909152812054606091816001600160401b038111156132ca576132ca615001565b6040519080825280602002602001820160405280156132f3578160200160208202803683370190505b50905060005b828110156127535760145461ffff166000908152601a6020908152604080832060ff89168452909152902080548290811061333657613336615a7b565b90600052602060002090601091828204019190066002029054906101000a900460010b82828151811061336b5761336b615a7b565b602002602001019060010b908160010b81525050808061338a90615aa7565b9150506132f9565b6008546001600160a01b031633146133bc5760405162461bcd60e51b815260040161129790615c00565b80156134065760148054600160201b900461ffff169060046133dd83615c35565b91906101000a81548161ffff021916908361ffff16021790555050601f60006134069190614bbf565b601454600160201b900461ffff166000908152601e60209081526040808320600187900b84529091528120839055805b601f5461ffff8216101561349d578460010b601f8261ffff168154811061345f5761345f615a7b565b60009182526020909120601082040154600f9091166002026101000a900460010b141561348b57600191505b8061349581615c35565b915050613436565b508061312157601f8054600181018255600091909152601081047fa03837a25210ee280c2113ff4b77ca23440b19d4866cca721c801278fd08d80701805461ffff8088166002600f909516949094026101000a9384029302191691909117905550505050565b6040805160608082018352600080835260208084018290528385018290528451928301855281835282018190529281019290925290600183108061354957506000548310155b156135545792915050565b50600082815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff1615801592820192909252906135b45792915050565b612eba83614409565b60606135c8826140a4565b6136085760405162461bcd60e51b81526020600482015260116024820152703737b732bc34b9ba32b73a103a37b5b2b760791b6044820152606401611297565b6015805461361590615ac2565b1515905061363157505060408051602081019091526000815290565b60408051602081019091526000815260165460ff16156136695750604080518082019091526005815264173539b7b760d91b60208201525b601561367484614671565b8260405160200161368793929190615ca7565b604051602081830303815290604052915050919050565b600085815260136020526040902054600b9060ff16156136d15760405162461bcd60e51b81526004016112979190615b15565b50601460069054906101000a90046001600160a01b03166001600160a01b031661371d8686604051602001611ec492919091825260601b6001600160601b031916602082015260340190565b6001600160a01b031614600a906137475760405162461bcd60e51b81526004016112979190615b15565b50505060009283525060136020526040909120805460ff19166001179055601480546001600160a01b03909216600160301b026601000000000000600160d01b0319909216919091179055565b60005b81811015611de0576137c285858585858181106137b6576137b6615a7b565b905060200201356125bd565b806137cc81615aa7565b915050613797565b6008546001600160a01b031633146137fe5760405162461bcd60e51b815260040161129790615c00565b6138088686612180565b6138128484612ec1565b611fc28282611fca565b6001600160a01b0382166000908152601060205260408120546014548290600160d01b900460ff16613853576000925050506110ae565b60145462010000810461ffff166000908152601d60209081526040808320600160d01b90940460ff16835292815282822054908052919020541061389c576000925050506110ae565b601454600160201b900461ffff166000908152601e60209081526040808320600188900b808552908352818420546001600160a01b038a16855260128452828520918552925290912054106138f6576000925050506110ae565b60145461ffff8116600090815260186020908152604080832060ff600160d01b909504851684528252808320600189900b84529091529020600301541615613974575060145461ffff81166000908152601860209081526040808320600160d01b90940460ff168352928152828220600187810b8452915291902001545b601454600160f01b900461ffff168210613993576000925050506110ae565b6001600160a01b0385166000908152601160209081526040808320601454600160d01b900460ff1684528252808320600188900b845290915290205481116139e0576000925050506110ae565b60145462010000810461ffff166000908152601d60209081526040808320600160d01b90940460ff168352928152828220549080529190205410613a29576000925050506110ae565b601454600160201b900461ffff166000908152601e60209081526040808320600188900b808552908352818420546001600160a01b038a1685526012845282852091855292529091205410613a83576000925050506110ae565b601454600090613a9f908490600160f01b900461ffff16615c90565b6001600160a01b0387166000908152601160209081526040808320601454600160d01b900460ff168452825280832060018a900b845290915281205491925090613ae99084615c90565b601454600160d01b810460ff16600081815260208080526040808320546201000090950461ffff168352601d82528083209383529290529081205492935091613b329190615c90565b6001600160a01b038916600090815260126020908152604080832060018c900b80855290835281842054601454600160201b900461ffff168552601e845282852091855292528220549293509091613b8a9190615c90565b9050613bb8613b97613033565b613bb3613bad613ba7888861476e565b8661476e565b8461476e565b61476e565b9998505050505050505050565b6008546001600160a01b03163314613bef5760405162461bcd60e51b815260040161129790615c00565b6014805460ff60d81b1916600160d81b179055565b60158054613c1190615ac2565b80601f0160208091040260200160405190810160405280929190818152602001828054613c3d90615ac2565b8015613c8a5780601f10613c5f57610100808354040283529160200191613c8a565b820191906000526020600020905b815481529060010190602001808311613c6d57829003601f168201915b505050505081565b6008546001600160a01b03163314613cbc5760405162461bcd60e51b815260040161129790615c00565b6001600160a01b038116613d215760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401611297565b613d2a8161452b565b50565b6008546001600160a01b03163314613d575760405162461bcd60e51b815260040161129790615c00565b60145461ffff16600090815260186020908152604080832060ff8087168552908352818420600186900b85529092529091206003015416613dcd5760405162461bcd60e51b815260206004820152601060248201526f149bdb19481b9bdd08195e1a5cdd195960821b6044820152606401611297565b6014805461ffff908116600090815260186020818152604080842060ff8916808652908352818520600189810b808852918552838720805460ff1990811690915589548916885286865284882084895286528488208389528652848820805462ffff001916905589548916885286865284882084895286528488208389528652848820909101879055885488168752858552838720838852855283872082885285528387206002018790558854881687529484528286208287528452828620908652835281852060030180549094169093559454841683526019815284832091835252918220805490911691613ec283615d3e565b91906101000a81548161ffff021916908361ffff1602179055505060005b60145461ffff166000908152601a6020908152604080832060ff80881685529252909120549082161015613fb85760145461ffff166000908152601a6020908152604080832060ff808816855292529091208054600185900b928416908110613f4b57613f4b615a7b565b60009182526020909120601082040154600f9091166002026101000a900460010b1415613fa65760145461ffff166000908152601a6020908152604080832060ff80881685529252909120613fa1918316614784565b613fb8565b80613fb081615c57565b915050613ee0565b5060145461ffff908116600090815260196020908152604080832060ff87168452909152902054166120fb5760005b601c5460ff82161015611243578260ff16601c8260ff168154811061400e5761400e615a7b565b60009182526020918290209181049091015460ff601f9092166101000a900416141561404257611243601c8260ff166148b8565b8061404c81615c57565b915050613fe7565b60006001600160e01b031982166380ac58cd60e01b148061408557506001600160e01b03198216635b5e139f60e01b145b806110ae57506301ffc9a760e01b6001600160e01b03198316146110ae565b6000816001111580156140b8575060005482105b80156110ae575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000808580519060200120905060008160405160200161418591907f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c810191909152603c0190565b60408051601f1981840301815282825280516020918201206000845290830180835281905260ff8916918301919091526060820187905260808201869052915060019060a0016020604051602081039080840390855afa1580156141ed573d6000803e3d6000fd5b50505060206040510351925050505b949350505050565b6120fb8282604051806020016040528060008152506149db565b600061422982614409565b9050836001600160a01b031681600001516001600160a01b0316146142605760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b038616148061427e575061427e8533610e60565b8061429957503361428e8461117d565b6001600160a01b0316145b9050806142b957604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0384166142e057604051633a954ecd60e21b815260040160405180910390fd5b6142ec600084876140dd565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b429092169190910217835587018084529220805491939091166143c05760005482146143c057805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611de0565b604080516060810182526000808252602082018190529181019190915281806001116145125760005481101561451257600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161515918101829052906145105780516001600160a01b0316156144a7579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff161515928101929092521561450b579392505050565b6144a7565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906145b2903390899088908890600401615d5c565b602060405180830381600087803b1580156145cc57600080fd5b505af19250505080156145fc575060408051601f3d908101601f191682019092526145f991810190615d99565b60015b614657573d80801561462a576040519150601f19603f3d011682016040523d82523d6000602084013e61462f565b606091505b50805161464f576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506141fc565b6060816146955750506040805180820190915260018152600360fc1b602082015290565b8160005b81156146bf57806146a981615aa7565b91506146b89050600a83615bcf565b9150614699565b6000816001600160401b038111156146d9576146d9615001565b6040519080825280601f01601f191660200182016040528015614703576020820181803683370190505b5090505b84156141fc57614718600183615c90565b9150614725600a86615db6565b614730906030615afd565b60f81b81838151811061474557614745615a7b565b60200101906001600160f81b031916908160001a905350614767600a86615bcf565b9450614707565b600081831061477d5781612eba565b5090919050565b805b825461479490600190615c90565b81101561483157826147a7826001615afd565b815481106147b7576147b7615a7b565b90600052602060002090601091828204019190066002029054906101000a900460010b8382815481106147ec576147ec615a7b565b90600052602060002090601091828204019190066002026101000a81548161ffff021916908360010b61ffff160217905550808061482990615aa7565b915050614786565b508154829061484290600190615c90565b8154811061485257614852615a7b565b90600052602060002090601091828204019190066002026101000a81549061ffff02191690558180548061488857614888615dca565b600082815260209020601060001990920191820401805461ffff6002600f8516026101000a021916905590555050565b805b82546148c890600190615c90565b81101561495a57826148db826001615afd565b815481106148eb576148eb615a7b565b90600052602060002090602091828204019190069054906101000a900460ff1683828154811061491d5761491d615a7b565b90600052602060002090602091828204019190066101000a81548160ff021916908360ff160217905550808061495290615aa7565b9150506148ba565b508154829061496b90600190615c90565b8154811061497b5761497b615a7b565b90600052602060002090602091828204019190066101000a81549060ff0219169055818054806149ad576149ad615dca565b60019003818190600052602060002090602091828204019190066101000a81549060ff021916905590555050565b6000546001600160a01b038416614a0457604051622e076360e81b815260040160405180910390fd5b82614a225760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038416600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168b018116918217600160401b67ffffffffffffffff1990941690921783900481168b01811690920217909155858452600490925290912080546001600160e01b0319168317600160a01b42909316929092029190911790558190818501903b15614b45575b60405182906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4614b0e600087848060010195508761457d565b614b2b576040516368d2bf6b60e11b815260040160405180910390fd5b808210614ac3578260005414614b4057600080fd5b614b8a565b5b6040516001830192906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210614b46575b5060009081556131219085838684565b50805460008255601f016020900490600052602060002090810190613d2a9190614c68565b50805460008255600f016010900490600052602060002090810190613d2a9190614c68565b828054614bf090615ac2565b90600052602060002090601f016020900481019282614c125760008555614c58565b82601f10614c2b57805160ff1916838001178555614c58565b82800160010185558215614c58579182015b82811115614c58578251825591602001919060010190614c3d565b50614c64929150614c68565b5090565b5b80821115614c645760008155600101614c69565b602080825282518282018190526000919060409081850190868401855b82811015614cc2578151805160ff168552860151868501529284019290850190600101614c9a565b5091979650505050505050565b6001600160e01b031981168114613d2a57600080fd5b600060208284031215614cf757600080fd5b8135612eba81614ccf565b600060208284031215614d1457600080fd5b5035919050565b60005b83811015614d36578181015183820152602001614d1e565b838111156131215750506000910152565b60008151808452614d5f816020860160208601614d1b565b601f01601f19169290920160200192915050565b602081526000612eba6020830184614d47565b80356001600160a01b0381168114614d9d57600080fd5b919050565b60008060408385031215614db557600080fd5b614dbe83614d86565b946020939093013593505050565b8035600181900b8114614d9d57600080fd5b803561ffff81168114614d9d57600080fd5b803560ff81168114614d9d57600080fd5b600080600080600080600080610100898b031215614e1e57600080fd5b88359750614e2e60208a01614dcc565b9650614e3c60408a01614dde565b9550614e4a60608a01614d86565b945060808901359350614e5f60a08a01614df0565b925060c0890135915060e089013590509295985092959890939650565b600060208284031215614e8e57600080fd5b612eba82614df0565b8015158114613d2a57600080fd5b600080600080600060a08688031215614ebd57600080fd5b614ec686614df0565b9450614ed460208701614dcc565b935060408601359250606086013591506080860135614ef281614e97565b809150509295509295909350565b600080600060608486031215614f1557600080fd5b614f1e84614dde565b9250614f2c60208501614df0565b9150604084013590509250925092565b600080600060608486031215614f5157600080fd5b614f5a84614d86565b9250614f2c60208501614d86565b600080600080600060a08688031215614f8057600080fd5b85359450614f9060208701614df0565b9350614f9e60408701614df0565b94979396509394606081013594506080013592915050565b60008083601f840112614fc857600080fd5b5081356001600160401b03811115614fdf57600080fd5b6020830191508360208260051b8501011115614ffa57600080fd5b9250929050565b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b038111828210171561503957615039615001565b60405290565b604051608081016001600160401b038111828210171561503957615039615001565b604051601f8201601f191681016001600160401b038111828210171561508957615089615001565b604052919050565b60006001600160401b038311156150aa576150aa615001565b6150bd601f8401601f1916602001615061565b90508281528383830111156150d157600080fd5b828260208301376000602084830101529392505050565b600082601f8301126150f957600080fd5b612eba83833560208501615091565b60008060008060006080868803121561512057600080fd5b61512986614d86565b945061513760208701614d86565b935060408601356001600160401b038082111561515357600080fd5b61515f89838a01614fb6565b9095509350606088013591508082111561517857600080fd5b50615185888289016150e8565b9150509295509295909350565b60006001600160401b038211156151ab576151ab615001565b5060051b60200190565b600082601f8301126151c657600080fd5b813560206151db6151d683615192565b615061565b82815260069290921b840181019181810190868411156151fa57600080fd5b8286015b8481101561524057604081890312156152175760008081fd5b61521f615017565b61522882614dcc565b815281850135858201528352918301916040016151fe565b509695505050505050565b6000806040838503121561525e57600080fd5b82356001600160401b0381111561527457600080fd5b615280858286016151b5565b925050602083013561529181614e97565b809150509250929050565b600082601f8301126152ad57600080fd5b813560206152bd6151d683615192565b82815260079290921b840181019181810190868411156152dc57600080fd5b8286015b8481101561524057608081890312156152f95760008081fd5b61530161503f565b61530a82614df0565b8152615317858301614dcc565b8186015260408281013590820152606080830135908201528352918301916080016152e0565b6000806040838503121561535057600080fd5b82356001600160401b0381111561536657600080fd5b6152808582860161529c565b60006020828403121561538457600080fd5b612eba82614dcc565b602080825282518282018190526000919060409081850190868401855b82811015614cc2578151805160ff16855286810151600190810b8887015286820151878701526060918201519186019190915260809094019391860191016153aa565b6000602082840312156153ff57600080fd5b81356001600160401b0381111561541557600080fd5b8201601f8101841361542657600080fd5b6141fc84823560208401615091565b6000602080838503121561544857600080fd5b82356001600160401b0381111561545e57600080fd5b8301601f8101851361546f57600080fd5b803561547d6151d682615192565b81815260059190911b8201830190838101908783111561549c57600080fd5b928401925b828410156154ba578335825292840192908401906154a1565b979650505050505050565b80516001600160a01b031682526020808201516001600160401b0316908301526040908101511515910152565b6020808252825182820181905260009190848201906040850190845b81811015612b75576155218385516154c5565b928401926060929092019160010161550e565b60006020828403121561554657600080fd5b8135612eba81614e97565b60006020828403121561556357600080fd5b612eba82614d86565b602080825282518282018190526000919060409081850190868401855b82811015614cc25781518051600190810b86529087015187860152938501939186019101615589565b6000602082840312156155c457600080fd5b612eba82614dde565b6020808252825182820181905260009190848201906040850190845b81811015612b75578351835292840192918401916001016155e9565b6000806000806060858703121561561b57600080fd5b61562485614d86565b935061563260208601614d86565b925060408501356001600160401b0381111561564d57600080fd5b61565987828801614fb6565b95989497509550505050565b60008060006060848603121561567a57600080fd5b61568384614d86565b95602085013595506040909401359392505050565b6000806000606084860312156156ad57600080fd5b6156b684614dde565b92506156c460208501614df0565b91506156d260408501614dcc565b90509250925092565b600082601f8301126156ec57600080fd5b813560206156fc6151d683615192565b82815260069290921b8401810191818101908684111561571b57600080fd5b8286015b8481101561524057604081890312156157385760008081fd5b615740615017565b61574982614df0565b8152818501358582015283529183019160400161571f565b6000806040838503121561577457600080fd5b82356001600160401b0381111561578a57600080fd5b615280858286016156db565b600080604083850312156157a957600080fd5b6157b283614d86565b9150602083013561529181614e97565b600080604083850312156157d557600080fd5b6157de83614d86565b91506157ec60208401614dcc565b90509250929050565b6000806000806080858703121561580b57600080fd5b61581485614d86565b935061582260208601614d86565b92506040850135915060608501356001600160401b0381111561584457600080fd5b615850878288016150e8565b91505092959194509250565b60008060006060848603121561587157600080fd5b61587a84614df0565b925060208401359150604084013561589181614e97565b809150509250925092565b600080604083850312156158af57600080fd5b6158b883614dde565b91506157ec60208401614df0565b6020808252825182820181905260009190848201906040850190845b81811015612b75578351600190810b84529385019392850192016158e2565b60008060006060848603121561591657600080fd5b61587a84614dcc565b606081016110ae82846154c5565b600080600080600060a0868803121561594557600080fd5b85359450614f9060208701614d86565b60008060008060008060c0878903121561596e57600080fd5b86356001600160401b038082111561598557600080fd5b6159918a838b0161529c565b9750602089013591506159a382614e97565b909550604088013590808211156159b957600080fd5b6159c58a838b016156db565b9550606089013591506159d782614e97565b909350608088013590808211156159ed57600080fd5b506159fa89828a016151b5565b92505060a0870135615a0b81614e97565b809150509295509295509295565b60008060408385031215615a2c57600080fd5b615a3583614d86565b91506157ec60208401614d86565b60008060408385031215615a5657600080fd5b6157de83614dde565b60008060408385031215615a7257600080fd5b6157de83614df0565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415615abb57615abb615a91565b5060010190565b600181811c90821680615ad657607f821691505b60208210811415615af757634e487b7160e01b600052602260045260246000fd5b50919050565b60008219821115615b1057615b10615a91565b500190565b6000602080835260008454615b2981615ac2565b80848701526040600180841660008114615b4a5760018114615b5e57615b8c565b60ff19851689840152606089019550615b8c565b896000528660002060005b85811015615b845781548b8201860152908301908801615b69565b8a0184019650505b509398975050505050505050565b6000816000190483118215151615615bb457615bb4615a91565b500290565b634e487b7160e01b600052601260045260246000fd5b600082615bde57615bde615bb9565b500490565b600060208284031215615bf557600080fd5b8151612eba81614e97565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600061ffff80831681811415615c4d57615c4d615a91565b6001019392505050565b600060ff821660ff811415615c6e57615c6e615a91565b60010192915050565b600060208284031215615c8957600080fd5b5051919050565b600082821015615ca257615ca2615a91565b500390565b6000808554615cb581615ac2565b60018281168015615ccd5760018114615cde57615d0d565b60ff19841687528287019450615d0d565b8960005260208060002060005b85811015615d045781548a820152908401908201615ceb565b50505082870194505b505050508451615d21818360208901614d1b565b8451910190615d34818360208801614d1b565b0195945050505050565b600061ffff821680615d5257615d52615a91565b6000190192915050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090615d8f90830184614d47565b9695505050505050565b600060208284031215615dab57600080fd5b8151612eba81614ccf565b600082615dc557615dc5615bb9565b500690565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220e8af675b00ca2676b2afacbd46ac491d9a580e42b339f2081b482020b38567eb64736f6c63430008090033
[ 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.