ERC-721
Overview
Max Total Supply
64 PASTEL-HOODIE
Holders
57
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 PASTEL-HOODIELoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
ERC721Claimable
Compiler Version
v0.8.4+commit.c7e474f2
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8; import "@openzeppelin/contracts/security/Pausable.sol"; import "erc721a/contracts/ERC721A.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; contract ERC721Claimable is ERC721A, Pausable, AccessControl { using Strings for uint; bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); uint public startMintId; address public ownerAddress; string public contractURI; string public baseTokenURIWhiteHoodiesClaimed; string public baseTokenURIBlackHoodiesClaimed; string public baseTokenURIWhiteHoodies; string public baseTokenURIBlackHoodies; mapping(uint => bool) public blackHoodies; mapping(uint => bool) public whiteHoodies; mapping(uint => bool) public claimed; address public feeCollectorAddress; bool public claimStarted; modifier onlyMinter() { require(hasRole(MINTER_ROLE, msg.sender), "Must have minter role."); _; } modifier onlyOwner() { require(hasRole(DEFAULT_ADMIN_ROLE, msg.sender), "Must have admin role."); _; } /// @notice Constructor for the ONFT /// @param _name the name of the token /// @param _symbol the token symbol /// @param _contractURI the contract URI /// @param _baseTokenURIBlackHoodies the base URI for computing the tokenURI /// @param _baseTokenURIBlackHoodiesClaimed the base URI for computing the tokenURI /// @param _baseTokenURIWhiteHoodies the base URI for computing the tokenURI /// @param _baseTokenURIWhiteHoodiesClaimed the base URI for computing the tokenURI /// @param _feeCollectorAddress the address fee collector constructor(string memory _name, string memory _symbol, string memory _contractURI, string memory _baseTokenURIBlackHoodies, string memory _baseTokenURIBlackHoodiesClaimed, string memory _baseTokenURIWhiteHoodies, string memory _baseTokenURIWhiteHoodiesClaimed, address _feeCollectorAddress) ERC721A(_name, _symbol) { contractURI = _contractURI; baseTokenURIBlackHoodies = _baseTokenURIBlackHoodies; baseTokenURIWhiteHoodies = _baseTokenURIWhiteHoodies; baseTokenURIBlackHoodiesClaimed = _baseTokenURIBlackHoodiesClaimed; baseTokenURIWhiteHoodiesClaimed = _baseTokenURIWhiteHoodiesClaimed; startMintId = 0; feeCollectorAddress = _feeCollectorAddress; claimStarted = false; ownerAddress = msg.sender; _setupRole(DEFAULT_ADMIN_ROLE, msg.sender); _setupRole(MINTER_ROLE, msg.sender); } function claim(uint tokenId) external { require(claimStarted, "Claim period has not begun"); require(ownerOf(tokenId) == msg.sender, "Must be owner"); claimed[tokenId] = true; } function mint(address to, uint quantity) external onlyMinter { _mint(to, quantity); startMintId = quantity + startMintId; } function pauseSendTokens(bool pause) external onlyOwner { pause ? _pause() : _unpause(); } function tokenURI(uint tokenId) public view override returns (string memory) { if (whiteHoodies[tokenId]) { if (claimed[tokenId]) { return string(abi.encodePacked(baseTokenURIWhiteHoodiesClaimed, tokenId.toString())); } return string(abi.encodePacked(baseTokenURIWhiteHoodies, tokenId.toString())); } else { if (claimed[tokenId]) { return string(abi.encodePacked(baseTokenURIBlackHoodiesClaimed, tokenId.toString())); } return string(abi.encodePacked(baseTokenURIBlackHoodies, tokenId.toString())); } } function owner() external view returns (address) { return ownerAddress; } function setFeeCollector(address _feeCollectorAddress) external onlyOwner { feeCollectorAddress = _feeCollectorAddress; } function setContractURI(string memory _contractURI) public onlyOwner { contractURI = _contractURI; } function setOwner(address _newOwner) public onlyOwner { ownerAddress = _newOwner; } function setBaseURIWhiteHoodies(string memory _baseTokenURI) public onlyOwner { baseTokenURIWhiteHoodies = _baseTokenURI; } function setBaseURIWhiteHoodiesClaimed(string memory _baseTokenURIClaimed) public onlyOwner { baseTokenURIWhiteHoodiesClaimed = _baseTokenURIClaimed; } function setBaseURIBlackHoodies(string memory _baseTokenURI) public onlyOwner { baseTokenURIBlackHoodies = _baseTokenURI; } function setBaseURIBlackHoodiesClaimed(string memory _baseTokenURIClaimed) public onlyOwner { baseTokenURIBlackHoodiesClaimed = _baseTokenURIClaimed; } function setClaimStart(bool _isStarted) public onlyOwner { claimStarted = _isStarted; } function setBlackHoodieToken(uint _tokenId) public onlyOwner { blackHoodies[_tokenId] = true; } function setBlackHoodieTokens(uint[] memory _tokenIds) public onlyOwner { for (uint i = 0; i < _tokenIds.length; i++) { blackHoodies[_tokenIds[i]] = true; } } function revokeBlackHoodieToken(uint _tokenId) public onlyOwner { blackHoodies[_tokenId] = false; } function revokeBlackHoodieTokens(uint[] memory _tokenIds) public onlyOwner { for (uint i = 0; i < _tokenIds.length; i++) { blackHoodies[_tokenIds[i]] = false; } } function setWhiteHoodieToken(uint _tokenId) public onlyOwner { whiteHoodies[_tokenId] = true; } function setWhiteHoodieTokens(uint[] memory _tokenIds) public onlyOwner { for (uint i = 0; i < _tokenIds.length; i++) { whiteHoodies[_tokenIds[i]] = true; } } function revokeWhiteHoodieToken(uint _tokenId) public onlyOwner { whiteHoodies[_tokenId] = false; } function revokeWhiteHoodieTokens(uint[] memory _tokenIds) public onlyOwner { for (uint i = 0; i < _tokenIds.length; i++) { whiteHoodies[_tokenIds[i]] = false; } } function _beforeTokenTransfers(address from, address to, uint tokenId, uint quantity) internal virtual override { super._beforeTokenTransfers(from, to, tokenId, quantity); require(!claimed[tokenId], "ERC721Claimable: token has already been claimed"); } function supportsInterface(bytes4 interfaceId) public view virtual override(AccessControl, ERC721A) returns (bool) { return super.supportsInterface(interfaceId) || ERC721A.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.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, _msgSender()); _; } /** * @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 `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view virtual { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ 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. */ 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`. */ 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. * * [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. */ 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. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.1.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @dev ERC721 token receiver interface. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, * including the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at `_startTokenId()` * (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Mask of an entry in packed address data. uint256 private constant BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with `_mintERC2309`. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to `_mintERC2309` // is required to cause an overflow, which is unrealistic. uint256 private constant MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The tokenId of the next token to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See `_packedOwnershipOf` implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see `_totalMinted`. */ function totalSupply() public view override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view returns (uint256) { // Counter underflow is impossible as _currentIndex does not decrement, // and it is initialized to `_startTokenId()` unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view returns (uint256) { return _burnCounter; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes of the XOR of // all function selectors in the interface. See: https://eips.ethereum.org/EIPS/eip-165 // e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)` return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> BITPOS_NUMBER_MINTED) & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> BITPOS_NUMBER_BURNED) & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & BITMASK_AUX_COMPLEMENT) | (auxCasted << BITPOS_AUX); _packedAddressData[owner] = packed; } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & BITMASK_BURNED == 0) { // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. // // We can directly compare the packed value. // If the address is zero, packed is zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> BITPOS_START_TIMESTAMP); ownership.burned = packed & BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> BITPOS_EXTRA_DATA); } /** * Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, BITMASK_ADDRESS) // `owner | (block.timestamp << BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << BITPOS_NEXT_INITIALIZED`. result := shl(BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSenderERC721A()) revert ApproveToCaller(); _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), 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-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & BITMASK_BURNED == 0; // and not burned. } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 tokenId = startTokenId; uint256 end = startTokenId + quantity; do { emit Transfer(address(0), to, tokenId++); } while (tokenId < end); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { mapping(uint256 => address) storage tokenApprovalsPtr = _tokenApprovals; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId]`. assembly { // Compute the slot. mstore(0x00, tokenId) mstore(0x20, tokenApprovalsPtr.slot) approvedAddressSlot := keccak256(0x00, 0x40) // Load the slot's value from storage. approvedAddress := sload(approvedAddressSlot) } } /** * @dev Returns whether the `approvedAddress` is equals to `from` or `msgSender`. */ function _isOwnerOrApproved( address approvedAddress, address from, address msgSender ) private pure returns (bool result) { assembly { // Mask `from` to the lower 160 bits, in case the upper bits somehow aren't clean. from := and(from, BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, BITMASK_ADDRESS) // `msgSender == from || msgSender == approvedAddress`. result := or(eq(msgSender, from), eq(msgSender, approvedAddress)) } } /** * @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 transferFrom( address from, address to, uint256 tokenId ) public virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isOwnerOrApproved(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isOwnerOrApproved(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (BITMASK_BURNED | BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << BITPOS_EXTRA_DATA; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. * This includes minting. * And also called before burning one token. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. * This includes minting. * And also called after one token has been burned. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function _toString(uint256 value) internal pure returns (string memory ptr) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), // but we allocate 128 bytes to keep the free memory pointer 32-byte word aliged. // We will need 1 32-byte word to store the length, // and 3 32-byte words to store a maximum of 78 digits. Total: 32 + 3 * 32 = 128. ptr := add(mload(0x40), 128) // Update the free memory pointer to allocate. mstore(0x40, ptr) // Cache the end of the memory to calculate the length later. let end := ptr // We write the string from the rightmost digit to the leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // Costs a bit more than early returning for the zero case, // but cheaper in terms of deployment and overall runtime costs. for { // Initialize and perform the first pass without check. let temp := value // Move the pointer 1 byte leftwards to point to an empty character slot. ptr := sub(ptr, 1) // Write the character to the pointer. 48 is the ASCII index of '0'. mstore8(ptr, add(48, mod(temp, 10))) temp := div(temp, 10) } temp { // Keep dividing `temp` until zero. temp := div(temp, 10) } { // Body of the for loop. ptr := sub(ptr, 1) mstore8(ptr, add(48, mod(temp, 10))) } let length := sub(end, ptr) // Move the pointer 32 bytes leftwards to make room for the length. ptr := sub(ptr, 32) // Store the length. mstore(ptr, length) } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.1.0 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of an ERC721A compliant contract. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set through `_extraData`. uint24 extraData; } /** * @dev Returns the total amount of tokens stored by the contract. * * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens. */ function totalSupply() external view returns (uint256); // ============================== // 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); // ============================== // IERC721 // ============================== /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================== // IERC721Metadata // ============================== /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================== // IERC2309 // ============================== /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` (inclusive) is transferred from `from` to `to`, * as defined in the ERC2309 standard. See `_mintERC2309` for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); }
{ "evmVersion": "istanbul", "libraries": {}, "metadata": { "bytecodeHash": "ipfs", "useLiteralContent": true }, "optimizer": { "enabled": true, "runs": 30000 }, "remappings": [], "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"_contractURI","type":"string"},{"internalType":"string","name":"_baseTokenURIBlackHoodies","type":"string"},{"internalType":"string","name":"_baseTokenURIBlackHoodiesClaimed","type":"string"},{"internalType":"string","name":"_baseTokenURIWhiteHoodies","type":"string"},{"internalType":"string","name":"_baseTokenURIWhiteHoodiesClaimed","type":"string"},{"internalType":"address","name":"_feeCollectorAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"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":[],"name":"baseTokenURIBlackHoodies","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURIBlackHoodiesClaimed","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURIWhiteHoodies","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURIWhiteHoodiesClaimed","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"blackHoodies","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"claimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeCollectorAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"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":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ownerAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"pause","type":"bool"}],"name":"pauseSendTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"uint256","name":"_tokenId","type":"uint256"}],"name":"revokeBlackHoodieToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"revokeBlackHoodieTokens","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":"uint256","name":"_tokenId","type":"uint256"}],"name":"revokeWhiteHoodieToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"revokeWhiteHoodieTokens","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":"_baseTokenURI","type":"string"}],"name":"setBaseURIBlackHoodies","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseTokenURIClaimed","type":"string"}],"name":"setBaseURIBlackHoodiesClaimed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseTokenURI","type":"string"}],"name":"setBaseURIWhiteHoodies","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseTokenURIClaimed","type":"string"}],"name":"setBaseURIWhiteHoodiesClaimed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"setBlackHoodieToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"setBlackHoodieTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isStarted","type":"bool"}],"name":"setClaimStart","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_contractURI","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_feeCollectorAddress","type":"address"}],"name":"setFeeCollector","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newOwner","type":"address"}],"name":"setOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"setWhiteHoodieToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"setWhiteHoodieTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startMintId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"whiteHoodies","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b5060405162003e5838038062003e58833981016040819052620000349162000389565b8751889088906200004d90600290602085019062000213565b5080516200006390600390602084019062000213565b506000805550506008805460ff1916905585516200008990600c90602089019062000213565b5084516200009f90601090602088019062000213565b508251620000b590600f90602086019062000213565b508351620000cb90600e90602087019062000213565b508151620000e190600d90602085019062000213565b506000600a819055601480546001600160a81b0319166001600160a01b038416179055600b80546001600160a01b031916339081179091556200012591906200015f565b620001517f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6336200015f565b505050505050505062000517565b6200016b82826200016f565b5050565b60008281526009602090815260408083206001600160a01b038516845290915290205460ff166200016b5760008281526009602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620001cf3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b8280546200022190620004c4565b90600052602060002090601f01602090048101928262000245576000855562000290565b82601f106200026057805160ff191683800117855562000290565b8280016001018555821562000290579182015b828111156200029057825182559160200191906001019062000273565b506200029e929150620002a2565b5090565b5b808211156200029e5760008155600101620002a3565b80516001600160a01b0381168114620002d157600080fd5b919050565b600082601f830112620002e7578081fd5b81516001600160401b038082111562000304576200030462000501565b604051601f8301601f19908116603f011681019082821181831017156200032f576200032f62000501565b816040528381526020925086838588010111156200034b578485fd5b8491505b838210156200036e57858201830151818301840152908201906200034f565b838211156200037f57848385830101525b9695505050505050565b600080600080600080600080610100898b031215620003a6578384fd5b88516001600160401b0380821115620003bd578586fd5b620003cb8c838d01620002d6565b995060208b0151915080821115620003e1578586fd5b620003ef8c838d01620002d6565b985060408b015191508082111562000405578586fd5b620004138c838d01620002d6565b975060608b015191508082111562000429578586fd5b620004378c838d01620002d6565b965060808b01519150808211156200044d578586fd5b6200045b8c838d01620002d6565b955060a08b015191508082111562000471578485fd5b6200047f8c838d01620002d6565b945060c08b015191508082111562000495578384fd5b50620004a48b828c01620002d6565b925050620004b560e08a01620002b9565b90509295985092959890939650565b600181811c90821680620004d957607f821691505b60208210811415620004fb57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b61393180620005276000396000f3fe608060405234801561001057600080fd5b50600436106103625760003560e01c806387931c66116101c8578063bac9a3a111610104578063d7cd645a116100a2578063e985e9c51161007c578063e985e9c5146107bb578063f108e22514610804578063f187892214610824578063f828ad701461083757600080fd5b8063d7cd645a1461077d578063dbe7e3bd14610790578063e8a3d485146107b357600080fd5b8063c87b56dd116100de578063c87b56dd1461071d578063d1c56be014610730578063d539139314610743578063d547741f1461076a57600080fd5b8063bac9a3a1146106dd578063c1664b13146106f0578063c8599a151461071557600080fd5b8063a217fddf11610171578063a58fc4bb1161014b578063a58fc4bb14610681578063a7ab14c2146106a4578063b1a7d607146106b7578063b88d4fde146106ca57600080fd5b8063a217fddf14610653578063a22cb4651461065b578063a42dce801461066e57600080fd5b806391d14854116101a257806391d14854146105f2578063938e3d7b1461063857806395d89b411461064b57600080fd5b806387931c66146105a15780638da5cb5b146105b45780638f84aa09146105d257600080fd5b80632f2ff15d116102a25780634700d29b116102405780635c975abb1161021a5780635c975abb1461054d5780636352211e14610558578063692933091461056b57806370a082311461058e57600080fd5b80634700d29b1461051f57806352be883e146105275780635824dda81461053a57600080fd5b806336ecd1771161027c57806336ecd177146104dd578063379607f5146104e657806340c10f19146104f957806342842e0e1461050c57600080fd5b80632f2ff15d146104a4578063335011f0146104b757806336568abe146104ca57600080fd5b806313af40351161030f57806323b872dd116102e957806323b872dd14610453578063240b834c14610466578063248a9ca3146104795780632bf037461461049c57600080fd5b806313af40351461041757806318160ddd1461042a5780631f48993a1461044057600080fd5b8063095ea7b311610340578063095ea7b3146103dc5780630f12187d146103f157806311542bb81461040457600080fd5b806301ffc9a71461036757806306fdde031461038f578063081812fc146103a4575b600080fd5b61037a6103753660046133d1565b61083f565b60405190151581526020015b60405180910390f35b61039761085f565b604051610386919061365c565b6103b76103b2366004613397565b6108f1565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610386565b6103ef6103ea3660046132ac565b61095b565b005b6103ef6103ff366004613409565b610a46565b6103ef610412366004613397565b610afa565b6103ef610425366004613183565b610bcb565b600154600054035b604051908152602001610386565b6103ef61044e366004613397565b610caa565b6103ef6104613660046131cf565b610d78565b6103ef610474366004613409565b61100d565b610432610487366004613397565b60009081526009602052604090206001015490565b6103976110b8565b6103ef6104b23660046133af565b611146565b6103ef6104c53660046132d5565b611171565b6103ef6104d83660046133af565b611294565b610432600a5481565b6103ef6104f4366004613397565b611343565b6103ef6105073660046132ac565b611487565b6103ef61051a3660046131cf565b61153d565b610397611558565b6103ef610535366004613409565b611565565b6103ef6105483660046132d5565b611610565b60085460ff1661037a565b6103b7610566366004613397565b611733565b61037a610579366004613397565b60126020526000908152604090205460ff1681565b61043261059c366004613183565b61173e565b6103ef6105af366004613397565b6117c0565b600b5473ffffffffffffffffffffffffffffffffffffffff166103b7565b600b546103b79073ffffffffffffffffffffffffffffffffffffffff1681565b61037a6106003660046133af565b600091825260096020908152604080842073ffffffffffffffffffffffffffffffffffffffff93909316845291905290205460ff1690565b6103ef610646366004613409565b61188e565b610397611939565b610432600081565b6103ef610669366004613283565b611948565b6103ef61067c366004613183565b611a2f565b61037a61068f366004613397565b60116020526000908152604090205460ff1681565b6103ef6106b236600461337d565b611b0e565b6103ef6106c53660046132d5565b611bf0565b6103ef6106d836600461320a565b611d13565b6103ef6106eb3660046132d5565b611d83565b60145461037a9074010000000000000000000000000000000000000000900460ff1681565b610397611ea6565b61039761072b366004613397565b611eb3565b6103ef61073e366004613409565b611f53565b6104327f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b6103ef6107783660046133af565b611ffe565b6103ef61078b366004613397565b612024565b61037a61079e366004613397565b60136020526000908152604090205460ff1681565b6103976120f5565b61037a6107c936600461319d565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260076020908152604080832093909416825291909152205460ff1690565b6014546103b79073ffffffffffffffffffffffffffffffffffffffff1681565b6103ef61083236600461337d565b612102565b6103976121b2565b600061084a826121bf565b80610859575061085982612256565b92915050565b60606002805461086e9061379f565b80601f016020809104026020016040519081016040528092919081815260200182805461089a9061379f565b80156108e75780601f106108bc576101008083540402835291602001916108e7565b820191906000526020600020905b8154815290600101906020018083116108ca57829003601f168201915b5050505050905090565b60006108fc82612337565b610932576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5060009081526006602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b600061096682611733565b90503373ffffffffffffffffffffffffffffffffffffffff8216146109c55761098f81336107c9565b6109c5576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008281526006602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff87811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b3360009081527fec8156718a8372b1db44bb411437d0870f3e3790d4a08526d024ce1b0b668f6b602052604090205460ff16610ae3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e000000000000000000000060448201526064015b60405180910390fd5b8051610af690600e906020840190613040565b5050565b3360009081527fec8156718a8372b1db44bb411437d0870f3e3790d4a08526d024ce1b0b668f6b602052604090205460ff16610b92576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610ada565b600090815260126020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b3360009081527fec8156718a8372b1db44bb411437d0870f3e3790d4a08526d024ce1b0b668f6b602052604090205460ff16610c63576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610ada565b600b80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b3360009081527fec8156718a8372b1db44bb411437d0870f3e3790d4a08526d024ce1b0b668f6b602052604090205460ff16610d42576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610ada565b600090815260126020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055565b6000610d8382612377565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610dea576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600082815260066020526040902080543380821473ffffffffffffffffffffffffffffffffffffffff881690911417610e5d57610e2786336107c9565b610e5d576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8516610eaa576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610eb7868686600161242f565b8015610ec257600082555b73ffffffffffffffffffffffffffffffffffffffff86811660009081526005602052604080822080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff019055918716808252919020805460010190554260a01b177c0200000000000000000000000000000000000000000000000000000000176000858152600460205260409020557c02000000000000000000000000000000000000000000000000000000008316610faa5760018401600081815260046020526040902054610fa8576000548114610fa85760008181526004602052604090208490555b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b3360009081527fec8156718a8372b1db44bb411437d0870f3e3790d4a08526d024ce1b0b668f6b602052604090205460ff166110a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610ada565b8051610af6906010906020840190613040565b600f80546110c59061379f565b80601f01602080910402602001604051908101604052809291908181526020018280546110f19061379f565b801561113e5780601f106111135761010080835404028352916020019161113e565b820191906000526020600020905b81548152906001019060200180831161112157829003601f168201915b505050505081565b60008281526009602052604090206001015461116281336124ce565b61116c83836125a0565b505050565b3360009081527fec8156718a8372b1db44bb411437d0870f3e3790d4a08526d024ce1b0b668f6b602052604090205460ff16611209576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610ada565b60005b8151811015610af657600160116000848481518110611254577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151815260200190815260200160002060006101000a81548160ff021916908315150217905550808061128c906137f3565b91505061120c565b73ffffffffffffffffffffffffffffffffffffffff81163314611339576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610ada565b610af68282612694565b60145474010000000000000000000000000000000000000000900460ff166113c7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f436c61696d20706572696f6420686173206e6f7420626567756e0000000000006044820152606401610ada565b336113d182611733565b73ffffffffffffffffffffffffffffffffffffffff161461144e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f4d757374206265206f776e6572000000000000000000000000000000000000006044820152606401610ada565b600090815260136020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b3360009081527fd5d09b8f3165a736d25b1a14611612ac91830c1b82012b1c33b2dac7c90a0649602052604090205460ff1661151f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f4d7573742068617665206d696e74657220726f6c652e000000000000000000006044820152606401610ada565b611529828261274f565b600a5461153690826136be565b600a555050565b61116c83838360405180602001604052806000815250611d13565b600e80546110c59061379f565b3360009081527fec8156718a8372b1db44bb411437d0870f3e3790d4a08526d024ce1b0b668f6b602052604090205460ff166115fd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610ada565b8051610af690600f906020840190613040565b3360009081527fec8156718a8372b1db44bb411437d0870f3e3790d4a08526d024ce1b0b668f6b602052604090205460ff166116a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610ada565b60005b8151811015610af6576000601260008484815181106116f3577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151815260200190815260200160002060006101000a81548160ff021916908315150217905550808061172b906137f3565b9150506116ab565b600061085982612377565b600073ffffffffffffffffffffffffffffffffffffffff821661178d576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5073ffffffffffffffffffffffffffffffffffffffff1660009081526005602052604090205467ffffffffffffffff1690565b3360009081527fec8156718a8372b1db44bb411437d0870f3e3790d4a08526d024ce1b0b668f6b602052604090205460ff16611858576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610ada565b600090815260116020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055565b3360009081527fec8156718a8372b1db44bb411437d0870f3e3790d4a08526d024ce1b0b668f6b602052604090205460ff16611926576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610ada565b8051610af690600c906020840190613040565b60606003805461086e9061379f565b73ffffffffffffffffffffffffffffffffffffffff8216331415611998576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b33600081815260076020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b3360009081527fec8156718a8372b1db44bb411437d0870f3e3790d4a08526d024ce1b0b668f6b602052604090205460ff16611ac7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610ada565b601480547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b3360009081527fec8156718a8372b1db44bb411437d0870f3e3790d4a08526d024ce1b0b668f6b602052604090205460ff16611ba6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610ada565b6014805491151574010000000000000000000000000000000000000000027fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff909216919091179055565b3360009081527fec8156718a8372b1db44bb411437d0870f3e3790d4a08526d024ce1b0b668f6b602052604090205460ff16611c88576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610ada565b60005b8151811015610af657600060116000848481518110611cd3577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151815260200190815260200160002060006101000a81548160ff0219169083151502179055508080611d0b906137f3565b915050611c8b565b611d1e848484610d78565b73ffffffffffffffffffffffffffffffffffffffff83163b15611d7d57611d4784848484612893565b611d7d576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b3360009081527fec8156718a8372b1db44bb411437d0870f3e3790d4a08526d024ce1b0b668f6b602052604090205460ff16611e1b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610ada565b60005b8151811015610af657600160126000848481518110611e66577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151815260200190815260200160002060006101000a81548160ff0219169083151502179055508080611e9e906137f3565b915050611e1e565b600d80546110c59061379f565b60008181526012602052604090205460609060ff1615611f215760008281526013602052604090205460ff1615611f1657600d611eef83612a19565b604051602001611f009291906134b5565b6040516020818303038152906040529050919050565b600f611eef83612a19565b60008281526013602052604090205460ff1615611f4357600e611eef83612a19565b6010611eef83612a19565b919050565b3360009081527fec8156718a8372b1db44bb411437d0870f3e3790d4a08526d024ce1b0b668f6b602052604090205460ff16611feb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610ada565b8051610af690600d906020840190613040565b60008281526009602052604090206001015461201a81336124ce565b61116c8383612694565b3360009081527fec8156718a8372b1db44bb411437d0870f3e3790d4a08526d024ce1b0b668f6b602052604090205460ff166120bc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610ada565b600090815260116020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b600c80546110c59061379f565b3360009081527fec8156718a8372b1db44bb411437d0870f3e3790d4a08526d024ce1b0b668f6b602052604090205460ff1661219a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610ada565b806121aa576121a7612b99565b50565b6121a7612c7a565b601080546110c59061379f565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b00000000000000000000000000000000000000000000000000000000148061085957507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610859565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614806122e957507f80ac58cd000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b806108595750507fffffffff00000000000000000000000000000000000000000000000000000000167f5b5e139f000000000000000000000000000000000000000000000000000000001490565b60008054821080156108595750506000908152600460205260409020547c0100000000000000000000000000000000000000000000000000000000161590565b6000816000548110156123fd576000818152600460205260409020547c010000000000000000000000000000000000000000000000000000000081166123fb575b806123f457507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff016000818152600460205260409020546123b8565b9392505050565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008281526013602052604090205460ff1615611d7d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f455243373231436c61696d61626c653a20746f6b656e2068617320616c72656160448201527f6479206265656e20636c61696d656400000000000000000000000000000000006064820152608401610ada565b600082815260096020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff16610af6576125268173ffffffffffffffffffffffffffffffffffffffff166014612d3a565b612531836020612d3a565b604051602001612542929190613592565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290527f08c379a0000000000000000000000000000000000000000000000000000000008252610ada9160040161365c565b600082815260096020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff16610af657600082815260096020908152604080832073ffffffffffffffffffffffffffffffffffffffff85168452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556126363390565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600082815260096020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff1615610af657600082815260096020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516808552925280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60005473ffffffffffffffffffffffffffffffffffffffff831661279f576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b816127d6576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6127e3600084838561242f565b73ffffffffffffffffffffffffffffffffffffffff8316600081815260056020526040902080546801000000000000000185020190554260a01b6001841460e11b1717600082815260046020526040902055808281015b60405160018301929073ffffffffffffffffffffffffffffffffffffffff8716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480821061283a5760005550505050565b6040517f150b7a0200000000000000000000000000000000000000000000000000000000815260009073ffffffffffffffffffffffffffffffffffffffff85169063150b7a02906128ee903390899088908890600401613613565b602060405180830381600087803b15801561290857600080fd5b505af1925050508015612956575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252612953918101906133ed565b60015b6129ca573d808015612984576040519150601f19603f3d011682016040523d82523d6000602084013e612989565b606091505b5080516129c2576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a02000000000000000000000000000000000000000000000000000000001490505b949350505050565b606081612a5957505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612a835780612a6d816137f3565b9150612a7c9050600a836136d6565b9150612a5d565b60008167ffffffffffffffff811115612ac5577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612aef576020820181803683370190505b5090505b8415612a1157612b04600183613727565b9150612b11600a8661382c565b612b1c9060306136be565b60f81b818381518110612b58577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612b92600a866136d6565b9450612af3565b60085460ff16612c05576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610ada565b600880547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390a1565b60085460ff1615612ce7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610ada565b600880547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612c503390565b60606000612d498360026136ea565b612d549060026136be565b67ffffffffffffffff811115612d93577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612dbd576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110612e1b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110612ea5577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000612ee18460026136ea565b612eec9060016136be565b90505b6001811115612fd7577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110612f54577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b1a60f81b828281518110612f91577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c93612fd08161376a565b9050612eef565b5083156123f4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610ada565b82805461304c9061379f565b90600052602060002090601f01602090048101928261306e57600085556130b4565b82601f1061308757805160ff19168380011785556130b4565b828001600101855582156130b4579182015b828111156130b4578251825591602001919060010190613099565b506130c09291506130c4565b5090565b5b808211156130c057600081556001016130c5565b600067ffffffffffffffff8311156130f3576130f361389e565b61312460207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8601160161366f565b905082815283838301111561313857600080fd5b828260208301376000602084830101529392505050565b803573ffffffffffffffffffffffffffffffffffffffff81168114611f4e57600080fd5b80358015158114611f4e57600080fd5b600060208284031215613194578081fd5b6123f48261314f565b600080604083850312156131af578081fd5b6131b88361314f565b91506131c66020840161314f565b90509250929050565b6000806000606084860312156131e3578081fd5b6131ec8461314f565b92506131fa6020850161314f565b9150604084013590509250925092565b6000806000806080858703121561321f578081fd5b6132288561314f565b93506132366020860161314f565b925060408501359150606085013567ffffffffffffffff811115613258578182fd5b8501601f81018713613268578182fd5b613277878235602084016130d9565b91505092959194509250565b60008060408385031215613295578182fd5b61329e8361314f565b91506131c660208401613173565b600080604083850312156132be578182fd5b6132c78361314f565b946020939093013593505050565b600060208083850312156132e7578182fd5b823567ffffffffffffffff808211156132fe578384fd5b818501915085601f830112613311578384fd5b8135818111156133235761332361389e565b8060051b915061333484830161366f565b8181528481019084860184860187018a101561334e578788fd5b8795505b83861015613370578035835260019590950194918601918601613352565b5098975050505050505050565b60006020828403121561338e578081fd5b6123f482613173565b6000602082840312156133a8578081fd5b5035919050565b600080604083850312156133c1578182fd5b823591506131c66020840161314f565b6000602082840312156133e2578081fd5b81356123f4816138cd565b6000602082840312156133fe578081fd5b81516123f4816138cd565b60006020828403121561341a578081fd5b813567ffffffffffffffff811115613430578182fd5b8201601f81018413613440578182fd5b612a11848235602084016130d9565b6000815180845261346781602086016020860161373e565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b600081516134ab81856020860161373e565b9290920192915050565b600080845482600182811c9150808316806134d157607f831692505b602080841082141561350a577f4e487b710000000000000000000000000000000000000000000000000000000087526022600452602487fd5b81801561351e576001811461354d57613579565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00861689528489019650613579565b60008b815260209020885b868110156135715781548b820152908501908301613558565b505084890196505b5050505050506135898185613499565b95945050505050565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516135ca81601785016020880161373e565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000601791840191820152835161360781602884016020880161373e565b01602801949350505050565b600073ffffffffffffffffffffffffffffffffffffffff808716835280861660208401525083604083015260806060830152613652608083018461344f565b9695505050505050565b6020815260006123f4602083018461344f565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff811182821017156136b6576136b661389e565b604052919050565b600082198211156136d1576136d1613840565b500190565b6000826136e5576136e561386f565b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561372257613722613840565b500290565b60008282101561373957613739613840565b500390565b60005b83811015613759578181015183820152602001613741565b83811115611d7d5750506000910152565b60008161377957613779613840565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b600181811c908216806137b357607f821691505b602082108114156137ed577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561382557613825613840565b5060010190565b60008261383b5761383b61386f565b500690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7fffffffff00000000000000000000000000000000000000000000000000000000811681146121a757600080fdfea2646970667358221220d645a0bd75761da5278f0183b0dfcfb6311e68096559aa435352cde45f745e2164736f6c6343000804003300000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000024000000000000000000000000000000000000000000000000000000000000002a00000000000000000000000000000000000000000000000000000000000000300000000000000000000000000d465a03ad59d86dd67db03d08343a1f11a7f3dc4000000000000000000000000000000000000000000000000000000000000001850617374656c20576f726c64202d204f4720686f6f6469650000000000000000000000000000000000000000000000000000000000000000000000000000000d50415354454c2d484f4f444945000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d595865574155487851566854354145794336533338446764683248674d536550696b5a5639464752585044570000000000000000000000000000000000000000000000000000000000000000000000000000000000003d697066733a2f2f516d6374695a437376575336546739704b3572666466344d66425847626a5a39477143424d4547364639734b32472f696d616765732f000000000000000000000000000000000000000000000000000000000000000000003d697066733a2f2f516d58413236655871434e636951767143453237447071747075396f35673336475a3455674556334763337653762f696d616765732f000000000000000000000000000000000000000000000000000000000000000000003d697066733a2f2f516d59716874466d4e3664754e7a5652784d577239475953654c384e34467451436a33664b5642786b70544d35582f696d616765732f000000000000000000000000000000000000000000000000000000000000000000003d697066733a2f2f516d616f4e4c3678477531435255554b684b595253314d4455675a696b66375952634d515a37655a767a455439662f696d616765732f000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106103625760003560e01c806387931c66116101c8578063bac9a3a111610104578063d7cd645a116100a2578063e985e9c51161007c578063e985e9c5146107bb578063f108e22514610804578063f187892214610824578063f828ad701461083757600080fd5b8063d7cd645a1461077d578063dbe7e3bd14610790578063e8a3d485146107b357600080fd5b8063c87b56dd116100de578063c87b56dd1461071d578063d1c56be014610730578063d539139314610743578063d547741f1461076a57600080fd5b8063bac9a3a1146106dd578063c1664b13146106f0578063c8599a151461071557600080fd5b8063a217fddf11610171578063a58fc4bb1161014b578063a58fc4bb14610681578063a7ab14c2146106a4578063b1a7d607146106b7578063b88d4fde146106ca57600080fd5b8063a217fddf14610653578063a22cb4651461065b578063a42dce801461066e57600080fd5b806391d14854116101a257806391d14854146105f2578063938e3d7b1461063857806395d89b411461064b57600080fd5b806387931c66146105a15780638da5cb5b146105b45780638f84aa09146105d257600080fd5b80632f2ff15d116102a25780634700d29b116102405780635c975abb1161021a5780635c975abb1461054d5780636352211e14610558578063692933091461056b57806370a082311461058e57600080fd5b80634700d29b1461051f57806352be883e146105275780635824dda81461053a57600080fd5b806336ecd1771161027c57806336ecd177146104dd578063379607f5146104e657806340c10f19146104f957806342842e0e1461050c57600080fd5b80632f2ff15d146104a4578063335011f0146104b757806336568abe146104ca57600080fd5b806313af40351161030f57806323b872dd116102e957806323b872dd14610453578063240b834c14610466578063248a9ca3146104795780632bf037461461049c57600080fd5b806313af40351461041757806318160ddd1461042a5780631f48993a1461044057600080fd5b8063095ea7b311610340578063095ea7b3146103dc5780630f12187d146103f157806311542bb81461040457600080fd5b806301ffc9a71461036757806306fdde031461038f578063081812fc146103a4575b600080fd5b61037a6103753660046133d1565b61083f565b60405190151581526020015b60405180910390f35b61039761085f565b604051610386919061365c565b6103b76103b2366004613397565b6108f1565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610386565b6103ef6103ea3660046132ac565b61095b565b005b6103ef6103ff366004613409565b610a46565b6103ef610412366004613397565b610afa565b6103ef610425366004613183565b610bcb565b600154600054035b604051908152602001610386565b6103ef61044e366004613397565b610caa565b6103ef6104613660046131cf565b610d78565b6103ef610474366004613409565b61100d565b610432610487366004613397565b60009081526009602052604090206001015490565b6103976110b8565b6103ef6104b23660046133af565b611146565b6103ef6104c53660046132d5565b611171565b6103ef6104d83660046133af565b611294565b610432600a5481565b6103ef6104f4366004613397565b611343565b6103ef6105073660046132ac565b611487565b6103ef61051a3660046131cf565b61153d565b610397611558565b6103ef610535366004613409565b611565565b6103ef6105483660046132d5565b611610565b60085460ff1661037a565b6103b7610566366004613397565b611733565b61037a610579366004613397565b60126020526000908152604090205460ff1681565b61043261059c366004613183565b61173e565b6103ef6105af366004613397565b6117c0565b600b5473ffffffffffffffffffffffffffffffffffffffff166103b7565b600b546103b79073ffffffffffffffffffffffffffffffffffffffff1681565b61037a6106003660046133af565b600091825260096020908152604080842073ffffffffffffffffffffffffffffffffffffffff93909316845291905290205460ff1690565b6103ef610646366004613409565b61188e565b610397611939565b610432600081565b6103ef610669366004613283565b611948565b6103ef61067c366004613183565b611a2f565b61037a61068f366004613397565b60116020526000908152604090205460ff1681565b6103ef6106b236600461337d565b611b0e565b6103ef6106c53660046132d5565b611bf0565b6103ef6106d836600461320a565b611d13565b6103ef6106eb3660046132d5565b611d83565b60145461037a9074010000000000000000000000000000000000000000900460ff1681565b610397611ea6565b61039761072b366004613397565b611eb3565b6103ef61073e366004613409565b611f53565b6104327f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b6103ef6107783660046133af565b611ffe565b6103ef61078b366004613397565b612024565b61037a61079e366004613397565b60136020526000908152604090205460ff1681565b6103976120f5565b61037a6107c936600461319d565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260076020908152604080832093909416825291909152205460ff1690565b6014546103b79073ffffffffffffffffffffffffffffffffffffffff1681565b6103ef61083236600461337d565b612102565b6103976121b2565b600061084a826121bf565b80610859575061085982612256565b92915050565b60606002805461086e9061379f565b80601f016020809104026020016040519081016040528092919081815260200182805461089a9061379f565b80156108e75780601f106108bc576101008083540402835291602001916108e7565b820191906000526020600020905b8154815290600101906020018083116108ca57829003601f168201915b5050505050905090565b60006108fc82612337565b610932576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5060009081526006602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b600061096682611733565b90503373ffffffffffffffffffffffffffffffffffffffff8216146109c55761098f81336107c9565b6109c5576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008281526006602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff87811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b3360009081527fec8156718a8372b1db44bb411437d0870f3e3790d4a08526d024ce1b0b668f6b602052604090205460ff16610ae3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e000000000000000000000060448201526064015b60405180910390fd5b8051610af690600e906020840190613040565b5050565b3360009081527fec8156718a8372b1db44bb411437d0870f3e3790d4a08526d024ce1b0b668f6b602052604090205460ff16610b92576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610ada565b600090815260126020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b3360009081527fec8156718a8372b1db44bb411437d0870f3e3790d4a08526d024ce1b0b668f6b602052604090205460ff16610c63576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610ada565b600b80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b3360009081527fec8156718a8372b1db44bb411437d0870f3e3790d4a08526d024ce1b0b668f6b602052604090205460ff16610d42576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610ada565b600090815260126020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055565b6000610d8382612377565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610dea576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600082815260066020526040902080543380821473ffffffffffffffffffffffffffffffffffffffff881690911417610e5d57610e2786336107c9565b610e5d576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8516610eaa576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610eb7868686600161242f565b8015610ec257600082555b73ffffffffffffffffffffffffffffffffffffffff86811660009081526005602052604080822080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff019055918716808252919020805460010190554260a01b177c0200000000000000000000000000000000000000000000000000000000176000858152600460205260409020557c02000000000000000000000000000000000000000000000000000000008316610faa5760018401600081815260046020526040902054610fa8576000548114610fa85760008181526004602052604090208490555b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b3360009081527fec8156718a8372b1db44bb411437d0870f3e3790d4a08526d024ce1b0b668f6b602052604090205460ff166110a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610ada565b8051610af6906010906020840190613040565b600f80546110c59061379f565b80601f01602080910402602001604051908101604052809291908181526020018280546110f19061379f565b801561113e5780601f106111135761010080835404028352916020019161113e565b820191906000526020600020905b81548152906001019060200180831161112157829003601f168201915b505050505081565b60008281526009602052604090206001015461116281336124ce565b61116c83836125a0565b505050565b3360009081527fec8156718a8372b1db44bb411437d0870f3e3790d4a08526d024ce1b0b668f6b602052604090205460ff16611209576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610ada565b60005b8151811015610af657600160116000848481518110611254577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151815260200190815260200160002060006101000a81548160ff021916908315150217905550808061128c906137f3565b91505061120c565b73ffffffffffffffffffffffffffffffffffffffff81163314611339576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610ada565b610af68282612694565b60145474010000000000000000000000000000000000000000900460ff166113c7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f436c61696d20706572696f6420686173206e6f7420626567756e0000000000006044820152606401610ada565b336113d182611733565b73ffffffffffffffffffffffffffffffffffffffff161461144e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f4d757374206265206f776e6572000000000000000000000000000000000000006044820152606401610ada565b600090815260136020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b3360009081527fd5d09b8f3165a736d25b1a14611612ac91830c1b82012b1c33b2dac7c90a0649602052604090205460ff1661151f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f4d7573742068617665206d696e74657220726f6c652e000000000000000000006044820152606401610ada565b611529828261274f565b600a5461153690826136be565b600a555050565b61116c83838360405180602001604052806000815250611d13565b600e80546110c59061379f565b3360009081527fec8156718a8372b1db44bb411437d0870f3e3790d4a08526d024ce1b0b668f6b602052604090205460ff166115fd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610ada565b8051610af690600f906020840190613040565b3360009081527fec8156718a8372b1db44bb411437d0870f3e3790d4a08526d024ce1b0b668f6b602052604090205460ff166116a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610ada565b60005b8151811015610af6576000601260008484815181106116f3577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151815260200190815260200160002060006101000a81548160ff021916908315150217905550808061172b906137f3565b9150506116ab565b600061085982612377565b600073ffffffffffffffffffffffffffffffffffffffff821661178d576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5073ffffffffffffffffffffffffffffffffffffffff1660009081526005602052604090205467ffffffffffffffff1690565b3360009081527fec8156718a8372b1db44bb411437d0870f3e3790d4a08526d024ce1b0b668f6b602052604090205460ff16611858576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610ada565b600090815260116020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055565b3360009081527fec8156718a8372b1db44bb411437d0870f3e3790d4a08526d024ce1b0b668f6b602052604090205460ff16611926576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610ada565b8051610af690600c906020840190613040565b60606003805461086e9061379f565b73ffffffffffffffffffffffffffffffffffffffff8216331415611998576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b33600081815260076020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b3360009081527fec8156718a8372b1db44bb411437d0870f3e3790d4a08526d024ce1b0b668f6b602052604090205460ff16611ac7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610ada565b601480547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b3360009081527fec8156718a8372b1db44bb411437d0870f3e3790d4a08526d024ce1b0b668f6b602052604090205460ff16611ba6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610ada565b6014805491151574010000000000000000000000000000000000000000027fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff909216919091179055565b3360009081527fec8156718a8372b1db44bb411437d0870f3e3790d4a08526d024ce1b0b668f6b602052604090205460ff16611c88576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610ada565b60005b8151811015610af657600060116000848481518110611cd3577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151815260200190815260200160002060006101000a81548160ff0219169083151502179055508080611d0b906137f3565b915050611c8b565b611d1e848484610d78565b73ffffffffffffffffffffffffffffffffffffffff83163b15611d7d57611d4784848484612893565b611d7d576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b3360009081527fec8156718a8372b1db44bb411437d0870f3e3790d4a08526d024ce1b0b668f6b602052604090205460ff16611e1b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610ada565b60005b8151811015610af657600160126000848481518110611e66577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151815260200190815260200160002060006101000a81548160ff0219169083151502179055508080611e9e906137f3565b915050611e1e565b600d80546110c59061379f565b60008181526012602052604090205460609060ff1615611f215760008281526013602052604090205460ff1615611f1657600d611eef83612a19565b604051602001611f009291906134b5565b6040516020818303038152906040529050919050565b600f611eef83612a19565b60008281526013602052604090205460ff1615611f4357600e611eef83612a19565b6010611eef83612a19565b919050565b3360009081527fec8156718a8372b1db44bb411437d0870f3e3790d4a08526d024ce1b0b668f6b602052604090205460ff16611feb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610ada565b8051610af690600d906020840190613040565b60008281526009602052604090206001015461201a81336124ce565b61116c8383612694565b3360009081527fec8156718a8372b1db44bb411437d0870f3e3790d4a08526d024ce1b0b668f6b602052604090205460ff166120bc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610ada565b600090815260116020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b600c80546110c59061379f565b3360009081527fec8156718a8372b1db44bb411437d0870f3e3790d4a08526d024ce1b0b668f6b602052604090205460ff1661219a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4d75737420686176652061646d696e20726f6c652e00000000000000000000006044820152606401610ada565b806121aa576121a7612b99565b50565b6121a7612c7a565b601080546110c59061379f565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b00000000000000000000000000000000000000000000000000000000148061085957507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610859565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614806122e957507f80ac58cd000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b806108595750507fffffffff00000000000000000000000000000000000000000000000000000000167f5b5e139f000000000000000000000000000000000000000000000000000000001490565b60008054821080156108595750506000908152600460205260409020547c0100000000000000000000000000000000000000000000000000000000161590565b6000816000548110156123fd576000818152600460205260409020547c010000000000000000000000000000000000000000000000000000000081166123fb575b806123f457507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff016000818152600460205260409020546123b8565b9392505050565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008281526013602052604090205460ff1615611d7d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f455243373231436c61696d61626c653a20746f6b656e2068617320616c72656160448201527f6479206265656e20636c61696d656400000000000000000000000000000000006064820152608401610ada565b600082815260096020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff16610af6576125268173ffffffffffffffffffffffffffffffffffffffff166014612d3a565b612531836020612d3a565b604051602001612542929190613592565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290527f08c379a0000000000000000000000000000000000000000000000000000000008252610ada9160040161365c565b600082815260096020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff16610af657600082815260096020908152604080832073ffffffffffffffffffffffffffffffffffffffff85168452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556126363390565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600082815260096020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff1615610af657600082815260096020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516808552925280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60005473ffffffffffffffffffffffffffffffffffffffff831661279f576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b816127d6576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6127e3600084838561242f565b73ffffffffffffffffffffffffffffffffffffffff8316600081815260056020526040902080546801000000000000000185020190554260a01b6001841460e11b1717600082815260046020526040902055808281015b60405160018301929073ffffffffffffffffffffffffffffffffffffffff8716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480821061283a5760005550505050565b6040517f150b7a0200000000000000000000000000000000000000000000000000000000815260009073ffffffffffffffffffffffffffffffffffffffff85169063150b7a02906128ee903390899088908890600401613613565b602060405180830381600087803b15801561290857600080fd5b505af1925050508015612956575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252612953918101906133ed565b60015b6129ca573d808015612984576040519150601f19603f3d011682016040523d82523d6000602084013e612989565b606091505b5080516129c2576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a02000000000000000000000000000000000000000000000000000000001490505b949350505050565b606081612a5957505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612a835780612a6d816137f3565b9150612a7c9050600a836136d6565b9150612a5d565b60008167ffffffffffffffff811115612ac5577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612aef576020820181803683370190505b5090505b8415612a1157612b04600183613727565b9150612b11600a8661382c565b612b1c9060306136be565b60f81b818381518110612b58577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612b92600a866136d6565b9450612af3565b60085460ff16612c05576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610ada565b600880547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390a1565b60085460ff1615612ce7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610ada565b600880547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612c503390565b60606000612d498360026136ea565b612d549060026136be565b67ffffffffffffffff811115612d93577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612dbd576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110612e1b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110612ea5577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000612ee18460026136ea565b612eec9060016136be565b90505b6001811115612fd7577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110612f54577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b1a60f81b828281518110612f91577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c93612fd08161376a565b9050612eef565b5083156123f4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610ada565b82805461304c9061379f565b90600052602060002090601f01602090048101928261306e57600085556130b4565b82601f1061308757805160ff19168380011785556130b4565b828001600101855582156130b4579182015b828111156130b4578251825591602001919060010190613099565b506130c09291506130c4565b5090565b5b808211156130c057600081556001016130c5565b600067ffffffffffffffff8311156130f3576130f361389e565b61312460207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8601160161366f565b905082815283838301111561313857600080fd5b828260208301376000602084830101529392505050565b803573ffffffffffffffffffffffffffffffffffffffff81168114611f4e57600080fd5b80358015158114611f4e57600080fd5b600060208284031215613194578081fd5b6123f48261314f565b600080604083850312156131af578081fd5b6131b88361314f565b91506131c66020840161314f565b90509250929050565b6000806000606084860312156131e3578081fd5b6131ec8461314f565b92506131fa6020850161314f565b9150604084013590509250925092565b6000806000806080858703121561321f578081fd5b6132288561314f565b93506132366020860161314f565b925060408501359150606085013567ffffffffffffffff811115613258578182fd5b8501601f81018713613268578182fd5b613277878235602084016130d9565b91505092959194509250565b60008060408385031215613295578182fd5b61329e8361314f565b91506131c660208401613173565b600080604083850312156132be578182fd5b6132c78361314f565b946020939093013593505050565b600060208083850312156132e7578182fd5b823567ffffffffffffffff808211156132fe578384fd5b818501915085601f830112613311578384fd5b8135818111156133235761332361389e565b8060051b915061333484830161366f565b8181528481019084860184860187018a101561334e578788fd5b8795505b83861015613370578035835260019590950194918601918601613352565b5098975050505050505050565b60006020828403121561338e578081fd5b6123f482613173565b6000602082840312156133a8578081fd5b5035919050565b600080604083850312156133c1578182fd5b823591506131c66020840161314f565b6000602082840312156133e2578081fd5b81356123f4816138cd565b6000602082840312156133fe578081fd5b81516123f4816138cd565b60006020828403121561341a578081fd5b813567ffffffffffffffff811115613430578182fd5b8201601f81018413613440578182fd5b612a11848235602084016130d9565b6000815180845261346781602086016020860161373e565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b600081516134ab81856020860161373e565b9290920192915050565b600080845482600182811c9150808316806134d157607f831692505b602080841082141561350a577f4e487b710000000000000000000000000000000000000000000000000000000087526022600452602487fd5b81801561351e576001811461354d57613579565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00861689528489019650613579565b60008b815260209020885b868110156135715781548b820152908501908301613558565b505084890196505b5050505050506135898185613499565b95945050505050565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516135ca81601785016020880161373e565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000601791840191820152835161360781602884016020880161373e565b01602801949350505050565b600073ffffffffffffffffffffffffffffffffffffffff808716835280861660208401525083604083015260806060830152613652608083018461344f565b9695505050505050565b6020815260006123f4602083018461344f565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff811182821017156136b6576136b661389e565b604052919050565b600082198211156136d1576136d1613840565b500190565b6000826136e5576136e561386f565b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561372257613722613840565b500290565b60008282101561373957613739613840565b500390565b60005b83811015613759578181015183820152602001613741565b83811115611d7d5750506000910152565b60008161377957613779613840565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b600181811c908216806137b357607f821691505b602082108114156137ed577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561382557613825613840565b5060010190565b60008261383b5761383b61386f565b500690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7fffffffff00000000000000000000000000000000000000000000000000000000811681146121a757600080fdfea2646970667358221220d645a0bd75761da5278f0183b0dfcfb6311e68096559aa435352cde45f745e2164736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000024000000000000000000000000000000000000000000000000000000000000002a00000000000000000000000000000000000000000000000000000000000000300000000000000000000000000d465a03ad59d86dd67db03d08343a1f11a7f3dc4000000000000000000000000000000000000000000000000000000000000001850617374656c20576f726c64202d204f4720686f6f6469650000000000000000000000000000000000000000000000000000000000000000000000000000000d50415354454c2d484f4f444945000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d595865574155487851566854354145794336533338446764683248674d536550696b5a5639464752585044570000000000000000000000000000000000000000000000000000000000000000000000000000000000003d697066733a2f2f516d6374695a437376575336546739704b3572666466344d66425847626a5a39477143424d4547364639734b32472f696d616765732f000000000000000000000000000000000000000000000000000000000000000000003d697066733a2f2f516d58413236655871434e636951767143453237447071747075396f35673336475a3455674556334763337653762f696d616765732f000000000000000000000000000000000000000000000000000000000000000000003d697066733a2f2f516d59716874466d4e3664754e7a5652784d577239475953654c384e34467451436a33664b5642786b70544d35582f696d616765732f000000000000000000000000000000000000000000000000000000000000000000003d697066733a2f2f516d616f4e4c3678477531435255554b684b595253314d4455675a696b66375952634d515a37655a767a455439662f696d616765732f000000
-----Decoded View---------------
Arg [0] : _name (string): Pastel World - OG hoodie
Arg [1] : _symbol (string): PASTEL-HOODIE
Arg [2] : _contractURI (string): ipfs://QmYXeWAUHxQVhT5AEyC6S38Dgdh2HgMSePikZV9FGRXPDW
Arg [3] : _baseTokenURIBlackHoodies (string): ipfs://QmctiZCsvWS6Tg9pK5rfdf4MfBXGbjZ9GqCBMEG6F9sK2G/images/
Arg [4] : _baseTokenURIBlackHoodiesClaimed (string): ipfs://QmXA26eXqCNciQvqCE27Dpqtpu9o5g36GZ4UgEV3Gc3vSv/images/
Arg [5] : _baseTokenURIWhiteHoodies (string): ipfs://QmYqhtFmN6duNzVRxMWr9GYSeL8N4FtQCj3fKVBxkpTM5X/images/
Arg [6] : _baseTokenURIWhiteHoodiesClaimed (string): ipfs://QmaoNL6xGu1CRUUKhKYRS1MDUgZikf7YRcMQZ7eZvzET9f/images/
Arg [7] : _feeCollectorAddress (address): 0xD465A03ad59D86dd67db03d08343A1F11a7f3dC4
-----Encoded View---------------
27 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [3] : 00000000000000000000000000000000000000000000000000000000000001e0
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000240
Arg [5] : 00000000000000000000000000000000000000000000000000000000000002a0
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000300
Arg [7] : 000000000000000000000000d465a03ad59d86dd67db03d08343a1f11a7f3dc4
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000018
Arg [9] : 50617374656c20576f726c64202d204f4720686f6f6469650000000000000000
Arg [10] : 000000000000000000000000000000000000000000000000000000000000000d
Arg [11] : 50415354454c2d484f4f44494500000000000000000000000000000000000000
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000035
Arg [13] : 697066733a2f2f516d5958655741554878515668543541457943365333384467
Arg [14] : 64683248674d536550696b5a5639464752585044570000000000000000000000
Arg [15] : 000000000000000000000000000000000000000000000000000000000000003d
Arg [16] : 697066733a2f2f516d6374695a437376575336546739704b3572666466344d66
Arg [17] : 425847626a5a39477143424d4547364639734b32472f696d616765732f000000
Arg [18] : 000000000000000000000000000000000000000000000000000000000000003d
Arg [19] : 697066733a2f2f516d58413236655871434e6369517671434532374470717470
Arg [20] : 75396f35673336475a3455674556334763337653762f696d616765732f000000
Arg [21] : 000000000000000000000000000000000000000000000000000000000000003d
Arg [22] : 697066733a2f2f516d59716874466d4e3664754e7a5652784d57723947595365
Arg [23] : 4c384e34467451436a33664b5642786b70544d35582f696d616765732f000000
Arg [24] : 000000000000000000000000000000000000000000000000000000000000003d
Arg [25] : 697066733a2f2f516d616f4e4c3678477531435255554b684b595253314d4455
Arg [26] : 675a696b66375952634d515a37655a767a455439662f696d616765732f000000
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.