Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
Overview
Max Total Supply
2,222 GEN
Holders
0
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 0 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
GENCoin
Compiler Version
v0.8.18+commit.87f61d96
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-05-26 */ // SPDX-License-Identifier: MIT // File: @openzeppelin/contracts/utils/Strings.sol // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } } // File: @openzeppelin/contracts/token/ERC20/IERC20.sol // OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } // File: @openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); } // 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: contracts/lib/Constants.sol pragma solidity ^0.8.13; address constant CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS = 0x000000000000AAeB6D7670E522A718067333cd4E; address constant CANONICAL_CORI_SUBSCRIPTION = 0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6; // File: contracts/IOperatorFilterRegistry.sol pragma solidity ^0.8.13; interface IOperatorFilterRegistry { /** * @notice Returns true if operator is not filtered for a given token, either by address or codeHash. Also returns * true if supplied registrant address is not registered. */ function isOperatorAllowed(address registrant, address operator) external view returns (bool); /** * @notice Registers an address with the registry. May be called by address itself or by EIP-173 owner. */ function register(address registrant) external; /** * @notice Registers an address with the registry and "subscribes" to another address's filtered operators and codeHashes. */ function registerAndSubscribe(address registrant, address subscription) external; /** * @notice Registers an address with the registry and copies the filtered operators and codeHashes from another * address without subscribing. */ function registerAndCopyEntries(address registrant, address registrantToCopy) external; /** * @notice Unregisters an address with the registry and removes its subscription. May be called by address itself or by EIP-173 owner. * Note that this does not remove any filtered addresses or codeHashes. * Also note that any subscriptions to this registrant will still be active and follow the existing filtered addresses and codehashes. */ function unregister(address addr) external; /** * @notice Update an operator address for a registered address - when filtered is true, the operator is filtered. */ function updateOperator(address registrant, address operator, bool filtered) external; /** * @notice Update multiple operators for a registered address - when filtered is true, the operators will be filtered. Reverts on duplicates. */ function updateOperators(address registrant, address[] calldata operators, bool filtered) external; /** * @notice Update a codeHash for a registered address - when filtered is true, the codeHash is filtered. */ function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external; /** * @notice Update multiple codeHashes for a registered address - when filtered is true, the codeHashes will be filtered. Reverts on duplicates. */ function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external; /** * @notice Subscribe an address to another registrant's filtered operators and codeHashes. Will remove previous * subscription if present. * Note that accounts with subscriptions may go on to subscribe to other accounts - in this case, * subscriptions will not be forwarded. Instead the former subscription's existing entries will still be * used. */ function subscribe(address registrant, address registrantToSubscribe) external; /** * @notice Unsubscribe an address from its current subscribed registrant, and optionally copy its filtered operators and codeHashes. */ function unsubscribe(address registrant, bool copyExistingEntries) external; /** * @notice Get the subscription address of a given registrant, if any. */ function subscriptionOf(address addr) external returns (address registrant); /** * @notice Get the set of addresses subscribed to a given registrant. * Note that order is not guaranteed as updates are made. */ function subscribers(address registrant) external returns (address[] memory); /** * @notice Get the subscriber at a given index in the set of addresses subscribed to a given registrant. * Note that order is not guaranteed as updates are made. */ function subscriberAt(address registrant, uint256 index) external returns (address); /** * @notice Copy filtered operators and codeHashes from a different registrantToCopy to addr. */ function copyEntriesOf(address registrant, address registrantToCopy) external; /** * @notice Returns true if operator is filtered by a given address or its subscription. */ function isOperatorFiltered(address registrant, address operator) external returns (bool); /** * @notice Returns true if the hash of an address's code is filtered by a given address or its subscription. */ function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool); /** * @notice Returns true if a codeHash is filtered by a given address or its subscription. */ function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool); /** * @notice Returns a list of filtered operators for a given address or its subscription. */ function filteredOperators(address addr) external returns (address[] memory); /** * @notice Returns the set of filtered codeHashes for a given address or its subscription. * Note that order is not guaranteed as updates are made. */ function filteredCodeHashes(address addr) external returns (bytes32[] memory); /** * @notice Returns the filtered operator at the given index of the set of filtered operators for a given address or * its subscription. * Note that order is not guaranteed as updates are made. */ function filteredOperatorAt(address registrant, uint256 index) external returns (address); /** * @notice Returns the filtered codeHash at the given index of the list of filtered codeHashes for a given address or * its subscription. * Note that order is not guaranteed as updates are made. */ function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32); /** * @notice Returns true if an address has registered */ function isRegistered(address addr) external returns (bool); /** * @dev Convenience method to compute the code hash of an arbitrary contract */ function codeHashOf(address addr) external returns (bytes32); } // File: contracts/OperatorFilterer.sol pragma solidity ^0.8.13; /** * @title OperatorFilterer * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another * registrant's entries in the OperatorFilterRegistry. * @dev This smart contract is meant to be inherited by token contracts so they can use the following: * - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods. * - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods. * Please note that if your token contract does not provide an owner with EIP-173, it must provide * administration methods on the contract itself to interact with the registry otherwise the subscription * will be locked to the options set during construction. */ abstract contract OperatorFilterer { /// @dev Emitted when an operator is not allowed. error OperatorNotAllowed(address operator); IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY = IOperatorFilterRegistry(CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS); /// @dev The constructor that is called when the contract is being deployed. constructor(address subscriptionOrRegistrantToCopy, bool subscribe) { // If an inheriting token contract is deployed to a network without the registry deployed, the modifier // will not revert, but the contract will need to be registered with the registry once it is deployed in // order for the modifier to filter addresses. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { if (subscribe) { OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy); } else { if (subscriptionOrRegistrantToCopy != address(0)) { OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy); } else { OPERATOR_FILTER_REGISTRY.register(address(this)); } } } } /** * @dev A helper function to check if an operator is allowed. */ modifier onlyAllowedOperator(address from) virtual { // Allow spending tokens from addresses with balance // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred // from an EOA. if (from != msg.sender) { _checkFilterOperator(msg.sender); } _; } /** * @dev A helper function to check if an operator approval is allowed. */ modifier onlyAllowedOperatorApproval(address operator) virtual { _checkFilterOperator(operator); _; } /** * @dev A helper function to check if an operator is allowed. */ function _checkFilterOperator(address operator) internal view virtual { // Check registry code length to facilitate testing in environments without a deployed registry. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { // under normal circumstances, this function will revert rather than return false, but inheriting contracts // may specify their own OperatorFilterRegistry implementations, which may behave differently if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) { revert OperatorNotAllowed(operator); } } } } // File: contracts/DefaultOperatorFilterer.sol pragma solidity ^0.8.13; /** * @title DefaultOperatorFilterer * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription. * @dev Please note that if your token contract does not provide an owner with EIP-173, it must provide * administration methods on the contract itself to interact with the registry otherwise the subscription * will be locked to the options set during construction. */ abstract contract DefaultOperatorFilterer is OperatorFilterer { /// @dev The constructor that is called when the contract is being deployed. constructor() OperatorFilterer(CANONICAL_CORI_SUBSCRIPTION, true) {} } // 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/token/ERC20/ERC20.sol // OpenZeppelin Contracts v4.4.1 (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom( address sender, address recipient, uint256 amount ) public virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); unchecked { _approve(sender, _msgSender(), currentAllowance - amount); } return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(_msgSender(), spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer( address sender, address recipient, uint256 amount ) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); uint256 senderBalance = _balances[sender]; require(senderBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[sender] = senderBalance - amount; } _balances[recipient] += amount; emit Transfer(sender, recipient, amount); _afterTokenTransfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} } // 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: @openzeppelin/contracts/utils/introspection/IERC165.sol // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } // File: @openzeppelin/contracts/utils/introspection/ERC165.sol // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } } // File: @openzeppelin/contracts/interfaces/IERC2981.sol // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); } // File: @openzeppelin/contracts/token/common/ERC2981.sol // OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: invalid receiver"); _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: Invalid parameters"); _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } } // File: 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: 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.selector); 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.selector); 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 Returns whether the ownership slot at `index` is initialized. * An uninitialized slot does not necessarily mean that the slot has no owner. */ function _ownershipIsInitialized(uint256 index) internal view virtual returns (bool) { return _packedOwnerships[index] != 0; } /** * @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 packed) { if (_startTokenId() <= tokenId) { packed = _packedOwnerships[tokenId]; // If the data at the starting slot does not exist, start the scan. if (packed == 0) { if (tokenId >= _currentIndex) _revert(OwnerQueryForNonexistentToken.selector); // 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, `tokenId` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. for (;;) { unchecked { packed = _packedOwnerships[--tokenId]; } if (packed == 0) continue; if (packed & _BITMASK_BURNED == 0) return packed; // Otherwise, the token is burned, and we must revert. // This handles the case of batch burned tokens, where only the burned bit // of the starting slot is set, and remaining slots are left uninitialized. _revert(OwnerQueryForNonexistentToken.selector); } } // Otherwise, the data exists and we can skip the scan. // This is possible because we have already achieved the target condition. // This saves 2143 gas on transfers of initialized tokens. // If the token is not burned, return `packed`. Otherwise, revert. if (packed & _BITMASK_BURNED == 0) return packed; } _revert(OwnerQueryForNonexistentToken.selector); } /** * @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. See {ERC721A-_approve}. * * Requirements: * * - The caller must own the token or be an approved operator. */ function approve(address to, uint256 tokenId) public payable virtual override { _approve(to, tokenId, true); } /** * @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.selector); 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 result) { if (_startTokenId() <= tokenId) { if (tokenId < _currentIndex) { uint256 packed; while ((packed = _packedOwnerships[tokenId]) == 0) --tokenId; result = packed & _BITMASK_BURNED == 0; } } } /** * @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); // Mask `from` to the lower 160 bits, in case the upper bits somehow aren't clean. from = address(uint160(uint256(uint160(from)) & _BITMASK_ADDRESS)); if (address(uint160(prevOwnershipPacked)) != from) _revert(TransferFromIncorrectOwner.selector); (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.selector); _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; } } } } // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. uint256 toMasked = uint256(uint160(to)) & _BITMASK_ADDRESS; assembly { // 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. from, // `from`. toMasked, // `to`. tokenId // `tokenId`. ) } if (toMasked == 0) _revert(TransferToZeroAddress.selector); _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.selector); } } /** * @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.selector); } 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.selector); _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: // - `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) ); // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. uint256 toMasked = uint256(uint160(to)) & _BITMASK_ADDRESS; if (toMasked == 0) _revert(MintToZeroAddress.selector); uint256 end = startTokenId + quantity; uint256 tokenId = startTokenId; do { assembly { // 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`. tokenId // `tokenId`. ) } // The `!=` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. } while (++tokenId != end); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) _revert(MintToZeroAddress.selector); if (quantity == 0) _revert(MintZeroQuantity.selector); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) _revert(MintERC2309QuantityExceedsLimit.selector); _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.selector); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) _revert(bytes4(0)); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Equivalent to `_approve(to, tokenId, false)`. */ function _approve(address to, uint256 tokenId) internal virtual { _approve(to, tokenId, false); } /** * @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: * * - `tokenId` must exist. * * Emits an {Approval} event. */ function _approve( address to, uint256 tokenId, bool approvalCheck ) internal virtual { address owner = ownerOf(tokenId); if (approvalCheck && _msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { _revert(ApprovalCallerNotOwnerNorApproved.selector); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } // ============================================================= // 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.selector); } _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.selector); 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) } } /** * @dev For more efficient reverts. */ function _revert(bytes4 errorSelector) internal pure { assembly { mstore(0x00, errorSelector) revert(0x00, 0x04) } } } // File: contracts/GENCoin.sol pragma solidity ^0.8.11; contract GENCoin is ERC721A, ERC2981, Ownable, DefaultOperatorFilterer, ReentrancyGuard { IERC20 public paymentCurrency; uint256 public maxSupply = 4222; uint256 public limit = 2; uint256 public price = 2600000000 ether; // 2.6 billion bool public mintEnabled; bool public revealed; string public hiddenURI; string public baseURI; mapping(address => uint256) mintedWallets; constructor(address _currency, address payable _royaltyReceiver) ERC721A("GEN Coin", "GEN") { paymentCurrency = IERC20(_currency); setDefaultRoyalty(_royaltyReceiver, 500); // 5% default royalty } function mint(uint256 numberOfTokens) external nonReentrant { uint256 amount = numberOfTokens * price; require(mintEnabled, "Mint disabled"); require(totalSupply() + numberOfTokens <= maxSupply, "We're sold out!"); require(mintedWallets[msg.sender] + numberOfTokens <= limit, "Too many per wallet"); paymentCurrency.transferFrom(msg.sender, address(this), amount); mintedWallets[msg.sender] += numberOfTokens; _mint(msg.sender, numberOfTokens); } function adminMint(address to, uint256 numberOfTokens) external onlyOwner nonReentrant { require(totalSupply() + numberOfTokens <= maxSupply, "We're sold out!"); _mint(to, numberOfTokens); } function setMaxSupply(uint256 _maxSupply) external onlyOwner { maxSupply = _maxSupply; } function setLimit(uint256 _limit) external onlyOwner { limit = _limit; } function setPrice(uint256 _price) external onlyOwner { price = _price; } function toggleMinting() external onlyOwner { mintEnabled = !mintEnabled; } function toggleRevealed() external onlyOwner { revealed = !revealed; } function setHiddenURI(string calldata hiddenURI_) external onlyOwner { hiddenURI = hiddenURI_; } function setBaseURI(string calldata baseURI_) external onlyOwner { baseURI = baseURI_; } function _baseURI() internal view virtual override returns (string memory) { return baseURI; } function tokenURI(uint256 tokenId) public view override returns (string memory) { require(_exists(tokenId), "GEN does not exist"); if (revealed) { return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, Strings.toString(tokenId))) : ""; } return hiddenURI; } function withdrawCurrency() external onlyOwner nonReentrant { uint256 balance = paymentCurrency.balanceOf(address(this)); require(balance > 0, "No payment tokens to withdraw!"); paymentCurrency.transfer(owner(), balance); } function withdrawEth() external onlyOwner nonReentrant { (bool success, ) = msg.sender.call{value: address(this).balance}(""); require(success, "Withdraw eth failed!"); } function getMintedAmount(address _address) public view returns (uint256) { return mintedWallets[_address]; } // ========================================================================= // Operator filtering // ========================================================================= function setApprovalForAll(address operator, bool approved) public override onlyAllowedOperatorApproval(operator) { super.setApprovalForAll(operator, approved); } function approve(address operator, uint256 tokenId) public payable override onlyAllowedOperatorApproval(operator) { super.approve(operator, tokenId); } function transferFrom(address from, address to, uint256 tokenId) public payable override onlyAllowedOperator(from) { super.transferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId) public payable override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public payable override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId, data); } // ========================================================================= // ERC2891 // ========================================================================= function setDefaultRoyalty(address receiver, uint96 feeNumerator) public onlyOwner { _setDefaultRoyalty(receiver, feeNumerator); } function deleteDefaultRoyalty() public onlyOwner { _deleteDefaultRoyalty(); } // ========================================================================= // ERC165 // ========================================================================= function supportsInterface(bytes4 interfaceId) public view virtual override (ERC2981, ERC721A) returns (bool) { return super.supportsInterface(interfaceId); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_currency","type":"address"},{"internalType":"address payable","name":"_royaltyReceiver","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"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":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"adminMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deleteDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"getMintedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hiddenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"limit","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":"numberOfTokens","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paymentCurrency","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"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":"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":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"hiddenURI_","type":"string"}],"name":"setHiddenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_limit","type":"uint256"}],"name":"setLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxSupply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPrice","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":[],"name":"toggleMinting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleRevealed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawCurrency","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawEth","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405261107e600d556002600e556b0866ab6a6c514d6b28000000600f553480156200002c57600080fd5b50604051620027f5380380620027f58339810160408190526200004f916200043a565b733cc6cdda760b79bafa08df41ecfa224f810dceb660016040518060400160405280600881526020016723a2a71021b7b4b760c11b8152506040518060400160405280600381526020016223a2a760e91b8152508160029081620000b491906200051e565b506003620000c382826200051e565b50506000805550620000d53362000252565b6daaeb6d7670e522a718067333cd4e3b156200021a5780156200016857604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b1580156200014957600080fd5b505af11580156200015e573d6000803e3d6000fd5b505050506200021a565b6001600160a01b03821615620001b95760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af2903906044016200012e565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b1580156200020057600080fd5b505af115801562000215573d6000803e3d6000fd5b505050505b50506001600b55600c80546001600160a01b0319166001600160a01b0384161790556200024a816101f4620002a4565b5050620005ea565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b620002ae620002be565b620002ba828262000320565b5050565b600a546001600160a01b031633146200031e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b565b6127106001600160601b0382161115620003905760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b606482015260840162000315565b6001600160a01b038216620003e85760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c696420726563656976657200000000000000604482015260640162000315565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600855565b6001600160a01b03811681146200043757600080fd5b50565b600080604083850312156200044e57600080fd5b82516200045b8162000421565b60208401519092506200046e8162000421565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620004a457607f821691505b602082108103620004c557634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200051957600081815260208120601f850160051c81016020861015620004f45750805b601f850160051c820191505b81811015620005155782815560010162000500565b5050505b505050565b81516001600160401b038111156200053a576200053a62000479565b62000552816200054b84546200048f565b84620004cb565b602080601f8311600181146200058a5760008415620005715750858301515b600019600386901b1c1916600185901b17855562000515565b600085815260208120601f198616915b82811015620005bb578886015182559484019460019091019084016200059a565b5085821015620005da5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6121fb80620005fa6000396000f3fe6080604052600436106102465760003560e01c806370a0823111610139578063a22cb465116100b6578063c87b56dd1161007a578063c87b56dd14610668578063d123973014610688578063d5abeb01146106a2578063e58306f9146106b8578063e985e9c5146106d8578063f2fde38b146106f857600080fd5b8063a22cb465146105ea578063a4d66daf1461060a578063aa1b103f14610620578063b88d4fde14610635578063bbaac02f1461064857600080fd5b806391b7f5ed116100fd57806391b7f5ed1461056a57806395d89b411461058a578063a035b1fe1461059f578063a0712d68146105b5578063a0ef91df146105d557600080fd5b806370a08231146104ed578063715018a61461050d5780637d55094d146105225780638cc54e7f146105375780638da5cb5b1461054c57600080fd5b806341f43434116101c75780636352211e1161018b5780636352211e1461044d57806363b266ba1461046d57806365b99f63146104a35780636c0360eb146104b85780636f8b44b0146104cd57600080fd5b806341f43434146103c457806342842e0e146103e657806351830227146103f957806355f804b3146104185780635bc020bc1461043857600080fd5b806318160ddd1161020e57806318160ddd1461030f57806323b872dd1461033257806327ea6f2b146103455780632a55205a146103655780633d15cc6d146103a457600080fd5b806301ffc9a71461024b57806304634d8d1461028057806306fdde03146102a2578063081812fc146102c4578063095ea7b3146102fc575b600080fd5b34801561025757600080fd5b5061026b610266366004611aea565b610718565b60405190151581526020015b60405180910390f35b34801561028c57600080fd5b506102a061029b366004611b25565b610729565b005b3480156102ae57600080fd5b506102b761073f565b6040516102779190611bb8565b3480156102d057600080fd5b506102e46102df366004611bcb565b6107d1565b6040516001600160a01b039091168152602001610277565b6102a061030a366004611be4565b61080c565b34801561031b57600080fd5b50600154600054035b604051908152602001610277565b6102a0610340366004611c0e565b610825565b34801561035157600080fd5b506102a0610360366004611bcb565b610850565b34801561037157600080fd5b50610385610380366004611c4a565b61085d565b604080516001600160a01b039093168352602083019190915201610277565b3480156103b057600080fd5b50600c546102e4906001600160a01b031681565b3480156103d057600080fd5b506102e46daaeb6d7670e522a718067333cd4e81565b6102a06103f4366004611c0e565b610909565b34801561040557600080fd5b5060105461026b90610100900460ff1681565b34801561042457600080fd5b506102a0610433366004611c6c565b61092e565b34801561044457600080fd5b506102a0610943565b34801561045957600080fd5b506102e4610468366004611bcb565b610968565b34801561047957600080fd5b50610324610488366004611cde565b6001600160a01b031660009081526013602052604090205490565b3480156104af57600080fd5b506102a0610973565b3480156104c457600080fd5b506102b7610b07565b3480156104d957600080fd5b506102a06104e8366004611bcb565b610b95565b3480156104f957600080fd5b50610324610508366004611cde565b610ba2565b34801561051957600080fd5b506102a0610be8565b34801561052e57600080fd5b506102a0610bfc565b34801561054357600080fd5b506102b7610c18565b34801561055857600080fd5b50600a546001600160a01b03166102e4565b34801561057657600080fd5b506102a0610585366004611bcb565b610c25565b34801561059657600080fd5b506102b7610c32565b3480156105ab57600080fd5b50610324600f5481565b3480156105c157600080fd5b506102a06105d0366004611bcb565b610c41565b3480156105e157600080fd5b506102a0610e25565b3480156105f657600080fd5b506102a0610605366004611d07565b610eeb565b34801561061657600080fd5b50610324600e5481565b34801561062c57600080fd5b506102a0610eff565b6102a0610643366004611d49565b610f11565b34801561065457600080fd5b506102a0610663366004611c6c565b610f3e565b34801561067457600080fd5b506102b7610683366004611bcb565b610f53565b34801561069457600080fd5b5060105461026b9060ff1681565b3480156106ae57600080fd5b50610324600d5481565b3480156106c457600080fd5b506102a06106d3366004611be4565b61109d565b3480156106e457600080fd5b5061026b6106f3366004611e25565b611131565b34801561070457600080fd5b506102a0610713366004611cde565b61115f565b6000610723826111d8565b92915050565b61073161120d565b61073b8282611267565b5050565b60606002805461074e90611e58565b80601f016020809104026020016040519081016040528092919081815260200182805461077a90611e58565b80156107c75780601f1061079c576101008083540402835291602001916107c7565b820191906000526020600020905b8154815290600101906020018083116107aa57829003601f168201915b5050505050905090565b60006107dc82611364565b6107f0576107f06333d1c03960e21b6113a9565b506000908152600660205260409020546001600160a01b031690565b81610816816113b3565b610820838361146c565b505050565b826001600160a01b038116331461083f5761083f336113b3565b61084a848484611478565b50505050565b61085861120d565b600e55565b60008281526009602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916108d25750604080518082019091526008546001600160a01b0381168252600160a01b90046001600160601b031660208201525b6020810151600090612710906108f1906001600160601b031687611ea8565b6108fb9190611ed5565b915196919550909350505050565b826001600160a01b038116331461092357610923336113b3565b61084a8484846115dd565b61093661120d565b6012610820828483611f37565b61094b61120d565b6010805461ff001981166101009182900460ff1615909102179055565b6000610723826115f8565b61097b61120d565b6002600b54036109a65760405162461bcd60e51b815260040161099d90611ff7565b60405180910390fd5b6002600b55600c546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa1580156109f4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a18919061202e565b905060008111610a6a5760405162461bcd60e51b815260206004820152601e60248201527f4e6f207061796d656e7420746f6b656e7320746f207769746864726177210000604482015260640161099d565b600c546001600160a01b031663a9059cbb610a8d600a546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018490526044016020604051808303816000875af1158015610ada573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610afe9190612047565b50506001600b55565b60128054610b1490611e58565b80601f0160208091040260200160405190810160405280929190818152602001828054610b4090611e58565b8015610b8d5780601f10610b6257610100808354040283529160200191610b8d565b820191906000526020600020905b815481529060010190602001808311610b7057829003601f168201915b505050505081565b610b9d61120d565b600d55565b60006001600160a01b038216610bc257610bc26323d3ad8160e21b6113a9565b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610bf061120d565b610bfa600061168e565b565b610c0461120d565b6010805460ff19811660ff90911615179055565b60118054610b1490611e58565b610c2d61120d565b600f55565b60606003805461074e90611e58565b6002600b5403610c635760405162461bcd60e51b815260040161099d90611ff7565b6002600b55600f54600090610c789083611ea8565b60105490915060ff16610cbd5760405162461bcd60e51b815260206004820152600d60248201526c135a5b9d08191a5cd8589b1959609a1b604482015260640161099d565b600d5482610cce6001546000540390565b610cd89190612064565b1115610d185760405162461bcd60e51b815260206004820152600f60248201526e576527726520736f6c64206f75742160881b604482015260640161099d565b600e5433600090815260136020526040902054610d36908490612064565b1115610d7a5760405162461bcd60e51b8152602060048201526013602482015272151bdbc81b585b9e481c195c881dd85b1b195d606a1b604482015260640161099d565b600c546040516323b872dd60e01b8152336004820152306024820152604481018390526001600160a01b03909116906323b872dd906064016020604051808303816000875af1158015610dd1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610df59190612047565b503360009081526013602052604081208054849290610e15908490612064565b90915550610afe905033836116e0565b610e2d61120d565b6002600b5403610e4f5760405162461bcd60e51b815260040161099d90611ff7565b6002600b55604051600090339047908381818185875af1925050503d8060008114610e96576040519150601f19603f3d011682016040523d82523d6000602084013e610e9b565b606091505b5050905080610ee35760405162461bcd60e51b8152602060048201526014602482015273576974686472617720657468206661696c65642160601b604482015260640161099d565b506001600b55565b81610ef5816113b3565b610820838361179f565b610f0761120d565b610bfa6000600855565b836001600160a01b0381163314610f2b57610f2b336113b3565b610f378585858561180b565b5050505050565b610f4661120d565b6011610820828483611f37565b6060610f5e82611364565b610f9f5760405162461bcd60e51b815260206004820152601260248201527111d15388191bd95cc81b9bdd08195e1a5cdd60721b604482015260640161099d565b601054610100900460ff161561100b5760128054610fbc90611e58565b9050600003610fda5760405180602001604052806000815250610723565b6012610fe583611846565b604051602001610ff6929190612077565b60405160208183030381529060405292915050565b6011805461101890611e58565b80601f016020809104026020016040519081016040528092919081815260200182805461104490611e58565b80156110915780601f1061106657610100808354040283529160200191611091565b820191906000526020600020905b81548152906001019060200180831161107457829003601f168201915b50505050509050919050565b6110a561120d565b6002600b54036110c75760405162461bcd60e51b815260040161099d90611ff7565b6002600b55600d54816110dd6001546000540390565b6110e79190612064565b11156111275760405162461bcd60e51b815260206004820152600f60248201526e576527726520736f6c64206f75742160881b604482015260640161099d565b610afe82826116e0565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b61116761120d565b6001600160a01b0381166111cc5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161099d565b6111d58161168e565b50565b60006001600160e01b0319821663152a902d60e11b148061072357506301ffc9a760e01b6001600160e01b0319831614610723565b600a546001600160a01b03163314610bfa5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161099d565b6127106001600160601b03821611156112d55760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b606482015260840161099d565b6001600160a01b03821661132b5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c696420726563656976657200000000000000604482015260640161099d565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600855565b600080548210156113a45760005b506000828152600460205260408120549081900361139a57611393836120fe565b9250611372565b600160e01b161590505b919050565b8060005260046000fd5b6daaeb6d7670e522a718067333cd4e3b156111d557604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611420573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114449190612047565b6111d557604051633b79c77360e21b81526001600160a01b038216600482015260240161099d565b61073b8282600161194f565b6000611483826115f8565b6001600160a01b0394851694909150811684146114a9576114a962a1148160e81b6113a9565b60008281526006602052604090208054338082146001600160a01b038816909114176114ed576114d98633611131565b6114ed576114ed632ce44b5f60e11b6113a9565b80156114f857600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b8416900361158a576001840160008181526004602052604081205490036115885760005481146115885760008181526004602052604090208490555b505b6001600160a01b0385168481887fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4806000036115d4576115d4633a954ecd60e21b6113a9565b50505050505050565b61082083838360405180602001604052806000815250610f11565b6000818152600460205260408120549081900361166b57600054821061162857611628636f96cda160e11b6113a9565b5b5060001901600081815260046020526040902054801561162957600160e01b811660000361165657919050565b611666636f96cda160e11b6113a9565b611629565b600160e01b811660000361167e57919050565b6113a4636f96cda160e11b6113a9565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60008054908290036116fc576116fc63b562e8dd60e01b6113a9565b60008181526004602090815260408083206001600160a01b0387164260a01b6001881460e11b1781179091558084526005909252822080546801000000000000000186020190559081900361175a5761175a622e076360e81b6113a9565b818301825b808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a481816001019150810361175f575060005550505050565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611816848484610825565b6001600160a01b0383163b1561084a57611832848484846119f2565b61084a5761084a6368d2bf6b60e11b6113a9565b60608160000361186d5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611897578061188181612115565b91506118909050600a83611ed5565b9150611871565b60008167ffffffffffffffff8111156118b2576118b2611d33565b6040519080825280601f01601f1916602001820160405280156118dc576020820181803683370190505b5090505b8415611947576118f160018361212e565b91506118fe600a86612141565b611909906030612064565b60f81b81838151811061191e5761191e612155565b60200101906001600160f81b031916908160001a905350611940600a86611ed5565b94506118e0565b949350505050565b600061195a83610968565b90508180156119725750336001600160a01b03821614155b15611995576119818133611131565b611995576119956367d9dca160e11b6113a9565b60008381526006602052604080822080546001600160a01b0319166001600160a01b0388811691821790925591518693918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a450505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611a2790339089908890889060040161216b565b6020604051808303816000875af1925050508015611a62575060408051601f3d908101601f19168201909252611a5f918101906121a8565b60015b611ab7573d808015611a90576040519150601f19603f3d011682016040523d82523d6000602084013e611a95565b606091505b508051600003611aaf57611aaf6368d2bf6b60e11b6113a9565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6001600160e01b0319811681146111d557600080fd5b600060208284031215611afc57600080fd5b8135611b0781611ad4565b9392505050565b80356001600160a01b03811681146113a457600080fd5b60008060408385031215611b3857600080fd5b611b4183611b0e565b915060208301356001600160601b0381168114611b5d57600080fd5b809150509250929050565b60005b83811015611b83578181015183820152602001611b6b565b50506000910152565b60008151808452611ba4816020860160208601611b68565b601f01601f19169290920160200192915050565b602081526000611b076020830184611b8c565b600060208284031215611bdd57600080fd5b5035919050565b60008060408385031215611bf757600080fd5b611c0083611b0e565b946020939093013593505050565b600080600060608486031215611c2357600080fd5b611c2c84611b0e565b9250611c3a60208501611b0e565b9150604084013590509250925092565b60008060408385031215611c5d57600080fd5b50508035926020909101359150565b60008060208385031215611c7f57600080fd5b823567ffffffffffffffff80821115611c9757600080fd5b818501915085601f830112611cab57600080fd5b813581811115611cba57600080fd5b866020828501011115611ccc57600080fd5b60209290920196919550909350505050565b600060208284031215611cf057600080fd5b611b0782611b0e565b80151581146111d557600080fd5b60008060408385031215611d1a57600080fd5b611d2383611b0e565b91506020830135611b5d81611cf9565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215611d5f57600080fd5b611d6885611b0e565b9350611d7660208601611b0e565b925060408501359150606085013567ffffffffffffffff80821115611d9a57600080fd5b818701915087601f830112611dae57600080fd5b813581811115611dc057611dc0611d33565b604051601f8201601f19908116603f01168101908382118183101715611de857611de8611d33565b816040528281528a6020848701011115611e0157600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215611e3857600080fd5b611e4183611b0e565b9150611e4f60208401611b0e565b90509250929050565b600181811c90821680611e6c57607f821691505b602082108103611e8c57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761072357610723611e92565b634e487b7160e01b600052601260045260246000fd5b600082611ee457611ee4611ebf565b500490565b601f82111561082057600081815260208120601f850160051c81016020861015611f105750805b601f850160051c820191505b81811015611f2f57828155600101611f1c565b505050505050565b67ffffffffffffffff831115611f4f57611f4f611d33565b611f6383611f5d8354611e58565b83611ee9565b6000601f841160018114611f975760008515611f7f5750838201355b600019600387901b1c1916600186901b178355610f37565b600083815260209020601f19861690835b82811015611fc85786850135825560209485019460019092019101611fa8565b5086821015611fe55760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60006020828403121561204057600080fd5b5051919050565b60006020828403121561205957600080fd5b8151611b0781611cf9565b8082018082111561072357610723611e92565b600080845461208581611e58565b6001828116801561209d57600181146120b2576120e1565b60ff19841687528215158302870194506120e1565b8860005260208060002060005b858110156120d85781548a8201529084019082016120bf565b50505082870194505b5050505083516120f5818360208801611b68565b01949350505050565b60008161210d5761210d611e92565b506000190190565b60006001820161212757612127611e92565b5060010190565b8181038181111561072357610723611e92565b60008261215057612150611ebf565b500690565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061219e90830184611b8c565b9695505050505050565b6000602082840312156121ba57600080fd5b8151611b0781611ad456fea2646970667358221220e832f5cb1bb01a90836789236bb33b2c75facd894747f0673b2d53f879b5fe8d64736f6c63430008120033000000000000000000000000cae3faa4b6cf660aef18474074949ba0948bc0250000000000000000000000006579116367e0090d1ca6f5f712e172996e527e4c
Deployed Bytecode
0x6080604052600436106102465760003560e01c806370a0823111610139578063a22cb465116100b6578063c87b56dd1161007a578063c87b56dd14610668578063d123973014610688578063d5abeb01146106a2578063e58306f9146106b8578063e985e9c5146106d8578063f2fde38b146106f857600080fd5b8063a22cb465146105ea578063a4d66daf1461060a578063aa1b103f14610620578063b88d4fde14610635578063bbaac02f1461064857600080fd5b806391b7f5ed116100fd57806391b7f5ed1461056a57806395d89b411461058a578063a035b1fe1461059f578063a0712d68146105b5578063a0ef91df146105d557600080fd5b806370a08231146104ed578063715018a61461050d5780637d55094d146105225780638cc54e7f146105375780638da5cb5b1461054c57600080fd5b806341f43434116101c75780636352211e1161018b5780636352211e1461044d57806363b266ba1461046d57806365b99f63146104a35780636c0360eb146104b85780636f8b44b0146104cd57600080fd5b806341f43434146103c457806342842e0e146103e657806351830227146103f957806355f804b3146104185780635bc020bc1461043857600080fd5b806318160ddd1161020e57806318160ddd1461030f57806323b872dd1461033257806327ea6f2b146103455780632a55205a146103655780633d15cc6d146103a457600080fd5b806301ffc9a71461024b57806304634d8d1461028057806306fdde03146102a2578063081812fc146102c4578063095ea7b3146102fc575b600080fd5b34801561025757600080fd5b5061026b610266366004611aea565b610718565b60405190151581526020015b60405180910390f35b34801561028c57600080fd5b506102a061029b366004611b25565b610729565b005b3480156102ae57600080fd5b506102b761073f565b6040516102779190611bb8565b3480156102d057600080fd5b506102e46102df366004611bcb565b6107d1565b6040516001600160a01b039091168152602001610277565b6102a061030a366004611be4565b61080c565b34801561031b57600080fd5b50600154600054035b604051908152602001610277565b6102a0610340366004611c0e565b610825565b34801561035157600080fd5b506102a0610360366004611bcb565b610850565b34801561037157600080fd5b50610385610380366004611c4a565b61085d565b604080516001600160a01b039093168352602083019190915201610277565b3480156103b057600080fd5b50600c546102e4906001600160a01b031681565b3480156103d057600080fd5b506102e46daaeb6d7670e522a718067333cd4e81565b6102a06103f4366004611c0e565b610909565b34801561040557600080fd5b5060105461026b90610100900460ff1681565b34801561042457600080fd5b506102a0610433366004611c6c565b61092e565b34801561044457600080fd5b506102a0610943565b34801561045957600080fd5b506102e4610468366004611bcb565b610968565b34801561047957600080fd5b50610324610488366004611cde565b6001600160a01b031660009081526013602052604090205490565b3480156104af57600080fd5b506102a0610973565b3480156104c457600080fd5b506102b7610b07565b3480156104d957600080fd5b506102a06104e8366004611bcb565b610b95565b3480156104f957600080fd5b50610324610508366004611cde565b610ba2565b34801561051957600080fd5b506102a0610be8565b34801561052e57600080fd5b506102a0610bfc565b34801561054357600080fd5b506102b7610c18565b34801561055857600080fd5b50600a546001600160a01b03166102e4565b34801561057657600080fd5b506102a0610585366004611bcb565b610c25565b34801561059657600080fd5b506102b7610c32565b3480156105ab57600080fd5b50610324600f5481565b3480156105c157600080fd5b506102a06105d0366004611bcb565b610c41565b3480156105e157600080fd5b506102a0610e25565b3480156105f657600080fd5b506102a0610605366004611d07565b610eeb565b34801561061657600080fd5b50610324600e5481565b34801561062c57600080fd5b506102a0610eff565b6102a0610643366004611d49565b610f11565b34801561065457600080fd5b506102a0610663366004611c6c565b610f3e565b34801561067457600080fd5b506102b7610683366004611bcb565b610f53565b34801561069457600080fd5b5060105461026b9060ff1681565b3480156106ae57600080fd5b50610324600d5481565b3480156106c457600080fd5b506102a06106d3366004611be4565b61109d565b3480156106e457600080fd5b5061026b6106f3366004611e25565b611131565b34801561070457600080fd5b506102a0610713366004611cde565b61115f565b6000610723826111d8565b92915050565b61073161120d565b61073b8282611267565b5050565b60606002805461074e90611e58565b80601f016020809104026020016040519081016040528092919081815260200182805461077a90611e58565b80156107c75780601f1061079c576101008083540402835291602001916107c7565b820191906000526020600020905b8154815290600101906020018083116107aa57829003601f168201915b5050505050905090565b60006107dc82611364565b6107f0576107f06333d1c03960e21b6113a9565b506000908152600660205260409020546001600160a01b031690565b81610816816113b3565b610820838361146c565b505050565b826001600160a01b038116331461083f5761083f336113b3565b61084a848484611478565b50505050565b61085861120d565b600e55565b60008281526009602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916108d25750604080518082019091526008546001600160a01b0381168252600160a01b90046001600160601b031660208201525b6020810151600090612710906108f1906001600160601b031687611ea8565b6108fb9190611ed5565b915196919550909350505050565b826001600160a01b038116331461092357610923336113b3565b61084a8484846115dd565b61093661120d565b6012610820828483611f37565b61094b61120d565b6010805461ff001981166101009182900460ff1615909102179055565b6000610723826115f8565b61097b61120d565b6002600b54036109a65760405162461bcd60e51b815260040161099d90611ff7565b60405180910390fd5b6002600b55600c546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa1580156109f4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a18919061202e565b905060008111610a6a5760405162461bcd60e51b815260206004820152601e60248201527f4e6f207061796d656e7420746f6b656e7320746f207769746864726177210000604482015260640161099d565b600c546001600160a01b031663a9059cbb610a8d600a546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018490526044016020604051808303816000875af1158015610ada573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610afe9190612047565b50506001600b55565b60128054610b1490611e58565b80601f0160208091040260200160405190810160405280929190818152602001828054610b4090611e58565b8015610b8d5780601f10610b6257610100808354040283529160200191610b8d565b820191906000526020600020905b815481529060010190602001808311610b7057829003601f168201915b505050505081565b610b9d61120d565b600d55565b60006001600160a01b038216610bc257610bc26323d3ad8160e21b6113a9565b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610bf061120d565b610bfa600061168e565b565b610c0461120d565b6010805460ff19811660ff90911615179055565b60118054610b1490611e58565b610c2d61120d565b600f55565b60606003805461074e90611e58565b6002600b5403610c635760405162461bcd60e51b815260040161099d90611ff7565b6002600b55600f54600090610c789083611ea8565b60105490915060ff16610cbd5760405162461bcd60e51b815260206004820152600d60248201526c135a5b9d08191a5cd8589b1959609a1b604482015260640161099d565b600d5482610cce6001546000540390565b610cd89190612064565b1115610d185760405162461bcd60e51b815260206004820152600f60248201526e576527726520736f6c64206f75742160881b604482015260640161099d565b600e5433600090815260136020526040902054610d36908490612064565b1115610d7a5760405162461bcd60e51b8152602060048201526013602482015272151bdbc81b585b9e481c195c881dd85b1b195d606a1b604482015260640161099d565b600c546040516323b872dd60e01b8152336004820152306024820152604481018390526001600160a01b03909116906323b872dd906064016020604051808303816000875af1158015610dd1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610df59190612047565b503360009081526013602052604081208054849290610e15908490612064565b90915550610afe905033836116e0565b610e2d61120d565b6002600b5403610e4f5760405162461bcd60e51b815260040161099d90611ff7565b6002600b55604051600090339047908381818185875af1925050503d8060008114610e96576040519150601f19603f3d011682016040523d82523d6000602084013e610e9b565b606091505b5050905080610ee35760405162461bcd60e51b8152602060048201526014602482015273576974686472617720657468206661696c65642160601b604482015260640161099d565b506001600b55565b81610ef5816113b3565b610820838361179f565b610f0761120d565b610bfa6000600855565b836001600160a01b0381163314610f2b57610f2b336113b3565b610f378585858561180b565b5050505050565b610f4661120d565b6011610820828483611f37565b6060610f5e82611364565b610f9f5760405162461bcd60e51b815260206004820152601260248201527111d15388191bd95cc81b9bdd08195e1a5cdd60721b604482015260640161099d565b601054610100900460ff161561100b5760128054610fbc90611e58565b9050600003610fda5760405180602001604052806000815250610723565b6012610fe583611846565b604051602001610ff6929190612077565b60405160208183030381529060405292915050565b6011805461101890611e58565b80601f016020809104026020016040519081016040528092919081815260200182805461104490611e58565b80156110915780601f1061106657610100808354040283529160200191611091565b820191906000526020600020905b81548152906001019060200180831161107457829003601f168201915b50505050509050919050565b6110a561120d565b6002600b54036110c75760405162461bcd60e51b815260040161099d90611ff7565b6002600b55600d54816110dd6001546000540390565b6110e79190612064565b11156111275760405162461bcd60e51b815260206004820152600f60248201526e576527726520736f6c64206f75742160881b604482015260640161099d565b610afe82826116e0565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b61116761120d565b6001600160a01b0381166111cc5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161099d565b6111d58161168e565b50565b60006001600160e01b0319821663152a902d60e11b148061072357506301ffc9a760e01b6001600160e01b0319831614610723565b600a546001600160a01b03163314610bfa5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161099d565b6127106001600160601b03821611156112d55760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b606482015260840161099d565b6001600160a01b03821661132b5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c696420726563656976657200000000000000604482015260640161099d565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600855565b600080548210156113a45760005b506000828152600460205260408120549081900361139a57611393836120fe565b9250611372565b600160e01b161590505b919050565b8060005260046000fd5b6daaeb6d7670e522a718067333cd4e3b156111d557604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611420573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114449190612047565b6111d557604051633b79c77360e21b81526001600160a01b038216600482015260240161099d565b61073b8282600161194f565b6000611483826115f8565b6001600160a01b0394851694909150811684146114a9576114a962a1148160e81b6113a9565b60008281526006602052604090208054338082146001600160a01b038816909114176114ed576114d98633611131565b6114ed576114ed632ce44b5f60e11b6113a9565b80156114f857600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b8416900361158a576001840160008181526004602052604081205490036115885760005481146115885760008181526004602052604090208490555b505b6001600160a01b0385168481887fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4806000036115d4576115d4633a954ecd60e21b6113a9565b50505050505050565b61082083838360405180602001604052806000815250610f11565b6000818152600460205260408120549081900361166b57600054821061162857611628636f96cda160e11b6113a9565b5b5060001901600081815260046020526040902054801561162957600160e01b811660000361165657919050565b611666636f96cda160e11b6113a9565b611629565b600160e01b811660000361167e57919050565b6113a4636f96cda160e11b6113a9565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60008054908290036116fc576116fc63b562e8dd60e01b6113a9565b60008181526004602090815260408083206001600160a01b0387164260a01b6001881460e11b1781179091558084526005909252822080546801000000000000000186020190559081900361175a5761175a622e076360e81b6113a9565b818301825b808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a481816001019150810361175f575060005550505050565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611816848484610825565b6001600160a01b0383163b1561084a57611832848484846119f2565b61084a5761084a6368d2bf6b60e11b6113a9565b60608160000361186d5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611897578061188181612115565b91506118909050600a83611ed5565b9150611871565b60008167ffffffffffffffff8111156118b2576118b2611d33565b6040519080825280601f01601f1916602001820160405280156118dc576020820181803683370190505b5090505b8415611947576118f160018361212e565b91506118fe600a86612141565b611909906030612064565b60f81b81838151811061191e5761191e612155565b60200101906001600160f81b031916908160001a905350611940600a86611ed5565b94506118e0565b949350505050565b600061195a83610968565b90508180156119725750336001600160a01b03821614155b15611995576119818133611131565b611995576119956367d9dca160e11b6113a9565b60008381526006602052604080822080546001600160a01b0319166001600160a01b0388811691821790925591518693918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a450505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611a2790339089908890889060040161216b565b6020604051808303816000875af1925050508015611a62575060408051601f3d908101601f19168201909252611a5f918101906121a8565b60015b611ab7573d808015611a90576040519150601f19603f3d011682016040523d82523d6000602084013e611a95565b606091505b508051600003611aaf57611aaf6368d2bf6b60e11b6113a9565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6001600160e01b0319811681146111d557600080fd5b600060208284031215611afc57600080fd5b8135611b0781611ad4565b9392505050565b80356001600160a01b03811681146113a457600080fd5b60008060408385031215611b3857600080fd5b611b4183611b0e565b915060208301356001600160601b0381168114611b5d57600080fd5b809150509250929050565b60005b83811015611b83578181015183820152602001611b6b565b50506000910152565b60008151808452611ba4816020860160208601611b68565b601f01601f19169290920160200192915050565b602081526000611b076020830184611b8c565b600060208284031215611bdd57600080fd5b5035919050565b60008060408385031215611bf757600080fd5b611c0083611b0e565b946020939093013593505050565b600080600060608486031215611c2357600080fd5b611c2c84611b0e565b9250611c3a60208501611b0e565b9150604084013590509250925092565b60008060408385031215611c5d57600080fd5b50508035926020909101359150565b60008060208385031215611c7f57600080fd5b823567ffffffffffffffff80821115611c9757600080fd5b818501915085601f830112611cab57600080fd5b813581811115611cba57600080fd5b866020828501011115611ccc57600080fd5b60209290920196919550909350505050565b600060208284031215611cf057600080fd5b611b0782611b0e565b80151581146111d557600080fd5b60008060408385031215611d1a57600080fd5b611d2383611b0e565b91506020830135611b5d81611cf9565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215611d5f57600080fd5b611d6885611b0e565b9350611d7660208601611b0e565b925060408501359150606085013567ffffffffffffffff80821115611d9a57600080fd5b818701915087601f830112611dae57600080fd5b813581811115611dc057611dc0611d33565b604051601f8201601f19908116603f01168101908382118183101715611de857611de8611d33565b816040528281528a6020848701011115611e0157600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215611e3857600080fd5b611e4183611b0e565b9150611e4f60208401611b0e565b90509250929050565b600181811c90821680611e6c57607f821691505b602082108103611e8c57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761072357610723611e92565b634e487b7160e01b600052601260045260246000fd5b600082611ee457611ee4611ebf565b500490565b601f82111561082057600081815260208120601f850160051c81016020861015611f105750805b601f850160051c820191505b81811015611f2f57828155600101611f1c565b505050505050565b67ffffffffffffffff831115611f4f57611f4f611d33565b611f6383611f5d8354611e58565b83611ee9565b6000601f841160018114611f975760008515611f7f5750838201355b600019600387901b1c1916600186901b178355610f37565b600083815260209020601f19861690835b82811015611fc85786850135825560209485019460019092019101611fa8565b5086821015611fe55760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60006020828403121561204057600080fd5b5051919050565b60006020828403121561205957600080fd5b8151611b0781611cf9565b8082018082111561072357610723611e92565b600080845461208581611e58565b6001828116801561209d57600181146120b2576120e1565b60ff19841687528215158302870194506120e1565b8860005260208060002060005b858110156120d85781548a8201529084019082016120bf565b50505082870194505b5050505083516120f5818360208801611b68565b01949350505050565b60008161210d5761210d611e92565b506000190190565b60006001820161212757612127611e92565b5060010190565b8181038181111561072357610723611e92565b60008261215057612150611ebf565b500690565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061219e90830184611b8c565b9695505050505050565b6000602082840312156121ba57600080fd5b8151611b0781611ad456fea2646970667358221220e832f5cb1bb01a90836789236bb33b2c75facd894747f0673b2d53f879b5fe8d64736f6c63430008120033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000cae3faa4b6cf660aef18474074949ba0948bc0250000000000000000000000006579116367e0090d1ca6f5f712e172996e527e4c
-----Decoded View---------------
Arg [0] : _currency (address): 0xcae3fAA4B6cF660AEF18474074949BA0948bc025
Arg [1] : _royaltyReceiver (address): 0x6579116367e0090d1cA6F5F712e172996E527E4c
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000cae3faa4b6cf660aef18474074949ba0948bc025
Arg [1] : 0000000000000000000000006579116367e0090d1ca6f5f712e172996e527e4c
Deployed Bytecode Sourcemap
95972:5215:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;101012:172;;;;;;;;;;-1:-1:-1;101012:172:0;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;101012:172:0;;;;;;;;100547:144;;;;;;;;;;-1:-1:-1;100547:144:0;;;;;:::i;:::-;;:::i;:::-;;61530:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;68564:227::-;;;;;;;;;;-1:-1:-1;68564:227:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;2246:32:1;;;2228:51;;2216:2;2201:18;68564:227:0;2082:203:1;99541:165:0;;;;;;:::i;:::-;;:::i;57272:323::-;;;;;;;;;;-1:-1:-1;57546:12:0;;57333:7;57530:13;:28;57272:323;;;2695:25:1;;;2683:2;2668:18;57272:323:0;2549:177:1;99714:171:0;;;;;;:::i;:::-;;:::i;97486:86::-;;;;;;;;;;-1:-1:-1;97486:86:0;;;;;:::i;:::-;;:::i;39736:442::-;;;;;;;;;;-1:-1:-1;39736:442:0;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;3509:32:1;;;3491:51;;3573:2;3558:18;;3551:34;;;;3464:18;39736:442:0;3317:274:1;96069:29:0;;;;;;;;;;-1:-1:-1;96069:29:0;;;;-1:-1:-1;;;;;96069:29:0;;;16221:143;;;;;;;;;;;;8679:42;16221:143;;99893:179;;;;;;:::i;:::-;;:::i;96265:20::-;;;;;;;;;;-1:-1:-1;96265:20:0;;;;;;;;;;;97981:102;;;;;;;;;;-1:-1:-1;97981:102:0;;;;;:::i;:::-;;:::i;97771:84::-;;;;;;;;;;;;;:::i;62932:152::-;;;;;;;;;;-1:-1:-1;62932:152:0;;;;;:::i;:::-;;:::i;99008:122::-;;;;;;;;;;-1:-1:-1;99008:122:0;;;;;:::i;:::-;-1:-1:-1;;;;;99099:23:0;99072:7;99099:23;;;:13;:23;;;;;;;99008:122;98544:255;;;;;;;;;;;;;:::i;96322:21::-;;;;;;;;;;;;;:::i;97376:102::-;;;;;;;;;;-1:-1:-1;97376:102:0;;;;;:::i;:::-;;:::i;58456:242::-;;;;;;;;;;-1:-1:-1;58456:242:0;;;;;:::i;:::-;;:::i;34419:103::-;;;;;;;;;;;;;:::i;97674:89::-;;;;;;;;;;;;;:::i;96292:23::-;;;;;;;;;;;;;:::i;33771:87::-;;;;;;;;;;-1:-1:-1;33844:6:0;;-1:-1:-1;;;;;33844:6:0;33771:87;;97580:86;;;;;;;;;;-1:-1:-1;97580:86:0;;;;;:::i;:::-;;:::i;61706:104::-;;;;;;;;;;;;;:::i;96174:39::-;;;;;;;;;;;;;;;;96629:516;;;;;;;;;;-1:-1:-1;96629:516:0;;;;;:::i;:::-;;:::i;98807:193::-;;;;;;;;;;;;;:::i;99357:176::-;;;;;;;;;;-1:-1:-1;99357:176:0;;;;;:::i;:::-;;:::i;96143:24::-;;;;;;;;;;;;;;;;100699:91;;;;;;;;;;;;;:::i;100080:245::-;;;;;;:::i;:::-;;:::i;97863:110::-;;;;;;;;;;-1:-1:-1;97863:110:0;;;;;:::i;:::-;;:::i;98207:329::-;;;;;;;;;;-1:-1:-1;98207:329:0;;;;;:::i;:::-;;:::i;96235:23::-;;;;;;;;;;-1:-1:-1;96235:23:0;;;;;;;;96105:31;;;;;;;;;;;;;;;;97153:215;;;;;;;;;;-1:-1:-1;97153:215:0;;;;;:::i;:::-;;:::i;69522:164::-;;;;;;;;;;-1:-1:-1;69522:164:0;;;;;:::i;:::-;;:::i;34677:201::-;;;;;;;;;;-1:-1:-1;34677:201:0;;;;;:::i;:::-;;:::i;101012:172::-;101116:4;101140:36;101164:11;101140:23;:36::i;:::-;101133:43;101012:172;-1:-1:-1;;101012:172:0:o;100547:144::-;33657:13;:11;:13::i;:::-;100641:42:::1;100660:8;100670:12;100641:18;:42::i;:::-;100547:144:::0;;:::o;61530:100::-;61584:13;61617:5;61610:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;61530:100;:::o;68564:227::-;68640:7;68665:16;68673:7;68665;:16::i;:::-;68660:73;;68683:50;-1:-1:-1;;;68683:7:0;:50::i;:::-;-1:-1:-1;68753:24:0;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;68753:30:0;;68564:227::o;99541:165::-;99645:8;18003:30;18024:8;18003:20;:30::i;:::-;99666:32:::1;99680:8;99690:7;99666:13;:32::i;:::-;99541:165:::0;;;:::o;99714:171::-;99823:4;-1:-1:-1;;;;;17729:18:0;;17737:10;17729:18;17725:83;;17764:32;17785:10;17764:20;:32::i;:::-;99840:37:::1;99859:4;99865:2;99869:7;99840:18;:37::i;:::-;99714:171:::0;;;;:::o;97486:86::-;33657:13;:11;:13::i;:::-;97550:5:::1;:14:::0;97486:86::o;39736:442::-;39833:7;39891:27;;;:17;:27;;;;;;;;39862:56;;;;;;;;;-1:-1:-1;;;;;39862:56:0;;;;;-1:-1:-1;;;39862:56:0;;;-1:-1:-1;;;;;39862:56:0;;;;;;;;39833:7;;39931:92;;-1:-1:-1;39982:29:0;;;;;;;;;39992:19;39982:29;-1:-1:-1;;;;;39982:29:0;;;;-1:-1:-1;;;39982:29:0;;-1:-1:-1;;;;;39982:29:0;;;;;39931:92;40073:23;;;;40035:21;;40544:5;;40060:36;;-1:-1:-1;;;;;40060:36:0;:10;:36;:::i;:::-;40059:58;;;;:::i;:::-;40138:16;;;;;-1:-1:-1;39736:442:0;;-1:-1:-1;;;;39736:442:0:o;99893:179::-;100006:4;-1:-1:-1;;;;;17729:18:0;;17737:10;17729:18;17725:83;;17764:32;17785:10;17764:20;:32::i;:::-;100023:41:::1;100046:4;100052:2;100056:7;100023:22;:41::i;97981:102::-:0;33657:13;:11;:13::i;:::-;98057:7:::1;:18;98067:8:::0;;98057:7;:18:::1;:::i;97771:84::-:0;33657:13;:11;:13::i;:::-;97839:8:::1;::::0;;-1:-1:-1;;97827:20:0;::::1;97839:8;::::0;;;::::1;;;97838:9;97827:20:::0;;::::1;;::::0;;97771:84::o;62932:152::-;63004:7;63047:27;63066:7;63047:18;:27::i;98544:255::-;33657:13;:11;:13::i;:::-;7600:1:::1;8198:7;;:19:::0;8190:63:::1;;;;-1:-1:-1::0;;;8190:63:0::1;;;;;;;:::i;:::-;;;;;;;;;7600:1;8331:7;:18:::0;98633:15:::2;::::0;:40:::2;::::0;-1:-1:-1;;;98633:40:0;;98667:4:::2;98633:40;::::0;::::2;2228:51:1::0;98615:15:0::2;::::0;-1:-1:-1;;;;;98633:15:0::2;::::0;:25:::2;::::0;2201:18:1;;98633:40:0::2;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;98615:58;;98702:1;98692:7;:11;98684:54;;;::::0;-1:-1:-1;;;98684:54:0;;10584:2:1;98684:54:0::2;::::0;::::2;10566:21:1::0;10623:2;10603:18;;;10596:30;10662:32;10642:18;;;10635:60;10712:18;;98684:54:0::2;10382:354:1::0;98684:54:0::2;98749:15;::::0;-1:-1:-1;;;;;98749:15:0::2;:24;98774:7;33844:6:::0;;-1:-1:-1;;;;;33844:6:0;;33771:87;98774:7:::2;98749:42;::::0;-1:-1:-1;;;;;;98749:42:0::2;::::0;;;;;;-1:-1:-1;;;;;3509:32:1;;;98749:42:0::2;::::0;::::2;3491:51:1::0;3558:18;;;3551:34;;;3464:18;;98749:42:0::2;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;;7556:1:0::1;8510:7;:22:::0;98544:255::o;96322:21::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;97376:102::-;33657:13;:11;:13::i;:::-;97448:9:::1;:22:::0;97376:102::o;58456:242::-;58528:7;-1:-1:-1;;;;;58552:19:0;;58548:69;;58573:44;-1:-1:-1;;;58573:7:0;:44::i;:::-;-1:-1:-1;;;;;;58635:25:0;;;;;:18;:25;;;;;;52615:13;58635:55;;58456:242::o;34419:103::-;33657:13;:11;:13::i;:::-;34484:30:::1;34511:1;34484:18;:30::i;:::-;34419:103::o:0;97674:89::-;33657:13;:11;:13::i;:::-;97744:11:::1;::::0;;-1:-1:-1;;97729:26:0;::::1;97744:11;::::0;;::::1;97743:12;97729:26;::::0;;97674:89::o;96292:23::-;;;;;;;:::i;97580:86::-;33657:13;:11;:13::i;:::-;97644:5:::1;:14:::0;97580:86::o;61706:104::-;61762:13;61795:7;61788:14;;;;;:::i;96629:516::-;7600:1;8198:7;;:19;8190:63;;;;-1:-1:-1;;;8190:63:0;;;;;;;:::i;:::-;7600:1;8331:7;:18;96734:5:::1;::::0;96700:14:::1;::::0;96717:22:::1;::::0;:14;:22:::1;:::i;:::-;96758:11;::::0;96700:39;;-1:-1:-1;96758:11:0::1;;96750:37;;;::::0;-1:-1:-1;;;96750:37:0;;11193:2:1;96750:37:0::1;::::0;::::1;11175:21:1::0;11232:2;11212:18;;;11205:30;-1:-1:-1;;;11251:18:1;;;11244:43;11304:18;;96750:37:0::1;10991:337:1::0;96750:37:0::1;96840:9;;96822:14;96806:13;57546:12:::0;;57333:7;57530:13;:28;;57272:323;96806:13:::1;:30;;;;:::i;:::-;:43;;96798:71;;;::::0;-1:-1:-1;;;96798:71:0;;11665:2:1;96798:71:0::1;::::0;::::1;11647:21:1::0;11704:2;11684:18;;;11677:30;-1:-1:-1;;;11723:18:1;;;11716:45;11778:18;;96798:71:0::1;11463:339:1::0;96798:71:0::1;96934:5;::::0;96902:10:::1;96888:25;::::0;;;:13:::1;:25;::::0;;;;;:42:::1;::::0;96916:14;;96888:42:::1;:::i;:::-;:51;;96880:83;;;::::0;-1:-1:-1;;;96880:83:0;;12009:2:1;96880:83:0::1;::::0;::::1;11991:21:1::0;12048:2;12028:18;;;12021:30;-1:-1:-1;;;12067:18:1;;;12060:49;12126:18;;96880:83:0::1;11807:343:1::0;96880:83:0::1;96976:15;::::0;:63:::1;::::0;-1:-1:-1;;;96976:63:0;;97005:10:::1;96976:63;::::0;::::1;12395:34:1::0;97025:4:0::1;12445:18:1::0;;;12438:43;12497:18;;;12490:34;;;-1:-1:-1;;;;;96976:15:0;;::::1;::::0;:28:::1;::::0;12330:18:1;;96976:63:0::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;97064:10:0::1;97050:25;::::0;;;:13:::1;:25;::::0;;;;:43;;97079:14;;97050:25;:43:::1;::::0;97079:14;;97050:43:::1;:::i;:::-;::::0;;;-1:-1:-1;97104:33:0::1;::::0;-1:-1:-1;97110:10:0::1;97122:14:::0;97104:5:::1;:33::i;98807:193::-:0;33657:13;:11;:13::i;:::-;7600:1:::1;8198:7;;:19:::0;8190:63:::1;;;;-1:-1:-1::0;;;8190:63:0::1;;;;;;;:::i;:::-;7600:1;8331:7;:18:::0;98892:49:::2;::::0;98874:12:::2;::::0;98892:10:::2;::::0;98915:21:::2;::::0;98874:12;98892:49;98874:12;98892:49;98915:21;98892:10;:49:::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;98873:68;;;98960:7;98952:40;;;::::0;-1:-1:-1;;;98952:40:0;;12947:2:1;98952:40:0::2;::::0;::::2;12929:21:1::0;12986:2;12966:18;;;12959:30;-1:-1:-1;;;13005:18:1;;;12998:50;13065:18;;98952:40:0::2;12745:344:1::0;98952:40:0::2;-1:-1:-1::0;7556:1:0::1;8510:7;:22:::0;98807:193::o;99357:176::-;99461:8;18003:30;18024:8;18003:20;:30::i;:::-;99482:43:::1;99506:8;99516;99482:23;:43::i;100699:91::-:0;33657:13;:11;:13::i;:::-;100759:23:::1;41304:19:::0;;41297:26;41236:95;100080:245;100248:4;-1:-1:-1;;;;;17729:18:0;;17737:10;17729:18;17725:83;;17764:32;17785:10;17764:20;:32::i;:::-;100270:47:::1;100293:4;100299:2;100303:7;100312:4;100270:22;:47::i;:::-;100080:245:::0;;;;;:::o;97863:110::-;33657:13;:11;:13::i;:::-;97943:9:::1;:22;97955:10:::0;;97943:9;:22:::1;:::i;98207:329::-:0;98272:13;98306:16;98314:7;98306;:16::i;:::-;98298:47;;;;-1:-1:-1;;;98298:47:0;;13296:2:1;98298:47:0;;;13278:21:1;13335:2;13315:18;;;13308:30;-1:-1:-1;;;13354:18:1;;;13347:48;13412:18;;98298:47:0;13094:342:1;98298:47:0;98362:8;;;;;;;98358:142;;;98400:7;98394:21;;;;;:::i;:::-;;;98419:1;98394:26;:94;;;;;;;;;;;;;;;;;98447:7;98456:25;98473:7;98456:16;:25::i;:::-;98430:52;;;;;;;;;:::i;:::-;;;;;;;;;;;;;98387:101;98207:329;-1:-1:-1;;98207:329:0:o;98358:142::-;98519:9;98512:16;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;98207:329;;;:::o;97153:215::-;33657:13;:11;:13::i;:::-;7600:1:::1;8198:7;;:19:::0;8190:63:::1;;;;-1:-1:-1::0;;;8190:63:0::1;;;;;;;:::i;:::-;7600:1;8331:7;:18:::0;97293:9:::2;::::0;97275:14;97259:13:::2;57546:12:::0;;57333:7;57530:13;:28;;57272:323;97259:13:::2;:30;;;;:::i;:::-;:43;;97251:71;;;::::0;-1:-1:-1;;;97251:71:0;;11665:2:1;97251:71:0::2;::::0;::::2;11647:21:1::0;11704:2;11684:18;;;11677:30;-1:-1:-1;;;11723:18:1;;;11716:45;11778:18;;97251:71:0::2;11463:339:1::0;97251:71:0::2;97335:25;97341:2;97345:14;97335:5;:25::i;69522:164::-:0;-1:-1:-1;;;;;69643:25:0;;;69619:4;69643:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;69522:164::o;34677:201::-;33657:13;:11;:13::i;:::-;-1:-1:-1;;;;;34766:22:0;::::1;34758:73;;;::::0;-1:-1:-1;;;34758:73:0;;14668:2:1;34758:73:0::1;::::0;::::1;14650:21:1::0;14707:2;14687:18;;;14680:30;14746:34;14726:18;;;14719:62;-1:-1:-1;;;14797:18:1;;;14790:36;14843:19;;34758:73:0::1;14466:402:1::0;34758:73:0::1;34842:28;34861:8;34842:18;:28::i;:::-;34677:201:::0;:::o;39466:215::-;39568:4;-1:-1:-1;;;;;;39592:41:0;;-1:-1:-1;;;39592:41:0;;:81;;-1:-1:-1;;;;;;;;;;37127:40:0;;;39637:36;37018:157;33936:132;33844:6;;-1:-1:-1;;;;;33844:6:0;20310:10;34000:23;33992:68;;;;-1:-1:-1;;;33992:68:0;;15075:2:1;33992:68:0;;;15057:21:1;;;15094:18;;;15087:30;15153:34;15133:18;;;15126:62;15205:18;;33992:68:0;14873:356:1;40828:332:0;40544:5;-1:-1:-1;;;;;40931:33:0;;;;40923:88;;;;-1:-1:-1;;;40923:88:0;;15436:2:1;40923:88:0;;;15418:21:1;15475:2;15455:18;;;15448:30;15514:34;15494:18;;;15487:62;-1:-1:-1;;;15565:18:1;;;15558:40;15615:19;;40923:88:0;15234:406:1;40923:88:0;-1:-1:-1;;;;;41030:22:0;;41022:60;;;;-1:-1:-1;;;41022:60:0;;15847:2:1;41022:60:0;;;15829:21:1;15886:2;15866:18;;;15859:30;15925:27;15905:18;;;15898:55;15970:18;;41022:60:0;15645:349:1;41022:60:0;41117:35;;;;;;;;;-1:-1:-1;;;;;41117:35:0;;;;;;-1:-1:-1;;;;;41117:35:0;;;;;;;;;;-1:-1:-1;;;41095:57:0;;;;:19;:57;40828:332::o;69944:368::-;70009:11;70094:13;;70084:7;:23;70080:214;;;70128:14;70161:60;-1:-1:-1;70178:26:0;;;;:17;:26;;;;;;;70168:42;;;70161:60;;70212:9;;;:::i;:::-;;;70161:60;;;-1:-1:-1;;;70249:24:0;:29;;-1:-1:-1;70080:214:0;69944:368;;;:::o;95722:165::-;95823:13;95817:4;95810:27;95864:4;95858;95851:18;18146:647;8679:42;18337:45;:49;18333:453;;18636:67;;-1:-1:-1;;;18636:67:0;;18687:4;18636:67;;;16352:34:1;-1:-1:-1;;;;;16422:15:1;;16402:18;;;16395:43;8679:42:0;;18636;;16287:18:1;;18636:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;18631:144;;18731:28;;-1:-1:-1;;;18731:28:0;;-1:-1:-1;;;;;2246:32:1;;18731:28:0;;;2228:51:1;2201:18;;18731:28:0;2082:203:1;68281:124:0;68370:27;68379:2;68383:7;68392:4;68370:8;:27::i;72298:3523::-;72440:27;72470;72489:7;72470:18;:27::i;:::-;-1:-1:-1;;;;;72625:22:0;;;;72440:57;;-1:-1:-1;72685:45:0;;;;72681:95;;72732:44;-1:-1:-1;;;72732:7:0;:44::i;:::-;72790:27;71406:24;;;:15;:24;;;;;71634:26;;20310:10;71031:30;;;-1:-1:-1;;;;;70724:28:0;;71009:20;;;71006:56;72976:189;;73069:43;73086:4;20310:10;69522:164;:::i;73069:43::-;73064:101;;73114:51;-1:-1:-1;;;73114:7:0;:51::i;:::-;73314:15;73311:160;;;73454:1;73433:19;73426:30;73311:160;-1:-1:-1;;;;;73851:24:0;;;;;;;:18;:24;;;;;;73849:26;;-1:-1:-1;;73849:26:0;;;73920:22;;;;;;;;;73918:24;;-1:-1:-1;73918:24:0;;;67383:11;67358:23;67354:41;67341:63;-1:-1:-1;;;67341:63:0;74213:26;;;;:17;:26;;;;;:175;;;;-1:-1:-1;;;74508:47:0;;:52;;74504:627;;74613:1;74603:11;;74581:19;74736:30;;;:17;:30;;;;;;:35;;74732:384;;74874:13;;74859:11;:28;74855:242;;75021:30;;;;:17;:30;;;;;:52;;;74855:242;74562:569;74504:627;-1:-1:-1;;;;;75263:20:0;;75643:7;75263:20;75573:4;75515:25;75244:16;;75380:299;75704:8;75716:1;75704:13;75700:58;;75719:39;-1:-1:-1;;;75719:7:0;:39::i;:::-;72429:3392;;;;72298:3523;;;:::o;75917:193::-;76063:39;76080:4;76086:2;76090:7;76063:39;;;;;;;;;;;;:16;:39::i;64412:2012::-;64562:26;;;;:17;:26;;;;;;;64688:11;;;64684:1292;;64735:13;;64724:7;:24;64720:77;;64750:47;-1:-1:-1;;;64750:7:0;:47::i;:::-;65354:607;-1:-1:-1;;;65450:9:0;65432:28;;;;:17;:28;;;;;;65506:25;;65354:607;65506:25;-1:-1:-1;;;65558:6:0;:24;65586:1;65558:29;65554:48;;64412:2012;;;:::o;65554:48::-;65894:47;-1:-1:-1;;;65894:7:0;:47::i;:::-;65354:607;;64684:1292;-1:-1:-1;;;66303:6:0;:24;66331:1;66303:29;66299:48;;64412:2012;;;:::o;66299:48::-;66369:47;-1:-1:-1;;;66369:7:0;:47::i;35038:191::-;35131:6;;;-1:-1:-1;;;;;35148:17:0;;;-1:-1:-1;;;;;;35148:17:0;;;;;;;35181:40;;35131:6;;;35148:17;35131:6;;35181:40;;35112:16;;35181:40;35101:128;35038:191;:::o;80361:2305::-;80434:20;80457:13;;;80485;;;80481:53;;80500:34;-1:-1:-1;;;80500:7:0;:34::i;:::-;81047:31;;;;:17;:31;;;;;;;;-1:-1:-1;;;;;67209:28:0;;67383:11;67358:23;67354:41;67827:1;67814:15;;67788:24;67784:46;67351:52;67341:63;;81047:173;;;81438:22;;;:18;:22;;;;;:71;;81476:32;81464:45;;81438:71;;;67209:28;81699:13;;;81695:54;;81714:35;-1:-1:-1;;;81714:7:0;:35::i;:::-;81780:23;;;:12;81865:676;82284:7;82240:8;82195:1;82129:25;82066:1;82001;81970:358;82536:3;82523:9;;;;;;:16;81865:676;;-1:-1:-1;82557:13:0;:19;-1:-1:-1;99541:165:0;;;:::o;69131:234::-;20310:10;69226:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;69226:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;69226:60:0;;;;;;;;;;69302:55;;540:41:1;;;69226:49:0;;20310:10;69302:55;;513:18:1;69302:55:0;;;;;;;69131:234;;:::o;76708:416::-;76883:31;76896:4;76902:2;76906:7;76883:12;:31::i;:::-;-1:-1:-1;;;;;76929:14:0;;;:19;76925:192;;76968:56;76999:4;77005:2;77009:7;77018:5;76968:30;:56::i;:::-;76963:154;;77045:56;-1:-1:-1;;;77045:7:0;:56::i;398:723::-;454:13;675:5;684:1;675:10;671:53;;-1:-1:-1;;702:10:0;;;;;;;;;;;;-1:-1:-1;;;702:10:0;;;;;398:723::o;671:53::-;749:5;734:12;790:78;797:9;;790:78;;823:8;;;;:::i;:::-;;-1:-1:-1;846:10:0;;-1:-1:-1;854:2:0;846:10;;:::i;:::-;;;790:78;;;878:19;910:6;900:17;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;900:17:0;;878:39;;928:154;935:10;;928:154;;962:11;972:1;962:11;;:::i;:::-;;-1:-1:-1;1031:10:0;1039:2;1031:5;:10;:::i;:::-;1018:24;;:2;:24;:::i;:::-;1005:39;;988:6;995;988:14;;;;;;;;:::i;:::-;;;;:56;-1:-1:-1;;;;;988:56:0;;;;;;;;-1:-1:-1;1059:11:0;1068:2;1059:11;;:::i;:::-;;;928:154;;;1106:6;398:723;-1:-1:-1;;;;398:723:0:o;87155:474::-;87284:13;87300:16;87308:7;87300;:16::i;:::-;87284:32;;87333:13;:45;;;;-1:-1:-1;20310:10:0;-1:-1:-1;;;;;87350:28:0;;;;87333:45;87329:201;;;87398:44;87415:5;20310:10;69522:164;:::i;87398:44::-;87393:137;;87463:51;-1:-1:-1;;;87463:7:0;:51::i;:::-;87542:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;87542:35:0;-1:-1:-1;;;;;87542:35:0;;;;;;;;;87593:28;;87542:24;;87593:28;;;;;;;87273:356;87155:474;;;:::o;79208:691::-;79392:88;;-1:-1:-1;;;79392:88:0;;79371:4;;-1:-1:-1;;;;;79392:45:0;;;;;:88;;20310:10;;79459:4;;79465:7;;79474:5;;79392:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;79392:88:0;;;;;;;;-1:-1:-1;;79392:88:0;;;;;;;;;;;;:::i;:::-;;;79388:504;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;79675:6;:13;79692:1;79675:18;79671:115;;79714:56;-1:-1:-1;;;79714:7:0;:56::i;:::-;79858:6;79852:13;79843:6;79839:2;79835:15;79828:38;79388:504;-1:-1:-1;;;;;;79551:64:0;-1:-1:-1;;;79551:64:0;;-1:-1:-1;79208:691:0;;;;;;:::o;14:131:1:-;-1:-1:-1;;;;;;88:32:1;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;:::-;384:5;150:245;-1:-1:-1;;;150:245:1:o;592:173::-;660:20;;-1:-1:-1;;;;;709:31:1;;699:42;;689:70;;755:1;752;745:12;770:366;837:6;845;898:2;886:9;877:7;873:23;869:32;866:52;;;914:1;911;904:12;866:52;937:29;956:9;937:29;:::i;:::-;927:39;;1016:2;1005:9;1001:18;988:32;-1:-1:-1;;;;;1053:5:1;1049:38;1042:5;1039:49;1029:77;;1102:1;1099;1092:12;1029:77;1125:5;1115:15;;;770:366;;;;;:::o;1141:250::-;1226:1;1236:113;1250:6;1247:1;1244:13;1236:113;;;1326:11;;;1320:18;1307:11;;;1300:39;1272:2;1265:10;1236:113;;;-1:-1:-1;;1383:1:1;1365:16;;1358:27;1141:250::o;1396:271::-;1438:3;1476:5;1470:12;1503:6;1498:3;1491:19;1519:76;1588:6;1581:4;1576:3;1572:14;1565:4;1558:5;1554:16;1519:76;:::i;:::-;1649:2;1628:15;-1:-1:-1;;1624:29:1;1615:39;;;;1656:4;1611:50;;1396:271;-1:-1:-1;;1396:271:1:o;1672:220::-;1821:2;1810:9;1803:21;1784:4;1841:45;1882:2;1871:9;1867:18;1859:6;1841:45;:::i;1897:180::-;1956:6;2009:2;1997:9;1988:7;1984:23;1980:32;1977:52;;;2025:1;2022;2015:12;1977:52;-1:-1:-1;2048:23:1;;1897:180;-1:-1:-1;1897:180:1:o;2290:254::-;2358:6;2366;2419:2;2407:9;2398:7;2394:23;2390:32;2387:52;;;2435:1;2432;2425:12;2387:52;2458:29;2477:9;2458:29;:::i;:::-;2448:39;2534:2;2519:18;;;;2506:32;;-1:-1:-1;;;2290:254:1:o;2731:328::-;2808:6;2816;2824;2877:2;2865:9;2856:7;2852:23;2848:32;2845:52;;;2893:1;2890;2883:12;2845:52;2916:29;2935:9;2916:29;:::i;:::-;2906:39;;2964:38;2998:2;2987:9;2983:18;2964:38;:::i;:::-;2954:48;;3049:2;3038:9;3034:18;3021:32;3011:42;;2731:328;;;;;:::o;3064:248::-;3132:6;3140;3193:2;3181:9;3172:7;3168:23;3164:32;3161:52;;;3209:1;3206;3199:12;3161:52;-1:-1:-1;;3232:23:1;;;3302:2;3287:18;;;3274:32;;-1:-1:-1;3064:248:1:o;4057:592::-;4128:6;4136;4189:2;4177:9;4168:7;4164:23;4160:32;4157:52;;;4205:1;4202;4195:12;4157:52;4245:9;4232:23;4274:18;4315:2;4307:6;4304:14;4301:34;;;4331:1;4328;4321:12;4301:34;4369:6;4358:9;4354:22;4344:32;;4414:7;4407:4;4403:2;4399:13;4395:27;4385:55;;4436:1;4433;4426:12;4385:55;4476:2;4463:16;4502:2;4494:6;4491:14;4488:34;;;4518:1;4515;4508:12;4488:34;4563:7;4558:2;4549:6;4545:2;4541:15;4537:24;4534:37;4531:57;;;4584:1;4581;4574:12;4531:57;4615:2;4607:11;;;;;4637:6;;-1:-1:-1;4057:592:1;;-1:-1:-1;;;;4057:592:1:o;4654:186::-;4713:6;4766:2;4754:9;4745:7;4741:23;4737:32;4734:52;;;4782:1;4779;4772:12;4734:52;4805:29;4824:9;4805:29;:::i;4845:118::-;4931:5;4924:13;4917:21;4910:5;4907:32;4897:60;;4953:1;4950;4943:12;4968:315;5033:6;5041;5094:2;5082:9;5073:7;5069:23;5065:32;5062:52;;;5110:1;5107;5100:12;5062:52;5133:29;5152:9;5133:29;:::i;:::-;5123:39;;5212:2;5201:9;5197:18;5184:32;5225:28;5247:5;5225:28;:::i;5288:127::-;5349:10;5344:3;5340:20;5337:1;5330:31;5380:4;5377:1;5370:15;5404:4;5401:1;5394:15;5420:1138;5515:6;5523;5531;5539;5592:3;5580:9;5571:7;5567:23;5563:33;5560:53;;;5609:1;5606;5599:12;5560:53;5632:29;5651:9;5632:29;:::i;:::-;5622:39;;5680:38;5714:2;5703:9;5699:18;5680:38;:::i;:::-;5670:48;;5765:2;5754:9;5750:18;5737:32;5727:42;;5820:2;5809:9;5805:18;5792:32;5843:18;5884:2;5876:6;5873:14;5870:34;;;5900:1;5897;5890:12;5870:34;5938:6;5927:9;5923:22;5913:32;;5983:7;5976:4;5972:2;5968:13;5964:27;5954:55;;6005:1;6002;5995:12;5954:55;6041:2;6028:16;6063:2;6059;6056:10;6053:36;;;6069:18;;:::i;:::-;6144:2;6138:9;6112:2;6198:13;;-1:-1:-1;;6194:22:1;;;6218:2;6190:31;6186:40;6174:53;;;6242:18;;;6262:22;;;6239:46;6236:72;;;6288:18;;:::i;:::-;6328:10;6324:2;6317:22;6363:2;6355:6;6348:18;6403:7;6398:2;6393;6389;6385:11;6381:20;6378:33;6375:53;;;6424:1;6421;6414:12;6375:53;6480:2;6475;6471;6467:11;6462:2;6454:6;6450:15;6437:46;6525:1;6520:2;6515;6507:6;6503:15;6499:24;6492:35;6546:6;6536:16;;;;;;;5420:1138;;;;;;;:::o;6563:260::-;6631:6;6639;6692:2;6680:9;6671:7;6667:23;6663:32;6660:52;;;6708:1;6705;6698:12;6660:52;6731:29;6750:9;6731:29;:::i;:::-;6721:39;;6779:38;6813:2;6802:9;6798:18;6779:38;:::i;:::-;6769:48;;6563:260;;;;;:::o;6828:380::-;6907:1;6903:12;;;;6950;;;6971:61;;7025:4;7017:6;7013:17;7003:27;;6971:61;7078:2;7070:6;7067:14;7047:18;7044:38;7041:161;;7124:10;7119:3;7115:20;7112:1;7105:31;7159:4;7156:1;7149:15;7187:4;7184:1;7177:15;7041:161;;6828:380;;;:::o;7213:127::-;7274:10;7269:3;7265:20;7262:1;7255:31;7305:4;7302:1;7295:15;7329:4;7326:1;7319:15;7345:168;7418:9;;;7449;;7466:15;;;7460:22;;7446:37;7436:71;;7487:18;;:::i;7518:127::-;7579:10;7574:3;7570:20;7567:1;7560:31;7610:4;7607:1;7600:15;7634:4;7631:1;7624:15;7650:120;7690:1;7716;7706:35;;7721:18;;:::i;:::-;-1:-1:-1;7755:9:1;;7650:120::o;7901:545::-;8003:2;7998:3;7995:11;7992:448;;;8039:1;8064:5;8060:2;8053:17;8109:4;8105:2;8095:19;8179:2;8167:10;8163:19;8160:1;8156:27;8150:4;8146:38;8215:4;8203:10;8200:20;8197:47;;;-1:-1:-1;8238:4:1;8197:47;8293:2;8288:3;8284:12;8281:1;8277:20;8271:4;8267:31;8257:41;;8348:82;8366:2;8359:5;8356:13;8348:82;;;8411:17;;;8392:1;8381:13;8348:82;;;8352:3;;;7901:545;;;:::o;8622:1206::-;8746:18;8741:3;8738:27;8735:53;;;8768:18;;:::i;:::-;8797:94;8887:3;8847:38;8879:4;8873:11;8847:38;:::i;:::-;8841:4;8797:94;:::i;:::-;8917:1;8942:2;8937:3;8934:11;8959:1;8954:616;;;;9614:1;9631:3;9628:93;;;-1:-1:-1;9687:19:1;;;9674:33;9628:93;-1:-1:-1;;8579:1:1;8575:11;;;8571:24;8567:29;8557:40;8603:1;8599:11;;;8554:57;9734:78;;8927:895;;8954:616;7848:1;7841:14;;;7885:4;7872:18;;-1:-1:-1;;8990:17:1;;;9091:9;9113:229;9127:7;9124:1;9121:14;9113:229;;;9216:19;;;9203:33;9188:49;;9323:4;9308:20;;;;9276:1;9264:14;;;;9143:12;9113:229;;;9117:3;9370;9361:7;9358:16;9355:159;;;9494:1;9490:6;9484:3;9478;9475:1;9471:11;9467:21;9463:34;9459:39;9446:9;9441:3;9437:19;9424:33;9420:79;9412:6;9405:95;9355:159;;;9557:1;9551:3;9548:1;9544:11;9540:19;9534:4;9527:33;8927:895;;8622:1206;;;:::o;9833:355::-;10035:2;10017:21;;;10074:2;10054:18;;;10047:30;10113:33;10108:2;10093:18;;10086:61;10179:2;10164:18;;9833:355::o;10193:184::-;10263:6;10316:2;10304:9;10295:7;10291:23;10287:32;10284:52;;;10332:1;10329;10322:12;10284:52;-1:-1:-1;10355:16:1;;10193:184;-1:-1:-1;10193:184:1:o;10741:245::-;10808:6;10861:2;10849:9;10840:7;10836:23;10832:32;10829:52;;;10877:1;10874;10867:12;10829:52;10909:9;10903:16;10928:28;10950:5;10928:28;:::i;11333:125::-;11398:9;;;11419:10;;;11416:36;;;11432:18;;:::i;13441:1020::-;13617:3;13646:1;13679:6;13673:13;13709:36;13735:9;13709:36;:::i;:::-;13764:1;13781:18;;;13808:133;;;;13955:1;13950:356;;;;13774:532;;13808:133;-1:-1:-1;;13841:24:1;;13829:37;;13914:14;;13907:22;13895:35;;13886:45;;;-1:-1:-1;13808:133:1;;13950:356;13981:6;13978:1;13971:17;14011:4;14056:2;14053:1;14043:16;14081:1;14095:165;14109:6;14106:1;14103:13;14095:165;;;14187:14;;14174:11;;;14167:35;14230:16;;;;14124:10;;14095:165;;;14099:3;;;14289:6;14284:3;14280:16;14273:23;;13774:532;;;;;14337:6;14331:13;14353:68;14412:8;14407:3;14400:4;14392:6;14388:17;14353:68;:::i;:::-;14437:18;;13441:1020;-1:-1:-1;;;;13441:1020:1:o;15999:136::-;16038:3;16066:5;16056:39;;16075:18;;:::i;:::-;-1:-1:-1;;;16111:18:1;;15999:136::o;16449:135::-;16488:3;16509:17;;;16506:43;;16529:18;;:::i;:::-;-1:-1:-1;16576:1:1;16565:13;;16449:135::o;16589:128::-;16656:9;;;16677:11;;;16674:37;;;16691:18;;:::i;16722:112::-;16754:1;16780;16770:35;;16785:18;;:::i;:::-;-1:-1:-1;16819:9:1;;16722:112::o;16839:127::-;16900:10;16895:3;16891:20;16888:1;16881:31;16931:4;16928:1;16921:15;16955:4;16952:1;16945:15;16971:489;-1:-1:-1;;;;;17240:15:1;;;17222:34;;17292:15;;17287:2;17272:18;;17265:43;17339:2;17324:18;;17317:34;;;17387:3;17382:2;17367:18;;17360:31;;;17165:4;;17408:46;;17434:19;;17426:6;17408:46;:::i;:::-;17400:54;16971:489;-1:-1:-1;;;;;;16971:489:1:o;17465:249::-;17534:6;17587:2;17575:9;17566:7;17562:23;17558:32;17555:52;;;17603:1;17600;17593:12;17555:52;17635:9;17629:16;17654:30;17678:5;17654:30;:::i
Swarm Source
ipfs://e832f5cb1bb01a90836789236bb33b2c75facd894747f0673b2d53f879b5fe8d
Loading...
Loading
Loading...
Loading
[ 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.