Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
5,000 APEX
Holders
3,065
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
5 APEXLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
APEX
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.17; import "@openzeppelin/contracts/access/Ownable.sol"; import "operator-filter-registry/src/DefaultOperatorFilterer.sol"; import "./componets/IdentityManage.sol"; import "./componets/ERC721Membership.sol"; import "./componets/Stage.sol"; import {Errors} from "./libraries/Errors.sol"; contract APEX is ERC721Membership, IdentityManage, Stage, Ownable, DefaultOperatorFilterer { using Strings for uint256; uint256 private constant MAX_SUPPLY = 5000; uint256 private constant MAX_NORMAL_MINT = 1; uint256 private constant MAX_WHITELIST_MINT = 1; uint256 private constant MAX_OG_MINT = 2; uint256 private constant MAX_TREASURYADMIN_MINT = 50; mapping(address => uint256) _mintedNumOf; constructor() ERC721("Lux3 APEX", "APEX") {} function mint() external { bytes32 currentStage = getCurrentStage(); if (currentStage != FORMAL_MINT) { revert Errors.MintNotStarted(); } _verifyMintNumber(1, MAX_NORMAL_MINT); _batchMint(msg.sender, MAX_NORMAL_MINT); } function whitelistMint(bytes32[] calldata merkleProof) external { bytes32 currentStage = getCurrentStage(); if (currentStage == WARM_UP) { revert Errors.MintNotStarted(); } if (!isWhitelist(msg.sender, merkleProof)) { revert Errors.NoCorrespondingIdentity(); } _verifyMintNumber(1, MAX_NORMAL_MINT); _batchMint(msg.sender, MAX_WHITELIST_MINT); } function ogMint( uint256 mintNumber, bytes32[] calldata merkleProof ) external { bytes32 currentStage = getCurrentStage(); if (currentStage == WARM_UP) { revert Errors.MintNotStarted(); } if (!isOG(msg.sender, merkleProof)) { revert Errors.NoCorrespondingIdentity(); } _verifyMintNumber(mintNumber, MAX_OG_MINT); _batchMint(msg.sender, mintNumber); } function treasuryAdminMint(uint256 mintNumber) external { bytes32 currentStage = getCurrentStage(); if (currentStage == WARM_UP) { revert Errors.MintNotStarted(); } if (!isTreasuryAdmin(msg.sender)) { revert Errors.NoCorrespondingIdentity(); } _verifyMintNumber(mintNumber, MAX_TREASURYADMIN_MINT); _batchMint(msg.sender, mintNumber); } function setApprovalForAll( address operator, bool approved ) public override(ERC721, IERC721) onlyAllowedOperatorApproval(operator) { super.setApprovalForAll(operator, approved); } function approve( address operator, uint256 tokenId ) public override(ERC721, IERC721) onlyAllowedOperatorApproval(operator) { super.approve(operator, tokenId); } function transferFrom( address from, address to, uint256 tokenId ) public override(ERC721, IERC721) onlyAllowedOperator(from) { super.transferFrom(from, to, tokenId); } function safeTransferFrom( address from, address to, uint256 tokenId ) public override(ERC721, IERC721) onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId); } function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public override(ERC721, IERC721) onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId, data); } function supportsInterface( bytes4 interfaceId ) public view virtual override(ERC721Membership, AccessControl) returns (bool) { return AccessControl.supportsInterface(interfaceId) || ERC721Membership.supportsInterface(interfaceId); } function _batchMint(address to, uint256 mintNumber) private { uint256 currentTokenId = totalSupply(); uint256 afterTokenId = currentTokenId + mintNumber; if (afterTokenId > MAX_SUPPLY) { revert Errors.CannotMintMore(currentTokenId, MAX_SUPPLY); } while (currentTokenId < afterTokenId) { currentTokenId += 1; _mint(to, currentTokenId); } _mintedNumOf[to] += mintNumber; } function _verifyMintNumber( uint256 mintNumber, uint256 maxAllowedToMint ) private view { uint256 mintedNum = _mintedNumOf[msg.sender]; if (mintedNum + mintNumber > maxAllowedToMint) { revert Errors.CannotMintMore(mintedNum, maxAllowedToMint); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.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(uint160(account), 20), " 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 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 // 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.7.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: invalid token ID"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { _requireMinted(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _safeTransfer(from, to, tokenId, data); } /** * @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. * * `data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * 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, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * 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, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`, * consuming from one or the other at each step according to the instructions given by * `proofFlags`. * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof} * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_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) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @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 pragma solidity 0.8.17; import "@openzeppelin/contracts/access/AccessControl.sol"; contract APEXAccessControl is AccessControl { bytes32 constant ADMINISTRATOR = keccak256("ADMINISTRATOR"); bytes32 constant BUSINESS_MANAGER = keccak256("BUSINESS_MANAGER"); bytes32 constant MEMBERSHIP_CONTRACT = keccak256("MEMBERSHIP_CONTRACT"); constructor() { _grantRole(ADMINISTRATOR, msg.sender); _setRoleAdmin(ADMINISTRATOR, ADMINISTRATOR); _setRoleAdmin(BUSINESS_MANAGER, ADMINISTRATOR); _setRoleAdmin(MEMBERSHIP_CONTRACT, ADMINISTRATOR); } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.17; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "../interfaces/IERC721Membership.sol"; import "./APEXAccessControl.sol"; import {Errors} from "../libraries/Errors.sol"; abstract contract ERC721Membership is ERC721Enumerable, IERC721Membership, APEXAccessControl { using Strings for uint256; // mapping `tokenId` => `points` mapping(uint256 => uint256) private _pointsOf; // mapping `tokenId` => `level` mapping(uint256 => uint256) private _levelOf; // mapping `level` => `points` mapping(uint256 => uint256) private _requiredPointsOf; // mapping `level` => `baseURI` mapping(uint256 => string) private _baseURIOf; uint256 private _lastLevel; function increasePoints( uint256 tokenId, uint256 points ) external override onlyRole(MEMBERSHIP_CONTRACT) returns (bool isUpgraded) { _requireMinted(tokenId); uint256 originalPoints = _pointsOf[tokenId]; uint256 updatedPoints = originalPoints + points; _pointsOf[tokenId] = updatedPoints; emit IncreasePoints(tokenId, msg.sender, originalPoints, updatedPoints); uint256 level = _levelOf[tokenId]; if (level == _lastLevel) { return false; } uint256 nextLevel = level + 1; uint256 nextLevelRequiredPoints = _requiredPointsOf[nextLevel]; if (updatedPoints >= nextLevelRequiredPoints) { _levelOf[tokenId] += 1; emit UpdateLevel(tokenId, level, nextLevel); return true; } return false; } function upgradeToken(uint256 tokenId, uint256 level) external override { _requireMinted(tokenId); if (!_isApprovedOrOwner(msg.sender, tokenId)) { revert Errors.NotBeApprovedOrOwner(msg.sender, tokenId); } if (level > _lastLevel) { revert Errors.OutOfLastLevel(level, _lastLevel); } uint256 requiredPoints = _requiredPointsOf[level]; uint256 ownedPoints = _pointsOf[tokenId]; if (ownedPoints < requiredPoints) { revert Errors.InsufficientPoints(ownedPoints, requiredPoints); } uint256 originalLevel = _levelOf[tokenId]; _levelOf[tokenId] = level; emit UpdateLevel(tokenId, originalLevel, level); } function setLevel( uint256 level, uint256 points, string calldata baseURI ) external override onlyRole(BUSINESS_MANAGER) { if (level == 0) { if (_lastLevel != 0) { revert Errors.CannotBeSet(level); } // `_pointsOf[0]` always be `0` _baseURIOf[level] = baseURI; return; } if (level != _lastLevel && level != _lastLevel + 1) { revert Errors.CannotBeSet(level); } uint256 prevLevel = level - 1; uint256 prevLevelRequiredPoints = _requiredPointsOf[prevLevel]; if (points <= prevLevelRequiredPoints) { revert Errors.InvalidPoints(points); } if (level == _lastLevel + 1) { _lastLevel = level; } _requiredPointsOf[level] = points; _baseURIOf[level] = baseURI; } function lastLevel() public view override returns (uint256) { return _lastLevel; } function pointsOf(uint256 tokenId) public view override returns (uint256) { return _pointsOf[tokenId]; } function levelOf(uint256 tokenId) public view override returns (uint256) { return _levelOf[tokenId]; } function requiredPointsOf( uint256 level ) public view override returns (uint256) { return _requiredPointsOf[level]; } function tokenURI( uint256 tokenId ) public view virtual override returns (string memory) { _requireMinted(tokenId); uint256 level = levelOf(tokenId); string memory baseURI = _baseURIOfLevel(level); return string(abi.encodePacked(baseURI, tokenId.toString())); } function supportsInterface( bytes4 interfaceId ) public view virtual override(ERC721Enumerable, AccessControl) returns (bool) { return interfaceId == type(IERC721Membership).interfaceId || AccessControl.supportsInterface(interfaceId) || ERC721Enumerable.supportsInterface(interfaceId); } function _baseURIOfLevel( uint256 level ) internal view returns (string memory) { return _baseURIOf[level]; } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.17; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "../interfaces/IIdentityManage.sol"; import "./APEXAccessControl.sol"; contract IdentityManage is IIdentityManage, APEXAccessControl { using MerkleProof for bytes32[]; bytes32 private _whitelistMerkleRoot; bytes32 private _ogListMerkleRoot; mapping(address => bool) private _isTreasuryAdmin; function setWhitelistMerkleRoot( bytes32 merkleRoot ) external override onlyRole(BUSINESS_MANAGER) { _whitelistMerkleRoot = merkleRoot; } function setOGListMerkleRoot( bytes32 merkleRoot ) external override onlyRole(BUSINESS_MANAGER) { _ogListMerkleRoot = merkleRoot; } function setTreasuryAdmin( address addr, bool setAsTreasuryAdmin ) external override onlyRole(BUSINESS_MANAGER) { _isTreasuryAdmin[addr] = setAsTreasuryAdmin; } function isWhitelist( address user, bytes32[] calldata merkleProof ) public view override returns (bool) { return merkleProof.verify( _whitelistMerkleRoot, keccak256(bytes.concat(keccak256(abi.encode(user)))) ); } function isOG( address user, bytes32[] calldata merkleProof ) public view override returns (bool) { return merkleProof.verify( _ogListMerkleRoot, keccak256(bytes.concat(keccak256(abi.encode(user)))) ); } function isTreasuryAdmin(address user) public view override returns (bool) { return _isTreasuryAdmin[user]; } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.17; import "../interfaces/IStage.sol"; import "./APEXAccessControl.sol"; import {Errors} from "../libraries/Errors.sol"; contract Stage is IStage, APEXAccessControl { bytes32 constant WARM_UP = keccak256("WARM_UP"); bytes32 constant PRE_MINT = keccak256("PRE_MINT"); bytes32 constant FORMAL_MINT = keccak256("FORMAL_MINT"); bytes32 private _currentStage = WARM_UP; constructor() {} function moveToNextStage( bytes32 currentStage, bytes32 nextStage ) external onlyRole(BUSINESS_MANAGER) { if (currentStage != _currentStage) { revert Errors.NotCurrentStage(currentStage); } if (currentStage == WARM_UP) { if (nextStage != PRE_MINT) { revert Errors.NotNextStage(nextStage); } } else if (currentStage == PRE_MINT) { if (nextStage != FORMAL_MINT) { revert Errors.NotNextStage(nextStage); } } else if (currentStage == FORMAL_MINT) { revert Errors.NoMoreStage(); } _currentStage = nextStage; } function getCurrentStage() public view returns (bytes32) { return _currentStage; } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.17; interface IERC721Membership { /// @dev emit when points increase event IncreasePoints( uint256 tokenId, address from, uint256 originalPoints, uint256 updatedPoints ); /// @dev emit when level update event UpdateLevel( uint256 tokenId, uint256 originalLevel, uint256 updatedLevel ); /// @dev increase points of appointed token /// @param tokenId the ID of the token to be increased to the points /// @param points the points to be increased /// @return isUpgraded is the token upgraded after increasing points function increasePoints( uint256 tokenId, uint256 points ) external returns (bool isUpgraded); /// @dev upgrade appointed token /// @param tokenId the ID of the token /// @param level the level is going to be setted function upgradeToken(uint256 tokenId, uint256 level) external; /// @dev set new level's required points and base token URI /// overwrite the last level's property is allowed, the others is not /// @param level the new level /// @param points the required points of new level /// @param baseURI the base token URI of new level function setLevel( uint256 level, uint256 points, string calldata baseURI ) external; /// @dev return the last level /// @return the last level function lastLevel() external view returns (uint256); /// @dev points of appointed token /// @param tokenId the ID of appointed token /// @return points of appointed token function pointsOf(uint256 tokenId) external view returns (uint256); /// @dev level of appointed token /// @param tokenId the ID of appointed token /// @return level of appointed token function levelOf(uint256 tokenId) external view returns (uint256); /// @dev required points of appointed level /// @param level of the query /// @return points the required points of the points function requiredPointsOf(uint256 level) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.17; interface IIdentityManage { /// @dev set the whitelist Merkle Tree root /// @param merkleRoot the merkle root of whitelist function setWhitelistMerkleRoot(bytes32 merkleRoot) external; /// @dev set the OG list Merkle Tree root /// @param merkleRoot the merkle root of OG list function setOGListMerkleRoot(bytes32 merkleRoot) external; /// @dev set if the address is treasury admin /// @param addr the address to set /// @param isTreasuryAdmin if `addr` is treasury admin function setTreasuryAdmin(address addr, bool isTreasuryAdmin) external; /// @dev if `user` is in whitelist /// @param user the `address` to be verified /// @param merkleProof the Merkle Proof of the user function isWhitelist( address user, bytes32[] calldata merkleProof ) external view returns (bool); /// @dev if `user` is in OG list /// @param user the `address` to be verified /// @param merkleProof the Merkle Proof of the user function isOG( address user, bytes32[] calldata merkleProof ) external view returns (bool); /// @dev if `user` is treasury admin /// @param user the `address` to be verified function isTreasuryAdmin(address user) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.17; interface IStage { /// @dev move to next stage /// @param currentStage the `bytes32` of current stage's `keccak256` /// @param nextStage the `bytes32` of next stage's `keccak256` function moveToNextStage(bytes32 currentStage, bytes32 nextStage) external; /// @dev return the `bytes32` of current stage's `keccak256` /// @return currentStage the `bytes32` of current stage's `keccak256` function getCurrentStage() external view returns (bytes32); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.17; library Errors { error NoCorrespondingIdentity(); error MintNotStarted(); error CannotMintMore(uint256 minted, uint256 maxAllowedToMint); error NotBeApprovedOrOwner(address caller, uint256 tokenId); error OutOfLastLevel(uint256 inputLevel, uint256 lastLevel); error InsufficientPoints(uint256 ownedPoints, uint256 requiredPoints); error CannotBeSet(uint256 level); error InvalidPoints(uint256 points); error NotCurrentStage(bytes32 inputStage); error NotNextStage(bytes32 inputStage); error NoMoreStage(); }
// 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 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 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); } } } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"uint256","name":"level","type":"uint256"}],"name":"CannotBeSet","type":"error"},{"inputs":[{"internalType":"uint256","name":"minted","type":"uint256"},{"internalType":"uint256","name":"maxAllowedToMint","type":"uint256"}],"name":"CannotMintMore","type":"error"},{"inputs":[{"internalType":"uint256","name":"ownedPoints","type":"uint256"},{"internalType":"uint256","name":"requiredPoints","type":"uint256"}],"name":"InsufficientPoints","type":"error"},{"inputs":[{"internalType":"uint256","name":"points","type":"uint256"}],"name":"InvalidPoints","type":"error"},{"inputs":[],"name":"MintNotStarted","type":"error"},{"inputs":[],"name":"NoCorrespondingIdentity","type":"error"},{"inputs":[],"name":"NoMoreStage","type":"error"},{"inputs":[{"internalType":"address","name":"caller","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"NotBeApprovedOrOwner","type":"error"},{"inputs":[{"internalType":"bytes32","name":"inputStage","type":"bytes32"}],"name":"NotCurrentStage","type":"error"},{"inputs":[{"internalType":"bytes32","name":"inputStage","type":"bytes32"}],"name":"NotNextStage","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[{"internalType":"uint256","name":"inputLevel","type":"uint256"},{"internalType":"uint256","name":"lastLevel","type":"uint256"}],"name":"OutOfLastLevel","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"originalPoints","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"updatedPoints","type":"uint256"}],"name":"IncreasePoints","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"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":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"originalLevel","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"updatedLevel","type":"uint256"}],"name":"UpdateLevel","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_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":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentStage","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"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":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"points","type":"uint256"}],"name":"increasePoints","outputs":[{"internalType":"bool","name":"isUpgraded","type":"bool"}],"stateMutability":"nonpayable","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":"address","name":"user","type":"address"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"isOG","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"isTreasuryAdmin","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"isWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastLevel","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"levelOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"currentStage","type":"bytes32"},{"internalType":"bytes32","name":"nextStage","type":"bytes32"}],"name":"moveToNextStage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"mintNumber","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"ogMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"pointsOf","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":"uint256","name":"level","type":"uint256"}],"name":"requiredPointsOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"level","type":"uint256"},{"internalType":"uint256","name":"points","type":"uint256"},{"internalType":"string","name":"baseURI","type":"string"}],"name":"setLevel","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"setOGListMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"bool","name":"setAsTreasuryAdmin","type":"bool"}],"name":"setTreasuryAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"setWhitelistMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"mintNumber","type":"uint256"}],"name":"treasuryAdminMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"level","type":"uint256"}],"name":"upgradeToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"whitelistMint","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040527ff71442181abd1484fb105ccbac1e7a7253253613bc7069b3bb00540672f7973b6013553480156200003557600080fd5b50733cc6cdda760b79bafa08df41ecfa224f810dceb660016040518060400160405280600981526020017f4c757833204150455800000000000000000000000000000000000000000000008152506040518060400160405280600481526020017f41504558000000000000000000000000000000000000000000000000000000008152508160009081620000ca91906200092d565b508060019081620000dc91906200092d565b505050620001117fb346b2ddc13f08bd9685b83a95304a79a2caac0aa7aa64129e1ae9f4361b4661336200040460201b60201c565b620001437fb346b2ddc13f08bd9685b83a95304a79a2caac0aa7aa64129e1ae9f4361b466180620004f660201b60201c565b620001957fc35c8a03ad7188a26047dfa0d199791a9ef38ec80eeae3318e9af9b21f10e5437fb346b2ddc13f08bd9685b83a95304a79a2caac0aa7aa64129e1ae9f4361b4661620004f660201b60201c565b620001e77f4d07801fb24a3df6650f8e1e29c33a35edca83ac60a6ed073c393b4d91b5a59c7fb346b2ddc13f08bd9685b83a95304a79a2caac0aa7aa64129e1ae9f4361b4661620004f660201b60201c565b62000207620001fb6200055a60201b60201c565b6200056260201b60201c565b60006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115620003fc578015620002c2576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16637d3e3dbe30846040518363ffffffff1660e01b81526004016200028892919062000a59565b600060405180830381600087803b158015620002a357600080fd5b505af1158015620002b8573d6000803e3d6000fd5b50505050620003fb565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146200037c576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663a0af290330846040518363ffffffff1660e01b81526004016200034292919062000a59565b600060405180830381600087803b1580156200035d57600080fd5b505af115801562000372573d6000803e3d6000fd5b50505050620003fa565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16634420e486306040518263ffffffff1660e01b8152600401620003c5919062000a86565b600060405180830381600087803b158015620003e057600080fd5b505af1158015620003f5573d6000803e3d6000fd5b505050505b5b5b505062000aa3565b6200041682826200062860201b60201c565b620004f2576001600a600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550620004976200055a60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b600062000509836200069360201b60201c565b905081600a6000858152602001908152602001600020600101819055508181847fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff60405160405180910390a4505050565b600033905090565b6000601460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081601460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000600a600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000600a6000838152602001908152602001600020600101549050919050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200073557607f821691505b6020821081036200074b576200074a620006ed565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620007b57fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000776565b620007c1868362000776565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b60006200080e620008086200080284620007d9565b620007e3565b620007d9565b9050919050565b6000819050919050565b6200082a83620007ed565b62000842620008398262000815565b84845462000783565b825550505050565b600090565b620008596200084a565b620008668184846200081f565b505050565b5b818110156200088e57620008826000826200084f565b6001810190506200086c565b5050565b601f821115620008dd57620008a78162000751565b620008b28462000766565b81016020851015620008c2578190505b620008da620008d18562000766565b8301826200086b565b50505b505050565b600082821c905092915050565b60006200090260001984600802620008e2565b1980831691505092915050565b60006200091d8383620008ef565b9150826002028217905092915050565b6200093882620006b3565b67ffffffffffffffff811115620009545762000953620006be565b5b6200096082546200071c565b6200096d82828562000892565b600060209050601f831160018114620009a5576000841562000990578287015190505b6200099c85826200090f565b86555062000a0c565b601f198416620009b58662000751565b60005b82811015620009df57848901518255600182019150602085019450602081019050620009b8565b86831015620009ff5784890151620009fb601f891682620008ef565b8355505b6001600288020188555050505b505050505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062000a418262000a14565b9050919050565b62000a538162000a34565b82525050565b600060408201905062000a70600083018562000a48565b62000a7f602083018462000a48565b9392505050565b600060208201905062000a9d600083018462000a48565b92915050565b6156f08062000ab36000396000f3fe608060405234801561001057600080fd5b506004361061027f5760003560e01c8063824113581161015c578063af57c48d116100ce578063cf9b0d4a11610087578063cf9b0d4a146107f2578063d547741f1461080e578063e985e9c51461082a578063eae6778a1461085a578063eedbe31d14610876578063f2fde38b146108945761027f565b8063af57c48d14610720578063b5f1498014610750578063b88d4fde1461076c578063bd32fb6614610788578063c386d614146107a4578063c87b56dd146107c25761027f565b80639970ff15116101205780639970ff151461064e5780639d1c16d61461067e578063a10937d9146106ae578063a217fddf146106ca578063a22cb465146106e8578063a9a10d82146107045761027f565b806382411358146105825780638495f774146105b25780638da5cb5b146105e257806391d148541461060057806395d89b41146106305761027f565b806336568abe116101f55780636352211e116101b95780636352211e1461049c5780636d5e3032146104cc57806370a08231146104fc578063715018a61461052c5780637229545e146105365780637f512b61146105525761027f565b806336568abe146103fa578063372f657c1461041657806341f434341461043257806342842e0e146104505780634f6ccce71461046c5761027f565b806318160ddd1161024757806318160ddd1461032857806323b872dd14610346578063248a9ca3146103625780632b314dc6146103925780632f2ff15d146103ae5780632f745c59146103ca5761027f565b806301ffc9a71461028457806306fdde03146102b4578063081812fc146102d2578063095ea7b3146103025780631249c58b1461031e575b600080fd5b61029e60048036038101906102999190613c00565b6108b0565b6040516102ab9190613c48565b60405180910390f35b6102bc6108d2565b6040516102c99190613cf3565b60405180910390f35b6102ec60048036038101906102e79190613d4b565b610964565b6040516102f99190613db9565b60405180910390f35b61031c60048036038101906103179190613e00565b6109aa565b005b6103266109c3565b005b610330610a41565b60405161033d9190613e4f565b60405180910390f35b610360600480360381019061035b9190613e6a565b610a4e565b005b61037c60048036038101906103779190613ef3565b610a9d565b6040516103899190613f2f565b60405180910390f35b6103ac60048036038101906103a79190613faf565b610abd565b005b6103c860048036038101906103c3919061400f565b610b7e565b005b6103e460048036038101906103df9190613e00565b610b9f565b6040516103f19190613e4f565b60405180910390f35b610414600480360381019061040f919061400f565b610c44565b005b610430600480360381019061042b919061404f565b610cc7565b005b61043a610d88565b60405161044791906140fb565b60405180910390f35b61046a60048036038101906104659190613e6a565b610d9a565b005b61048660048036038101906104819190613d4b565b610de9565b6040516104939190613e4f565b60405180910390f35b6104b660048036038101906104b19190613d4b565b610e5a565b6040516104c39190613db9565b60405180910390f35b6104e660048036038101906104e19190613d4b565b610f0b565b6040516104f39190613e4f565b60405180910390f35b61051660048036038101906105119190614116565b610f28565b6040516105239190613e4f565b60405180910390f35b610534610fdf565b005b610550600480360381019061054b9190614143565b610ff3565b005b61056c60048036038101906105679190614143565b61117d565b6040516105799190613c48565b60405180910390f35b61059c60048036038101906105979190613d4b565b611311565b6040516105a99190613e4f565b60405180910390f35b6105cc60048036038101906105c79190614116565b61132e565b6040516105d99190613c48565b60405180910390f35b6105ea611384565b6040516105f79190613db9565b60405180910390f35b61061a6004803603810190610615919061400f565b6113ae565b6040516106279190613c48565b60405180910390f35b610638611419565b6040516106459190613cf3565b60405180910390f35b61066860048036038101906106639190614183565b6114ab565b6040516106759190613c48565b60405180910390f35b61069860048036038101906106939190614183565b61155a565b6040516106a59190613c48565b60405180910390f35b6106c860048036038101906106c391906141e3565b611609565b005b6106d2611800565b6040516106df9190613f2f565b60405180910390f35b61070260048036038101906106fd919061424f565b611807565b005b61071e60048036038101906107199190613ef3565b611820565b005b61073a60048036038101906107359190613d4b565b611855565b6040516107479190613e4f565b60405180910390f35b61076a60048036038101906107659190613d4b565b611872565b005b610786600480360381019061078191906143bf565b61192f565b005b6107a2600480360381019061079d9190613ef3565b611980565b005b6107ac6119b5565b6040516107b99190613e4f565b60405180910390f35b6107dc60048036038101906107d79190613d4b565b6119bf565b6040516107e99190613cf3565b60405180910390f35b61080c60048036038101906108079190614498565b611a17565b005b6108286004803603810190610823919061400f565b611be9565b005b610844600480360381019061083f919061450c565b611c0a565b6040516108519190613c48565b60405180910390f35b610874600480360381019061086f919061424f565b611c9e565b005b61087e611d24565b60405161088b9190613f2f565b60405180910390f35b6108ae60048036038101906108a99190614116565b611d2e565b005b60006108bb82611db1565b806108cb57506108ca82611e2b565b5b9050919050565b6060600080546108e19061457b565b80601f016020809104026020016040519081016040528092919081815260200182805461090d9061457b565b801561095a5780601f1061092f5761010080835404028352916020019161095a565b820191906000526020600020905b81548152906001019060200180831161093d57829003601f168201915b5050505050905090565b600061096f82611eb5565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b816109b481611f00565b6109be8383611ffd565b505050565b60006109cd611d24565b90507f699ee4871de0f69da49ff9f108e8152cbfbabb55e5e1e775f0ad3dd89d797b2b8114610a28576040517f06290e4e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610a33600180612114565b610a3e3360016121af565b50565b6000600880549050905090565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610a8c57610a8b33611f00565b5b610a97848484612299565b50505050565b6000600a6000838152602001908152602001600020600101549050919050565b6000610ac7611d24565b90507ff71442181abd1484fb105ccbac1e7a7253253613bc7069b3bb00540672f7973b8103610b22576040517f06290e4e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610b2d3384846114ab565b610b63576040517f55aa735e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610b6e846002612114565b610b7833856121af565b50505050565b610b8782610a9d565b610b90816122f9565b610b9a838361230d565b505050565b6000610baa83610f28565b8210610beb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610be29061461e565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610c4c6123ee565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610cb9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cb0906146b0565b60405180910390fd5b610cc382826123f6565b5050565b6000610cd1611d24565b90507ff71442181abd1484fb105ccbac1e7a7253253613bc7069b3bb00540672f7973b8103610d2c576040517f06290e4e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610d3733848461155a565b610d6d576040517f55aa735e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610d78600180612114565b610d833360016121af565b505050565b6daaeb6d7670e522a718067333cd4e81565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610dd857610dd733611f00565b5b610de38484846124d8565b50505050565b6000610df3610a41565b8210610e34576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e2b90614742565b60405180910390fd5b60088281548110610e4857610e47614762565b5b90600052602060002001549050919050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610f02576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ef9906147dd565b60405180910390fd5b80915050919050565b6000600c6000838152602001908152602001600020549050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610f98576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f8f9061486f565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610fe76124f8565b610ff16000612576565b565b610ffc82611eb5565b611006338361263c565b6110495733826040517fd703bf6800000000000000000000000000000000000000000000000000000000815260040161104092919061488f565b60405180910390fd5b600f548111156110945780600f546040517f72649d0f00000000000000000000000000000000000000000000000000000000815260040161108b9291906148b8565b60405180910390fd5b6000600d60008381526020019081526020016000205490506000600b60008581526020019081526020016000205490508181101561110b5780826040517f8059c7470000000000000000000000000000000000000000000000000000000081526004016111029291906148b8565b60405180910390fd5b6000600c600086815260200190815260200160002054905083600c6000878152602001908152602001600020819055507fded5e2a3b2f9f59a618f7b19dfde102d9afb0aa2c13ced117964caf2da75da3585828660405161116e939291906148e1565b60405180910390a15050505050565b60007f4d07801fb24a3df6650f8e1e29c33a35edca83ac60a6ed073c393b4d91b5a59c6111a9816122f9565b6111b284611eb5565b6000600b6000868152602001908152602001600020549050600084826111d89190614947565b905080600b6000888152602001908152602001600020819055507fd6f9e8e3cd0c133da721a264f9997a39a6aee5323b52426ff215b24a065958bb86338484604051611227949392919061497b565b60405180910390a16000600c6000888152602001908152602001600020549050600f54810361125c576000945050505061130a565b600060018261126b9190614947565b90506000600d6000838152602001908152602001600020549050808410611300576001600c60008b815260200190815260200160002060008282546112b09190614947565b925050819055507fded5e2a3b2f9f59a618f7b19dfde102d9afb0aa2c13ced117964caf2da75da358984846040516112ea939291906148e1565b60405180910390a160019650505050505061130a565b6000965050505050505b5092915050565b6000600b6000838152602001908152602001600020549050919050565b6000601260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b6000601460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000600a600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6060600180546114289061457b565b80601f01602080910402602001604051908101604052809291908181526020018280546114549061457b565b80156114a15780601f10611476576101008083540402835291602001916114a1565b820191906000526020600020905b81548152906001019060200180831161148457829003601f168201915b5050505050905090565b6000611551601154856040516020016114c49190613db9565b604051602081830303815290604052805190602001206040516020016114ea91906149e1565b60405160208183030381529060405280519060200120858580806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050506126d19092919063ffffffff16565b90509392505050565b6000611600601054856040516020016115739190613db9565b6040516020818303038152906040528051906020012060405160200161159991906149e1565b60405160208183030381529060405280519060200120858580806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050506126d19092919063ffffffff16565b90509392505050565b7fc35c8a03ad7188a26047dfa0d199791a9ef38ec80eeae3318e9af9b21f10e543611633816122f9565b601354831461167957826040517fff595bd60000000000000000000000000000000000000000000000000000000081526004016116709190613f2f565b60405180910390fd5b7ff71442181abd1484fb105ccbac1e7a7253253613bc7069b3bb00540672f7973b8303611709577f1bb496afaf947f21b709cb7d076de71c9930843567a32cd394d2bf9e4555c3c5821461170457816040517f4034a7480000000000000000000000000000000000000000000000000000000081526004016116fb9190613f2f565b60405180910390fd5b6117f4565b7f1bb496afaf947f21b709cb7d076de71c9930843567a32cd394d2bf9e4555c3c58303611799577f699ee4871de0f69da49ff9f108e8152cbfbabb55e5e1e775f0ad3dd89d797b2b821461179457816040517f4034a74800000000000000000000000000000000000000000000000000000000815260040161178b9190613f2f565b60405180910390fd5b6117f3565b7f699ee4871de0f69da49ff9f108e8152cbfbabb55e5e1e775f0ad3dd89d797b2b83036117f2576040517faa7562cd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b5b81601381905550505050565b6000801b81565b8161181181611f00565b61181b83836126e8565b505050565b7fc35c8a03ad7188a26047dfa0d199791a9ef38ec80eeae3318e9af9b21f10e54361184a816122f9565b816011819055505050565b6000600d6000838152602001908152602001600020549050919050565b600061187c611d24565b90507ff71442181abd1484fb105ccbac1e7a7253253613bc7069b3bb00540672f7973b81036118d7576040517f06290e4e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6118e03361132e565b611916576040517f55aa735e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611921826032612114565b61192b33836121af565b5050565b833373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461196d5761196c33611f00565b5b611979858585856126fe565b5050505050565b7fc35c8a03ad7188a26047dfa0d199791a9ef38ec80eeae3318e9af9b21f10e5436119aa816122f9565b816010819055505050565b6000600f54905090565b60606119ca82611eb5565b60006119d583610f0b565b905060006119e282612760565b9050806119ee85612805565b6040516020016119ff929190614a38565b60405160208183030381529060405292505050919050565b7fc35c8a03ad7188a26047dfa0d199791a9ef38ec80eeae3318e9af9b21f10e543611a41816122f9565b60008503611ab8576000600f5414611a9057846040517f7053f533000000000000000000000000000000000000000000000000000000008152600401611a879190613e4f565b60405180910390fd5b8282600e60008881526020019081526020016000209182611ab2929190614c09565b50611be2565b600f548514158015611ad857506001600f54611ad49190614947565b8514155b15611b1a57846040517f7053f533000000000000000000000000000000000000000000000000000000008152600401611b119190613e4f565b60405180910390fd5b6000600186611b299190614cd9565b90506000600d6000838152602001908152602001600020549050808611611b8757856040517fd3c6c3ae000000000000000000000000000000000000000000000000000000008152600401611b7e9190613e4f565b60405180910390fd5b6001600f54611b969190614947565b8703611ba45786600f819055505b85600d6000898152602001908152602001600020819055508484600e60008a81526020019081526020016000209182611bde929190614c09565b5050505b5050505050565b611bf282610a9d565b611bfb816122f9565b611c0583836123f6565b505050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b7fc35c8a03ad7188a26047dfa0d199791a9ef38ec80eeae3318e9af9b21f10e543611cc8816122f9565b81601260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550505050565b6000601354905090565b611d366124f8565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611da5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d9c90614d7f565b60405180910390fd5b611dae81612576565b50565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611e245750611e2382612965565b5b9050919050565b60007f412d4386000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611e9e5750611e9d82611db1565b5b80611eae5750611ead82612965565b5b9050919050565b611ebe816129df565b611efd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ef4906147dd565b60405180910390fd5b50565b60006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115611ffa576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b8152600401611f77929190614d9f565b602060405180830381865afa158015611f94573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fb89190614ddd565b611ff957806040517fede71dcc000000000000000000000000000000000000000000000000000000008152600401611ff09190613db9565b60405180910390fd5b5b50565b600061200882610e5a565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612078576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161206f90614e7c565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166120976123ee565b73ffffffffffffffffffffffffffffffffffffffff1614806120c657506120c5816120c06123ee565b611c0a565b5b612105576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120fc90614f0e565b60405180910390fd5b61210f8383612a4b565b505050565b6000601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508183826121659190614947565b11156121aa5780826040517f956abaf00000000000000000000000000000000000000000000000000000000081526004016121a19291906148b8565b60405180910390fd5b505050565b60006121b9610a41565b9050600082826121c99190614947565b905061138881111561221657816113886040517f956abaf000000000000000000000000000000000000000000000000000000000815260040161220d9291906148b8565b60405180910390fd5b5b8082101561223d5760018261222c9190614947565b91506122388483612b04565b612217565b82601560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461228c9190614947565b9250508190555050505050565b6122aa6122a46123ee565b8261263c565b6122e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122e090614fa0565b60405180910390fd5b6122f4838383612cdd565b505050565b61230a816123056123ee565b612f43565b50565b61231782826113ae565b6123ea576001600a600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061238f6123ee565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b600033905090565b61240082826113ae565b156124d4576000600a600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506124796123ee565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6124f38383836040518060200160405280600081525061192f565b505050565b6125006123ee565b73ffffffffffffffffffffffffffffffffffffffff1661251e611384565b73ffffffffffffffffffffffffffffffffffffffff1614612574576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161256b9061500c565b60405180910390fd5b565b6000601460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081601460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008061264883610e5a565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061268a57506126898185611c0a565b5b806126c857508373ffffffffffffffffffffffffffffffffffffffff166126b084610964565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b6000826126de8584612fe0565b1490509392505050565b6126fa6126f36123ee565b8383613036565b5050565b61270f6127096123ee565b8361263c565b61274e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161274590614fa0565b60405180910390fd5b61275a848484846131a2565b50505050565b6060600e600083815260200190815260200160002080546127809061457b565b80601f01602080910402602001604051908101604052809291908181526020018280546127ac9061457b565b80156127f95780601f106127ce576101008083540402835291602001916127f9565b820191906000526020600020905b8154815290600101906020018083116127dc57829003601f168201915b50505050509050919050565b60606000820361284c576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612960565b600082905060005b6000821461287e5780806128679061502c565b915050600a8261287791906150a3565b9150612854565b60008167ffffffffffffffff81111561289a57612899614294565b5b6040519080825280601f01601f1916602001820160405280156128cc5781602001600182028036833780820191505090505b5090505b60008514612959576001826128e59190614cd9565b9150600a856128f491906150d4565b60306129009190614947565b60f81b81838151811061291657612915614762565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561295291906150a3565b94506128d0565b8093505050505b919050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806129d857506129d7826131fe565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16612abe83610e5a565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612b73576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b6a90615151565b60405180910390fd5b612b7c816129df565b15612bbc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bb3906151bd565b60405180910390fd5b612bc8600083836132e0565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612c189190614947565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612cd9600083836133f2565b5050565b8273ffffffffffffffffffffffffffffffffffffffff16612cfd82610e5a565b73ffffffffffffffffffffffffffffffffffffffff1614612d53576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d4a9061524f565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612dc2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612db9906152e1565b60405180910390fd5b612dcd8383836132e0565b612dd8600082612a4b565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612e289190614cd9565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612e7f9190614947565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612f3e8383836133f2565b505050565b612f4d82826113ae565b612fdc57612f728173ffffffffffffffffffffffffffffffffffffffff1660146133f7565b612f808360001c60206133f7565b604051602001612f91929190615399565b6040516020818303038152906040526040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fd39190613cf3565b60405180910390fd5b5050565b60008082905060005b845181101561302b576130168286838151811061300957613008614762565b5b6020026020010151613633565b915080806130239061502c565b915050612fe9565b508091505092915050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036130a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161309b9061541f565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516131959190613c48565b60405180910390a3505050565b6131ad848484612cdd565b6131b98484848461365e565b6131f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131ef906154b1565b60405180910390fd5b50505050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806132c957507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806132d957506132d8826137e5565b5b9050919050565b6132eb83838361384f565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361332d5761332881613854565b61336c565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461336b5761336a838261389d565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036133ae576133a981613a0a565b6133ed565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146133ec576133eb8282613adb565b5b5b505050565b505050565b60606000600283600261340a91906154d1565b6134149190614947565b67ffffffffffffffff81111561342d5761342c614294565b5b6040519080825280601f01601f19166020018201604052801561345f5781602001600182028036833780820191505090505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061349757613496614762565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106134fb576134fa614762565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000600184600261353b91906154d1565b6135459190614947565b90505b60018111156135e5577f3031323334353637383961626364656600000000000000000000000000000000600f86166010811061358757613586614762565b5b1a60f81b82828151811061359e5761359d614762565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c9450806135de90615513565b9050613548565b5060008414613629576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161362090615588565b60405180910390fd5b8091505092915050565b600081831061364b576136468284613b5a565b613656565b6136558383613b5a565b5b905092915050565b600061367f8473ffffffffffffffffffffffffffffffffffffffff16613b71565b156137d8578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026136a86123ee565b8786866040518563ffffffff1660e01b81526004016136ca94939291906155fd565b6020604051808303816000875af192505050801561370657506040513d601f19601f82011682018060405250810190613703919061565e565b60015b613788573d8060008114613736576040519150601f19603f3d011682016040523d82523d6000602084013e61373b565b606091505b506000815103613780576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613777906154b1565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506137dd565b600190505b949350505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b600060016138aa84610f28565b6138b49190614cd9565b9050600060076000848152602001908152602001600020549050818114613999576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600880549050613a1e9190614cd9565b9050600060096000848152602001908152602001600020549050600060088381548110613a4e57613a4d614762565b5b906000526020600020015490508060088381548110613a7057613a6f614762565b5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480613abf57613abe61568b565b5b6001900381819060005260206000200160009055905550505050565b6000613ae683610f28565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600082600052816020526040600020905092915050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613bdd81613ba8565b8114613be857600080fd5b50565b600081359050613bfa81613bd4565b92915050565b600060208284031215613c1657613c15613b9e565b5b6000613c2484828501613beb565b91505092915050565b60008115159050919050565b613c4281613c2d565b82525050565b6000602082019050613c5d6000830184613c39565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613c9d578082015181840152602081019050613c82565b60008484015250505050565b6000601f19601f8301169050919050565b6000613cc582613c63565b613ccf8185613c6e565b9350613cdf818560208601613c7f565b613ce881613ca9565b840191505092915050565b60006020820190508181036000830152613d0d8184613cba565b905092915050565b6000819050919050565b613d2881613d15565b8114613d3357600080fd5b50565b600081359050613d4581613d1f565b92915050565b600060208284031215613d6157613d60613b9e565b5b6000613d6f84828501613d36565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613da382613d78565b9050919050565b613db381613d98565b82525050565b6000602082019050613dce6000830184613daa565b92915050565b613ddd81613d98565b8114613de857600080fd5b50565b600081359050613dfa81613dd4565b92915050565b60008060408385031215613e1757613e16613b9e565b5b6000613e2585828601613deb565b9250506020613e3685828601613d36565b9150509250929050565b613e4981613d15565b82525050565b6000602082019050613e646000830184613e40565b92915050565b600080600060608486031215613e8357613e82613b9e565b5b6000613e9186828701613deb565b9350506020613ea286828701613deb565b9250506040613eb386828701613d36565b9150509250925092565b6000819050919050565b613ed081613ebd565b8114613edb57600080fd5b50565b600081359050613eed81613ec7565b92915050565b600060208284031215613f0957613f08613b9e565b5b6000613f1784828501613ede565b91505092915050565b613f2981613ebd565b82525050565b6000602082019050613f446000830184613f20565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f840112613f6f57613f6e613f4a565b5b8235905067ffffffffffffffff811115613f8c57613f8b613f4f565b5b602083019150836020820283011115613fa857613fa7613f54565b5b9250929050565b600080600060408486031215613fc857613fc7613b9e565b5b6000613fd686828701613d36565b935050602084013567ffffffffffffffff811115613ff757613ff6613ba3565b5b61400386828701613f59565b92509250509250925092565b6000806040838503121561402657614025613b9e565b5b600061403485828601613ede565b925050602061404585828601613deb565b9150509250929050565b6000806020838503121561406657614065613b9e565b5b600083013567ffffffffffffffff81111561408457614083613ba3565b5b61409085828601613f59565b92509250509250929050565b6000819050919050565b60006140c16140bc6140b784613d78565b61409c565b613d78565b9050919050565b60006140d3826140a6565b9050919050565b60006140e5826140c8565b9050919050565b6140f5816140da565b82525050565b600060208201905061411060008301846140ec565b92915050565b60006020828403121561412c5761412b613b9e565b5b600061413a84828501613deb565b91505092915050565b6000806040838503121561415a57614159613b9e565b5b600061416885828601613d36565b925050602061417985828601613d36565b9150509250929050565b60008060006040848603121561419c5761419b613b9e565b5b60006141aa86828701613deb565b935050602084013567ffffffffffffffff8111156141cb576141ca613ba3565b5b6141d786828701613f59565b92509250509250925092565b600080604083850312156141fa576141f9613b9e565b5b600061420885828601613ede565b925050602061421985828601613ede565b9150509250929050565b61422c81613c2d565b811461423757600080fd5b50565b60008135905061424981614223565b92915050565b6000806040838503121561426657614265613b9e565b5b600061427485828601613deb565b92505060206142858582860161423a565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6142cc82613ca9565b810181811067ffffffffffffffff821117156142eb576142ea614294565b5b80604052505050565b60006142fe613b94565b905061430a82826142c3565b919050565b600067ffffffffffffffff82111561432a57614329614294565b5b61433382613ca9565b9050602081019050919050565b82818337600083830152505050565b600061436261435d8461430f565b6142f4565b90508281526020810184848401111561437e5761437d61428f565b5b614389848285614340565b509392505050565b600082601f8301126143a6576143a5613f4a565b5b81356143b684826020860161434f565b91505092915050565b600080600080608085870312156143d9576143d8613b9e565b5b60006143e787828801613deb565b94505060206143f887828801613deb565b935050604061440987828801613d36565b925050606085013567ffffffffffffffff81111561442a57614429613ba3565b5b61443687828801614391565b91505092959194509250565b60008083601f84011261445857614457613f4a565b5b8235905067ffffffffffffffff81111561447557614474613f4f565b5b60208301915083600182028301111561449157614490613f54565b5b9250929050565b600080600080606085870312156144b2576144b1613b9e565b5b60006144c087828801613d36565b94505060206144d187828801613d36565b935050604085013567ffffffffffffffff8111156144f2576144f1613ba3565b5b6144fe87828801614442565b925092505092959194509250565b6000806040838503121561452357614522613b9e565b5b600061453185828601613deb565b925050602061454285828601613deb565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061459357607f821691505b6020821081036145a6576145a561454c565b5b50919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b6000614608602b83613c6e565b9150614613826145ac565b604082019050919050565b60006020820190508181036000830152614637816145fb565b9050919050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b600061469a602f83613c6e565b91506146a58261463e565b604082019050919050565b600060208201905081810360008301526146c98161468d565b9050919050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b600061472c602c83613c6e565b9150614737826146d0565b604082019050919050565b6000602082019050818103600083015261475b8161471f565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b60006147c7601883613c6e565b91506147d282614791565b602082019050919050565b600060208201905081810360008301526147f6816147ba565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b6000614859602983613c6e565b9150614864826147fd565b604082019050919050565b600060208201905081810360008301526148888161484c565b9050919050565b60006040820190506148a46000830185613daa565b6148b16020830184613e40565b9392505050565b60006040820190506148cd6000830185613e40565b6148da6020830184613e40565b9392505050565b60006060820190506148f66000830186613e40565b6149036020830185613e40565b6149106040830184613e40565b949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061495282613d15565b915061495d83613d15565b925082820190508082111561497557614974614918565b5b92915050565b60006080820190506149906000830187613e40565b61499d6020830186613daa565b6149aa6040830185613e40565b6149b76060830184613e40565b95945050505050565b6000819050919050565b6149db6149d682613ebd565b6149c0565b82525050565b60006149ed82846149ca565b60208201915081905092915050565b600081905092915050565b6000614a1282613c63565b614a1c81856149fc565b9350614a2c818560208601613c7f565b80840191505092915050565b6000614a448285614a07565b9150614a508284614a07565b91508190509392505050565b600082905092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302614ac97fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614a8c565b614ad38683614a8c565b95508019841693508086168417925050509392505050565b6000614b06614b01614afc84613d15565b61409c565b613d15565b9050919050565b6000819050919050565b614b2083614aeb565b614b34614b2c82614b0d565b848454614a99565b825550505050565b600090565b614b49614b3c565b614b54818484614b17565b505050565b5b81811015614b7857614b6d600082614b41565b600181019050614b5a565b5050565b601f821115614bbd57614b8e81614a67565b614b9784614a7c565b81016020851015614ba6578190505b614bba614bb285614a7c565b830182614b59565b50505b505050565b600082821c905092915050565b6000614be060001984600802614bc2565b1980831691505092915050565b6000614bf98383614bcf565b9150826002028217905092915050565b614c138383614a5c565b67ffffffffffffffff811115614c2c57614c2b614294565b5b614c36825461457b565b614c41828285614b7c565b6000601f831160018114614c705760008415614c5e578287013590505b614c688582614bed565b865550614cd0565b601f198416614c7e86614a67565b60005b82811015614ca657848901358255600182019150602085019450602081019050614c81565b86831015614cc35784890135614cbf601f891682614bcf565b8355505b6001600288020188555050505b50505050505050565b6000614ce482613d15565b9150614cef83613d15565b9250828203905081811115614d0757614d06614918565b5b92915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614d69602683613c6e565b9150614d7482614d0d565b604082019050919050565b60006020820190508181036000830152614d9881614d5c565b9050919050565b6000604082019050614db46000830185613daa565b614dc16020830184613daa565b9392505050565b600081519050614dd781614223565b92915050565b600060208284031215614df357614df2613b9e565b5b6000614e0184828501614dc8565b91505092915050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b6000614e66602183613c6e565b9150614e7182614e0a565b604082019050919050565b60006020820190508181036000830152614e9581614e59565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b6000614ef8603e83613c6e565b9150614f0382614e9c565b604082019050919050565b60006020820190508181036000830152614f2781614eeb565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b6000614f8a602e83613c6e565b9150614f9582614f2e565b604082019050919050565b60006020820190508181036000830152614fb981614f7d565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614ff6602083613c6e565b915061500182614fc0565b602082019050919050565b6000602082019050818103600083015261502581614fe9565b9050919050565b600061503782613d15565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361506957615068614918565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006150ae82613d15565b91506150b983613d15565b9250826150c9576150c8615074565b5b828204905092915050565b60006150df82613d15565b91506150ea83613d15565b9250826150fa576150f9615074565b5b828206905092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b600061513b602083613c6e565b915061514682615105565b602082019050919050565b6000602082019050818103600083015261516a8161512e565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b60006151a7601c83613c6e565b91506151b282615171565b602082019050919050565b600060208201905081810360008301526151d68161519a565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b6000615239602583613c6e565b9150615244826151dd565b604082019050919050565b600060208201905081810360008301526152688161522c565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006152cb602483613c6e565b91506152d68261526f565b604082019050919050565b600060208201905081810360008301526152fa816152be565b9050919050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b60006153376017836149fc565b915061534282615301565b601782019050919050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b60006153836011836149fc565b915061538e8261534d565b601182019050919050565b60006153a48261532a565b91506153b08285614a07565b91506153bb82615376565b91506153c78284614a07565b91508190509392505050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000615409601983613c6e565b9150615414826153d3565b602082019050919050565b60006020820190508181036000830152615438816153fc565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b600061549b603283613c6e565b91506154a68261543f565b604082019050919050565b600060208201905081810360008301526154ca8161548e565b9050919050565b60006154dc82613d15565b91506154e783613d15565b92508282026154f581613d15565b9150828204841483151761550c5761550b614918565b5b5092915050565b600061551e82613d15565b91506000820361553157615530614918565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b6000615572602083613c6e565b915061557d8261553c565b602082019050919050565b600060208201905081810360008301526155a181615565565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006155cf826155a8565b6155d981856155b3565b93506155e9818560208601613c7f565b6155f281613ca9565b840191505092915050565b60006080820190506156126000830187613daa565b61561f6020830186613daa565b61562c6040830185613e40565b818103606083015261563e81846155c4565b905095945050505050565b60008151905061565881613bd4565b92915050565b60006020828403121561567457615673613b9e565b5b600061568284828501615649565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea264697066735822122025ddec67dac33b21db957c18e6726ad1668a6dea7adf555ca71662ff645fdae064736f6c63430008110033
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061027f5760003560e01c8063824113581161015c578063af57c48d116100ce578063cf9b0d4a11610087578063cf9b0d4a146107f2578063d547741f1461080e578063e985e9c51461082a578063eae6778a1461085a578063eedbe31d14610876578063f2fde38b146108945761027f565b8063af57c48d14610720578063b5f1498014610750578063b88d4fde1461076c578063bd32fb6614610788578063c386d614146107a4578063c87b56dd146107c25761027f565b80639970ff15116101205780639970ff151461064e5780639d1c16d61461067e578063a10937d9146106ae578063a217fddf146106ca578063a22cb465146106e8578063a9a10d82146107045761027f565b806382411358146105825780638495f774146105b25780638da5cb5b146105e257806391d148541461060057806395d89b41146106305761027f565b806336568abe116101f55780636352211e116101b95780636352211e1461049c5780636d5e3032146104cc57806370a08231146104fc578063715018a61461052c5780637229545e146105365780637f512b61146105525761027f565b806336568abe146103fa578063372f657c1461041657806341f434341461043257806342842e0e146104505780634f6ccce71461046c5761027f565b806318160ddd1161024757806318160ddd1461032857806323b872dd14610346578063248a9ca3146103625780632b314dc6146103925780632f2ff15d146103ae5780632f745c59146103ca5761027f565b806301ffc9a71461028457806306fdde03146102b4578063081812fc146102d2578063095ea7b3146103025780631249c58b1461031e575b600080fd5b61029e60048036038101906102999190613c00565b6108b0565b6040516102ab9190613c48565b60405180910390f35b6102bc6108d2565b6040516102c99190613cf3565b60405180910390f35b6102ec60048036038101906102e79190613d4b565b610964565b6040516102f99190613db9565b60405180910390f35b61031c60048036038101906103179190613e00565b6109aa565b005b6103266109c3565b005b610330610a41565b60405161033d9190613e4f565b60405180910390f35b610360600480360381019061035b9190613e6a565b610a4e565b005b61037c60048036038101906103779190613ef3565b610a9d565b6040516103899190613f2f565b60405180910390f35b6103ac60048036038101906103a79190613faf565b610abd565b005b6103c860048036038101906103c3919061400f565b610b7e565b005b6103e460048036038101906103df9190613e00565b610b9f565b6040516103f19190613e4f565b60405180910390f35b610414600480360381019061040f919061400f565b610c44565b005b610430600480360381019061042b919061404f565b610cc7565b005b61043a610d88565b60405161044791906140fb565b60405180910390f35b61046a60048036038101906104659190613e6a565b610d9a565b005b61048660048036038101906104819190613d4b565b610de9565b6040516104939190613e4f565b60405180910390f35b6104b660048036038101906104b19190613d4b565b610e5a565b6040516104c39190613db9565b60405180910390f35b6104e660048036038101906104e19190613d4b565b610f0b565b6040516104f39190613e4f565b60405180910390f35b61051660048036038101906105119190614116565b610f28565b6040516105239190613e4f565b60405180910390f35b610534610fdf565b005b610550600480360381019061054b9190614143565b610ff3565b005b61056c60048036038101906105679190614143565b61117d565b6040516105799190613c48565b60405180910390f35b61059c60048036038101906105979190613d4b565b611311565b6040516105a99190613e4f565b60405180910390f35b6105cc60048036038101906105c79190614116565b61132e565b6040516105d99190613c48565b60405180910390f35b6105ea611384565b6040516105f79190613db9565b60405180910390f35b61061a6004803603810190610615919061400f565b6113ae565b6040516106279190613c48565b60405180910390f35b610638611419565b6040516106459190613cf3565b60405180910390f35b61066860048036038101906106639190614183565b6114ab565b6040516106759190613c48565b60405180910390f35b61069860048036038101906106939190614183565b61155a565b6040516106a59190613c48565b60405180910390f35b6106c860048036038101906106c391906141e3565b611609565b005b6106d2611800565b6040516106df9190613f2f565b60405180910390f35b61070260048036038101906106fd919061424f565b611807565b005b61071e60048036038101906107199190613ef3565b611820565b005b61073a60048036038101906107359190613d4b565b611855565b6040516107479190613e4f565b60405180910390f35b61076a60048036038101906107659190613d4b565b611872565b005b610786600480360381019061078191906143bf565b61192f565b005b6107a2600480360381019061079d9190613ef3565b611980565b005b6107ac6119b5565b6040516107b99190613e4f565b60405180910390f35b6107dc60048036038101906107d79190613d4b565b6119bf565b6040516107e99190613cf3565b60405180910390f35b61080c60048036038101906108079190614498565b611a17565b005b6108286004803603810190610823919061400f565b611be9565b005b610844600480360381019061083f919061450c565b611c0a565b6040516108519190613c48565b60405180910390f35b610874600480360381019061086f919061424f565b611c9e565b005b61087e611d24565b60405161088b9190613f2f565b60405180910390f35b6108ae60048036038101906108a99190614116565b611d2e565b005b60006108bb82611db1565b806108cb57506108ca82611e2b565b5b9050919050565b6060600080546108e19061457b565b80601f016020809104026020016040519081016040528092919081815260200182805461090d9061457b565b801561095a5780601f1061092f5761010080835404028352916020019161095a565b820191906000526020600020905b81548152906001019060200180831161093d57829003601f168201915b5050505050905090565b600061096f82611eb5565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b816109b481611f00565b6109be8383611ffd565b505050565b60006109cd611d24565b90507f699ee4871de0f69da49ff9f108e8152cbfbabb55e5e1e775f0ad3dd89d797b2b8114610a28576040517f06290e4e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610a33600180612114565b610a3e3360016121af565b50565b6000600880549050905090565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610a8c57610a8b33611f00565b5b610a97848484612299565b50505050565b6000600a6000838152602001908152602001600020600101549050919050565b6000610ac7611d24565b90507ff71442181abd1484fb105ccbac1e7a7253253613bc7069b3bb00540672f7973b8103610b22576040517f06290e4e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610b2d3384846114ab565b610b63576040517f55aa735e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610b6e846002612114565b610b7833856121af565b50505050565b610b8782610a9d565b610b90816122f9565b610b9a838361230d565b505050565b6000610baa83610f28565b8210610beb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610be29061461e565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610c4c6123ee565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610cb9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cb0906146b0565b60405180910390fd5b610cc382826123f6565b5050565b6000610cd1611d24565b90507ff71442181abd1484fb105ccbac1e7a7253253613bc7069b3bb00540672f7973b8103610d2c576040517f06290e4e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610d3733848461155a565b610d6d576040517f55aa735e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610d78600180612114565b610d833360016121af565b505050565b6daaeb6d7670e522a718067333cd4e81565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610dd857610dd733611f00565b5b610de38484846124d8565b50505050565b6000610df3610a41565b8210610e34576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e2b90614742565b60405180910390fd5b60088281548110610e4857610e47614762565b5b90600052602060002001549050919050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610f02576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ef9906147dd565b60405180910390fd5b80915050919050565b6000600c6000838152602001908152602001600020549050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610f98576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f8f9061486f565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610fe76124f8565b610ff16000612576565b565b610ffc82611eb5565b611006338361263c565b6110495733826040517fd703bf6800000000000000000000000000000000000000000000000000000000815260040161104092919061488f565b60405180910390fd5b600f548111156110945780600f546040517f72649d0f00000000000000000000000000000000000000000000000000000000815260040161108b9291906148b8565b60405180910390fd5b6000600d60008381526020019081526020016000205490506000600b60008581526020019081526020016000205490508181101561110b5780826040517f8059c7470000000000000000000000000000000000000000000000000000000081526004016111029291906148b8565b60405180910390fd5b6000600c600086815260200190815260200160002054905083600c6000878152602001908152602001600020819055507fded5e2a3b2f9f59a618f7b19dfde102d9afb0aa2c13ced117964caf2da75da3585828660405161116e939291906148e1565b60405180910390a15050505050565b60007f4d07801fb24a3df6650f8e1e29c33a35edca83ac60a6ed073c393b4d91b5a59c6111a9816122f9565b6111b284611eb5565b6000600b6000868152602001908152602001600020549050600084826111d89190614947565b905080600b6000888152602001908152602001600020819055507fd6f9e8e3cd0c133da721a264f9997a39a6aee5323b52426ff215b24a065958bb86338484604051611227949392919061497b565b60405180910390a16000600c6000888152602001908152602001600020549050600f54810361125c576000945050505061130a565b600060018261126b9190614947565b90506000600d6000838152602001908152602001600020549050808410611300576001600c60008b815260200190815260200160002060008282546112b09190614947565b925050819055507fded5e2a3b2f9f59a618f7b19dfde102d9afb0aa2c13ced117964caf2da75da358984846040516112ea939291906148e1565b60405180910390a160019650505050505061130a565b6000965050505050505b5092915050565b6000600b6000838152602001908152602001600020549050919050565b6000601260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b6000601460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000600a600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6060600180546114289061457b565b80601f01602080910402602001604051908101604052809291908181526020018280546114549061457b565b80156114a15780601f10611476576101008083540402835291602001916114a1565b820191906000526020600020905b81548152906001019060200180831161148457829003601f168201915b5050505050905090565b6000611551601154856040516020016114c49190613db9565b604051602081830303815290604052805190602001206040516020016114ea91906149e1565b60405160208183030381529060405280519060200120858580806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050506126d19092919063ffffffff16565b90509392505050565b6000611600601054856040516020016115739190613db9565b6040516020818303038152906040528051906020012060405160200161159991906149e1565b60405160208183030381529060405280519060200120858580806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050506126d19092919063ffffffff16565b90509392505050565b7fc35c8a03ad7188a26047dfa0d199791a9ef38ec80eeae3318e9af9b21f10e543611633816122f9565b601354831461167957826040517fff595bd60000000000000000000000000000000000000000000000000000000081526004016116709190613f2f565b60405180910390fd5b7ff71442181abd1484fb105ccbac1e7a7253253613bc7069b3bb00540672f7973b8303611709577f1bb496afaf947f21b709cb7d076de71c9930843567a32cd394d2bf9e4555c3c5821461170457816040517f4034a7480000000000000000000000000000000000000000000000000000000081526004016116fb9190613f2f565b60405180910390fd5b6117f4565b7f1bb496afaf947f21b709cb7d076de71c9930843567a32cd394d2bf9e4555c3c58303611799577f699ee4871de0f69da49ff9f108e8152cbfbabb55e5e1e775f0ad3dd89d797b2b821461179457816040517f4034a74800000000000000000000000000000000000000000000000000000000815260040161178b9190613f2f565b60405180910390fd5b6117f3565b7f699ee4871de0f69da49ff9f108e8152cbfbabb55e5e1e775f0ad3dd89d797b2b83036117f2576040517faa7562cd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b5b81601381905550505050565b6000801b81565b8161181181611f00565b61181b83836126e8565b505050565b7fc35c8a03ad7188a26047dfa0d199791a9ef38ec80eeae3318e9af9b21f10e54361184a816122f9565b816011819055505050565b6000600d6000838152602001908152602001600020549050919050565b600061187c611d24565b90507ff71442181abd1484fb105ccbac1e7a7253253613bc7069b3bb00540672f7973b81036118d7576040517f06290e4e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6118e03361132e565b611916576040517f55aa735e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611921826032612114565b61192b33836121af565b5050565b833373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461196d5761196c33611f00565b5b611979858585856126fe565b5050505050565b7fc35c8a03ad7188a26047dfa0d199791a9ef38ec80eeae3318e9af9b21f10e5436119aa816122f9565b816010819055505050565b6000600f54905090565b60606119ca82611eb5565b60006119d583610f0b565b905060006119e282612760565b9050806119ee85612805565b6040516020016119ff929190614a38565b60405160208183030381529060405292505050919050565b7fc35c8a03ad7188a26047dfa0d199791a9ef38ec80eeae3318e9af9b21f10e543611a41816122f9565b60008503611ab8576000600f5414611a9057846040517f7053f533000000000000000000000000000000000000000000000000000000008152600401611a879190613e4f565b60405180910390fd5b8282600e60008881526020019081526020016000209182611ab2929190614c09565b50611be2565b600f548514158015611ad857506001600f54611ad49190614947565b8514155b15611b1a57846040517f7053f533000000000000000000000000000000000000000000000000000000008152600401611b119190613e4f565b60405180910390fd5b6000600186611b299190614cd9565b90506000600d6000838152602001908152602001600020549050808611611b8757856040517fd3c6c3ae000000000000000000000000000000000000000000000000000000008152600401611b7e9190613e4f565b60405180910390fd5b6001600f54611b969190614947565b8703611ba45786600f819055505b85600d6000898152602001908152602001600020819055508484600e60008a81526020019081526020016000209182611bde929190614c09565b5050505b5050505050565b611bf282610a9d565b611bfb816122f9565b611c0583836123f6565b505050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b7fc35c8a03ad7188a26047dfa0d199791a9ef38ec80eeae3318e9af9b21f10e543611cc8816122f9565b81601260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550505050565b6000601354905090565b611d366124f8565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611da5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d9c90614d7f565b60405180910390fd5b611dae81612576565b50565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611e245750611e2382612965565b5b9050919050565b60007f412d4386000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611e9e5750611e9d82611db1565b5b80611eae5750611ead82612965565b5b9050919050565b611ebe816129df565b611efd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ef4906147dd565b60405180910390fd5b50565b60006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115611ffa576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b8152600401611f77929190614d9f565b602060405180830381865afa158015611f94573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fb89190614ddd565b611ff957806040517fede71dcc000000000000000000000000000000000000000000000000000000008152600401611ff09190613db9565b60405180910390fd5b5b50565b600061200882610e5a565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612078576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161206f90614e7c565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166120976123ee565b73ffffffffffffffffffffffffffffffffffffffff1614806120c657506120c5816120c06123ee565b611c0a565b5b612105576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120fc90614f0e565b60405180910390fd5b61210f8383612a4b565b505050565b6000601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508183826121659190614947565b11156121aa5780826040517f956abaf00000000000000000000000000000000000000000000000000000000081526004016121a19291906148b8565b60405180910390fd5b505050565b60006121b9610a41565b9050600082826121c99190614947565b905061138881111561221657816113886040517f956abaf000000000000000000000000000000000000000000000000000000000815260040161220d9291906148b8565b60405180910390fd5b5b8082101561223d5760018261222c9190614947565b91506122388483612b04565b612217565b82601560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461228c9190614947565b9250508190555050505050565b6122aa6122a46123ee565b8261263c565b6122e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122e090614fa0565b60405180910390fd5b6122f4838383612cdd565b505050565b61230a816123056123ee565b612f43565b50565b61231782826113ae565b6123ea576001600a600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061238f6123ee565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b600033905090565b61240082826113ae565b156124d4576000600a600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506124796123ee565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6124f38383836040518060200160405280600081525061192f565b505050565b6125006123ee565b73ffffffffffffffffffffffffffffffffffffffff1661251e611384565b73ffffffffffffffffffffffffffffffffffffffff1614612574576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161256b9061500c565b60405180910390fd5b565b6000601460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081601460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008061264883610e5a565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061268a57506126898185611c0a565b5b806126c857508373ffffffffffffffffffffffffffffffffffffffff166126b084610964565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b6000826126de8584612fe0565b1490509392505050565b6126fa6126f36123ee565b8383613036565b5050565b61270f6127096123ee565b8361263c565b61274e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161274590614fa0565b60405180910390fd5b61275a848484846131a2565b50505050565b6060600e600083815260200190815260200160002080546127809061457b565b80601f01602080910402602001604051908101604052809291908181526020018280546127ac9061457b565b80156127f95780601f106127ce576101008083540402835291602001916127f9565b820191906000526020600020905b8154815290600101906020018083116127dc57829003601f168201915b50505050509050919050565b60606000820361284c576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612960565b600082905060005b6000821461287e5780806128679061502c565b915050600a8261287791906150a3565b9150612854565b60008167ffffffffffffffff81111561289a57612899614294565b5b6040519080825280601f01601f1916602001820160405280156128cc5781602001600182028036833780820191505090505b5090505b60008514612959576001826128e59190614cd9565b9150600a856128f491906150d4565b60306129009190614947565b60f81b81838151811061291657612915614762565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561295291906150a3565b94506128d0565b8093505050505b919050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806129d857506129d7826131fe565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16612abe83610e5a565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612b73576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b6a90615151565b60405180910390fd5b612b7c816129df565b15612bbc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bb3906151bd565b60405180910390fd5b612bc8600083836132e0565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612c189190614947565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612cd9600083836133f2565b5050565b8273ffffffffffffffffffffffffffffffffffffffff16612cfd82610e5a565b73ffffffffffffffffffffffffffffffffffffffff1614612d53576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d4a9061524f565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612dc2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612db9906152e1565b60405180910390fd5b612dcd8383836132e0565b612dd8600082612a4b565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612e289190614cd9565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612e7f9190614947565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612f3e8383836133f2565b505050565b612f4d82826113ae565b612fdc57612f728173ffffffffffffffffffffffffffffffffffffffff1660146133f7565b612f808360001c60206133f7565b604051602001612f91929190615399565b6040516020818303038152906040526040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fd39190613cf3565b60405180910390fd5b5050565b60008082905060005b845181101561302b576130168286838151811061300957613008614762565b5b6020026020010151613633565b915080806130239061502c565b915050612fe9565b508091505092915050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036130a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161309b9061541f565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516131959190613c48565b60405180910390a3505050565b6131ad848484612cdd565b6131b98484848461365e565b6131f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131ef906154b1565b60405180910390fd5b50505050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806132c957507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806132d957506132d8826137e5565b5b9050919050565b6132eb83838361384f565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361332d5761332881613854565b61336c565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461336b5761336a838261389d565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036133ae576133a981613a0a565b6133ed565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146133ec576133eb8282613adb565b5b5b505050565b505050565b60606000600283600261340a91906154d1565b6134149190614947565b67ffffffffffffffff81111561342d5761342c614294565b5b6040519080825280601f01601f19166020018201604052801561345f5781602001600182028036833780820191505090505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061349757613496614762565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106134fb576134fa614762565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000600184600261353b91906154d1565b6135459190614947565b90505b60018111156135e5577f3031323334353637383961626364656600000000000000000000000000000000600f86166010811061358757613586614762565b5b1a60f81b82828151811061359e5761359d614762565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c9450806135de90615513565b9050613548565b5060008414613629576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161362090615588565b60405180910390fd5b8091505092915050565b600081831061364b576136468284613b5a565b613656565b6136558383613b5a565b5b905092915050565b600061367f8473ffffffffffffffffffffffffffffffffffffffff16613b71565b156137d8578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026136a86123ee565b8786866040518563ffffffff1660e01b81526004016136ca94939291906155fd565b6020604051808303816000875af192505050801561370657506040513d601f19601f82011682018060405250810190613703919061565e565b60015b613788573d8060008114613736576040519150601f19603f3d011682016040523d82523d6000602084013e61373b565b606091505b506000815103613780576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613777906154b1565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506137dd565b600190505b949350505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b600060016138aa84610f28565b6138b49190614cd9565b9050600060076000848152602001908152602001600020549050818114613999576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600880549050613a1e9190614cd9565b9050600060096000848152602001908152602001600020549050600060088381548110613a4e57613a4d614762565b5b906000526020600020015490508060088381548110613a7057613a6f614762565b5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480613abf57613abe61568b565b5b6001900381819060005260206000200160009055905550505050565b6000613ae683610f28565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600082600052816020526040600020905092915050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613bdd81613ba8565b8114613be857600080fd5b50565b600081359050613bfa81613bd4565b92915050565b600060208284031215613c1657613c15613b9e565b5b6000613c2484828501613beb565b91505092915050565b60008115159050919050565b613c4281613c2d565b82525050565b6000602082019050613c5d6000830184613c39565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613c9d578082015181840152602081019050613c82565b60008484015250505050565b6000601f19601f8301169050919050565b6000613cc582613c63565b613ccf8185613c6e565b9350613cdf818560208601613c7f565b613ce881613ca9565b840191505092915050565b60006020820190508181036000830152613d0d8184613cba565b905092915050565b6000819050919050565b613d2881613d15565b8114613d3357600080fd5b50565b600081359050613d4581613d1f565b92915050565b600060208284031215613d6157613d60613b9e565b5b6000613d6f84828501613d36565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613da382613d78565b9050919050565b613db381613d98565b82525050565b6000602082019050613dce6000830184613daa565b92915050565b613ddd81613d98565b8114613de857600080fd5b50565b600081359050613dfa81613dd4565b92915050565b60008060408385031215613e1757613e16613b9e565b5b6000613e2585828601613deb565b9250506020613e3685828601613d36565b9150509250929050565b613e4981613d15565b82525050565b6000602082019050613e646000830184613e40565b92915050565b600080600060608486031215613e8357613e82613b9e565b5b6000613e9186828701613deb565b9350506020613ea286828701613deb565b9250506040613eb386828701613d36565b9150509250925092565b6000819050919050565b613ed081613ebd565b8114613edb57600080fd5b50565b600081359050613eed81613ec7565b92915050565b600060208284031215613f0957613f08613b9e565b5b6000613f1784828501613ede565b91505092915050565b613f2981613ebd565b82525050565b6000602082019050613f446000830184613f20565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f840112613f6f57613f6e613f4a565b5b8235905067ffffffffffffffff811115613f8c57613f8b613f4f565b5b602083019150836020820283011115613fa857613fa7613f54565b5b9250929050565b600080600060408486031215613fc857613fc7613b9e565b5b6000613fd686828701613d36565b935050602084013567ffffffffffffffff811115613ff757613ff6613ba3565b5b61400386828701613f59565b92509250509250925092565b6000806040838503121561402657614025613b9e565b5b600061403485828601613ede565b925050602061404585828601613deb565b9150509250929050565b6000806020838503121561406657614065613b9e565b5b600083013567ffffffffffffffff81111561408457614083613ba3565b5b61409085828601613f59565b92509250509250929050565b6000819050919050565b60006140c16140bc6140b784613d78565b61409c565b613d78565b9050919050565b60006140d3826140a6565b9050919050565b60006140e5826140c8565b9050919050565b6140f5816140da565b82525050565b600060208201905061411060008301846140ec565b92915050565b60006020828403121561412c5761412b613b9e565b5b600061413a84828501613deb565b91505092915050565b6000806040838503121561415a57614159613b9e565b5b600061416885828601613d36565b925050602061417985828601613d36565b9150509250929050565b60008060006040848603121561419c5761419b613b9e565b5b60006141aa86828701613deb565b935050602084013567ffffffffffffffff8111156141cb576141ca613ba3565b5b6141d786828701613f59565b92509250509250925092565b600080604083850312156141fa576141f9613b9e565b5b600061420885828601613ede565b925050602061421985828601613ede565b9150509250929050565b61422c81613c2d565b811461423757600080fd5b50565b60008135905061424981614223565b92915050565b6000806040838503121561426657614265613b9e565b5b600061427485828601613deb565b92505060206142858582860161423a565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6142cc82613ca9565b810181811067ffffffffffffffff821117156142eb576142ea614294565b5b80604052505050565b60006142fe613b94565b905061430a82826142c3565b919050565b600067ffffffffffffffff82111561432a57614329614294565b5b61433382613ca9565b9050602081019050919050565b82818337600083830152505050565b600061436261435d8461430f565b6142f4565b90508281526020810184848401111561437e5761437d61428f565b5b614389848285614340565b509392505050565b600082601f8301126143a6576143a5613f4a565b5b81356143b684826020860161434f565b91505092915050565b600080600080608085870312156143d9576143d8613b9e565b5b60006143e787828801613deb565b94505060206143f887828801613deb565b935050604061440987828801613d36565b925050606085013567ffffffffffffffff81111561442a57614429613ba3565b5b61443687828801614391565b91505092959194509250565b60008083601f84011261445857614457613f4a565b5b8235905067ffffffffffffffff81111561447557614474613f4f565b5b60208301915083600182028301111561449157614490613f54565b5b9250929050565b600080600080606085870312156144b2576144b1613b9e565b5b60006144c087828801613d36565b94505060206144d187828801613d36565b935050604085013567ffffffffffffffff8111156144f2576144f1613ba3565b5b6144fe87828801614442565b925092505092959194509250565b6000806040838503121561452357614522613b9e565b5b600061453185828601613deb565b925050602061454285828601613deb565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061459357607f821691505b6020821081036145a6576145a561454c565b5b50919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b6000614608602b83613c6e565b9150614613826145ac565b604082019050919050565b60006020820190508181036000830152614637816145fb565b9050919050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b600061469a602f83613c6e565b91506146a58261463e565b604082019050919050565b600060208201905081810360008301526146c98161468d565b9050919050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b600061472c602c83613c6e565b9150614737826146d0565b604082019050919050565b6000602082019050818103600083015261475b8161471f565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b60006147c7601883613c6e565b91506147d282614791565b602082019050919050565b600060208201905081810360008301526147f6816147ba565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b6000614859602983613c6e565b9150614864826147fd565b604082019050919050565b600060208201905081810360008301526148888161484c565b9050919050565b60006040820190506148a46000830185613daa565b6148b16020830184613e40565b9392505050565b60006040820190506148cd6000830185613e40565b6148da6020830184613e40565b9392505050565b60006060820190506148f66000830186613e40565b6149036020830185613e40565b6149106040830184613e40565b949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061495282613d15565b915061495d83613d15565b925082820190508082111561497557614974614918565b5b92915050565b60006080820190506149906000830187613e40565b61499d6020830186613daa565b6149aa6040830185613e40565b6149b76060830184613e40565b95945050505050565b6000819050919050565b6149db6149d682613ebd565b6149c0565b82525050565b60006149ed82846149ca565b60208201915081905092915050565b600081905092915050565b6000614a1282613c63565b614a1c81856149fc565b9350614a2c818560208601613c7f565b80840191505092915050565b6000614a448285614a07565b9150614a508284614a07565b91508190509392505050565b600082905092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302614ac97fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614a8c565b614ad38683614a8c565b95508019841693508086168417925050509392505050565b6000614b06614b01614afc84613d15565b61409c565b613d15565b9050919050565b6000819050919050565b614b2083614aeb565b614b34614b2c82614b0d565b848454614a99565b825550505050565b600090565b614b49614b3c565b614b54818484614b17565b505050565b5b81811015614b7857614b6d600082614b41565b600181019050614b5a565b5050565b601f821115614bbd57614b8e81614a67565b614b9784614a7c565b81016020851015614ba6578190505b614bba614bb285614a7c565b830182614b59565b50505b505050565b600082821c905092915050565b6000614be060001984600802614bc2565b1980831691505092915050565b6000614bf98383614bcf565b9150826002028217905092915050565b614c138383614a5c565b67ffffffffffffffff811115614c2c57614c2b614294565b5b614c36825461457b565b614c41828285614b7c565b6000601f831160018114614c705760008415614c5e578287013590505b614c688582614bed565b865550614cd0565b601f198416614c7e86614a67565b60005b82811015614ca657848901358255600182019150602085019450602081019050614c81565b86831015614cc35784890135614cbf601f891682614bcf565b8355505b6001600288020188555050505b50505050505050565b6000614ce482613d15565b9150614cef83613d15565b9250828203905081811115614d0757614d06614918565b5b92915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614d69602683613c6e565b9150614d7482614d0d565b604082019050919050565b60006020820190508181036000830152614d9881614d5c565b9050919050565b6000604082019050614db46000830185613daa565b614dc16020830184613daa565b9392505050565b600081519050614dd781614223565b92915050565b600060208284031215614df357614df2613b9e565b5b6000614e0184828501614dc8565b91505092915050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b6000614e66602183613c6e565b9150614e7182614e0a565b604082019050919050565b60006020820190508181036000830152614e9581614e59565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b6000614ef8603e83613c6e565b9150614f0382614e9c565b604082019050919050565b60006020820190508181036000830152614f2781614eeb565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b6000614f8a602e83613c6e565b9150614f9582614f2e565b604082019050919050565b60006020820190508181036000830152614fb981614f7d565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614ff6602083613c6e565b915061500182614fc0565b602082019050919050565b6000602082019050818103600083015261502581614fe9565b9050919050565b600061503782613d15565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361506957615068614918565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006150ae82613d15565b91506150b983613d15565b9250826150c9576150c8615074565b5b828204905092915050565b60006150df82613d15565b91506150ea83613d15565b9250826150fa576150f9615074565b5b828206905092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b600061513b602083613c6e565b915061514682615105565b602082019050919050565b6000602082019050818103600083015261516a8161512e565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b60006151a7601c83613c6e565b91506151b282615171565b602082019050919050565b600060208201905081810360008301526151d68161519a565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b6000615239602583613c6e565b9150615244826151dd565b604082019050919050565b600060208201905081810360008301526152688161522c565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006152cb602483613c6e565b91506152d68261526f565b604082019050919050565b600060208201905081810360008301526152fa816152be565b9050919050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b60006153376017836149fc565b915061534282615301565b601782019050919050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b60006153836011836149fc565b915061538e8261534d565b601182019050919050565b60006153a48261532a565b91506153b08285614a07565b91506153bb82615376565b91506153c78284614a07565b91508190509392505050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000615409601983613c6e565b9150615414826153d3565b602082019050919050565b60006020820190508181036000830152615438816153fc565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b600061549b603283613c6e565b91506154a68261543f565b604082019050919050565b600060208201905081810360008301526154ca8161548e565b9050919050565b60006154dc82613d15565b91506154e783613d15565b92508282026154f581613d15565b9150828204841483151761550c5761550b614918565b5b5092915050565b600061551e82613d15565b91506000820361553157615530614918565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b6000615572602083613c6e565b915061557d8261553c565b602082019050919050565b600060208201905081810360008301526155a181615565565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006155cf826155a8565b6155d981856155b3565b93506155e9818560208601613c7f565b6155f281613ca9565b840191505092915050565b60006080820190506156126000830187613daa565b61561f6020830186613daa565b61562c6040830185613e40565b818103606083015261563e81846155c4565b905095945050505050565b60008151905061565881613bd4565b92915050565b60006020828403121561567457615673613b9e565b5b600061568284828501615649565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea264697066735822122025ddec67dac33b21db957c18e6726ad1668a6dea7adf555ca71662ff645fdae064736f6c63430008110033
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.