Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
8,000 BRDMCH
Holders
668
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
10 BRDMCHLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
BoredMachine
Compiler Version
v0.8.7+commit.e28d00a7
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2022-10-12 */ // SPDX-License-Identifier: MIT // File: @openzeppelin/contracts/utils/Strings.sol // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } } // File: @openzeppelin/contracts/utils/Address.sol // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File: @openzeppelin/contracts/security/ReentrancyGuard.sol // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } } // File: @openzeppelin/contracts/utils/Context.sol // 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; } } // File: @openzeppelin/contracts/access/Ownable.sol // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // File: erc721a/contracts/IERC721A.sol // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables * (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, * checking first that contract recipients are aware of the ERC721 protocol * to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move * this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external payable; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Transfers `tokenId` from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} * whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external payable; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); } // File: erc721a/contracts/ERC721A.sol // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364). struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `curr` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) public payable virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId].value; } /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) public virtual override { _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) public payable virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public payable virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public payable virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. // The duplicated `log4` removes an extra check and reduces stack juggling. // The assembly, together with the surrounding Solidity code, have been // delicately arranged to nudge the compiler into producing optimized opcodes. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) // The `iszero(eq(,))` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. // The compiler will optimize the `iszero` away for performance. for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), but // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 word for the trailing zeros padding, 1 word for the length, // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0. let m := add(mload(0x40), 0xa0) // Update the free memory pointer to allocate. mstore(0x40, m) // Assign the `str` to the end. str := sub(m, 0x20) // Zeroize the slot after the string. mstore(str, 0) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } } // File: contracts/BYCM.sol pragma solidity ^0.8.4; contract BoredMachine is Ownable, ERC721A, ReentrancyGuard { uint256 constant public MaxSupply = 8000; uint256 public publicPrice = 0.0015 ether; uint256 constant public MaxPerTX = 10; uint256 constant public MaxPerWallet = 100; string public revealedURI; string private hiddenURI; bool public paused = false; bool public revealed = false; bool public publicSale = false; mapping(address => uint256) public numUserMints; constructor(string memory _name, string memory _symbol, string memory _baseUri, string memory _hiddenMetadataUri) ERC721A("Bored Machine", "BRDMCH") { } function Ownermint(uint256 quantity, address receiver) public onlyOwner mintCompliance(quantity) { _safeMint(receiver, quantity); } function _startTokenId() internal view virtual override returns (uint256) { return 1; } modifier mintCompliance(uint256 quantity) { require(!paused, "Contract is paused"); require(totalSupply() + quantity <= MaxSupply, "Not enough mints left"); require(tx.origin == msg.sender, "No contract minting"); _; } function ThePrice(uint256 price) private { if (msg.value < price) { revert("Not enough ETH sent"); } } function publicMint(uint256 quantity) external payable mintCompliance(quantity) { require(publicSale, "Public sale inactive"); require(quantity <= MaxPerTX, "Quantity too high"); uint256 price = publicPrice; uint256 currMints = numUserMints[msg.sender]; ThePrice(price * quantity); numUserMints[msg.sender] = (currMints + quantity); _safeMint(msg.sender, quantity); } function walletOfOwner(address _owner) public view returns (uint256[] memory) { uint256 ownerTokenCount = balanceOf(_owner); uint256[] memory ownedTokenIds = new uint256[](ownerTokenCount); uint256 currentTokenId = 1; uint256 ownedTokenIndex = 0; while (ownedTokenIndex < ownerTokenCount && currentTokenId <= MaxSupply) { address currentTokenOwner = ownerOf(currentTokenId); if (currentTokenOwner == _owner) { ownedTokenIds[ownedTokenIndex] = currentTokenId; ownedTokenIndex++; } currentTokenId++; } return ownedTokenIds; } function tokenURI(uint256 _tokenId) public view override returns (string memory) { require(_exists(_tokenId), "ERC721Metadata: URI query for nonexistent token"); if (revealed) { return string(abi.encodePacked(revealedURI, Strings.toString(_tokenId), ".json")); } else { return hiddenURI; } } function revealCollection(bool _revealed, string memory _baseUri) public onlyOwner { revealed = _revealed; revealedURI = _baseUri; } function setHiddenMetadataUri(string memory _hiddenMetadataUri) public onlyOwner { hiddenURI = _hiddenMetadataUri; } function setRevealed(bool _state) public onlyOwner { revealed = _state; } function setBaseURI(string memory _baseUri) public onlyOwner { revealedURI = _baseUri; } function setPublicPrice(uint256 _publicPrice) public onlyOwner { publicPrice = _publicPrice; } function setPaused(bool _state) public onlyOwner { paused = _state; } function setPublicEnabled(bool _state) public onlyOwner { publicSale = _state; } function withdraw() external onlyOwner nonReentrant { (bool success, ) = msg.sender.call{value: address(this).balance}(""); require(success, "Transfer failed."); } }
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":"_baseUri","type":"string"},{"internalType":"string","name":"_hiddenMetadataUri","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MaxPerTX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MaxPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MaxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"}],"name":"Ownermint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"numUserMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_revealed","type":"bool"},{"internalType":"string","name":"_baseUri","type":"string"}],"name":"revealCollection","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"revealedURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseUri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_hiddenMetadataUri","type":"string"}],"name":"setHiddenMetadataUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setPublicEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_publicPrice","type":"uint256"}],"name":"setPublicPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setRevealed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526605543df729c000600a55600d805462ffffff191690553480156200002857600080fd5b50604051620022d2380380620022d28339810160408190526200004b916200029c565b6040518060400160405280600d81526020016c426f726564204d616368696e6560981b81525060405180604001604052806006815260200165084a4889a86960d31b815250620000aa620000a4620000eb60201b60201c565b620000ef565b8151620000bf9060039060208501906200013f565b508051620000d59060049060208401906200013f565b50600180815560095550620003a8945050505050565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b8280546200014d9062000355565b90600052602060002090601f016020900481019282620001715760008555620001bc565b82601f106200018c57805160ff1916838001178555620001bc565b82800160010185558215620001bc579182015b82811115620001bc5782518255916020019190600101906200019f565b50620001ca929150620001ce565b5090565b5b80821115620001ca5760008155600101620001cf565b600082601f830112620001f757600080fd5b81516001600160401b038082111562000214576200021462000392565b604051601f8301601f19908116603f011681019082821181831017156200023f576200023f62000392565b816040528381526020925086838588010111156200025c57600080fd5b600091505b8382101562000280578582018301518183018401529082019062000261565b83821115620002925760008385830101525b9695505050505050565b60008060008060808587031215620002b357600080fd5b84516001600160401b0380821115620002cb57600080fd5b620002d988838901620001e5565b95506020870151915080821115620002f057600080fd5b620002fe88838901620001e5565b945060408701519150808211156200031557600080fd5b6200032388838901620001e5565b935060608701519150808211156200033a57600080fd5b506200034987828801620001e5565b91505092959194509250565b600181811c908216806200036a57607f821691505b602082108114156200038c57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b611f1a80620003b86000396000f3fe60806040526004361061021a5760003560e01c80636352211e11610123578063a22cb465116100ab578063c87b56dd1161006f578063c87b56dd146105e0578063e0a8085314610600578063e985e9c514610620578063f2fde38b14610669578063f7e8d6ea1461068957600080fd5b8063a22cb46514610561578063a945bf8014610581578063b36c128414610597578063b88d4fde146105ad578063c6275255146105c057600080fd5b80637aeb7242116100f25780637aeb7242146104cc5780637af3a1af146104f95780638bec1c6d146105195780638da5cb5b1461052e57806395d89b411461054c57600080fd5b80636352211e1461045757806370a0823114610477578063715018a614610497578063789b714f146104ac57600080fd5b806333bc1c5c116101a65780634fdd43cb116101755780634fdd43cb146103be57806351830227146103de57806355f804b3146103fd5780635c975abb1461041d5780635ed3e25e1461043757600080fd5b806333bc1c5c146103495780633ccfd60b1461036957806342842e0e1461037e578063438b63001461039157600080fd5b8063095ea7b3116101ed578063095ea7b3146102d157806316c38b3c146102e657806318160ddd1461030657806323b872dd146103235780632db115441461033657600080fd5b806301ffc9a71461021f57806304ccbbf91461025457806306fdde0314610277578063081812fc14610299575b600080fd5b34801561022b57600080fd5b5061023f61023a366004611b3c565b61069e565b60405190151581526020015b60405180910390f35b34801561026057600080fd5b50610269600a81565b60405190815260200161024b565b34801561028357600080fd5b5061028c6106f0565b60405161024b9190611d6b565b3480156102a557600080fd5b506102b96102b4366004611bab565b610782565b6040516001600160a01b03909116815260200161024b565b6102e46102df366004611aa9565b6107c6565b005b3480156102f257600080fd5b506102e4610301366004611ad3565b610866565b34801561031257600080fd5b506002546001540360001901610269565b6102e46103313660046119c7565b610881565b6102e4610344366004611bab565b610a12565b34801561035557600080fd5b50600d5461023f9062010000900460ff1681565b34801561037557600080fd5b506102e4610bed565b6102e461038c3660046119c7565b610ce0565b34801561039d57600080fd5b506103b16103ac366004611979565b610d00565b60405161024b9190611d27565b3480156103ca57600080fd5b506102e46103d9366004611b76565b610de1565b3480156103ea57600080fd5b50600d5461023f90610100900460ff1681565b34801561040957600080fd5b506102e4610418366004611b76565b610e00565b34801561042957600080fd5b50600d5461023f9060ff1681565b34801561044357600080fd5b506102e4610452366004611aee565b610e1b565b34801561046357600080fd5b506102b9610472366004611bab565b610e49565b34801561048357600080fd5b50610269610492366004611979565b610e54565b3480156104a357600080fd5b506102e4610ea3565b3480156104b857600080fd5b506102e46104c7366004611bc4565b610eb7565b3480156104d857600080fd5b506102696104e7366004611979565b600e6020526000908152604090205481565b34801561050557600080fd5b506102e4610514366004611ad3565b610fb9565b34801561052557600080fd5b50610269606481565b34801561053a57600080fd5b506000546001600160a01b03166102b9565b34801561055857600080fd5b5061028c610fdd565b34801561056d57600080fd5b506102e461057c366004611a7f565b610fec565b34801561058d57600080fd5b50610269600a5481565b3480156105a357600080fd5b50610269611f4081565b6102e46105bb366004611a03565b611058565b3480156105cc57600080fd5b506102e46105db366004611bab565b61109c565b3480156105ec57600080fd5b5061028c6105fb366004611bab565b6110a9565b34801561060c57600080fd5b506102e461061b366004611ad3565b6111f1565b34801561062c57600080fd5b5061023f61063b366004611994565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b34801561067557600080fd5b506102e4610684366004611979565b611213565b34801561069557600080fd5b5061028c61128c565b60006301ffc9a760e01b6001600160e01b0319831614806106cf57506380ac58cd60e01b6001600160e01b03198316145b806106ea5750635b5e139f60e01b6001600160e01b03198316145b92915050565b6060600380546106ff90611e0c565b80601f016020809104026020016040519081016040528092919081815260200182805461072b90611e0c565b80156107785780601f1061074d57610100808354040283529160200191610778565b820191906000526020600020905b81548152906001019060200180831161075b57829003601f168201915b5050505050905090565b600061078d8261131a565b6107aa576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b60006107d182610e49565b9050336001600160a01b0382161461080a576107ed813361063b565b61080a576040516367d9dca160e11b815260040160405180910390fd5b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b61086e61134f565b600d805460ff1916911515919091179055565b600061088c826113a9565b9050836001600160a01b0316816001600160a01b0316146108bf5760405162a1148160e81b815260040160405180910390fd5b60008281526007602052604090208054338082146001600160a01b0388169091141761090c576108ef863361063b565b61090c57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661093357604051633a954ecd60e21b815260040160405180910390fd5b801561093e57600082555b6001600160a01b038681166000908152600660205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260056020526040902055600160e11b83166109c957600184016000818152600560205260409020546109c75760015481146109c75760008181526005602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b600d54819060ff1615610a615760405162461bcd60e51b815260206004820152601260248201527110dbdb9d1c9858dd081a5cc81c185d5cd95960721b60448201526064015b60405180910390fd5b600254600154611f409183910360001901610a7c9190611d7e565b1115610ac25760405162461bcd60e51b8152602060048201526015602482015274139bdd08195b9bdd59da081b5a5b9d1cc81b19599d605a1b6044820152606401610a58565b323314610b075760405162461bcd60e51b81526020600482015260136024820152724e6f20636f6e7472616374206d696e74696e6760681b6044820152606401610a58565b600d5462010000900460ff16610b565760405162461bcd60e51b81526020600482015260146024820152735075626c69632073616c6520696e61637469766560601b6044820152606401610a58565b600a821115610b9b5760405162461bcd60e51b81526020600482015260116024820152700a2eac2dce8d2e8f240e8dede40d0d2ced607b1b6044820152606401610a58565b600a54336000908152600e6020526040902054610bc0610bbb8584611daa565b611419565b610bca8482611d7e565b336000818152600e6020526040902091909155610be7908561145f565b50505050565b610bf561134f565b60026009541415610c485760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a58565b6002600955604051600090339047908381818185875af1925050503d8060008114610c8f576040519150601f19603f3d011682016040523d82523d6000602084013e610c94565b606091505b5050905080610cd85760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b6044820152606401610a58565b506001600955565b610cfb83838360405180602001604052806000815250611058565b505050565b60606000610d0d83610e54565b905060008167ffffffffffffffff811115610d2a57610d2a611eb8565b604051908082528060200260200182016040528015610d53578160200160208202803683370190505b509050600160005b8381108015610d6c5750611f408211155b15610dd7576000610d7c83610e49565b9050866001600160a01b0316816001600160a01b03161415610dc45782848381518110610dab57610dab611ea2565b602090810291909101015281610dc081611e47565b9250505b82610dce81611e47565b93505050610d5b565b5090949350505050565b610de961134f565b8051610dfc90600c906020840190611823565b5050565b610e0861134f565b8051610dfc90600b906020840190611823565b610e2361134f565b600d805461ff001916610100841515021790558051610cfb90600b906020840190611823565b60006106ea826113a9565b60006001600160a01b038216610e7d576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526006602052604090205467ffffffffffffffff1690565b610eab61134f565b610eb56000611479565b565b610ebf61134f565b600d54829060ff1615610f095760405162461bcd60e51b815260206004820152601260248201527110dbdb9d1c9858dd081a5cc81c185d5cd95960721b6044820152606401610a58565b600254600154611f409183910360001901610f249190611d7e565b1115610f6a5760405162461bcd60e51b8152602060048201526015602482015274139bdd08195b9bdd59da081b5a5b9d1cc81b19599d605a1b6044820152606401610a58565b323314610faf5760405162461bcd60e51b81526020600482015260136024820152724e6f20636f6e7472616374206d696e74696e6760681b6044820152606401610a58565b610cfb828461145f565b610fc161134f565b600d8054911515620100000262ff000019909216919091179055565b6060600480546106ff90611e0c565b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611063848484610881565b6001600160a01b0383163b15610be75761107f848484846114c9565b610be7576040516368d2bf6b60e11b815260040160405180910390fd5b6110a461134f565b600a55565b60606110b48261131a565b6111185760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610a58565b600d54610100900460ff161561115a57600b611133836115c1565b604051602001611144929190611c2f565b6040516020818303038152906040529050919050565b600c805461116790611e0c565b80601f016020809104026020016040519081016040528092919081815260200182805461119390611e0c565b80156111e05780601f106111b5576101008083540402835291602001916111e0565b820191906000526020600020905b8154815290600101906020018083116111c357829003601f168201915b50505050509050919050565b919050565b6111f961134f565b600d80549115156101000261ff0019909216919091179055565b61121b61134f565b6001600160a01b0381166112805760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a58565b61128981611479565b50565b600b805461129990611e0c565b80601f01602080910402602001604051908101604052809291908181526020018280546112c590611e0c565b80156113125780601f106112e757610100808354040283529160200191611312565b820191906000526020600020905b8154815290600101906020018083116112f557829003601f168201915b505050505081565b60008160011115801561132e575060015482105b80156106ea575050600090815260056020526040902054600160e01b161590565b6000546001600160a01b03163314610eb55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a58565b600081806001116114005760015481101561140057600081815260056020526040902054600160e01b81166113fe575b806113f75750600019016000818152600560205260409020546113d9565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b803410156112895760405162461bcd60e51b8152602060048201526013602482015272139bdd08195b9bdd59da08115512081cd95b9d606a1b6044820152606401610a58565b610dfc8282604051806020016040528060008152506116bf565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906114fe903390899088908890600401611cea565b602060405180830381600087803b15801561151857600080fd5b505af1925050508015611548575060408051601f3d908101601f1916820190925261154591810190611b59565b60015b6115a3573d808015611576576040519150601f19603f3d011682016040523d82523d6000602084013e61157b565b606091505b50805161159b576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060816115e55750506040805180820190915260018152600360fc1b602082015290565b8160005b811561160f57806115f981611e47565b91506116089050600a83611d96565b91506115e9565b60008167ffffffffffffffff81111561162a5761162a611eb8565b6040519080825280601f01601f191660200182016040528015611654576020820181803683370190505b5090505b84156115b957611669600183611dc9565b9150611676600a86611e62565b611681906030611d7e565b60f81b81838151811061169657611696611ea2565b60200101906001600160f81b031916908160001a9053506116b8600a86611d96565b9450611658565b6116c9838361172c565b6001600160a01b0383163b15610cfb576001548281035b6116f360008683806001019450866114c9565b611710576040516368d2bf6b60e11b815260040160405180910390fd5b8181106116e057816001541461172557600080fd5b5050505050565b6001548161174d5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526006602090815260408083208054680100000000000000018802019055848352600590915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b8181146117fc57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001016117c4565b508161181a57604051622e076360e81b815260040160405180910390fd5b60015550505050565b82805461182f90611e0c565b90600052602060002090601f0160209004810192826118515760008555611897565b82601f1061186a57805160ff1916838001178555611897565b82800160010185558215611897579182015b8281111561189757825182559160200191906001019061187c565b506118a39291506118a7565b5090565b5b808211156118a357600081556001016118a8565b600067ffffffffffffffff808411156118d7576118d7611eb8565b604051601f8501601f19908116603f011681019082821181831017156118ff576118ff611eb8565b8160405280935085815286868601111561191857600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b03811681146111ec57600080fd5b803580151581146111ec57600080fd5b600082601f83011261196a57600080fd5b6113f7838335602085016118bc565b60006020828403121561198b57600080fd5b6113f782611932565b600080604083850312156119a757600080fd5b6119b083611932565b91506119be60208401611932565b90509250929050565b6000806000606084860312156119dc57600080fd5b6119e584611932565b92506119f360208501611932565b9150604084013590509250925092565b60008060008060808587031215611a1957600080fd5b611a2285611932565b9350611a3060208601611932565b925060408501359150606085013567ffffffffffffffff811115611a5357600080fd5b8501601f81018713611a6457600080fd5b611a73878235602084016118bc565b91505092959194509250565b60008060408385031215611a9257600080fd5b611a9b83611932565b91506119be60208401611949565b60008060408385031215611abc57600080fd5b611ac583611932565b946020939093013593505050565b600060208284031215611ae557600080fd5b6113f782611949565b60008060408385031215611b0157600080fd5b611b0a83611949565b9150602083013567ffffffffffffffff811115611b2657600080fd5b611b3285828601611959565b9150509250929050565b600060208284031215611b4e57600080fd5b81356113f781611ece565b600060208284031215611b6b57600080fd5b81516113f781611ece565b600060208284031215611b8857600080fd5b813567ffffffffffffffff811115611b9f57600080fd5b6115b984828501611959565b600060208284031215611bbd57600080fd5b5035919050565b60008060408385031215611bd757600080fd5b823591506119be60208401611932565b60008151808452611bff816020860160208601611de0565b601f01601f19169290920160200192915050565b60008151611c25818560208601611de0565b9290920192915050565b600080845481600182811c915080831680611c4b57607f831692505b6020808410821415611c6b57634e487b7160e01b86526022600452602486fd5b818015611c7f5760018114611c9057611cbd565b60ff19861689528489019650611cbd565b60008b81526020902060005b86811015611cb55781548b820152908501908301611c9c565b505084890196505b505050505050611ce1611cd08286611c13565b64173539b7b760d91b815260050190565b95945050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611d1d90830184611be7565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015611d5f57835183529284019291840191600101611d43565b50909695505050505050565b6020815260006113f76020830184611be7565b60008219821115611d9157611d91611e76565b500190565b600082611da557611da5611e8c565b500490565b6000816000190483118215151615611dc457611dc4611e76565b500290565b600082821015611ddb57611ddb611e76565b500390565b60005b83811015611dfb578181015183820152602001611de3565b83811115610be75750506000910152565b600181811c90821680611e2057607f821691505b60208210811415611e4157634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415611e5b57611e5b611e76565b5060010190565b600082611e7157611e71611e8c565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461128957600080fdfea26469706673582212204c81f20bfde1409853c3814b44b7902ce9fda5fe7638efeae246f417a7d88f0364736f6c63430008070033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000000d426f726564204d616368696e650000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000064252444d4348000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d5346724e38467862473974516d7734654142674a426f43547277416e566f4638625735625245426237576d322f00000000000000000000
Deployed Bytecode
0x60806040526004361061021a5760003560e01c80636352211e11610123578063a22cb465116100ab578063c87b56dd1161006f578063c87b56dd146105e0578063e0a8085314610600578063e985e9c514610620578063f2fde38b14610669578063f7e8d6ea1461068957600080fd5b8063a22cb46514610561578063a945bf8014610581578063b36c128414610597578063b88d4fde146105ad578063c6275255146105c057600080fd5b80637aeb7242116100f25780637aeb7242146104cc5780637af3a1af146104f95780638bec1c6d146105195780638da5cb5b1461052e57806395d89b411461054c57600080fd5b80636352211e1461045757806370a0823114610477578063715018a614610497578063789b714f146104ac57600080fd5b806333bc1c5c116101a65780634fdd43cb116101755780634fdd43cb146103be57806351830227146103de57806355f804b3146103fd5780635c975abb1461041d5780635ed3e25e1461043757600080fd5b806333bc1c5c146103495780633ccfd60b1461036957806342842e0e1461037e578063438b63001461039157600080fd5b8063095ea7b3116101ed578063095ea7b3146102d157806316c38b3c146102e657806318160ddd1461030657806323b872dd146103235780632db115441461033657600080fd5b806301ffc9a71461021f57806304ccbbf91461025457806306fdde0314610277578063081812fc14610299575b600080fd5b34801561022b57600080fd5b5061023f61023a366004611b3c565b61069e565b60405190151581526020015b60405180910390f35b34801561026057600080fd5b50610269600a81565b60405190815260200161024b565b34801561028357600080fd5b5061028c6106f0565b60405161024b9190611d6b565b3480156102a557600080fd5b506102b96102b4366004611bab565b610782565b6040516001600160a01b03909116815260200161024b565b6102e46102df366004611aa9565b6107c6565b005b3480156102f257600080fd5b506102e4610301366004611ad3565b610866565b34801561031257600080fd5b506002546001540360001901610269565b6102e46103313660046119c7565b610881565b6102e4610344366004611bab565b610a12565b34801561035557600080fd5b50600d5461023f9062010000900460ff1681565b34801561037557600080fd5b506102e4610bed565b6102e461038c3660046119c7565b610ce0565b34801561039d57600080fd5b506103b16103ac366004611979565b610d00565b60405161024b9190611d27565b3480156103ca57600080fd5b506102e46103d9366004611b76565b610de1565b3480156103ea57600080fd5b50600d5461023f90610100900460ff1681565b34801561040957600080fd5b506102e4610418366004611b76565b610e00565b34801561042957600080fd5b50600d5461023f9060ff1681565b34801561044357600080fd5b506102e4610452366004611aee565b610e1b565b34801561046357600080fd5b506102b9610472366004611bab565b610e49565b34801561048357600080fd5b50610269610492366004611979565b610e54565b3480156104a357600080fd5b506102e4610ea3565b3480156104b857600080fd5b506102e46104c7366004611bc4565b610eb7565b3480156104d857600080fd5b506102696104e7366004611979565b600e6020526000908152604090205481565b34801561050557600080fd5b506102e4610514366004611ad3565b610fb9565b34801561052557600080fd5b50610269606481565b34801561053a57600080fd5b506000546001600160a01b03166102b9565b34801561055857600080fd5b5061028c610fdd565b34801561056d57600080fd5b506102e461057c366004611a7f565b610fec565b34801561058d57600080fd5b50610269600a5481565b3480156105a357600080fd5b50610269611f4081565b6102e46105bb366004611a03565b611058565b3480156105cc57600080fd5b506102e46105db366004611bab565b61109c565b3480156105ec57600080fd5b5061028c6105fb366004611bab565b6110a9565b34801561060c57600080fd5b506102e461061b366004611ad3565b6111f1565b34801561062c57600080fd5b5061023f61063b366004611994565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b34801561067557600080fd5b506102e4610684366004611979565b611213565b34801561069557600080fd5b5061028c61128c565b60006301ffc9a760e01b6001600160e01b0319831614806106cf57506380ac58cd60e01b6001600160e01b03198316145b806106ea5750635b5e139f60e01b6001600160e01b03198316145b92915050565b6060600380546106ff90611e0c565b80601f016020809104026020016040519081016040528092919081815260200182805461072b90611e0c565b80156107785780601f1061074d57610100808354040283529160200191610778565b820191906000526020600020905b81548152906001019060200180831161075b57829003601f168201915b5050505050905090565b600061078d8261131a565b6107aa576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b60006107d182610e49565b9050336001600160a01b0382161461080a576107ed813361063b565b61080a576040516367d9dca160e11b815260040160405180910390fd5b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b61086e61134f565b600d805460ff1916911515919091179055565b600061088c826113a9565b9050836001600160a01b0316816001600160a01b0316146108bf5760405162a1148160e81b815260040160405180910390fd5b60008281526007602052604090208054338082146001600160a01b0388169091141761090c576108ef863361063b565b61090c57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661093357604051633a954ecd60e21b815260040160405180910390fd5b801561093e57600082555b6001600160a01b038681166000908152600660205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260056020526040902055600160e11b83166109c957600184016000818152600560205260409020546109c75760015481146109c75760008181526005602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b600d54819060ff1615610a615760405162461bcd60e51b815260206004820152601260248201527110dbdb9d1c9858dd081a5cc81c185d5cd95960721b60448201526064015b60405180910390fd5b600254600154611f409183910360001901610a7c9190611d7e565b1115610ac25760405162461bcd60e51b8152602060048201526015602482015274139bdd08195b9bdd59da081b5a5b9d1cc81b19599d605a1b6044820152606401610a58565b323314610b075760405162461bcd60e51b81526020600482015260136024820152724e6f20636f6e7472616374206d696e74696e6760681b6044820152606401610a58565b600d5462010000900460ff16610b565760405162461bcd60e51b81526020600482015260146024820152735075626c69632073616c6520696e61637469766560601b6044820152606401610a58565b600a821115610b9b5760405162461bcd60e51b81526020600482015260116024820152700a2eac2dce8d2e8f240e8dede40d0d2ced607b1b6044820152606401610a58565b600a54336000908152600e6020526040902054610bc0610bbb8584611daa565b611419565b610bca8482611d7e565b336000818152600e6020526040902091909155610be7908561145f565b50505050565b610bf561134f565b60026009541415610c485760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a58565b6002600955604051600090339047908381818185875af1925050503d8060008114610c8f576040519150601f19603f3d011682016040523d82523d6000602084013e610c94565b606091505b5050905080610cd85760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b6044820152606401610a58565b506001600955565b610cfb83838360405180602001604052806000815250611058565b505050565b60606000610d0d83610e54565b905060008167ffffffffffffffff811115610d2a57610d2a611eb8565b604051908082528060200260200182016040528015610d53578160200160208202803683370190505b509050600160005b8381108015610d6c5750611f408211155b15610dd7576000610d7c83610e49565b9050866001600160a01b0316816001600160a01b03161415610dc45782848381518110610dab57610dab611ea2565b602090810291909101015281610dc081611e47565b9250505b82610dce81611e47565b93505050610d5b565b5090949350505050565b610de961134f565b8051610dfc90600c906020840190611823565b5050565b610e0861134f565b8051610dfc90600b906020840190611823565b610e2361134f565b600d805461ff001916610100841515021790558051610cfb90600b906020840190611823565b60006106ea826113a9565b60006001600160a01b038216610e7d576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526006602052604090205467ffffffffffffffff1690565b610eab61134f565b610eb56000611479565b565b610ebf61134f565b600d54829060ff1615610f095760405162461bcd60e51b815260206004820152601260248201527110dbdb9d1c9858dd081a5cc81c185d5cd95960721b6044820152606401610a58565b600254600154611f409183910360001901610f249190611d7e565b1115610f6a5760405162461bcd60e51b8152602060048201526015602482015274139bdd08195b9bdd59da081b5a5b9d1cc81b19599d605a1b6044820152606401610a58565b323314610faf5760405162461bcd60e51b81526020600482015260136024820152724e6f20636f6e7472616374206d696e74696e6760681b6044820152606401610a58565b610cfb828461145f565b610fc161134f565b600d8054911515620100000262ff000019909216919091179055565b6060600480546106ff90611e0c565b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611063848484610881565b6001600160a01b0383163b15610be75761107f848484846114c9565b610be7576040516368d2bf6b60e11b815260040160405180910390fd5b6110a461134f565b600a55565b60606110b48261131a565b6111185760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610a58565b600d54610100900460ff161561115a57600b611133836115c1565b604051602001611144929190611c2f565b6040516020818303038152906040529050919050565b600c805461116790611e0c565b80601f016020809104026020016040519081016040528092919081815260200182805461119390611e0c565b80156111e05780601f106111b5576101008083540402835291602001916111e0565b820191906000526020600020905b8154815290600101906020018083116111c357829003601f168201915b50505050509050919050565b919050565b6111f961134f565b600d80549115156101000261ff0019909216919091179055565b61121b61134f565b6001600160a01b0381166112805760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a58565b61128981611479565b50565b600b805461129990611e0c565b80601f01602080910402602001604051908101604052809291908181526020018280546112c590611e0c565b80156113125780601f106112e757610100808354040283529160200191611312565b820191906000526020600020905b8154815290600101906020018083116112f557829003601f168201915b505050505081565b60008160011115801561132e575060015482105b80156106ea575050600090815260056020526040902054600160e01b161590565b6000546001600160a01b03163314610eb55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a58565b600081806001116114005760015481101561140057600081815260056020526040902054600160e01b81166113fe575b806113f75750600019016000818152600560205260409020546113d9565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b803410156112895760405162461bcd60e51b8152602060048201526013602482015272139bdd08195b9bdd59da08115512081cd95b9d606a1b6044820152606401610a58565b610dfc8282604051806020016040528060008152506116bf565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906114fe903390899088908890600401611cea565b602060405180830381600087803b15801561151857600080fd5b505af1925050508015611548575060408051601f3d908101601f1916820190925261154591810190611b59565b60015b6115a3573d808015611576576040519150601f19603f3d011682016040523d82523d6000602084013e61157b565b606091505b50805161159b576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060816115e55750506040805180820190915260018152600360fc1b602082015290565b8160005b811561160f57806115f981611e47565b91506116089050600a83611d96565b91506115e9565b60008167ffffffffffffffff81111561162a5761162a611eb8565b6040519080825280601f01601f191660200182016040528015611654576020820181803683370190505b5090505b84156115b957611669600183611dc9565b9150611676600a86611e62565b611681906030611d7e565b60f81b81838151811061169657611696611ea2565b60200101906001600160f81b031916908160001a9053506116b8600a86611d96565b9450611658565b6116c9838361172c565b6001600160a01b0383163b15610cfb576001548281035b6116f360008683806001019450866114c9565b611710576040516368d2bf6b60e11b815260040160405180910390fd5b8181106116e057816001541461172557600080fd5b5050505050565b6001548161174d5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526006602090815260408083208054680100000000000000018802019055848352600590915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b8181146117fc57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001016117c4565b508161181a57604051622e076360e81b815260040160405180910390fd5b60015550505050565b82805461182f90611e0c565b90600052602060002090601f0160209004810192826118515760008555611897565b82601f1061186a57805160ff1916838001178555611897565b82800160010185558215611897579182015b8281111561189757825182559160200191906001019061187c565b506118a39291506118a7565b5090565b5b808211156118a357600081556001016118a8565b600067ffffffffffffffff808411156118d7576118d7611eb8565b604051601f8501601f19908116603f011681019082821181831017156118ff576118ff611eb8565b8160405280935085815286868601111561191857600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b03811681146111ec57600080fd5b803580151581146111ec57600080fd5b600082601f83011261196a57600080fd5b6113f7838335602085016118bc565b60006020828403121561198b57600080fd5b6113f782611932565b600080604083850312156119a757600080fd5b6119b083611932565b91506119be60208401611932565b90509250929050565b6000806000606084860312156119dc57600080fd5b6119e584611932565b92506119f360208501611932565b9150604084013590509250925092565b60008060008060808587031215611a1957600080fd5b611a2285611932565b9350611a3060208601611932565b925060408501359150606085013567ffffffffffffffff811115611a5357600080fd5b8501601f81018713611a6457600080fd5b611a73878235602084016118bc565b91505092959194509250565b60008060408385031215611a9257600080fd5b611a9b83611932565b91506119be60208401611949565b60008060408385031215611abc57600080fd5b611ac583611932565b946020939093013593505050565b600060208284031215611ae557600080fd5b6113f782611949565b60008060408385031215611b0157600080fd5b611b0a83611949565b9150602083013567ffffffffffffffff811115611b2657600080fd5b611b3285828601611959565b9150509250929050565b600060208284031215611b4e57600080fd5b81356113f781611ece565b600060208284031215611b6b57600080fd5b81516113f781611ece565b600060208284031215611b8857600080fd5b813567ffffffffffffffff811115611b9f57600080fd5b6115b984828501611959565b600060208284031215611bbd57600080fd5b5035919050565b60008060408385031215611bd757600080fd5b823591506119be60208401611932565b60008151808452611bff816020860160208601611de0565b601f01601f19169290920160200192915050565b60008151611c25818560208601611de0565b9290920192915050565b600080845481600182811c915080831680611c4b57607f831692505b6020808410821415611c6b57634e487b7160e01b86526022600452602486fd5b818015611c7f5760018114611c9057611cbd565b60ff19861689528489019650611cbd565b60008b81526020902060005b86811015611cb55781548b820152908501908301611c9c565b505084890196505b505050505050611ce1611cd08286611c13565b64173539b7b760d91b815260050190565b95945050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611d1d90830184611be7565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015611d5f57835183529284019291840191600101611d43565b50909695505050505050565b6020815260006113f76020830184611be7565b60008219821115611d9157611d91611e76565b500190565b600082611da557611da5611e8c565b500490565b6000816000190483118215151615611dc457611dc4611e76565b500290565b600082821015611ddb57611ddb611e76565b500390565b60005b83811015611dfb578181015183820152602001611de3565b83811115610be75750506000910152565b600181811c90821680611e2057607f821691505b60208210811415611e4157634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415611e5b57611e5b611e76565b5060010190565b600082611e7157611e71611e8c565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461128957600080fdfea26469706673582212204c81f20bfde1409853c3814b44b7902ce9fda5fe7638efeae246f417a7d88f0364736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000000d426f726564204d616368696e650000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000064252444d4348000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d5346724e38467862473974516d7734654142674a426f43547277416e566f4638625735625245426237576d322f00000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): Bored Machine
Arg [1] : _symbol (string): BRDMCH
Arg [2] : _baseUri (string):
Arg [3] : _hiddenMetadataUri (string): ipfs://QmSFrN8FxbG9tQmw4eABgJBoCTrwAnVoF8bW5bREBb7Wm2/
-----Encoded View---------------
12 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [4] : 000000000000000000000000000000000000000000000000000000000000000d
Arg [5] : 426f726564204d616368696e6500000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [7] : 4252444d43480000000000000000000000000000000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [10] : 697066733a2f2f516d5346724e38467862473974516d7734654142674a426f43
Arg [11] : 547277416e566f4638625735625245426237576d322f00000000000000000000
Deployed Bytecode Sourcemap
68958:3963:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35841:639;;;;;;;;;;-1:-1:-1;35841:639:0;;;;;:::i;:::-;;:::i;:::-;;;8641:14:1;;8634:22;8616:41;;8604:2;8589:18;35841:639:0;;;;;;;;69137:37;;;;;;;;;;;;69172:2;69137:37;;;;;13015:25:1;;;13003:2;12988:18;69137:37:0;12869:177:1;36743:100:0;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;43234:218::-;;;;;;;;;;-1:-1:-1;43234:218:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;7302:32:1;;;7284:51;;7272:2;7257:18;43234:218:0;7138:203:1;42667:408:0;;;;;;:::i;:::-;;:::i;:::-;;72533:83;;;;;;;;;;-1:-1:-1;72533:83:0;;;;;:::i;:::-;;:::i;32494:323::-;;;;;;;;;;-1:-1:-1;32768:12:0;;69905:1;32752:13;:28;-1:-1:-1;;32752:46:0;32494:323;;46873:2825;;;;;;:::i;:::-;;:::i;70341:469::-;;;;;;:::i;:::-;;:::i;69373:30::-;;;;;;;;;;-1:-1:-1;69373:30:0;;;;;;;;;;;72730:186;;;;;;;;;;;;;:::i;49794:193::-;;;;;;:::i;:::-;;:::i;70824:688::-;;;;;;;;;;-1:-1:-1;70824:688:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;72080:130::-;;;;;;;;;;-1:-1:-1;72080:130:0;;;;;:::i;:::-;;:::i;69338:28::-;;;;;;;;;;-1:-1:-1;69338:28:0;;;;;;;;;;;72307:102;;;;;;;;;;-1:-1:-1;72307:102:0;;;;;:::i;:::-;;:::i;69305:26::-;;;;;;;;;;-1:-1:-1;69305:26:0;;;;;;;;71917:155;;;;;;;;;;-1:-1:-1;71917:155:0;;;;;:::i;:::-;;:::i;38136:152::-;;;;;;;;;;-1:-1:-1;38136:152:0;;;;;:::i;:::-;;:::i;33678:233::-;;;;;;;;;;-1:-1:-1;33678:233:0;;;;;:::i;:::-;;:::i;16620:103::-;;;;;;;;;;;;;:::i;69660:145::-;;;;;;;;;;-1:-1:-1;69660:145:0;;;;;:::i;:::-;;:::i;69444:47::-;;;;;;;;;;-1:-1:-1;69444:47:0;;;;;:::i;:::-;;;;;;;;;;;;;;72624:94;;;;;;;;;;-1:-1:-1;72624:94:0;;;;;:::i;:::-;;:::i;69181:42::-;;;;;;;;;;;;69220:3;69181:42;;15972:87;;;;;;;;;;-1:-1:-1;16018:7:0;16045:6;-1:-1:-1;;;;;16045:6:0;15972:87;;36919:104;;;;;;;;;;;;;:::i;43792:234::-;;;;;;;;;;-1:-1:-1;43792:234:0;;;;;:::i;:::-;;:::i;69087:41::-;;;;;;;;;;;;;;;;69032:40;;;;;;;;;;;;69068:4;69032:40;;50585:407;;;;;;:::i;:::-;;:::i;72417:108::-;;;;;;;;;;-1:-1:-1;72417:108:0;;;;;:::i;:::-;;:::i;71520:387::-;;;;;;;;;;-1:-1:-1;71520:387:0;;;;;:::i;:::-;;:::i;72216:87::-;;;;;;;;;;-1:-1:-1;72216:87:0;;;;;:::i;:::-;;:::i;44183:164::-;;;;;;;;;;-1:-1:-1;44183:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;44304:25:0;;;44280:4;44304:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;44183:164;16878:201;;;;;;;;;;-1:-1:-1;16878:201:0;;;;;:::i;:::-;;:::i;69232:25::-;;;;;;;;;;;;;:::i;35841:639::-;35926:4;-1:-1:-1;;;;;;;;;36250:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;36327:25:0;;;36250:102;:179;;;-1:-1:-1;;;;;;;;;;36404:25:0;;;36250:179;36230:199;35841:639;-1:-1:-1;;35841:639:0:o;36743:100::-;36797:13;36830:5;36823:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36743:100;:::o;43234:218::-;43310:7;43335:16;43343:7;43335;:16::i;:::-;43330:64;;43360:34;;-1:-1:-1;;;43360:34:0;;;;;;;;;;;43330:64;-1:-1:-1;43414:24:0;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;43414:30:0;;43234:218::o;42667:408::-;42756:13;42772:16;42780:7;42772;:16::i;:::-;42756:32;-1:-1:-1;67000:10:0;-1:-1:-1;;;;;42805:28:0;;;42801:175;;42853:44;42870:5;67000:10;44183:164;:::i;42853:44::-;42848:128;;42925:35;;-1:-1:-1;;;42925:35:0;;;;;;;;;;;42848:128;42988:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;42988:35:0;-1:-1:-1;;;;;42988:35:0;;;;;;;;;43039:28;;42988:24;;43039:28;;;;;;;42745:330;42667:408;;:::o;72533:83::-;15858:13;:11;:13::i;:::-;72593:6:::1;:15:::0;;-1:-1:-1;;72593:15:0::1;::::0;::::1;;::::0;;;::::1;::::0;;72533:83::o;46873:2825::-;47015:27;47045;47064:7;47045:18;:27::i;:::-;47015:57;;47130:4;-1:-1:-1;;;;;47089:45:0;47105:19;-1:-1:-1;;;;;47089:45:0;;47085:86;;47143:28;;-1:-1:-1;;;47143:28:0;;;;;;;;;;;47085:86;47185:27;45981:24;;;:15;:24;;;;;46209:26;;67000:10;45606:30;;;-1:-1:-1;;;;;45299:28:0;;45584:20;;;45581:56;47371:180;;47464:43;47481:4;67000:10;44183:164;:::i;47464:43::-;47459:92;;47516:35;;-1:-1:-1;;;47516:35:0;;;;;;;;;;;47459:92;-1:-1:-1;;;;;47568:16:0;;47564:52;;47593:23;;-1:-1:-1;;;47593:23:0;;;;;;;;;;;47564:52;47765:15;47762:160;;;47905:1;47884:19;47877:30;47762:160;-1:-1:-1;;;;;48302:24:0;;;;;;;:18;:24;;;;;;48300:26;;-1:-1:-1;;48300:26:0;;;48371:22;;;;;;;;;48369:24;;-1:-1:-1;48369:24:0;;;41525:11;41500:23;41496:41;41483:63;-1:-1:-1;;;41483:63:0;48664:26;;;;:17;:26;;;;;:175;-1:-1:-1;;;48959:47:0;;48955:627;;49064:1;49054:11;;49032:19;49187:30;;;:17;:30;;;;;;49183:384;;49325:13;;49310:11;:28;49306:242;;49472:30;;;;:17;:30;;;;;:52;;;49306:242;49013:569;48955:627;49629:7;49625:2;-1:-1:-1;;;;;49610:27:0;49619:4;-1:-1:-1;;;;;49610:27:0;;;;;;;;;;;47004:2694;;;46873:2825;;;:::o;70341:469::-;69991:6;;70411:8;;69991:6;;69990:7;69982:38;;;;-1:-1:-1;;;69982:38:0;;12014:2:1;69982:38:0;;;11996:21:1;12053:2;12033:18;;;12026:30;-1:-1:-1;;;12072:18:1;;;12065:48;12130:18;;69982:38:0;;;;;;;;;32768:12;;69905:1;32752:13;69068:4;;70055:8;;32752:28;-1:-1:-1;;32752:46:0;70039:24;;;;:::i;:::-;:37;;70031:71;;;;-1:-1:-1;;;70031:71:0;;12721:2:1;70031:71:0;;;12703:21:1;12760:2;12740:18;;;12733:30;-1:-1:-1;;;12779:18:1;;;12772:51;12840:18;;70031:71:0;12519:345:1;70031:71:0;70121:9;70134:10;70121:23;70113:55;;;;-1:-1:-1;;;70113:55:0;;9501:2:1;70113:55:0;;;9483:21:1;9540:2;9520:18;;;9513:30;-1:-1:-1;;;9559:18:1;;;9552:49;9618:18;;70113:55:0;9299:343:1;70113:55:0;70440:10:::1;::::0;;;::::1;;;70432:43;;;::::0;-1:-1:-1;;;70432:43:0;;10974:2:1;70432:43:0::1;::::0;::::1;10956:21:1::0;11013:2;10993:18;;;10986:30;-1:-1:-1;;;11032:18:1;;;11025:50;11092:18;;70432:43:0::1;10772:344:1::0;70432:43:0::1;69172:2;70494:8;:20;;70486:50;;;::::0;-1:-1:-1;;;70486:50:0;;11323:2:1;70486:50:0::1;::::0;::::1;11305:21:1::0;11362:2;11342:18;;;11335:30;-1:-1:-1;;;11381:18:1;;;11374:47;11438:18;;70486:50:0::1;11121:341:1::0;70486:50:0::1;70565:11;::::0;70620:10:::1;70549:13;70607:24:::0;;;:12:::1;:24;::::0;;;;;70670:26:::1;70679:16;70687:8:::0;70565:11;70679:16:::1;:::i;:::-;70670:8;:26::i;:::-;70737:20;70749:8:::0;70737:9;:20:::1;:::i;:::-;70722:10;70709:24;::::0;;;:12:::1;:24;::::0;;;;:49;;;;70771:31:::1;::::0;70793:8;70771:9:::1;:31::i;:::-;70421:389;;70341:469:::0;;:::o;72730:186::-;15858:13;:11;:13::i;:::-;12897:1:::1;13495:7;;:19;;13487:63;;;::::0;-1:-1:-1;;;13487:63:0;;12361:2:1;13487:63:0::1;::::0;::::1;12343:21:1::0;12400:2;12380:18;;;12373:30;12439:33;12419:18;;;12412:61;12490:18;;13487:63:0::1;12159:355:1::0;13487:63:0::1;12897:1;13628:7;:18:::0;72812:49:::2;::::0;72794:12:::2;::::0;72812:10:::2;::::0;72835:21:::2;::::0;72794:12;72812:49;72794:12;72812:49;72835:21;72812:10;:49:::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;72793:68;;;72880:7;72872:36;;;::::0;-1:-1:-1;;;72872:36:0;;11669:2:1;72872:36:0::2;::::0;::::2;11651:21:1::0;11708:2;11688:18;;;11681:30;-1:-1:-1;;;11727:18:1;;;11720:46;11783:18;;72872:36:0::2;11467:340:1::0;72872:36:0::2;-1:-1:-1::0;12853:1:0::1;13807:7;:22:::0;72730:186::o;49794:193::-;49940:39;49957:4;49963:2;49967:7;49940:39;;;;;;;;;;;;:16;:39::i;:::-;49794:193;;;:::o;70824:688::-;70884:16;70918:23;70944:17;70954:6;70944:9;:17::i;:::-;70918:43;;70972:30;71019:15;71005:30;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;71005:30:0;-1:-1:-1;70972:63:0;-1:-1:-1;71071:1:0;71046:22;71123:349;71148:15;71130;:33;:64;;;;;69068:4;71167:14;:27;;71130:64;71123:349;;;71211:25;71239:23;71247:14;71239:7;:23::i;:::-;71211:51;;71304:6;-1:-1:-1;;;;;71283:27:0;:17;-1:-1:-1;;;;;71283:27:0;;71279:153;;;71364:14;71331:13;71345:15;71331:30;;;;;;;;:::i;:::-;;;;;;;;;;:47;71399:17;;;;:::i;:::-;;;;71279:153;71444:16;;;;:::i;:::-;;;;71196:276;71123:349;;;-1:-1:-1;71491:13:0;;70824:688;-1:-1:-1;;;;70824:688:0:o;72080:130::-;15858:13;:11;:13::i;:::-;72172:30;;::::1;::::0;:9:::1;::::0;:30:::1;::::0;::::1;::::0;::::1;:::i;:::-;;72080:130:::0;:::o;72307:102::-;15858:13;:11;:13::i;:::-;72379:22;;::::1;::::0;:11:::1;::::0;:22:::1;::::0;::::1;::::0;::::1;:::i;71917:155::-:0;15858:13;:11;:13::i;:::-;72011:8:::1;:20:::0;;-1:-1:-1;;72011:20:0::1;;::::0;::::1;;;;::::0;;72042:22;;::::1;::::0;:11:::1;::::0;:22:::1;::::0;::::1;::::0;::::1;:::i;38136:152::-:0;38208:7;38251:27;38270:7;38251:18;:27::i;33678:233::-;33750:7;-1:-1:-1;;;;;33774:19:0;;33770:60;;33802:28;;-1:-1:-1;;;33802:28:0;;;;;;;;;;;33770:60;-1:-1:-1;;;;;;33848:25:0;;;;;:18;:25;;;;;;27837:13;33848:55;;33678:233::o;16620:103::-;15858:13;:11;:13::i;:::-;16685:30:::1;16712:1;16685:18;:30::i;:::-;16620:103::o:0;69660:145::-;15858:13;:11;:13::i;:::-;69991:6:::1;::::0;69747:8;;69991:6:::1;;69990:7;69982:38;;;::::0;-1:-1:-1;;;69982:38:0;;12014:2:1;69982:38:0::1;::::0;::::1;11996:21:1::0;12053:2;12033:18;;;12026:30;-1:-1:-1;;;12072:18:1;;;12065:48;12130:18;;69982:38:0::1;11812:342:1::0;69982:38:0::1;32768:12:::0;;69905:1;32752:13;69068:4:::1;::::0;70055:8;;32752:28;-1:-1:-1;;32752:46:0;70039:24:::1;;;;:::i;:::-;:37;;70031:71;;;::::0;-1:-1:-1;;;70031:71:0;;12721:2:1;70031:71:0::1;::::0;::::1;12703:21:1::0;12760:2;12740:18;;;12733:30;-1:-1:-1;;;12779:18:1;;;12772:51;12840:18;;70031:71:0::1;12519:345:1::0;70031:71:0::1;70121:9;70134:10;70121:23;70113:55;;;::::0;-1:-1:-1;;;70113:55:0;;9501:2:1;70113:55:0::1;::::0;::::1;9483:21:1::0;9540:2;9520:18;;;9513:30;-1:-1:-1;;;9559:18:1;;;9552:49;9618:18;;70113:55:0::1;9299:343:1::0;70113:55:0::1;69768:29:::2;69778:8;69788;69768:9;:29::i;72624:94::-:0;15858:13;:11;:13::i;:::-;72691:10:::1;:19:::0;;;::::1;;::::0;::::1;-1:-1:-1::0;;72691:19:0;;::::1;::::0;;;::::1;::::0;;72624:94::o;36919:104::-;36975:13;37008:7;37001:14;;;;;:::i;43792:234::-;67000:10;43887:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;43887:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;43887:60:0;;;;;;;;;;43963:55;;8616:41:1;;;43887:49:0;;67000:10;43963:55;;8589:18:1;43963:55:0;;;;;;;43792:234;;:::o;50585:407::-;50760:31;50773:4;50779:2;50783:7;50760:12;:31::i;:::-;-1:-1:-1;;;;;50806:14:0;;;:19;50802:183;;50845:56;50876:4;50882:2;50886:7;50895:5;50845:30;:56::i;:::-;50840:145;;50929:40;;-1:-1:-1;;;50929:40:0;;;;;;;;;;;72417:108;15858:13;:11;:13::i;:::-;72491:11:::1;:26:::0;72417:108::o;71520:387::-;71586:13;71630:17;71638:8;71630:7;:17::i;:::-;71622:77;;;;-1:-1:-1;;;71622:77:0;;10210:2:1;71622:77:0;;;10192:21:1;10249:2;10229:18;;;10222:30;10288:34;10268:18;;;10261:62;-1:-1:-1;;;10339:18:1;;;10332:45;10394:19;;71622:77:0;10008:411:1;71622:77:0;71724:8;;;;;;;71720:180;;;71780:11;71793:26;71810:8;71793:16;:26::i;:::-;71763:66;;;;;;;;;:::i;:::-;;;;;;;;;;;;;71749:81;;71520:387;;;:::o;71720:180::-;71879:9;71872:16;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;71520:387;;;:::o;71720:180::-;71520:387;;;:::o;72216:87::-;15858:13;:11;:13::i;:::-;72278:8:::1;:17:::0;;;::::1;;;;-1:-1:-1::0;;72278:17:0;;::::1;::::0;;;::::1;::::0;;72216:87::o;16878:201::-;15858:13;:11;:13::i;:::-;-1:-1:-1;;;;;16967:22:0;::::1;16959:73;;;::::0;-1:-1:-1;;;16959:73:0;;9094:2:1;16959:73:0::1;::::0;::::1;9076:21:1::0;9133:2;9113:18;;;9106:30;9172:34;9152:18;;;9145:62;-1:-1:-1;;;9223:18:1;;;9216:36;9269:19;;16959:73:0::1;8892:402:1::0;16959:73:0::1;17043:28;17062:8;17043:18;:28::i;:::-;16878:201:::0;:::o;69232:25::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;44605:282::-;44670:4;44726:7;69905:1;44707:26;;:66;;;;;44760:13;;44750:7;:23;44707:66;:153;;;;-1:-1:-1;;44811:26:0;;;;:17;:26;;;;;;-1:-1:-1;;;44811:44:0;:49;;44605:282::o;16137:132::-;16018:7;16045:6;-1:-1:-1;;;;;16045:6:0;67000:10;16201:23;16193:68;;;;-1:-1:-1;;;16193:68:0;;9849:2:1;16193:68:0;;;9831:21:1;;;9868:18;;;9861:30;9927:34;9907:18;;;9900:62;9979:18;;16193:68:0;9647:356:1;39291:1275:0;39358:7;39393;;69905:1;39442:23;39438:1061;;39495:13;;39488:4;:20;39484:1015;;;39533:14;39550:23;;;:17;:23;;;;;;-1:-1:-1;;;39639:24:0;;39635:845;;40304:113;40311:11;40304:113;;-1:-1:-1;;;40382:6:0;40364:25;;;;:17;:25;;;;;;40304:113;;;40450:6;39291:1275;-1:-1:-1;;;39291:1275:0:o;39635:845::-;39510:989;39484:1015;40527:31;;-1:-1:-1;;;40527:31:0;;;;;;;;;;;70196:137;70263:5;70251:9;:17;70247:79;;;70285:29;;-1:-1:-1;;;70285:29:0;;10626:2:1;70285:29:0;;;10608:21:1;10665:2;10645:18;;;10638:30;-1:-1:-1;;;10684:18:1;;;10677:49;10743:18;;70285:29:0;10424:343:1;60745:112:0;60822:27;60832:2;60836:8;60822:27;;;;;;;;;;;;:9;:27::i;17239:191::-;17313:16;17332:6;;-1:-1:-1;;;;;17349:17:0;;;-1:-1:-1;;;;;;17349:17:0;;;;;;17382:40;;17332:6;;;;;;;17382:40;;17313:16;17382:40;17302:128;17239:191;:::o;53076:716::-;53260:88;;-1:-1:-1;;;53260:88:0;;53239:4;;-1:-1:-1;;;;;53260:45:0;;;;;:88;;67000:10;;53327:4;;53333:7;;53342:5;;53260:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;53260:88:0;;;;;;;;-1:-1:-1;;53260:88:0;;;;;;;;;;;;:::i;:::-;;;53256:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;53543:13:0;;53539:235;;53589:40;;-1:-1:-1;;;53589:40:0;;;;;;;;;;;53539:235;53732:6;53726:13;53717:6;53713:2;53709:15;53702:38;53256:529;-1:-1:-1;;;;;;53419:64:0;-1:-1:-1;;;53419:64:0;;-1:-1:-1;53256:529:0;53076:716;;;;;;:::o;465:723::-;521:13;742:10;738:53;;-1:-1:-1;;769:10:0;;;;;;;;;;;;-1:-1:-1;;;769:10:0;;;;;465:723::o;738:53::-;816:5;801:12;857:78;864:9;;857:78;;890:8;;;;:::i;:::-;;-1:-1:-1;913:10:0;;-1:-1:-1;921:2:0;913:10;;:::i;:::-;;;857:78;;;945:19;977:6;967:17;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;967:17:0;;945:39;;995:154;1002:10;;995:154;;1029:11;1039:1;1029:11;;:::i;:::-;;-1:-1:-1;1098:10:0;1106:2;1098:5;:10;:::i;:::-;1085:24;;:2;:24;:::i;:::-;1072:39;;1055:6;1062;1055:14;;;;;;;;:::i;:::-;;;;:56;-1:-1:-1;;;;;1055:56:0;;;;;;;;-1:-1:-1;1126:11:0;1135:2;1126:11;;:::i;:::-;;;995:154;;59972:689;60103:19;60109:2;60113:8;60103:5;:19::i;:::-;-1:-1:-1;;;;;60164:14:0;;;:19;60160:483;;60218:13;;60266:14;;;60299:233;60330:62;60369:1;60373:2;60377:7;;;;;;60386:5;60330:30;:62::i;:::-;60325:167;;60428:40;;-1:-1:-1;;;60428:40:0;;;;;;;;;;;60325:167;60527:3;60519:5;:11;60299:233;;60614:3;60597:13;;:20;60593:34;;60619:8;;;60593:34;60185:458;;59972:689;;;:::o;54254:2966::-;54350:13;;54378;54374:44;;54400:18;;-1:-1:-1;;;54400:18:0;;;;;;;;;;;54374:44;-1:-1:-1;;;;;54906:22:0;;;;;;:18;:22;;;;27975:2;54906:22;;;:71;;54944:32;54932:45;;54906:71;;;55220:31;;;:17;:31;;;;;-1:-1:-1;41956:15:0;;41930:24;41926:46;41525:11;41500:23;41496:41;41493:52;41483:63;;55220:173;;55455:23;;;;55220:31;;54906:22;;56220:25;54906:22;;56073:335;56734:1;56720:12;56716:20;56674:346;56775:3;56766:7;56763:16;56674:346;;56993:7;56983:8;56980:1;56953:25;56950:1;56947;56942:59;56828:1;56815:15;56674:346;;;-1:-1:-1;57053:13:0;57049:45;;57075:19;;-1:-1:-1;;;57075:19:0;;;;;;;;;;;57049:45;57111:13;:19;-1:-1:-1;49794:193:0;;;:::o;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;14:631:1;78:5;108:18;149:2;141:6;138:14;135:40;;;155:18;;:::i;:::-;230:2;224:9;198:2;284:15;;-1:-1:-1;;280:24:1;;;306:2;276:33;272:42;260:55;;;330:18;;;350:22;;;327:46;324:72;;;376:18;;:::i;:::-;416:10;412:2;405:22;445:6;436:15;;475:6;467;460:22;515:3;506:6;501:3;497:16;494:25;491:45;;;532:1;529;522:12;491:45;582:6;577:3;570:4;562:6;558:17;545:44;637:1;630:4;621:6;613;609:19;605:30;598:41;;;;14:631;;;;;:::o;650:173::-;718:20;;-1:-1:-1;;;;;767:31:1;;757:42;;747:70;;813:1;810;803:12;828:160;893:20;;949:13;;942:21;932:32;;922:60;;978:1;975;968:12;993:221;1036:5;1089:3;1082:4;1074:6;1070:17;1066:27;1056:55;;1107:1;1104;1097:12;1056:55;1129:79;1204:3;1195:6;1182:20;1175:4;1167:6;1163:17;1129:79;:::i;1219:186::-;1278:6;1331:2;1319:9;1310:7;1306:23;1302:32;1299:52;;;1347:1;1344;1337:12;1299:52;1370:29;1389:9;1370:29;:::i;1410:260::-;1478:6;1486;1539:2;1527:9;1518:7;1514:23;1510:32;1507:52;;;1555:1;1552;1545:12;1507:52;1578:29;1597:9;1578:29;:::i;:::-;1568:39;;1626:38;1660:2;1649:9;1645:18;1626:38;:::i;:::-;1616:48;;1410:260;;;;;:::o;1675:328::-;1752:6;1760;1768;1821:2;1809:9;1800:7;1796:23;1792:32;1789:52;;;1837:1;1834;1827:12;1789:52;1860:29;1879:9;1860:29;:::i;:::-;1850:39;;1908:38;1942:2;1931:9;1927:18;1908:38;:::i;:::-;1898:48;;1993:2;1982:9;1978:18;1965:32;1955:42;;1675:328;;;;;:::o;2008:666::-;2103:6;2111;2119;2127;2180:3;2168:9;2159:7;2155:23;2151:33;2148:53;;;2197:1;2194;2187:12;2148:53;2220:29;2239:9;2220:29;:::i;:::-;2210:39;;2268:38;2302:2;2291:9;2287:18;2268:38;:::i;:::-;2258:48;;2353:2;2342:9;2338:18;2325:32;2315:42;;2408:2;2397:9;2393:18;2380:32;2435:18;2427:6;2424:30;2421:50;;;2467:1;2464;2457:12;2421:50;2490:22;;2543:4;2535:13;;2531:27;-1:-1:-1;2521:55:1;;2572:1;2569;2562:12;2521:55;2595:73;2660:7;2655:2;2642:16;2637:2;2633;2629:11;2595:73;:::i;:::-;2585:83;;;2008:666;;;;;;;:::o;2679:254::-;2744:6;2752;2805:2;2793:9;2784:7;2780:23;2776:32;2773:52;;;2821:1;2818;2811:12;2773:52;2844:29;2863:9;2844:29;:::i;:::-;2834:39;;2892:35;2923:2;2912:9;2908:18;2892:35;:::i;2938:254::-;3006:6;3014;3067:2;3055:9;3046:7;3042:23;3038:32;3035:52;;;3083:1;3080;3073:12;3035:52;3106:29;3125:9;3106:29;:::i;:::-;3096:39;3182:2;3167:18;;;;3154:32;;-1:-1:-1;;;2938:254:1:o;3197:180::-;3253:6;3306:2;3294:9;3285:7;3281:23;3277:32;3274:52;;;3322:1;3319;3312:12;3274:52;3345:26;3361:9;3345:26;:::i;3382:390::-;3457:6;3465;3518:2;3506:9;3497:7;3493:23;3489:32;3486:52;;;3534:1;3531;3524:12;3486:52;3557:26;3573:9;3557:26;:::i;:::-;3547:36;;3634:2;3623:9;3619:18;3606:32;3661:18;3653:6;3650:30;3647:50;;;3693:1;3690;3683:12;3647:50;3716;3758:7;3749:6;3738:9;3734:22;3716:50;:::i;:::-;3706:60;;;3382:390;;;;;:::o;3777:245::-;3835:6;3888:2;3876:9;3867:7;3863:23;3859:32;3856:52;;;3904:1;3901;3894:12;3856:52;3943:9;3930:23;3962:30;3986:5;3962:30;:::i;4027:249::-;4096:6;4149:2;4137:9;4128:7;4124:23;4120:32;4117:52;;;4165:1;4162;4155:12;4117:52;4197:9;4191:16;4216:30;4240:5;4216:30;:::i;4281:322::-;4350:6;4403:2;4391:9;4382:7;4378:23;4374:32;4371:52;;;4419:1;4416;4409:12;4371:52;4459:9;4446:23;4492:18;4484:6;4481:30;4478:50;;;4524:1;4521;4514:12;4478:50;4547;4589:7;4580:6;4569:9;4565:22;4547:50;:::i;4608:180::-;4667:6;4720:2;4708:9;4699:7;4695:23;4691:32;4688:52;;;4736:1;4733;4726:12;4688:52;-1:-1:-1;4759:23:1;;4608:180;-1:-1:-1;4608:180:1:o;4793:254::-;4861:6;4869;4922:2;4910:9;4901:7;4897:23;4893:32;4890:52;;;4938:1;4935;4928:12;4890:52;4974:9;4961:23;4951:33;;5003:38;5037:2;5026:9;5022:18;5003:38;:::i;5052:257::-;5093:3;5131:5;5125:12;5158:6;5153:3;5146:19;5174:63;5230:6;5223:4;5218:3;5214:14;5207:4;5200:5;5196:16;5174:63;:::i;:::-;5291:2;5270:15;-1:-1:-1;;5266:29:1;5257:39;;;;5298:4;5253:50;;5052:257;-1:-1:-1;;5052:257:1:o;5314:185::-;5356:3;5394:5;5388:12;5409:52;5454:6;5449:3;5442:4;5435:5;5431:16;5409:52;:::i;:::-;5477:16;;;;;5314:185;-1:-1:-1;;5314:185:1:o;5622:1301::-;5899:3;5928:1;5961:6;5955:13;5991:3;6013:1;6041:9;6037:2;6033:18;6023:28;;6101:2;6090:9;6086:18;6123;6113:61;;6167:4;6159:6;6155:17;6145:27;;6113:61;6193:2;6241;6233:6;6230:14;6210:18;6207:38;6204:165;;;-1:-1:-1;;;6268:33:1;;6324:4;6321:1;6314:15;6354:4;6275:3;6342:17;6204:165;6385:18;6412:104;;;;6530:1;6525:320;;;;6378:467;;6412:104;-1:-1:-1;;6445:24:1;;6433:37;;6490:16;;;;-1:-1:-1;6412:104:1;;6525:320;13124:1;13117:14;;;13161:4;13148:18;;6620:1;6634:165;6648:6;6645:1;6642:13;6634:165;;;6726:14;;6713:11;;;6706:35;6769:16;;;;6663:10;;6634:165;;;6638:3;;6828:6;6823:3;6819:16;6812:23;;6378:467;;;;;;;6861:56;6886:30;6912:3;6904:6;6886:30;:::i;:::-;-1:-1:-1;;;5564:20:1;;5609:1;5600:11;;5504:113;6861:56;6854:63;5622:1301;-1:-1:-1;;;;;5622:1301:1:o;7346:488::-;-1:-1:-1;;;;;7615:15:1;;;7597:34;;7667:15;;7662:2;7647:18;;7640:43;7714:2;7699:18;;7692:34;;;7762:3;7757:2;7742:18;;7735:31;;;7540:4;;7783:45;;7808:19;;7800:6;7783:45;:::i;:::-;7775:53;7346:488;-1:-1:-1;;;;;;7346:488:1:o;7839:632::-;8010:2;8062:21;;;8132:13;;8035:18;;;8154:22;;;7981:4;;8010:2;8233:15;;;;8207:2;8192:18;;;7981:4;8276:169;8290:6;8287:1;8284:13;8276:169;;;8351:13;;8339:26;;8420:15;;;;8385:12;;;;8312:1;8305:9;8276:169;;;-1:-1:-1;8462:3:1;;7839:632;-1:-1:-1;;;;;;7839:632:1:o;8668:219::-;8817:2;8806:9;8799:21;8780:4;8837:44;8877:2;8866:9;8862:18;8854:6;8837:44;:::i;13177:128::-;13217:3;13248:1;13244:6;13241:1;13238:13;13235:39;;;13254:18;;:::i;:::-;-1:-1:-1;13290:9:1;;13177:128::o;13310:120::-;13350:1;13376;13366:35;;13381:18;;:::i;:::-;-1:-1:-1;13415:9:1;;13310:120::o;13435:168::-;13475:7;13541:1;13537;13533:6;13529:14;13526:1;13523:21;13518:1;13511:9;13504:17;13500:45;13497:71;;;13548:18;;:::i;:::-;-1:-1:-1;13588:9:1;;13435:168::o;13608:125::-;13648:4;13676:1;13673;13670:8;13667:34;;;13681:18;;:::i;:::-;-1:-1:-1;13718:9:1;;13608:125::o;13738:258::-;13810:1;13820:113;13834:6;13831:1;13828:13;13820:113;;;13910:11;;;13904:18;13891:11;;;13884:39;13856:2;13849:10;13820:113;;;13951:6;13948:1;13945:13;13942:48;;;-1:-1:-1;;13986:1:1;13968:16;;13961:27;13738:258::o;14001:380::-;14080:1;14076:12;;;;14123;;;14144:61;;14198:4;14190:6;14186:17;14176:27;;14144:61;14251:2;14243:6;14240:14;14220:18;14217:38;14214:161;;;14297:10;14292:3;14288:20;14285:1;14278:31;14332:4;14329:1;14322:15;14360:4;14357:1;14350:15;14214:161;;14001:380;;;:::o;14386:135::-;14425:3;-1:-1:-1;;14446:17:1;;14443:43;;;14466:18;;:::i;:::-;-1:-1:-1;14513:1:1;14502:13;;14386:135::o;14526:112::-;14558:1;14584;14574:35;;14589:18;;:::i;:::-;-1:-1:-1;14623:9:1;;14526:112::o;14643:127::-;14704:10;14699:3;14695:20;14692:1;14685:31;14735:4;14732:1;14725:15;14759:4;14756:1;14749:15;14775:127;14836:10;14831:3;14827:20;14824:1;14817:31;14867:4;14864:1;14857:15;14891:4;14888:1;14881:15;14907:127;14968:10;14963:3;14959:20;14956:1;14949:31;14999:4;14996:1;14989:15;15023:4;15020:1;15013:15;15039:127;15100:10;15095:3;15091:20;15088:1;15081:31;15131:4;15128:1;15121:15;15155:4;15152:1;15145:15;15171:131;-1:-1:-1;;;;;;15245:32:1;;15235:43;;15225:71;;15292:1;15289;15282:12
Swarm Source
ipfs://4c81f20bfde1409853c3814b44b7902ce9fda5fe7638efeae246f417a7d88f03
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.