ERC-721
Overview
Max Total Supply
51 FOUNDO PASS
Holders
34
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 FOUNDO PASSLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
NFT721M
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "erc721a/contracts/ERC721A.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import {DefaultOperatorFilterer} from "./OperatorFilterRegistry/DefaultOperatorFilterer.sol"; import {MembershipPoints} from "./Membership/MembershipPoints.sol"; contract NFT721M is ERC721A, DefaultOperatorFilterer, AccessControl, Pausable, MembershipPoints, Ownable { using SafeMath for uint256; bytes32 public constant MODIFY_ROLE = keccak256("MODIFY_ROLE"); address public signer; string public baseUri; uint256 public maxCount; uint256 public individualWhiteListMintLimit; uint256 public individualPublicMintLimit; uint256 public whiteListMintPrice; uint256 public publicMintPrice; bool whiteListMintAvailable = false; bool publicMintAvailable = false; mapping(address => uint256) internal whiteListMintCountMap; mapping(address => uint256) internal publicMintCountMap; mapping(string => bool) internal nonceMap; mapping(uint256 => uint256) internal stakeMap; constructor() ERC721A("Foundo Pass", "FOUNDO PASS") { _setupRole(DEFAULT_ADMIN_ROLE, msg.sender); } event MintSuccess(address indexed operatorAddress, uint256 startId, uint256 quantity, uint256 price, string nonce, uint256 blockHeight); event LocalStakeSuccess(address indexed operatorAddress, uint256 tokenId, uint256 blockTimestamp); event LocalRedeemSuccess(address indexed operatorAddress, uint256 tokenId, uint256 blockTimestamp); //******SET UP****** function setBaseURI(string memory _newURI) public onlyOwner { baseUri = _newURI; } function setMaxCount(uint256 _maxCount) public onlyOwner { maxCount = _maxCount; } function setSigner(address _signer) public onlyOwner { signer = _signer; } function setWhiteListMintAvailable(bool _whiteListMintAvailable) public onlyOwner { whiteListMintAvailable = _whiteListMintAvailable; } function setPublicMintAvailable(bool _publicMintAvailable) public onlyOwner { publicMintAvailable = _publicMintAvailable; } function setWhiteListMintPrice(uint256 _whiteListMintPrice) public onlyOwner { whiteListMintPrice = _whiteListMintPrice; } function setPublicMintPrice(uint256 _publicMintPrice) public onlyOwner { publicMintPrice = _publicMintPrice; } function setIndividualWhiteListMintLimit(uint256 _individualWhiteListMintLimit) public onlyOwner { individualWhiteListMintLimit = _individualWhiteListMintLimit; } function setIndividualPublicMintLimit(uint256 _individualPublicMintLimit) public onlyOwner { individualPublicMintLimit = _individualPublicMintLimit; } function pause() public onlyOwner { _pause(); } function unpause() public onlyOwner { _unpause(); } //******Functions****** function _baseURI() internal view virtual override returns (string memory) { return baseUri; } function withdrawAll() public payable onlyOwner { payable(msg.sender).transfer(address(this).balance); } function withdraw(uint256 amount) public payable onlyOwner { payable(msg.sender).transfer(amount); } function modifyMembershipPoints(uint256 passId, int256 amount) public onlyRole(MODIFY_ROLE) whenNotPaused { _modifyMembershipPoints(passId, amount, ownerOf(passId)); } function claimMembershipPoints( uint256 passId, int256 amount, bytes32 hash, bytes memory signature, uint256 blockHeight, string memory nonce ) public verifyBlock(blockHeight) verifyNonce(nonce) verifySigner(hash, signature) whenNotPaused { require(claimMembershipPointsHash(passId, amount, blockHeight, nonce, "claim_foundo_membership_points") == hash, "Invalid hash!"); address ownerNow = ownerOf(passId); require(ownerNow == msg.sender, "Invalid pass owner!"); _modifyMembershipPoints(passId, amount, ownerNow); nonceMap[nonce] = true; } function whiteListMint( uint256 quantity, bytes32 hash, bytes memory signature, uint256 blockHeight, string memory nonce ) external payable verifyNonce(nonce) verifySigner(hash, signature) { require(whiteListMintAvailable, "White list mint not available!"); uint256 startId = _nextTokenId(); require( startId + quantity <= maxCount, "Not enough stock!" ); require( whiteListMintCountMap[msg.sender] + quantity <= individualWhiteListMintLimit, "You have reached individual white list mint limit!" ); require(whiteListMintHash(quantity, blockHeight, nonce, "foundo_pass_white_list_mint") == hash, "Invalid hash!"); uint256 totalPrice = quantity.mul(whiteListMintPrice); require(msg.value >= totalPrice, "Not enough money!"); nonceMap[nonce] = true; whiteListMintCountMap[msg.sender] = whiteListMintCountMap[msg.sender] + quantity; _safeMint(msg.sender, quantity); if (msg.value > totalPrice) { payable(msg.sender).transfer(msg.value - totalPrice); } emit MintSuccess(msg.sender, startId, quantity, totalPrice, nonce, blockHeight); } function mint(uint256 quantity) external payable { require(publicMintAvailable, "Mint not available!"); uint256 startId = _nextTokenId(); require( startId + quantity <= maxCount, "Not enough stock!" ); require( publicMintCountMap[msg.sender] + quantity <= individualPublicMintLimit, "You have reached individual public mint limit!" ); uint256 totalPrice = quantity.mul(publicMintPrice); require(msg.value >= totalPrice, "Not enough money!"); publicMintCountMap[msg.sender] = publicMintCountMap[msg.sender] + quantity; _safeMint(msg.sender, quantity); if (msg.value > totalPrice) { payable(msg.sender).transfer(msg.value - totalPrice); } emit MintSuccess(msg.sender, startId, quantity, totalPrice, "", 0); } function airdrop(address to, uint256 quantity) public onlyOwner { require( _nextTokenId() + quantity <= maxCount, "The quantity exceeds the stock!" ); _safeMint(to, quantity); } function burn(uint256 tokenId) external { _burn(tokenId, true); } function checkLocalStakeStatus(uint256 tokenId) public view returns (uint256) { return stakeMap[tokenId]; } function localStake(uint256[] memory tokenIds) external { for (uint256 i = 0; i < tokenIds.length; i++) { uint256 tokenId = tokenIds[i]; require(ownerOf(tokenId) == msg.sender, "Caller is not owner!"); if (stakeMap[tokenId] == 0) { stakeMap[tokenId] = block.timestamp; emit LocalStakeSuccess(msg.sender, tokenId, block.timestamp); } } } function localRedeem(uint256[] memory tokenIds) external { for (uint256 i = 0; i < tokenIds.length; i++) { uint256 tokenId = tokenIds[i]; require(ownerOf(tokenId) == msg.sender, "Caller is not owner!"); if (stakeMap[tokenId] > 0) { stakeMap[tokenId] = 0; emit LocalRedeemSuccess(msg.sender, tokenId, block.timestamp); } } } function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual override { require(stakeMap[startTokenId] == 0, "This token is staking!"); super._beforeTokenTransfers(from, to, startTokenId, quantity); } //******OperatorFilterer****** function setApprovalForAll(address operator, bool approved) public override onlyAllowedOperatorApproval(operator) { super.setApprovalForAll(operator, approved); } function approve(address operator, uint256 tokenId) public payable override onlyAllowedOperatorApproval(operator) { super.approve(operator, tokenId); } function transferFrom(address from, address to, uint256 tokenId) public payable override onlyAllowedOperator(from) whenNotPaused { super.transferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId) public payable override onlyAllowedOperator(from) whenNotPaused { super.safeTransferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public payable override onlyAllowedOperator(from) whenNotPaused { super.safeTransferFrom(from, to, tokenId, data); } //******Tool****** modifier verifyBlock(uint256 blockHeight){ require(blockHeight > block.number, "block expired!"); _; } modifier verifyNonce(string memory nonce){ require(!nonceMap[nonce], "Nonce already exist!"); _; } modifier verifySigner(bytes32 hash, bytes memory signature){ require(matchAddressSigner(hash, signature), "Invalid signature!"); _; } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721A, AccessControl) returns (bool) { return ERC721A.supportsInterface(interfaceId); } function claimMembershipPointsHash(uint256 passId, int256 amount, uint256 blockHeight, string memory nonce, string memory code) private view returns (bytes32) { bytes32 hash = keccak256( abi.encodePacked( "\x19Ethereum Signed Message:\n32", keccak256( abi.encodePacked(msg.sender, passId, amount, blockHeight, nonce, code) ) ) ); return hash; } function whiteListMintHash(uint256 quantity, uint256 blockHeight, string memory nonce, string memory code) private view returns (bytes32) { bytes32 hash = keccak256( abi.encodePacked( "\x19Ethereum Signed Message:\n32", keccak256( abi.encodePacked(msg.sender, quantity, blockHeight, nonce, code) ) ) ); return hash; } function matchAddressSigner(bytes32 hash, bytes memory signature) internal view returns (bool) { return signer == recoverSigner(hash, signature); } function recoverSigner( bytes32 _ethSignedMessageHash, bytes memory _signature ) internal pure returns (address){ (bytes32 r, bytes32 s, uint8 v) = splitSignature(_signature); return ecrecover(_ethSignedMessageHash, v, r, s); } function splitSignature(bytes memory sig) internal pure returns ( bytes32 r, bytes32 s, uint8 v ) { require(sig.length == 65, "Invalid signature length!"); assembly { r := mload(add(sig, 32)) s := mload(add(sig, 64)) v := byte(0, mload(add(sig, 96))) } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; contract MembershipPoints { mapping(uint256 => uint256) internal MembershipPointsMap; event MembershipPointsChanged(uint256 indexed passId, int256 indexed amount, address operatorAddress, uint256 membershipPointsNow, address ownerNow); function _modifyMembershipPoints(uint256 _passId, int256 _amount, address _ownerNow) internal virtual { require( int256(MembershipPointsMap[_passId]) + _amount >= 0, "amount verify failed" ); MembershipPointsMap[_passId] = uint256(int256(MembershipPointsMap[_passId]) + _amount); emit MembershipPointsChanged(_passId, _amount, msg.sender, MembershipPointsMap[_passId], _ownerNow); } function getMembershipPoints(uint256 passId) public view returns (uint256) { return MembershipPointsMap[passId]; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {OperatorFilterer} from "./OperatorFilterer.sol"; /** * @title DefaultOperatorFilterer * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription. */ abstract contract DefaultOperatorFilterer is OperatorFilterer { address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6); constructor() OperatorFilterer(DEFAULT_SUBSCRIPTION, true) {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (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 Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { 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 (last updated v4.7.0) (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 Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { 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.8.0) (access/AccessControl.sol) pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view virtual override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `_msgSender()` is missing `role`. * Overriding this function changes the behavior of the {onlyRole} modifier. * * Format of the revert message is described in {_checkRole}. * * _Available since v4.6._ */ function _checkRole(bytes32 role) internal view virtual { _checkRole(role, _msgSender()); } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view virtual { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(account), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleGranted} event. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleRevoked} event. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. * * May emit a {RoleRevoked} event. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * May emit a {RoleGranted} event. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. * * May emit a {RoleGranted} event. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. * * May emit a {RoleRevoked} event. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364). struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `curr` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @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) public payable virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId].value; } /** * @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) public virtual override { _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @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. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * 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 ) public payable virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public payable virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @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 memory _data ) public payable virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. // The duplicated `log4` removes an extra check and reduces stack juggling. // The assembly, together with the surrounding Solidity code, have been // delicately arranged to nudge the compiler into producing optimized opcodes. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) // The `iszero(eq(,))` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. // The compiler will optimize the `iszero` away for performance. for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), but // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 word for the trailing zeros padding, 1 word for the length, // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0. let m := add(mload(0x40), 0xa0) // Update the free memory pointer to allocate. mstore(0x40, m) // Assign the `str` to the end. str := sub(m, 0x20) // Zeroize the slot after the string. mstore(str, 0) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables * (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, * 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, bytes calldata data ) external payable; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Transfers `tokenId` 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 payable; /** * @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 payable; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol"; /** * @title OperatorFilterer * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another * registrant's entries in the OperatorFilterRegistry. * @dev This smart contract is meant to be inherited by token contracts so they can use the following: * - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods. * - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods. */ abstract contract OperatorFilterer { error OperatorNotAllowed(address operator); IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY = IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E); constructor(address subscriptionOrRegistrantToCopy, bool subscribe) { // If an inheriting token contract is deployed to a network without the registry deployed, the modifier // will not revert, but the contract will need to be registered with the registry once it is deployed in // order for the modifier to filter addresses. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { if (subscribe) { OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy); } else { if (subscriptionOrRegistrantToCopy != address(0)) { OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy); } else { OPERATOR_FILTER_REGISTRY.register(address(this)); } } } } modifier onlyAllowedOperator(address from) virtual { // Allow spending tokens from addresses with balance // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred // from an EOA. if (from != msg.sender) { _checkFilterOperator(msg.sender); } _; } modifier onlyAllowedOperatorApproval(address operator) virtual { _checkFilterOperator(operator); _; } function _checkFilterOperator(address operator) internal view virtual { // Check registry code length to facilitate testing in environments without a deployed registry. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) { revert OperatorNotAllowed(operator); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @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] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; interface IOperatorFilterRegistry { function isOperatorAllowed(address registrant, address operator) external view returns (bool); function register(address registrant) external; function registerAndSubscribe(address registrant, address subscription) external; function registerAndCopyEntries(address registrant, address registrantToCopy) external; function unregister(address addr) external; function updateOperator(address registrant, address operator, bool filtered) external; function updateOperators(address registrant, address[] calldata operators, bool filtered) external; function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external; function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external; function subscribe(address registrant, address registrantToSubscribe) external; function unsubscribe(address registrant, bool copyExistingEntries) external; function subscriptionOf(address addr) external returns (address registrant); function subscribers(address registrant) external returns (address[] memory); function subscriberAt(address registrant, uint256 index) external returns (address); function copyEntriesOf(address registrant, address registrantToCopy) external; function isOperatorFiltered(address registrant, address operator) external returns (bool); function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool); function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool); function filteredOperators(address addr) external returns (address[] memory); function filteredCodeHashes(address addr) external returns (bytes32[] memory); function filteredOperatorAt(address registrant, uint256 index) external returns (address); function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32); function isRegistered(address addr) external returns (bool); function codeHashOf(address addr) external returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
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":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","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":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operatorAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"blockTimestamp","type":"uint256"}],"name":"LocalRedeemSuccess","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operatorAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"blockTimestamp","type":"uint256"}],"name":"LocalStakeSuccess","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"passId","type":"uint256"},{"indexed":true,"internalType":"int256","name":"amount","type":"int256"},{"indexed":false,"internalType":"address","name":"operatorAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"membershipPointsNow","type":"uint256"},{"indexed":false,"internalType":"address","name":"ownerNow","type":"address"}],"name":"MembershipPointsChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operatorAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"startId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"quantity","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"},{"indexed":false,"internalType":"string","name":"nonce","type":"string"},{"indexed":false,"internalType":"uint256","name":"blockHeight","type":"uint256"}],"name":"MintSuccess","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":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MODIFY_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"checkLocalStakeStatus","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"passId","type":"uint256"},{"internalType":"int256","name":"amount","type":"int256"},{"internalType":"bytes32","name":"hash","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"uint256","name":"blockHeight","type":"uint256"},{"internalType":"string","name":"nonce","type":"string"}],"name":"claimMembershipPoints","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"passId","type":"uint256"}],"name":"getMembershipPoints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"individualPublicMintLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"individualWhiteListMintLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"localRedeem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"localStake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"passId","type":"uint256"},{"internalType":"int256","name":"amount","type":"int256"}],"name":"modifyMembershipPoints","outputs":[],"stateMutability":"nonpayable","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":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","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":"payable","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":"_newURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_individualPublicMintLimit","type":"uint256"}],"name":"setIndividualPublicMintLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_individualWhiteListMintLimit","type":"uint256"}],"name":"setIndividualWhiteListMintLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxCount","type":"uint256"}],"name":"setMaxCount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_publicMintAvailable","type":"bool"}],"name":"setPublicMintAvailable","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_publicMintPrice","type":"uint256"}],"name":"setPublicMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"}],"name":"setSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_whiteListMintAvailable","type":"bool"}],"name":"setWhiteListMintAvailable","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_whiteListMintPrice","type":"uint256"}],"name":"setWhiteListMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signer","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":[],"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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"bytes32","name":"hash","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"uint256","name":"blockHeight","type":"uint256"},{"internalType":"string","name":"nonce","type":"string"}],"name":"whiteListMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"whiteListMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"payable","type":"function"}]
Contract Creation Code
60806040526000601360006101000a81548160ff0219169083151502179055506000601360016101000a81548160ff0219169083151502179055503480156200004757600080fd5b50733cc6cdda760b79bafa08df41ecfa224f810dceb660016040518060400160405280600b81526020017f466f756e646f20506173730000000000000000000000000000000000000000008152506040518060400160405280600b81526020017f464f554e444f20504153530000000000000000000000000000000000000000008152508160029081620000dc919062000814565b508060039081620000ee919062000814565b50620000ff6200035460201b60201c565b600081905550505060006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115620002fc578015620001c2576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16637d3e3dbe30846040518363ffffffff1660e01b81526004016200018892919062000940565b600060405180830381600087803b158015620001a357600080fd5b505af1158015620001b8573d6000803e3d6000fd5b50505050620002fb565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146200027c576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663a0af290330846040518363ffffffff1660e01b81526004016200024292919062000940565b600060405180830381600087803b1580156200025d57600080fd5b505af115801562000272573d6000803e3d6000fd5b50505050620002fa565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16634420e486306040518263ffffffff1660e01b8152600401620002c591906200096d565b600060405180830381600087803b158015620002e057600080fd5b505af1158015620002f5573d6000803e3d6000fd5b505050505b5b5b50506000600960006101000a81548160ff021916908315150217905550620003396200032d6200035960201b60201c565b6200036160201b60201c565b6200034e6000801b336200042760201b60201c565b6200098a565b600090565b600033905090565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6200043982826200043d60201b60201c565b5050565b6200044f82826200052f60201b60201c565b6200052b5760016008600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550620004d06200035960201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b60006008600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200061c57607f821691505b602082108103620006325762000631620005d4565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026200069c7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826200065d565b620006a886836200065d565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b6000620006f5620006ef620006e984620006c0565b620006ca565b620006c0565b9050919050565b6000819050919050565b6200071183620006d4565b620007296200072082620006fc565b8484546200066a565b825550505050565b600090565b6200074062000731565b6200074d81848462000706565b505050565b5b8181101562000775576200076960008262000736565b60018101905062000753565b5050565b601f821115620007c4576200078e8162000638565b62000799846200064d565b81016020851015620007a9578190505b620007c1620007b8856200064d565b83018262000752565b50505b505050565b600082821c905092915050565b6000620007e960001984600802620007c9565b1980831691505092915050565b6000620008048383620007d6565b9150826002028217905092915050565b6200081f826200059a565b67ffffffffffffffff8111156200083b576200083a620005a5565b5b62000847825462000603565b6200085482828562000779565b600060209050601f8311600181146200088c576000841562000877578287015190505b620008838582620007f6565b865550620008f3565b601f1984166200089c8662000638565b60005b82811015620008c6578489015182556001820191506020850194506020810190506200089f565b86831015620008e65784890151620008e2601f891682620007d6565b8355505b6001600288020188555050505b505050505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200092882620008fb565b9050919050565b6200093a816200091b565b82525050565b60006040820190506200095760008301856200092f565b6200096660208301846200092f565b9392505050565b60006020820190506200098460008301846200092f565b92915050565b615f47806200099a6000396000f3fe60806040526004361061036b5760003560e01c80638456cb59116101c6578063ad14ea68116100f7578063daf4613511610095578063e985e9c51161006f578063e985e9c514610bf3578063f2fde38b14610c30578063f6fd63d414610c59578063fb26a51e14610c755761036b565b8063daf4613514610b76578063dc53fd9214610b9f578063e93fb70414610bca5761036b565b8063c480fa79116100d1578063c480fa7914610abc578063c87b56dd14610ae5578063d547741f14610b22578063d970565b14610b4b5761036b565b8063ad14ea6814610a4a578063b88d4fde14610a75578063bf97ef1e14610a915761036b565b80639ada158a11610164578063a0712d681161013e578063a0712d68146109b1578063a217fddf146109cd578063a22cb465146109f8578063a35e617f14610a215761036b565b80639ada158a146109345780639d9febe11461095d5780639ef2d87a146109865761036b565b80638da5cb5b116101a05780638da5cb5b1461087657806391d14854146108a157806395d89b41146108de5780639abc8320146109095761036b565b80638456cb591461082c578063853828b6146108435780638ba4cc3c1461084d5761036b565b806336568abe116102a05780635c975abb1161023e5780636c19e783116102185780636c19e7831461077257806370a082311461079b578063715018a6146107d85780637d58d622146107ef5761036b565b80635c975abb146106e15780635d82cf6e1461070c5780636352211e146107355761036b565b806341f434341161027a57806341f434341461064857806342842e0e1461067357806342966c681461068f57806355f804b3146106b85761036b565b806336568abe146105df57806339cccfc7146106085780633f4ba83a146106315761036b565b8063238ac9331161030d5780632785fc90116102e75780632785fc90146105465780632e1a7d4d146105715780632f2ff15d1461058d57806332738e97146105b65761036b565b8063238ac933146104c257806323b872dd146104ed578063248a9ca3146105095761036b565b8063081812fc11610349578063081812fc14610401578063095ea7b31461043e5780630e436e701461045a57806318160ddd146104975761036b565b806301ffc9a71461037057806306fdde03146103ad57806307ff4390146103d8575b600080fd5b34801561037c57600080fd5b5061039760048036038101906103929190613fae565b610c9e565b6040516103a49190613ff6565b60405180910390f35b3480156103b957600080fd5b506103c2610cb0565b6040516103cf91906140a1565b60405180910390f35b3480156103e457600080fd5b506103ff60048036038101906103fa91906140f9565b610d42565b005b34801561040d57600080fd5b50610428600480360381019061042391906140f9565b610d54565b6040516104359190614167565b60405180910390f35b610458600480360381019061045391906141ae565b610dd3565b005b34801561046657600080fd5b50610481600480360381019061047c91906140f9565b610dec565b60405161048e91906141fd565b60405180910390f35b3480156104a357600080fd5b506104ac610e09565b6040516104b991906141fd565b60405180910390f35b3480156104ce57600080fd5b506104d7610e20565b6040516104e49190614167565b60405180910390f35b61050760048036038101906105029190614218565b610e46565b005b34801561051557600080fd5b50610530600480360381019061052b91906142a1565b610e9d565b60405161053d91906142dd565b60405180910390f35b34801561055257600080fd5b5061055b610ebd565b60405161056891906141fd565b60405180910390f35b61058b600480360381019061058691906140f9565b610ec3565b005b34801561059957600080fd5b506105b460048036038101906105af91906142f8565b610f15565b005b3480156105c257600080fd5b506105dd60048036038101906105d89190614364565b610f36565b005b3480156105eb57600080fd5b50610606600480360381019061060191906142f8565b610f5b565b005b34801561061457600080fd5b5061062f600480360381019061062a919061459d565b610fde565b005b34801561063d57600080fd5b5061064661122e565b005b34801561065457600080fd5b5061065d611240565b60405161066a91906146c1565b60405180910390f35b61068d60048036038101906106889190614218565b611252565b005b34801561069b57600080fd5b506106b660048036038101906106b191906140f9565b6112a9565b005b3480156106c457600080fd5b506106df60048036038101906106da91906146dc565b6112b7565b005b3480156106ed57600080fd5b506106f66112d2565b6040516107039190613ff6565b60405180910390f35b34801561071857600080fd5b50610733600480360381019061072e91906140f9565b6112e9565b005b34801561074157600080fd5b5061075c600480360381019061075791906140f9565b6112fb565b6040516107699190614167565b60405180910390f35b34801561077e57600080fd5b5061079960048036038101906107949190614725565b61130d565b005b3480156107a757600080fd5b506107c260048036038101906107bd9190614725565b611359565b6040516107cf91906141fd565b60405180910390f35b3480156107e457600080fd5b506107ed611411565b005b3480156107fb57600080fd5b50610816600480360381019061081191906140f9565b611425565b60405161082391906141fd565b60405180910390f35b34801561083857600080fd5b50610841611442565b005b61084b611454565b005b34801561085957600080fd5b50610874600480360381019061086f91906141ae565b6114a5565b005b34801561088257600080fd5b5061088b611512565b6040516108989190614167565b60405180910390f35b3480156108ad57600080fd5b506108c860048036038101906108c391906142f8565b61153c565b6040516108d59190613ff6565b60405180910390f35b3480156108ea57600080fd5b506108f36115a7565b60405161090091906140a1565b60405180910390f35b34801561091557600080fd5b5061091e611639565b60405161092b91906140a1565b60405180910390f35b34801561094057600080fd5b5061095b600480360381019061095691906140f9565b6116c7565b005b34801561096957600080fd5b50610984600480360381019061097f919061481a565b6116d9565b005b34801561099257600080fd5b5061099b611818565b6040516109a891906141fd565b60405180910390f35b6109cb60048036038101906109c691906140f9565b61181e565b005b3480156109d957600080fd5b506109e2611b01565b6040516109ef91906142dd565b60405180910390f35b348015610a0457600080fd5b50610a1f6004803603810190610a1a9190614863565b611b08565b005b348015610a2d57600080fd5b50610a486004803603810190610a4391906140f9565b611b21565b005b348015610a5657600080fd5b50610a5f611b33565b604051610a6c91906141fd565b60405180910390f35b610a8f6004803603810190610a8a91906148a3565b611b39565b005b348015610a9d57600080fd5b50610aa6611b92565b604051610ab391906141fd565b60405180910390f35b348015610ac857600080fd5b50610ae36004803603810190610ade919061481a565b611b98565b005b348015610af157600080fd5b50610b0c6004803603810190610b0791906140f9565b611cd5565b604051610b1991906140a1565b60405180910390f35b348015610b2e57600080fd5b50610b496004803603810190610b4491906142f8565b611d73565b005b348015610b5757600080fd5b50610b60611d94565b604051610b6d91906142dd565b60405180910390f35b348015610b8257600080fd5b50610b9d6004803603810190610b989190614364565b611db8565b005b348015610bab57600080fd5b50610bb4611ddd565b604051610bc191906141fd565b60405180910390f35b348015610bd657600080fd5b50610bf16004803603810190610bec91906140f9565b611de3565b005b348015610bff57600080fd5b50610c1a6004803603810190610c159190614926565b611df5565b604051610c279190613ff6565b60405180910390f35b348015610c3c57600080fd5b50610c576004803603810190610c529190614725565b611e89565b005b610c736004803603810190610c6e9190614966565b611f0c565b005b348015610c8157600080fd5b50610c9c6004803603810190610c979190614a19565b612368565b005b6000610ca9826123b2565b9050919050565b606060028054610cbf90614a88565b80601f0160208091040260200160405190810160405280929190818152602001828054610ceb90614a88565b8015610d385780601f10610d0d57610100808354040283529160200191610d38565b820191906000526020600020905b815481529060010190602001808311610d1b57829003601f168201915b5050505050905090565b610d4a612444565b8060118190555050565b6000610d5f826124c2565b610d95576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b81610ddd81612521565b610de7838361261e565b505050565b600060176000838152602001908152602001600020549050919050565b6000610e13612762565b6001546000540303905090565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610e8457610e8333612521565b5b610e8c612767565b610e978484846127b1565b50505050565b600060086000838152602001908152602001600020600101549050919050565b600f5481565b610ecb612444565b3373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610f11573d6000803e3d6000fd5b5050565b610f1e82610e9d565b610f2781612ad3565b610f318383612ae7565b505050565b610f3e612444565b80601360016101000a81548160ff02191690831515021790555050565b610f63612bc8565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610fd0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fc790614b2b565b60405180910390fd5b610fda8282612bd0565b5050565b81438111611021576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161101890614b97565b60405180910390fd5b816016816040516110329190614bf3565b908152602001604051809103902060009054906101000a900460ff161561108e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161108590614c56565b60405180910390fd5b858561109a8282612cb2565b6110d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110d090614cc2565b60405180910390fd5b6110e1612767565b876111248b8b89896040518060400160405280601e81526020017f636c61696d5f666f756e646f5f6d656d626572736869705f706f696e74730000815250612d16565b14611164576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161115b90614d2e565b60405180910390fd5b600061116f8b6112fb565b90503373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146111df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111d690614d9a565b60405180910390fd5b6111ea8b8b83612d7f565b60016016876040516111fc9190614bf3565b908152602001604051809103902060006101000a81548160ff0219169083151502179055505050505050505050505050565b611236612444565b61123e612e6c565b565b6daaeb6d7670e522a718067333cd4e81565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146112905761128f33612521565b5b611298612767565b6112a3848484612ecf565b50505050565b6112b4816001612eef565b50565b6112bf612444565b80600d90816112ce9190614f5c565b5050565b6000600960009054906101000a900460ff16905090565b6112f1612444565b8060128190555050565b600061130682613141565b9050919050565b611315612444565b80600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036113c0576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611419612444565b611423600061320d565b565b6000600a6000838152602001908152602001600020549050919050565b61144a612444565b6114526132d3565b565b61145c612444565b3373ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f193505050501580156114a2573d6000803e3d6000fd5b50565b6114ad612444565b600e54816114b9613336565b6114c3919061505d565b1115611504576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114fb906150dd565b60405180910390fd5b61150e828261333f565b5050565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60006008600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6060600380546115b690614a88565b80601f01602080910402602001604051908101604052809291908181526020018280546115e290614a88565b801561162f5780601f106116045761010080835404028352916020019161162f565b820191906000526020600020905b81548152906001019060200180831161161257829003601f168201915b5050505050905090565b600d805461164690614a88565b80601f016020809104026020016040519081016040528092919081815260200182805461167290614a88565b80156116bf5780601f10611694576101008083540402835291602001916116bf565b820191906000526020600020905b8154815290600101906020018083116116a257829003601f168201915b505050505081565b6116cf612444565b80600f8190555050565b60005b81518110156118145760008282815181106116fa576116f96150fd565b5b602002602001015190503373ffffffffffffffffffffffffffffffffffffffff16611724826112fb565b73ffffffffffffffffffffffffffffffffffffffff161461177a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161177190615178565b60405180910390fd5b60006017600083815260200190815260200160002054111561180057600060176000838152602001908152602001600020819055503373ffffffffffffffffffffffffffffffffffffffff167f813e0b028fb3cc51cf1d6feec2ec2b2eb80086da4697b901597254177b22145282426040516117f7929190615198565b60405180910390a25b50808061180c906151c1565b9150506116dc565b5050565b600e5481565b601360019054906101000a900460ff1661186d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161186490615255565b60405180910390fd5b6000611877613336565b9050600e548282611888919061505d565b11156118c9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118c0906152c1565b60405180910390fd5b60105482601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611917919061505d565b1115611958576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161194f90615353565b60405180910390fd5b600061196f6012548461335d90919063ffffffff16565b9050803410156119b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119ab906153bf565b60405180910390fd5b82601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546119ff919061505d565b601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611a4c338461333f565b80341115611aa7573373ffffffffffffffffffffffffffffffffffffffff166108fc8234611a7a91906153df565b9081150290604051600060405180830381858888f19350505050158015611aa5573d6000803e3d6000fd5b505b3373ffffffffffffffffffffffffffffffffffffffff167f20d20a1ce9d17333deb911840fd3feb1d57c011b666242fcf606c689c5b1815e8385846000604051611af49493929190615474565b60405180910390a2505050565b6000801b81565b81611b1281612521565b611b1c8383613373565b505050565b611b29612444565b80600e8190555050565b60105481565b833373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611b7757611b7633612521565b5b611b7f612767565b611b8b8585858561347e565b5050505050565b60115481565b60005b8151811015611cd1576000828281518110611bb957611bb86150fd565b5b602002602001015190503373ffffffffffffffffffffffffffffffffffffffff16611be3826112fb565b73ffffffffffffffffffffffffffffffffffffffff1614611c39576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c3090615178565b60405180910390fd5b6000601760008381526020019081526020016000205403611cbd574260176000838152602001908152602001600020819055503373ffffffffffffffffffffffffffffffffffffffff167f5fdc3ce208a56b806023d98ff608dce3828851648619d6154823f3a0b105f0998242604051611cb4929190615198565b60405180910390a25b508080611cc9906151c1565b915050611b9b565b5050565b6060611ce0826124c2565b611d16576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611d206134f1565b90506000815103611d405760405180602001604052806000815250611d6b565b80611d4a84613583565b604051602001611d5b9291906154cc565b6040516020818303038152906040525b915050919050565b611d7c82610e9d565b611d8581612ad3565b611d8f8383612bd0565b505050565b7f939988319f0e332cbcac12c2ceebb890513ee15a65c79b459c2c9de1d3b0405b81565b611dc0612444565b80601360006101000a81548160ff02191690831515021790555050565b60125481565b611deb612444565b8060108190555050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611e91612444565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611f00576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ef790615562565b60405180910390fd5b611f098161320d565b50565b80601681604051611f1d9190614bf3565b908152602001604051809103902060009054906101000a900460ff1615611f79576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f7090614c56565b60405180910390fd5b8484611f858282612cb2565b611fc4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fbb90614cc2565b60405180910390fd5b601360009054906101000a900460ff16612013576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161200a906155ce565b60405180910390fd5b600061201d613336565b9050600e54898261202e919061505d565b111561206f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612066906152c1565b60405180910390fd5b600f5489601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546120bd919061505d565b11156120fe576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120f590615660565b60405180910390fd5b876121408a88886040518060400160405280601b81526020017f666f756e646f5f706173735f77686974655f6c6973745f6d696e7400000000008152506135d3565b14612180576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161217790614d2e565b60405180910390fd5b60006121976011548b61335d90919063ffffffff16565b9050803410156121dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121d3906153bf565b60405180910390fd5b60016016876040516121ee9190614bf3565b908152602001604051809103902060006101000a81548160ff02191690831515021790555089601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461225e919061505d565b601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506122ab338b61333f565b80341115612306573373ffffffffffffffffffffffffffffffffffffffff166108fc82346122d991906153df565b9081150290604051600060405180830381858888f19350505050158015612304573d6000803e3d6000fd5b505b3373ffffffffffffffffffffffffffffffffffffffff167f20d20a1ce9d17333deb911840fd3feb1d57c011b666242fcf606c689c5b1815e838c848a8c604051612354959493929190615680565b60405180910390a250505050505050505050565b7f939988319f0e332cbcac12c2ceebb890513ee15a65c79b459c2c9de1d3b0405b61239281612ad3565b61239a612767565b6123ad83836123a8866112fb565b612d7f565b505050565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061240d57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061243d5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b61244c612bc8565b73ffffffffffffffffffffffffffffffffffffffff1661246a611512565b73ffffffffffffffffffffffffffffffffffffffff16146124c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124b790615726565b60405180910390fd5b565b6000816124cd612762565b111580156124dc575060005482105b801561251a575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b60006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b111561261b576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b8152600401612598929190615746565b602060405180830381865afa1580156125b5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125d99190615784565b61261a57806040517fede71dcc0000000000000000000000000000000000000000000000000000000081526004016126119190614167565b60405180910390fd5b5b50565b6000612629826112fb565b90508073ffffffffffffffffffffffffffffffffffffffff1661264a613639565b73ffffffffffffffffffffffffffffffffffffffff16146126ad5761267681612671613639565b611df5565b6126ac576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600090565b61276f6112d2565b156127af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127a6906157fd565b60405180910390fd5b565b60006127bc82613141565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614612823576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008061282f84613641565b915091506128458187612840613639565b613668565b6128915761285a86612855613639565b611df5565b612890576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16036128f7576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61290486868660016136ac565b801561290f57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055506129dd856129b9888887613714565b7c02000000000000000000000000000000000000000000000000000000001761373c565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603612a635760006001850190506000600460008381526020019081526020016000205403612a61576000548114612a60578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612acb8686866001613767565b505050505050565b612ae481612adf612bc8565b61376d565b50565b612af1828261153c565b612bc45760016008600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550612b69612bc8565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b600033905090565b612bda828261153c565b15612cae5760006008600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550612c53612bc8565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6000612cbe83836137f2565b73ffffffffffffffffffffffffffffffffffffffff16600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614905092915050565b600080338787878787604051602001612d34969594939291906158a7565b60405160208183030381529060405280519060200120604051602001612d5a919061597c565b6040516020818303038152906040528051906020012090508091505095945050505050565b600082600a600086815260200190815260200160002054612da091906159a2565b1215612de1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612dd890615a32565b60405180910390fd5b81600a600085815260200190815260200160002054612e0091906159a2565b600a60008581526020019081526020016000208190555081837f033adf33aa499f1df665f6976022d983e22a9db390b31f7c0ee94b67ba52645633600a60008881526020019081526020016000205485604051612e5f93929190615a52565b60405180910390a3505050565b612e74613861565b6000600960006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa612eb8612bc8565b604051612ec59190614167565b60405180910390a1565b612eea83838360405180602001604052806000815250611b39565b505050565b6000612efa83613141565b90506000819050600080612f0d86613641565b915091508415612f7657612f298184612f24613639565b613668565b612f7557612f3e83612f39613639565b611df5565b612f74576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b5b612f848360008860016136ac565b8015612f8f57600082555b600160806001901b03600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555061303783612ff485600088613714565b7c02000000000000000000000000000000000000000000000000000000007c0100000000000000000000000000000000000000000000000000000000171761373c565b600460008881526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008516036130bd57600060018701905060006004600083815260200190815260200160002054036130bb5760005481146130ba578460046000838152602001908152602001600020819055505b5b505b85600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613127836000886001613767565b600160008154809291906001019190505550505050505050565b60008082905080613150612762565b116131d6576000548110156131d55760006004600083815260200190815260200160002054905060007c01000000000000000000000000000000000000000000000000000000008216036131d3575b600081036131c957600460008360019003935083815260200190815260200160002054905061319f565b8092505050613208565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6132db612767565b6001600960006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861331f612bc8565b60405161332c9190614167565b60405180910390a1565b60008054905090565b6133598282604051806020016040528060008152506138aa565b5050565b6000818361336b9190615a89565b905092915050565b8060076000613380613639565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661342d613639565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516134729190613ff6565b60405180910390a35050565b613489848484610e46565b60008373ffffffffffffffffffffffffffffffffffffffff163b146134eb576134b484848484613947565b6134ea576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b6060600d805461350090614a88565b80601f016020809104026020016040519081016040528092919081815260200182805461352c90614a88565b80156135795780601f1061354e57610100808354040283529160200191613579565b820191906000526020600020905b81548152906001019060200180831161355c57829003601f168201915b5050505050905090565b606060a060405101806040526020810391506000825281835b6001156135be57600184039350600a81066030018453600a810490508061359c575b50828103602084039350808452505050919050565b60008033868686866040516020016135ef959493929190615acb565b60405160208183030381529060405280519060200120604051602001613615919061597c565b60405160208183030381529060405280519060200120905080915050949350505050565b600033905090565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b6000601760008481526020019081526020016000205414613702576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136f990615b6e565b60405180910390fd5b61370e84848484613a97565b50505050565b60008060e883901c905060e861372b868684613a9d565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b613777828261153c565b6137ee5761378481613aa6565b6137928360001c6020613ad3565b6040516020016137a3929190615c26565b6040516020818303038152906040526040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137e591906140a1565b60405180910390fd5b5050565b60008060008061380185613d0f565b9250925092506001868285856040516000815260200160405260405161382a9493929190615c7c565b6020604051602081039080840390855afa15801561384c573d6000803e3d6000fd5b50505060206040510351935050505092915050565b6138696112d2565b6138a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161389f90615d0d565b60405180910390fd5b565b6138b48383613d77565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461394257600080549050600083820390505b6138f46000868380600101945086613947565b61392a576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181106138e157816000541461393f57600080fd5b50505b505050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261396d613639565b8786866040518563ffffffff1660e01b815260040161398f9493929190615d82565b6020604051808303816000875af19250505080156139cb57506040513d601f19601f820116820180604052508101906139c89190615de3565b60015b613a44573d80600081146139fb576040519150601f19603f3d011682016040523d82523d6000602084013e613a00565b606091505b506000815103613a3c576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b50505050565b60009392505050565b6060613acc8273ffffffffffffffffffffffffffffffffffffffff16601460ff16613ad3565b9050919050565b606060006002836002613ae69190615a89565b613af0919061505d565b67ffffffffffffffff811115613b0957613b086143d1565b5b6040519080825280601f01601f191660200182016040528015613b3b5781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110613b7357613b726150fd565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110613bd757613bd66150fd565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001846002613c179190615a89565b613c21919061505d565b90505b6001811115613cc1577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110613c6357613c626150fd565b5b1a60f81b828281518110613c7a57613c796150fd565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080613cba90615e10565b9050613c24565b5060008414613d05576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613cfc90615e85565b60405180910390fd5b8091505092915050565b60008060006041845114613d58576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613d4f90615ef1565b60405180910390fd5b6020840151925060408401519150606084015160001a90509193909250565b60008054905060008203613db7576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b613dc460008483856136ac565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550613e3b83613e2c6000866000613714565b613e3585613f32565b1761373c565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b818114613edc57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050613ea1565b5060008203613f17576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000819055505050613f2d6000848385613767565b505050565b60006001821460e11b9050919050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613f8b81613f56565b8114613f9657600080fd5b50565b600081359050613fa881613f82565b92915050565b600060208284031215613fc457613fc3613f4c565b5b6000613fd284828501613f99565b91505092915050565b60008115159050919050565b613ff081613fdb565b82525050565b600060208201905061400b6000830184613fe7565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561404b578082015181840152602081019050614030565b60008484015250505050565b6000601f19601f8301169050919050565b600061407382614011565b61407d818561401c565b935061408d81856020860161402d565b61409681614057565b840191505092915050565b600060208201905081810360008301526140bb8184614068565b905092915050565b6000819050919050565b6140d6816140c3565b81146140e157600080fd5b50565b6000813590506140f3816140cd565b92915050565b60006020828403121561410f5761410e613f4c565b5b600061411d848285016140e4565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061415182614126565b9050919050565b61416181614146565b82525050565b600060208201905061417c6000830184614158565b92915050565b61418b81614146565b811461419657600080fd5b50565b6000813590506141a881614182565b92915050565b600080604083850312156141c5576141c4613f4c565b5b60006141d385828601614199565b92505060206141e4858286016140e4565b9150509250929050565b6141f7816140c3565b82525050565b600060208201905061421260008301846141ee565b92915050565b60008060006060848603121561423157614230613f4c565b5b600061423f86828701614199565b935050602061425086828701614199565b9250506040614261868287016140e4565b9150509250925092565b6000819050919050565b61427e8161426b565b811461428957600080fd5b50565b60008135905061429b81614275565b92915050565b6000602082840312156142b7576142b6613f4c565b5b60006142c58482850161428c565b91505092915050565b6142d78161426b565b82525050565b60006020820190506142f260008301846142ce565b92915050565b6000806040838503121561430f5761430e613f4c565b5b600061431d8582860161428c565b925050602061432e85828601614199565b9150509250929050565b61434181613fdb565b811461434c57600080fd5b50565b60008135905061435e81614338565b92915050565b60006020828403121561437a57614379613f4c565b5b60006143888482850161434f565b91505092915050565b6000819050919050565b6143a481614391565b81146143af57600080fd5b50565b6000813590506143c18161439b565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61440982614057565b810181811067ffffffffffffffff82111715614428576144276143d1565b5b80604052505050565b600061443b613f42565b90506144478282614400565b919050565b600067ffffffffffffffff821115614467576144666143d1565b5b61447082614057565b9050602081019050919050565b82818337600083830152505050565b600061449f61449a8461444c565b614431565b9050828152602081018484840111156144bb576144ba6143cc565b5b6144c684828561447d565b509392505050565b600082601f8301126144e3576144e26143c7565b5b81356144f384826020860161448c565b91505092915050565b600067ffffffffffffffff821115614517576145166143d1565b5b61452082614057565b9050602081019050919050565b600061454061453b846144fc565b614431565b90508281526020810184848401111561455c5761455b6143cc565b5b61456784828561447d565b509392505050565b600082601f830112614584576145836143c7565b5b813561459484826020860161452d565b91505092915050565b60008060008060008060c087890312156145ba576145b9613f4c565b5b60006145c889828a016140e4565b96505060206145d989828a016143b2565b95505060406145ea89828a0161428c565b945050606087013567ffffffffffffffff81111561460b5761460a613f51565b5b61461789828a016144ce565b935050608061462889828a016140e4565b92505060a087013567ffffffffffffffff81111561464957614648613f51565b5b61465589828a0161456f565b9150509295509295509295565b6000819050919050565b600061468761468261467d84614126565b614662565b614126565b9050919050565b60006146998261466c565b9050919050565b60006146ab8261468e565b9050919050565b6146bb816146a0565b82525050565b60006020820190506146d660008301846146b2565b92915050565b6000602082840312156146f2576146f1613f4c565b5b600082013567ffffffffffffffff8111156147105761470f613f51565b5b61471c8482850161456f565b91505092915050565b60006020828403121561473b5761473a613f4c565b5b600061474984828501614199565b91505092915050565b600067ffffffffffffffff82111561476d5761476c6143d1565b5b602082029050602081019050919050565b600080fd5b600061479661479184614752565b614431565b905080838252602082019050602084028301858111156147b9576147b861477e565b5b835b818110156147e257806147ce88826140e4565b8452602084019350506020810190506147bb565b5050509392505050565b600082601f830112614801576148006143c7565b5b8135614811848260208601614783565b91505092915050565b6000602082840312156148305761482f613f4c565b5b600082013567ffffffffffffffff81111561484e5761484d613f51565b5b61485a848285016147ec565b91505092915050565b6000806040838503121561487a57614879613f4c565b5b600061488885828601614199565b92505060206148998582860161434f565b9150509250929050565b600080600080608085870312156148bd576148bc613f4c565b5b60006148cb87828801614199565b94505060206148dc87828801614199565b93505060406148ed878288016140e4565b925050606085013567ffffffffffffffff81111561490e5761490d613f51565b5b61491a878288016144ce565b91505092959194509250565b6000806040838503121561493d5761493c613f4c565b5b600061494b85828601614199565b925050602061495c85828601614199565b9150509250929050565b600080600080600060a0868803121561498257614981613f4c565b5b6000614990888289016140e4565b95505060206149a18882890161428c565b945050604086013567ffffffffffffffff8111156149c2576149c1613f51565b5b6149ce888289016144ce565b93505060606149df888289016140e4565b925050608086013567ffffffffffffffff811115614a00576149ff613f51565b5b614a0c8882890161456f565b9150509295509295909350565b60008060408385031215614a3057614a2f613f4c565b5b6000614a3e858286016140e4565b9250506020614a4f858286016143b2565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680614aa057607f821691505b602082108103614ab357614ab2614a59565b5b50919050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000614b15602f8361401c565b9150614b2082614ab9565b604082019050919050565b60006020820190508181036000830152614b4481614b08565b9050919050565b7f626c6f636b206578706972656421000000000000000000000000000000000000600082015250565b6000614b81600e8361401c565b9150614b8c82614b4b565b602082019050919050565b60006020820190508181036000830152614bb081614b74565b9050919050565b600081905092915050565b6000614bcd82614011565b614bd78185614bb7565b9350614be781856020860161402d565b80840191505092915050565b6000614bff8284614bc2565b915081905092915050565b7f4e6f6e636520616c726561647920657869737421000000000000000000000000600082015250565b6000614c4060148361401c565b9150614c4b82614c0a565b602082019050919050565b60006020820190508181036000830152614c6f81614c33565b9050919050565b7f496e76616c6964207369676e6174757265210000000000000000000000000000600082015250565b6000614cac60128361401c565b9150614cb782614c76565b602082019050919050565b60006020820190508181036000830152614cdb81614c9f565b9050919050565b7f496e76616c696420686173682100000000000000000000000000000000000000600082015250565b6000614d18600d8361401c565b9150614d2382614ce2565b602082019050919050565b60006020820190508181036000830152614d4781614d0b565b9050919050565b7f496e76616c69642070617373206f776e65722100000000000000000000000000600082015250565b6000614d8460138361401c565b9150614d8f82614d4e565b602082019050919050565b60006020820190508181036000830152614db381614d77565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302614e1c7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614ddf565b614e268683614ddf565b95508019841693508086168417925050509392505050565b6000614e59614e54614e4f846140c3565b614662565b6140c3565b9050919050565b6000819050919050565b614e7383614e3e565b614e87614e7f82614e60565b848454614dec565b825550505050565b600090565b614e9c614e8f565b614ea7818484614e6a565b505050565b5b81811015614ecb57614ec0600082614e94565b600181019050614ead565b5050565b601f821115614f1057614ee181614dba565b614eea84614dcf565b81016020851015614ef9578190505b614f0d614f0585614dcf565b830182614eac565b50505b505050565b600082821c905092915050565b6000614f3360001984600802614f15565b1980831691505092915050565b6000614f4c8383614f22565b9150826002028217905092915050565b614f6582614011565b67ffffffffffffffff811115614f7e57614f7d6143d1565b5b614f888254614a88565b614f93828285614ecf565b600060209050601f831160018114614fc65760008415614fb4578287015190505b614fbe8582614f40565b865550615026565b601f198416614fd486614dba565b60005b82811015614ffc57848901518255600182019150602085019450602081019050614fd7565b868310156150195784890151615015601f891682614f22565b8355505b6001600288020188555050505b505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000615068826140c3565b9150615073836140c3565b925082820190508082111561508b5761508a61502e565b5b92915050565b7f546865207175616e746974792065786365656473207468652073746f636b2100600082015250565b60006150c7601f8361401c565b91506150d282615091565b602082019050919050565b600060208201905081810360008301526150f6816150ba565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f43616c6c6572206973206e6f74206f776e657221000000000000000000000000600082015250565b600061516260148361401c565b915061516d8261512c565b602082019050919050565b6000602082019050818103600083015261519181615155565b9050919050565b60006040820190506151ad60008301856141ee565b6151ba60208301846141ee565b9392505050565b60006151cc826140c3565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036151fe576151fd61502e565b5b600182019050919050565b7f4d696e74206e6f7420617661696c61626c652100000000000000000000000000600082015250565b600061523f60138361401c565b915061524a82615209565b602082019050919050565b6000602082019050818103600083015261526e81615232565b9050919050565b7f4e6f7420656e6f7567682073746f636b21000000000000000000000000000000600082015250565b60006152ab60118361401c565b91506152b682615275565b602082019050919050565b600060208201905081810360008301526152da8161529e565b9050919050565b7f596f752068617665207265616368656420696e646976696475616c207075626c60008201527f6963206d696e74206c696d697421000000000000000000000000000000000000602082015250565b600061533d602e8361401c565b9150615348826152e1565b604082019050919050565b6000602082019050818103600083015261536c81615330565b9050919050565b7f4e6f7420656e6f756768206d6f6e657921000000000000000000000000000000600082015250565b60006153a960118361401c565b91506153b482615373565b602082019050919050565b600060208201905081810360008301526153d88161539c565b9050919050565b60006153ea826140c3565b91506153f5836140c3565b925082820390508181111561540d5761540c61502e565b5b92915050565b50565b600061542360008361401c565b915061542e82615413565b600082019050919050565b6000819050919050565b600061545e61545961545484615439565b614662565b6140c3565b9050919050565b61546e81615443565b82525050565b600060a08201905061548960008301876141ee565b61549660208301866141ee565b6154a360408301856141ee565b81810360608301526154b481615416565b90506154c36080830184615465565b95945050505050565b60006154d88285614bc2565b91506154e48284614bc2565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061554c60268361401c565b9150615557826154f0565b604082019050919050565b6000602082019050818103600083015261557b8161553f565b9050919050565b7f5768697465206c697374206d696e74206e6f7420617661696c61626c65210000600082015250565b60006155b8601e8361401c565b91506155c382615582565b602082019050919050565b600060208201905081810360008301526155e7816155ab565b9050919050565b7f596f752068617665207265616368656420696e646976696475616c207768697460008201527f65206c697374206d696e74206c696d6974210000000000000000000000000000602082015250565b600061564a60328361401c565b9150615655826155ee565b604082019050919050565b600060208201905081810360008301526156798161563d565b9050919050565b600060a08201905061569560008301886141ee565b6156a260208301876141ee565b6156af60408301866141ee565b81810360608301526156c18185614068565b90506156d060808301846141ee565b9695505050505050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061571060208361401c565b915061571b826156da565b602082019050919050565b6000602082019050818103600083015261573f81615703565b9050919050565b600060408201905061575b6000830185614158565b6157686020830184614158565b9392505050565b60008151905061577e81614338565b92915050565b60006020828403121561579a57615799613f4c565b5b60006157a88482850161576f565b91505092915050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b60006157e760108361401c565b91506157f2826157b1565b602082019050919050565b60006020820190508181036000830152615816816157da565b9050919050565b60008160601b9050919050565b60006158358261581d565b9050919050565b60006158478261582a565b9050919050565b61585f61585a82614146565b61583c565b82525050565b6000819050919050565b61588061587b826140c3565b615865565b82525050565b6000819050919050565b6158a161589c82614391565b615886565b82525050565b60006158b3828961584e565b6014820191506158c3828861586f565b6020820191506158d38287615890565b6020820191506158e3828661586f565b6020820191506158f38285614bc2565b91506158ff8284614bc2565b9150819050979650505050505050565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b6000615945601c83614bb7565b91506159508261590f565b601c82019050919050565b6000819050919050565b6159766159718261426b565b61595b565b82525050565b600061598782615938565b91506159938284615965565b60208201915081905092915050565b60006159ad82614391565b91506159b883614391565b9250828201905082811215600083121683821260008412151617156159e0576159df61502e565b5b92915050565b7f616d6f756e7420766572696679206661696c6564000000000000000000000000600082015250565b6000615a1c60148361401c565b9150615a27826159e6565b602082019050919050565b60006020820190508181036000830152615a4b81615a0f565b9050919050565b6000606082019050615a676000830186614158565b615a7460208301856141ee565b615a816040830184614158565b949350505050565b6000615a94826140c3565b9150615a9f836140c3565b9250828202615aad816140c3565b91508282048414831517615ac457615ac361502e565b5b5092915050565b6000615ad7828861584e565b601482019150615ae7828761586f565b602082019150615af7828661586f565b602082019150615b078285614bc2565b9150615b138284614bc2565b91508190509695505050505050565b7f5468697320746f6b656e206973207374616b696e672100000000000000000000600082015250565b6000615b5860168361401c565b9150615b6382615b22565b602082019050919050565b60006020820190508181036000830152615b8781615b4b565b9050919050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b6000615bc4601783614bb7565b9150615bcf82615b8e565b601782019050919050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b6000615c10601183614bb7565b9150615c1b82615bda565b601182019050919050565b6000615c3182615bb7565b9150615c3d8285614bc2565b9150615c4882615c03565b9150615c548284614bc2565b91508190509392505050565b600060ff82169050919050565b615c7681615c60565b82525050565b6000608082019050615c9160008301876142ce565b615c9e6020830186615c6d565b615cab60408301856142ce565b615cb860608301846142ce565b95945050505050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b6000615cf760148361401c565b9150615d0282615cc1565b602082019050919050565b60006020820190508181036000830152615d2681615cea565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000615d5482615d2d565b615d5e8185615d38565b9350615d6e81856020860161402d565b615d7781614057565b840191505092915050565b6000608082019050615d976000830187614158565b615da46020830186614158565b615db160408301856141ee565b8181036060830152615dc38184615d49565b905095945050505050565b600081519050615ddd81613f82565b92915050565b600060208284031215615df957615df8613f4c565b5b6000615e0784828501615dce565b91505092915050565b6000615e1b826140c3565b915060008203615e2e57615e2d61502e565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b6000615e6f60208361401c565b9150615e7a82615e39565b602082019050919050565b60006020820190508181036000830152615e9e81615e62565b9050919050565b7f496e76616c6964207369676e6174757265206c656e6774682100000000000000600082015250565b6000615edb60198361401c565b9150615ee682615ea5565b602082019050919050565b60006020820190508181036000830152615f0a81615ece565b905091905056fea264697066735822122070817e04cace16e935c78909f2fa01101541b4b8ceda3ec79d6e373e8fe2c30864736f6c63430008110033
Deployed Bytecode
0x60806040526004361061036b5760003560e01c80638456cb59116101c6578063ad14ea68116100f7578063daf4613511610095578063e985e9c51161006f578063e985e9c514610bf3578063f2fde38b14610c30578063f6fd63d414610c59578063fb26a51e14610c755761036b565b8063daf4613514610b76578063dc53fd9214610b9f578063e93fb70414610bca5761036b565b8063c480fa79116100d1578063c480fa7914610abc578063c87b56dd14610ae5578063d547741f14610b22578063d970565b14610b4b5761036b565b8063ad14ea6814610a4a578063b88d4fde14610a75578063bf97ef1e14610a915761036b565b80639ada158a11610164578063a0712d681161013e578063a0712d68146109b1578063a217fddf146109cd578063a22cb465146109f8578063a35e617f14610a215761036b565b80639ada158a146109345780639d9febe11461095d5780639ef2d87a146109865761036b565b80638da5cb5b116101a05780638da5cb5b1461087657806391d14854146108a157806395d89b41146108de5780639abc8320146109095761036b565b80638456cb591461082c578063853828b6146108435780638ba4cc3c1461084d5761036b565b806336568abe116102a05780635c975abb1161023e5780636c19e783116102185780636c19e7831461077257806370a082311461079b578063715018a6146107d85780637d58d622146107ef5761036b565b80635c975abb146106e15780635d82cf6e1461070c5780636352211e146107355761036b565b806341f434341161027a57806341f434341461064857806342842e0e1461067357806342966c681461068f57806355f804b3146106b85761036b565b806336568abe146105df57806339cccfc7146106085780633f4ba83a146106315761036b565b8063238ac9331161030d5780632785fc90116102e75780632785fc90146105465780632e1a7d4d146105715780632f2ff15d1461058d57806332738e97146105b65761036b565b8063238ac933146104c257806323b872dd146104ed578063248a9ca3146105095761036b565b8063081812fc11610349578063081812fc14610401578063095ea7b31461043e5780630e436e701461045a57806318160ddd146104975761036b565b806301ffc9a71461037057806306fdde03146103ad57806307ff4390146103d8575b600080fd5b34801561037c57600080fd5b5061039760048036038101906103929190613fae565b610c9e565b6040516103a49190613ff6565b60405180910390f35b3480156103b957600080fd5b506103c2610cb0565b6040516103cf91906140a1565b60405180910390f35b3480156103e457600080fd5b506103ff60048036038101906103fa91906140f9565b610d42565b005b34801561040d57600080fd5b50610428600480360381019061042391906140f9565b610d54565b6040516104359190614167565b60405180910390f35b610458600480360381019061045391906141ae565b610dd3565b005b34801561046657600080fd5b50610481600480360381019061047c91906140f9565b610dec565b60405161048e91906141fd565b60405180910390f35b3480156104a357600080fd5b506104ac610e09565b6040516104b991906141fd565b60405180910390f35b3480156104ce57600080fd5b506104d7610e20565b6040516104e49190614167565b60405180910390f35b61050760048036038101906105029190614218565b610e46565b005b34801561051557600080fd5b50610530600480360381019061052b91906142a1565b610e9d565b60405161053d91906142dd565b60405180910390f35b34801561055257600080fd5b5061055b610ebd565b60405161056891906141fd565b60405180910390f35b61058b600480360381019061058691906140f9565b610ec3565b005b34801561059957600080fd5b506105b460048036038101906105af91906142f8565b610f15565b005b3480156105c257600080fd5b506105dd60048036038101906105d89190614364565b610f36565b005b3480156105eb57600080fd5b50610606600480360381019061060191906142f8565b610f5b565b005b34801561061457600080fd5b5061062f600480360381019061062a919061459d565b610fde565b005b34801561063d57600080fd5b5061064661122e565b005b34801561065457600080fd5b5061065d611240565b60405161066a91906146c1565b60405180910390f35b61068d60048036038101906106889190614218565b611252565b005b34801561069b57600080fd5b506106b660048036038101906106b191906140f9565b6112a9565b005b3480156106c457600080fd5b506106df60048036038101906106da91906146dc565b6112b7565b005b3480156106ed57600080fd5b506106f66112d2565b6040516107039190613ff6565b60405180910390f35b34801561071857600080fd5b50610733600480360381019061072e91906140f9565b6112e9565b005b34801561074157600080fd5b5061075c600480360381019061075791906140f9565b6112fb565b6040516107699190614167565b60405180910390f35b34801561077e57600080fd5b5061079960048036038101906107949190614725565b61130d565b005b3480156107a757600080fd5b506107c260048036038101906107bd9190614725565b611359565b6040516107cf91906141fd565b60405180910390f35b3480156107e457600080fd5b506107ed611411565b005b3480156107fb57600080fd5b50610816600480360381019061081191906140f9565b611425565b60405161082391906141fd565b60405180910390f35b34801561083857600080fd5b50610841611442565b005b61084b611454565b005b34801561085957600080fd5b50610874600480360381019061086f91906141ae565b6114a5565b005b34801561088257600080fd5b5061088b611512565b6040516108989190614167565b60405180910390f35b3480156108ad57600080fd5b506108c860048036038101906108c391906142f8565b61153c565b6040516108d59190613ff6565b60405180910390f35b3480156108ea57600080fd5b506108f36115a7565b60405161090091906140a1565b60405180910390f35b34801561091557600080fd5b5061091e611639565b60405161092b91906140a1565b60405180910390f35b34801561094057600080fd5b5061095b600480360381019061095691906140f9565b6116c7565b005b34801561096957600080fd5b50610984600480360381019061097f919061481a565b6116d9565b005b34801561099257600080fd5b5061099b611818565b6040516109a891906141fd565b60405180910390f35b6109cb60048036038101906109c691906140f9565b61181e565b005b3480156109d957600080fd5b506109e2611b01565b6040516109ef91906142dd565b60405180910390f35b348015610a0457600080fd5b50610a1f6004803603810190610a1a9190614863565b611b08565b005b348015610a2d57600080fd5b50610a486004803603810190610a4391906140f9565b611b21565b005b348015610a5657600080fd5b50610a5f611b33565b604051610a6c91906141fd565b60405180910390f35b610a8f6004803603810190610a8a91906148a3565b611b39565b005b348015610a9d57600080fd5b50610aa6611b92565b604051610ab391906141fd565b60405180910390f35b348015610ac857600080fd5b50610ae36004803603810190610ade919061481a565b611b98565b005b348015610af157600080fd5b50610b0c6004803603810190610b0791906140f9565b611cd5565b604051610b1991906140a1565b60405180910390f35b348015610b2e57600080fd5b50610b496004803603810190610b4491906142f8565b611d73565b005b348015610b5757600080fd5b50610b60611d94565b604051610b6d91906142dd565b60405180910390f35b348015610b8257600080fd5b50610b9d6004803603810190610b989190614364565b611db8565b005b348015610bab57600080fd5b50610bb4611ddd565b604051610bc191906141fd565b60405180910390f35b348015610bd657600080fd5b50610bf16004803603810190610bec91906140f9565b611de3565b005b348015610bff57600080fd5b50610c1a6004803603810190610c159190614926565b611df5565b604051610c279190613ff6565b60405180910390f35b348015610c3c57600080fd5b50610c576004803603810190610c529190614725565b611e89565b005b610c736004803603810190610c6e9190614966565b611f0c565b005b348015610c8157600080fd5b50610c9c6004803603810190610c979190614a19565b612368565b005b6000610ca9826123b2565b9050919050565b606060028054610cbf90614a88565b80601f0160208091040260200160405190810160405280929190818152602001828054610ceb90614a88565b8015610d385780601f10610d0d57610100808354040283529160200191610d38565b820191906000526020600020905b815481529060010190602001808311610d1b57829003601f168201915b5050505050905090565b610d4a612444565b8060118190555050565b6000610d5f826124c2565b610d95576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b81610ddd81612521565b610de7838361261e565b505050565b600060176000838152602001908152602001600020549050919050565b6000610e13612762565b6001546000540303905090565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610e8457610e8333612521565b5b610e8c612767565b610e978484846127b1565b50505050565b600060086000838152602001908152602001600020600101549050919050565b600f5481565b610ecb612444565b3373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610f11573d6000803e3d6000fd5b5050565b610f1e82610e9d565b610f2781612ad3565b610f318383612ae7565b505050565b610f3e612444565b80601360016101000a81548160ff02191690831515021790555050565b610f63612bc8565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610fd0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fc790614b2b565b60405180910390fd5b610fda8282612bd0565b5050565b81438111611021576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161101890614b97565b60405180910390fd5b816016816040516110329190614bf3565b908152602001604051809103902060009054906101000a900460ff161561108e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161108590614c56565b60405180910390fd5b858561109a8282612cb2565b6110d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110d090614cc2565b60405180910390fd5b6110e1612767565b876111248b8b89896040518060400160405280601e81526020017f636c61696d5f666f756e646f5f6d656d626572736869705f706f696e74730000815250612d16565b14611164576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161115b90614d2e565b60405180910390fd5b600061116f8b6112fb565b90503373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146111df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111d690614d9a565b60405180910390fd5b6111ea8b8b83612d7f565b60016016876040516111fc9190614bf3565b908152602001604051809103902060006101000a81548160ff0219169083151502179055505050505050505050505050565b611236612444565b61123e612e6c565b565b6daaeb6d7670e522a718067333cd4e81565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146112905761128f33612521565b5b611298612767565b6112a3848484612ecf565b50505050565b6112b4816001612eef565b50565b6112bf612444565b80600d90816112ce9190614f5c565b5050565b6000600960009054906101000a900460ff16905090565b6112f1612444565b8060128190555050565b600061130682613141565b9050919050565b611315612444565b80600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036113c0576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611419612444565b611423600061320d565b565b6000600a6000838152602001908152602001600020549050919050565b61144a612444565b6114526132d3565b565b61145c612444565b3373ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f193505050501580156114a2573d6000803e3d6000fd5b50565b6114ad612444565b600e54816114b9613336565b6114c3919061505d565b1115611504576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114fb906150dd565b60405180910390fd5b61150e828261333f565b5050565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60006008600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6060600380546115b690614a88565b80601f01602080910402602001604051908101604052809291908181526020018280546115e290614a88565b801561162f5780601f106116045761010080835404028352916020019161162f565b820191906000526020600020905b81548152906001019060200180831161161257829003601f168201915b5050505050905090565b600d805461164690614a88565b80601f016020809104026020016040519081016040528092919081815260200182805461167290614a88565b80156116bf5780601f10611694576101008083540402835291602001916116bf565b820191906000526020600020905b8154815290600101906020018083116116a257829003601f168201915b505050505081565b6116cf612444565b80600f8190555050565b60005b81518110156118145760008282815181106116fa576116f96150fd565b5b602002602001015190503373ffffffffffffffffffffffffffffffffffffffff16611724826112fb565b73ffffffffffffffffffffffffffffffffffffffff161461177a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161177190615178565b60405180910390fd5b60006017600083815260200190815260200160002054111561180057600060176000838152602001908152602001600020819055503373ffffffffffffffffffffffffffffffffffffffff167f813e0b028fb3cc51cf1d6feec2ec2b2eb80086da4697b901597254177b22145282426040516117f7929190615198565b60405180910390a25b50808061180c906151c1565b9150506116dc565b5050565b600e5481565b601360019054906101000a900460ff1661186d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161186490615255565b60405180910390fd5b6000611877613336565b9050600e548282611888919061505d565b11156118c9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118c0906152c1565b60405180910390fd5b60105482601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611917919061505d565b1115611958576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161194f90615353565b60405180910390fd5b600061196f6012548461335d90919063ffffffff16565b9050803410156119b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119ab906153bf565b60405180910390fd5b82601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546119ff919061505d565b601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611a4c338461333f565b80341115611aa7573373ffffffffffffffffffffffffffffffffffffffff166108fc8234611a7a91906153df565b9081150290604051600060405180830381858888f19350505050158015611aa5573d6000803e3d6000fd5b505b3373ffffffffffffffffffffffffffffffffffffffff167f20d20a1ce9d17333deb911840fd3feb1d57c011b666242fcf606c689c5b1815e8385846000604051611af49493929190615474565b60405180910390a2505050565b6000801b81565b81611b1281612521565b611b1c8383613373565b505050565b611b29612444565b80600e8190555050565b60105481565b833373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611b7757611b7633612521565b5b611b7f612767565b611b8b8585858561347e565b5050505050565b60115481565b60005b8151811015611cd1576000828281518110611bb957611bb86150fd565b5b602002602001015190503373ffffffffffffffffffffffffffffffffffffffff16611be3826112fb565b73ffffffffffffffffffffffffffffffffffffffff1614611c39576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c3090615178565b60405180910390fd5b6000601760008381526020019081526020016000205403611cbd574260176000838152602001908152602001600020819055503373ffffffffffffffffffffffffffffffffffffffff167f5fdc3ce208a56b806023d98ff608dce3828851648619d6154823f3a0b105f0998242604051611cb4929190615198565b60405180910390a25b508080611cc9906151c1565b915050611b9b565b5050565b6060611ce0826124c2565b611d16576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611d206134f1565b90506000815103611d405760405180602001604052806000815250611d6b565b80611d4a84613583565b604051602001611d5b9291906154cc565b6040516020818303038152906040525b915050919050565b611d7c82610e9d565b611d8581612ad3565b611d8f8383612bd0565b505050565b7f939988319f0e332cbcac12c2ceebb890513ee15a65c79b459c2c9de1d3b0405b81565b611dc0612444565b80601360006101000a81548160ff02191690831515021790555050565b60125481565b611deb612444565b8060108190555050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611e91612444565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611f00576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ef790615562565b60405180910390fd5b611f098161320d565b50565b80601681604051611f1d9190614bf3565b908152602001604051809103902060009054906101000a900460ff1615611f79576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f7090614c56565b60405180910390fd5b8484611f858282612cb2565b611fc4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fbb90614cc2565b60405180910390fd5b601360009054906101000a900460ff16612013576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161200a906155ce565b60405180910390fd5b600061201d613336565b9050600e54898261202e919061505d565b111561206f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612066906152c1565b60405180910390fd5b600f5489601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546120bd919061505d565b11156120fe576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120f590615660565b60405180910390fd5b876121408a88886040518060400160405280601b81526020017f666f756e646f5f706173735f77686974655f6c6973745f6d696e7400000000008152506135d3565b14612180576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161217790614d2e565b60405180910390fd5b60006121976011548b61335d90919063ffffffff16565b9050803410156121dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121d3906153bf565b60405180910390fd5b60016016876040516121ee9190614bf3565b908152602001604051809103902060006101000a81548160ff02191690831515021790555089601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461225e919061505d565b601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506122ab338b61333f565b80341115612306573373ffffffffffffffffffffffffffffffffffffffff166108fc82346122d991906153df565b9081150290604051600060405180830381858888f19350505050158015612304573d6000803e3d6000fd5b505b3373ffffffffffffffffffffffffffffffffffffffff167f20d20a1ce9d17333deb911840fd3feb1d57c011b666242fcf606c689c5b1815e838c848a8c604051612354959493929190615680565b60405180910390a250505050505050505050565b7f939988319f0e332cbcac12c2ceebb890513ee15a65c79b459c2c9de1d3b0405b61239281612ad3565b61239a612767565b6123ad83836123a8866112fb565b612d7f565b505050565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061240d57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061243d5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b61244c612bc8565b73ffffffffffffffffffffffffffffffffffffffff1661246a611512565b73ffffffffffffffffffffffffffffffffffffffff16146124c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124b790615726565b60405180910390fd5b565b6000816124cd612762565b111580156124dc575060005482105b801561251a575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b60006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b111561261b576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b8152600401612598929190615746565b602060405180830381865afa1580156125b5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125d99190615784565b61261a57806040517fede71dcc0000000000000000000000000000000000000000000000000000000081526004016126119190614167565b60405180910390fd5b5b50565b6000612629826112fb565b90508073ffffffffffffffffffffffffffffffffffffffff1661264a613639565b73ffffffffffffffffffffffffffffffffffffffff16146126ad5761267681612671613639565b611df5565b6126ac576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600090565b61276f6112d2565b156127af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127a6906157fd565b60405180910390fd5b565b60006127bc82613141565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614612823576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008061282f84613641565b915091506128458187612840613639565b613668565b6128915761285a86612855613639565b611df5565b612890576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16036128f7576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61290486868660016136ac565b801561290f57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055506129dd856129b9888887613714565b7c02000000000000000000000000000000000000000000000000000000001761373c565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603612a635760006001850190506000600460008381526020019081526020016000205403612a61576000548114612a60578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612acb8686866001613767565b505050505050565b612ae481612adf612bc8565b61376d565b50565b612af1828261153c565b612bc45760016008600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550612b69612bc8565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b600033905090565b612bda828261153c565b15612cae5760006008600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550612c53612bc8565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6000612cbe83836137f2565b73ffffffffffffffffffffffffffffffffffffffff16600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614905092915050565b600080338787878787604051602001612d34969594939291906158a7565b60405160208183030381529060405280519060200120604051602001612d5a919061597c565b6040516020818303038152906040528051906020012090508091505095945050505050565b600082600a600086815260200190815260200160002054612da091906159a2565b1215612de1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612dd890615a32565b60405180910390fd5b81600a600085815260200190815260200160002054612e0091906159a2565b600a60008581526020019081526020016000208190555081837f033adf33aa499f1df665f6976022d983e22a9db390b31f7c0ee94b67ba52645633600a60008881526020019081526020016000205485604051612e5f93929190615a52565b60405180910390a3505050565b612e74613861565b6000600960006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa612eb8612bc8565b604051612ec59190614167565b60405180910390a1565b612eea83838360405180602001604052806000815250611b39565b505050565b6000612efa83613141565b90506000819050600080612f0d86613641565b915091508415612f7657612f298184612f24613639565b613668565b612f7557612f3e83612f39613639565b611df5565b612f74576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b5b612f848360008860016136ac565b8015612f8f57600082555b600160806001901b03600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555061303783612ff485600088613714565b7c02000000000000000000000000000000000000000000000000000000007c0100000000000000000000000000000000000000000000000000000000171761373c565b600460008881526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008516036130bd57600060018701905060006004600083815260200190815260200160002054036130bb5760005481146130ba578460046000838152602001908152602001600020819055505b5b505b85600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613127836000886001613767565b600160008154809291906001019190505550505050505050565b60008082905080613150612762565b116131d6576000548110156131d55760006004600083815260200190815260200160002054905060007c01000000000000000000000000000000000000000000000000000000008216036131d3575b600081036131c957600460008360019003935083815260200190815260200160002054905061319f565b8092505050613208565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6132db612767565b6001600960006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861331f612bc8565b60405161332c9190614167565b60405180910390a1565b60008054905090565b6133598282604051806020016040528060008152506138aa565b5050565b6000818361336b9190615a89565b905092915050565b8060076000613380613639565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661342d613639565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516134729190613ff6565b60405180910390a35050565b613489848484610e46565b60008373ffffffffffffffffffffffffffffffffffffffff163b146134eb576134b484848484613947565b6134ea576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b6060600d805461350090614a88565b80601f016020809104026020016040519081016040528092919081815260200182805461352c90614a88565b80156135795780601f1061354e57610100808354040283529160200191613579565b820191906000526020600020905b81548152906001019060200180831161355c57829003601f168201915b5050505050905090565b606060a060405101806040526020810391506000825281835b6001156135be57600184039350600a81066030018453600a810490508061359c575b50828103602084039350808452505050919050565b60008033868686866040516020016135ef959493929190615acb565b60405160208183030381529060405280519060200120604051602001613615919061597c565b60405160208183030381529060405280519060200120905080915050949350505050565b600033905090565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b6000601760008481526020019081526020016000205414613702576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136f990615b6e565b60405180910390fd5b61370e84848484613a97565b50505050565b60008060e883901c905060e861372b868684613a9d565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b613777828261153c565b6137ee5761378481613aa6565b6137928360001c6020613ad3565b6040516020016137a3929190615c26565b6040516020818303038152906040526040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137e591906140a1565b60405180910390fd5b5050565b60008060008061380185613d0f565b9250925092506001868285856040516000815260200160405260405161382a9493929190615c7c565b6020604051602081039080840390855afa15801561384c573d6000803e3d6000fd5b50505060206040510351935050505092915050565b6138696112d2565b6138a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161389f90615d0d565b60405180910390fd5b565b6138b48383613d77565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461394257600080549050600083820390505b6138f46000868380600101945086613947565b61392a576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181106138e157816000541461393f57600080fd5b50505b505050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261396d613639565b8786866040518563ffffffff1660e01b815260040161398f9493929190615d82565b6020604051808303816000875af19250505080156139cb57506040513d601f19601f820116820180604052508101906139c89190615de3565b60015b613a44573d80600081146139fb576040519150601f19603f3d011682016040523d82523d6000602084013e613a00565b606091505b506000815103613a3c576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b50505050565b60009392505050565b6060613acc8273ffffffffffffffffffffffffffffffffffffffff16601460ff16613ad3565b9050919050565b606060006002836002613ae69190615a89565b613af0919061505d565b67ffffffffffffffff811115613b0957613b086143d1565b5b6040519080825280601f01601f191660200182016040528015613b3b5781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110613b7357613b726150fd565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110613bd757613bd66150fd565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001846002613c179190615a89565b613c21919061505d565b90505b6001811115613cc1577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110613c6357613c626150fd565b5b1a60f81b828281518110613c7a57613c796150fd565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080613cba90615e10565b9050613c24565b5060008414613d05576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613cfc90615e85565b60405180910390fd5b8091505092915050565b60008060006041845114613d58576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613d4f90615ef1565b60405180910390fd5b6020840151925060408401519150606084015160001a90509193909250565b60008054905060008203613db7576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b613dc460008483856136ac565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550613e3b83613e2c6000866000613714565b613e3585613f32565b1761373c565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b818114613edc57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050613ea1565b5060008203613f17576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000819055505050613f2d6000848385613767565b505050565b60006001821460e11b9050919050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613f8b81613f56565b8114613f9657600080fd5b50565b600081359050613fa881613f82565b92915050565b600060208284031215613fc457613fc3613f4c565b5b6000613fd284828501613f99565b91505092915050565b60008115159050919050565b613ff081613fdb565b82525050565b600060208201905061400b6000830184613fe7565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561404b578082015181840152602081019050614030565b60008484015250505050565b6000601f19601f8301169050919050565b600061407382614011565b61407d818561401c565b935061408d81856020860161402d565b61409681614057565b840191505092915050565b600060208201905081810360008301526140bb8184614068565b905092915050565b6000819050919050565b6140d6816140c3565b81146140e157600080fd5b50565b6000813590506140f3816140cd565b92915050565b60006020828403121561410f5761410e613f4c565b5b600061411d848285016140e4565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061415182614126565b9050919050565b61416181614146565b82525050565b600060208201905061417c6000830184614158565b92915050565b61418b81614146565b811461419657600080fd5b50565b6000813590506141a881614182565b92915050565b600080604083850312156141c5576141c4613f4c565b5b60006141d385828601614199565b92505060206141e4858286016140e4565b9150509250929050565b6141f7816140c3565b82525050565b600060208201905061421260008301846141ee565b92915050565b60008060006060848603121561423157614230613f4c565b5b600061423f86828701614199565b935050602061425086828701614199565b9250506040614261868287016140e4565b9150509250925092565b6000819050919050565b61427e8161426b565b811461428957600080fd5b50565b60008135905061429b81614275565b92915050565b6000602082840312156142b7576142b6613f4c565b5b60006142c58482850161428c565b91505092915050565b6142d78161426b565b82525050565b60006020820190506142f260008301846142ce565b92915050565b6000806040838503121561430f5761430e613f4c565b5b600061431d8582860161428c565b925050602061432e85828601614199565b9150509250929050565b61434181613fdb565b811461434c57600080fd5b50565b60008135905061435e81614338565b92915050565b60006020828403121561437a57614379613f4c565b5b60006143888482850161434f565b91505092915050565b6000819050919050565b6143a481614391565b81146143af57600080fd5b50565b6000813590506143c18161439b565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61440982614057565b810181811067ffffffffffffffff82111715614428576144276143d1565b5b80604052505050565b600061443b613f42565b90506144478282614400565b919050565b600067ffffffffffffffff821115614467576144666143d1565b5b61447082614057565b9050602081019050919050565b82818337600083830152505050565b600061449f61449a8461444c565b614431565b9050828152602081018484840111156144bb576144ba6143cc565b5b6144c684828561447d565b509392505050565b600082601f8301126144e3576144e26143c7565b5b81356144f384826020860161448c565b91505092915050565b600067ffffffffffffffff821115614517576145166143d1565b5b61452082614057565b9050602081019050919050565b600061454061453b846144fc565b614431565b90508281526020810184848401111561455c5761455b6143cc565b5b61456784828561447d565b509392505050565b600082601f830112614584576145836143c7565b5b813561459484826020860161452d565b91505092915050565b60008060008060008060c087890312156145ba576145b9613f4c565b5b60006145c889828a016140e4565b96505060206145d989828a016143b2565b95505060406145ea89828a0161428c565b945050606087013567ffffffffffffffff81111561460b5761460a613f51565b5b61461789828a016144ce565b935050608061462889828a016140e4565b92505060a087013567ffffffffffffffff81111561464957614648613f51565b5b61465589828a0161456f565b9150509295509295509295565b6000819050919050565b600061468761468261467d84614126565b614662565b614126565b9050919050565b60006146998261466c565b9050919050565b60006146ab8261468e565b9050919050565b6146bb816146a0565b82525050565b60006020820190506146d660008301846146b2565b92915050565b6000602082840312156146f2576146f1613f4c565b5b600082013567ffffffffffffffff8111156147105761470f613f51565b5b61471c8482850161456f565b91505092915050565b60006020828403121561473b5761473a613f4c565b5b600061474984828501614199565b91505092915050565b600067ffffffffffffffff82111561476d5761476c6143d1565b5b602082029050602081019050919050565b600080fd5b600061479661479184614752565b614431565b905080838252602082019050602084028301858111156147b9576147b861477e565b5b835b818110156147e257806147ce88826140e4565b8452602084019350506020810190506147bb565b5050509392505050565b600082601f830112614801576148006143c7565b5b8135614811848260208601614783565b91505092915050565b6000602082840312156148305761482f613f4c565b5b600082013567ffffffffffffffff81111561484e5761484d613f51565b5b61485a848285016147ec565b91505092915050565b6000806040838503121561487a57614879613f4c565b5b600061488885828601614199565b92505060206148998582860161434f565b9150509250929050565b600080600080608085870312156148bd576148bc613f4c565b5b60006148cb87828801614199565b94505060206148dc87828801614199565b93505060406148ed878288016140e4565b925050606085013567ffffffffffffffff81111561490e5761490d613f51565b5b61491a878288016144ce565b91505092959194509250565b6000806040838503121561493d5761493c613f4c565b5b600061494b85828601614199565b925050602061495c85828601614199565b9150509250929050565b600080600080600060a0868803121561498257614981613f4c565b5b6000614990888289016140e4565b95505060206149a18882890161428c565b945050604086013567ffffffffffffffff8111156149c2576149c1613f51565b5b6149ce888289016144ce565b93505060606149df888289016140e4565b925050608086013567ffffffffffffffff811115614a00576149ff613f51565b5b614a0c8882890161456f565b9150509295509295909350565b60008060408385031215614a3057614a2f613f4c565b5b6000614a3e858286016140e4565b9250506020614a4f858286016143b2565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680614aa057607f821691505b602082108103614ab357614ab2614a59565b5b50919050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000614b15602f8361401c565b9150614b2082614ab9565b604082019050919050565b60006020820190508181036000830152614b4481614b08565b9050919050565b7f626c6f636b206578706972656421000000000000000000000000000000000000600082015250565b6000614b81600e8361401c565b9150614b8c82614b4b565b602082019050919050565b60006020820190508181036000830152614bb081614b74565b9050919050565b600081905092915050565b6000614bcd82614011565b614bd78185614bb7565b9350614be781856020860161402d565b80840191505092915050565b6000614bff8284614bc2565b915081905092915050565b7f4e6f6e636520616c726561647920657869737421000000000000000000000000600082015250565b6000614c4060148361401c565b9150614c4b82614c0a565b602082019050919050565b60006020820190508181036000830152614c6f81614c33565b9050919050565b7f496e76616c6964207369676e6174757265210000000000000000000000000000600082015250565b6000614cac60128361401c565b9150614cb782614c76565b602082019050919050565b60006020820190508181036000830152614cdb81614c9f565b9050919050565b7f496e76616c696420686173682100000000000000000000000000000000000000600082015250565b6000614d18600d8361401c565b9150614d2382614ce2565b602082019050919050565b60006020820190508181036000830152614d4781614d0b565b9050919050565b7f496e76616c69642070617373206f776e65722100000000000000000000000000600082015250565b6000614d8460138361401c565b9150614d8f82614d4e565b602082019050919050565b60006020820190508181036000830152614db381614d77565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302614e1c7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614ddf565b614e268683614ddf565b95508019841693508086168417925050509392505050565b6000614e59614e54614e4f846140c3565b614662565b6140c3565b9050919050565b6000819050919050565b614e7383614e3e565b614e87614e7f82614e60565b848454614dec565b825550505050565b600090565b614e9c614e8f565b614ea7818484614e6a565b505050565b5b81811015614ecb57614ec0600082614e94565b600181019050614ead565b5050565b601f821115614f1057614ee181614dba565b614eea84614dcf565b81016020851015614ef9578190505b614f0d614f0585614dcf565b830182614eac565b50505b505050565b600082821c905092915050565b6000614f3360001984600802614f15565b1980831691505092915050565b6000614f4c8383614f22565b9150826002028217905092915050565b614f6582614011565b67ffffffffffffffff811115614f7e57614f7d6143d1565b5b614f888254614a88565b614f93828285614ecf565b600060209050601f831160018114614fc65760008415614fb4578287015190505b614fbe8582614f40565b865550615026565b601f198416614fd486614dba565b60005b82811015614ffc57848901518255600182019150602085019450602081019050614fd7565b868310156150195784890151615015601f891682614f22565b8355505b6001600288020188555050505b505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000615068826140c3565b9150615073836140c3565b925082820190508082111561508b5761508a61502e565b5b92915050565b7f546865207175616e746974792065786365656473207468652073746f636b2100600082015250565b60006150c7601f8361401c565b91506150d282615091565b602082019050919050565b600060208201905081810360008301526150f6816150ba565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f43616c6c6572206973206e6f74206f776e657221000000000000000000000000600082015250565b600061516260148361401c565b915061516d8261512c565b602082019050919050565b6000602082019050818103600083015261519181615155565b9050919050565b60006040820190506151ad60008301856141ee565b6151ba60208301846141ee565b9392505050565b60006151cc826140c3565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036151fe576151fd61502e565b5b600182019050919050565b7f4d696e74206e6f7420617661696c61626c652100000000000000000000000000600082015250565b600061523f60138361401c565b915061524a82615209565b602082019050919050565b6000602082019050818103600083015261526e81615232565b9050919050565b7f4e6f7420656e6f7567682073746f636b21000000000000000000000000000000600082015250565b60006152ab60118361401c565b91506152b682615275565b602082019050919050565b600060208201905081810360008301526152da8161529e565b9050919050565b7f596f752068617665207265616368656420696e646976696475616c207075626c60008201527f6963206d696e74206c696d697421000000000000000000000000000000000000602082015250565b600061533d602e8361401c565b9150615348826152e1565b604082019050919050565b6000602082019050818103600083015261536c81615330565b9050919050565b7f4e6f7420656e6f756768206d6f6e657921000000000000000000000000000000600082015250565b60006153a960118361401c565b91506153b482615373565b602082019050919050565b600060208201905081810360008301526153d88161539c565b9050919050565b60006153ea826140c3565b91506153f5836140c3565b925082820390508181111561540d5761540c61502e565b5b92915050565b50565b600061542360008361401c565b915061542e82615413565b600082019050919050565b6000819050919050565b600061545e61545961545484615439565b614662565b6140c3565b9050919050565b61546e81615443565b82525050565b600060a08201905061548960008301876141ee565b61549660208301866141ee565b6154a360408301856141ee565b81810360608301526154b481615416565b90506154c36080830184615465565b95945050505050565b60006154d88285614bc2565b91506154e48284614bc2565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061554c60268361401c565b9150615557826154f0565b604082019050919050565b6000602082019050818103600083015261557b8161553f565b9050919050565b7f5768697465206c697374206d696e74206e6f7420617661696c61626c65210000600082015250565b60006155b8601e8361401c565b91506155c382615582565b602082019050919050565b600060208201905081810360008301526155e7816155ab565b9050919050565b7f596f752068617665207265616368656420696e646976696475616c207768697460008201527f65206c697374206d696e74206c696d6974210000000000000000000000000000602082015250565b600061564a60328361401c565b9150615655826155ee565b604082019050919050565b600060208201905081810360008301526156798161563d565b9050919050565b600060a08201905061569560008301886141ee565b6156a260208301876141ee565b6156af60408301866141ee565b81810360608301526156c18185614068565b90506156d060808301846141ee565b9695505050505050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061571060208361401c565b915061571b826156da565b602082019050919050565b6000602082019050818103600083015261573f81615703565b9050919050565b600060408201905061575b6000830185614158565b6157686020830184614158565b9392505050565b60008151905061577e81614338565b92915050565b60006020828403121561579a57615799613f4c565b5b60006157a88482850161576f565b91505092915050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b60006157e760108361401c565b91506157f2826157b1565b602082019050919050565b60006020820190508181036000830152615816816157da565b9050919050565b60008160601b9050919050565b60006158358261581d565b9050919050565b60006158478261582a565b9050919050565b61585f61585a82614146565b61583c565b82525050565b6000819050919050565b61588061587b826140c3565b615865565b82525050565b6000819050919050565b6158a161589c82614391565b615886565b82525050565b60006158b3828961584e565b6014820191506158c3828861586f565b6020820191506158d38287615890565b6020820191506158e3828661586f565b6020820191506158f38285614bc2565b91506158ff8284614bc2565b9150819050979650505050505050565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b6000615945601c83614bb7565b91506159508261590f565b601c82019050919050565b6000819050919050565b6159766159718261426b565b61595b565b82525050565b600061598782615938565b91506159938284615965565b60208201915081905092915050565b60006159ad82614391565b91506159b883614391565b9250828201905082811215600083121683821260008412151617156159e0576159df61502e565b5b92915050565b7f616d6f756e7420766572696679206661696c6564000000000000000000000000600082015250565b6000615a1c60148361401c565b9150615a27826159e6565b602082019050919050565b60006020820190508181036000830152615a4b81615a0f565b9050919050565b6000606082019050615a676000830186614158565b615a7460208301856141ee565b615a816040830184614158565b949350505050565b6000615a94826140c3565b9150615a9f836140c3565b9250828202615aad816140c3565b91508282048414831517615ac457615ac361502e565b5b5092915050565b6000615ad7828861584e565b601482019150615ae7828761586f565b602082019150615af7828661586f565b602082019150615b078285614bc2565b9150615b138284614bc2565b91508190509695505050505050565b7f5468697320746f6b656e206973207374616b696e672100000000000000000000600082015250565b6000615b5860168361401c565b9150615b6382615b22565b602082019050919050565b60006020820190508181036000830152615b8781615b4b565b9050919050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b6000615bc4601783614bb7565b9150615bcf82615b8e565b601782019050919050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b6000615c10601183614bb7565b9150615c1b82615bda565b601182019050919050565b6000615c3182615bb7565b9150615c3d8285614bc2565b9150615c4882615c03565b9150615c548284614bc2565b91508190509392505050565b600060ff82169050919050565b615c7681615c60565b82525050565b6000608082019050615c9160008301876142ce565b615c9e6020830186615c6d565b615cab60408301856142ce565b615cb860608301846142ce565b95945050505050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b6000615cf760148361401c565b9150615d0282615cc1565b602082019050919050565b60006020820190508181036000830152615d2681615cea565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000615d5482615d2d565b615d5e8185615d38565b9350615d6e81856020860161402d565b615d7781614057565b840191505092915050565b6000608082019050615d976000830187614158565b615da46020830186614158565b615db160408301856141ee565b8181036060830152615dc38184615d49565b905095945050505050565b600081519050615ddd81613f82565b92915050565b600060208284031215615df957615df8613f4c565b5b6000615e0784828501615dce565b91505092915050565b6000615e1b826140c3565b915060008203615e2e57615e2d61502e565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b6000615e6f60208361401c565b9150615e7a82615e39565b602082019050919050565b60006020820190508181036000830152615e9e81615e62565b9050919050565b7f496e76616c6964207369676e6174757265206c656e6774682100000000000000600082015250565b6000615edb60198361401c565b9150615ee682615ea5565b602082019050919050565b60006020820190508181036000830152615f0a81615ece565b905091905056fea264697066735822122070817e04cace16e935c78909f2fa01101541b4b8ceda3ec79d6e373e8fe2c30864736f6c63430008110033
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.