Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 1 from a total of 1 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Transfer Ownersh... | 16420595 | 1139 days ago | IN | 0 ETH | 0.00064037 |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
EMON
Compiler Version
v0.8.14+commit.80d49f37
Contract Source Code (Solidity)
/**
*Submitted for verification at Etherscan.io on 2023-01-16
*/
// Sources flattened with hardhat v2.11.2 https://hardhat.org
// SPDX-License-Identifier: MIT
// File @openzeppelin/contracts/utils/Strings.sol@v4.7.3
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)
pragma solidity ^0.8.0;
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
uint8 private constant _ADDRESS_LENGTH = 20;
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
// Inspired by OraclizeAPI's implementation - MIT licence
// https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol
if (value == 0) {
return "0";
}
uint256 temp = value;
uint256 digits;
while (temp != 0) {
digits++;
temp /= 10;
}
bytes memory buffer = new bytes(digits);
while (value != 0) {
digits -= 1;
buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
value /= 10;
}
return string(buffer);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
*/
function toHexString(uint256 value) internal pure returns (string memory) {
if (value == 0) {
return "0x00";
}
uint256 temp = value;
uint256 length = 0;
while (temp != 0) {
length++;
temp >>= 8;
}
return toHexString(value, length);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
*/
function toHexString(
uint256 value,
uint256 length
) internal pure returns (string memory) {
bytes memory buffer = new bytes(2 * length + 2);
buffer[0] = "0";
buffer[1] = "x";
for (uint256 i = 2 * length + 1; i > 1; --i) {
buffer[i] = _HEX_SYMBOLS[value & 0xf];
value >>= 4;
}
require(value == 0, "Strings: hex length insufficient");
return string(buffer);
}
/**
* @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
*/
function toHexString(address addr) internal pure returns (string memory) {
return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
}
}
// File @openzeppelin/contracts/utils/Context.sol@v4.7.3
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
// File @openzeppelin/contracts/access/Ownable.sol@v4.7.3
// 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@v4.7.3
// 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/interfaces/IERC2981.sol@v4.7.3
// 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/utils/introspection/ERC165.sol@v4.7.3
// 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/token/common/ERC2981.sol@v4.7.3
// 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 erc721a/contracts/IERC721A.sol@v4.2.3
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs
pragma solidity ^0.8.4;
/**
* @dev Interface of ERC721A.
*/
interface IERC721A {
/**
* The caller must own the token or be an approved operator.
*/
error ApprovalCallerNotOwnerNorApproved();
/**
* The token does not exist.
*/
error ApprovalQueryForNonexistentToken();
/**
* Cannot query the balance for the zero address.
*/
error BalanceQueryForZeroAddress();
/**
* Cannot mint to the zero address.
*/
error MintToZeroAddress();
/**
* The quantity of tokens minted must be more than zero.
*/
error MintZeroQuantity();
/**
* The token does not exist.
*/
error OwnerQueryForNonexistentToken();
/**
* The caller must own the token or be an approved operator.
*/
error TransferCallerNotOwnerNorApproved();
/**
* The token must be owned by `from`.
*/
error TransferFromIncorrectOwner();
/**
* Cannot safely transfer to a contract that does not implement the
* ERC721Receiver interface.
*/
error TransferToNonERC721ReceiverImplementer();
/**
* Cannot transfer to the zero address.
*/
error TransferToZeroAddress();
/**
* The token does not exist.
*/
error URIQueryForNonexistentToken();
/**
* The `quantity` minted with ERC2309 exceeds the safety limit.
*/
error MintERC2309QuantityExceedsLimit();
/**
* The `extraData` cannot be set on an unintialized ownership slot.
*/
error OwnershipNotInitializedForExtraData();
// =============================================================
// STRUCTS
// =============================================================
struct TokenOwnership {
// The address of the owner.
address addr;
// Stores the start time of ownership with minimal overhead for tokenomics.
uint64 startTimestamp;
// Whether the token has been burned.
bool burned;
// Arbitrary data similar to `startTimestamp` that can be set via {_extraData}.
uint24 extraData;
}
// =============================================================
// TOKEN COUNTERS
// =============================================================
/**
* @dev Returns the total number of tokens in existence.
* Burned tokens will reduce the count.
* To get the total number of tokens minted, please see {_totalMinted}.
*/
function totalSupply() external view returns (uint256);
// =============================================================
// IERC165
// =============================================================
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
* to learn more about how these ids are created.
*
* This function call must use less than 30000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
// =============================================================
// IERC721
// =============================================================
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(
address indexed from,
address indexed to,
uint256 indexed tokenId
);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
event Approval(
address indexed owner,
address indexed approved,
uint256 indexed tokenId
);
/**
* @dev Emitted when `owner` enables or disables
* (`approved`) `operator` to manage all of its assets.
*/
event ApprovalForAll(
address indexed owner,
address indexed operator,
bool approved
);
/**
* @dev Returns the number of tokens in `owner`'s account.
*/
function balanceOf(address owner) external view returns (uint256 balance);
/**
* @dev Returns the owner of the `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function ownerOf(uint256 tokenId) external view returns (address owner);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`,
* checking first that contract recipients are aware of the ERC721 protocol
* to prevent tokens from being forever locked.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be have been allowed to move
* this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement
* {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes calldata data
) external payable;
/**
* @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) external payable;
/**
* @dev Transfers `tokenId` from `from` to `to`.
*
* WARNING: Usage of this method is discouraged, use {safeTransferFrom}
* whenever possible.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token
* by either {approve} or {setApprovalForAll}.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) external payable;
/**
* @dev Gives permission to `to` to transfer `tokenId` token to another account.
* The approval is cleared when the token is transferred.
*
* Only a single account can be approved at a time, so approving the
* zero address clears previous approvals.
*
* Requirements:
*
* - The caller must own the token or be an approved operator.
* - `tokenId` must exist.
*
* Emits an {Approval} event.
*/
function approve(address to, uint256 tokenId) external payable;
/**
* @dev Approve or remove `operator` as an operator for the caller.
* Operators can call {transferFrom} or {safeTransferFrom}
* for any token owned by the caller.
*
* Requirements:
*
* - The `operator` cannot be the caller.
*
* Emits an {ApprovalForAll} event.
*/
function setApprovalForAll(address operator, bool _approved) external;
/**
* @dev Returns the account approved for `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function getApproved(
uint256 tokenId
) external view returns (address operator);
/**
* @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
*
* See {setApprovalForAll}.
*/
function isApprovedForAll(
address owner,
address operator
) external view returns (bool);
// =============================================================
// IERC721Metadata
// =============================================================
/**
* @dev Returns the token collection name.
*/
function name() external view returns (string memory);
/**
* @dev Returns the token collection symbol.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
*/
function tokenURI(uint256 tokenId) external view returns (string memory);
// =============================================================
// IERC2309
// =============================================================
/**
* @dev Emitted when tokens in `fromTokenId` to `toTokenId`
* (inclusive) is transferred from `from` to `to`, as defined in the
* [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard.
*
* See {_mintERC2309} for more details.
*/
event ConsecutiveTransfer(
uint256 indexed fromTokenId,
uint256 toTokenId,
address indexed from,
address indexed to
);
}
// File erc721a/contracts/ERC721A.sol@v4.2.3
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs
pragma solidity ^0.8.4;
/**
* @dev Interface of ERC721 token receiver.
*/
interface ERC721A__IERC721Receiver {
function onERC721Received(
address operator,
address from,
uint256 tokenId,
bytes calldata data
) external returns (bytes4);
}
/**
* @title ERC721A
*
* @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721)
* Non-Fungible Token Standard, including the Metadata extension.
* Optimized for lower gas during batch mints.
*
* Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...)
* starting from `_startTokenId()`.
*
* Assumptions:
*
* - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
* - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256).
*/
contract ERC721A is IERC721A {
// Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364).
struct TokenApprovalRef {
address value;
}
// =============================================================
// CONSTANTS
// =============================================================
// Mask of an entry in packed address data.
uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1;
// The bit position of `numberMinted` in packed address data.
uint256 private constant _BITPOS_NUMBER_MINTED = 64;
// The bit position of `numberBurned` in packed address data.
uint256 private constant _BITPOS_NUMBER_BURNED = 128;
// The bit position of `aux` in packed address data.
uint256 private constant _BITPOS_AUX = 192;
// Mask of all 256 bits in packed address data except the 64 bits for `aux`.
uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1;
// The bit position of `startTimestamp` in packed ownership.
uint256 private constant _BITPOS_START_TIMESTAMP = 160;
// The bit mask of the `burned` bit in packed ownership.
uint256 private constant _BITMASK_BURNED = 1 << 224;
// The bit position of the `nextInitialized` bit in packed ownership.
uint256 private constant _BITPOS_NEXT_INITIALIZED = 225;
// The bit mask of the `nextInitialized` bit in packed ownership.
uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225;
// The bit position of `extraData` in packed ownership.
uint256 private constant _BITPOS_EXTRA_DATA = 232;
// Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`.
uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1;
// The mask of the lower 160 bits for addresses.
uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1;
// The maximum `quantity` that can be minted with {_mintERC2309}.
// This limit is to prevent overflows on the address data entries.
// For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309}
// is required to cause an overflow, which is unrealistic.
uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000;
// The `Transfer` event signature is given by:
// `keccak256(bytes("Transfer(address,address,uint256)"))`.
bytes32 private constant _TRANSFER_EVENT_SIGNATURE =
0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef;
// =============================================================
// STORAGE
// =============================================================
// The next token ID to be minted.
uint256 private _currentIndex;
// The number of tokens burned.
uint256 private _burnCounter;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to ownership details
// An empty struct value does not necessarily mean the token is unowned.
// See {_packedOwnershipOf} implementation for details.
//
// Bits Layout:
// - [0..159] `addr`
// - [160..223] `startTimestamp`
// - [224] `burned`
// - [225] `nextInitialized`
// - [232..255] `extraData`
mapping(uint256 => uint256) private _packedOwnerships;
// Mapping owner address to address data.
//
// Bits Layout:
// - [0..63] `balance`
// - [64..127] `numberMinted`
// - [128..191] `numberBurned`
// - [192..255] `aux`
mapping(address => uint256) private _packedAddressData;
// Mapping from token ID to approved address.
mapping(uint256 => TokenApprovalRef) private _tokenApprovals;
// Mapping from owner to operator approvals
mapping(address => mapping(address => bool)) private _operatorApprovals;
// =============================================================
// CONSTRUCTOR
// =============================================================
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
_currentIndex = _startTokenId();
}
// =============================================================
// TOKEN COUNTING OPERATIONS
// =============================================================
/**
* @dev Returns the starting token ID.
* To change the starting token ID, please override this function.
*/
function _startTokenId() internal view virtual returns (uint256) {
return 0;
}
/**
* @dev Returns the next token ID to be minted.
*/
function _nextTokenId() internal view virtual returns (uint256) {
return _currentIndex;
}
/**
* @dev Returns the total number of tokens in existence.
* Burned tokens will reduce the count.
* To get the total number of tokens minted, please see {_totalMinted}.
*/
function totalSupply() public view virtual override returns (uint256) {
// Counter underflow is impossible as _burnCounter cannot be incremented
// more than `_currentIndex - _startTokenId()` times.
unchecked {
return _currentIndex - _burnCounter - _startTokenId();
}
}
/**
* @dev Returns the total amount of tokens minted in the contract.
*/
function _totalMinted() internal view virtual returns (uint256) {
// Counter underflow is impossible as `_currentIndex` does not decrement,
// and it is initialized to `_startTokenId()`.
unchecked {
return _currentIndex - _startTokenId();
}
}
/**
* @dev Returns the total number of tokens burned.
*/
function _totalBurned() internal view virtual returns (uint256) {
return _burnCounter;
}
// =============================================================
// ADDRESS DATA OPERATIONS
// =============================================================
/**
* @dev Returns the number of tokens in `owner`'s account.
*/
function balanceOf(
address owner
) public view virtual override returns (uint256) {
if (owner == address(0)) revert BalanceQueryForZeroAddress();
return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY;
}
/**
* Returns the number of tokens minted by `owner`.
*/
function _numberMinted(address owner) internal view returns (uint256) {
return
(_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) &
_BITMASK_ADDRESS_DATA_ENTRY;
}
/**
* Returns the number of tokens burned by or on behalf of `owner`.
*/
function _numberBurned(address owner) internal view returns (uint256) {
return
(_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) &
_BITMASK_ADDRESS_DATA_ENTRY;
}
/**
* Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used).
*/
function _getAux(address owner) internal view returns (uint64) {
return uint64(_packedAddressData[owner] >> _BITPOS_AUX);
}
/**
* Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used).
* If there are multiple variables, please pack them into a uint64.
*/
function _setAux(address owner, uint64 aux) internal virtual {
uint256 packed = _packedAddressData[owner];
uint256 auxCasted;
// Cast `aux` with assembly to avoid redundant masking.
assembly {
auxCasted := aux
}
packed =
(packed & _BITMASK_AUX_COMPLEMENT) |
(auxCasted << _BITPOS_AUX);
_packedAddressData[owner] = packed;
}
// =============================================================
// IERC165
// =============================================================
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
* to learn more about how these ids are created.
*
* This function call must use less than 30000 gas.
*/
function supportsInterface(
bytes4 interfaceId
) public view virtual override returns (bool) {
// The interface IDs are constants representing the first 4 bytes
// of the XOR of all function selectors in the interface.
// See: [ERC165](https://eips.ethereum.org/EIPS/eip-165)
// (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`)
return
interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165.
interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721.
interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata.
}
// =============================================================
// IERC721Metadata
// =============================================================
/**
* @dev Returns the token collection name.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev Returns the token collection symbol.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
*/
function tokenURI(
uint256 tokenId
) public view virtual override returns (string memory) {
if (!_exists(tokenId)) revert URIQueryForNonexistentToken();
string memory baseURI = _baseURI();
return
bytes(baseURI).length != 0
? string(abi.encodePacked(baseURI, _toString(tokenId)))
: "";
}
/**
* @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
* token will be the concatenation of the `baseURI` and the `tokenId`. Empty
* by default, it can be overridden in child contracts.
*/
function _baseURI() internal view virtual returns (string memory) {
return "";
}
// =============================================================
// OWNERSHIPS OPERATIONS
// =============================================================
/**
* @dev Returns the owner of the `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function ownerOf(
uint256 tokenId
) public view virtual override returns (address) {
return address(uint160(_packedOwnershipOf(tokenId)));
}
/**
* @dev Gas spent here starts off proportional to the maximum mint batch size.
* It gradually moves to O(1) as tokens get transferred around over time.
*/
function _ownershipOf(
uint256 tokenId
) internal view virtual returns (TokenOwnership memory) {
return _unpackedOwnership(_packedOwnershipOf(tokenId));
}
/**
* @dev Returns the unpacked `TokenOwnership` struct at `index`.
*/
function _ownershipAt(
uint256 index
) internal view virtual returns (TokenOwnership memory) {
return _unpackedOwnership(_packedOwnerships[index]);
}
/**
* @dev Initializes the ownership slot minted at `index` for efficiency purposes.
*/
function _initializeOwnershipAt(uint256 index) internal virtual {
if (_packedOwnerships[index] == 0) {
_packedOwnerships[index] = _packedOwnershipOf(index);
}
}
/**
* Returns the packed ownership data of `tokenId`.
*/
function _packedOwnershipOf(
uint256 tokenId
) private view returns (uint256) {
uint256 curr = tokenId;
unchecked {
if (_startTokenId() <= curr)
if (curr < _currentIndex) {
uint256 packed = _packedOwnerships[curr];
// If not burned.
if (packed & _BITMASK_BURNED == 0) {
// Invariant:
// There will always be an initialized ownership slot
// (i.e. `ownership.addr != address(0) && ownership.burned == false`)
// before an unintialized ownership slot
// (i.e. `ownership.addr == address(0) && ownership.burned == false`)
// Hence, `curr` will not underflow.
//
// We can directly compare the packed value.
// If the address is zero, packed will be zero.
while (packed == 0) {
packed = _packedOwnerships[--curr];
}
return packed;
}
}
}
revert OwnerQueryForNonexistentToken();
}
/**
* @dev Returns the unpacked `TokenOwnership` struct from `packed`.
*/
function _unpackedOwnership(
uint256 packed
) private pure returns (TokenOwnership memory ownership) {
ownership.addr = address(uint160(packed));
ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP);
ownership.burned = packed & _BITMASK_BURNED != 0;
ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA);
}
/**
* @dev Packs ownership data into a single uint256.
*/
function _packOwnershipData(
address owner,
uint256 flags
) private view returns (uint256 result) {
assembly {
// Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
owner := and(owner, _BITMASK_ADDRESS)
// `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`.
result := or(
owner,
or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)
)
}
}
/**
* @dev Returns the `nextInitialized` flag set if `quantity` equals 1.
*/
function _nextInitializedFlag(
uint256 quantity
) private pure returns (uint256 result) {
// For branchless setting of the `nextInitialized` flag.
assembly {
// `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`.
result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1))
}
}
// =============================================================
// APPROVAL OPERATIONS
// =============================================================
/**
* @dev Gives permission to `to` to transfer `tokenId` token to another account.
* The approval is cleared when the token is transferred.
*
* Only a single account can be approved at a time, so approving the
* zero address clears previous approvals.
*
* Requirements:
*
* - The caller must own the token or be an approved operator.
* - `tokenId` must exist.
*
* Emits an {Approval} event.
*/
function approve(
address to,
uint256 tokenId
) public payable virtual override {
address owner = ownerOf(tokenId);
if (_msgSenderERC721A() != owner)
if (!isApprovedForAll(owner, _msgSenderERC721A())) {
revert ApprovalCallerNotOwnerNorApproved();
}
_tokenApprovals[tokenId].value = to;
emit Approval(owner, to, tokenId);
}
/**
* @dev Returns the account approved for `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function getApproved(
uint256 tokenId
) public view virtual override returns (address) {
if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();
return _tokenApprovals[tokenId].value;
}
/**
* @dev Approve or remove `operator` as an operator for the caller.
* Operators can call {transferFrom} or {safeTransferFrom}
* for any token owned by the caller.
*
* Requirements:
*
* - The `operator` cannot be the caller.
*
* Emits an {ApprovalForAll} event.
*/
function setApprovalForAll(
address operator,
bool approved
) public virtual override {
_operatorApprovals[_msgSenderERC721A()][operator] = approved;
emit ApprovalForAll(_msgSenderERC721A(), operator, approved);
}
/**
* @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
*
* See {setApprovalForAll}.
*/
function isApprovedForAll(
address owner,
address operator
) public view virtual override returns (bool) {
return _operatorApprovals[owner][operator];
}
/**
* @dev Returns whether `tokenId` exists.
*
* Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
*
* Tokens start existing when they are minted. See {_mint}.
*/
function _exists(uint256 tokenId) internal view virtual returns (bool) {
return
_startTokenId() <= tokenId &&
tokenId < _currentIndex && // If within bounds,
_packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned.
}
/**
* @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`.
*/
function _isSenderApprovedOrOwner(
address approvedAddress,
address owner,
address msgSender
) private pure returns (bool result) {
assembly {
// Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
owner := and(owner, _BITMASK_ADDRESS)
// Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean.
msgSender := and(msgSender, _BITMASK_ADDRESS)
// `msgSender == owner || msgSender == approvedAddress`.
result := or(eq(msgSender, owner), eq(msgSender, approvedAddress))
}
}
/**
* @dev Returns the storage slot and value for the approved address of `tokenId`.
*/
function _getApprovedSlotAndAddress(
uint256 tokenId
)
private
view
returns (uint256 approvedAddressSlot, address approvedAddress)
{
TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId];
// The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`.
assembly {
approvedAddressSlot := tokenApproval.slot
approvedAddress := sload(approvedAddressSlot)
}
}
// =============================================================
// TRANSFER OPERATIONS
// =============================================================
/**
* @dev Transfers `tokenId` from `from` to `to`.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token
* by either {approve} or {setApprovalForAll}.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) public payable virtual override {
uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);
if (address(uint160(prevOwnershipPacked)) != from)
revert TransferFromIncorrectOwner();
(
uint256 approvedAddressSlot,
address approvedAddress
) = _getApprovedSlotAndAddress(tokenId);
// The nested ifs save around 20+ gas over a compound boolean condition.
if (
!_isSenderApprovedOrOwner(
approvedAddress,
from,
_msgSenderERC721A()
)
)
if (!isApprovedForAll(from, _msgSenderERC721A()))
revert TransferCallerNotOwnerNorApproved();
if (to == address(0)) revert TransferToZeroAddress();
_beforeTokenTransfers(from, to, tokenId, 1);
// Clear approvals from the previous owner.
assembly {
if approvedAddress {
// This is equivalent to `delete _tokenApprovals[tokenId]`.
sstore(approvedAddressSlot, 0)
}
}
// Underflow of the sender's balance is impossible because we check for
// ownership above and the recipient's balance can't realistically overflow.
// Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256.
unchecked {
// We can directly increment and decrement the balances.
--_packedAddressData[from]; // Updates: `balance -= 1`.
++_packedAddressData[to]; // Updates: `balance += 1`.
// Updates:
// - `address` to the next owner.
// - `startTimestamp` to the timestamp of transfering.
// - `burned` to `false`.
// - `nextInitialized` to `true`.
_packedOwnerships[tokenId] = _packOwnershipData(
to,
_BITMASK_NEXT_INITIALIZED |
_nextExtraData(from, to, prevOwnershipPacked)
);
// If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) {
uint256 nextTokenId = tokenId + 1;
// If the next slot's address is zero and not burned (i.e. packed value is zero).
if (_packedOwnerships[nextTokenId] == 0) {
// If the next slot is within bounds.
if (nextTokenId != _currentIndex) {
// Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
_packedOwnerships[nextTokenId] = prevOwnershipPacked;
}
}
}
}
emit Transfer(from, to, tokenId);
_afterTokenTransfers(from, to, tokenId, 1);
}
/**
* @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) public payable virtual override {
safeTransferFrom(from, to, tokenId, "");
}
/**
* @dev Safely transfers `tokenId` token from `from` to `to`.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token
* by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement
* {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes memory _data
) public payable virtual override {
transferFrom(from, to, tokenId);
if (to.code.length != 0)
if (!_checkContractOnERC721Received(from, to, tokenId, _data)) {
revert TransferToNonERC721ReceiverImplementer();
}
}
/**
* @dev Hook that is called before a set of serially-ordered token IDs
* are about to be transferred. This includes minting.
* And also called before burning one token.
*
* `startTokenId` - the first token ID to be transferred.
* `quantity` - the amount to be transferred.
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, `from`'s `tokenId` will be
* transferred to `to`.
* - When `from` is zero, `tokenId` will be minted for `to`.
* - When `to` is zero, `tokenId` will be burned by `from`.
* - `from` and `to` are never both zero.
*/
function _beforeTokenTransfers(
address from,
address to,
uint256 startTokenId,
uint256 quantity
) internal virtual {}
/**
* @dev Hook that is called after a set of serially-ordered token IDs
* have been transferred. This includes minting.
* And also called after one token has been burned.
*
* `startTokenId` - the first token ID to be transferred.
* `quantity` - the amount to be transferred.
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, `from`'s `tokenId` has been
* transferred to `to`.
* - When `from` is zero, `tokenId` has been minted for `to`.
* - When `to` is zero, `tokenId` has been burned by `from`.
* - `from` and `to` are never both zero.
*/
function _afterTokenTransfers(
address from,
address to,
uint256 startTokenId,
uint256 quantity
) internal virtual {}
/**
* @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract.
*
* `from` - Previous owner of the given token ID.
* `to` - Target address that will receive the token.
* `tokenId` - Token ID to be transferred.
* `_data` - Optional data to send along with the call.
*
* Returns whether the call correctly returned the expected magic value.
*/
function _checkContractOnERC721Received(
address from,
address to,
uint256 tokenId,
bytes memory _data
) private returns (bool) {
try
ERC721A__IERC721Receiver(to).onERC721Received(
_msgSenderERC721A(),
from,
tokenId,
_data
)
returns (bytes4 retval) {
return
retval ==
ERC721A__IERC721Receiver(to).onERC721Received.selector;
} catch (bytes memory reason) {
if (reason.length == 0) {
revert TransferToNonERC721ReceiverImplementer();
} else {
assembly {
revert(add(32, reason), mload(reason))
}
}
}
}
// =============================================================
// MINT OPERATIONS
// =============================================================
/**
* @dev Mints `quantity` tokens and transfers them to `to`.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - `quantity` must be greater than 0.
*
* Emits a {Transfer} event for each mint.
*/
function _mint(address to, uint256 quantity) internal virtual {
uint256 startTokenId = _currentIndex;
if (quantity == 0) revert MintZeroQuantity();
_beforeTokenTransfers(address(0), to, startTokenId, quantity);
// Overflows are incredibly unrealistic.
// `balance` and `numberMinted` have a maximum limit of 2**64.
// `tokenId` has a maximum limit of 2**256.
unchecked {
// Updates:
// - `balance += quantity`.
// - `numberMinted += quantity`.
//
// We can directly add to the `balance` and `numberMinted`.
_packedAddressData[to] +=
quantity *
((1 << _BITPOS_NUMBER_MINTED) | 1);
// Updates:
// - `address` to the owner.
// - `startTimestamp` to the timestamp of minting.
// - `burned` to `false`.
// - `nextInitialized` to `quantity == 1`.
_packedOwnerships[startTokenId] = _packOwnershipData(
to,
_nextInitializedFlag(quantity) |
_nextExtraData(address(0), to, 0)
);
uint256 toMasked;
uint256 end = startTokenId + quantity;
// Use assembly to loop and emit the `Transfer` event for gas savings.
// The duplicated `log4` removes an extra check and reduces stack juggling.
// The assembly, together with the surrounding Solidity code, have been
// delicately arranged to nudge the compiler into producing optimized opcodes.
assembly {
// Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean.
toMasked := and(to, _BITMASK_ADDRESS)
// Emit the `Transfer` event.
log4(
0, // Start of data (0, since no data).
0, // End of data (0, since no data).
_TRANSFER_EVENT_SIGNATURE, // Signature.
0, // `address(0)`.
toMasked, // `to`.
startTokenId // `tokenId`.
)
// The `iszero(eq(,))` check ensures that large values of `quantity`
// that overflows uint256 will make the loop run out of gas.
// The compiler will optimize the `iszero` away for performance.
for {
let tokenId := add(startTokenId, 1)
} iszero(eq(tokenId, end)) {
tokenId := add(tokenId, 1)
} {
// Emit the `Transfer` event. Similar to above.
log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId)
}
}
if (toMasked == 0) revert MintToZeroAddress();
_currentIndex = end;
}
_afterTokenTransfers(address(0), to, startTokenId, quantity);
}
/**
* @dev Mints `quantity` tokens and transfers them to `to`.
*
* This function is intended for efficient minting only during contract creation.
*
* It emits only one {ConsecutiveTransfer} as defined in
* [ERC2309](https://eips.ethereum.org/EIPS/eip-2309),
* instead of a sequence of {Transfer} event(s).
*
* Calling this function outside of contract creation WILL make your contract
* non-compliant with the ERC721 standard.
* For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309
* {ConsecutiveTransfer} event is only permissible during contract creation.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - `quantity` must be greater than 0.
*
* Emits a {ConsecutiveTransfer} event.
*/
function _mintERC2309(address to, uint256 quantity) internal virtual {
uint256 startTokenId = _currentIndex;
if (to == address(0)) revert MintToZeroAddress();
if (quantity == 0) revert MintZeroQuantity();
if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT)
revert MintERC2309QuantityExceedsLimit();
_beforeTokenTransfers(address(0), to, startTokenId, quantity);
// Overflows are unrealistic due to the above check for `quantity` to be below the limit.
unchecked {
// Updates:
// - `balance += quantity`.
// - `numberMinted += quantity`.
//
// We can directly add to the `balance` and `numberMinted`.
_packedAddressData[to] +=
quantity *
((1 << _BITPOS_NUMBER_MINTED) | 1);
// Updates:
// - `address` to the owner.
// - `startTimestamp` to the timestamp of minting.
// - `burned` to `false`.
// - `nextInitialized` to `quantity == 1`.
_packedOwnerships[startTokenId] = _packOwnershipData(
to,
_nextInitializedFlag(quantity) |
_nextExtraData(address(0), to, 0)
);
emit ConsecutiveTransfer(
startTokenId,
startTokenId + quantity - 1,
address(0),
to
);
_currentIndex = startTokenId + quantity;
}
_afterTokenTransfers(address(0), to, startTokenId, quantity);
}
/**
* @dev Safely mints `quantity` tokens and transfers them to `to`.
*
* Requirements:
*
* - If `to` refers to a smart contract, it must implement
* {IERC721Receiver-onERC721Received}, which is called for each safe transfer.
* - `quantity` must be greater than 0.
*
* See {_mint}.
*
* Emits a {Transfer} event for each mint.
*/
function _safeMint(
address to,
uint256 quantity,
bytes memory _data
) internal virtual {
_mint(to, quantity);
unchecked {
if (to.code.length != 0) {
uint256 end = _currentIndex;
uint256 index = end - quantity;
do {
if (
!_checkContractOnERC721Received(
address(0),
to,
index++,
_data
)
) {
revert TransferToNonERC721ReceiverImplementer();
}
} while (index < end);
// Reentrancy protection.
if (_currentIndex != end) revert();
}
}
}
/**
* @dev Equivalent to `_safeMint(to, quantity, '')`.
*/
function _safeMint(address to, uint256 quantity) internal virtual {
_safeMint(to, quantity, "");
}
// =============================================================
// BURN OPERATIONS
// =============================================================
/**
* @dev Equivalent to `_burn(tokenId, false)`.
*/
function _burn(uint256 tokenId) internal virtual {
_burn(tokenId, false);
}
/**
* @dev Destroys `tokenId`.
* The approval is cleared when the token is burned.
*
* Requirements:
*
* - `tokenId` must exist.
*
* Emits a {Transfer} event.
*/
function _burn(uint256 tokenId, bool approvalCheck) internal virtual {
uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);
address from = address(uint160(prevOwnershipPacked));
(
uint256 approvedAddressSlot,
address approvedAddress
) = _getApprovedSlotAndAddress(tokenId);
if (approvalCheck) {
// The nested ifs save around 20+ gas over a compound boolean condition.
if (
!_isSenderApprovedOrOwner(
approvedAddress,
from,
_msgSenderERC721A()
)
)
if (!isApprovedForAll(from, _msgSenderERC721A()))
revert TransferCallerNotOwnerNorApproved();
}
_beforeTokenTransfers(from, address(0), tokenId, 1);
// Clear approvals from the previous owner.
assembly {
if approvedAddress {
// This is equivalent to `delete _tokenApprovals[tokenId]`.
sstore(approvedAddressSlot, 0)
}
}
// Underflow of the sender's balance is impossible because we check for
// ownership above and the recipient's balance can't realistically overflow.
// Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256.
unchecked {
// Updates:
// - `balance -= 1`.
// - `numberBurned += 1`.
//
// We can directly decrement the balance, and increment the number burned.
// This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`.
_packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1;
// Updates:
// - `address` to the last owner.
// - `startTimestamp` to the timestamp of burning.
// - `burned` to `true`.
// - `nextInitialized` to `true`.
_packedOwnerships[tokenId] = _packOwnershipData(
from,
(_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) |
_nextExtraData(from, address(0), prevOwnershipPacked)
);
// If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) {
uint256 nextTokenId = tokenId + 1;
// If the next slot's address is zero and not burned (i.e. packed value is zero).
if (_packedOwnerships[nextTokenId] == 0) {
// If the next slot is within bounds.
if (nextTokenId != _currentIndex) {
// Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
_packedOwnerships[nextTokenId] = prevOwnershipPacked;
}
}
}
}
emit Transfer(from, address(0), tokenId);
_afterTokenTransfers(from, address(0), tokenId, 1);
// Overflow not possible, as _burnCounter cannot be exceed _currentIndex times.
unchecked {
_burnCounter++;
}
}
// =============================================================
// EXTRA DATA OPERATIONS
// =============================================================
/**
* @dev Directly sets the extra data for the ownership data `index`.
*/
function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual {
uint256 packed = _packedOwnerships[index];
if (packed == 0) revert OwnershipNotInitializedForExtraData();
uint256 extraDataCasted;
// Cast `extraData` with assembly to avoid redundant masking.
assembly {
extraDataCasted := extraData
}
packed =
(packed & _BITMASK_EXTRA_DATA_COMPLEMENT) |
(extraDataCasted << _BITPOS_EXTRA_DATA);
_packedOwnerships[index] = packed;
}
/**
* @dev Called during each token transfer to set the 24bit `extraData` field.
* Intended to be overridden by the cosumer contract.
*
* `previousExtraData` - the value of `extraData` before transfer.
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, `from`'s `tokenId` will be
* transferred to `to`.
* - When `from` is zero, `tokenId` will be minted for `to`.
* - When `to` is zero, `tokenId` will be burned by `from`.
* - `from` and `to` are never both zero.
*/
function _extraData(
address from,
address to,
uint24 previousExtraData
) internal view virtual returns (uint24) {}
/**
* @dev Returns the next extra data for the packed ownership data.
* The returned result is shifted into position.
*/
function _nextExtraData(
address from,
address to,
uint256 prevOwnershipPacked
) private view returns (uint256) {
uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA);
return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA;
}
// =============================================================
// OTHER OPERATIONS
// =============================================================
/**
* @dev Returns the message sender (defaults to `msg.sender`).
*
* If you are writing GSN compatible contracts, you need to override this function.
*/
function _msgSenderERC721A() internal view virtual returns (address) {
return msg.sender;
}
/**
* @dev Converts a uint256 to its ASCII string decimal representation.
*/
function _toString(
uint256 value
) internal pure virtual returns (string memory str) {
assembly {
// The maximum value of a uint256 contains 78 digits (1 byte per digit), but
// we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned.
// We will need 1 word for the trailing zeros padding, 1 word for the length,
// and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0.
let m := add(mload(0x40), 0xa0)
// Update the free memory pointer to allocate.
mstore(0x40, m)
// Assign the `str` to the end.
str := sub(m, 0x20)
// Zeroize the slot after the string.
mstore(str, 0)
// Cache the end of the memory to calculate the length later.
let end := str
// We write the string from rightmost digit to leftmost digit.
// The following is essentially a do-while loop that also handles the zero case.
// prettier-ignore
for { let temp := value } 1 {} {
str := sub(str, 1)
// Write the character to the pointer.
// The ASCII index of the '0' character is 48.
mstore8(str, add(48, mod(temp, 10)))
// Keep dividing `temp` until zero.
temp := div(temp, 10)
// prettier-ignore
if iszero(temp) { break }
}
let length := sub(end, str)
// Move the pointer 32 bytes leftwards to make room for the length.
str := sub(str, 0x20)
// Store the length.
mstore(str, length)
}
}
}
// File @openzeppelin/contracts/utils/cryptography/MerkleProof.sol@v4.7.3
// OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol)
pragma solidity ^0.8.0;
/**
* @dev These functions deal with verification of Merkle Tree proofs.
*
* The proofs can be generated using the JavaScript library
* https://github.com/miguelmota/merkletreejs[merkletreejs].
* Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
*
* See `test/utils/cryptography/MerkleProof.test.js` for some examples.
*
* WARNING: You should avoid using leaf values that are 64 bytes long prior to
* hashing, or use a hash function other than keccak256 for hashing leaves.
* This is because the concatenation of a sorted pair of internal nodes in
* the merkle tree could be reinterpreted as a leaf value.
*/
library MerkleProof {
/**
* @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
* defined by `root`. For this, a `proof` must be provided, containing
* sibling hashes on the branch from the leaf to the root of the tree. Each
* pair of leaves and each pair of pre-images are assumed to be sorted.
*/
function verify(
bytes32[] memory proof,
bytes32 root,
bytes32 leaf
) internal pure returns (bool) {
return processProof(proof, leaf) == root;
}
/**
* @dev Calldata version of {verify}
*
* _Available since v4.7._
*/
function verifyCalldata(
bytes32[] calldata proof,
bytes32 root,
bytes32 leaf
) internal pure returns (bool) {
return processProofCalldata(proof, leaf) == root;
}
/**
* @dev Returns the rebuilt hash obtained by traversing a Merkle tree up
* from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
* hash matches the root of the tree. When processing the proof, the pairs
* of leafs & pre-images are assumed to be sorted.
*
* _Available since v4.4._
*/
function processProof(
bytes32[] memory proof,
bytes32 leaf
) internal pure returns (bytes32) {
bytes32 computedHash = leaf;
for (uint256 i = 0; i < proof.length; i++) {
computedHash = _hashPair(computedHash, proof[i]);
}
return computedHash;
}
/**
* @dev Calldata version of {processProof}
*
* _Available since v4.7._
*/
function processProofCalldata(
bytes32[] calldata proof,
bytes32 leaf
) internal pure returns (bytes32) {
bytes32 computedHash = leaf;
for (uint256 i = 0; i < proof.length; i++) {
computedHash = _hashPair(computedHash, proof[i]);
}
return computedHash;
}
/**
* @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by
* `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
*
* _Available since v4.7._
*/
function multiProofVerify(
bytes32[] memory proof,
bool[] memory proofFlags,
bytes32 root,
bytes32[] memory leaves
) internal pure returns (bool) {
return processMultiProof(proof, proofFlags, leaves) == root;
}
/**
* @dev Calldata version of {multiProofVerify}
*
* _Available since v4.7._
*/
function multiProofVerifyCalldata(
bytes32[] calldata proof,
bool[] calldata proofFlags,
bytes32 root,
bytes32[] memory leaves
) internal pure returns (bool) {
return processMultiProofCalldata(proof, proofFlags, leaves) == root;
}
/**
* @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`,
* consuming from one or the other at each step according to the instructions given by
* `proofFlags`.
*
* _Available since v4.7._
*/
function processMultiProof(
bytes32[] memory proof,
bool[] memory proofFlags,
bytes32[] memory leaves
) internal pure returns (bytes32 merkleRoot) {
// This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
// consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
// `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
// the merkle tree.
uint256 leavesLen = leaves.length;
uint256 totalHashes = proofFlags.length;
// Check proof validity.
require(
leavesLen + proof.length - 1 == totalHashes,
"MerkleProof: invalid multiproof"
);
// The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
// `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
bytes32[] memory hashes = new bytes32[](totalHashes);
uint256 leafPos = 0;
uint256 hashPos = 0;
uint256 proofPos = 0;
// At each step, we compute the next hash using two values:
// - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
// get the next hash.
// - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
// `proof` array.
for (uint256 i = 0; i < totalHashes; i++) {
bytes32 a = leafPos < leavesLen
? leaves[leafPos++]
: hashes[hashPos++];
bytes32 b = proofFlags[i]
? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]
: proof[proofPos++];
hashes[i] = _hashPair(a, b);
}
if (totalHashes > 0) {
return hashes[totalHashes - 1];
} else if (leavesLen > 0) {
return leaves[0];
} else {
return proof[0];
}
}
/**
* @dev Calldata version of {processMultiProof}
*
* _Available since v4.7._
*/
function processMultiProofCalldata(
bytes32[] calldata proof,
bool[] calldata proofFlags,
bytes32[] memory leaves
) internal pure returns (bytes32 merkleRoot) {
// This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
// consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
// `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
// the merkle tree.
uint256 leavesLen = leaves.length;
uint256 totalHashes = proofFlags.length;
// Check proof validity.
require(
leavesLen + proof.length - 1 == totalHashes,
"MerkleProof: invalid multiproof"
);
// The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
// `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
bytes32[] memory hashes = new bytes32[](totalHashes);
uint256 leafPos = 0;
uint256 hashPos = 0;
uint256 proofPos = 0;
// At each step, we compute the next hash using two values:
// - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
// get the next hash.
// - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
// `proof` array.
for (uint256 i = 0; i < totalHashes; i++) {
bytes32 a = leafPos < leavesLen
? leaves[leafPos++]
: hashes[hashPos++];
bytes32 b = proofFlags[i]
? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]
: proof[proofPos++];
hashes[i] = _hashPair(a, b);
}
if (totalHashes > 0) {
return hashes[totalHashes - 1];
} else if (leavesLen > 0) {
return leaves[0];
} else {
return proof[0];
}
}
function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {
return a < b ? _efficientHash(a, b) : _efficientHash(b, a);
}
function _efficientHash(
bytes32 a,
bytes32 b
) private pure returns (bytes32 value) {
/// @solidity memory-safe-assembly
assembly {
mstore(0x00, a)
mstore(0x20, b)
value := keccak256(0x00, 0x40)
}
}
}
// File contracts/EMON.sol
pragma solidity 0.8.14;
// Uncomment this line to use console.log
// import "hardhat/console.sol";
error EMON_ContractPaused();
error EMON_SaleNotActive();
error EMON_InvalidAmount();
error EMON_MaxSupplyExceeded();
error EMON_CannotBeBlank();
error EMON_CannotBeZero();
error EMON_MerkelNotSet();
error EMON_NotWhitelistedUser();
error EMON_InsufficientFunds();
error EMON_MaxWalletLimitExceeded();
error EMON_FailedToWithdraw();
error EMON_BalanceIsZero();
contract EMON is ERC721A, ERC2981, Ownable {
enum SaleConfig {
PAUSED,
PRESALE,
PUBLIC
}
using Strings for uint256;
string private uriPrefix = "";
string private constant URI_SUFFIX = ".json";
string public hiddenMetadataUri;
bool private revealed = false;
///////////////////////////////////////////////////////////
// SET SALE PAUSED
// ///////////////////////////////////////////////////////
SaleConfig private saleConfig = SaleConfig.PAUSED;
///////////////////////////////////////////////////////////
// PROJECT INFO
// ///////////////////////////////////////////////////////
uint256 private constant TOTAL_SUPPLY = 5000;
uint256 private s_presale_cost = 0.5 ether;
uint256 private s_public_cost = 0.69 ether;
uint256 private s_public_max_wallet_limit = 10;
uint256 private s_presale_max_wallet_limit = 15;
uint256 private s_public_max_sale_limit = 10;
uint256 private s_presale_max_sale_limit = 15;
bytes32 private s_merkleRoot;
///////////////////////////////////////////////////////////
// TRACKING AND CONSTRUCTOR
// ///////////////////////////////////////////////////////
constructor() ERC721A("EMON", "EMON") {
setHiddenMetadataUri(
"https://plum-raw-wasp-119.mypinata.cloud/ipfs/QmZLPNJgfnzsPhrtWK3fdEzxZiuqVVnF7tAebKdqpU3dYM/hidden.json"
);
// 690 Bips = 6.9%
setRoyalty(msg.sender, 690);
}
function _startTokenId() internal view virtual override returns (uint256) {
return 1;
}
function supportsInterface(
bytes4 interfaceId
) public view virtual override(ERC721A, ERC2981) returns (bool) {
return
ERC721A.supportsInterface(interfaceId) ||
ERC2981.supportsInterface(interfaceId);
}
///////////////////////////////////////////////////////////
// Modifiers
// ///////////////////////////////////////////////////////
modifier mintCompliance(uint256 _mintAmount) {
if (isPaused()) revert EMON_ContractPaused();
if (_mintAmount == 0 || _mintAmount > maxMintAmountPerTx())
revert EMON_InvalidAmount();
if (totalSupply() + _mintAmount > maxSupply())
revert EMON_MaxSupplyExceeded();
_;
}
modifier selfMintCompliance(uint256 _mintAmount) {
if (_mintAmount == 0) revert EMON_InvalidAmount();
if (totalSupply() + _mintAmount > maxSupply())
revert EMON_MaxSupplyExceeded();
_;
}
///////////////////////////////////////////////////////////
// Get Functions
// ///////////////////////////////////////////////////////
function maxSupply() public pure returns (uint256) {
return TOTAL_SUPPLY;
}
function maxWalletLimit() public view returns (uint256) {
if (isPresaleActive()) return s_presale_max_wallet_limit;
return s_public_max_wallet_limit;
}
function isPaused() public view returns (bool) {
return saleConfig == SaleConfig.PAUSED;
}
function isPresaleActive() public view returns (bool) {
return saleConfig == SaleConfig.PRESALE;
}
function isSaleActive() public view returns (bool) {
return saleConfig == SaleConfig.PUBLIC;
}
function isMerkleRootSet() public view returns (bool) {
return s_merkleRoot != "";
}
function cost() public view returns (uint256) {
if (isPresaleActive()) return s_presale_cost;
return s_public_cost;
}
function maxMintAmountPerTx() public view returns (uint256) {
if (isPresaleActive()) return s_presale_max_sale_limit;
return s_public_max_sale_limit;
}
function isNFTRevealed() public view returns (bool) {
return revealed;
}
function hasBaseURI() public view returns (bool) {
if (bytes(uriPrefix).length > 0) return true;
return false;
}
function numberMinted(address _owner) public view returns (uint256) {
return _numberMinted(_owner);
}
function getOwnershipData(
uint256 _tokenId
) external view returns (TokenOwnership memory) {
return _ownershipOf(_tokenId);
}
///////////////////////////////////////////////////////////
// Update Functions
// ///////////////////////////////////////////////////////
function setSaleConfig(SaleConfig _status) external onlyOwner {
saleConfig = _status;
}
function setRoyalty(
address _receiver,
uint96 _royaltyFeeInBips
) public onlyOwner {
_setDefaultRoyalty(_receiver, _royaltyFeeInBips);
}
function setMerkleRoots(bytes32 _merkleRoot) external onlyOwner {
if (_merkleRoot == "") revert EMON_CannotBeBlank();
s_merkleRoot = _merkleRoot;
}
function setRevealed(bool _state) public onlyOwner {
revealed = _state;
}
function setHiddenMetadataUri(
string memory _hiddenMetadataUri
) public onlyOwner {
bytes memory blank = bytes(_hiddenMetadataUri);
if (blank.length == 0) revert EMON_CannotBeBlank();
hiddenMetadataUri = _hiddenMetadataUri;
}
function setUriPrefix(string memory _uriPrefix) public onlyOwner {
bytes memory blank = bytes(_uriPrefix);
if (blank.length == 0) revert EMON_CannotBeBlank();
uriPrefix = _uriPrefix;
}
function setPublicCost(uint256 _cost) public onlyOwner {
if (_cost == 0) revert EMON_CannotBeZero();
s_public_cost = _cost;
}
function setPresaleCost(uint256 _cost) public onlyOwner {
if (_cost == 0) revert EMON_CannotBeZero();
s_presale_cost = _cost;
}
function setPublicSaleMaxLimit(uint256 _limit) public onlyOwner {
if (_limit == 0) revert EMON_CannotBeZero();
s_public_max_sale_limit = _limit;
}
function setPresaleSaleMaxLimit(uint256 _limit) public onlyOwner {
if (_limit == 0) revert EMON_CannotBeZero();
s_presale_max_sale_limit = _limit;
}
function setPublicWalletMaxLimit(uint256 _limit) public onlyOwner {
if (_limit == 0) revert EMON_CannotBeZero();
s_public_max_wallet_limit = _limit;
}
function setPresaleWalletMaxLimit(uint256 _limit) public onlyOwner {
if (_limit == 0) revert EMON_CannotBeZero();
s_presale_max_wallet_limit = _limit;
}
///////////////////////////////////////////////////////////
// METADATA URI
// ///////////////////////////////////////////////////////
function _baseURI() internal view virtual override returns (string memory) {
return uriPrefix;
}
function tokenURI(
uint256 _tokenId
) public view virtual override returns (string memory) {
require(
_exists(_tokenId),
"ERC721Metadata: URI query for nonexistent token"
);
if (isNFTRevealed() == false) {
return hiddenMetadataUri;
}
string memory currentBaseURI = _baseURI();
return
bytes(currentBaseURI).length > 0
? string(
abi.encodePacked(
currentBaseURI,
_tokenId.toString(),
URI_SUFFIX
)
)
: "";
}
///////////////////////////////////////////////////////////
// MINT FUNCTIONS
// ///////////////////////////////////////////////////////
function verify(
bytes32[] memory _proof,
address _sender
) internal view returns (bool) {
return
MerkleProof.verify(
_proof,
s_merkleRoot,
keccak256(abi.encodePacked(_sender))
);
}
function whitelistMint(
uint256 _amount,
bytes32[] memory _proof
) external payable mintCompliance(_amount) {
if (!isPresaleActive()) revert EMON_SaleNotActive();
if (!isMerkleRootSet()) revert EMON_MerkelNotSet();
if (!verify(_proof, msg.sender)) revert EMON_NotWhitelistedUser();
if (msg.value < cost() * _amount) revert EMON_InsufficientFunds();
if (balanceOf(msg.sender) + _amount > maxWalletLimit())
revert EMON_MaxWalletLimitExceeded();
_mint(msg.sender, _amount);
}
function mint(uint256 _amount) public payable mintCompliance(_amount) {
if (!isSaleActive()) revert EMON_SaleNotActive();
if (msg.value < cost() * _amount) revert EMON_InsufficientFunds();
if (balanceOf(msg.sender) + _amount > maxWalletLimit())
revert EMON_MaxWalletLimitExceeded();
_mint(msg.sender, _amount);
}
function mintForAddress(
uint256 _amount,
address _receiver
) public mintCompliance(_amount) onlyOwner {
_mint(_receiver, _amount);
}
function mintForSelf(
uint256 _amount
) public selfMintCompliance(_amount) onlyOwner {
_mint(msg.sender, _amount);
}
///////////////////////////////////////////////////////////
// MINT FUNCTIONS
// ///////////////////////////////////////////////////////
function withdrawFunds() external onlyOwner {
if (address(this).balance == 0) revert EMON_BalanceIsZero();
(bool success, ) = owner().call{value: address(this).balance}("");
if (!success) revert EMON_FailedToWithdraw();
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"EMON_BalanceIsZero","type":"error"},{"inputs":[],"name":"EMON_CannotBeBlank","type":"error"},{"inputs":[],"name":"EMON_CannotBeZero","type":"error"},{"inputs":[],"name":"EMON_ContractPaused","type":"error"},{"inputs":[],"name":"EMON_FailedToWithdraw","type":"error"},{"inputs":[],"name":"EMON_InsufficientFunds","type":"error"},{"inputs":[],"name":"EMON_InvalidAmount","type":"error"},{"inputs":[],"name":"EMON_MaxSupplyExceeded","type":"error"},{"inputs":[],"name":"EMON_MaxWalletLimitExceeded","type":"error"},{"inputs":[],"name":"EMON_MerkelNotSet","type":"error"},{"inputs":[],"name":"EMON_NotWhitelistedUser","type":"error"},{"inputs":[],"name":"EMON_SaleNotActive","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getOwnershipData","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hasBaseURI","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hiddenMetadataUri","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":"isMerkleRootSet","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isNFTRevealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPresaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintAmountPerTx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"maxWalletLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_receiver","type":"address"}],"name":"mintForAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mintForSelf","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"numberMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","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":"_hiddenMetadataUri","type":"string"}],"name":"setHiddenMetadataUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoots","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cost","type":"uint256"}],"name":"setPresaleCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_limit","type":"uint256"}],"name":"setPresaleSaleMaxLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_limit","type":"uint256"}],"name":"setPresaleWalletMaxLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cost","type":"uint256"}],"name":"setPublicCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_limit","type":"uint256"}],"name":"setPublicSaleMaxLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_limit","type":"uint256"}],"name":"setPublicWalletMaxLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setRevealed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint96","name":"_royaltyFeeInBips","type":"uint96"}],"name":"setRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum EMON.SaleConfig","name":"_status","type":"uint8"}],"name":"setSaleConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uriPrefix","type":"string"}],"name":"setUriPrefix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdrawFunds","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
60a06040819052600060808190526200001b91600b9162000319565b50600d805461ffff191690556706f05b59d3b20000600e556709935f581f050000600f908155600a601081905560118290556012556013553480156200006057600080fd5b5060408051808201825260048082526322a6a7a760e11b602080840182815285518087019096529285528401528151919291620000a09160029162000319565b508051620000b690600390602084019062000319565b5050600160005550620000c93362000101565b620000ed6040518060a001604052806068815260200162002a0a6068913962000153565b620000fb336102b26200019c565b620003fb565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6200015d620001b6565b805181906000036200018257604051636ec3f8bb60e11b815260040160405180910390fd5b81516200019790600c90602085019062000319565b505050565b620001a6620001b6565b620001b2828262000218565b5050565b600a546001600160a01b03163314620002165760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b565b6127106001600160601b0382161115620002885760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084016200020d565b6001600160a01b038216620002e05760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c69642072656365697665720000000000000060448201526064016200020d565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600855565b8280546200032790620003bf565b90600052602060002090601f0160209004810192826200034b576000855562000396565b82601f106200036657805160ff191683800117855562000396565b8280016001018555821562000396579182015b828111156200039657825182559160200191906001019062000379565b50620003a4929150620003a8565b5090565b5b80821115620003a45760008155600101620003a9565b600181811c90821680620003d457607f821691505b602082108103620003f557634e487b7160e01b600052602260045260246000fd5b50919050565b6125ff806200040b6000396000f3fe6080604052600436106102925760003560e01c8063715018a61161015a578063a45ba8e7116100c1578063d5abeb011161007a578063d5abeb011461079d578063dc33e681146107b2578063e0a80853146107d2578063e985e9c5146107f2578063efbd73f41461083b578063f2fde38b1461085b57600080fd5b8063a45ba8e71461070d578063b187bd2614610722578063b88d4fde14610737578063c49b3d541461074a578063c87b56dd1461076a578063d2cab0561461078a57600080fd5b80638fdcf942116101135780638fdcf942146106235780639231ab2a1461064357806394354fd0146106b057806395d89b41146106c5578063a0712d68146106da578063a22cb465146106ed57600080fd5b8063715018a61461057b5780637348af12146105905780637ec4a659146105a5578063811d2437146105c55780638da5cb5b146105e55780638f2fc60b1461060357600080fd5b80632a55205a116101fe5780635f3daecb116101b75780635f3daecb146104e25780635ff10e39146104fa57806360d938dc146105115780636352211e1461052657806366a88d961461054657806370a082311461055b57600080fd5b80632a55205a1461041b5780632d3908051461045a57806340af91ec1461047a57806342842e0e1461049a5780634fdd43cb146104ad578063564566a8146104cd57600080fd5b806313faede61161025057806313faede61461037b57806318160ddd1461039e57806323b872dd146103b357806324600fc3146103c657806325b568a3146103db5780632931ec16146103fb57600080fd5b806233ab301461029757806301970b4e146102b957806301ffc9a7146102d957806306fdde031461030e578063081812fc14610330578063095ea7b314610368575b600080fd5b3480156102a357600080fd5b506102b76102b2366004611f70565b61087b565b005b3480156102c557600080fd5b506102b76102d4366004611f70565b6108a9565b3480156102e557600080fd5b506102f96102f4366004611f9f565b6108d7565b60405190151581526020015b60405180910390f35b34801561031a57600080fd5b506103236108f7565b6040516103059190612014565b34801561033c57600080fd5b5061035061034b366004611f70565b610989565b6040516001600160a01b039091168152602001610305565b6102b7610376366004612043565b6109cd565b34801561038757600080fd5b50610390610a6d565b604051908152602001610305565b3480156103aa57600080fd5b50610390610a8a565b6102b76103c136600461206d565b610a98565b3480156103d257600080fd5b506102b7610c30565b3480156103e757600080fd5b506102b76103f6366004611f70565b610ce1565b34801561040757600080fd5b506102b7610416366004611f70565b610d0f565b34801561042757600080fd5b5061043b6104363660046120a9565b610d3d565b604080516001600160a01b039093168352602083019190915201610305565b34801561046657600080fd5b506102b7610475366004611f70565b610de9565b34801561048657600080fd5b506102b76104953660046120cb565b610e17565b6102b76104a836600461206d565b610e48565b3480156104b957600080fd5b506102b76104c836600461218b565b610e68565b3480156104d957600080fd5b506102f9610ea7565b3480156104ee57600080fd5b50600d5460ff166102f9565b34801561050657600080fd5b5060145415156102f9565b34801561051d57600080fd5b506102f9610ece565b34801561053257600080fd5b50610350610541366004611f70565b610ed7565b34801561055257600080fd5b50610390610ee2565b34801561056757600080fd5b506103906105763660046121d4565b610eff565b34801561058757600080fd5b506102b7610f4e565b34801561059c57600080fd5b506102f9610f62565b3480156105b157600080fd5b506102b76105c036600461218b565b610f86565b3480156105d157600080fd5b506102b76105e0366004611f70565b610fc5565b3480156105f157600080fd5b50600a546001600160a01b0316610350565b34801561060f57600080fd5b506102b761061e3660046121ef565b610ff3565b34801561062f57600080fd5b506102b761063e366004611f70565b611009565b34801561064f57600080fd5b5061066361065e366004611f70565b611037565b604051610305919081516001600160a01b0316815260208083015167ffffffffffffffff169082015260408083015115159082015260609182015162ffffff169181019190915260800190565b3480156106bc57600080fd5b50610390611064565b3480156106d157600080fd5b50610323611081565b6102b76106e8366004611f70565b611090565b3480156106f957600080fd5b506102b7610708366004612242565b6111ba565b34801561071957600080fd5b50610323611226565b34801561072e57600080fd5b506102f96112b4565b6102b7610745366004612275565b6112bc565b34801561075657600080fd5b506102b7610765366004611f70565b611306565b34801561077657600080fd5b50610323610785366004611f70565b611365565b6102b76107983660046122f1565b6114f5565b3480156107a957600080fd5b50611388610390565b3480156107be57600080fd5b506103906107cd3660046121d4565b611666565b3480156107de57600080fd5b506102b76107ed3660046123a3565b611691565b3480156107fe57600080fd5b506102f961080d3660046123be565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561084757600080fd5b506102b76108563660046123e8565b6116ac565b34801561086757600080fd5b506102b76108763660046121d4565b61174b565b6108836117c1565b806000036108a45760405163ce97275360e01b815260040160405180910390fd5b601155565b6108b16117c1565b806000036108d25760405163ce97275360e01b815260040160405180910390fd5b601355565b60006108e28261181b565b806108f157506108f182611869565b92915050565b6060600280546109069061240b565b80601f01602080910402602001604051908101604052809291908181526020018280546109329061240b565b801561097f5780601f106109545761010080835404028352916020019161097f565b820191906000526020600020905b81548152906001019060200180831161096257829003601f168201915b5050505050905090565b60006109948261189e565b6109b1576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006109d882610ed7565b9050336001600160a01b03821614610a11576109f4813361080d565b610a11576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000610a77610ece565b15610a835750600e5490565b50600f5490565b600154600054036000190190565b6000610aa3826118d3565b9050836001600160a01b0316816001600160a01b031614610ad65760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b03881690911417610b2357610b06863361080d565b610b2357604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610b4a57604051633a954ecd60e21b815260040160405180910390fd5b8015610b5557600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b84169003610be757600184016000818152600460205260408120549003610be5576000548114610be55760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b610c386117c1565b47600003610c59576040516336fd5bdd60e11b815260040160405180910390fd5b6000610c6d600a546001600160a01b031690565b6001600160a01b03164760405160006040518083038185875af1925050503d8060008114610cb7576040519150601f19603f3d011682016040523d82523d6000602084013e610cbc565b606091505b5050905080610cde57604051637108461760e11b815260040160405180910390fd5b50565b610ce96117c1565b80600003610d0a5760405163ce97275360e01b815260040160405180910390fd5b601255565b610d176117c1565b80600003610d3857604051636ec3f8bb60e11b815260040160405180910390fd5b601455565b60008281526009602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610db25750604080518082019091526008546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610dd1906001600160601b03168761245b565b610ddb9190612490565b915196919550909350505050565b610df16117c1565b80600003610e125760405163ce97275360e01b815260040160405180910390fd5b601055565b610e1f6117c1565b600d805482919061ff001916610100836002811115610e4057610e406124a4565b021790555050565b610e63838383604051806020016040528060008152506112bc565b505050565b610e706117c1565b80518190600003610e9457604051636ec3f8bb60e11b815260040160405180910390fd5b8151610e6390600c906020850190611ed7565b600060025b600d54610100900460ff166002811115610ec857610ec86124a4565b14905090565b60006001610eac565b60006108f1826118d3565b6000610eec610ece565b15610ef8575060115490565b5060105490565b60006001600160a01b038216610f28576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610f566117c1565b610f606000611942565b565b600080600b8054610f729061240b565b90501115610f805750600190565b50600090565b610f8e6117c1565b80518190600003610fb257604051636ec3f8bb60e11b815260040160405180910390fd5b8151610e6390600b906020850190611ed7565b610fcd6117c1565b80600003610fee5760405163ce97275360e01b815260040160405180910390fd5b600f55565b610ffb6117c1565b6110058282611994565b5050565b6110116117c1565b806000036110325760405163ce97275360e01b815260040160405180910390fd5b600e55565b6040805160808101825260008082526020820181905291810182905260608101919091526108f182611a91565b600061106e610ece565b1561107a575060135490565b5060125490565b6060600380546109069061240b565b806110996112b4565b156110b7576040516395159d3360e01b815260040160405180910390fd5b8015806110ca57506110c7611064565b81115b156110e85760405163198ab09360e01b815260040160405180910390fd5b611388816110f4610a8a565b6110fe91906124ba565b111561111d57604051635f26a48b60e11b815260040160405180910390fd5b611125610ea7565b61114257604051638bdd6d0b60e01b815260040160405180910390fd5b8161114b610a6d565b611155919061245b565b3410156111755760405163104c4e5760e21b815260040160405180910390fd5b61117d610ee2565b8261118733610eff565b61119191906124ba565b11156111b0576040516337a63f6760e01b815260040160405180910390fd5b6110053383611b09565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600c80546112339061240b565b80601f016020809104026020016040519081016040528092919081815260200182805461125f9061240b565b80156112ac5780601f10611281576101008083540402835291602001916112ac565b820191906000526020600020905b81548152906001019060200180831161128f57829003601f168201915b505050505081565b600080610eac565b6112c7848484610a98565b6001600160a01b0383163b15611300576112e384848484611c07565b611300576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b80806000036113285760405163198ab09360e01b815260040160405180910390fd5b61138881611334610a8a565b61133e91906124ba565b111561135d57604051635f26a48b60e11b815260040160405180910390fd5b6111b06117c1565b60606113708261189e565b6113d95760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084015b60405180910390fd5b600d5460ff16151560000361147a57600c80546113f59061240b565b80601f01602080910402602001604051908101604052809291908181526020018280546114219061240b565b801561146e5780601f106114435761010080835404028352916020019161146e565b820191906000526020600020905b81548152906001019060200180831161145157829003601f168201915b50505050509050919050565b6000611484611cf3565b905060008151116114a457604051806020016040528060008152506114ee565b806114ae84611d02565b60405180604001604052806005815260200164173539b7b760d91b8152506040516020016114de939291906124d2565b6040516020818303038152906040525b9392505050565b816114fe6112b4565b1561151c576040516395159d3360e01b815260040160405180910390fd5b80158061152f575061152c611064565b81115b1561154d5760405163198ab09360e01b815260040160405180910390fd5b61138881611559610a8a565b61156391906124ba565b111561158257604051635f26a48b60e11b815260040160405180910390fd5b61158a610ece565b6115a757604051638bdd6d0b60e01b815260040160405180910390fd5b6014546115c757604051630dc0d45d60e01b815260040160405180910390fd5b6115d18233611e03565b6115ee5760405163384fd4db60e21b815260040160405180910390fd5b826115f7610a6d565b611601919061245b565b3410156116215760405163104c4e5760e21b815260040160405180910390fd5b611629610ee2565b8361163333610eff565b61163d91906124ba565b111561165c576040516337a63f6760e01b815260040160405180910390fd5b610e633384611b09565b6001600160a01b0381166000908152600560205260408082205467ffffffffffffffff911c166108f1565b6116996117c1565b600d805460ff1916911515919091179055565b816116b56112b4565b156116d3576040516395159d3360e01b815260040160405180910390fd5b8015806116e657506116e3611064565b81115b156117045760405163198ab09360e01b815260040160405180910390fd5b61138881611710610a8a565b61171a91906124ba565b111561173957604051635f26a48b60e11b815260040160405180910390fd5b6117416117c1565b610e638284611b09565b6117536117c1565b6001600160a01b0381166117b85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016113d0565b610cde81611942565b600a546001600160a01b03163314610f605760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016113d0565b60006301ffc9a760e01b6001600160e01b03198316148061184c57506380ac58cd60e01b6001600160e01b03198316145b806108f15750506001600160e01b031916635b5e139f60e01b1490565b60006001600160e01b0319821663152a902d60e11b14806108f157506301ffc9a760e01b6001600160e01b03198316146108f1565b6000816001111580156118b2575060005482105b80156108f1575050600090815260046020526040902054600160e01b161590565b60008180600111611929576000548110156119295760008181526004602052604081205490600160e01b82169003611927575b806000036114ee575060001901600081815260046020526040902054611906565b505b604051636f96cda160e11b815260040160405180910390fd5b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6127106001600160601b0382161115611a025760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084016113d0565b6001600160a01b038216611a585760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c69642072656365697665720000000000000060448201526064016113d0565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600855565b6040805160808101825260008082526020820181905291810182905260608101919091526108f1611ac1836118d3565b604080516080810182526001600160a01b038316815260a083901c67ffffffffffffffff166020820152600160e01b831615159181019190915260e89190911c606082015290565b6000805490829003611b2e5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b818114611bdd57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101611ba5565b5081600003611bfe57604051622e076360e81b815260040160405180910390fd5b60005550505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611c3c903390899088908890600401612515565b6020604051808303816000875af1925050508015611c77575060408051601f3d908101601f19168201909252611c7491810190612552565b60015b611cd5573d808015611ca5576040519150601f19603f3d011682016040523d82523d6000602084013e611caa565b606091505b508051600003611ccd576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060600b80546109069061240b565b606081600003611d295750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611d535780611d3d8161256f565b9150611d4c9050600a83612490565b9150611d2d565b60008167ffffffffffffffff811115611d6e57611d6e6120ec565b6040519080825280601f01601f191660200182016040528015611d98576020820181803683370190505b5090505b8415611ceb57611dad600183612588565b9150611dba600a8661259f565b611dc59060306124ba565b60f81b818381518110611dda57611dda6125b3565b60200101906001600160f81b031916908160001a905350611dfc600a86612490565b9450611d9c565b6014546040516bffffffffffffffffffffffff19606084901b1660208201526000916114ee9185919060340160405160208183030381529060405280519060200120600082611e528584611e5b565b14949350505050565b600081815b8451811015611ea057611e8c82868381518110611e7f57611e7f6125b3565b6020026020010151611ea8565b915080611e988161256f565b915050611e60565b509392505050565b6000818310611ec45760008281526020849052604090206114ee565b60008381526020839052604090206114ee565b828054611ee39061240b565b90600052602060002090601f016020900481019282611f055760008555611f4b565b82601f10611f1e57805160ff1916838001178555611f4b565b82800160010185558215611f4b579182015b82811115611f4b578251825591602001919060010190611f30565b50611f57929150611f5b565b5090565b5b80821115611f575760008155600101611f5c565b600060208284031215611f8257600080fd5b5035919050565b6001600160e01b031981168114610cde57600080fd5b600060208284031215611fb157600080fd5b81356114ee81611f89565b60005b83811015611fd7578181015183820152602001611fbf565b838111156113005750506000910152565b60008151808452612000816020860160208601611fbc565b601f01601f19169290920160200192915050565b6020815260006114ee6020830184611fe8565b80356001600160a01b038116811461203e57600080fd5b919050565b6000806040838503121561205657600080fd5b61205f83612027565b946020939093013593505050565b60008060006060848603121561208257600080fd5b61208b84612027565b925061209960208501612027565b9150604084013590509250925092565b600080604083850312156120bc57600080fd5b50508035926020909101359150565b6000602082840312156120dd57600080fd5b8135600381106114ee57600080fd5b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561212b5761212b6120ec565b604052919050565b600067ffffffffffffffff83111561214d5761214d6120ec565b612160601f8401601f1916602001612102565b905082815283838301111561217457600080fd5b828260208301376000602084830101529392505050565b60006020828403121561219d57600080fd5b813567ffffffffffffffff8111156121b457600080fd5b8201601f810184136121c557600080fd5b611ceb84823560208401612133565b6000602082840312156121e657600080fd5b6114ee82612027565b6000806040838503121561220257600080fd5b61220b83612027565b915060208301356001600160601b038116811461222757600080fd5b809150509250929050565b8035801515811461203e57600080fd5b6000806040838503121561225557600080fd5b61225e83612027565b915061226c60208401612232565b90509250929050565b6000806000806080858703121561228b57600080fd5b61229485612027565b93506122a260208601612027565b925060408501359150606085013567ffffffffffffffff8111156122c557600080fd5b8501601f810187136122d657600080fd5b6122e587823560208401612133565b91505092959194509250565b6000806040838503121561230457600080fd5b8235915060208084013567ffffffffffffffff8082111561232457600080fd5b818601915086601f83011261233857600080fd5b81358181111561234a5761234a6120ec565b8060051b915061235b848301612102565b818152918301840191848101908984111561237557600080fd5b938501935b838510156123935784358252938501939085019061237a565b8096505050505050509250929050565b6000602082840312156123b557600080fd5b6114ee82612232565b600080604083850312156123d157600080fd5b6123da83612027565b915061226c60208401612027565b600080604083850312156123fb57600080fd5b8235915061226c60208401612027565b600181811c9082168061241f57607f821691505b60208210810361243f57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561247557612475612445565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261249f5761249f61247a565b500490565b634e487b7160e01b600052602160045260246000fd5b600082198211156124cd576124cd612445565b500190565b600084516124e4818460208901611fbc565b8451908301906124f8818360208901611fbc565b845191019061250b818360208801611fbc565b0195945050505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061254890830184611fe8565b9695505050505050565b60006020828403121561256457600080fd5b81516114ee81611f89565b60006001820161258157612581612445565b5060010190565b60008282101561259a5761259a612445565b500390565b6000826125ae576125ae61247a565b500690565b634e487b7160e01b600052603260045260246000fdfea264697066735822122054a4c55e3596ee77c1a7af568e35e1202dce86a20d28f3f59bb1bba67860f62764736f6c634300080e003368747470733a2f2f706c756d2d7261772d776173702d3131392e6d7970696e6174612e636c6f75642f697066732f516d5a4c504e4a67666e7a7350687274574b336664457a785a69757156566e4637744165624b647170553364594d2f68696464656e2e6a736f6e
Deployed Bytecode
0x6080604052600436106102925760003560e01c8063715018a61161015a578063a45ba8e7116100c1578063d5abeb011161007a578063d5abeb011461079d578063dc33e681146107b2578063e0a80853146107d2578063e985e9c5146107f2578063efbd73f41461083b578063f2fde38b1461085b57600080fd5b8063a45ba8e71461070d578063b187bd2614610722578063b88d4fde14610737578063c49b3d541461074a578063c87b56dd1461076a578063d2cab0561461078a57600080fd5b80638fdcf942116101135780638fdcf942146106235780639231ab2a1461064357806394354fd0146106b057806395d89b41146106c5578063a0712d68146106da578063a22cb465146106ed57600080fd5b8063715018a61461057b5780637348af12146105905780637ec4a659146105a5578063811d2437146105c55780638da5cb5b146105e55780638f2fc60b1461060357600080fd5b80632a55205a116101fe5780635f3daecb116101b75780635f3daecb146104e25780635ff10e39146104fa57806360d938dc146105115780636352211e1461052657806366a88d961461054657806370a082311461055b57600080fd5b80632a55205a1461041b5780632d3908051461045a57806340af91ec1461047a57806342842e0e1461049a5780634fdd43cb146104ad578063564566a8146104cd57600080fd5b806313faede61161025057806313faede61461037b57806318160ddd1461039e57806323b872dd146103b357806324600fc3146103c657806325b568a3146103db5780632931ec16146103fb57600080fd5b806233ab301461029757806301970b4e146102b957806301ffc9a7146102d957806306fdde031461030e578063081812fc14610330578063095ea7b314610368575b600080fd5b3480156102a357600080fd5b506102b76102b2366004611f70565b61087b565b005b3480156102c557600080fd5b506102b76102d4366004611f70565b6108a9565b3480156102e557600080fd5b506102f96102f4366004611f9f565b6108d7565b60405190151581526020015b60405180910390f35b34801561031a57600080fd5b506103236108f7565b6040516103059190612014565b34801561033c57600080fd5b5061035061034b366004611f70565b610989565b6040516001600160a01b039091168152602001610305565b6102b7610376366004612043565b6109cd565b34801561038757600080fd5b50610390610a6d565b604051908152602001610305565b3480156103aa57600080fd5b50610390610a8a565b6102b76103c136600461206d565b610a98565b3480156103d257600080fd5b506102b7610c30565b3480156103e757600080fd5b506102b76103f6366004611f70565b610ce1565b34801561040757600080fd5b506102b7610416366004611f70565b610d0f565b34801561042757600080fd5b5061043b6104363660046120a9565b610d3d565b604080516001600160a01b039093168352602083019190915201610305565b34801561046657600080fd5b506102b7610475366004611f70565b610de9565b34801561048657600080fd5b506102b76104953660046120cb565b610e17565b6102b76104a836600461206d565b610e48565b3480156104b957600080fd5b506102b76104c836600461218b565b610e68565b3480156104d957600080fd5b506102f9610ea7565b3480156104ee57600080fd5b50600d5460ff166102f9565b34801561050657600080fd5b5060145415156102f9565b34801561051d57600080fd5b506102f9610ece565b34801561053257600080fd5b50610350610541366004611f70565b610ed7565b34801561055257600080fd5b50610390610ee2565b34801561056757600080fd5b506103906105763660046121d4565b610eff565b34801561058757600080fd5b506102b7610f4e565b34801561059c57600080fd5b506102f9610f62565b3480156105b157600080fd5b506102b76105c036600461218b565b610f86565b3480156105d157600080fd5b506102b76105e0366004611f70565b610fc5565b3480156105f157600080fd5b50600a546001600160a01b0316610350565b34801561060f57600080fd5b506102b761061e3660046121ef565b610ff3565b34801561062f57600080fd5b506102b761063e366004611f70565b611009565b34801561064f57600080fd5b5061066361065e366004611f70565b611037565b604051610305919081516001600160a01b0316815260208083015167ffffffffffffffff169082015260408083015115159082015260609182015162ffffff169181019190915260800190565b3480156106bc57600080fd5b50610390611064565b3480156106d157600080fd5b50610323611081565b6102b76106e8366004611f70565b611090565b3480156106f957600080fd5b506102b7610708366004612242565b6111ba565b34801561071957600080fd5b50610323611226565b34801561072e57600080fd5b506102f96112b4565b6102b7610745366004612275565b6112bc565b34801561075657600080fd5b506102b7610765366004611f70565b611306565b34801561077657600080fd5b50610323610785366004611f70565b611365565b6102b76107983660046122f1565b6114f5565b3480156107a957600080fd5b50611388610390565b3480156107be57600080fd5b506103906107cd3660046121d4565b611666565b3480156107de57600080fd5b506102b76107ed3660046123a3565b611691565b3480156107fe57600080fd5b506102f961080d3660046123be565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561084757600080fd5b506102b76108563660046123e8565b6116ac565b34801561086757600080fd5b506102b76108763660046121d4565b61174b565b6108836117c1565b806000036108a45760405163ce97275360e01b815260040160405180910390fd5b601155565b6108b16117c1565b806000036108d25760405163ce97275360e01b815260040160405180910390fd5b601355565b60006108e28261181b565b806108f157506108f182611869565b92915050565b6060600280546109069061240b565b80601f01602080910402602001604051908101604052809291908181526020018280546109329061240b565b801561097f5780601f106109545761010080835404028352916020019161097f565b820191906000526020600020905b81548152906001019060200180831161096257829003601f168201915b5050505050905090565b60006109948261189e565b6109b1576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006109d882610ed7565b9050336001600160a01b03821614610a11576109f4813361080d565b610a11576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000610a77610ece565b15610a835750600e5490565b50600f5490565b600154600054036000190190565b6000610aa3826118d3565b9050836001600160a01b0316816001600160a01b031614610ad65760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b03881690911417610b2357610b06863361080d565b610b2357604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610b4a57604051633a954ecd60e21b815260040160405180910390fd5b8015610b5557600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b84169003610be757600184016000818152600460205260408120549003610be5576000548114610be55760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b610c386117c1565b47600003610c59576040516336fd5bdd60e11b815260040160405180910390fd5b6000610c6d600a546001600160a01b031690565b6001600160a01b03164760405160006040518083038185875af1925050503d8060008114610cb7576040519150601f19603f3d011682016040523d82523d6000602084013e610cbc565b606091505b5050905080610cde57604051637108461760e11b815260040160405180910390fd5b50565b610ce96117c1565b80600003610d0a5760405163ce97275360e01b815260040160405180910390fd5b601255565b610d176117c1565b80600003610d3857604051636ec3f8bb60e11b815260040160405180910390fd5b601455565b60008281526009602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610db25750604080518082019091526008546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610dd1906001600160601b03168761245b565b610ddb9190612490565b915196919550909350505050565b610df16117c1565b80600003610e125760405163ce97275360e01b815260040160405180910390fd5b601055565b610e1f6117c1565b600d805482919061ff001916610100836002811115610e4057610e406124a4565b021790555050565b610e63838383604051806020016040528060008152506112bc565b505050565b610e706117c1565b80518190600003610e9457604051636ec3f8bb60e11b815260040160405180910390fd5b8151610e6390600c906020850190611ed7565b600060025b600d54610100900460ff166002811115610ec857610ec86124a4565b14905090565b60006001610eac565b60006108f1826118d3565b6000610eec610ece565b15610ef8575060115490565b5060105490565b60006001600160a01b038216610f28576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610f566117c1565b610f606000611942565b565b600080600b8054610f729061240b565b90501115610f805750600190565b50600090565b610f8e6117c1565b80518190600003610fb257604051636ec3f8bb60e11b815260040160405180910390fd5b8151610e6390600b906020850190611ed7565b610fcd6117c1565b80600003610fee5760405163ce97275360e01b815260040160405180910390fd5b600f55565b610ffb6117c1565b6110058282611994565b5050565b6110116117c1565b806000036110325760405163ce97275360e01b815260040160405180910390fd5b600e55565b6040805160808101825260008082526020820181905291810182905260608101919091526108f182611a91565b600061106e610ece565b1561107a575060135490565b5060125490565b6060600380546109069061240b565b806110996112b4565b156110b7576040516395159d3360e01b815260040160405180910390fd5b8015806110ca57506110c7611064565b81115b156110e85760405163198ab09360e01b815260040160405180910390fd5b611388816110f4610a8a565b6110fe91906124ba565b111561111d57604051635f26a48b60e11b815260040160405180910390fd5b611125610ea7565b61114257604051638bdd6d0b60e01b815260040160405180910390fd5b8161114b610a6d565b611155919061245b565b3410156111755760405163104c4e5760e21b815260040160405180910390fd5b61117d610ee2565b8261118733610eff565b61119191906124ba565b11156111b0576040516337a63f6760e01b815260040160405180910390fd5b6110053383611b09565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600c80546112339061240b565b80601f016020809104026020016040519081016040528092919081815260200182805461125f9061240b565b80156112ac5780601f10611281576101008083540402835291602001916112ac565b820191906000526020600020905b81548152906001019060200180831161128f57829003601f168201915b505050505081565b600080610eac565b6112c7848484610a98565b6001600160a01b0383163b15611300576112e384848484611c07565b611300576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b80806000036113285760405163198ab09360e01b815260040160405180910390fd5b61138881611334610a8a565b61133e91906124ba565b111561135d57604051635f26a48b60e11b815260040160405180910390fd5b6111b06117c1565b60606113708261189e565b6113d95760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084015b60405180910390fd5b600d5460ff16151560000361147a57600c80546113f59061240b565b80601f01602080910402602001604051908101604052809291908181526020018280546114219061240b565b801561146e5780601f106114435761010080835404028352916020019161146e565b820191906000526020600020905b81548152906001019060200180831161145157829003601f168201915b50505050509050919050565b6000611484611cf3565b905060008151116114a457604051806020016040528060008152506114ee565b806114ae84611d02565b60405180604001604052806005815260200164173539b7b760d91b8152506040516020016114de939291906124d2565b6040516020818303038152906040525b9392505050565b816114fe6112b4565b1561151c576040516395159d3360e01b815260040160405180910390fd5b80158061152f575061152c611064565b81115b1561154d5760405163198ab09360e01b815260040160405180910390fd5b61138881611559610a8a565b61156391906124ba565b111561158257604051635f26a48b60e11b815260040160405180910390fd5b61158a610ece565b6115a757604051638bdd6d0b60e01b815260040160405180910390fd5b6014546115c757604051630dc0d45d60e01b815260040160405180910390fd5b6115d18233611e03565b6115ee5760405163384fd4db60e21b815260040160405180910390fd5b826115f7610a6d565b611601919061245b565b3410156116215760405163104c4e5760e21b815260040160405180910390fd5b611629610ee2565b8361163333610eff565b61163d91906124ba565b111561165c576040516337a63f6760e01b815260040160405180910390fd5b610e633384611b09565b6001600160a01b0381166000908152600560205260408082205467ffffffffffffffff911c166108f1565b6116996117c1565b600d805460ff1916911515919091179055565b816116b56112b4565b156116d3576040516395159d3360e01b815260040160405180910390fd5b8015806116e657506116e3611064565b81115b156117045760405163198ab09360e01b815260040160405180910390fd5b61138881611710610a8a565b61171a91906124ba565b111561173957604051635f26a48b60e11b815260040160405180910390fd5b6117416117c1565b610e638284611b09565b6117536117c1565b6001600160a01b0381166117b85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016113d0565b610cde81611942565b600a546001600160a01b03163314610f605760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016113d0565b60006301ffc9a760e01b6001600160e01b03198316148061184c57506380ac58cd60e01b6001600160e01b03198316145b806108f15750506001600160e01b031916635b5e139f60e01b1490565b60006001600160e01b0319821663152a902d60e11b14806108f157506301ffc9a760e01b6001600160e01b03198316146108f1565b6000816001111580156118b2575060005482105b80156108f1575050600090815260046020526040902054600160e01b161590565b60008180600111611929576000548110156119295760008181526004602052604081205490600160e01b82169003611927575b806000036114ee575060001901600081815260046020526040902054611906565b505b604051636f96cda160e11b815260040160405180910390fd5b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6127106001600160601b0382161115611a025760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084016113d0565b6001600160a01b038216611a585760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c69642072656365697665720000000000000060448201526064016113d0565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600855565b6040805160808101825260008082526020820181905291810182905260608101919091526108f1611ac1836118d3565b604080516080810182526001600160a01b038316815260a083901c67ffffffffffffffff166020820152600160e01b831615159181019190915260e89190911c606082015290565b6000805490829003611b2e5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b818114611bdd57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101611ba5565b5081600003611bfe57604051622e076360e81b815260040160405180910390fd5b60005550505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611c3c903390899088908890600401612515565b6020604051808303816000875af1925050508015611c77575060408051601f3d908101601f19168201909252611c7491810190612552565b60015b611cd5573d808015611ca5576040519150601f19603f3d011682016040523d82523d6000602084013e611caa565b606091505b508051600003611ccd576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060600b80546109069061240b565b606081600003611d295750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611d535780611d3d8161256f565b9150611d4c9050600a83612490565b9150611d2d565b60008167ffffffffffffffff811115611d6e57611d6e6120ec565b6040519080825280601f01601f191660200182016040528015611d98576020820181803683370190505b5090505b8415611ceb57611dad600183612588565b9150611dba600a8661259f565b611dc59060306124ba565b60f81b818381518110611dda57611dda6125b3565b60200101906001600160f81b031916908160001a905350611dfc600a86612490565b9450611d9c565b6014546040516bffffffffffffffffffffffff19606084901b1660208201526000916114ee9185919060340160405160208183030381529060405280519060200120600082611e528584611e5b565b14949350505050565b600081815b8451811015611ea057611e8c82868381518110611e7f57611e7f6125b3565b6020026020010151611ea8565b915080611e988161256f565b915050611e60565b509392505050565b6000818310611ec45760008281526020849052604090206114ee565b60008381526020839052604090206114ee565b828054611ee39061240b565b90600052602060002090601f016020900481019282611f055760008555611f4b565b82601f10611f1e57805160ff1916838001178555611f4b565b82800160010185558215611f4b579182015b82811115611f4b578251825591602001919060010190611f30565b50611f57929150611f5b565b5090565b5b80821115611f575760008155600101611f5c565b600060208284031215611f8257600080fd5b5035919050565b6001600160e01b031981168114610cde57600080fd5b600060208284031215611fb157600080fd5b81356114ee81611f89565b60005b83811015611fd7578181015183820152602001611fbf565b838111156113005750506000910152565b60008151808452612000816020860160208601611fbc565b601f01601f19169290920160200192915050565b6020815260006114ee6020830184611fe8565b80356001600160a01b038116811461203e57600080fd5b919050565b6000806040838503121561205657600080fd5b61205f83612027565b946020939093013593505050565b60008060006060848603121561208257600080fd5b61208b84612027565b925061209960208501612027565b9150604084013590509250925092565b600080604083850312156120bc57600080fd5b50508035926020909101359150565b6000602082840312156120dd57600080fd5b8135600381106114ee57600080fd5b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561212b5761212b6120ec565b604052919050565b600067ffffffffffffffff83111561214d5761214d6120ec565b612160601f8401601f1916602001612102565b905082815283838301111561217457600080fd5b828260208301376000602084830101529392505050565b60006020828403121561219d57600080fd5b813567ffffffffffffffff8111156121b457600080fd5b8201601f810184136121c557600080fd5b611ceb84823560208401612133565b6000602082840312156121e657600080fd5b6114ee82612027565b6000806040838503121561220257600080fd5b61220b83612027565b915060208301356001600160601b038116811461222757600080fd5b809150509250929050565b8035801515811461203e57600080fd5b6000806040838503121561225557600080fd5b61225e83612027565b915061226c60208401612232565b90509250929050565b6000806000806080858703121561228b57600080fd5b61229485612027565b93506122a260208601612027565b925060408501359150606085013567ffffffffffffffff8111156122c557600080fd5b8501601f810187136122d657600080fd5b6122e587823560208401612133565b91505092959194509250565b6000806040838503121561230457600080fd5b8235915060208084013567ffffffffffffffff8082111561232457600080fd5b818601915086601f83011261233857600080fd5b81358181111561234a5761234a6120ec565b8060051b915061235b848301612102565b818152918301840191848101908984111561237557600080fd5b938501935b838510156123935784358252938501939085019061237a565b8096505050505050509250929050565b6000602082840312156123b557600080fd5b6114ee82612232565b600080604083850312156123d157600080fd5b6123da83612027565b915061226c60208401612027565b600080604083850312156123fb57600080fd5b8235915061226c60208401612027565b600181811c9082168061241f57607f821691505b60208210810361243f57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561247557612475612445565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261249f5761249f61247a565b500490565b634e487b7160e01b600052602160045260246000fd5b600082198211156124cd576124cd612445565b500190565b600084516124e4818460208901611fbc565b8451908301906124f8818360208901611fbc565b845191019061250b818360208801611fbc565b0195945050505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061254890830184611fe8565b9695505050505050565b60006020828403121561256457600080fd5b81516114ee81611f89565b60006001820161258157612581612445565b5060010190565b60008282101561259a5761259a612445565b500390565b6000826125ae576125ae61247a565b500690565b634e487b7160e01b600052603260045260246000fdfea264697066735822122054a4c55e3596ee77c1a7af568e35e1202dce86a20d28f3f59bb1bba67860f62764736f6c634300080e0033
Deployed Bytecode Sourcemap
76007:9864:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;82528:175;;;;;;;;;;-1:-1:-1;82528:175:0;;;;;:::i;:::-;;:::i;:::-;;82168:171;;;;;;;;;;-1:-1:-1;82168:171:0;;;;;:::i;:::-;;:::i;77685:257::-;;;;;;;;;;-1:-1:-1;77685:257:0;;;;;:::i;:::-;;:::i;:::-;;;750:14:1;;743:22;725:41;;713:2;698:18;77685:257:0;;;;;;;;33089:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;39838:234::-;;;;;;;;;;-1:-1:-1;39838:234:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1692:32:1;;;1674:51;;1662:2;1647:18;39838:234:0;1528:203:1;39246:433:0;;;;;;:::i;:::-;;:::i;79587:142::-;;;;;;;;;;;;;:::i;:::-;;;2319:25:1;;;2307:2;2292:18;79587:142:0;2173:177:1;28730:323:0;;;;;;;;;;;;;:::i;43559:3003::-;;;;;;:::i;:::-;;:::i;85615:253::-;;;;;;;;;;;;;:::i;81991:169::-;;;;;;;;;;-1:-1:-1;81991:169:0;;;;;:::i;:::-;;:::i;80900:170::-;;;;;;;;;;-1:-1:-1;80900:170:0;;;;;:::i;:::-;;:::i;10847:480::-;;;;;;;;;;-1:-1:-1;10847:480:0;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;3318:32:1;;;3300:51;;3382:2;3367:18;;3360:34;;;;3273:18;10847:480:0;3126:274:1;82347:173:0;;;;;;;;;;-1:-1:-1;82347:173:0;;;;;:::i;:::-;;:::i;80609:101::-;;;;;;;;;;-1:-1:-1;80609:101:0;;;;;:::i;:::-;;:::i;46658:193::-;;;;;;:::i;:::-;;:::i;81173:272::-;;;;;;;;;;-1:-1:-1;81173:272:0;;;;;:::i;:::-;;:::i;79365:108::-;;;;;;;;;;;;;:::i;79919:86::-;;;;;;;;;;-1:-1:-1;79989:8:0;;;;79919:86;;79481:98;;;;;;;;;;-1:-1:-1;79553:12:0;;:18;;79481:98;;79245:112;;;;;;;;;;;;;:::i;34545:168::-;;;;;;;;;;-1:-1:-1;34545:168:0;;;;;:::i;:::-;;:::i;78951:174::-;;;;;;;;;;;;;:::i;29914:249::-;;;;;;;;;;-1:-1:-1;29914:249:0;;;;;:::i;:::-;;:::i;5429:103::-;;;;;;;;;;;;;:::i;80013:137::-;;;;;;;;;;;;;:::i;81453:216::-;;;;;;;;;;-1:-1:-1;81453:216:0;;;;;:::i;:::-;;:::i;81677:148::-;;;;;;;;;;-1:-1:-1;81677:148:0;;;;;:::i;:::-;;:::i;4781:87::-;;;;;;;;;;-1:-1:-1;4854:6:0;;-1:-1:-1;;;;;4854:6:0;4781:87;;80718:174;;;;;;;;;;-1:-1:-1;80718:174:0;;;;;:::i;:::-;;:::i;81833:150::-;;;;;;;;;;-1:-1:-1;81833:150:0;;;;;:::i;:::-;;:::i;80281:154::-;;;;;;;;;;-1:-1:-1;80281:154:0;;;;;:::i;:::-;;:::i;:::-;;;;;;5754:13:1;;-1:-1:-1;;;;;5750:39:1;5732:58;;5850:4;5838:17;;;5832:24;5858:18;5828:49;5806:20;;;5799:79;5948:4;5936:17;;;5930:24;5923:32;5916:40;5894:20;;;5887:70;6017:4;6005:17;;;5999:24;6025:8;5995:39;5973:20;;;5966:69;;;;5719:3;5704:19;;5523:518;79737:174:0;;;;;;;;;;;;;:::i;33265:104::-;;;;;;;;;;;;;:::i;84746:366::-;;;;;;:::i;:::-;;:::i;40412:259::-;;;;;;;;;;-1:-1:-1;40412:259:0;;;;;:::i;:::-;;:::i;76259:31::-;;;;;;;;;;;;;:::i;79133:104::-;;;;;;;;;;;;;:::i;47449:407::-;;;;;;:::i;:::-;;:::i;85298:144::-;;;;;;;;;;-1:-1:-1;85298:144:0;;;;;:::i;:::-;;:::i;82994:701::-;;;;;;;;;;-1:-1:-1;82994:701:0;;;;;:::i;:::-;;:::i;84171:567::-;;;;;;:::i;:::-;;:::i;78854:89::-;;;;;;;;;;-1:-1:-1;76762:4:0;78854:89;;80158:115;;;;;;;;;;-1:-1:-1;80158:115:0;;;;;:::i;:::-;;:::i;81078:87::-;;;;;;;;;;-1:-1:-1;81078:87:0;;;;;:::i;:::-;;:::i;40828:189::-;;;;;;;;;;-1:-1:-1;40828:189:0;;;;;:::i;:::-;-1:-1:-1;;;;;40974:25:0;;;40950:4;40974:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;40828:189;85120:170;;;;;;;;;;-1:-1:-1;85120:170:0;;;;;:::i;:::-;;:::i;5687:238::-;;;;;;;;;;-1:-1:-1;5687:238:0;;;;;:::i;:::-;;:::i;82528:175::-;4667:13;:11;:13::i;:::-;82610:6:::1;82620:1;82610:11:::0;82606:43:::1;;82630:19;;-1:-1:-1::0;;;82630:19:0::1;;;;;;;;;;;82606:43;82660:26;:35:::0;82528:175::o;82168:171::-;4667:13;:11;:13::i;:::-;82248:6:::1;82258:1;82248:11:::0;82244:43:::1;;82268:19;;-1:-1:-1::0;;;82268:19:0::1;;;;;;;;;;;82244:43;82298:24;:33:::0;82168:171::o;77685:257::-;77804:4;77841:38;77867:11;77841:25;:38::i;:::-;:93;;;;77896:38;77922:11;77896:25;:38::i;:::-;77821:113;77685:257;-1:-1:-1;;77685:257:0:o;33089:100::-;33143:13;33176:5;33169:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33089:100;:::o;39838:234::-;39930:7;39955:16;39963:7;39955;:16::i;:::-;39950:64;;39980:34;;-1:-1:-1;;;39980:34:0;;;;;;;;;;;39950:64;-1:-1:-1;40034:24:0;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;40034:30:0;;39838:234::o;39246:433::-;39360:13;39376:16;39384:7;39376;:16::i;:::-;39360:32;-1:-1:-1;64595:10:0;-1:-1:-1;;;;;39409:28:0;;;39405:175;;39457:44;39474:5;64595:10;40828:189;:::i;39457:44::-;39452:128;;39529:35;;-1:-1:-1;;;39529:35:0;;;;;;;;;;;39452:128;39592:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;39592:35:0;-1:-1:-1;;;;;39592:35:0;;;;;;;;;39643:28;;39592:24;;39643:28;;;;;;;39349:330;39246:433;;:::o;79587:142::-;79624:7;79648:17;:15;:17::i;:::-;79644:44;;;-1:-1:-1;79674:14:0;;;79587:142::o;79644:44::-;-1:-1:-1;79708:13:0;;;79587:142::o;28730:323::-;77668:1;29004:12;28791:7;28988:13;:28;-1:-1:-1;;28988:46:0;;28730:323::o;43559:3003::-;43701:27;43731;43750:7;43731:18;:27::i;:::-;43701:57;;43816:4;-1:-1:-1;;;;;43775:45:0;43791:19;-1:-1:-1;;;;;43775:45:0;;43771:99;;43842:28;;-1:-1:-1;;;43842:28:0;;;;;;;;;;;43771:99;43898:27;42667:24;;;:15;:24;;;;;42895:26;;64595:10;42276:30;;;-1:-1:-1;;;;;41969:28:0;;42254:20;;;42251:56;44107:287;;44290:43;44307:4;64595:10;40828:189;:::i;44290:43::-;44285:109;;44359:35;;-1:-1:-1;;;44359:35:0;;;;;;;;;;;44285:109;-1:-1:-1;;;;;44411:16:0;;44407:52;;44436:23;;-1:-1:-1;;;44436:23:0;;;;;;;;;;;44407:52;44608:15;44605:160;;;44748:1;44727:19;44720:30;44605:160;-1:-1:-1;;;;;45145:24:0;;;;;;;:18;:24;;;;;;45143:26;;-1:-1:-1;;45143:26:0;;;45214:22;;;;;;;;;45212:24;;-1:-1:-1;45212:24:0;;;38074:11;38049:23;38045:41;37997:112;-1:-1:-1;;;37997:112:0;45507:26;;;;:17;:26;;;;;:196;;;;-1:-1:-1;;;45823:47:0;;:52;;45819:627;;45928:1;45918:11;;45896:19;46051:30;;;:17;:30;;;;;;:35;;46047:384;;46189:13;;46174:11;:28;46170:242;;46336:30;;;;:17;:30;;;;;:52;;;46170:242;45877:569;45819:627;46493:7;46489:2;-1:-1:-1;;;;;46474:27:0;46483:4;-1:-1:-1;;;;;46474:27:0;;;;;;;;;;;43690:2872;;;43559:3003;;;:::o;85615:253::-;4667:13;:11;:13::i;:::-;85674:21:::1;85699:1;85674:26:::0;85670:59:::1;;85709:20;;-1:-1:-1::0;;;85709:20:0::1;;;;;;;;;;;85670:59;85741:12;85759:7;4854:6:::0;;-1:-1:-1;;;;;4854:6:0;;4781:87;85759:7:::1;-1:-1:-1::0;;;;;85759:12:0::1;85779:21;85759:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;85740:65;;;85821:7;85816:44;;85837:23;;-1:-1:-1::0;;;85837:23:0::1;;;;;;;;;;;85816:44;85659:209;85615:253::o:0;81991:169::-;4667:13;:11;:13::i;:::-;82070:6:::1;82080:1;82070:11:::0;82066:43:::1;;82090:19;;-1:-1:-1::0;;;82090:19:0::1;;;;;;;;;;;82066:43;82120:23;:32:::0;81991:169::o;80900:170::-;4667:13;:11;:13::i;:::-;80979:11:::1;:17;::::0;80975:50:::1;;81005:20;;-1:-1:-1::0;;;81005:20:0::1;;;;;;;;;;;80975:50;81036:12;:26:::0;80900:170::o;10847:480::-;10969:7;11027:27;;;:17;:27;;;;;;;;10998:56;;;;;;;;;-1:-1:-1;;;;;10998:56:0;;;;;-1:-1:-1;;;10998:56:0;;;-1:-1:-1;;;;;10998:56:0;;;;;;;;10969:7;;11067:92;;-1:-1:-1;11118:29:0;;;;;;;;;11128:19;11118:29;-1:-1:-1;;;;;11118:29:0;;;;-1:-1:-1;;;11118:29:0;;-1:-1:-1;;;;;11118:29:0;;;;;11067:92;11209:23;;;;11171:21;;11693:5;;11196:36;;-1:-1:-1;;;;;11196:36:0;:10;:36;:::i;:::-;11195:71;;;;:::i;:::-;11287:16;;;;;-1:-1:-1;10847:480:0;;-1:-1:-1;;;;10847:480:0:o;82347:173::-;4667:13;:11;:13::i;:::-;82428:6:::1;82438:1;82428:11:::0;82424:43:::1;;82448:19;;-1:-1:-1::0;;;82448:19:0::1;;;;;;;;;;;82424:43;82478:25;:34:::0;82347:173::o;80609:101::-;4667:13;:11;:13::i;:::-;80682:10:::1;:20:::0;;80695:7;;80682:10;-1:-1:-1;;80682:20:0::1;;80695:7:::0;80682:20:::1;::::0;::::1;;;;;;:::i;:::-;;;;;;80609:101:::0;:::o;46658:193::-;46804:39;46821:4;46827:2;46831:7;46804:39;;;;;;;;;;;;:16;:39::i;:::-;46658:193;;;:::o;81173:272::-;4667:13;:11;:13::i;:::-;81342:12;;81308:18;;81281::::1;81342:17:::0;81338:50:::1;;81368:20;;-1:-1:-1::0;;;81368:20:0::1;;;;;;;;;;;81338:50;81399:38:::0;;::::1;::::0;:17:::1;::::0;:38:::1;::::0;::::1;::::0;::::1;:::i;79365:108::-:0;79410:4;79448:17;79434:31;:10;;;;;;;:31;;;;;;;;:::i;:::-;;79427:38;;79365:108;:::o;79245:112::-;79293:4;79331:18;79317:32;;34545:168;34633:7;34676:27;34695:7;34676:18;:27::i;78951:174::-;78998:7;79022:17;:15;:17::i;:::-;79018:56;;;-1:-1:-1;79048:26:0;;;78951:174::o;79018:56::-;-1:-1:-1;79092:25:0;;;78951:174::o;29914:249::-;30002:7;-1:-1:-1;;;;;30026:19:0;;30022:60;;30054:28;;-1:-1:-1;;;30054:28:0;;;;;;;;;;;30022:60;-1:-1:-1;;;;;;30100:25:0;;;;;:18;:25;;;;;;24073:13;30100:55;;29914:249::o;5429:103::-;4667:13;:11;:13::i;:::-;5494:30:::1;5521:1;5494:18;:30::i;:::-;5429:103::o:0;80013:137::-;80056:4;80103:1;80083:9;80077:23;;;;;:::i;:::-;;;:27;80073:44;;;-1:-1:-1;80113:4:0;;80013:137::o;80073:44::-;-1:-1:-1;80137:5:0;;80013:137::o;81453:216::-;4667:13;:11;:13::i;:::-;81582:12;;81556:10;;81529:18:::1;81582:17:::0;81578:50:::1;;81608:20;;-1:-1:-1::0;;;81608:20:0::1;;;;;;;;;;;81578:50;81639:22:::0;;::::1;::::0;:9:::1;::::0;:22:::1;::::0;::::1;::::0;::::1;:::i;81677:148::-:0;4667:13;:11;:13::i;:::-;81747:5:::1;81756:1;81747:10:::0;81743:42:::1;;81766:19;;-1:-1:-1::0;;;81766:19:0::1;;;;;;;;;;;81743:42;81796:13;:21:::0;81677:148::o;80718:174::-;4667:13;:11;:13::i;:::-;80836:48:::1;80855:9;80866:17;80836:18;:48::i;:::-;80718:174:::0;;:::o;81833:150::-;4667:13;:11;:13::i;:::-;81904:5:::1;81913:1;81904:10:::0;81900:42:::1;;81923:19;;-1:-1:-1::0;;;81923:19:0::1;;;;;;;;;;;81900:42;81953:14;:22:::0;81833:150::o;80281:154::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;80405:22:0;80418:8;80405:12;:22::i;79737:174::-;79788:7;79812:17;:15;:17::i;:::-;79808:54;;;-1:-1:-1;79838:24:0;;;79737:174::o;79808:54::-;-1:-1:-1;79880:23:0;;;79737:174::o;33265:104::-;33321:13;33354:7;33347:14;;;;;:::i;84746:366::-;84807:7;78170:10;:8;:10::i;:::-;78166:44;;;78189:21;;-1:-1:-1;;;78189:21:0;;;;;;;;;;;78166:44;78225:16;;;:54;;;78259:20;:18;:20::i;:::-;78245:11;:34;78225:54;78221:100;;;78301:20;;-1:-1:-1;;;78301:20:0;;;;;;;;;;;78221:100;76762:4;78352:11;78336:13;:11;:13::i;:::-;:27;;;;:::i;:::-;:41;78332:91;;;78399:24;;-1:-1:-1;;;78399:24:0;;;;;;;;;;;78332:91;84832:14:::1;:12;:14::i;:::-;84827:48;;84855:20;;-1:-1:-1::0;;;84855:20:0::1;;;;;;;;;;;84827:48;84911:7;84902:6;:4;:6::i;:::-;:16;;;;:::i;:::-;84890:9;:28;84886:65;;;84927:24;;-1:-1:-1::0;;;84927:24:0::1;;;;;;;;;;;84886:65;85000:16;:14;:16::i;:::-;84990:7;84966:21;84976:10;84966:9;:21::i;:::-;:31;;;;:::i;:::-;:50;84962:105;;;85038:29;;-1:-1:-1::0;;;85038:29:0::1;;;;;;;;;;;84962:105;85078:26;85084:10;85096:7;85078:5;:26::i;40412:259::-:0;64595:10;40532:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;40532:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;40532:60:0;;;;;;;;;;40608:55;;725:41:1;;;40532:49:0;;64595:10;40608:55;;698:18:1;40608:55:0;;;;;;;40412:259;;:::o;76259:31::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;79133:104::-;79174:4;;79198:31;;47449:407;47624:31;47637:4;47643:2;47647:7;47624:12;:31::i;:::-;-1:-1:-1;;;;;47670:14:0;;;:19;47666:183;;47709:56;47740:4;47746:2;47750:7;47759:5;47709:30;:56::i;:::-;47704:145;;47793:40;;-1:-1:-1;;;47793:40:0;;;;;;;;;;;47704:145;47449:407;;;;:::o;85298:144::-;85378:7;78515:11;78530:1;78515:16;78511:49;;78540:20;;-1:-1:-1;;;78540:20:0;;;;;;;;;;;78511:49;76762:4;78591:11;78575:13;:11;:13::i;:::-;:27;;;;:::i;:::-;:41;78571:91;;;78638:24;;-1:-1:-1;;;78638:24:0;;;;;;;;;;;78571:91;4667:13:::1;:11;:13::i;82994:701::-:0;83084:13;83132:17;83140:8;83132:7;:17::i;:::-;83110:114;;;;-1:-1:-1;;;83110:114:0;;10494:2:1;83110:114:0;;;10476:21:1;10533:2;10513:18;;;10506:30;10572:34;10552:18;;;10545:62;-1:-1:-1;;;10623:18:1;;;10616:45;10678:19;;83110:114:0;;;;;;;;;79989:8;;;;83241:24;;83260:5;83241:24;83237:81;;83289:17;83282:24;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;82994:701;;;:::o;83237:81::-;83330:28;83361:10;:8;:10::i;:::-;83330:41;;83433:1;83408:14;83402:28;:32;:285;;;;;;;;;;;;;;;;;83526:14;83567:19;:8;:17;:19::i;:::-;83613:10;;;;;;;;;;;;;-1:-1:-1;;;83613:10:0;;;83483:163;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;83402:285;83382:305;82994:701;-1:-1:-1;;;82994:701:0:o;84171:567::-;84293:7;78170:10;:8;:10::i;:::-;78166:44;;;78189:21;;-1:-1:-1;;;78189:21:0;;;;;;;;;;;78166:44;78225:16;;;:54;;;78259:20;:18;:20::i;:::-;78245:11;:34;78225:54;78221:100;;;78301:20;;-1:-1:-1;;;78301:20:0;;;;;;;;;;;78221:100;76762:4;78352:11;78336:13;:11;:13::i;:::-;:27;;;;:::i;:::-;:41;78332:91;;;78399:24;;-1:-1:-1;;;78399:24:0;;;;;;;;;;;78332:91;84318:17:::1;:15;:17::i;:::-;84313:51;;84344:20;;-1:-1:-1::0;;;84344:20:0::1;;;;;;;;;;;84313:51;79553:12:::0;;84375:50:::1;;84406:19;;-1:-1:-1::0;;;84406:19:0::1;;;;;;;;;;;84375:50;84441:26;84448:6;84456:10;84441:6;:26::i;:::-;84436:65;;84476:25;;-1:-1:-1::0;;;84476:25:0::1;;;;;;;;;;;84436:65;84537:7;84528:6;:4;:6::i;:::-;:16;;;;:::i;:::-;84516:9;:28;84512:65;;;84553:24;;-1:-1:-1::0;;;84553:24:0::1;;;;;;;;;;;84512:65;84626:16;:14;:16::i;:::-;84616:7;84592:21;84602:10;84592:9;:21::i;:::-;:31;;;;:::i;:::-;:50;84588:105;;;84664:29;;-1:-1:-1::0;;;84664:29:0::1;;;;;;;;;;;84588:105;84704:26;84710:10;84722:7;84704:5;:26::i;80158:115::-:0;-1:-1:-1;;;;;30347:25:0;;80217:7;30347:25;;;:18;:25;;24211:2;30347:25;;;;24073:13;30347:50;;30346:95;80244:21;30245:204;81078:87;4667:13;:11;:13::i;:::-;81140:8:::1;:17:::0;;-1:-1:-1;;81140:17:0::1;::::0;::::1;;::::0;;;::::1;::::0;;81078:87::o;85120:170::-;85227:7;78170:10;:8;:10::i;:::-;78166:44;;;78189:21;;-1:-1:-1;;;78189:21:0;;;;;;;;;;;78166:44;78225:16;;;:54;;;78259:20;:18;:20::i;:::-;78245:11;:34;78225:54;78221:100;;;78301:20;;-1:-1:-1;;;78301:20:0;;;;;;;;;;;78221:100;76762:4;78352:11;78336:13;:11;:13::i;:::-;:27;;;;:::i;:::-;:41;78332:91;;;78399:24;;-1:-1:-1;;;78399:24:0;;;;;;;;;;;78332:91;4667:13:::1;:11;:13::i;:::-;85257:25:::2;85263:9;85274:7;85257:5;:25::i;5687:238::-:0;4667:13;:11;:13::i;:::-;-1:-1:-1;;;;;5790:22:0;::::1;5768:110;;;::::0;-1:-1:-1;;;5768:110:0;;11579:2:1;5768:110:0::1;::::0;::::1;11561:21:1::0;11618:2;11598:18;;;11591:30;11657:34;11637:18;;;11630:62;-1:-1:-1;;;11708:18:1;;;11701:36;11754:19;;5768:110:0::1;11377:402:1::0;5768:110:0::1;5889:28;5908:8;5889:18;:28::i;4946:132::-:0;4854:6;;-1:-1:-1;;;;;4854:6:0;64595:10;5010:23;5002:68;;;;-1:-1:-1;;;5002:68:0;;11986:2:1;5002:68:0;;;11968:21:1;;;12005:18;;;11998:30;12064:34;12044:18;;;12037:62;12116:18;;5002:68:0;11784:356:1;32171:655:0;32272:4;-1:-1:-1;;;;;;;;;32596:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;32673:25:0;;;32596:102;:179;;;-1:-1:-1;;;;;;;;32750:25:0;-1:-1:-1;;;32750:25:0;;32171:655::o;10535:257::-;10653:4;-1:-1:-1;;;;;;10690:41:0;;-1:-1:-1;;;10690:41:0;;:94;;-1:-1:-1;;;;;;;;;;9094:40:0;;;10748:36;8969:173;41275:282;41340:4;41396:7;77668:1;41377:26;;:66;;;;;41430:13;;41420:7;:23;41377:66;:153;;;;-1:-1:-1;;41481:26:0;;;;:17;:26;;;;;;-1:-1:-1;;;41481:44:0;:49;;41275:282::o;35748:1291::-;35831:7;35866;;77668:1;35915:23;35911:1061;;35968:13;;35961:4;:20;35957:1015;;;36006:14;36023:23;;;:17;:23;;;;;;;-1:-1:-1;;;36112:24:0;;:29;;36108:845;;36777:113;36784:6;36794:1;36784:11;36777:113;;-1:-1:-1;;;36855:6:0;36837:25;;;;:17;:25;;;;;;36777:113;;36108:845;35983:989;35957:1015;37000:31;;-1:-1:-1;;;37000:31:0;;;;;;;;;;;6085:191;6178:6;;;-1:-1:-1;;;;;6195:17:0;;;-1:-1:-1;;;;;;6195:17:0;;;;;;;6228:40;;6178:6;;;6195:17;6178:6;;6228:40;;6159:16;;6228:40;6148:128;6085:191;:::o;11977:394::-;11693:5;-1:-1:-1;;;;;12119:33:0;;;;12097:125;;;;-1:-1:-1;;;12097:125:0;;12347:2:1;12097:125:0;;;12329:21:1;12386:2;12366:18;;;12359:30;12425:34;12405:18;;;12398:62;-1:-1:-1;;;12476:18:1;;;12469:40;12526:19;;12097:125:0;12145:406:1;12097:125:0;-1:-1:-1;;;;;12241:22:0;;12233:60;;;;-1:-1:-1;;;12233:60:0;;12758:2:1;12233:60:0;;;12740:21:1;12797:2;12777:18;;;12770:30;12836:27;12816:18;;;12809:55;12881:18;;12233:60:0;12556:349:1;12233:60:0;12328:35;;;;;;;;;-1:-1:-1;;;;;12328:35:0;;;;;;-1:-1:-1;;;;;12328:35:0;;;;;;;;;;-1:-1:-1;;;12306:57:0;;;;:19;:57;11977:394::o;34902:182::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35029:47:0;35048:27;35067:7;35048:18;:27::i;:::-;-1:-1:-1;;;;;;;;;;;;;37264:41:0;;;;24732:3;37350:33;;;37316:68;;-1:-1:-1;;;37316:68:0;-1:-1:-1;;;37414:24:0;;:29;;-1:-1:-1;;;37395:48:0;;;;25253:3;37483:28;;;;-1:-1:-1;;;37454:58:0;-1:-1:-1;37138:382:0;51233:3021;51306:20;51329:13;;;51357;;;51353:44;;51379:18;;-1:-1:-1;;;51379:18:0;;;;;;;;;;;51353:44;-1:-1:-1;;;;;51885:22:0;;;;;;:18;:22;;;;24211:2;51885:22;;;:105;;51957:32;51928:62;;51885:105;;;52233:31;;;:17;:31;;;;;-1:-1:-1;38535:15:0;;38509:24;38505:46;38074:11;38049:23;38045:41;38042:52;37997:112;;52233:194;;52489:23;;;;52233:31;;51885:22;;53254:25;51885:22;;53107:335;53768:1;53754:12;53750:20;53708:346;53809:3;53800:7;53797:16;53708:346;;54027:7;54017:8;54014:1;53987:25;53984:1;53981;53976:59;53862:1;53849:15;53708:346;;;53712:77;54087:8;54099:1;54087:13;54083:45;;54109:19;;-1:-1:-1;;;54109:19:0;;;;;;;;;;;54083:45;54145:13;:19;-1:-1:-1;46658:193:0;;;:::o;49940:831::-;50137:171;;-1:-1:-1;;;50137:171:0;;50103:4;;-1:-1:-1;;;;;50137:45:0;;;;;:171;;64595:10;;50239:4;;50262:7;;50288:5;;50137:171;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;50137:171:0;;;;;;;;-1:-1:-1;;50137:171:0;;;;;;;;;;;;:::i;:::-;;;50120:644;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;50522:6;:13;50539:1;50522:18;50518:235;;50568:40;;-1:-1:-1;;;50568:40:0;;;;;;;;;;;50518:235;50711:6;50705:13;50696:6;50692:2;50688:15;50681:38;50120:644;-1:-1:-1;;;;;;50381:81:0;-1:-1:-1;;;50381:81:0;;-1:-1:-1;50120:644:0;49940:831;;;;;;:::o;82876:110::-;82936:13;82969:9;82962:16;;;;;:::i;530:723::-;586:13;807:5;816:1;807:10;803:53;;-1:-1:-1;;834:10:0;;;;;;;;;;;;-1:-1:-1;;;834:10:0;;;;;530:723::o;803:53::-;881:5;866:12;922:78;929:9;;922:78;;955:8;;;;:::i;:::-;;-1:-1:-1;978:10:0;;-1:-1:-1;986:2:0;978:10;;:::i;:::-;;;922:78;;;1010:19;1042:6;1032:17;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1032:17:0;;1010:39;;1060:154;1067:10;;1060:154;;1094:11;1104:1;1094:11;;:::i;:::-;;-1:-1:-1;1163:10:0;1171:2;1163:5;:10;:::i;:::-;1150:24;;:2;:24;:::i;:::-;1137:39;;1120:6;1127;1120:14;;;;;;;;:::i;:::-;;;;:56;-1:-1:-1;;;;;1120:56:0;;;;;;;;-1:-1:-1;1191:11:0;1200:2;1191:11;;:::i;:::-;;;1060:154;;83868:295;84073:12;;84114:25;;-1:-1:-1;;14326:2:1;14322:15;;;14318:53;84114:25:0;;;14306:66:1;83974:4:0;;84011:144;;84048:6;;84073:12;14388::1;;84114:25:0;;;;;;;;;;;;84104:36;;;;;;67831:4;67884;67855:25;67868:5;67875:4;67855:12;:25::i;:::-;:33;;67706:190;-1:-1:-1;;;;67706:190:0:o;68573:321::-;68681:7;68724:4;68681:7;68739:118;68763:5;:12;68759:1;:16;68739:118;;;68812:33;68822:12;68836:5;68842:1;68836:8;;;;;;;;:::i;:::-;;;;;;;68812:9;:33::i;:::-;68797:48;-1:-1:-1;68777:3:0;;;;:::i;:::-;;;;68739:118;;;-1:-1:-1;68874:12:0;68573:321;-1:-1:-1;;;68573:321:0:o;75040:149::-;75103:7;75134:1;75130;:5;:51;;75290:13;75384:15;;;75420:4;75413:15;;;75467:4;75451:21;;75130:51;;;75290:13;75384:15;;;75420:4;75413:15;;;75467:4;75451:21;;75138:20;75197:293;-1:-1:-1;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;14:180:1;73:6;126:2;114:9;105:7;101:23;97:32;94:52;;;142:1;139;132:12;94:52;-1:-1:-1;165:23:1;;14:180;-1:-1:-1;14:180:1:o;199:131::-;-1:-1:-1;;;;;;273:32:1;;263:43;;253:71;;320:1;317;310:12;335:245;393:6;446:2;434:9;425:7;421:23;417:32;414:52;;;462:1;459;452:12;414:52;501:9;488:23;520:30;544:5;520:30;:::i;777:258::-;849:1;859:113;873:6;870:1;867:13;859:113;;;949:11;;;943:18;930:11;;;923:39;895:2;888:10;859:113;;;990:6;987:1;984:13;981:48;;;-1:-1:-1;;1025:1:1;1007:16;;1000:27;777:258::o;1040:::-;1082:3;1120:5;1114:12;1147:6;1142:3;1135:19;1163:63;1219:6;1212:4;1207:3;1203:14;1196:4;1189:5;1185:16;1163:63;:::i;:::-;1280:2;1259:15;-1:-1:-1;;1255:29:1;1246:39;;;;1287:4;1242:50;;1040:258;-1:-1:-1;;1040:258:1:o;1303:220::-;1452:2;1441:9;1434:21;1415:4;1472:45;1513:2;1502:9;1498:18;1490:6;1472:45;:::i;1736:173::-;1804:20;;-1:-1:-1;;;;;1853:31:1;;1843:42;;1833:70;;1899:1;1896;1889:12;1833:70;1736:173;;;:::o;1914:254::-;1982:6;1990;2043:2;2031:9;2022:7;2018:23;2014:32;2011:52;;;2059:1;2056;2049:12;2011:52;2082:29;2101:9;2082:29;:::i;:::-;2072:39;2158:2;2143:18;;;;2130:32;;-1:-1:-1;;;1914:254:1:o;2355:328::-;2432:6;2440;2448;2501:2;2489:9;2480:7;2476:23;2472:32;2469:52;;;2517:1;2514;2507:12;2469:52;2540:29;2559:9;2540:29;:::i;:::-;2530:39;;2588:38;2622:2;2611:9;2607:18;2588:38;:::i;:::-;2578:48;;2673:2;2662:9;2658:18;2645:32;2635:42;;2355:328;;;;;:::o;2873:248::-;2941:6;2949;3002:2;2990:9;2981:7;2977:23;2973:32;2970:52;;;3018:1;3015;3008:12;2970:52;-1:-1:-1;;3041:23:1;;;3111:2;3096:18;;;3083:32;;-1:-1:-1;2873:248:1:o;3405:271::-;3479:6;3532:2;3520:9;3511:7;3507:23;3503:32;3500:52;;;3548:1;3545;3538:12;3500:52;3587:9;3574:23;3626:1;3619:5;3616:12;3606:40;;3642:1;3639;3632:12;3681:127;3742:10;3737:3;3733:20;3730:1;3723:31;3773:4;3770:1;3763:15;3797:4;3794:1;3787:15;3813:275;3884:2;3878:9;3949:2;3930:13;;-1:-1:-1;;3926:27:1;3914:40;;3984:18;3969:34;;4005:22;;;3966:62;3963:88;;;4031:18;;:::i;:::-;4067:2;4060:22;3813:275;;-1:-1:-1;3813:275:1:o;4093:407::-;4158:5;4192:18;4184:6;4181:30;4178:56;;;4214:18;;:::i;:::-;4252:57;4297:2;4276:15;;-1:-1:-1;;4272:29:1;4303:4;4268:40;4252:57;:::i;:::-;4243:66;;4332:6;4325:5;4318:21;4372:3;4363:6;4358:3;4354:16;4351:25;4348:45;;;4389:1;4386;4379:12;4348:45;4438:6;4433:3;4426:4;4419:5;4415:16;4402:43;4492:1;4485:4;4476:6;4469:5;4465:18;4461:29;4454:40;4093:407;;;;;:::o;4505:451::-;4574:6;4627:2;4615:9;4606:7;4602:23;4598:32;4595:52;;;4643:1;4640;4633:12;4595:52;4683:9;4670:23;4716:18;4708:6;4705:30;4702:50;;;4748:1;4745;4738:12;4702:50;4771:22;;4824:4;4816:13;;4812:27;-1:-1:-1;4802:55:1;;4853:1;4850;4843:12;4802:55;4876:74;4942:7;4937:2;4924:16;4919:2;4915;4911:11;4876:74;:::i;4961:186::-;5020:6;5073:2;5061:9;5052:7;5048:23;5044:32;5041:52;;;5089:1;5086;5079:12;5041:52;5112:29;5131:9;5112:29;:::i;5152:366::-;5219:6;5227;5280:2;5268:9;5259:7;5255:23;5251:32;5248:52;;;5296:1;5293;5286:12;5248:52;5319:29;5338:9;5319:29;:::i;:::-;5309:39;;5398:2;5387:9;5383:18;5370:32;-1:-1:-1;;;;;5435:5:1;5431:38;5424:5;5421:49;5411:77;;5484:1;5481;5474:12;5411:77;5507:5;5497:15;;;5152:366;;;;;:::o;6046:160::-;6111:20;;6167:13;;6160:21;6150:32;;6140:60;;6196:1;6193;6186:12;6211:254;6276:6;6284;6337:2;6325:9;6316:7;6312:23;6308:32;6305:52;;;6353:1;6350;6343:12;6305:52;6376:29;6395:9;6376:29;:::i;:::-;6366:39;;6424:35;6455:2;6444:9;6440:18;6424:35;:::i;:::-;6414:45;;6211:254;;;;;:::o;6470:667::-;6565:6;6573;6581;6589;6642:3;6630:9;6621:7;6617:23;6613:33;6610:53;;;6659:1;6656;6649:12;6610:53;6682:29;6701:9;6682:29;:::i;:::-;6672:39;;6730:38;6764:2;6753:9;6749:18;6730:38;:::i;:::-;6720:48;;6815:2;6804:9;6800:18;6787:32;6777:42;;6870:2;6859:9;6855:18;6842:32;6897:18;6889:6;6886:30;6883:50;;;6929:1;6926;6919:12;6883:50;6952:22;;7005:4;6997:13;;6993:27;-1:-1:-1;6983:55:1;;7034:1;7031;7024:12;6983:55;7057:74;7123:7;7118:2;7105:16;7100:2;7096;7092:11;7057:74;:::i;:::-;7047:84;;;6470:667;;;;;;;:::o;7142:1014::-;7235:6;7243;7296:2;7284:9;7275:7;7271:23;7267:32;7264:52;;;7312:1;7309;7302:12;7264:52;7348:9;7335:23;7325:33;;7377:2;7430;7419:9;7415:18;7402:32;7453:18;7494:2;7486:6;7483:14;7480:34;;;7510:1;7507;7500:12;7480:34;7548:6;7537:9;7533:22;7523:32;;7593:7;7586:4;7582:2;7578:13;7574:27;7564:55;;7615:1;7612;7605:12;7564:55;7651:2;7638:16;7673:2;7669;7666:10;7663:36;;;7679:18;;:::i;:::-;7725:2;7722:1;7718:10;7708:20;;7748:28;7772:2;7768;7764:11;7748:28;:::i;:::-;7810:15;;;7880:11;;;7876:20;;;7841:12;;;;7908:19;;;7905:39;;;7940:1;7937;7930:12;7905:39;7964:11;;;;7984:142;8000:6;7995:3;7992:15;7984:142;;;8066:17;;8054:30;;8017:12;;;;8104;;;;7984:142;;;8145:5;8135:15;;;;;;;;7142:1014;;;;;:::o;8161:180::-;8217:6;8270:2;8258:9;8249:7;8245:23;8241:32;8238:52;;;8286:1;8283;8276:12;8238:52;8309:26;8325:9;8309:26;:::i;8346:260::-;8414:6;8422;8475:2;8463:9;8454:7;8450:23;8446:32;8443:52;;;8491:1;8488;8481:12;8443:52;8514:29;8533:9;8514:29;:::i;:::-;8504:39;;8562:38;8596:2;8585:9;8581:18;8562:38;:::i;8611:254::-;8679:6;8687;8740:2;8728:9;8719:7;8715:23;8711:32;8708:52;;;8756:1;8753;8746:12;8708:52;8792:9;8779:23;8769:33;;8821:38;8855:2;8844:9;8840:18;8821:38;:::i;8870:380::-;8949:1;8945:12;;;;8992;;;9013:61;;9067:4;9059:6;9055:17;9045:27;;9013:61;9120:2;9112:6;9109:14;9089:18;9086:38;9083:161;;9166:10;9161:3;9157:20;9154:1;9147:31;9201:4;9198:1;9191:15;9229:4;9226:1;9219:15;9083:161;;8870:380;;;:::o;9465:127::-;9526:10;9521:3;9517:20;9514:1;9507:31;9557:4;9554:1;9547:15;9581:4;9578:1;9571:15;9597:168;9637:7;9703:1;9699;9695:6;9691:14;9688:1;9685:21;9680:1;9673:9;9666:17;9662:45;9659:71;;;9710:18;;:::i;:::-;-1:-1:-1;9750:9:1;;9597:168::o;9770:127::-;9831:10;9826:3;9822:20;9819:1;9812:31;9862:4;9859:1;9852:15;9886:4;9883:1;9876:15;9902:120;9942:1;9968;9958:35;;9973:18;;:::i;:::-;-1:-1:-1;10007:9:1;;9902:120::o;10027:127::-;10088:10;10083:3;10079:20;10076:1;10069:31;10119:4;10116:1;10109:15;10143:4;10140:1;10133:15;10159:128;10199:3;10230:1;10226:6;10223:1;10220:13;10217:39;;;10236:18;;:::i;:::-;-1:-1:-1;10272:9:1;;10159:128::o;10708:664::-;10935:3;10973:6;10967:13;10989:53;11035:6;11030:3;11023:4;11015:6;11011:17;10989:53;:::i;:::-;11105:13;;11064:16;;;;11127:57;11105:13;11064:16;11161:4;11149:17;;11127:57;:::i;:::-;11251:13;;11206:20;;;11273:57;11251:13;11206:20;11307:4;11295:17;;11273:57;:::i;:::-;11346:20;;10708:664;-1:-1:-1;;;;;10708:664:1:o;12910:489::-;-1:-1:-1;;;;;13179:15:1;;;13161:34;;13231:15;;13226:2;13211:18;;13204:43;13278:2;13263:18;;13256:34;;;13326:3;13321:2;13306:18;;13299:31;;;13104:4;;13347:46;;13373:19;;13365:6;13347:46;:::i;:::-;13339:54;12910:489;-1:-1:-1;;;;;;12910:489:1:o;13404:249::-;13473:6;13526:2;13514:9;13505:7;13501:23;13497:32;13494:52;;;13542:1;13539;13532:12;13494:52;13574:9;13568:16;13593:30;13617:5;13593:30;:::i;13658:135::-;13697:3;13718:17;;;13715:43;;13738:18;;:::i;:::-;-1:-1:-1;13785:1:1;13774:13;;13658:135::o;13798:125::-;13838:4;13866:1;13863;13860:8;13857:34;;;13871:18;;:::i;:::-;-1:-1:-1;13908:9:1;;13798:125::o;13928:112::-;13960:1;13986;13976:35;;13991:18;;:::i;:::-;-1:-1:-1;14025:9:1;;13928:112::o;14045:127::-;14106:10;14101:3;14097:20;14094:1;14087:31;14137:4;14134:1;14127:15;14161:4;14158:1;14151:15
Swarm Source
ipfs://54a4c55e3596ee77c1a7af568e35e1202dce86a20d28f3f59bb1bba67860f627
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.