ERC-721
Overview
Max Total Supply
10 CHRONIC
Holders
10
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 CHRONICLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
ChronicleLabs
Compiler Version
v0.8.13+commit.abaa5c0e
Optimization Enabled:
Yes with 20000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.6; import "./ERC721A.sol"; import {AccessControl} from "../lib/openzeppelin-contracts/contracts/access/AccessControl.sol"; import {ReentrancyGuard} from "../lib/openzeppelin-contracts/contracts/security/ReentrancyGuard.sol"; import {Strings} from "../lib/openzeppelin-contracts/contracts/utils/Strings.sol"; import {IAccessControl} from "../lib/openzeppelin-contracts/contracts/access/IAccessControl.sol"; import {IERC20} from "../lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol"; import {SafeERC20} from "../lib/openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol"; import {IERC721} from "../lib/openzeppelin-contracts/contracts/token/ERC721/IERC721.sol"; import {IERC721Metadata} from "../lib/openzeppelin-contracts/contracts/token/ERC721/extensions/IERC721Metadata.sol"; import {IERC721Enumerable} from "../lib/openzeppelin-contracts/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; contract ChronicleLabs is AccessControl, ERC721A, ReentrancyGuard { using SafeERC20 for IERC20; mapping(address => uint256) public allowlist; uint256 public allowlistCounter; string private _baseTokenURI; bytes32 public constant ALLOWER_ROLE = keccak256("ALLOWER_ROLE"); constructor(address owner) ERC721A("ChronicleLabs", "CHRONIC", 1, 250) { _setupRole(DEFAULT_ADMIN_ROLE, owner); _setupRole(ALLOWER_ROLE, owner); } modifier callerIsUser() { require(tx.origin == msg.sender, "The caller is another contract"); _; } modifier onlyAdmin() { require( hasRole(DEFAULT_ADMIN_ROLE, msg.sender), "The caller does not have the ADMIN role" ); _; } modifier onlyAllower() { require( hasRole(ALLOWER_ROLE, msg.sender), "The caller does not have the ALLOWER role" ); _; } receive() external payable { revert("Contract does not accept ether transfers"); } fallback() external payable { revert("Contract does not accept ether transfers"); } function mintChronicleLabs() external callerIsUser { require( allowlist[msg.sender] > 0, "Not eligible for mint or already has minted" ); require( numberMinted(msg.sender) == 0, "You've already minted your NFT" ); require(totalSupply() + 1 <= collectionSize, "Reached max supply"); allowlist[msg.sender]--; allowlistCounter--; _safeMint(msg.sender, 1); } function batchAllowAndMint(address[] memory addresses) external onlyAllower { for (uint256 i = 0; i < addresses.length; i++) { uint256 mints = allowlist[addresses[i]]; require( mints == 0, "One of the passed addresses is already on the allow list" ); require( numberMinted(addresses[i]) == 0, "One of the passed addresses already own the NFT" ); require(totalSupply() + 1 <= collectionSize, "Reached max supply"); _safeMint(addresses[i], 1); } } function addToAllowlist(address[] memory addresses) external onlyAllower { for (uint256 i = 0; i < addresses.length; i++) { allowlist[addresses[i]] = 1; allowlistCounter++; } } function isEligible(address user) external view returns (bool) { return numberMinted(msg.sender) == 0 && allowlist[user] > 0; } function _baseURI() internal view virtual override returns (string memory) { return _baseTokenURI; } function setBaseURI(string calldata baseURI) external onlyAdmin { _baseTokenURI = baseURI; } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { return _baseURI(); } function setOwnersExplicit(uint256 quantity) external onlyAdmin nonReentrant { _setOwnersExplicit(quantity); } function numberMinted(address owner) public view returns (uint256) { return _numberMinted(owner); } function getOwnershipData(uint256 tokenId) external view returns (TokenOwnership memory) { return ownershipOf(tokenId); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(AccessControl, ERC721A) returns (bool) { return interfaceId == type(IAccessControl).interfaceId || interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } function grantAllowerRole(address to) external onlyAdmin { grantRole(ALLOWER_ROLE, to); } function revokeAllowerRole(address from) external onlyAdmin { revokeRole(ALLOWER_ROLE, from); } function transferAdmin(address to) external onlyAdmin { grantRole(DEFAULT_ADMIN_ROLE, to); renounceRole(DEFAULT_ADMIN_ROLE, msg.sender); } function rescueTokens(address tokenAddress) external onlyAdmin { IERC20 token = IERC20(tokenAddress); uint256 balance = token.balanceOf(address(this)); require(balance > 0, "No tokens for given address"); token.safeTransfer(msg.sender, balance); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.6; import "../lib/openzeppelin-contracts/contracts/token/ERC721/IERC721.sol"; import "../lib/openzeppelin-contracts/contracts/token/ERC721/IERC721Receiver.sol"; import "../lib/openzeppelin-contracts/contracts/token/ERC721/extensions/IERC721Metadata.sol"; import "../lib/openzeppelin-contracts/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; import "../lib/openzeppelin-contracts/contracts/utils/Address.sol"; import "../lib/openzeppelin-contracts/contracts/utils/Context.sol"; import "../lib/openzeppelin-contracts/contracts/utils/Strings.sol"; import "../lib/openzeppelin-contracts/contracts/utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..). * * Assumes the number of issuable tokens (collection size) is capped and fits in a uint128. * * Does not support burning tokens to address(0). */ contract ERC721A is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable { using Address for address; using Strings for uint256; struct TokenOwnership { address addr; uint64 startTimestamp; } struct AddressData { uint128 balance; uint128 numberMinted; } uint256 private currentIndex = 0; uint256 internal immutable collectionSize; uint256 internal immutable maxBatchSize; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See ownershipOf implementation for details. mapping(uint256 => TokenOwnership) private _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev * `maxBatchSize` refers to how much a minter can mint at a time. * `collectionSize_` refers to how many tokens are in the collection. */ constructor( string memory name_, string memory symbol_, uint256 maxBatchSize_, uint256 collectionSize_ ) { require( collectionSize_ > 0, "ERC721A: collection must have a nonzero supply" ); require(maxBatchSize_ > 0, "ERC721A: max batch size must be nonzero"); _name = name_; _symbol = symbol_; maxBatchSize = maxBatchSize_; collectionSize = collectionSize_; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view override returns (uint256) { return currentIndex; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view override returns (uint256) { require(index < totalSupply(), "ERC721A: global index out of bounds"); return index; } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. * This read function is O(collectionSize). If calling from a separate contract, be sure to test gas first. * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) { require(index < balanceOf(owner), "ERC721A: owner index out of bounds"); uint256 numMintedSoFar = totalSupply(); uint256 tokenIdsIdx = 0; address currOwnershipAddr = address(0); for (uint256 i = 0; i < numMintedSoFar; i++) { TokenOwnership memory ownership = _ownerships[i]; if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { if (tokenIdsIdx == index) { return i; } tokenIdsIdx++; } } revert("ERC721A: unable to get token of owner by index"); } /** * @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 || interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { require(owner != address(0), "ERC721A: balance query for the zero address"); return uint256(_addressData[owner].balance); } function _numberMinted(address owner) internal view returns (uint256) { require( owner != address(0), "ERC721A: number minted query for the zero address" ); return uint256(_addressData[owner].numberMinted); } function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { require(_exists(tokenId), "ERC721A: owner query for nonexistent token"); uint256 lowestTokenToCheck; if (tokenId >= maxBatchSize) { lowestTokenToCheck = tokenId - maxBatchSize + 1; } for (uint256 curr = tokenId; curr >= lowestTokenToCheck; curr--) { TokenOwnership memory ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } revert("ERC721A: unable to determine the owner of token"); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return ownershipOf(tokenId).addr; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require( _exists(tokenId), "ERC721Metadata: URI query for nonexistent token" ); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721A.ownerOf(tokenId); require(to != owner, "ERC721A: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721A: approve caller is not owner nor approved for all" ); _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { require(_exists(tokenId), "ERC721A: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public override { require(operator != _msgSender(), "ERC721A: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public override { _transfer(from, to, tokenId); require( _checkOnERC721Received(from, to, tokenId, _data), "ERC721A: 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`), */ function _exists(uint256 tokenId) internal view returns (bool) { return tokenId < currentIndex; } function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ""); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - there must be `quantity` tokens remaining unminted in the total collection. * - `to` cannot be the zero address. * - `quantity` cannot be larger than the max batch size. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { uint256 startTokenId = currentIndex; require(to != address(0), "ERC721A: mint to the zero address"); // We know if the first token in the batch doesn't exist, the other ones don't as well, because of serial ordering. require(!_exists(startTokenId), "ERC721A: token already minted"); require(quantity <= maxBatchSize, "ERC721A: quantity to mint too high"); _beforeTokenTransfers(address(0), to, startTokenId, quantity); AddressData memory addressData = _addressData[to]; _addressData[to] = AddressData( addressData.balance + uint128(quantity), addressData.numberMinted + uint128(quantity) ); _ownerships[startTokenId] = TokenOwnership(to, uint64(block.timestamp)); uint256 updatedIndex = startTokenId; for (uint256 i = 0; i < quantity; i++) { emit Transfer(address(0), to, updatedIndex); require( _checkOnERC721Received(address(0), to, updatedIndex, _data), "ERC721A: transfer to non ERC721Receiver implementer" ); updatedIndex++; } currentIndex = updatedIndex; _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) private { TokenOwnership memory prevOwnership = ownershipOf(tokenId); bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr || getApproved(tokenId) == _msgSender() || isApprovedForAll(prevOwnership.addr, _msgSender())); require( isApprovedOrOwner, "ERC721A: transfer caller is not owner nor approved" ); require( prevOwnership.addr == from, "ERC721A: transfer from incorrect owner" ); require(to != address(0), "ERC721A: transfer to the zero address"); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); _addressData[from].balance -= 1; _addressData[to].balance += 1; _ownerships[tokenId] = TokenOwnership(to, uint64(block.timestamp)); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; if (_ownerships[nextTokenId].addr == address(0)) { if (_exists(nextTokenId)) { _ownerships[nextTokenId] = TokenOwnership( prevOwnership.addr, prevOwnership.startTimestamp ); } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } uint256 public nextOwnerToExplicitlySet = 0; /** * @dev Explicitly set `owners` to eliminate loops in future calls of ownerOf(). */ function _setOwnersExplicit(uint256 quantity) internal { uint256 oldNextOwnerToSet = nextOwnerToExplicitlySet; require(quantity > 0, "quantity must be nonzero"); uint256 endIndex = oldNextOwnerToSet + quantity - 1; if (endIndex > collectionSize - 1) { endIndex = collectionSize - 1; } // We know if the last one in the group exists, all in the group exist, due to serial ordering. require(_exists(endIndex), "not enough minted yet for this cleanup"); for (uint256 i = oldNextOwnerToSet; i <= endIndex; i++) { if (_ownerships[i].addr == address(0)) { TokenOwnership memory ownership = ownershipOf(i); _ownerships[i] = TokenOwnership( ownership.addr, ownership.startTimestamp ); } } nextOwnerToExplicitlySet = endIndex + 1; } /** * @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(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721A: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
// 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(account), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleGranted} event. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleRevoked} event. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. * * May emit a {RoleRevoked} event. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * May emit a {RoleGranted} event. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. * * May emit a {RoleGranted} event. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. * * May emit a {RoleRevoked} event. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.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 // 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.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../extensions/draft-IERC20Permit.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// 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 v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (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 (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 functionCallWithValue(target, data, 0, "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"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or 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 { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // 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 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 (token/ERC20/extensions/draft-IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "remappings": [ "@chainlink/=lib/chainlink-brownie-contracts/", "@clones/=lib/clones-with-immutable-args/src/", "@solmate/=lib/solmate/src/", "@std/=lib/forge-std/src/", "chainlink-brownie-contracts/=lib/chainlink-brownie-contracts/contracts/src/v0.8/dev/vendor/@arbitrum/nitro-contracts/src/", "ds-test/=lib/forge-std/lib/ds-test/src/", "forge-std/=lib/forge-std/src/", "openzeppelin-contracts/=lib/openzeppelin-contracts/", "solmate/=lib/solmate/src/" ], "optimizer": { "enabled": true, "runs": 20000 }, "metadata": { "bytecodeHash": "ipfs" }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "evmVersion": "london", "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"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"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"ALLOWER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"addToAllowlist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"allowlist","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allowlistCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"batchAllowAndMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getOwnershipData","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"}],"internalType":"struct ERC721A.TokenOwnership","name":"","type":"tuple"}],"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":"address","name":"to","type":"address"}],"name":"grantAllowerRole","outputs":[],"stateMutability":"nonpayable","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":"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"}],"name":"isEligible","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintChronicleLabs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextOwnerToExplicitlySet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"numberMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"rescueTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"}],"name":"revokeAllowerRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"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":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"setOwnersExplicit","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":"to","type":"address"}],"name":"transferAdmin","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":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60c0604052600060015560006008553480156200001b57600080fd5b506040516200453a3803806200453a8339810160408190526200003e9162000329565b6040518060400160405280600d81526020016c4368726f6e69636c654c61627360981b815250604051806040016040528060078152602001664348524f4e494360c81b815250600160fa60008111620000f55760405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20636f6c6c656374696f6e206d757374206861766520612060448201526d6e6f6e7a65726f20737570706c7960901b60648201526084015b60405180910390fd5b60008211620001575760405162461bcd60e51b815260206004820152602760248201527f455243373231413a206d61782062617463682073697a65206d757374206265206044820152666e6f6e7a65726f60c81b6064820152608401620000ec565b83516200016c90600290602087019062000283565b5082516200018290600390602086019062000283565b5060a09190915260805250506001600955620001a0600082620001d3565b620001cc7f2e304fa367e6bae25074aa208a0f43e2334743818f7c95fe77cf129d05fbe9fa82620001d3565b5062000397565b620001df8282620001e3565b5050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16620001df576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556200023f3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b82805462000291906200035b565b90600052602060002090601f016020900481019282620002b5576000855562000300565b82601f10620002d057805160ff191683800117855562000300565b8280016001018555821562000300579182015b8281111562000300578251825591602001919060010190620002e3565b506200030e92915062000312565b5090565b5b808211156200030e576000815560010162000313565b6000602082840312156200033c57600080fd5b81516001600160a01b03811681146200035457600080fd5b9392505050565b600181811c908216806200037057607f821691505b6020821081036200039157634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05161415a620003e060003960008181612a6101528181612a8b0152613185015260008181611400015281816119490152818161262e0152612660015261415a6000f3fe6080604052600436106102885760003560e01c80635bc8314411610153578063a217fddf116100cb578063c87b56dd1161007f578063d7224ba011610064578063d7224ba014610881578063dc33e68114610897578063e985e9c5146108b757610300565b8063c87b56dd14610841578063d547741f1461086157610300565b8063a7cd52cb116100b0578063a7cd52cb146107d4578063b88d4fde14610801578063bde740b11461082157610300565b8063a217fddf1461079f578063a22cb465146107b457610300565b806375829def1161012257806391d148541161010757806391d14854146106de5780639231ab2a1461072f57806395d89b411461078a57610300565b806375829def146106a8578063779f715b146106c857610300565b80635bc83144146106285780636352211e1461064857806366e305fd1461066857806370a082311461068857610300565b8063248a9ca31161020157806342842e0e116101b55780634f6ccce71161019a5780634f6ccce7146105c85780635207c273146105e857806355f804b31461060857610300565b806342842e0e146105935780634d6f01a8146105b357610300565b80632f2ff15d116101e65780632f2ff15d146105335780632f745c591461055357806336568abe1461057357610300565b8063248a9ca3146104e35780632d20fb601461051357610300565b8063095ea7b3116102585780631685c5ff1161023d5780631685c5ff1461048e57806318160ddd146104ae57806323b872dd146104c357610300565b8063095ea7b31461042c57806310766f6f1461044c57610300565b8062ae3bf81461036e57806301ffc9a71461039057806306fdde03146103c5578063081812fc146103e757610300565b366103005760405162461bcd60e51b815260206004820152602860248201527f436f6e747261637420646f6573206e6f7420616363657074206574686572207460448201527f72616e736665727300000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b60405162461bcd60e51b815260206004820152602860248201527f436f6e747261637420646f6573206e6f7420616363657074206574686572207460448201527f72616e736665727300000000000000000000000000000000000000000000000060648201526084016102f7565b34801561037a57600080fd5b5061038e610389366004613978565b61090d565b005b34801561039c57600080fd5b506103b06103ab3660046139c1565b610abc565b60405190151581526020015b60405180910390f35b3480156103d157600080fd5b506103da610bfc565b6040516103bc9190613a54565b3480156103f357600080fd5b50610407610402366004613a67565b610c8e565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016103bc565b34801561043857600080fd5b5061038e610447366004613a80565b610d36565b34801561045857600080fd5b506104807f2e304fa367e6bae25074aa208a0f43e2334743818f7c95fe77cf129d05fbe9fa81565b6040519081526020016103bc565b34801561049a57600080fd5b5061038e6104a9366004613978565b610e8a565b3480156104ba57600080fd5b50600154610480565b3480156104cf57600080fd5b5061038e6104de366004613aaa565b610f5b565b3480156104ef57600080fd5b506104806104fe366004613a67565b60009081526020819052604090206001015490565b34801561051f57600080fd5b5061038e61052e366004613a67565b610f66565b34801561053f57600080fd5b5061038e61054e366004613ae6565b611025565b34801561055f57600080fd5b5061048061056e366004613a80565b61104a565b34801561057f57600080fd5b5061038e61058e366004613ae6565b611223565b34801561059f57600080fd5b5061038e6105ae366004613aaa565b6112bc565b3480156105bf57600080fd5b5061038e6112d7565b3480156105d457600080fd5b506104806105e3366004613a67565b6114c3565b3480156105f457600080fd5b5061038e610603366004613b90565b611546565b34801561061457600080fd5b5061038e610623366004613c3d565b61167f565b34801561063457600080fd5b5061038e610643366004613b90565b61172f565b34801561065457600080fd5b50610407610663366004613a67565b611a01565b34801561067457600080fd5b506103b0610683366004613978565b611a13565b34801561069457600080fd5b506104806106a3366004613978565b611a51565b3480156106b457600080fd5b5061038e6106c3366004613978565b611b17565b3480156106d457600080fd5b50610480600b5481565b3480156106ea57600080fd5b506103b06106f9366004613ae6565b60009182526020828152604080842073ffffffffffffffffffffffffffffffffffffffff93909316845291905290205460ff1690565b34801561073b57600080fd5b5061074f61074a366004613a67565b611bd1565b60408051825173ffffffffffffffffffffffffffffffffffffffff16815260209283015167ffffffffffffffff1692810192909252016103bc565b34801561079657600080fd5b506103da611bee565b3480156107ab57600080fd5b50610480600081565b3480156107c057600080fd5b5061038e6107cf366004613cbd565b611bfd565b3480156107e057600080fd5b506104806107ef366004613978565b600a6020526000908152604090205481565b34801561080d57600080fd5b5061038e61081c366004613cf4565b611cf9565b34801561082d57600080fd5b5061038e61083c366004613978565b611d88565b34801561084d57600080fd5b506103da61085c366004613a67565b611e56565b34801561086d57600080fd5b5061038e61087c366004613ae6565b611e60565b34801561088d57600080fd5b5061048060085481565b3480156108a357600080fd5b506104806108b2366004613978565b611e85565b3480156108c357600080fd5b506103b06108d2366004613dd2565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260076020908152604080832093909416825291909152205460ff1690565b3360009081527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604090205460ff166109b15760405162461bcd60e51b815260206004820152602760248201527f5468652063616c6c657220646f6573206e6f742068617665207468652041444d60448201527f494e20726f6c650000000000000000000000000000000000000000000000000060648201526084016102f7565b6040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152819060009073ffffffffffffffffffffffffffffffffffffffff8316906370a0823190602401602060405180830381865afa158015610a20573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a449190613dfc565b905060008111610a965760405162461bcd60e51b815260206004820152601b60248201527f4e6f20746f6b656e7320666f7220676976656e2061646472657373000000000060448201526064016102f7565b610ab773ffffffffffffffffffffffffffffffffffffffff83163383611e90565b505050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b000000000000000000000000000000000000000000000000000000001480610b4f57507fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000145b80610b9b57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610be757507fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d6300000000000000000000000000000000000000000000000000000000145b80610bf65750610bf682611f1d565b92915050565b606060028054610c0b90613e15565b80601f0160208091040260200160405190810160405280929190818152602001828054610c3790613e15565b8015610c845780601f10610c5957610100808354040283529160200191610c84565b820191906000526020600020905b815481529060010190602001808311610c6757829003601f168201915b5050505050905090565b6000610c9b826001541190565b610d0d5760405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201527f78697374656e7420746f6b656e0000000000000000000000000000000000000060648201526084016102f7565b5060009081526006602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b6000610d4182611a01565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610de45760405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201527f657200000000000000000000000000000000000000000000000000000000000060648201526084016102f7565b3373ffffffffffffffffffffffffffffffffffffffff82161480610e0d5750610e0d81336108d2565b610e7f5760405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c0000000000000060648201526084016102f7565b610ab783838361200b565b3360009081527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604090205460ff16610f2e5760405162461bcd60e51b815260206004820152602760248201527f5468652063616c6c657220646f6573206e6f742068617665207468652041444d60448201527f494e20726f6c650000000000000000000000000000000000000000000000000060648201526084016102f7565b610f587f2e304fa367e6bae25074aa208a0f43e2334743818f7c95fe77cf129d05fbe9fa82611025565b50565b610ab783838361208c565b3360009081527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604090205460ff1661100a5760405162461bcd60e51b815260206004820152602760248201527f5468652063616c6c657220646f6573206e6f742068617665207468652041444d60448201527f494e20726f6c650000000000000000000000000000000000000000000000000060648201526084016102f7565b611012612564565b61101b816125bd565b610f586001600955565b60008281526020819052604090206001015461104081612801565b610ab7838361280b565b600061105583611a51565b82106110c95760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e60448201527f647300000000000000000000000000000000000000000000000000000000000060648201526084016102f7565b60006110d460015490565b905060008060005b838110156111b45760008181526004602090815260409182902082518084019093525473ffffffffffffffffffffffffffffffffffffffff81168084527401000000000000000000000000000000000000000090910467ffffffffffffffff16918301919091521561114d57805192505b8773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036111a15786840361119357509350610bf692505050565b8361119d81613e97565b9450505b50806111ac81613e97565b9150506110dc565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201527f6f776e657220627920696e64657800000000000000000000000000000000000060648201526084016102f7565b73ffffffffffffffffffffffffffffffffffffffff811633146112ae5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c66000000000000000000000000000000000060648201526084016102f7565b6112b882826128fb565b5050565b610ab783838360405180602001604052806000815250611cf9565b3233146113265760405162461bcd60e51b815260206004820152601e60248201527f5468652063616c6c657220697320616e6f7468657220636f6e7472616374000060448201526064016102f7565b336000908152600a60205260409020546113a85760405162461bcd60e51b815260206004820152602b60248201527f4e6f7420656c696769626c6520666f72206d696e74206f7220616c726561647960448201527f20686173206d696e74656400000000000000000000000000000000000000000060648201526084016102f7565b6113b133611e85565b156113fe5760405162461bcd60e51b815260206004820152601e60248201527f596f7527766520616c7265616479206d696e74656420796f7572204e4654000060448201526064016102f7565b7f000000000000000000000000000000000000000000000000000000000000000061142860015490565b611433906001613ecf565b11156114815760405162461bcd60e51b815260206004820152601260248201527f52656163686564206d617820737570706c79000000000000000000000000000060448201526064016102f7565b336000908152600a6020526040812080549161149c83613ee7565b9091555050600b80549060006114b183613ee7565b91905055506114c13360016129b2565b565b60006114ce60015490565b82106115425760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f7560448201527f6e6473000000000000000000000000000000000000000000000000000000000060648201526084016102f7565b5090565b3360009081527ffe8f5c6b27efa39fbcd97456ca17084d002faf2b625318826d39faa1a0a6b309602052604090205460ff166115ea5760405162461bcd60e51b815260206004820152602960248201527f5468652063616c6c657220646f6573206e6f7420686176652074686520414c4c60448201527f4f57455220726f6c65000000000000000000000000000000000000000000000060648201526084016102f7565b60005b81518110156112b8576001600a600084848151811061160e5761160e613f1c565b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600b600081548092919061166790613e97565b9190505550808061167790613e97565b9150506115ed565b3360009081527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604090205460ff166117235760405162461bcd60e51b815260206004820152602760248201527f5468652063616c6c657220646f6573206e6f742068617665207468652041444d60448201527f494e20726f6c650000000000000000000000000000000000000000000000000060648201526084016102f7565b610ab7600c83836138a1565b3360009081527ffe8f5c6b27efa39fbcd97456ca17084d002faf2b625318826d39faa1a0a6b309602052604090205460ff166117d35760405162461bcd60e51b815260206004820152602960248201527f5468652063616c6c657220646f6573206e6f7420686176652074686520414c4c60448201527f4f57455220726f6c65000000000000000000000000000000000000000000000060648201526084016102f7565b60005b81518110156112b8576000600a60008484815181106117f7576117f7613f1c565b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050806000146118b25760405162461bcd60e51b815260206004820152603860248201527f4f6e65206f66207468652070617373656420616464726573736573206973206160448201527f6c7265616479206f6e2074686520616c6c6f77206c697374000000000000000060648201526084016102f7565b6118d48383815181106118c7576118c7613f1c565b6020026020010151611e85565b156119475760405162461bcd60e51b815260206004820152602f60248201527f4f6e65206f6620746865207061737365642061646472657373657320616c726560448201527f616479206f776e20746865204e4654000000000000000000000000000000000060648201526084016102f7565b7f000000000000000000000000000000000000000000000000000000000000000061197160015490565b61197c906001613ecf565b11156119ca5760405162461bcd60e51b815260206004820152601260248201527f52656163686564206d617820737570706c79000000000000000000000000000060448201526064016102f7565b6119ee8383815181106119df576119df613f1c565b602002602001015160016129b2565b50806119f981613e97565b9150506117d6565b6000611a0c826129cc565b5192915050565b6000611a1e33611e85565b158015610bf657505073ffffffffffffffffffffffffffffffffffffffff166000908152600a6020526040902054151590565b600073ffffffffffffffffffffffffffffffffffffffff8216611adc5760405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201527f65726f206164647265737300000000000000000000000000000000000000000060648201526084016102f7565b5073ffffffffffffffffffffffffffffffffffffffff166000908152600560205260409020546fffffffffffffffffffffffffffffffff1690565b3360009081527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604090205460ff16611bbb5760405162461bcd60e51b815260206004820152602760248201527f5468652063616c6c657220646f6573206e6f742068617665207468652041444d60448201527f494e20726f6c650000000000000000000000000000000000000000000000000060648201526084016102f7565b611bc6600082611025565b610f58600033611223565b6040805180820190915260008082526020820152610bf6826129cc565b606060038054610c0b90613e15565b3373ffffffffffffffffffffffffffffffffffffffff831603611c625760405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c657200000000000060448201526064016102f7565b33600081815260076020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611d0484848461208c565b611d1084848484612bb5565b611d825760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e7465720000000000000000000000000060648201526084016102f7565b50505050565b3360009081527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604090205460ff16611e2c5760405162461bcd60e51b815260206004820152602760248201527f5468652063616c6c657220646f6573206e6f742068617665207468652041444d60448201527f494e20726f6c650000000000000000000000000000000000000000000000000060648201526084016102f7565b610f587f2e304fa367e6bae25074aa208a0f43e2334743818f7c95fe77cf129d05fbe9fa82611e60565b6060610bf6612d8f565b600082815260208190526040902060010154611e7b81612801565b610ab783836128fb565b6000610bf682612d9e565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052610ab7908490612e78565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480611fb057507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80611ffc57507fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d6300000000000000000000000000000000000000000000000000000000145b80610bf65750610bf682612f6a565b60008281526006602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff87811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000612097826129cc565b805190915060009073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806120f55750336120dd84610c8e565b73ffffffffffffffffffffffffffffffffffffffff16145b806121075750815161210790336108d2565b90508061217c5760405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f766564000000000000000000000000000060648201526084016102f7565b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff16146122215760405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f727265637460448201527f206f776e6572000000000000000000000000000000000000000000000000000060648201526084016102f7565b73ffffffffffffffffffffffffffffffffffffffff84166122aa5760405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f20616460448201527f647265737300000000000000000000000000000000000000000000000000000060648201526084016102f7565b6122ba600084846000015161200b565b73ffffffffffffffffffffffffffffffffffffffff851660009081526005602052604081208054600192906123029084906fffffffffffffffffffffffffffffffff16613f4b565b82546101009290920a6fffffffffffffffffffffffffffffffff81810219909316918316021790915573ffffffffffffffffffffffffffffffffffffffff86166000908152600560205260408120805460019450909261236491859116613f7c565b82546fffffffffffffffffffffffffffffffff9182166101009390930a92830291909202199091161790555060408051808201825273ffffffffffffffffffffffffffffffffffffffff808716825267ffffffffffffffff42811660208085019182526000898152600490915294852093518454915190921674010000000000000000000000000000000000000000027fffffffff00000000000000000000000000000000000000000000000000000000909116919092161717905561242b846001613ecf565b60008181526004602052604090205490915073ffffffffffffffffffffffffffffffffffffffff1661250057612462816001541190565b1561250057604080518082018252845173ffffffffffffffffffffffffffffffffffffffff908116825260208087015167ffffffffffffffff908116828501908152600087815260049093529490912092518354945190911674010000000000000000000000000000000000000000027fffffffff000000000000000000000000000000000000000000000000000000009094169116179190911790555b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b6002600954036125b65760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016102f7565b6002600955565b6008548161260d5760405162461bcd60e51b815260206004820152601860248201527f7175616e74697479206d757374206265206e6f6e7a65726f000000000000000060448201526064016102f7565b6000600161261b8484613ecf565b6126259190613fb0565b905061265260017f0000000000000000000000000000000000000000000000000000000000000000613fb0565b8111156126875761268460017f0000000000000000000000000000000000000000000000000000000000000000613fb0565b90505b612692816001541190565b6127045760405162461bcd60e51b815260206004820152602660248201527f6e6f7420656e6f756768206d696e7465642079657420666f722074686973206360448201527f6c65616e7570000000000000000000000000000000000000000000000000000060648201526084016102f7565b815b8181116127ed5760008181526004602052604090205473ffffffffffffffffffffffffffffffffffffffff166127db576000612741826129cc565b604080518082018252825173ffffffffffffffffffffffffffffffffffffffff908116825260209384015167ffffffffffffffff908116858401908152600088815260049096529390942091518254935190941674010000000000000000000000000000000000000000027fffffffff00000000000000000000000000000000000000000000000000000000909316931692909217179055505b806127e581613e97565b915050612706565b506127f9816001613ecf565b600855505050565b610f588133613001565b60008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff166112b85760008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff85168452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905561289d3390565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff16156112b85760008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516808552925280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6112b882826040518060200160405280600081525061309f565b60408051808201909152600080825260208201526129eb826001541190565b612a5d5760405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e6578697360448201527f74656e7420746f6b656e0000000000000000000000000000000000000000000060648201526084016102f7565b60007f00000000000000000000000000000000000000000000000000000000000000008310612abe57612ab07f000000000000000000000000000000000000000000000000000000000000000084613fb0565b612abb906001613ecf565b90505b825b818110612b465760008181526004602090815260409182902082518084019093525473ffffffffffffffffffffffffffffffffffffffff81168084527401000000000000000000000000000000000000000090910467ffffffffffffffff169183019190915215612b3357949350505050565b5080612b3e81613ee7565b915050612ac0565b5060405162461bcd60e51b815260206004820152602f60248201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560448201527f206f776e6572206f6620746f6b656e000000000000000000000000000000000060648201526084016102f7565b600073ffffffffffffffffffffffffffffffffffffffff84163b15612d83576040517f150b7a0200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063150b7a0290612c2c903390899088908890600401613fc7565b6020604051808303816000875af1925050508015612c85575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252612c8291810190614010565b60015b612d38573d808015612cb3576040519150601f19603f3d011682016040523d82523d6000602084013e612cb8565b606091505b508051600003612d305760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e7465720000000000000000000000000060648201526084016102f7565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050612d87565b5060015b949350505050565b6060600c8054610c0b90613e15565b600073ffffffffffffffffffffffffffffffffffffffff8216612e295760405162461bcd60e51b815260206004820152603160248201527f455243373231413a206e756d626572206d696e74656420717565727920666f7260448201527f20746865207a65726f206164647265737300000000000000000000000000000060648201526084016102f7565b5073ffffffffffffffffffffffffffffffffffffffff1660009081526005602052604090205470010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff1690565b6000612eda826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166134999092919063ffffffff16565b805190915015610ab75780806020019051810190612ef8919061402d565b610ab75760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016102f7565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b000000000000000000000000000000000000000000000000000000001480610bf657507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610bf6565b60008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff166112b85761303f816134a8565b61304a8360206134c7565b60405160200161305b92919061404a565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529082905262461bcd60e51b82526102f791600401613a54565b60015473ffffffffffffffffffffffffffffffffffffffff841661312b5760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f2061646472657360448201527f730000000000000000000000000000000000000000000000000000000000000060648201526084016102f7565b613136816001541190565b156131835760405162461bcd60e51b815260206004820152601d60248201527f455243373231413a20746f6b656e20616c7265616479206d696e74656400000060448201526064016102f7565b7f00000000000000000000000000000000000000000000000000000000000000008311156132195760405162461bcd60e51b815260206004820152602260248201527f455243373231413a207175616e7469747920746f206d696e7420746f6f20686960448201527f676800000000000000000000000000000000000000000000000000000000000060648201526084016102f7565b73ffffffffffffffffffffffffffffffffffffffff84166000908152600560209081526040918290208251808401845290546fffffffffffffffffffffffffffffffff80821683527001000000000000000000000000000000009091041691810191909152815180830190925280519091908190613298908790613f7c565b6fffffffffffffffffffffffffffffffff1681526020018583602001516132bf9190613f7c565b6fffffffffffffffffffffffffffffffff90811690915273ffffffffffffffffffffffffffffffffffffffff808816600081815260056020908152604080832087519783015187167001000000000000000000000000000000000297909616969096179094558451808601865291825267ffffffffffffffff428116838601908152888352600490955294812091518254945190951674010000000000000000000000000000000000000000027fffffffff0000000000000000000000000000000000000000000000000000000090941694909216939093179190911790915582905b8581101561348e57604051829073ffffffffffffffffffffffffffffffffffffffff8916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46133fc6000888488612bb5565b61346e5760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e7465720000000000000000000000000060648201526084016102f7565b8161347881613e97565b925050808061348690613e97565b9150506133a2565b50600181905561255c565b6060612d8784846000856136f7565b6060610bf673ffffffffffffffffffffffffffffffffffffffff831660145b606060006134d68360026140cb565b6134e1906002613ecf565b67ffffffffffffffff8111156134f9576134f9613b12565b6040519080825280601f01601f191660200182016040528015613523576020820181803683370190505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061355a5761355a613f1c565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106135bd576135bd613f1c565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006135f98460026140cb565b613604906001613ecf565b90505b60018111156136a1577f303132333435363738396162636465660000000000000000000000000000000085600f166010811061364557613645613f1c565b1a60f81b82828151811061365b5761365b613f1c565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c9361369a81613ee7565b9050613607565b5083156136f05760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016102f7565b9392505050565b60608247101561376f5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016102f7565b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516137989190614108565b60006040518083038185875af1925050503d80600081146137d5576040519150601f19603f3d011682016040523d82523d6000602084013e6137da565b606091505b50915091506137eb878383876137f6565b979650505050505050565b6060831561387257825160000361386b5773ffffffffffffffffffffffffffffffffffffffff85163b61386b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016102f7565b5081612d87565b612d8783838151156138875781518083602001fd5b8060405162461bcd60e51b81526004016102f79190613a54565b8280546138ad90613e15565b90600052602060002090601f0160209004810192826138cf5760008555613933565b82601f10613906578280017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00823516178555613933565b82800160010185558215613933579182015b82811115613933578235825591602001919060010190613918565b506115429291505b80821115611542576000815560010161393b565b803573ffffffffffffffffffffffffffffffffffffffff8116811461397357600080fd5b919050565b60006020828403121561398a57600080fd5b6136f08261394f565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114610f5857600080fd5b6000602082840312156139d357600080fd5b81356136f081613993565b60005b838110156139f95781810151838201526020016139e1565b83811115611d825750506000910152565b60008151808452613a228160208601602086016139de565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b6020815260006136f06020830184613a0a565b600060208284031215613a7957600080fd5b5035919050565b60008060408385031215613a9357600080fd5b613a9c8361394f565b946020939093013593505050565b600080600060608486031215613abf57600080fd5b613ac88461394f565b9250613ad66020850161394f565b9150604084013590509250925092565b60008060408385031215613af957600080fd5b82359150613b096020840161394f565b90509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715613b8857613b88613b12565b604052919050565b60006020808385031215613ba357600080fd5b823567ffffffffffffffff80821115613bbb57600080fd5b818501915085601f830112613bcf57600080fd5b813581811115613be157613be1613b12565b8060051b9150613bf2848301613b41565b8181529183018401918481019088841115613c0c57600080fd5b938501935b83851015613c3157613c228561394f565b82529385019390850190613c11565b98975050505050505050565b60008060208385031215613c5057600080fd5b823567ffffffffffffffff80821115613c6857600080fd5b818501915085601f830112613c7c57600080fd5b813581811115613c8b57600080fd5b866020828501011115613c9d57600080fd5b60209290920196919550909350505050565b8015158114610f5857600080fd5b60008060408385031215613cd057600080fd5b613cd98361394f565b91506020830135613ce981613caf565b809150509250929050565b60008060008060808587031215613d0a57600080fd5b613d138561394f565b93506020613d2281870161394f565b935060408601359250606086013567ffffffffffffffff80821115613d4657600080fd5b818801915088601f830112613d5a57600080fd5b813581811115613d6c57613d6c613b12565b613d9c847fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f84011601613b41565b91508082528984828501011115613db257600080fd5b808484018584013760008482840101525080935050505092959194509250565b60008060408385031215613de557600080fd5b613dee8361394f565b9150613b096020840161394f565b600060208284031215613e0e57600080fd5b5051919050565b600181811c90821680613e2957607f821691505b602082108103613e62577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613ec857613ec8613e68565b5060010190565b60008219821115613ee257613ee2613e68565b500190565b600081613ef657613ef6613e68565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006fffffffffffffffffffffffffffffffff83811690831681811015613f7457613f74613e68565b039392505050565b60006fffffffffffffffffffffffffffffffff808316818516808303821115613fa757613fa7613e68565b01949350505050565b600082821015613fc257613fc2613e68565b500390565b600073ffffffffffffffffffffffffffffffffffffffff8087168352808616602084015250836040830152608060608301526140066080830184613a0a565b9695505050505050565b60006020828403121561402257600080fd5b81516136f081613993565b60006020828403121561403f57600080fd5b81516136f081613caf565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516140828160178501602088016139de565b7f206973206d697373696e6720726f6c652000000000000000000000000000000060179184019182015283516140bf8160288401602088016139de565b01602801949350505050565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561410357614103613e68565b500290565b6000825161411a8184602087016139de565b919091019291505056fea2646970667358221220287a04e3125ccc62bc9b363b050e9db790c29ee6ecf08b4a348074cbc395925964736f6c634300080d0033000000000000000000000000bdad0a513717785b2c920f2a5624ec7c010cbce8
Deployed Bytecode
0x6080604052600436106102885760003560e01c80635bc8314411610153578063a217fddf116100cb578063c87b56dd1161007f578063d7224ba011610064578063d7224ba014610881578063dc33e68114610897578063e985e9c5146108b757610300565b8063c87b56dd14610841578063d547741f1461086157610300565b8063a7cd52cb116100b0578063a7cd52cb146107d4578063b88d4fde14610801578063bde740b11461082157610300565b8063a217fddf1461079f578063a22cb465146107b457610300565b806375829def1161012257806391d148541161010757806391d14854146106de5780639231ab2a1461072f57806395d89b411461078a57610300565b806375829def146106a8578063779f715b146106c857610300565b80635bc83144146106285780636352211e1461064857806366e305fd1461066857806370a082311461068857610300565b8063248a9ca31161020157806342842e0e116101b55780634f6ccce71161019a5780634f6ccce7146105c85780635207c273146105e857806355f804b31461060857610300565b806342842e0e146105935780634d6f01a8146105b357610300565b80632f2ff15d116101e65780632f2ff15d146105335780632f745c591461055357806336568abe1461057357610300565b8063248a9ca3146104e35780632d20fb601461051357610300565b8063095ea7b3116102585780631685c5ff1161023d5780631685c5ff1461048e57806318160ddd146104ae57806323b872dd146104c357610300565b8063095ea7b31461042c57806310766f6f1461044c57610300565b8062ae3bf81461036e57806301ffc9a71461039057806306fdde03146103c5578063081812fc146103e757610300565b366103005760405162461bcd60e51b815260206004820152602860248201527f436f6e747261637420646f6573206e6f7420616363657074206574686572207460448201527f72616e736665727300000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b60405162461bcd60e51b815260206004820152602860248201527f436f6e747261637420646f6573206e6f7420616363657074206574686572207460448201527f72616e736665727300000000000000000000000000000000000000000000000060648201526084016102f7565b34801561037a57600080fd5b5061038e610389366004613978565b61090d565b005b34801561039c57600080fd5b506103b06103ab3660046139c1565b610abc565b60405190151581526020015b60405180910390f35b3480156103d157600080fd5b506103da610bfc565b6040516103bc9190613a54565b3480156103f357600080fd5b50610407610402366004613a67565b610c8e565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016103bc565b34801561043857600080fd5b5061038e610447366004613a80565b610d36565b34801561045857600080fd5b506104807f2e304fa367e6bae25074aa208a0f43e2334743818f7c95fe77cf129d05fbe9fa81565b6040519081526020016103bc565b34801561049a57600080fd5b5061038e6104a9366004613978565b610e8a565b3480156104ba57600080fd5b50600154610480565b3480156104cf57600080fd5b5061038e6104de366004613aaa565b610f5b565b3480156104ef57600080fd5b506104806104fe366004613a67565b60009081526020819052604090206001015490565b34801561051f57600080fd5b5061038e61052e366004613a67565b610f66565b34801561053f57600080fd5b5061038e61054e366004613ae6565b611025565b34801561055f57600080fd5b5061048061056e366004613a80565b61104a565b34801561057f57600080fd5b5061038e61058e366004613ae6565b611223565b34801561059f57600080fd5b5061038e6105ae366004613aaa565b6112bc565b3480156105bf57600080fd5b5061038e6112d7565b3480156105d457600080fd5b506104806105e3366004613a67565b6114c3565b3480156105f457600080fd5b5061038e610603366004613b90565b611546565b34801561061457600080fd5b5061038e610623366004613c3d565b61167f565b34801561063457600080fd5b5061038e610643366004613b90565b61172f565b34801561065457600080fd5b50610407610663366004613a67565b611a01565b34801561067457600080fd5b506103b0610683366004613978565b611a13565b34801561069457600080fd5b506104806106a3366004613978565b611a51565b3480156106b457600080fd5b5061038e6106c3366004613978565b611b17565b3480156106d457600080fd5b50610480600b5481565b3480156106ea57600080fd5b506103b06106f9366004613ae6565b60009182526020828152604080842073ffffffffffffffffffffffffffffffffffffffff93909316845291905290205460ff1690565b34801561073b57600080fd5b5061074f61074a366004613a67565b611bd1565b60408051825173ffffffffffffffffffffffffffffffffffffffff16815260209283015167ffffffffffffffff1692810192909252016103bc565b34801561079657600080fd5b506103da611bee565b3480156107ab57600080fd5b50610480600081565b3480156107c057600080fd5b5061038e6107cf366004613cbd565b611bfd565b3480156107e057600080fd5b506104806107ef366004613978565b600a6020526000908152604090205481565b34801561080d57600080fd5b5061038e61081c366004613cf4565b611cf9565b34801561082d57600080fd5b5061038e61083c366004613978565b611d88565b34801561084d57600080fd5b506103da61085c366004613a67565b611e56565b34801561086d57600080fd5b5061038e61087c366004613ae6565b611e60565b34801561088d57600080fd5b5061048060085481565b3480156108a357600080fd5b506104806108b2366004613978565b611e85565b3480156108c357600080fd5b506103b06108d2366004613dd2565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260076020908152604080832093909416825291909152205460ff1690565b3360009081527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604090205460ff166109b15760405162461bcd60e51b815260206004820152602760248201527f5468652063616c6c657220646f6573206e6f742068617665207468652041444d60448201527f494e20726f6c650000000000000000000000000000000000000000000000000060648201526084016102f7565b6040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152819060009073ffffffffffffffffffffffffffffffffffffffff8316906370a0823190602401602060405180830381865afa158015610a20573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a449190613dfc565b905060008111610a965760405162461bcd60e51b815260206004820152601b60248201527f4e6f20746f6b656e7320666f7220676976656e2061646472657373000000000060448201526064016102f7565b610ab773ffffffffffffffffffffffffffffffffffffffff83163383611e90565b505050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b000000000000000000000000000000000000000000000000000000001480610b4f57507fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000145b80610b9b57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610be757507fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d6300000000000000000000000000000000000000000000000000000000145b80610bf65750610bf682611f1d565b92915050565b606060028054610c0b90613e15565b80601f0160208091040260200160405190810160405280929190818152602001828054610c3790613e15565b8015610c845780601f10610c5957610100808354040283529160200191610c84565b820191906000526020600020905b815481529060010190602001808311610c6757829003601f168201915b5050505050905090565b6000610c9b826001541190565b610d0d5760405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201527f78697374656e7420746f6b656e0000000000000000000000000000000000000060648201526084016102f7565b5060009081526006602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b6000610d4182611a01565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610de45760405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201527f657200000000000000000000000000000000000000000000000000000000000060648201526084016102f7565b3373ffffffffffffffffffffffffffffffffffffffff82161480610e0d5750610e0d81336108d2565b610e7f5760405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c0000000000000060648201526084016102f7565b610ab783838361200b565b3360009081527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604090205460ff16610f2e5760405162461bcd60e51b815260206004820152602760248201527f5468652063616c6c657220646f6573206e6f742068617665207468652041444d60448201527f494e20726f6c650000000000000000000000000000000000000000000000000060648201526084016102f7565b610f587f2e304fa367e6bae25074aa208a0f43e2334743818f7c95fe77cf129d05fbe9fa82611025565b50565b610ab783838361208c565b3360009081527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604090205460ff1661100a5760405162461bcd60e51b815260206004820152602760248201527f5468652063616c6c657220646f6573206e6f742068617665207468652041444d60448201527f494e20726f6c650000000000000000000000000000000000000000000000000060648201526084016102f7565b611012612564565b61101b816125bd565b610f586001600955565b60008281526020819052604090206001015461104081612801565b610ab7838361280b565b600061105583611a51565b82106110c95760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e60448201527f647300000000000000000000000000000000000000000000000000000000000060648201526084016102f7565b60006110d460015490565b905060008060005b838110156111b45760008181526004602090815260409182902082518084019093525473ffffffffffffffffffffffffffffffffffffffff81168084527401000000000000000000000000000000000000000090910467ffffffffffffffff16918301919091521561114d57805192505b8773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036111a15786840361119357509350610bf692505050565b8361119d81613e97565b9450505b50806111ac81613e97565b9150506110dc565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201527f6f776e657220627920696e64657800000000000000000000000000000000000060648201526084016102f7565b73ffffffffffffffffffffffffffffffffffffffff811633146112ae5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c66000000000000000000000000000000000060648201526084016102f7565b6112b882826128fb565b5050565b610ab783838360405180602001604052806000815250611cf9565b3233146113265760405162461bcd60e51b815260206004820152601e60248201527f5468652063616c6c657220697320616e6f7468657220636f6e7472616374000060448201526064016102f7565b336000908152600a60205260409020546113a85760405162461bcd60e51b815260206004820152602b60248201527f4e6f7420656c696769626c6520666f72206d696e74206f7220616c726561647960448201527f20686173206d696e74656400000000000000000000000000000000000000000060648201526084016102f7565b6113b133611e85565b156113fe5760405162461bcd60e51b815260206004820152601e60248201527f596f7527766520616c7265616479206d696e74656420796f7572204e4654000060448201526064016102f7565b7f00000000000000000000000000000000000000000000000000000000000000fa61142860015490565b611433906001613ecf565b11156114815760405162461bcd60e51b815260206004820152601260248201527f52656163686564206d617820737570706c79000000000000000000000000000060448201526064016102f7565b336000908152600a6020526040812080549161149c83613ee7565b9091555050600b80549060006114b183613ee7565b91905055506114c13360016129b2565b565b60006114ce60015490565b82106115425760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f7560448201527f6e6473000000000000000000000000000000000000000000000000000000000060648201526084016102f7565b5090565b3360009081527ffe8f5c6b27efa39fbcd97456ca17084d002faf2b625318826d39faa1a0a6b309602052604090205460ff166115ea5760405162461bcd60e51b815260206004820152602960248201527f5468652063616c6c657220646f6573206e6f7420686176652074686520414c4c60448201527f4f57455220726f6c65000000000000000000000000000000000000000000000060648201526084016102f7565b60005b81518110156112b8576001600a600084848151811061160e5761160e613f1c565b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600b600081548092919061166790613e97565b9190505550808061167790613e97565b9150506115ed565b3360009081527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604090205460ff166117235760405162461bcd60e51b815260206004820152602760248201527f5468652063616c6c657220646f6573206e6f742068617665207468652041444d60448201527f494e20726f6c650000000000000000000000000000000000000000000000000060648201526084016102f7565b610ab7600c83836138a1565b3360009081527ffe8f5c6b27efa39fbcd97456ca17084d002faf2b625318826d39faa1a0a6b309602052604090205460ff166117d35760405162461bcd60e51b815260206004820152602960248201527f5468652063616c6c657220646f6573206e6f7420686176652074686520414c4c60448201527f4f57455220726f6c65000000000000000000000000000000000000000000000060648201526084016102f7565b60005b81518110156112b8576000600a60008484815181106117f7576117f7613f1c565b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050806000146118b25760405162461bcd60e51b815260206004820152603860248201527f4f6e65206f66207468652070617373656420616464726573736573206973206160448201527f6c7265616479206f6e2074686520616c6c6f77206c697374000000000000000060648201526084016102f7565b6118d48383815181106118c7576118c7613f1c565b6020026020010151611e85565b156119475760405162461bcd60e51b815260206004820152602f60248201527f4f6e65206f6620746865207061737365642061646472657373657320616c726560448201527f616479206f776e20746865204e4654000000000000000000000000000000000060648201526084016102f7565b7f00000000000000000000000000000000000000000000000000000000000000fa61197160015490565b61197c906001613ecf565b11156119ca5760405162461bcd60e51b815260206004820152601260248201527f52656163686564206d617820737570706c79000000000000000000000000000060448201526064016102f7565b6119ee8383815181106119df576119df613f1c565b602002602001015160016129b2565b50806119f981613e97565b9150506117d6565b6000611a0c826129cc565b5192915050565b6000611a1e33611e85565b158015610bf657505073ffffffffffffffffffffffffffffffffffffffff166000908152600a6020526040902054151590565b600073ffffffffffffffffffffffffffffffffffffffff8216611adc5760405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201527f65726f206164647265737300000000000000000000000000000000000000000060648201526084016102f7565b5073ffffffffffffffffffffffffffffffffffffffff166000908152600560205260409020546fffffffffffffffffffffffffffffffff1690565b3360009081527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604090205460ff16611bbb5760405162461bcd60e51b815260206004820152602760248201527f5468652063616c6c657220646f6573206e6f742068617665207468652041444d60448201527f494e20726f6c650000000000000000000000000000000000000000000000000060648201526084016102f7565b611bc6600082611025565b610f58600033611223565b6040805180820190915260008082526020820152610bf6826129cc565b606060038054610c0b90613e15565b3373ffffffffffffffffffffffffffffffffffffffff831603611c625760405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c657200000000000060448201526064016102f7565b33600081815260076020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611d0484848461208c565b611d1084848484612bb5565b611d825760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e7465720000000000000000000000000060648201526084016102f7565b50505050565b3360009081527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604090205460ff16611e2c5760405162461bcd60e51b815260206004820152602760248201527f5468652063616c6c657220646f6573206e6f742068617665207468652041444d60448201527f494e20726f6c650000000000000000000000000000000000000000000000000060648201526084016102f7565b610f587f2e304fa367e6bae25074aa208a0f43e2334743818f7c95fe77cf129d05fbe9fa82611e60565b6060610bf6612d8f565b600082815260208190526040902060010154611e7b81612801565b610ab783836128fb565b6000610bf682612d9e565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052610ab7908490612e78565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480611fb057507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80611ffc57507fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d6300000000000000000000000000000000000000000000000000000000145b80610bf65750610bf682612f6a565b60008281526006602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff87811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000612097826129cc565b805190915060009073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806120f55750336120dd84610c8e565b73ffffffffffffffffffffffffffffffffffffffff16145b806121075750815161210790336108d2565b90508061217c5760405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f766564000000000000000000000000000060648201526084016102f7565b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff16146122215760405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f727265637460448201527f206f776e6572000000000000000000000000000000000000000000000000000060648201526084016102f7565b73ffffffffffffffffffffffffffffffffffffffff84166122aa5760405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f20616460448201527f647265737300000000000000000000000000000000000000000000000000000060648201526084016102f7565b6122ba600084846000015161200b565b73ffffffffffffffffffffffffffffffffffffffff851660009081526005602052604081208054600192906123029084906fffffffffffffffffffffffffffffffff16613f4b565b82546101009290920a6fffffffffffffffffffffffffffffffff81810219909316918316021790915573ffffffffffffffffffffffffffffffffffffffff86166000908152600560205260408120805460019450909261236491859116613f7c565b82546fffffffffffffffffffffffffffffffff9182166101009390930a92830291909202199091161790555060408051808201825273ffffffffffffffffffffffffffffffffffffffff808716825267ffffffffffffffff42811660208085019182526000898152600490915294852093518454915190921674010000000000000000000000000000000000000000027fffffffff00000000000000000000000000000000000000000000000000000000909116919092161717905561242b846001613ecf565b60008181526004602052604090205490915073ffffffffffffffffffffffffffffffffffffffff1661250057612462816001541190565b1561250057604080518082018252845173ffffffffffffffffffffffffffffffffffffffff908116825260208087015167ffffffffffffffff908116828501908152600087815260049093529490912092518354945190911674010000000000000000000000000000000000000000027fffffffff000000000000000000000000000000000000000000000000000000009094169116179190911790555b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b6002600954036125b65760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016102f7565b6002600955565b6008548161260d5760405162461bcd60e51b815260206004820152601860248201527f7175616e74697479206d757374206265206e6f6e7a65726f000000000000000060448201526064016102f7565b6000600161261b8484613ecf565b6126259190613fb0565b905061265260017f00000000000000000000000000000000000000000000000000000000000000fa613fb0565b8111156126875761268460017f00000000000000000000000000000000000000000000000000000000000000fa613fb0565b90505b612692816001541190565b6127045760405162461bcd60e51b815260206004820152602660248201527f6e6f7420656e6f756768206d696e7465642079657420666f722074686973206360448201527f6c65616e7570000000000000000000000000000000000000000000000000000060648201526084016102f7565b815b8181116127ed5760008181526004602052604090205473ffffffffffffffffffffffffffffffffffffffff166127db576000612741826129cc565b604080518082018252825173ffffffffffffffffffffffffffffffffffffffff908116825260209384015167ffffffffffffffff908116858401908152600088815260049096529390942091518254935190941674010000000000000000000000000000000000000000027fffffffff00000000000000000000000000000000000000000000000000000000909316931692909217179055505b806127e581613e97565b915050612706565b506127f9816001613ecf565b600855505050565b610f588133613001565b60008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff166112b85760008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff85168452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905561289d3390565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff16156112b85760008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516808552925280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6112b882826040518060200160405280600081525061309f565b60408051808201909152600080825260208201526129eb826001541190565b612a5d5760405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e6578697360448201527f74656e7420746f6b656e0000000000000000000000000000000000000000000060648201526084016102f7565b60007f00000000000000000000000000000000000000000000000000000000000000018310612abe57612ab07f000000000000000000000000000000000000000000000000000000000000000184613fb0565b612abb906001613ecf565b90505b825b818110612b465760008181526004602090815260409182902082518084019093525473ffffffffffffffffffffffffffffffffffffffff81168084527401000000000000000000000000000000000000000090910467ffffffffffffffff169183019190915215612b3357949350505050565b5080612b3e81613ee7565b915050612ac0565b5060405162461bcd60e51b815260206004820152602f60248201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560448201527f206f776e6572206f6620746f6b656e000000000000000000000000000000000060648201526084016102f7565b600073ffffffffffffffffffffffffffffffffffffffff84163b15612d83576040517f150b7a0200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063150b7a0290612c2c903390899088908890600401613fc7565b6020604051808303816000875af1925050508015612c85575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252612c8291810190614010565b60015b612d38573d808015612cb3576040519150601f19603f3d011682016040523d82523d6000602084013e612cb8565b606091505b508051600003612d305760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e7465720000000000000000000000000060648201526084016102f7565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050612d87565b5060015b949350505050565b6060600c8054610c0b90613e15565b600073ffffffffffffffffffffffffffffffffffffffff8216612e295760405162461bcd60e51b815260206004820152603160248201527f455243373231413a206e756d626572206d696e74656420717565727920666f7260448201527f20746865207a65726f206164647265737300000000000000000000000000000060648201526084016102f7565b5073ffffffffffffffffffffffffffffffffffffffff1660009081526005602052604090205470010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff1690565b6000612eda826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166134999092919063ffffffff16565b805190915015610ab75780806020019051810190612ef8919061402d565b610ab75760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016102f7565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b000000000000000000000000000000000000000000000000000000001480610bf657507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610bf6565b60008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff166112b85761303f816134a8565b61304a8360206134c7565b60405160200161305b92919061404a565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529082905262461bcd60e51b82526102f791600401613a54565b60015473ffffffffffffffffffffffffffffffffffffffff841661312b5760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f2061646472657360448201527f730000000000000000000000000000000000000000000000000000000000000060648201526084016102f7565b613136816001541190565b156131835760405162461bcd60e51b815260206004820152601d60248201527f455243373231413a20746f6b656e20616c7265616479206d696e74656400000060448201526064016102f7565b7f00000000000000000000000000000000000000000000000000000000000000018311156132195760405162461bcd60e51b815260206004820152602260248201527f455243373231413a207175616e7469747920746f206d696e7420746f6f20686960448201527f676800000000000000000000000000000000000000000000000000000000000060648201526084016102f7565b73ffffffffffffffffffffffffffffffffffffffff84166000908152600560209081526040918290208251808401845290546fffffffffffffffffffffffffffffffff80821683527001000000000000000000000000000000009091041691810191909152815180830190925280519091908190613298908790613f7c565b6fffffffffffffffffffffffffffffffff1681526020018583602001516132bf9190613f7c565b6fffffffffffffffffffffffffffffffff90811690915273ffffffffffffffffffffffffffffffffffffffff808816600081815260056020908152604080832087519783015187167001000000000000000000000000000000000297909616969096179094558451808601865291825267ffffffffffffffff428116838601908152888352600490955294812091518254945190951674010000000000000000000000000000000000000000027fffffffff0000000000000000000000000000000000000000000000000000000090941694909216939093179190911790915582905b8581101561348e57604051829073ffffffffffffffffffffffffffffffffffffffff8916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46133fc6000888488612bb5565b61346e5760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e7465720000000000000000000000000060648201526084016102f7565b8161347881613e97565b925050808061348690613e97565b9150506133a2565b50600181905561255c565b6060612d8784846000856136f7565b6060610bf673ffffffffffffffffffffffffffffffffffffffff831660145b606060006134d68360026140cb565b6134e1906002613ecf565b67ffffffffffffffff8111156134f9576134f9613b12565b6040519080825280601f01601f191660200182016040528015613523576020820181803683370190505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061355a5761355a613f1c565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106135bd576135bd613f1c565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006135f98460026140cb565b613604906001613ecf565b90505b60018111156136a1577f303132333435363738396162636465660000000000000000000000000000000085600f166010811061364557613645613f1c565b1a60f81b82828151811061365b5761365b613f1c565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c9361369a81613ee7565b9050613607565b5083156136f05760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016102f7565b9392505050565b60608247101561376f5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016102f7565b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516137989190614108565b60006040518083038185875af1925050503d80600081146137d5576040519150601f19603f3d011682016040523d82523d6000602084013e6137da565b606091505b50915091506137eb878383876137f6565b979650505050505050565b6060831561387257825160000361386b5773ffffffffffffffffffffffffffffffffffffffff85163b61386b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016102f7565b5081612d87565b612d8783838151156138875781518083602001fd5b8060405162461bcd60e51b81526004016102f79190613a54565b8280546138ad90613e15565b90600052602060002090601f0160209004810192826138cf5760008555613933565b82601f10613906578280017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00823516178555613933565b82800160010185558215613933579182015b82811115613933578235825591602001919060010190613918565b506115429291505b80821115611542576000815560010161393b565b803573ffffffffffffffffffffffffffffffffffffffff8116811461397357600080fd5b919050565b60006020828403121561398a57600080fd5b6136f08261394f565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114610f5857600080fd5b6000602082840312156139d357600080fd5b81356136f081613993565b60005b838110156139f95781810151838201526020016139e1565b83811115611d825750506000910152565b60008151808452613a228160208601602086016139de565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b6020815260006136f06020830184613a0a565b600060208284031215613a7957600080fd5b5035919050565b60008060408385031215613a9357600080fd5b613a9c8361394f565b946020939093013593505050565b600080600060608486031215613abf57600080fd5b613ac88461394f565b9250613ad66020850161394f565b9150604084013590509250925092565b60008060408385031215613af957600080fd5b82359150613b096020840161394f565b90509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715613b8857613b88613b12565b604052919050565b60006020808385031215613ba357600080fd5b823567ffffffffffffffff80821115613bbb57600080fd5b818501915085601f830112613bcf57600080fd5b813581811115613be157613be1613b12565b8060051b9150613bf2848301613b41565b8181529183018401918481019088841115613c0c57600080fd5b938501935b83851015613c3157613c228561394f565b82529385019390850190613c11565b98975050505050505050565b60008060208385031215613c5057600080fd5b823567ffffffffffffffff80821115613c6857600080fd5b818501915085601f830112613c7c57600080fd5b813581811115613c8b57600080fd5b866020828501011115613c9d57600080fd5b60209290920196919550909350505050565b8015158114610f5857600080fd5b60008060408385031215613cd057600080fd5b613cd98361394f565b91506020830135613ce981613caf565b809150509250929050565b60008060008060808587031215613d0a57600080fd5b613d138561394f565b93506020613d2281870161394f565b935060408601359250606086013567ffffffffffffffff80821115613d4657600080fd5b818801915088601f830112613d5a57600080fd5b813581811115613d6c57613d6c613b12565b613d9c847fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f84011601613b41565b91508082528984828501011115613db257600080fd5b808484018584013760008482840101525080935050505092959194509250565b60008060408385031215613de557600080fd5b613dee8361394f565b9150613b096020840161394f565b600060208284031215613e0e57600080fd5b5051919050565b600181811c90821680613e2957607f821691505b602082108103613e62577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613ec857613ec8613e68565b5060010190565b60008219821115613ee257613ee2613e68565b500190565b600081613ef657613ef6613e68565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006fffffffffffffffffffffffffffffffff83811690831681811015613f7457613f74613e68565b039392505050565b60006fffffffffffffffffffffffffffffffff808316818516808303821115613fa757613fa7613e68565b01949350505050565b600082821015613fc257613fc2613e68565b500390565b600073ffffffffffffffffffffffffffffffffffffffff8087168352808616602084015250836040830152608060608301526140066080830184613a0a565b9695505050505050565b60006020828403121561402257600080fd5b81516136f081613993565b60006020828403121561403f57600080fd5b81516136f081613caf565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516140828160178501602088016139de565b7f206973206d697373696e6720726f6c652000000000000000000000000000000060179184019182015283516140bf8160288401602088016139de565b01602801949350505050565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561410357614103613e68565b500290565b6000825161411a8184602087016139de565b919091019291505056fea2646970667358221220287a04e3125ccc62bc9b363b050e9db790c29ee6ecf08b4a348074cbc395925964736f6c634300080d0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000bdad0a513717785b2c920f2a5624ec7c010cbce8
-----Decoded View---------------
Arg [0] : owner (address): 0xbDaD0a513717785B2C920F2A5624Ec7c010CbcE8
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000bdad0a513717785b2c920f2a5624ec7c010cbce8
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.