Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0.000999999999 ETH
Eth Value
$2.03 (@ $2,034.49/ETH)More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 341 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Set Approval For... | 17966255 | 899 days ago | IN | 0 ETH | 0.0015326 | ||||
| Set Approval For... | 17359286 | 985 days ago | IN | 0 ETH | 0.00133627 | ||||
| Set Approval For... | 16753908 | 1070 days ago | IN | 0 ETH | 0.00044929 | ||||
| Set Approval For... | 16369896 | 1124 days ago | IN | 0 ETH | 0.00095914 | ||||
| Set Approval For... | 16348585 | 1127 days ago | IN | 0 ETH | 0.00106471 | ||||
| Set Approval For... | 16348584 | 1127 days ago | IN | 0 ETH | 0.00106283 | ||||
| Set Approval For... | 16135630 | 1156 days ago | IN | 0 ETH | 0.0006889 | ||||
| Transfer From | 15993501 | 1176 days ago | IN | 0 ETH | 0.00109643 | ||||
| Transfer From | 15993497 | 1176 days ago | IN | 0 ETH | 0.00128569 | ||||
| Set Approval For... | 15920551 | 1186 days ago | IN | 0 ETH | 0.00097564 | ||||
| Set Approval For... | 15850270 | 1196 days ago | IN | 0 ETH | 0.00048603 | ||||
| Set Approval For... | 15833035 | 1199 days ago | IN | 0 ETH | 0.00467236 | ||||
| Set Approval For... | 15804699 | 1203 days ago | IN | 0 ETH | 0.00046596 | ||||
| Set Approval For... | 15795950 | 1204 days ago | IN | 0 ETH | 0.0010016 | ||||
| Set Approval For... | 15789081 | 1205 days ago | IN | 0 ETH | 0.00093812 | ||||
| Set Approval For... | 15783756 | 1206 days ago | IN | 0 ETH | 0.00237634 | ||||
| Set Approval For... | 15783755 | 1206 days ago | IN | 0 ETH | 0.00241171 | ||||
| Set Approval For... | 15783755 | 1206 days ago | IN | 0 ETH | 0.00240858 | ||||
| Withdraw ETH | 15348348 | 1270 days ago | IN | 0 ETH | 0.00064147 | ||||
| Set Approval For... | 15202540 | 1293 days ago | IN | 0 ETH | 0.00056313 | ||||
| Set Approval For... | 15168559 | 1298 days ago | IN | 0 ETH | 0.00105043 | ||||
| Set Approval For... | 15127655 | 1305 days ago | IN | 0 ETH | 0.00071419 | ||||
| Set Approval For... | 15127121 | 1305 days ago | IN | 0 ETH | 0.00075281 | ||||
| Set Approval For... | 15117915 | 1306 days ago | IN | 0 ETH | 0.000383 | ||||
| Set Approval For... | 15117914 | 1306 days ago | IN | 0 ETH | 0.00034586 |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
MidnightApes
Compiler Version
v0.8.14+commit.80d49f37
Contract Source Code (Solidity)
/**
*Submitted for verification at Etherscan.io on 2022-06-09
*/
// Sources flattened with hardhat v2.9.7 https://hardhat.org
// File contracts/IERC721A.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
/**
* @dev Interface of an ERC721A compliant contract.
*/
interface IERC721A {
/**
* The caller must own the token or be an approved operator.
*/
error ApprovalCallerNotOwnerNorApproved();
/**
* The token does not exist.
*/
error ApprovalQueryForNonexistentToken();
/**
* The caller cannot approve to their own address.
*/
error ApproveToCaller();
/**
* The caller cannot approve to the current owner.
*/
error ApprovalToCurrentOwner();
/**
* 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();
struct TokenOwnership {
// The address of the owner.
address addr;
// Keeps track of the start time of ownership with minimal overhead for tokenomics.
uint64 startTimestamp;
// Whether the token has been burned.
bool burned;
}
/**
* @dev Returns the total amount of tokens stored by the contract.
*
* Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens.
*/
function totalSupply() external view returns (uint256);
// ==============================
// IERC165
// ==============================
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
// ==============================
// IERC721
// ==============================
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
*/
event ApprovalForAll(address indexed owner, address indexed operator, bool approved);
/**
* @dev Returns the number of tokens in ``owner``'s account.
*/
function balanceOf(address owner) external view returns (uint256 balance);
/**
* @dev Returns the owner of the `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function ownerOf(uint256 tokenId) external view returns (address owner);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes calldata data
) external;
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Transfers `tokenId` token from `from` to `to`.
*
* WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Gives permission to `to` to transfer `tokenId` token to another account.
* The approval is cleared when the token is transferred.
*
* Only a single account can be approved at a time, so approving the zero address clears previous approvals.
*
* Requirements:
*
* - The caller must own the token or be an approved operator.
* - `tokenId` must exist.
*
* Emits an {Approval} event.
*/
function approve(address to, uint256 tokenId) external;
/**
* @dev Approve or remove `operator` as an operator for the caller.
* Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
*
* Requirements:
*
* - The `operator` cannot be the caller.
*
* Emits an {ApprovalForAll} event.
*/
function setApprovalForAll(address operator, bool _approved) external;
/**
* @dev Returns the account approved for `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function getApproved(uint256 tokenId) external view returns (address operator);
/**
* @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
*
* See {setApprovalForAll}
*/
function isApprovedForAll(address owner, address operator) external view returns (bool);
// ==============================
// IERC721Metadata
// ==============================
/**
* @dev Returns the token collection name.
*/
function name() external view returns (string memory);
/**
* @dev Returns the token collection symbol.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
*/
function tokenURI(uint256 tokenId) external view returns (string memory);
}
// File contracts/extensions/IERC721AQueryable.sol
pragma solidity ^0.8.4;
/**
* @dev Interface of an ERC721AQueryable compliant contract.
*/
interface IERC721AQueryable is IERC721A {
/**
* Invalid query range (`start` >= `stop`).
*/
error InvalidQueryRange();
/**
* @dev Returns the `TokenOwnership` struct at `tokenId` without reverting.
*
* If the `tokenId` is out of bounds:
* - `addr` = `address(0)`
* - `startTimestamp` = `0`
* - `burned` = `false`
*
* If the `tokenId` is burned:
* - `addr` = `<Address of owner before token was burned>`
* - `startTimestamp` = `<Timestamp when token was burned>`
* - `burned = `true`
*
* Otherwise:
* - `addr` = `<Address of owner>`
* - `startTimestamp` = `<Timestamp of start of ownership>`
* - `burned = `false`
*/
function explicitOwnershipOf(uint256 tokenId) external view returns (TokenOwnership memory);
/**
* @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order.
* See {ERC721AQueryable-explicitOwnershipOf}
*/
function explicitOwnershipsOf(uint256[] memory tokenIds) external view returns (TokenOwnership[] memory);
/**
* @dev Returns an array of token IDs owned by `owner`,
* in the range [`start`, `stop`)
* (i.e. `start <= tokenId < stop`).
*
* This function allows for tokens to be queried if the collection
* grows too big for a single call of {ERC721AQueryable-tokensOfOwner}.
*
* Requirements:
*
* - `start` < `stop`
*/
function tokensOfOwnerIn(
address owner,
uint256 start,
uint256 stop
) external view returns (uint256[] memory);
/**
* @dev Returns an array of token IDs owned by `owner`.
*
* This function scans the ownership mapping and is O(totalSupply) in complexity.
* It is meant to be called off-chain.
*
* See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into
* multiple smaller scans if the collection is large enough to cause
* an out-of-gas error (10K pfp collections should be fine).
*/
function tokensOfOwner(address owner) external view returns (uint256[] memory);
}
// File contracts/ERC721A.sol
pragma solidity ^0.8.4;
/**
* @dev ERC721 token receiver interface.
*/
interface ERC721A__IERC721Receiver {
function onERC721Received(
address operator,
address from,
uint256 tokenId,
bytes calldata data
) external returns (bytes4);
}
/**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension. Built to optimize for lower gas during batch mints.
*
* Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..).
*
* Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
*
* Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256).
*/
contract ERC721A is IERC721A {
// Mask of an entry in packed address data.
uint256 private constant BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1;
// The bit position of `numberMinted` in packed address data.
uint256 private constant BITPOS_NUMBER_MINTED = 64;
// The bit position of `numberBurned` in packed address data.
uint256 private constant BITPOS_NUMBER_BURNED = 128;
// The bit position of `aux` in packed address data.
uint256 private constant BITPOS_AUX = 192;
// Mask of all 256 bits in packed address data except the 64 bits for `aux`.
uint256 private constant BITMASK_AUX_COMPLEMENT = (1 << 192) - 1;
// The bit position of `startTimestamp` in packed ownership.
uint256 private constant BITPOS_START_TIMESTAMP = 160;
// The bit mask of the `burned` bit in packed ownership.
uint256 private constant BITMASK_BURNED = 1 << 224;
// The bit position of the `nextInitialized` bit in packed ownership.
uint256 private constant BITPOS_NEXT_INITIALIZED = 225;
// The bit mask of the `nextInitialized` bit in packed ownership.
uint256 private constant BITMASK_NEXT_INITIALIZED = 1 << 225;
// The tokenId of the next token to be minted.
uint256 private _currentIndex;
// The number of tokens burned.
uint256 private _burnCounter;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to ownership details
// An empty struct value does not necessarily mean the token is unowned.
// See `_packedOwnershipOf` implementation for details.
//
// Bits Layout:
// - [0..159] `addr`
// - [160..223] `startTimestamp`
// - [224] `burned`
// - [225] `nextInitialized`
mapping(uint256 => uint256) private _packedOwnerships;
// Mapping owner address to address data.
//
// Bits Layout:
// - [0..63] `balance`
// - [64..127] `numberMinted`
// - [128..191] `numberBurned`
// - [192..255] `aux`
mapping(address => uint256) private _packedAddressData;
// Mapping from token ID to approved address.
mapping(uint256 => address) private _tokenApprovals;
// Mapping from owner to operator approvals
mapping(address => mapping(address => bool)) private _operatorApprovals;
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
_currentIndex = _startTokenId();
}
/**
* @dev Returns the starting token ID.
* To change the starting token ID, please override this function.
*/
function _startTokenId() internal view virtual returns (uint256) {
return 0;
}
/**
* @dev Returns the next token ID to be minted.
*/
function _nextTokenId() internal view returns (uint256) {
return _currentIndex;
}
/**
* @dev Returns the total number of tokens in existence.
* Burned tokens will reduce the count.
* To get the total number of tokens minted, please see `_totalMinted`.
*/
function totalSupply() public view override returns (uint256) {
// Counter underflow is impossible as _burnCounter cannot be incremented
// more than `_currentIndex - _startTokenId()` times.
unchecked {
return _currentIndex - _burnCounter - _startTokenId();
}
}
/**
* @dev Returns the total amount of tokens minted in the contract.
*/
function _totalMinted() internal view returns (uint256) {
// Counter underflow is impossible as _currentIndex does not decrement,
// and it is initialized to `_startTokenId()`
unchecked {
return _currentIndex - _startTokenId();
}
}
/**
* @dev Returns the total number of tokens burned.
*/
function _totalBurned() internal view returns (uint256) {
return _burnCounter;
}
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
// The interface IDs are constants representing the first 4 bytes of the XOR of
// all function selectors in the interface. See: https://eips.ethereum.org/EIPS/eip-165
// e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`
return
interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165.
interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721.
interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata.
}
/**
* @dev See {IERC721-balanceOf}.
*/
function balanceOf(address owner) public view override returns (uint256) {
if (_addressToUint256(owner) == 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 auxillary 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 auxillary data for `owner`. (e.g. number of whitelist mint slots used).
* If there are multiple variables, please pack them into a uint64.
*/
function _setAux(address owner, uint64 aux) internal {
uint256 packed = _packedAddressData[owner];
uint256 auxCasted;
assembly { // Cast aux without masking.
auxCasted := aux
}
packed = (packed & BITMASK_AUX_COMPLEMENT) | (auxCasted << BITPOS_AUX);
_packedAddressData[owner] = packed;
}
/**
* Returns the packed ownership data of `tokenId`.
*/
function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) {
uint256 curr = tokenId;
unchecked {
if (_startTokenId() <= curr)
if (curr < _currentIndex) {
uint256 packed = _packedOwnerships[curr];
// If not burned.
if (packed & BITMASK_BURNED == 0) {
// Invariant:
// There will always be an ownership that has an address and is not burned
// before an ownership that does not have an address and is not burned.
// Hence, curr will not underflow.
//
// We can directly compare the packed value.
// If the address is zero, packed is zero.
while (packed == 0) {
packed = _packedOwnerships[--curr];
}
return packed;
}
}
}
revert OwnerQueryForNonexistentToken();
}
/**
* Returns the unpacked `TokenOwnership` struct from `packed`.
*/
function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) {
ownership.addr = address(uint160(packed));
ownership.startTimestamp = uint64(packed >> BITPOS_START_TIMESTAMP);
ownership.burned = packed & BITMASK_BURNED != 0;
}
/**
* Returns the unpacked `TokenOwnership` struct at `index`.
*/
function _ownershipAt(uint256 index) internal view returns (TokenOwnership memory) {
return _unpackedOwnership(_packedOwnerships[index]);
}
/**
* @dev Initializes the ownership slot minted at `index` for efficiency purposes.
*/
function _initializeOwnershipAt(uint256 index) internal {
if (_packedOwnerships[index] == 0) {
_packedOwnerships[index] = _packedOwnershipOf(index);
}
}
/**
* Gas spent here starts off proportional to the maximum mint batch size.
* It gradually moves to O(1) as tokens get transferred around in the collection over time.
*/
function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) {
return _unpackedOwnership(_packedOwnershipOf(tokenId));
}
/**
* @dev See {IERC721-ownerOf}.
*/
function ownerOf(uint256 tokenId) public view override returns (address) {
return address(uint160(_packedOwnershipOf(tokenId)));
}
/**
* @dev See {IERC721Metadata-name}.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev See {IERC721Metadata-symbol}.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev See {IERC721Metadata-tokenURI}.
*/
function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
if (!_exists(tokenId)) revert URIQueryForNonexistentToken();
string memory baseURI = _baseURI();
return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI,_toString(tokenId))) : '';
}
/**
* @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
* token will be the concatenation of the `baseURI` and the `tokenId`. Empty
* by default, can be overriden in child contracts.
*/
function _baseURI() internal view virtual returns (string memory) {
return '';
}
/**
* @dev Casts the address to uint256 without masking.
*/
function _addressToUint256(address value) private pure returns (uint256 result) {
assembly {
result := value
}
}
/**
* @dev Casts the boolean to uint256 without branching.
*/
function _boolToUint256(bool value) private pure returns (uint256 result) {
assembly {
result := value
}
}
/**
* @dev See {IERC721-approve}.
*/
function approve(address to, uint256 tokenId) public override {
address owner = address(uint160(_packedOwnershipOf(tokenId)));
if (to == owner) revert ApprovalToCurrentOwner();
if (_msgSenderERC721A() != owner)
if (!isApprovedForAll(owner, _msgSenderERC721A())) {
revert ApprovalCallerNotOwnerNorApproved();
}
_tokenApprovals[tokenId] = to;
emit Approval(owner, to, tokenId);
}
/**
* @dev See {IERC721-getApproved}.
*/
function getApproved(uint256 tokenId) public view override returns (address) {
if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();
return _tokenApprovals[tokenId];
}
/**
* @dev See {IERC721-setApprovalForAll}.
*/
function setApprovalForAll(address operator, bool approved) public virtual override {
if (operator == _msgSenderERC721A()) revert ApproveToCaller();
_operatorApprovals[_msgSenderERC721A()][operator] = approved;
emit ApprovalForAll(_msgSenderERC721A(), operator, approved);
}
/**
* @dev See {IERC721-isApprovedForAll}.
*/
function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
return _operatorApprovals[owner][operator];
}
/**
* @dev See {IERC721-transferFrom}.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
_transfer(from, to, tokenId);
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
safeTransferFrom(from, to, tokenId, '');
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes memory _data
) public virtual override {
_transfer(from, to, tokenId);
if (to.code.length != 0)
if (!_checkContractOnERC721Received(from, to, tokenId, _data)) {
revert TransferToNonERC721ReceiverImplementer();
}
}
/**
* @dev Returns whether `tokenId` exists.
*
* Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
*
* Tokens start existing when they are minted (`_mint`),
*/
function _exists(uint256 tokenId) internal view returns (bool) {
return
_startTokenId() <= tokenId &&
tokenId < _currentIndex && // If within bounds,
_packedOwnerships[tokenId] & BITMASK_BURNED == 0; // and not burned.
}
/**
* @dev Equivalent to `_safeMint(to, quantity, '')`.
*/
function _safeMint(address to, uint256 quantity) internal {
_safeMint(to, quantity, '');
}
/**
* @dev Safely mints `quantity` tokens and transfers them to `to`.
*
* Requirements:
*
* - If `to` refers to a smart contract, it must implement
* {IERC721Receiver-onERC721Received}, which is called for each safe transfer.
* - `quantity` must be greater than 0.
*
* Emits a {Transfer} event.
*/
function _safeMint(
address to,
uint256 quantity,
bytes memory _data
) internal {
uint256 startTokenId = _currentIndex;
if (_addressToUint256(to) == 0) revert MintToZeroAddress();
if (quantity == 0) revert MintZeroQuantity();
_beforeTokenTransfers(address(0), to, startTokenId, quantity);
// Overflows are incredibly unrealistic.
// balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
// updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
unchecked {
// Updates:
// - `balance += quantity`.
// - `numberMinted += quantity`.
//
// We can directly add to the balance and number minted.
_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] =
_addressToUint256(to) |
(block.timestamp << BITPOS_START_TIMESTAMP) |
(_boolToUint256(quantity == 1) << BITPOS_NEXT_INITIALIZED);
uint256 updatedIndex = startTokenId;
uint256 end = updatedIndex + quantity;
if (to.code.length != 0) {
do {
emit Transfer(address(0), to, updatedIndex);
if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) {
revert TransferToNonERC721ReceiverImplementer();
}
} while (updatedIndex < end);
// Reentrancy protection
if (_currentIndex != startTokenId) revert();
} else {
do {
emit Transfer(address(0), to, updatedIndex++);
} while (updatedIndex < end);
}
_currentIndex = updatedIndex;
}
_afterTokenTransfers(address(0), to, startTokenId, quantity);
}
/**
* @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.
*/
function _mint(address to, uint256 quantity) internal {
uint256 startTokenId = _currentIndex;
if (_addressToUint256(to) == 0) revert MintToZeroAddress();
if (quantity == 0) revert MintZeroQuantity();
_beforeTokenTransfers(address(0), to, startTokenId, quantity);
// Overflows are incredibly unrealistic.
// balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
// updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
unchecked {
// Updates:
// - `balance += quantity`.
// - `numberMinted += quantity`.
//
// We can directly add to the balance and number minted.
_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] =
_addressToUint256(to) |
(block.timestamp << BITPOS_START_TIMESTAMP) |
(_boolToUint256(quantity == 1) << BITPOS_NEXT_INITIALIZED);
uint256 updatedIndex = startTokenId;
uint256 end = updatedIndex + quantity;
do {
emit Transfer(address(0), to, updatedIndex++);
} while (updatedIndex < end);
_currentIndex = updatedIndex;
}
_afterTokenTransfers(address(0), to, startTokenId, quantity);
}
/**
* @dev Transfers `tokenId` from `from` to `to`.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
*
* Emits a {Transfer} event.
*/
function _transfer(
address from,
address to,
uint256 tokenId
) private {
uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);
if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner();
address approvedAddress = _tokenApprovals[tokenId];
bool isApprovedOrOwner = (_msgSenderERC721A() == from ||
isApprovedForAll(from, _msgSenderERC721A()) ||
approvedAddress == _msgSenderERC721A());
if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
if (_addressToUint256(to) == 0) revert TransferToZeroAddress();
_beforeTokenTransfers(from, to, tokenId, 1);
// Clear approvals from the previous owner.
if (_addressToUint256(approvedAddress) != 0) {
delete _tokenApprovals[tokenId];
}
// 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] =
_addressToUint256(to) |
(block.timestamp << BITPOS_START_TIMESTAMP) |
BITMASK_NEXT_INITIALIZED;
// If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) {
uint256 nextTokenId = tokenId + 1;
// If the next slot's address is zero and not burned (i.e. packed value is zero).
if (_packedOwnerships[nextTokenId] == 0) {
// If the next slot is within bounds.
if (nextTokenId != _currentIndex) {
// Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
_packedOwnerships[nextTokenId] = prevOwnershipPacked;
}
}
}
}
emit Transfer(from, to, tokenId);
_afterTokenTransfers(from, to, tokenId, 1);
}
/**
* @dev Equivalent to `_burn(tokenId, false)`.
*/
function _burn(uint256 tokenId) internal virtual {
_burn(tokenId, false);
}
/**
* @dev Destroys `tokenId`.
* The approval is cleared when the token is burned.
*
* Requirements:
*
* - `tokenId` must exist.
*
* Emits a {Transfer} event.
*/
function _burn(uint256 tokenId, bool approvalCheck) internal virtual {
uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);
address from = address(uint160(prevOwnershipPacked));
address approvedAddress = _tokenApprovals[tokenId];
if (approvalCheck) {
bool isApprovedOrOwner = (_msgSenderERC721A() == from ||
isApprovedForAll(from, _msgSenderERC721A()) ||
approvedAddress == _msgSenderERC721A());
if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
}
_beforeTokenTransfers(from, address(0), tokenId, 1);
// Clear approvals from the previous owner.
if (_addressToUint256(approvedAddress) != 0) {
delete _tokenApprovals[tokenId];
}
// 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] =
_addressToUint256(from) |
(block.timestamp << BITPOS_START_TIMESTAMP) |
BITMASK_BURNED |
BITMASK_NEXT_INITIALIZED;
// If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) {
uint256 nextTokenId = tokenId + 1;
// If the next slot's address is zero and not burned (i.e. packed value is zero).
if (_packedOwnerships[nextTokenId] == 0) {
// If the next slot is within bounds.
if (nextTokenId != _currentIndex) {
// Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
_packedOwnerships[nextTokenId] = prevOwnershipPacked;
}
}
}
}
emit Transfer(from, address(0), tokenId);
_afterTokenTransfers(from, address(0), tokenId, 1);
// Overflow not possible, as _burnCounter cannot be exceed _currentIndex times.
unchecked {
_burnCounter++;
}
}
/**
* @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target contract.
*
* @param from address representing the previous owner of the given token ID
* @param to target address that will receive the tokens
* @param tokenId uint256 ID of the token to be transferred
* @param _data bytes optional data to send along with the call
* @return bool whether the call correctly returned the expected magic value
*/
function _checkContractOnERC721Received(
address from,
address to,
uint256 tokenId,
bytes memory _data
) private returns (bool) {
try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns (
bytes4 retval
) {
return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector;
} catch (bytes memory reason) {
if (reason.length == 0) {
revert TransferToNonERC721ReceiverImplementer();
} else {
assembly {
revert(add(32, reason), mload(reason))
}
}
}
}
/**
* @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting.
* And also called before burning one token.
*
* startTokenId - the first token id to be transferred
* quantity - the amount to be transferred
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, `from`'s `tokenId` will be
* transferred to `to`.
* - When `from` is zero, `tokenId` will be minted for `to`.
* - When `to` is zero, `tokenId` will be burned by `from`.
* - `from` and `to` are never both zero.
*/
function _beforeTokenTransfers(
address from,
address to,
uint256 startTokenId,
uint256 quantity
) internal virtual {}
/**
* @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes
* minting.
* And also called after one token has been burned.
*
* startTokenId - the first token id to be transferred
* quantity - the amount to be transferred
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, `from`'s `tokenId` has been
* transferred to `to`.
* - When `from` is zero, `tokenId` has been minted for `to`.
* - When `to` is zero, `tokenId` has been burned by `from`.
* - `from` and `to` are never both zero.
*/
function _afterTokenTransfers(
address from,
address to,
uint256 startTokenId,
uint256 quantity
) internal virtual {}
/**
* @dev Returns the message sender (defaults to `msg.sender`).
*
* If you are writing GSN compatible contracts, you need to override this function.
*/
function _msgSenderERC721A() internal view virtual returns (address) {
return msg.sender;
}
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function _toString(uint256 value) internal pure returns (string memory ptr) {
assembly {
// The maximum value of a uint256 contains 78 digits (1 byte per digit),
// but we allocate 128 bytes to keep the free memory pointer 32-byte word aliged.
// We will need 1 32-byte word to store the length,
// and 3 32-byte words to store a maximum of 78 digits. Total: 32 + 3 * 32 = 128.
ptr := add(mload(0x40), 128)
// Update the free memory pointer to allocate.
mstore(0x40, ptr)
// Cache the end of the memory to calculate the length later.
let end := ptr
// We write the string from the rightmost digit to the leftmost digit.
// The following is essentially a do-while loop that also handles the zero case.
// Costs a bit more than early returning for the zero case,
// but cheaper in terms of deployment and overall runtime costs.
for {
// Initialize and perform the first pass without check.
let temp := value
// Move the pointer 1 byte leftwards to point to an empty character slot.
ptr := sub(ptr, 1)
// Write the character to the pointer. 48 is the ASCII index of '0'.
mstore8(ptr, add(48, mod(temp, 10)))
temp := div(temp, 10)
} temp {
// Keep dividing `temp` until zero.
temp := div(temp, 10)
} { // Body of the for loop.
ptr := sub(ptr, 1)
mstore8(ptr, add(48, mod(temp, 10)))
}
let length := sub(end, ptr)
// Move the pointer 32 bytes leftwards to make room for the length.
ptr := sub(ptr, 32)
// Store the length.
mstore(ptr, length)
}
}
}
// File contracts/extensions/ERC721AQueryable.sol
pragma solidity ^0.8.4;
/**
* @title ERC721A Queryable
* @dev ERC721A subclass with convenience query functions.
*/
abstract contract ERC721AQueryable is ERC721A, IERC721AQueryable {
/**
* @dev Returns the `TokenOwnership` struct at `tokenId` without reverting.
*
* If the `tokenId` is out of bounds:
* - `addr` = `address(0)`
* - `startTimestamp` = `0`
* - `burned` = `false`
*
* If the `tokenId` is burned:
* - `addr` = `<Address of owner before token was burned>`
* - `startTimestamp` = `<Timestamp when token was burned>`
* - `burned = `true`
*
* Otherwise:
* - `addr` = `<Address of owner>`
* - `startTimestamp` = `<Timestamp of start of ownership>`
* - `burned = `false`
*/
function explicitOwnershipOf(uint256 tokenId) public view override returns (TokenOwnership memory) {
TokenOwnership memory ownership;
if (tokenId < _startTokenId() || tokenId >= _nextTokenId()) {
return ownership;
}
ownership = _ownershipAt(tokenId);
if (ownership.burned) {
return ownership;
}
return _ownershipOf(tokenId);
}
/**
* @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order.
* See {ERC721AQueryable-explicitOwnershipOf}
*/
function explicitOwnershipsOf(uint256[] memory tokenIds) external view override returns (TokenOwnership[] memory) {
unchecked {
uint256 tokenIdsLength = tokenIds.length;
TokenOwnership[] memory ownerships = new TokenOwnership[](tokenIdsLength);
for (uint256 i; i != tokenIdsLength; ++i) {
ownerships[i] = explicitOwnershipOf(tokenIds[i]);
}
return ownerships;
}
}
/**
* @dev Returns an array of token IDs owned by `owner`,
* in the range [`start`, `stop`)
* (i.e. `start <= tokenId < stop`).
*
* This function allows for tokens to be queried if the collection
* grows too big for a single call of {ERC721AQueryable-tokensOfOwner}.
*
* Requirements:
*
* - `start` < `stop`
*/
function tokensOfOwnerIn(
address owner,
uint256 start,
uint256 stop
) external view override returns (uint256[] memory) {
unchecked {
if (start >= stop) revert InvalidQueryRange();
uint256 tokenIdsIdx;
uint256 stopLimit = _nextTokenId();
// Set `start = max(start, _startTokenId())`.
if (start < _startTokenId()) {
start = _startTokenId();
}
// Set `stop = min(stop, stopLimit)`.
if (stop > stopLimit) {
stop = stopLimit;
}
uint256 tokenIdsMaxLength = balanceOf(owner);
// Set `tokenIdsMaxLength = min(balanceOf(owner), stop - start)`,
// to cater for cases where `balanceOf(owner)` is too big.
if (start < stop) {
uint256 rangeLength = stop - start;
if (rangeLength < tokenIdsMaxLength) {
tokenIdsMaxLength = rangeLength;
}
} else {
tokenIdsMaxLength = 0;
}
uint256[] memory tokenIds = new uint256[](tokenIdsMaxLength);
if (tokenIdsMaxLength == 0) {
return tokenIds;
}
// We need to call `explicitOwnershipOf(start)`,
// because the slot at `start` may not be initialized.
TokenOwnership memory ownership = explicitOwnershipOf(start);
address currOwnershipAddr;
// If the starting slot exists (i.e. not burned), initialize `currOwnershipAddr`.
// `ownership.address` will not be zero, as `start` is clamped to the valid token ID range.
if (!ownership.burned) {
currOwnershipAddr = ownership.addr;
}
for (uint256 i = start; i != stop && tokenIdsIdx != tokenIdsMaxLength; ++i) {
ownership = _ownershipAt(i);
if (ownership.burned) {
continue;
}
if (ownership.addr != address(0)) {
currOwnershipAddr = ownership.addr;
}
if (currOwnershipAddr == owner) {
tokenIds[tokenIdsIdx++] = i;
}
}
// Downsize the array to fit.
assembly {
mstore(tokenIds, tokenIdsIdx)
}
return tokenIds;
}
}
/**
* @dev Returns an array of token IDs owned by `owner`.
*
* This function scans the ownership mapping and is O(totalSupply) in complexity.
* It is meant to be called off-chain.
*
* See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into
* multiple smaller scans if the collection is large enough to cause
* an out-of-gas error (10K pfp collections should be fine).
*/
function tokensOfOwner(address owner) external view override returns (uint256[] memory) {
unchecked {
uint256 tokenIdsIdx;
address currOwnershipAddr;
uint256 tokenIdsLength = balanceOf(owner);
uint256[] memory tokenIds = new uint256[](tokenIdsLength);
TokenOwnership memory ownership;
for (uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i) {
ownership = _ownershipAt(i);
if (ownership.burned) {
continue;
}
if (ownership.addr != address(0)) {
currOwnershipAddr = ownership.addr;
}
if (currOwnershipAddr == owner) {
tokenIds[tokenIdsIdx++] = i;
}
}
return tokenIds;
}
}
}
// File @openzeppelin/contracts/utils/[email protected]
// 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/[email protected]
// OpenZeppelin Contracts v4.4.1 (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 Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
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/[email protected]
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)
pragma solidity ^0.8.1;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*
* [IMPORTANT]
* ====
* You shouldn't rely on `isContract` to protect against flash loan attacks!
*
* Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
* like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
* constructor.
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize/address.code.length, which returns 0
// for contracts in construction, since the code is only stored at the end
// of the constructor execution.
return account.code.length > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
require(isContract(target), "Address: delegate call to non-contract");
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}
// File @openzeppelin/contracts/utils/escrow/[email protected]
// OpenZeppelin Contracts v4.4.1 (utils/escrow/Escrow.sol)
pragma solidity ^0.8.0;
/**
* @title Escrow
* @dev Base escrow contract, holds funds designated for a payee until they
* withdraw them.
*
* Intended usage: This contract (and derived escrow contracts) should be a
* standalone contract, that only interacts with the contract that instantiated
* it. That way, it is guaranteed that all Ether will be handled according to
* the `Escrow` rules, and there is no need to check for payable functions or
* transfers in the inheritance tree. The contract that uses the escrow as its
* payment method should be its owner, and provide public methods redirecting
* to the escrow's deposit and withdraw.
*/
contract Escrow is Ownable {
using Address for address payable;
event Deposited(address indexed payee, uint256 weiAmount);
event Withdrawn(address indexed payee, uint256 weiAmount);
mapping(address => uint256) private _deposits;
function depositsOf(address payee) public view returns (uint256) {
return _deposits[payee];
}
/**
* @dev Stores the sent amount as credit to be withdrawn.
* @param payee The destination address of the funds.
*/
function deposit(address payee) public payable virtual onlyOwner {
uint256 amount = msg.value;
_deposits[payee] += amount;
emit Deposited(payee, amount);
}
/**
* @dev Withdraw accumulated balance for a payee, forwarding all gas to the
* recipient.
*
* WARNING: Forwarding all gas opens the door to reentrancy vulnerabilities.
* Make sure you trust the recipient, or are either following the
* checks-effects-interactions pattern or using {ReentrancyGuard}.
*
* @param payee The address whose funds will be withdrawn and transferred to.
*/
function withdraw(address payable payee) public virtual onlyOwner {
uint256 payment = _deposits[payee];
_deposits[payee] = 0;
payee.sendValue(payment);
emit Withdrawn(payee, payment);
}
}
// File @openzeppelin/contracts/security/[email protected]
// OpenZeppelin Contracts v4.4.1 (security/PullPayment.sol)
pragma solidity ^0.8.0;
/**
* @dev Simple implementation of a
* https://consensys.github.io/smart-contract-best-practices/recommendations/#favor-pull-over-push-for-external-calls[pull-payment]
* strategy, where the paying contract doesn't interact directly with the
* receiver account, which must withdraw its payments itself.
*
* Pull-payments are often considered the best practice when it comes to sending
* Ether, security-wise. It prevents recipients from blocking execution, and
* eliminates reentrancy concerns.
*
* TIP: If you would like to learn more about reentrancy and alternative ways
* to protect against it, check out our blog post
* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
*
* To use, derive from the `PullPayment` contract, and use {_asyncTransfer}
* instead of Solidity's `transfer` function. Payees can query their due
* payments with {payments}, and retrieve them with {withdrawPayments}.
*/
abstract contract PullPayment {
Escrow private immutable _escrow;
constructor() {
_escrow = new Escrow();
}
/**
* @dev Withdraw accumulated payments, forwarding all gas to the recipient.
*
* Note that _any_ account can call this function, not just the `payee`.
* This means that contracts unaware of the `PullPayment` protocol can still
* receive funds this way, by having a separate account call
* {withdrawPayments}.
*
* WARNING: Forwarding all gas opens the door to reentrancy vulnerabilities.
* Make sure you trust the recipient, or are either following the
* checks-effects-interactions pattern or using {ReentrancyGuard}.
*
* @param payee Whose payments will be withdrawn.
*/
function withdrawPayments(address payable payee) public virtual {
_escrow.withdraw(payee);
}
/**
* @dev Returns the payments owed to an address.
* @param dest The creditor's address.
*/
function payments(address dest) public view returns (uint256) {
return _escrow.depositsOf(dest);
}
/**
* @dev Called by the payer to store the sent amount as credit to be pulled.
* Funds sent in this way are stored in an intermediate {Escrow} contract, so
* there is no danger of them being spent before withdrawal.
*
* @param dest The destination address of the funds.
* @param amount The amount to transfer.
*/
function _asyncTransfer(address dest, uint256 amount) internal virtual {
_escrow.deposit{value: amount}(dest);
}
}
// File contracts/MidnightApe.sol
pragma solidity ^0.8.4;
contract MidnightApes is ERC721AQueryable,Ownable,PullPayment {
bool public revealed = false;
string baseURI;
string hiddenURI;
address private _owner;
uint256 public constant mintPrice = 0.01 ether;
uint256 public startTime;
bool public started = false;
uint128 public constant MAX_TOKENS = 10000;
uint128 public constant ADMIN_AMOUNT = 500;
uint128 public constant FREE_AMOUNT = 2500;
uint256 public adminCount = 0;
constructor(string memory _baseURI,string memory _hiddenURI) ERC721A("Midnight Bird Ape Yacht Club", "MidnightApes") {
hiddenURI = _hiddenURI;
baseURI = _baseURI;
_owner = payable(msg.sender);
}
function isFreeMint() public view returns(bool) {
if(totalMinted() >= FREE_AMOUNT || startTime + 5 hours <= block.timestamp){
return false;
}
return true;
}
function mint(uint256 quantity) external payable {
require(started,"not started to sell");
require(totalMinted() + quantity<= MAX_TOKENS,"Over Total NFTs");
if(isFreeMint()){
require(quantity <= 5,"Over mint limit for one transaction in free sale");
require(numberMinted(msg.sender) + quantity <= 10,"Over free mint amount");
}else{
require(quantity <= 20,"Over mint limit for one transaction in public sale");
uint256 price = mintPrice * quantity;
require(msg.value >= price, "not enough funds");
uint256 adminRemained = ADMIN_AMOUNT - adminCount;
require(totalMinted() + quantity + adminRemained <= MAX_TOKENS,"Over mint amount than possible to mint");
}
_safeMint(msg.sender, quantity);
}
function startMint() external onlyOwner {
startTime = block.timestamp;
started = true;
}
function adminMint(uint256 quantity) external onlyOwner {
require(quantity <= 100,"Over nft amount in one claim");
require(adminCount + quantity <= ADMIN_AMOUNT,"Over admin nft claim");
adminCount += quantity;
_safeMint(msg.sender, quantity);
}
function getOwnershipAt(uint256 index) public view returns (TokenOwnership memory) {
return _ownershipAt(index);
}
function numberBurned(address owner) public view returns (uint256) {
return _numberBurned(owner);
}
function numberMinted(address owner) public view returns (uint256) {
return _numberMinted(owner);
}
function totalMinted() public view returns (uint256) {
return _totalMinted();
}
function totalBurned() public view returns (uint256) {
return _totalBurned();
}
function nextTokenId() public view returns (uint256) {
return _nextTokenId();
}
function setBaseURI(string memory _baseURI) external onlyOwner {
require(!revealed,"Not possible to change the baseURI after revealed");
baseURI = _baseURI;
}
function sethiddenMetadataURI(string memory _hiddenURI) external onlyOwner {
hiddenURI = _hiddenURI;
}
function revealNFT() external onlyOwner {
revealed = true;
}
function transfer() external {
_asyncTransfer(_owner, address(this).balance);
}
function tokenURI(uint256 tokenId)
public
view
virtual
override(ERC721A,IERC721A)
returns (string memory)
{
if (!_exists(tokenId)) revert URIQueryForNonexistentToken();
if(revealed == false){
return hiddenURI;
}
string memory _tokenURI = bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI,"/", _toString(tokenId), ".json")) : '';
return _tokenURI;
}
function getOwnershipOf(uint256 index) public view returns (TokenOwnership memory) {
return _ownershipOf(index);
}
function withdrawETH(address recipient, uint256 amount) external onlyOwner {
require(address(this).balance >= amount, "Insufficient balance");
(bool res,) = recipient.call{value : amount}("");
require(res, "ETH TRANSFER FAILED");
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"},{"internalType":"string","name":"_hiddenURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"InvalidQueryRange","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","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":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"ADMIN_AMOUNT","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FREE_AMOUNT","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TOKENS","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"adminCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"adminMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"}],"internalType":"struct IERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"}],"internalType":"struct IERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"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":"index","type":"uint256"}],"name":"getOwnershipAt","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"}],"internalType":"struct IERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"}],"internalType":"struct IERC721A.TokenOwnership","name":"","type":"tuple"}],"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":"isFreeMint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"numberBurned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"numberMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"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":[{"internalType":"address","name":"dest","type":"address"}],"name":"payments","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_hiddenURI","type":"string"}],"name":"sethiddenMetadataURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"started","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalBurned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"transfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"payee","type":"address"}],"name":"withdrawPayments","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
60a06040526008805460ff60a01b19169055600d805460ff191690556000600e553480156200002d57600080fd5b506040516200321a3803806200321a833981016040819052620000509162000332565b604080518082018252601c81527f4d69646e6967687420426972642041706520596163687420436c75620000000060208083019182528351808501909452600c84526b4d69646e696768744170657360a01b908401528151919291620000b991600291620001b1565b508051620000cf906003906020840190620001b1565b50506000805550620000e1336200015f565b604051620000ef9062000240565b604051809103906000f0801580156200010c573d6000803e3d6000fd5b506001600160a01b031660805280516200012e90600a906020840190620001b1565b50815162000144906009906020850190620001b1565b5050600b80546001600160a01b0319163317905550620003d8565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001bf906200039c565b90600052602060002090601f016020900481019282620001e357600085556200022e565b82601f10620001fe57805160ff19168380011785556200022e565b828001600101855582156200022e579182015b828111156200022e57825182559160200191906001019062000211565b506200023c9291506200024e565b5090565b6105f28062002c2883390190565b5b808211156200023c57600081556001016200024f565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200028d57600080fd5b81516001600160401b0380821115620002aa57620002aa62000265565b604051601f8301601f19908116603f01168101908282118183101715620002d557620002d562000265565b81604052838152602092508683858801011115620002f257600080fd5b600091505b83821015620003165785820183015181830184015290820190620002f7565b83821115620003285760008385830101525b9695505050505050565b600080604083850312156200034657600080fd5b82516001600160401b03808211156200035e57600080fd5b6200036c868387016200027b565b935060208501519150808211156200038357600080fd5b5062000392858286016200027b565b9150509250929050565b600181811c90821680620003b157607f821691505b602082108103620003d257634e487b7160e01b600052602260045260246000fd5b50919050565b6080516128266200040260003960008181610b420152818161186b0152611cdf01526128266000f3fe6080604052600436106102885760003560e01c806370a082311161015a578063b88d4fde116100c1578063dc33e6811161007a578063dc33e68114610770578063e2982c2114610790578063e985e9c5146107b0578063f2523633146107d0578063f2fde38b146107f0578063f47c84c51461081057600080fd5b8063b88d4fde146106c6578063c1f26123146106e6578063c23dc68f14610706578063c2d05a6e14610726578063c87b56dd1461073b578063d89135cd1461075b57600080fd5b80638da5cb5b116101135780638da5cb5b1461064057806395d89b411461065e57806399a2557a14610673578063a0712d6814610693578063a22cb465146106a6578063a2309ff8146105d357600080fd5b806370a082311461059e578063715018a6146105be57806375794a3c146105d357806378e97925146105e85780638462151c146105fe5780638a4068dd1461062b57600080fd5b80632b7832b3116101fe57806351830227116101b757806351830227146104c857806352d8a4d1146104e957806355f804b3146105165780635bbb2177146105365780636352211e146105635780636817c76c1461058357600080fd5b80632b7832b3146104275780632be095611461043d57806331b3eb941461045257806333fe9c2e1461047257806342842e0e146104885780634782f779146104a857600080fd5b8063095ea7b311610250578063095ea7b31461036a578063139fad601461038a57806318160ddd146103aa5780631f2698ab146103cd57806323b872dd146103e75780632478d6391461040757600080fd5b8063017184d91461028d57806301ffc9a7146102c957806304b4bba9146102f957806306fdde0314610310578063081812fc14610332575b600080fd5b34801561029957600080fd5b506102a36109c481565b6040516fffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b3480156102d557600080fd5b506102e96102e43660046120ed565b610826565b60405190151581526020016102c0565b34801561030557600080fd5b5061030e610878565b005b34801561031c57600080fd5b506103256108c0565b6040516102c09190612162565b34801561033e57600080fd5b5061035261034d366004612175565b610952565b6040516001600160a01b0390911681526020016102c0565b34801561037657600080fd5b5061030e6103853660046121a3565b610996565b34801561039657600080fd5b5061030e6103a536600461226c565b610a68565b3480156103b657600080fd5b50600154600054035b6040519081526020016102c0565b3480156103d957600080fd5b50600d546102e99060ff1681565b3480156103f357600080fd5b5061030e6104023660046122b4565b610aa9565b34801561041357600080fd5b506103bf6104223660046122f5565b610ab9565b34801561043357600080fd5b506103bf600e5481565b34801561044957600080fd5b5061030e610ae6565b34801561045e57600080fd5b5061030e61046d3660046122f5565b610b23565b34801561047e57600080fd5b506102a36101f481565b34801561049457600080fd5b5061030e6104a33660046122b4565b610ba1565b3480156104b457600080fd5b5061030e6104c33660046121a3565b610bbc565b3480156104d457600080fd5b506008546102e990600160a01b900460ff1681565b3480156104f557600080fd5b50610509610504366004612175565b610cc6565b6040516102c09190612312565b34801561052257600080fd5b5061030e61053136600461226c565b610cec565b34801561054257600080fd5b50610556610551366004612347565b610d9d565b6040516102c091906123ec565b34801561056f57600080fd5b5061035261057e366004612175565b610e63565b34801561058f57600080fd5b506103bf662386f26fc1000081565b3480156105aa57600080fd5b506103bf6105b93660046122f5565b610e6e565b3480156105ca57600080fd5b5061030e610eb6565b3480156105df57600080fd5b506000546103bf565b3480156105f457600080fd5b506103bf600c5481565b34801561060a57600080fd5b5061061e6106193660046122f5565b610ef1565b6040516102c09190612456565b34801561063757600080fd5b5061030e610ff2565b34801561064c57600080fd5b506008546001600160a01b0316610352565b34801561066a57600080fd5b50610325611008565b34801561067f57600080fd5b5061061e61068e36600461248e565b611017565b61030e6106a1366004612175565b611190565b3480156106b257600080fd5b5061030e6106c13660046124c3565b61146e565b3480156106d257600080fd5b5061030e6106e1366004612501565b611503565b3480156106f257600080fd5b5061030e610701366004612175565b61154d565b34801561071257600080fd5b50610509610721366004612175565b611641565b34801561073257600080fd5b506102e96116aa565b34801561074757600080fd5b50610325610756366004612175565b6116e5565b34801561076757600080fd5b506103bf611814565b34801561077c57600080fd5b506103bf61078b3660046122f5565b61181f565b34801561079c57600080fd5b506103bf6107ab3660046122f5565b611849565b3480156107bc57600080fd5b506102e96107cb366004612580565b6118d8565b3480156107dc57600080fd5b506105096107eb366004612175565b611906565b3480156107fc57600080fd5b5061030e61080b3660046122f5565b61192c565b34801561081c57600080fd5b506102a361271081565b60006301ffc9a760e01b6001600160e01b03198316148061085757506380ac58cd60e01b6001600160e01b03198316145b806108725750635b5e139f60e01b6001600160e01b03198316145b92915050565b6008546001600160a01b031633146108ab5760405162461bcd60e51b81526004016108a2906125ae565b60405180910390fd5b6008805460ff60a01b1916600160a01b179055565b6060600280546108cf906125e3565b80601f01602080910402602001604051908101604052809291908181526020018280546108fb906125e3565b80156109485780601f1061091d57610100808354040283529160200191610948565b820191906000526020600020905b81548152906001019060200180831161092b57829003601f168201915b5050505050905090565b600061095d826119c4565b61097a576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006109a1826119eb565b9050806001600160a01b0316836001600160a01b0316036109d55760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614610a0c576109ef81336118d8565b610a0c576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6008546001600160a01b03163314610a925760405162461bcd60e51b81526004016108a2906125ae565b8051610aa590600a90602084019061203e565b5050565b610ab4838383611a52565b505050565b6000610872826001600160a01b031660009081526005602052604090205460801c6001600160401b031690565b6008546001600160a01b03163314610b105760405162461bcd60e51b81526004016108a2906125ae565b42600c55600d805460ff19166001179055565b6040516351cff8d960e01b81526001600160a01b0382811660048301527f000000000000000000000000000000000000000000000000000000000000000016906351cff8d990602401600060405180830381600087803b158015610b8657600080fd5b505af1158015610b9a573d6000803e3d6000fd5b5050505050565b610ab483838360405180602001604052806000815250611503565b6008546001600160a01b03163314610be65760405162461bcd60e51b81526004016108a2906125ae565b80471015610c2d5760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b60448201526064016108a2565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610c7a576040519150601f19603f3d011682016040523d82523d6000602084013e610c7f565b606091505b5050905080610ab45760405162461bcd60e51b8152602060048201526013602482015272115512081514905394d1915488119052531151606a1b60448201526064016108a2565b604080516060810182526000808252602082018190529181019190915261087282611c0b565b6008546001600160a01b03163314610d165760405162461bcd60e51b81526004016108a2906125ae565b600854600160a01b900460ff1615610d8a5760405162461bcd60e51b815260206004820152603160248201527f4e6f7420706f737369626c6520746f206368616e67652074686520626173655560448201527014924818599d195c881c995d99585b1959607a1b60648201526084016108a2565b8051610aa590600990602084019061203e565b80516060906000816001600160401b03811115610dbc57610dbc6121cf565b604051908082528060200260200182016040528015610e0757816020015b6040805160608101825260008082526020808301829052928201528252600019909201910181610dda5790505b50905060005b828114610e5b57610e36858281518110610e2957610e2961261d565b6020026020010151611641565b828281518110610e4857610e4861261d565b6020908102919091010152600101610e0d565b509392505050565b6000610872826119eb565b600081600003610e91576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6008546001600160a01b03163314610ee05760405162461bcd60e51b81526004016108a2906125ae565b610eea6000611c39565b565b905090565b60606000806000610f0185610e6e565b90506000816001600160401b03811115610f1d57610f1d6121cf565b604051908082528060200260200182016040528015610f46578160200160208202803683370190505b509050610f6c604080516060810182526000808252602082018190529181019190915290565b60005b838614610fe657610f7f81611c8b565b91508160400151610fde5781516001600160a01b031615610f9f57815194505b876001600160a01b0316856001600160a01b031603610fde5780838780600101985081518110610fd157610fd161261d565b6020026020010181815250505b600101610f6f565b50909695505050505050565b600b54610eea906001600160a01b031647611cc0565b6060600380546108cf906125e3565b606081831061103957604051631960ccad60e11b815260040160405180910390fd5b60008061104560005490565b905080841115611053578093505b600061105e87610e6e565b90508486101561107d5785850381811015611077578091505b50611081565b5060005b6000816001600160401b0381111561109b5761109b6121cf565b6040519080825280602002602001820160405280156110c4578160200160208202803683370190505b509050816000036110da57935061118992505050565b60006110e588611641565b9050600081604001516110f6575080515b885b8881141580156111085750848714155b1561117d5761111681611c8b565b925082604001516111755782516001600160a01b03161561113657825191505b8a6001600160a01b0316826001600160a01b03160361117557808488806001019950815181106111685761116861261d565b6020026020010181815250505b6001016110f8565b50505092835250909150505b9392505050565b600d5460ff166111d85760405162461bcd60e51b81526020600482015260136024820152721b9bdd081cdd185c9d1959081d1bc81cd95b1b606a1b60448201526064016108a2565b612710816111e560005490565b6111ef9190612649565b111561122f5760405162461bcd60e51b815260206004820152600f60248201526e4f76657220546f74616c204e46547360881b60448201526064016108a2565b6112376116aa565b156113075760058111156112a65760405162461bcd60e51b815260206004820152603060248201527f4f766572206d696e74206c696d697420666f72206f6e65207472616e7361637460448201526f696f6e20696e20667265652073616c6560801b60648201526084016108a2565b600a816112b23361181f565b6112bc9190612649565b11156113025760405162461bcd60e51b815260206004820152601560248201527413dd995c88199c9959481b5a5b9d08185b5bdd5b9d605a1b60448201526064016108a2565b611461565b60148111156113735760405162461bcd60e51b815260206004820152603260248201527f4f766572206d696e74206c696d697420666f72206f6e65207472616e73616374604482015271696f6e20696e207075626c69632073616c6560701b60648201526084016108a2565b600061138682662386f26fc10000612661565b9050803410156113cb5760405162461bcd60e51b815260206004820152601060248201526f6e6f7420656e6f7567682066756e647360801b60448201526064016108a2565b600e546000906113dd906101f4612680565b905061271081846113ed60005490565b6113f79190612649565b6114019190612649565b111561145e5760405162461bcd60e51b815260206004820152602660248201527f4f766572206d696e7420616d6f756e74207468616e20706f737369626c6520746044820152651bc81b5a5b9d60d21b60648201526084016108a2565b50505b61146b3382611d41565b50565b336001600160a01b038316036114975760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61150e848484611a52565b6001600160a01b0383163b156115475761152a84848484611d5b565b611547576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6008546001600160a01b031633146115775760405162461bcd60e51b81526004016108a2906125ae565b60648111156115c85760405162461bcd60e51b815260206004820152601c60248201527f4f766572206e667420616d6f756e7420696e206f6e6520636c61696d0000000060448201526064016108a2565b600e546101f4906115da908390612649565b111561161f5760405162461bcd60e51b81526020600482015260146024820152734f7665722061646d696e206e667420636c61696d60601b60448201526064016108a2565b80600e60008282546116319190612649565b9091555061146b90503382611d41565b60408051606080820183526000808352602080840182905283850182905284519283018552818352820181905292810183905290915060005483106116865792915050565b61168f83611c8b565b90508060400151156116a15792915050565b61118983611c0b565b60006109c46116b860005490565b1015806116d4575042600c546146506116d19190612649565b11155b156116df5750600090565b50600190565b60606116f0826119c4565b61170d57604051630a14c4b560e41b815260040160405180910390fd5b600854600160a01b900460ff1615156000036117b557600a8054611730906125e3565b80601f016020809104026020016040519081016040528092919081815260200182805461175c906125e3565b80156117a95780601f1061177e576101008083540402835291602001916117a9565b820191906000526020600020905b81548152906001019060200180831161178c57829003601f168201915b50505050509050919050565b6000600980546117c4906125e3565b90506000036117e25760405180602001604052806000815250611189565b60096117ed84611e47565b6040516020016117fe9291906126b3565b6040516020818303038152906040529392505050565b6000610eec60015490565b6001600160a01b038116600090815260056020526040808220546001600160401b03911c16610872565b6040516371d4ed8d60e11b81526001600160a01b0382811660048301526000917f00000000000000000000000000000000000000000000000000000000000000009091169063e3a9db1a90602401602060405180830381865afa1580156118b4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610872919061277d565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b604080516060810182526000808252602082018190529181019190915261087282611c8b565b6008546001600160a01b031633146119565760405162461bcd60e51b81526004016108a2906125ae565b6001600160a01b0381166119bb5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108a2565b61146b81611c39565b6000805482108015610872575050600090815260046020526040902054600160e01b161590565b600081600054811015611a395760008181526004602052604081205490600160e01b82169003611a37575b80600003611189575060001901600081815260046020526040902054611a16565b505b604051636f96cda160e11b815260040160405180910390fd5b6000611a5d826119eb565b9050836001600160a01b0316816001600160a01b031614611a905760405162a1148160e81b815260040160405180910390fd5b6000828152600660205260408120546001600160a01b0390811691908616331480611ac05750611ac086336118d8565b80611ad357506001600160a01b03821633145b905080611af357604051632ce44b5f60e11b815260040160405180910390fd5b84600003611b1457604051633a954ecd60e21b815260040160405180910390fd5b8115611b3757600084815260066020526040902080546001600160a01b03191690555b6001600160a01b038681166000908152600560209081526040808320805460001901905592881682528282208054600101905586825260049052908120600160e11b4260a01b8817811790915584169003611bc257600184016000818152600460205260408120549003611bc0576000548114611bc05760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b6040805160608101825260008082526020820181905291810191909152610872611c34836119eb565b611e96565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604080516060810182526000808252602082018190529181019190915260008281526004602052604090205461087290611e96565b60405163f340fa0160e01b81526001600160a01b0383811660048301527f0000000000000000000000000000000000000000000000000000000000000000169063f340fa019083906024016000604051808303818588803b158015611d2457600080fd5b505af1158015611d38573d6000803e3d6000fd5b50505050505050565b610aa5828260405180602001604052806000815250611ed0565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611d90903390899088908890600401612796565b6020604051808303816000875af1925050508015611dcb575060408051601f3d908101601f19168201909252611dc8918101906127d3565b60015b611e29573d808015611df9576040519150601f19603f3d011682016040523d82523d6000602084013e611dfe565b606091505b508051600003611e21576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b604080516080810191829052607f0190826030600a8206018353600a90045b8015611e8457600183039250600a81066030018353600a9004611e66565b50819003601f19909101908152919050565b604080516060810182526001600160a01b038316815260a083901c6001600160401b03166020820152600160e01b90921615159082015290565b60005483600003611ef357604051622e076360e81b815260040160405180910390fd5b82600003611f145760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03841660008181526005602090815260408083208054680100000000000000018902019055848352600490915290204260a01b86176001861460e11b1790558190818501903b15611fe9575b60405182906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4611fb26000878480600101955087611d5b565b611fcf576040516368d2bf6b60e11b815260040160405180910390fd5b808210611f67578260005414611fe457600080fd5b61202e565b5b6040516001830192906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210611fea575b5060009081556115479085838684565b82805461204a906125e3565b90600052602060002090601f01602090048101928261206c57600085556120b2565b82601f1061208557805160ff19168380011785556120b2565b828001600101855582156120b2579182015b828111156120b2578251825591602001919060010190612097565b506120be9291506120c2565b5090565b5b808211156120be57600081556001016120c3565b6001600160e01b03198116811461146b57600080fd5b6000602082840312156120ff57600080fd5b8135611189816120d7565b60005b8381101561212557818101518382015260200161210d565b838111156115475750506000910152565b6000815180845261214e81602086016020860161210a565b601f01601f19169290920160200192915050565b6020815260006111896020830184612136565b60006020828403121561218757600080fd5b5035919050565b6001600160a01b038116811461146b57600080fd5b600080604083850312156121b657600080fd5b82356121c18161218e565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171561220d5761220d6121cf565b604052919050565b60006001600160401b0383111561222e5761222e6121cf565b612241601f8401601f19166020016121e5565b905082815283838301111561225557600080fd5b828260208301376000602084830101529392505050565b60006020828403121561227e57600080fd5b81356001600160401b0381111561229457600080fd5b8201601f810184136122a557600080fd5b611e3f84823560208401612215565b6000806000606084860312156122c957600080fd5b83356122d48161218e565b925060208401356122e48161218e565b929592945050506040919091013590565b60006020828403121561230757600080fd5b81356111898161218e565b81516001600160a01b031681526020808301516001600160401b03169082015260408083015115159082015260608101610872565b6000602080838503121561235a57600080fd5b82356001600160401b038082111561237157600080fd5b818501915085601f83011261238557600080fd5b813581811115612397576123976121cf565b8060051b91506123a88483016121e5565b81815291830184019184810190888411156123c257600080fd5b938501935b838510156123e0578435825293850193908501906123c7565b98975050505050505050565b6020808252825182820181905260009190848201906040850190845b81811015610fe65761244383855180516001600160a01b031682526020808201516001600160401b0316908301526040908101511515910152565b9284019260609290920191600101612408565b6020808252825182820181905260009190848201906040850190845b81811015610fe657835183529284019291840191600101612472565b6000806000606084860312156124a357600080fd5b83356124ae8161218e565b95602085013595506040909401359392505050565b600080604083850312156124d657600080fd5b82356124e18161218e565b9150602083013580151581146124f657600080fd5b809150509250929050565b6000806000806080858703121561251757600080fd5b84356125228161218e565b935060208501356125328161218e565b92506040850135915060608501356001600160401b0381111561255457600080fd5b8501601f8101871361256557600080fd5b61257487823560208401612215565b91505092959194509250565b6000806040838503121561259357600080fd5b823561259e8161218e565b915060208301356124f68161218e565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c908216806125f757607f821691505b60208210810361261757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000821982111561265c5761265c612633565b500190565b600081600019048311821515161561267b5761267b612633565b500290565b60008282101561269257612692612633565b500390565b600081516126a981856020860161210a565b9290920192915050565b600080845481600182811c9150808316806126cf57607f831692505b602080841082036126ee57634e487b7160e01b86526022600452602486fd5b818015612702576001811461271357612740565b60ff19861689528489019650612740565b60008b81526020902060005b868110156127385781548b82015290850190830161271f565b505084890196505b50505050505061277461276361275d83602f60f81b815260010190565b86612697565b64173539b7b760d91b815260050190565b95945050505050565b60006020828403121561278f57600080fd5b5051919050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906127c990830184612136565b9695505050505050565b6000602082840312156127e557600080fd5b8151611189816120d756fea2646970667358221220e1c0f05ee67226da14ff02ee7e1b5f72dd2e884fabafcf3066db2e0de2d3dfa164736f6c634300080e0033608060405234801561001057600080fd5b5061001a3361001f565b61006f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6105748061007e6000396000f3fe6080604052600436106100555760003560e01c806351cff8d91461005a578063715018a61461007c5780638da5cb5b14610091578063e3a9db1a146100be578063f2fde38b14610102578063f340fa0114610122575b600080fd5b34801561006657600080fd5b5061007a6100753660046104bf565b610135565b005b34801561008857600080fd5b5061007a6101d7565b34801561009d57600080fd5b506000546040516001600160a01b0390911681526020015b60405180910390f35b3480156100ca57600080fd5b506100f46100d93660046104bf565b6001600160a01b031660009081526001602052604090205490565b6040519081526020016100b5565b34801561010e57600080fd5b5061007a61011d3660046104bf565b61020d565b61007a6101303660046104bf565b6102a8565b6000546001600160a01b031633146101685760405162461bcd60e51b815260040161015f906104e3565b60405180910390fd5b6001600160a01b0381166000818152600160205260408120805491905590610190908261033c565b816001600160a01b03167f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5826040516101cb91815260200190565b60405180910390a25050565b6000546001600160a01b031633146102015760405162461bcd60e51b815260040161015f906104e3565b61020b600061045a565b565b6000546001600160a01b031633146102375760405162461bcd60e51b815260040161015f906104e3565b6001600160a01b03811661029c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161015f565b6102a58161045a565b50565b6000546001600160a01b031633146102d25760405162461bcd60e51b815260040161015f906104e3565b6001600160a01b0381166000908152600160205260408120805434928392916102fc908490610518565b90915550506040518181526001600160a01b038316907f2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c4906020016101cb565b8047101561038c5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015260640161015f565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146103d9576040519150601f19603f3d011682016040523d82523d6000602084013e6103de565b606091505b50509050806104555760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d61792068617665207265766572746564000000000000606482015260840161015f565b505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b03811681146102a557600080fd5b6000602082840312156104d157600080fd5b81356104dc816104aa565b9392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6000821982111561053957634e487b7160e01b600052601160045260246000fd5b50019056fea2646970667358221220dcdaf795b6777c95595d323b2a107e7a0d51c48aa5305eecf37bbc055f176f9b64736f6c634300080e0033000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000005368747470733a2f2f6d69646e696768742e6d7970696e6174612e636c6f75642f697066732f516d65386f735270437552317753576f5947326a66547232506357474c4b396b6f556e72344e4c5062737550697400000000000000000000000000000000000000000000000000000000000000000000000000000000000000005368747470733a2f2f6d69646e696768742e6d7970696e6174612e636c6f75642f697066732f516d644263437558386f594d5047416f6a5a51563755745a365566697031655741717366736d634d50424a6b4b5200000000000000000000000000
Deployed Bytecode
0x6080604052600436106102885760003560e01c806370a082311161015a578063b88d4fde116100c1578063dc33e6811161007a578063dc33e68114610770578063e2982c2114610790578063e985e9c5146107b0578063f2523633146107d0578063f2fde38b146107f0578063f47c84c51461081057600080fd5b8063b88d4fde146106c6578063c1f26123146106e6578063c23dc68f14610706578063c2d05a6e14610726578063c87b56dd1461073b578063d89135cd1461075b57600080fd5b80638da5cb5b116101135780638da5cb5b1461064057806395d89b411461065e57806399a2557a14610673578063a0712d6814610693578063a22cb465146106a6578063a2309ff8146105d357600080fd5b806370a082311461059e578063715018a6146105be57806375794a3c146105d357806378e97925146105e85780638462151c146105fe5780638a4068dd1461062b57600080fd5b80632b7832b3116101fe57806351830227116101b757806351830227146104c857806352d8a4d1146104e957806355f804b3146105165780635bbb2177146105365780636352211e146105635780636817c76c1461058357600080fd5b80632b7832b3146104275780632be095611461043d57806331b3eb941461045257806333fe9c2e1461047257806342842e0e146104885780634782f779146104a857600080fd5b8063095ea7b311610250578063095ea7b31461036a578063139fad601461038a57806318160ddd146103aa5780631f2698ab146103cd57806323b872dd146103e75780632478d6391461040757600080fd5b8063017184d91461028d57806301ffc9a7146102c957806304b4bba9146102f957806306fdde0314610310578063081812fc14610332575b600080fd5b34801561029957600080fd5b506102a36109c481565b6040516fffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b3480156102d557600080fd5b506102e96102e43660046120ed565b610826565b60405190151581526020016102c0565b34801561030557600080fd5b5061030e610878565b005b34801561031c57600080fd5b506103256108c0565b6040516102c09190612162565b34801561033e57600080fd5b5061035261034d366004612175565b610952565b6040516001600160a01b0390911681526020016102c0565b34801561037657600080fd5b5061030e6103853660046121a3565b610996565b34801561039657600080fd5b5061030e6103a536600461226c565b610a68565b3480156103b657600080fd5b50600154600054035b6040519081526020016102c0565b3480156103d957600080fd5b50600d546102e99060ff1681565b3480156103f357600080fd5b5061030e6104023660046122b4565b610aa9565b34801561041357600080fd5b506103bf6104223660046122f5565b610ab9565b34801561043357600080fd5b506103bf600e5481565b34801561044957600080fd5b5061030e610ae6565b34801561045e57600080fd5b5061030e61046d3660046122f5565b610b23565b34801561047e57600080fd5b506102a36101f481565b34801561049457600080fd5b5061030e6104a33660046122b4565b610ba1565b3480156104b457600080fd5b5061030e6104c33660046121a3565b610bbc565b3480156104d457600080fd5b506008546102e990600160a01b900460ff1681565b3480156104f557600080fd5b50610509610504366004612175565b610cc6565b6040516102c09190612312565b34801561052257600080fd5b5061030e61053136600461226c565b610cec565b34801561054257600080fd5b50610556610551366004612347565b610d9d565b6040516102c091906123ec565b34801561056f57600080fd5b5061035261057e366004612175565b610e63565b34801561058f57600080fd5b506103bf662386f26fc1000081565b3480156105aa57600080fd5b506103bf6105b93660046122f5565b610e6e565b3480156105ca57600080fd5b5061030e610eb6565b3480156105df57600080fd5b506000546103bf565b3480156105f457600080fd5b506103bf600c5481565b34801561060a57600080fd5b5061061e6106193660046122f5565b610ef1565b6040516102c09190612456565b34801561063757600080fd5b5061030e610ff2565b34801561064c57600080fd5b506008546001600160a01b0316610352565b34801561066a57600080fd5b50610325611008565b34801561067f57600080fd5b5061061e61068e36600461248e565b611017565b61030e6106a1366004612175565b611190565b3480156106b257600080fd5b5061030e6106c13660046124c3565b61146e565b3480156106d257600080fd5b5061030e6106e1366004612501565b611503565b3480156106f257600080fd5b5061030e610701366004612175565b61154d565b34801561071257600080fd5b50610509610721366004612175565b611641565b34801561073257600080fd5b506102e96116aa565b34801561074757600080fd5b50610325610756366004612175565b6116e5565b34801561076757600080fd5b506103bf611814565b34801561077c57600080fd5b506103bf61078b3660046122f5565b61181f565b34801561079c57600080fd5b506103bf6107ab3660046122f5565b611849565b3480156107bc57600080fd5b506102e96107cb366004612580565b6118d8565b3480156107dc57600080fd5b506105096107eb366004612175565b611906565b3480156107fc57600080fd5b5061030e61080b3660046122f5565b61192c565b34801561081c57600080fd5b506102a361271081565b60006301ffc9a760e01b6001600160e01b03198316148061085757506380ac58cd60e01b6001600160e01b03198316145b806108725750635b5e139f60e01b6001600160e01b03198316145b92915050565b6008546001600160a01b031633146108ab5760405162461bcd60e51b81526004016108a2906125ae565b60405180910390fd5b6008805460ff60a01b1916600160a01b179055565b6060600280546108cf906125e3565b80601f01602080910402602001604051908101604052809291908181526020018280546108fb906125e3565b80156109485780601f1061091d57610100808354040283529160200191610948565b820191906000526020600020905b81548152906001019060200180831161092b57829003601f168201915b5050505050905090565b600061095d826119c4565b61097a576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006109a1826119eb565b9050806001600160a01b0316836001600160a01b0316036109d55760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614610a0c576109ef81336118d8565b610a0c576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6008546001600160a01b03163314610a925760405162461bcd60e51b81526004016108a2906125ae565b8051610aa590600a90602084019061203e565b5050565b610ab4838383611a52565b505050565b6000610872826001600160a01b031660009081526005602052604090205460801c6001600160401b031690565b6008546001600160a01b03163314610b105760405162461bcd60e51b81526004016108a2906125ae565b42600c55600d805460ff19166001179055565b6040516351cff8d960e01b81526001600160a01b0382811660048301527f000000000000000000000000b5e7c0becae22a8f216d405ca06312d640212f1216906351cff8d990602401600060405180830381600087803b158015610b8657600080fd5b505af1158015610b9a573d6000803e3d6000fd5b5050505050565b610ab483838360405180602001604052806000815250611503565b6008546001600160a01b03163314610be65760405162461bcd60e51b81526004016108a2906125ae565b80471015610c2d5760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b60448201526064016108a2565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610c7a576040519150601f19603f3d011682016040523d82523d6000602084013e610c7f565b606091505b5050905080610ab45760405162461bcd60e51b8152602060048201526013602482015272115512081514905394d1915488119052531151606a1b60448201526064016108a2565b604080516060810182526000808252602082018190529181019190915261087282611c0b565b6008546001600160a01b03163314610d165760405162461bcd60e51b81526004016108a2906125ae565b600854600160a01b900460ff1615610d8a5760405162461bcd60e51b815260206004820152603160248201527f4e6f7420706f737369626c6520746f206368616e67652074686520626173655560448201527014924818599d195c881c995d99585b1959607a1b60648201526084016108a2565b8051610aa590600990602084019061203e565b80516060906000816001600160401b03811115610dbc57610dbc6121cf565b604051908082528060200260200182016040528015610e0757816020015b6040805160608101825260008082526020808301829052928201528252600019909201910181610dda5790505b50905060005b828114610e5b57610e36858281518110610e2957610e2961261d565b6020026020010151611641565b828281518110610e4857610e4861261d565b6020908102919091010152600101610e0d565b509392505050565b6000610872826119eb565b600081600003610e91576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6008546001600160a01b03163314610ee05760405162461bcd60e51b81526004016108a2906125ae565b610eea6000611c39565b565b905090565b60606000806000610f0185610e6e565b90506000816001600160401b03811115610f1d57610f1d6121cf565b604051908082528060200260200182016040528015610f46578160200160208202803683370190505b509050610f6c604080516060810182526000808252602082018190529181019190915290565b60005b838614610fe657610f7f81611c8b565b91508160400151610fde5781516001600160a01b031615610f9f57815194505b876001600160a01b0316856001600160a01b031603610fde5780838780600101985081518110610fd157610fd161261d565b6020026020010181815250505b600101610f6f565b50909695505050505050565b600b54610eea906001600160a01b031647611cc0565b6060600380546108cf906125e3565b606081831061103957604051631960ccad60e11b815260040160405180910390fd5b60008061104560005490565b905080841115611053578093505b600061105e87610e6e565b90508486101561107d5785850381811015611077578091505b50611081565b5060005b6000816001600160401b0381111561109b5761109b6121cf565b6040519080825280602002602001820160405280156110c4578160200160208202803683370190505b509050816000036110da57935061118992505050565b60006110e588611641565b9050600081604001516110f6575080515b885b8881141580156111085750848714155b1561117d5761111681611c8b565b925082604001516111755782516001600160a01b03161561113657825191505b8a6001600160a01b0316826001600160a01b03160361117557808488806001019950815181106111685761116861261d565b6020026020010181815250505b6001016110f8565b50505092835250909150505b9392505050565b600d5460ff166111d85760405162461bcd60e51b81526020600482015260136024820152721b9bdd081cdd185c9d1959081d1bc81cd95b1b606a1b60448201526064016108a2565b612710816111e560005490565b6111ef9190612649565b111561122f5760405162461bcd60e51b815260206004820152600f60248201526e4f76657220546f74616c204e46547360881b60448201526064016108a2565b6112376116aa565b156113075760058111156112a65760405162461bcd60e51b815260206004820152603060248201527f4f766572206d696e74206c696d697420666f72206f6e65207472616e7361637460448201526f696f6e20696e20667265652073616c6560801b60648201526084016108a2565b600a816112b23361181f565b6112bc9190612649565b11156113025760405162461bcd60e51b815260206004820152601560248201527413dd995c88199c9959481b5a5b9d08185b5bdd5b9d605a1b60448201526064016108a2565b611461565b60148111156113735760405162461bcd60e51b815260206004820152603260248201527f4f766572206d696e74206c696d697420666f72206f6e65207472616e73616374604482015271696f6e20696e207075626c69632073616c6560701b60648201526084016108a2565b600061138682662386f26fc10000612661565b9050803410156113cb5760405162461bcd60e51b815260206004820152601060248201526f6e6f7420656e6f7567682066756e647360801b60448201526064016108a2565b600e546000906113dd906101f4612680565b905061271081846113ed60005490565b6113f79190612649565b6114019190612649565b111561145e5760405162461bcd60e51b815260206004820152602660248201527f4f766572206d696e7420616d6f756e74207468616e20706f737369626c6520746044820152651bc81b5a5b9d60d21b60648201526084016108a2565b50505b61146b3382611d41565b50565b336001600160a01b038316036114975760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61150e848484611a52565b6001600160a01b0383163b156115475761152a84848484611d5b565b611547576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6008546001600160a01b031633146115775760405162461bcd60e51b81526004016108a2906125ae565b60648111156115c85760405162461bcd60e51b815260206004820152601c60248201527f4f766572206e667420616d6f756e7420696e206f6e6520636c61696d0000000060448201526064016108a2565b600e546101f4906115da908390612649565b111561161f5760405162461bcd60e51b81526020600482015260146024820152734f7665722061646d696e206e667420636c61696d60601b60448201526064016108a2565b80600e60008282546116319190612649565b9091555061146b90503382611d41565b60408051606080820183526000808352602080840182905283850182905284519283018552818352820181905292810183905290915060005483106116865792915050565b61168f83611c8b565b90508060400151156116a15792915050565b61118983611c0b565b60006109c46116b860005490565b1015806116d4575042600c546146506116d19190612649565b11155b156116df5750600090565b50600190565b60606116f0826119c4565b61170d57604051630a14c4b560e41b815260040160405180910390fd5b600854600160a01b900460ff1615156000036117b557600a8054611730906125e3565b80601f016020809104026020016040519081016040528092919081815260200182805461175c906125e3565b80156117a95780601f1061177e576101008083540402835291602001916117a9565b820191906000526020600020905b81548152906001019060200180831161178c57829003601f168201915b50505050509050919050565b6000600980546117c4906125e3565b90506000036117e25760405180602001604052806000815250611189565b60096117ed84611e47565b6040516020016117fe9291906126b3565b6040516020818303038152906040529392505050565b6000610eec60015490565b6001600160a01b038116600090815260056020526040808220546001600160401b03911c16610872565b6040516371d4ed8d60e11b81526001600160a01b0382811660048301526000917f000000000000000000000000b5e7c0becae22a8f216d405ca06312d640212f129091169063e3a9db1a90602401602060405180830381865afa1580156118b4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610872919061277d565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b604080516060810182526000808252602082018190529181019190915261087282611c8b565b6008546001600160a01b031633146119565760405162461bcd60e51b81526004016108a2906125ae565b6001600160a01b0381166119bb5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108a2565b61146b81611c39565b6000805482108015610872575050600090815260046020526040902054600160e01b161590565b600081600054811015611a395760008181526004602052604081205490600160e01b82169003611a37575b80600003611189575060001901600081815260046020526040902054611a16565b505b604051636f96cda160e11b815260040160405180910390fd5b6000611a5d826119eb565b9050836001600160a01b0316816001600160a01b031614611a905760405162a1148160e81b815260040160405180910390fd5b6000828152600660205260408120546001600160a01b0390811691908616331480611ac05750611ac086336118d8565b80611ad357506001600160a01b03821633145b905080611af357604051632ce44b5f60e11b815260040160405180910390fd5b84600003611b1457604051633a954ecd60e21b815260040160405180910390fd5b8115611b3757600084815260066020526040902080546001600160a01b03191690555b6001600160a01b038681166000908152600560209081526040808320805460001901905592881682528282208054600101905586825260049052908120600160e11b4260a01b8817811790915584169003611bc257600184016000818152600460205260408120549003611bc0576000548114611bc05760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b6040805160608101825260008082526020820181905291810191909152610872611c34836119eb565b611e96565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604080516060810182526000808252602082018190529181019190915260008281526004602052604090205461087290611e96565b60405163f340fa0160e01b81526001600160a01b0383811660048301527f000000000000000000000000b5e7c0becae22a8f216d405ca06312d640212f12169063f340fa019083906024016000604051808303818588803b158015611d2457600080fd5b505af1158015611d38573d6000803e3d6000fd5b50505050505050565b610aa5828260405180602001604052806000815250611ed0565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611d90903390899088908890600401612796565b6020604051808303816000875af1925050508015611dcb575060408051601f3d908101601f19168201909252611dc8918101906127d3565b60015b611e29573d808015611df9576040519150601f19603f3d011682016040523d82523d6000602084013e611dfe565b606091505b508051600003611e21576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b604080516080810191829052607f0190826030600a8206018353600a90045b8015611e8457600183039250600a81066030018353600a9004611e66565b50819003601f19909101908152919050565b604080516060810182526001600160a01b038316815260a083901c6001600160401b03166020820152600160e01b90921615159082015290565b60005483600003611ef357604051622e076360e81b815260040160405180910390fd5b82600003611f145760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03841660008181526005602090815260408083208054680100000000000000018902019055848352600490915290204260a01b86176001861460e11b1790558190818501903b15611fe9575b60405182906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4611fb26000878480600101955087611d5b565b611fcf576040516368d2bf6b60e11b815260040160405180910390fd5b808210611f67578260005414611fe457600080fd5b61202e565b5b6040516001830192906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210611fea575b5060009081556115479085838684565b82805461204a906125e3565b90600052602060002090601f01602090048101928261206c57600085556120b2565b82601f1061208557805160ff19168380011785556120b2565b828001600101855582156120b2579182015b828111156120b2578251825591602001919060010190612097565b506120be9291506120c2565b5090565b5b808211156120be57600081556001016120c3565b6001600160e01b03198116811461146b57600080fd5b6000602082840312156120ff57600080fd5b8135611189816120d7565b60005b8381101561212557818101518382015260200161210d565b838111156115475750506000910152565b6000815180845261214e81602086016020860161210a565b601f01601f19169290920160200192915050565b6020815260006111896020830184612136565b60006020828403121561218757600080fd5b5035919050565b6001600160a01b038116811461146b57600080fd5b600080604083850312156121b657600080fd5b82356121c18161218e565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171561220d5761220d6121cf565b604052919050565b60006001600160401b0383111561222e5761222e6121cf565b612241601f8401601f19166020016121e5565b905082815283838301111561225557600080fd5b828260208301376000602084830101529392505050565b60006020828403121561227e57600080fd5b81356001600160401b0381111561229457600080fd5b8201601f810184136122a557600080fd5b611e3f84823560208401612215565b6000806000606084860312156122c957600080fd5b83356122d48161218e565b925060208401356122e48161218e565b929592945050506040919091013590565b60006020828403121561230757600080fd5b81356111898161218e565b81516001600160a01b031681526020808301516001600160401b03169082015260408083015115159082015260608101610872565b6000602080838503121561235a57600080fd5b82356001600160401b038082111561237157600080fd5b818501915085601f83011261238557600080fd5b813581811115612397576123976121cf565b8060051b91506123a88483016121e5565b81815291830184019184810190888411156123c257600080fd5b938501935b838510156123e0578435825293850193908501906123c7565b98975050505050505050565b6020808252825182820181905260009190848201906040850190845b81811015610fe65761244383855180516001600160a01b031682526020808201516001600160401b0316908301526040908101511515910152565b9284019260609290920191600101612408565b6020808252825182820181905260009190848201906040850190845b81811015610fe657835183529284019291840191600101612472565b6000806000606084860312156124a357600080fd5b83356124ae8161218e565b95602085013595506040909401359392505050565b600080604083850312156124d657600080fd5b82356124e18161218e565b9150602083013580151581146124f657600080fd5b809150509250929050565b6000806000806080858703121561251757600080fd5b84356125228161218e565b935060208501356125328161218e565b92506040850135915060608501356001600160401b0381111561255457600080fd5b8501601f8101871361256557600080fd5b61257487823560208401612215565b91505092959194509250565b6000806040838503121561259357600080fd5b823561259e8161218e565b915060208301356124f68161218e565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c908216806125f757607f821691505b60208210810361261757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000821982111561265c5761265c612633565b500190565b600081600019048311821515161561267b5761267b612633565b500290565b60008282101561269257612692612633565b500390565b600081516126a981856020860161210a565b9290920192915050565b600080845481600182811c9150808316806126cf57607f831692505b602080841082036126ee57634e487b7160e01b86526022600452602486fd5b818015612702576001811461271357612740565b60ff19861689528489019650612740565b60008b81526020902060005b868110156127385781548b82015290850190830161271f565b505084890196505b50505050505061277461276361275d83602f60f81b815260010190565b86612697565b64173539b7b760d91b815260050190565b95945050505050565b60006020828403121561278f57600080fd5b5051919050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906127c990830184612136565b9695505050505050565b6000602082840312156127e557600080fd5b8151611189816120d756fea2646970667358221220e1c0f05ee67226da14ff02ee7e1b5f72dd2e884fabafcf3066db2e0de2d3dfa164736f6c634300080e0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000005368747470733a2f2f6d69646e696768742e6d7970696e6174612e636c6f75642f697066732f516d65386f735270437552317753576f5947326a66547232506357474c4b396b6f556e72344e4c5062737550697400000000000000000000000000000000000000000000000000000000000000000000000000000000000000005368747470733a2f2f6d69646e696768742e6d7970696e6174612e636c6f75642f697066732f516d644263437558386f594d5047416f6a5a51563755745a365566697031655741717366736d634d50424a6b4b5200000000000000000000000000
-----Decoded View---------------
Arg [0] : _baseURI (string): https://midnight.mypinata.cloud/ipfs/Qme8osRpCuR1wSWoYG2jfTr2PcWGLK9koUnr4NLPbsuPit
Arg [1] : _hiddenURI (string): https://midnight.mypinata.cloud/ipfs/QmdBcCuX8oYMPGAojZQV7UtZ6Ufip1eWAqsfsmcMPBJkKR
-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000053
Arg [3] : 68747470733a2f2f6d69646e696768742e6d7970696e6174612e636c6f75642f
Arg [4] : 697066732f516d65386f735270437552317753576f5947326a66547232506357
Arg [5] : 474c4b396b6f556e72344e4c5062737550697400000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000053
Arg [7] : 68747470733a2f2f6d69646e696768742e6d7970696e6174612e636c6f75642f
Arg [8] : 697066732f516d644263437558386f594d5047416f6a5a51563755745a365566
Arg [9] : 697031655741717366736d634d50424a6b4b5200000000000000000000000000
Deployed Bytecode Sourcemap
64118:4294:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;64520:42;;;;;;;;;;;;64558:4;64520:42;;;;;190:34:1;178:47;;;160:66;;148:2;133:18;64520:42:0;;;;;;;;15400:615;;;;;;;;;;-1:-1:-1;15400:615:0;;;;;:::i;:::-;;:::i;:::-;;;788:14:1;;781:22;763:41;;751:2;736:18;15400:615:0;623:187:1;67339:75:0;;;;;;;;;;;;;:::i;:::-;;20423:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;22490:204::-;;;;;;;;;;-1:-1:-1;22490:204:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1937:32:1;;;1919:51;;1907:2;1892:18;22490:204:0;1773:203:1;21950:474:0;;;;;;;;;;-1:-1:-1;21950:474:0;;;;;:::i;:::-;;:::i;67213:116::-;;;;;;;;;;-1:-1:-1;67213:116:0;;;;;:::i;:::-;;:::i;14454:315::-;;;;;;;;;;-1:-1:-1;14720:12:0;;14507:7;14704:13;:28;14454:315;;;3863:25:1;;;3851:2;3836:18;14454:315:0;3717:177:1;64386:27:0;;;;;;;;;;-1:-1:-1;64386:27:0;;;;;;;;23376:170;;;;;;;;;;-1:-1:-1;23376:170:0;;;;;:::i;:::-;;:::i;66479:113::-;;;;;;;;;;-1:-1:-1;66479:113:0;;;;;:::i;:::-;;:::i;64569:29::-;;;;;;;;;;;;;;;;65927:112;;;;;;;;;;;;;:::i;63210:106::-;;;;;;;;;;-1:-1:-1;63210:106:0;;;;;:::i;:::-;;:::i;64471:42::-;;;;;;;;;;;;64510:3;64471:42;;23617:185;;;;;;;;;;-1:-1:-1;23617:185:0;;;;;:::i;:::-;;:::i;68145:264::-;;;;;;;;;;-1:-1:-1;68145:264:0;;;;;:::i;:::-;;:::i;64187:28::-;;;;;;;;;;-1:-1:-1;64187:28:0;;;;-1:-1:-1;;;64187:28:0;;;;;;68009:128;;;;;;;;;;-1:-1:-1;68009:128:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;67024:181::-;;;;;;;;;;-1:-1:-1;67024:181:0;;;;;:::i;:::-;;:::i;42429:468::-;;;;;;;;;;-1:-1:-1;42429:468:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;20212:144::-;;;;;;;;;;-1:-1:-1;20212:144:0;;;;;:::i;:::-;;:::i;64302:46::-;;;;;;;;;;;;64338:10;64302:46;;16079:234;;;;;;;;;;-1:-1:-1;16079:234:0;;;;;:::i;:::-;;:::i;49758:103::-;;;;;;;;;;;;;:::i;66923:93::-;;;;;;;;;;-1:-1:-1;66967:7:0;14222:13;66923:93;;64355:24;;;;;;;;;;;;;;;;46241:892;;;;;;;;;;-1:-1:-1;46241:892:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;67422:92::-;;;;;;;;;;;;;:::i;49107:87::-;;;;;;;;;;-1:-1:-1;49180:6:0;;-1:-1:-1;;;;;49180:6:0;49107:87;;20592:104;;;;;;;;;;;;;:::i;43287:2505::-;;;;;;;;;;-1:-1:-1;43287:2505:0;;;;;:::i;:::-;;:::i;65053:864::-;;;;;;:::i;:::-;;:::i;22766:308::-;;;;;;;;;;-1:-1:-1;22766:308:0;;;;;:::i;:::-;;:::i;23873:396::-;;;;;;;;;;-1:-1:-1;23873:396:0;;;;;:::i;:::-;;:::i;66047:286::-;;;;;;;;;;-1:-1:-1;66047:286:0;;;;;:::i;:::-;;:::i;41850:420::-;;;;;;;;;;-1:-1:-1;41850:420:0;;;;;:::i;:::-;;:::i;64843:202::-;;;;;;;;;;;;;:::i;67522:479::-;;;;;;;;;;-1:-1:-1;67522:479:0;;;;;:::i;:::-;;:::i;66822:93::-;;;;;;;;;;;;;:::i;66600:113::-;;;;;;;;;;-1:-1:-1;66600:113:0;;;;;:::i;:::-;;:::i;63440:112::-;;;;;;;;;;-1:-1:-1;63440:112:0;;;;;:::i;:::-;;:::i;23145:164::-;;;;;;;;;;-1:-1:-1;23145:164:0;;;;;:::i;:::-;;:::i;66341:128::-;;;;;;;;;;-1:-1:-1;66341:128:0;;;;;:::i;:::-;;:::i;50016:201::-;;;;;;;;;;-1:-1:-1;50016:201:0;;;;;:::i;:::-;;:::i;64422:42::-;;;;;;;;;;;;64459:5;64422:42;;15400:615;15485:4;-1:-1:-1;;;;;;;;;15785:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;15862:25:0;;;15785:102;:179;;;-1:-1:-1;;;;;;;;;;15939:25:0;;;15785:179;15765:199;15400:615;-1:-1:-1;;15400:615:0:o;67339:75::-;49180:6;;-1:-1:-1;;;;;49180:6:0;47907:10;49327:23;49319:68;;;;-1:-1:-1;;;49319:68:0;;;;;;;:::i;:::-;;;;;;;;;67391:8:::1;:15:::0;;-1:-1:-1;;;;67391:15:0::1;-1:-1:-1::0;;;67391:15:0::1;::::0;;67339:75::o;20423:100::-;20477:13;20510:5;20503:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20423:100;:::o;22490:204::-;22558:7;22583:16;22591:7;22583;:16::i;:::-;22578:64;;22608:34;;-1:-1:-1;;;22608:34:0;;;;;;;;;;;22578:64;-1:-1:-1;22662:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;22662:24:0;;22490:204::o;21950:474::-;22023:13;22055:27;22074:7;22055:18;:27::i;:::-;22023:61;;22105:5;-1:-1:-1;;;;;22099:11:0;:2;-1:-1:-1;;;;;22099:11:0;;22095:48;;22119:24;;-1:-1:-1;;;22119:24:0;;;;;;;;;;;22095:48;47907:10;-1:-1:-1;;;;;22160:28:0;;;22156:175;;22208:44;22225:5;47907:10;23145:164;:::i;22208:44::-;22203:128;;22280:35;;-1:-1:-1;;;22280:35:0;;;;;;;;;;;22203:128;22343:24;;;;:15;:24;;;;;;:29;;-1:-1:-1;;;;;;22343:29:0;-1:-1:-1;;;;;22343:29:0;;;;;;;;;22388:28;;22343:24;;22388:28;;;;;;;22012:412;21950:474;;:::o;67213:116::-;49180:6;;-1:-1:-1;;;;;49180:6:0;47907:10;49327:23;49319:68;;;;-1:-1:-1;;;49319:68:0;;;;;;;:::i;:::-;67299:22;;::::1;::::0;:9:::1;::::0;:22:::1;::::0;::::1;::::0;::::1;:::i;:::-;;67213:116:::0;:::o;23376:170::-;23510:28;23520:4;23526:2;23530:7;23510:9;:28::i;:::-;23376:170;;;:::o;66479:113::-;66537:7;66564:20;66578:5;-1:-1:-1;;;;;16758:25:0;16730:7;16758:25;;;:18;:25;;;;;;11681:3;16758:49;-1:-1:-1;;;;;16757:80:0;;16669:176;65927:112;49180:6;;-1:-1:-1;;;;;49180:6:0;47907:10;49327:23;49319:68;;;;-1:-1:-1;;;49319:68:0;;;;;;;:::i;:::-;65990:15:::1;65978:9;:27:::0;66016:7:::1;:15:::0;;-1:-1:-1;;66016:15:0::1;66027:4;66016:15;::::0;;65927:112::o;63210:106::-;63285:23;;-1:-1:-1;;;63285:23:0;;-1:-1:-1;;;;;1937:32:1;;;63285:23:0;;;1919:51:1;63285:7:0;:16;;;;1892:18:1;;63285:23:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;63210:106;:::o;23617:185::-;23755:39;23772:4;23778:2;23782:7;23755:39;;;;;;;;;;;;:16;:39::i;68145:264::-;49180:6;;-1:-1:-1;;;;;49180:6:0;47907:10;49327:23;49319:68;;;;-1:-1:-1;;;49319:68:0;;;;;;;:::i;:::-;68265:6:::1;68240:21;:31;;68232:64;;;::::0;-1:-1:-1;;;68232:64:0;;10910:2:1;68232:64:0::1;::::0;::::1;10892:21:1::0;10949:2;10929:18;;;10922:30;-1:-1:-1;;;10968:18:1;;;10961:50;11028:18;;68232:64:0::1;10708:344:1::0;68232:64:0::1;68308:8;68321:9;-1:-1:-1::0;;;;;68321:14:0::1;68344:6;68321:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;68307:48;;;68374:3;68366:35;;;::::0;-1:-1:-1;;;68366:35:0;;11469:2:1;68366:35:0::1;::::0;::::1;11451:21:1::0;11508:2;11488:18;;;11481:30;-1:-1:-1;;;11527:18:1;;;11520:49;11586:18;;68366:35:0::1;11267:343:1::0;68009:128:0;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;68110:19:0;68123:5;68110:12;:19::i;67024:181::-;49180:6;;-1:-1:-1;;;;;49180:6:0;47907:10;49327:23;49319:68;;;;-1:-1:-1;;;49319:68:0;;;;;;;:::i;:::-;67107:8:::1;::::0;-1:-1:-1;;;67107:8:0;::::1;;;67106:9;67098:70;;;::::0;-1:-1:-1;;;67098:70:0;;11817:2:1;67098:70:0::1;::::0;::::1;11799:21:1::0;11856:2;11836:18;;;11829:30;11895:34;11875:18;;;11868:62;-1:-1:-1;;;11946:18:1;;;11939:47;12003:19;;67098:70:0::1;11615:413:1::0;67098:70:0::1;67179:18:::0;;::::1;::::0;:7:::1;::::0;:18:::1;::::0;::::1;::::0;::::1;:::i;42429:468::-:0;42604:15;;42518:23;;42579:22;42604:15;-1:-1:-1;;;;;42671:36:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;42671:36:0;;-1:-1:-1;;42671:36:0;;;;;;;;;;;;42634:73;;42727:9;42722:125;42743:14;42738:1;:19;42722:125;;42799:32;42819:8;42828:1;42819:11;;;;;;;;:::i;:::-;;;;;;;42799:19;:32::i;:::-;42783:10;42794:1;42783:13;;;;;;;;:::i;:::-;;;;;;;;;;:48;42759:3;;42722:125;;;-1:-1:-1;42868:10:0;42429:468;-1:-1:-1;;;42429:468:0:o;20212:144::-;20276:7;20319:27;20338:7;20319:18;:27::i;16079:234::-;16143:7;16185:5;16195:1;16167:29;16163:70;;16205:28;;-1:-1:-1;;;16205:28:0;;;;;;;;;;;16163:70;-1:-1:-1;;;;;;16251:25:0;;;;;:18;:25;;;;;;-1:-1:-1;;;;;16251:54:0;;16079:234::o;49758:103::-;49180:6;;-1:-1:-1;;;;;49180:6:0;47907:10;49327:23;49319:68;;;;-1:-1:-1;;;49319:68:0;;;;;;;:::i;:::-;49823:30:::1;49850:1;49823:18;:30::i;:::-;49758:103::o:0;66994:14::-;66987:21;;66923:93;:::o;46241:892::-;46311:16;46365:19;46399:25;46439:22;46464:16;46474:5;46464:9;:16::i;:::-;46439:41;;46495:25;46537:14;-1:-1:-1;;;;;46523:29:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;46523:29:0;;46495:57;;46567:31;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;46567:31:0;46618:9;46613:472;46662:14;46647:11;:29;46613:472;;46714:15;46727:1;46714:12;:15::i;:::-;46702:27;;46752:9;:16;;;46793:8;46748:73;46843:14;;-1:-1:-1;;;;;46843:28:0;;46839:111;;46916:14;;;-1:-1:-1;46839:111:0;46993:5;-1:-1:-1;;;;;46972:26:0;:17;-1:-1:-1;;;;;46972:26:0;;46968:102;;47049:1;47023:8;47032:13;;;;;;47023:23;;;;;;;;:::i;:::-;;;;;;:27;;;;;46968:102;46678:3;;46613:472;;;-1:-1:-1;47106:8:0;;46241:892;-1:-1:-1;;;;;;46241:892:0:o;67422:92::-;67476:6;;67461:45;;-1:-1:-1;;;;;67476:6:0;67484:21;67461:14;:45::i;20592:104::-;20648:13;20681:7;20674:14;;;;;:::i;43287:2505::-;43422:16;43489:4;43480:5;:13;43476:45;;43502:19;;-1:-1:-1;;;43502:19:0;;;;;;;;;;;43476:45;43536:19;43570:17;43590:14;14195:7;14222:13;;14148:95;43590:14;43570:34;-1:-1:-1;43841:9:0;43834:4;:16;43830:73;;;43878:9;43871:16;;43830:73;43917:25;43945:16;43955:5;43945:9;:16::i;:::-;43917:44;;44139:4;44131:5;:12;44127:278;;;44186:12;;;44221:31;;;44217:111;;;44297:11;44277:31;;44217:111;44145:198;44127:278;;;-1:-1:-1;44388:1:0;44127:278;44419:25;44461:17;-1:-1:-1;;;;;44447:32:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;44447:32:0;;44419:60;;44498:17;44519:1;44498:22;44494:78;;44548:8;-1:-1:-1;44541:15:0;;-1:-1:-1;;;44541:15:0;44494:78;44716:31;44750:26;44770:5;44750:19;:26::i;:::-;44716:60;;44791:25;45036:9;:16;;;45031:92;;-1:-1:-1;45093:14:0;;45031:92;45154:5;45137:478;45166:4;45161:1;:9;;:45;;;;;45189:17;45174:11;:32;;45161:45;45137:478;;;45244:15;45257:1;45244:12;:15::i;:::-;45232:27;;45282:9;:16;;;45323:8;45278:73;45373:14;;-1:-1:-1;;;;;45373:28:0;;45369:111;;45446:14;;;-1:-1:-1;45369:111:0;45523:5;-1:-1:-1;;;;;45502:26:0;:17;-1:-1:-1;;;;;45502:26:0;;45498:102;;45579:1;45553:8;45562:13;;;;;;45553:23;;;;;;;;:::i;:::-;;;;;;:27;;;;;45498:102;45208:3;;45137:478;;;-1:-1:-1;;;45700:29:0;;;-1:-1:-1;45707:8:0;;-1:-1:-1;;43287:2505:0;;;;;;:::o;65053:864::-;65125:7;;;;65117:38;;;;-1:-1:-1;;;65117:38:0;;12367:2:1;65117:38:0;;;12349:21:1;12406:2;12386:18;;;12379:30;-1:-1:-1;;;12425:18:1;;;12418:49;12484:18;;65117:38:0;12165:343:1;65117:38:0;64459:5;65192:8;65176:13;66765:7;15102:13;;66923:93;65176:13;:24;;;;:::i;:::-;:37;;65168:64;;;;-1:-1:-1;;;65168:64:0;;12980:2:1;65168:64:0;;;12962:21:1;13019:2;12999:18;;;12992:30;-1:-1:-1;;;13038:18:1;;;13031:45;13093:18;;65168:64:0;12778:339:1;65168:64:0;65248:12;:10;:12::i;:::-;65245:621;;;65297:1;65284:8;:14;;65276:74;;;;-1:-1:-1;;;65276:74:0;;13324:2:1;65276:74:0;;;13306:21:1;13363:2;13343:18;;;13336:30;13402:34;13382:18;;;13375:62;-1:-1:-1;;;13453:18:1;;;13446:46;13509:19;;65276:74:0;13122:412:1;65276:74:0;65412:2;65400:8;65373:24;65386:10;65373:12;:24::i;:::-;:35;;;;:::i;:::-;:41;;65365:74;;;;-1:-1:-1;;;65365:74:0;;13741:2:1;65365:74:0;;;13723:21:1;13780:2;13760:18;;;13753:30;-1:-1:-1;;;13799:18:1;;;13792:51;13860:18;;65365:74:0;13539:345:1;65365:74:0;65245:621;;;65491:2;65478:8;:15;;65470:77;;;;-1:-1:-1;;;65470:77:0;;14091:2:1;65470:77:0;;;14073:21:1;14130:2;14110:18;;;14103:30;14169:34;14149:18;;;14142:62;-1:-1:-1;;;14220:18:1;;;14213:48;14278:19;;65470:77:0;13889:414:1;65470:77:0;65564:13;65580:20;65592:8;64338:10;65580:20;:::i;:::-;65564:36;;65639:5;65626:9;:18;;65618:47;;;;-1:-1:-1;;;65618:47:0;;14683:2:1;65618:47:0;;;14665:21:1;14722:2;14702:18;;;14695:30;-1:-1:-1;;;14741:18:1;;;14734:46;14797:18;;65618:47:0;14481:340:1;65618:47:0;65722:10;;65682:21;;65707:25;;64510:3;65707:25;:::i;:::-;65682:50;-1:-1:-1;64459:5:0;65682:50;65773:8;65757:13;66765:7;15102:13;;66923:93;65757:13;:24;;;;:::i;:::-;:41;;;;:::i;:::-;:55;;65749:105;;;;-1:-1:-1;;;65749:105:0;;15158:2:1;65749:105:0;;;15140:21:1;15197:2;15177:18;;;15170:30;15236:34;15216:18;;;15209:62;-1:-1:-1;;;15287:18:1;;;15280:36;15333:19;;65749:105:0;14956:402:1;65749:105:0;65455:411;;65245:621;65878:31;65888:10;65900:8;65878:9;:31::i;:::-;65053:864;:::o;22766:308::-;47907:10;-1:-1:-1;;;;;22865:31:0;;;22861:61;;22905:17;;-1:-1:-1;;;22905:17:0;;;;;;;;;;;22861:61;47907:10;22935:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;22935:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;22935:60:0;;;;;;;;;;23011:55;;763:41:1;;;22935:49:0;;47907:10;23011:55;;736:18:1;23011:55:0;;;;;;;22766:308;;:::o;23873:396::-;24040:28;24050:4;24056:2;24060:7;24040:9;:28::i;:::-;-1:-1:-1;;;;;24083:14:0;;;:19;24079:183;;24122:56;24153:4;24159:2;24163:7;24172:5;24122:30;:56::i;:::-;24117:145;;24206:40;;-1:-1:-1;;;24206:40:0;;;;;;;;;;;24117:145;23873:396;;;;:::o;66047:286::-;49180:6;;-1:-1:-1;;;;;49180:6:0;47907:10;49327:23;49319:68;;;;-1:-1:-1;;;49319:68:0;;;;;;;:::i;:::-;66135:3:::1;66123:8;:15;;66115:55;;;::::0;-1:-1:-1;;;66115:55:0;;15565:2:1;66115:55:0::1;::::0;::::1;15547:21:1::0;15604:2;15584:18;;;15577:30;15643;15623:18;;;15616:58;15691:18;;66115:55:0::1;15363:352:1::0;66115:55:0::1;66189:10;::::0;64510:3:::1;::::0;66189:21:::1;::::0;66202:8;;66189:21:::1;:::i;:::-;:37;;66181:69;;;::::0;-1:-1:-1;;;66181:69:0;;15922:2:1;66181:69:0::1;::::0;::::1;15904:21:1::0;15961:2;15941:18;;;15934:30;-1:-1:-1;;;15980:18:1;;;15973:50;16040:18;;66181:69:0::1;15720:344:1::0;66181:69:0::1;66275:8;66261:10;;:22;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;66294:31:0::1;::::0;-1:-1:-1;66304:10:0::1;66316:8:::0;66294:9:::1;:31::i;41850:420::-:0;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14195:7:0;14222:13;42035:7;:25;42002:103;;42084:9;41850:420;-1:-1:-1;;41850:420:0:o;42002:103::-;42127:21;42140:7;42127:12;:21::i;:::-;42115:33;;42163:9;:16;;;42159:65;;;42203:9;41850:420;-1:-1:-1;;41850:420:0:o;42159:65::-;42241:21;42254:7;42241:12;:21::i;64843:202::-;64886:4;64558;64906:13;66765:7;15102:13;;66923:93;64906:13;:28;;:70;;;;64961:15;64938:9;;64950:7;64938:19;;;;:::i;:::-;:38;;64906:70;64903:113;;;-1:-1:-1;64999:5:0;;64843:202::o;64903:113::-;-1:-1:-1;65033:4:0;;64843:202::o;67522:479::-;67658:13;67696:16;67704:7;67696;:16::i;:::-;67691:59;;67721:29;;-1:-1:-1;;;67721:29:0;;;;;;;;;;;67691:59;67766:8;;-1:-1:-1;;;67766:8:0;;;;:17;;67778:5;67766:17;67763:64;;67806:9;67799:16;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;67522:479;;;:::o;67763:64::-;67839:23;67872:7;67866:21;;;;;:::i;:::-;;;67891:1;67866:26;:100;;;;;;;;;;;;;;;;;67919:7;67932:18;67942:7;67932:9;:18::i;:::-;67902:58;;;;;;;;;:::i;:::-;;;;;;;;;;;;;67839:127;67522:479;-1:-1:-1;;;67522:479:0:o;66822:93::-;66866:7;66893:14;15308:12;;;15234:94;66600:113;-1:-1:-1;;;;;16484:25:0;;66658:7;16484:25;;;:18;:25;;11555:2;16484:25;;;;-1:-1:-1;;;;;16484:49:0;;16483:80;66685:20;16395:176;63440:112;63520:24;;-1:-1:-1;;;63520:24:0;;-1:-1:-1;;;;;1937:32:1;;;63520:24:0;;;1919:51:1;63493:7:0;;63520;:18;;;;;;1892::1;;63520:24:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;23145:164::-;-1:-1:-1;;;;;23266:25:0;;;23242:4;23266:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;23145:164::o;66341:128::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;66442:19:0;66455:5;66442:12;:19::i;50016:201::-;49180:6;;-1:-1:-1;;;;;49180:6:0;47907:10;49327:23;49319:68;;;;-1:-1:-1;;;49319:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;50105:22:0;::::1;50097:73;;;::::0;-1:-1:-1;;;50097:73:0;;18451:2:1;50097:73:0::1;::::0;::::1;18433:21:1::0;18490:2;18470:18;;;18463:30;18529:34;18509:18;;;18502:62;-1:-1:-1;;;18580:18:1;;;18573:36;18626:19;;50097:73:0::1;18249:402:1::0;50097:73:0::1;50181:28;50200:8;50181:18;:28::i;24524:273::-:0;24581:4;24671:13;;24661:7;:23;24618:152;;;;-1:-1:-1;;24722:26:0;;;;:17;:26;;;;;;-1:-1:-1;;;24722:43:0;:48;;24524:273::o;17727:1129::-;17794:7;17829;17931:13;;17924:4;:20;17920:869;;;17969:14;17986:23;;;:17;:23;;;;;;;-1:-1:-1;;;18075:23:0;;:28;;18071:699;;18594:113;18601:6;18611:1;18601:11;18594:113;;-1:-1:-1;;;18672:6:0;18654:25;;;;:17;:25;;;;;;18594:113;;18071:699;17946:843;17920:869;18817:31;;-1:-1:-1;;;18817:31:0;;;;;;;;;;;29783:2654;29898:27;29928;29947:7;29928:18;:27::i;:::-;29898:57;;30013:4;-1:-1:-1;;;;;29972:45:0;29988:19;-1:-1:-1;;;;;29972:45:0;;29968:86;;30026:28;;-1:-1:-1;;;30026:28:0;;;;;;;;;;;29968:86;30067:23;30093:24;;;:15;:24;;;;;;-1:-1:-1;;;;;30093:24:0;;;;30067:23;30156:27;;47907:10;30156:27;;:87;;-1:-1:-1;30200:43:0;30217:4;47907:10;23145:164;:::i;30200:43::-;30156:142;;;-1:-1:-1;;;;;;30260:38:0;;47907:10;30260:38;30156:142;30130:169;;30317:17;30312:66;;30343:35;;-1:-1:-1;;;30343:35:0;;;;;;;;;;;30312:66;30411:2;30418:1;30393:26;30389:62;;30428:23;;-1:-1:-1;;;30428:23:0;;;;;;;;;;;30389:62;30595:15;30577:39;30573:103;;30640:24;;;;:15;:24;;;;;30633:31;;-1:-1:-1;;;;;;30633:31:0;;;30573:103;-1:-1:-1;;;;;31043:24:0;;;;;;;:18;:24;;;;;;;;31041:26;;-1:-1:-1;;31041:26:0;;;31112:22;;;;;;;;31110:24;;-1:-1:-1;31110:24:0;;;31405:26;;;:17;:26;;;;;-1:-1:-1;;;31493:15:0;12072:3;31493:41;31451:84;;:128;;31405:174;;;31699:46;;:51;;31695:626;;31803:1;31793:11;;31771:19;31926:30;;;:17;:30;;;;;;:35;;31922:384;;32064:13;;32049:11;:28;32045:242;;32211:30;;;;:17;:30;;;;;:52;;;32045:242;31752:569;31695:626;32368:7;32364:2;-1:-1:-1;;;;;32349:27:0;32358:4;-1:-1:-1;;;;;32349:27:0;;;;;;;;;;;29887:2550;;;29783:2654;;;:::o;19992:158::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;20095:47:0;20114:27;20133:7;20114:18;:27::i;:::-;20095:18;:47::i;50377:191::-;50470:6;;;-1:-1:-1;;;;;50487:17:0;;;-1:-1:-1;;;;;;50487:17:0;;;;;;;50520:40;;50470:6;;;50487:17;50470:6;;50520:40;;50451:16;;50520:40;50440:128;50377:191;:::o;19336:153::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;19456:24:0;;;;:17;:24;;;;;;19437:44;;:18;:44::i;63921:126::-;64003:36;;-1:-1:-1;;;64003:36:0;;-1:-1:-1;;;;;1937:32:1;;;64003:36:0;;;1919:51:1;64003:7:0;:15;;;;64026:6;;1892:18:1;;64003:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;63921:126;;:::o;24881:104::-;24950:27;24960:2;24964:8;24950:27;;;;;;;;;;;;:9;:27::i;36261:716::-;36445:88;;-1:-1:-1;;;36445:88:0;;36424:4;;-1:-1:-1;;;;;36445:45:0;;;;;:88;;47907:10;;36512:4;;36518:7;;36527:5;;36445:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;36445:88:0;;;;;;;;-1:-1:-1;;36445:88:0;;;;;;;;;;;;:::i;:::-;;;36441:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36728:6;:13;36745:1;36728:18;36724:235;;36774:40;;-1:-1:-1;;;36774:40:0;;;;;;;;;;;36724:235;36917:6;36911:13;36902:6;36898:2;36894:15;36887:38;36441:529;-1:-1:-1;;;;;;36604:64:0;-1:-1:-1;;;36604:64:0;;-1:-1:-1;36441:529:0;36261:716;;;;;;:::o;39003:1959::-;39474:4;39468:11;;39481:3;39464:21;;39559:17;;;;40256:11;;;40135:5;40388:2;40402;40392:13;;40384:22;40256:11;40371:36;40443:2;40433:13;;40026:682;40462:4;40026:682;;;40637:1;40632:3;40628:11;40621:18;;40688:2;40682:4;40678:13;40674:2;40670:22;40665:3;40657:36;40558:2;40548:13;;40026:682;;;-1:-1:-1;40750:13:0;;;-1:-1:-1;;40865:12:0;;;40925:19;;;40865:12;39003:1959;-1:-1:-1;39003:1959:0:o;18950:295::-;-1:-1:-1;;;;;;;;;;;;;19060:41:0;;;;12072:3;19146:32;;;-1:-1:-1;;;;;19112:67:0;-1:-1:-1;;;19112:67:0;-1:-1:-1;;;19209:23:0;;;:28;;-1:-1:-1;;;19190:47:0;-1:-1:-1;18950:295:0:o;25358:2246::-;25481:20;25504:13;25550:2;25557:1;25532:26;25528:58;;25567:19;;-1:-1:-1;;;25567:19:0;;;;;;;;;;;25528:58;25601:8;25613:1;25601:13;25597:44;;25623:18;;-1:-1:-1;;;25623:18:0;;;;;;;;;;;25597:44;-1:-1:-1;;;;;26190:22:0;;;;;;:18;:22;;;;11555:2;26190:22;;;:70;;26228:31;26216:44;;26190:70;;;26503:31;;;:17;:31;;;;;26596:15;12072:3;26596:41;26554:84;;-1:-1:-1;26674:13:0;;12335:3;26659:56;26554:162;26503:213;;:31;;26797:23;;;;26841:14;:19;26837:635;;26881:313;26912:38;;26937:12;;-1:-1:-1;;;;;26912:38:0;;;26929:1;;26912:38;;26929:1;;26912:38;26978:69;27017:1;27021:2;27025:14;;;;;;27041:5;26978:30;:69::i;:::-;26973:174;;27083:40;;-1:-1:-1;;;27083:40:0;;;;;;;;;;;26973:174;27189:3;27174:12;:18;26881:313;;27275:12;27258:13;;:29;27254:43;;27289:8;;;27254:43;26837:635;;;27338:119;27369:40;;27394:14;;;;;-1:-1:-1;;;;;27369:40:0;;;27386:1;;27369:40;;27386:1;;27369:40;27452:3;27437:12;:18;27338:119;;26837:635;-1:-1:-1;27486:13:0;:28;;;27536:60;;27569:2;27573:12;27587:8;27536:60;:::i;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;237:131:1;-1:-1:-1;;;;;;311:32:1;;301:43;;291:71;;358:1;355;348:12;373:245;431:6;484:2;472:9;463:7;459:23;455:32;452:52;;;500:1;497;490:12;452:52;539:9;526:23;558:30;582:5;558:30;:::i;815:258::-;887:1;897:113;911:6;908:1;905:13;897:113;;;987:11;;;981:18;968:11;;;961:39;933:2;926:10;897:113;;;1028:6;1025:1;1022:13;1019:48;;;-1:-1:-1;;1063:1:1;1045:16;;1038:27;815:258::o;1078:269::-;1131:3;1169:5;1163:12;1196:6;1191:3;1184:19;1212:63;1268:6;1261:4;1256:3;1252:14;1245:4;1238:5;1234:16;1212:63;:::i;:::-;1329:2;1308:15;-1:-1:-1;;1304:29:1;1295:39;;;;1336:4;1291:50;;1078:269;-1:-1:-1;;1078:269:1:o;1352:231::-;1501:2;1490:9;1483:21;1464:4;1521:56;1573:2;1562:9;1558:18;1550:6;1521:56;:::i;1588:180::-;1647:6;1700:2;1688:9;1679:7;1675:23;1671:32;1668:52;;;1716:1;1713;1706:12;1668:52;-1:-1:-1;1739:23:1;;1588:180;-1:-1:-1;1588:180:1:o;1981:131::-;-1:-1:-1;;;;;2056:31:1;;2046:42;;2036:70;;2102:1;2099;2092:12;2117:315;2185:6;2193;2246:2;2234:9;2225:7;2221:23;2217:32;2214:52;;;2262:1;2259;2252:12;2214:52;2301:9;2288:23;2320:31;2345:5;2320:31;:::i;:::-;2370:5;2422:2;2407:18;;;;2394:32;;-1:-1:-1;;;2117:315:1:o;2437:127::-;2498:10;2493:3;2489:20;2486:1;2479:31;2529:4;2526:1;2519:15;2553:4;2550:1;2543:15;2569:275;2640:2;2634:9;2705:2;2686:13;;-1:-1:-1;;2682:27:1;2670:40;;-1:-1:-1;;;;;2725:34:1;;2761:22;;;2722:62;2719:88;;;2787:18;;:::i;:::-;2823:2;2816:22;2569:275;;-1:-1:-1;2569:275:1:o;2849:407::-;2914:5;-1:-1:-1;;;;;2940:6:1;2937:30;2934:56;;;2970:18;;:::i;:::-;3008:57;3053:2;3032:15;;-1:-1:-1;;3028:29:1;3059:4;3024:40;3008:57;:::i;:::-;2999:66;;3088:6;3081:5;3074:21;3128:3;3119:6;3114:3;3110:16;3107:25;3104:45;;;3145:1;3142;3135:12;3104:45;3194:6;3189:3;3182:4;3175:5;3171:16;3158:43;3248:1;3241:4;3232:6;3225:5;3221:18;3217:29;3210:40;2849:407;;;;;:::o;3261:451::-;3330:6;3383:2;3371:9;3362:7;3358:23;3354:32;3351:52;;;3399:1;3396;3389:12;3351:52;3439:9;3426:23;-1:-1:-1;;;;;3464:6:1;3461:30;3458:50;;;3504:1;3501;3494:12;3458:50;3527:22;;3580:4;3572:13;;3568:27;-1:-1:-1;3558:55:1;;3609:1;3606;3599:12;3558:55;3632:74;3698:7;3693:2;3680:16;3675:2;3671;3667:11;3632:74;:::i;3899:456::-;3976:6;3984;3992;4045:2;4033:9;4024:7;4020:23;4016:32;4013:52;;;4061:1;4058;4051:12;4013:52;4100:9;4087:23;4119:31;4144:5;4119:31;:::i;:::-;4169:5;-1:-1:-1;4226:2:1;4211:18;;4198:32;4239:33;4198:32;4239:33;:::i;:::-;3899:456;;4291:7;;-1:-1:-1;;;4345:2:1;4330:18;;;;4317:32;;3899:456::o;4360:247::-;4419:6;4472:2;4460:9;4451:7;4447:23;4443:32;4440:52;;;4488:1;4485;4478:12;4440:52;4527:9;4514:23;4546:31;4571:5;4546:31;:::i;5155:263::-;4956:12;;-1:-1:-1;;;;;4952:38:1;4940:51;;5044:4;5033:16;;;5027:23;-1:-1:-1;;;;;5023:48:1;5007:14;;;5000:72;5135:4;5124:16;;;5118:23;5111:31;5104:39;5088:14;;;5081:63;5349:2;5334:18;;5361:51;4872:278;5423:946;5507:6;5538:2;5581;5569:9;5560:7;5556:23;5552:32;5549:52;;;5597:1;5594;5587:12;5549:52;5637:9;5624:23;-1:-1:-1;;;;;5707:2:1;5699:6;5696:14;5693:34;;;5723:1;5720;5713:12;5693:34;5761:6;5750:9;5746:22;5736:32;;5806:7;5799:4;5795:2;5791:13;5787:27;5777:55;;5828:1;5825;5818:12;5777:55;5864:2;5851:16;5886:2;5882;5879:10;5876:36;;;5892:18;;:::i;:::-;5938:2;5935:1;5931:10;5921:20;;5961:28;5985:2;5981;5977:11;5961:28;:::i;:::-;6023:15;;;6093:11;;;6089:20;;;6054:12;;;;6121:19;;;6118:39;;;6153:1;6150;6143:12;6118:39;6177:11;;;;6197:142;6213:6;6208:3;6205:15;6197:142;;;6279:17;;6267:30;;6230:12;;;;6317;;;;6197:142;;;6358:5;5423:946;-1:-1:-1;;;;;;;;5423:946:1:o;6374:720::-;6605:2;6657:21;;;6727:13;;6630:18;;;6749:22;;;6576:4;;6605:2;6828:15;;;;6802:2;6787:18;;;6576:4;6871:197;6885:6;6882:1;6879:13;6871:197;;;6934:52;6982:3;6973:6;6967:13;4956:12;;-1:-1:-1;;;;;4952:38:1;4940:51;;5044:4;5033:16;;;5027:23;-1:-1:-1;;;;;5023:48:1;5007:14;;;5000:72;5135:4;5124:16;;;5118:23;5111:31;5104:39;5088:14;;5081:63;4872:278;6934:52;7043:15;;;;7015:4;7006:14;;;;;6907:1;6900:9;6871:197;;7099:632;7270:2;7322:21;;;7392:13;;7295:18;;;7414:22;;;7241:4;;7270:2;7493:15;;;;7467:2;7452:18;;;7241:4;7536:169;7550:6;7547:1;7544:13;7536:169;;;7611:13;;7599:26;;7680:15;;;;7645:12;;;;7572:1;7565:9;7536:169;;7736:383;7813:6;7821;7829;7882:2;7870:9;7861:7;7857:23;7853:32;7850:52;;;7898:1;7895;7888:12;7850:52;7937:9;7924:23;7956:31;7981:5;7956:31;:::i;:::-;8006:5;8058:2;8043:18;;8030:32;;-1:-1:-1;8109:2:1;8094:18;;;8081:32;;7736:383;-1:-1:-1;;;7736:383:1:o;8124:416::-;8189:6;8197;8250:2;8238:9;8229:7;8225:23;8221:32;8218:52;;;8266:1;8263;8256:12;8218:52;8305:9;8292:23;8324:31;8349:5;8324:31;:::i;:::-;8374:5;-1:-1:-1;8431:2:1;8416:18;;8403:32;8473:15;;8466:23;8454:36;;8444:64;;8504:1;8501;8494:12;8444:64;8527:7;8517:17;;;8124:416;;;;;:::o;8545:795::-;8640:6;8648;8656;8664;8717:3;8705:9;8696:7;8692:23;8688:33;8685:53;;;8734:1;8731;8724:12;8685:53;8773:9;8760:23;8792:31;8817:5;8792:31;:::i;:::-;8842:5;-1:-1:-1;8899:2:1;8884:18;;8871:32;8912:33;8871:32;8912:33;:::i;:::-;8964:7;-1:-1:-1;9018:2:1;9003:18;;8990:32;;-1:-1:-1;9073:2:1;9058:18;;9045:32;-1:-1:-1;;;;;9089:30:1;;9086:50;;;9132:1;9129;9122:12;9086:50;9155:22;;9208:4;9200:13;;9196:27;-1:-1:-1;9186:55:1;;9237:1;9234;9227:12;9186:55;9260:74;9326:7;9321:2;9308:16;9303:2;9299;9295:11;9260:74;:::i;:::-;9250:84;;;8545:795;;;;;;;:::o;9345:388::-;9413:6;9421;9474:2;9462:9;9453:7;9449:23;9445:32;9442:52;;;9490:1;9487;9480:12;9442:52;9529:9;9516:23;9548:31;9573:5;9548:31;:::i;:::-;9598:5;-1:-1:-1;9655:2:1;9640:18;;9627:32;9668:33;9627:32;9668:33;:::i;9738:356::-;9940:2;9922:21;;;9959:18;;;9952:30;10018:34;10013:2;9998:18;;9991:62;10085:2;10070:18;;9738:356::o;10099:380::-;10178:1;10174:12;;;;10221;;;10242:61;;10296:4;10288:6;10284:17;10274:27;;10242:61;10349:2;10341:6;10338:14;10318:18;10315:38;10312:161;;10395:10;10390:3;10386:20;10383:1;10376:31;10430:4;10427:1;10420:15;10458:4;10455:1;10448:15;10312:161;;10099:380;;;:::o;12033:127::-;12094:10;12089:3;12085:20;12082:1;12075:31;12125:4;12122:1;12115:15;12149:4;12146:1;12139:15;12513:127;12574:10;12569:3;12565:20;12562:1;12555:31;12605:4;12602:1;12595:15;12629:4;12626:1;12619:15;12645:128;12685:3;12716:1;12712:6;12709:1;12706:13;12703:39;;;12722:18;;:::i;:::-;-1:-1:-1;12758:9:1;;12645:128::o;14308:168::-;14348:7;14414:1;14410;14406:6;14402:14;14399:1;14396:21;14391:1;14384:9;14377:17;14373:45;14370:71;;;14421:18;;:::i;:::-;-1:-1:-1;14461:9:1;;14308:168::o;14826:125::-;14866:4;14894:1;14891;14888:8;14885:34;;;14899:18;;:::i;:::-;-1:-1:-1;14936:9:1;;14826:125::o;16314:185::-;16356:3;16394:5;16388:12;16409:52;16454:6;16449:3;16442:4;16435:5;16431:16;16409:52;:::i;:::-;16477:16;;;;;16314:185;-1:-1:-1;;16314:185:1:o;16622:1433::-;17000:3;17029:1;17062:6;17056:13;17092:3;17114:1;17142:9;17138:2;17134:18;17124:28;;17202:2;17191:9;17187:18;17224;17214:61;;17268:4;17260:6;17256:17;17246:27;;17214:61;17294:2;17342;17334:6;17331:14;17311:18;17308:38;17305:165;;-1:-1:-1;;;17369:33:1;;17425:4;17422:1;17415:15;17455:4;17376:3;17443:17;17305:165;17486:18;17513:104;;;;17631:1;17626:320;;;;17479:467;;17513:104;-1:-1:-1;;17546:24:1;;17534:37;;17591:16;;;;-1:-1:-1;17513:104:1;;17626:320;16142:1;16135:14;;;16179:4;16166:18;;17721:1;17735:165;17749:6;17746:1;17743:13;17735:165;;;17827:14;;17814:11;;;17807:35;17870:16;;;;17764:10;;17735:165;;;17739:3;;17929:6;17924:3;17920:16;17913:23;;17479:467;;;;;;;17962:87;17987:61;18013:34;18043:3;-1:-1:-1;;;16260:16:1;;16301:1;16292:11;;16195:114;18013:34;18005:6;17987:61;:::i;:::-;-1:-1:-1;;;16564:20:1;;16609:1;16600:11;;16504:113;17962:87;17955:94;16622:1433;-1:-1:-1;;;;;16622:1433:1:o;18060:184::-;18130:6;18183:2;18171:9;18162:7;18158:23;18154:32;18151:52;;;18199:1;18196;18189:12;18151:52;-1:-1:-1;18222:16:1;;18060:184;-1:-1:-1;18060:184:1:o;18656:500::-;-1:-1:-1;;;;;18925:15:1;;;18907:34;;18977:15;;18972:2;18957:18;;18950:43;19024:2;19009:18;;19002:34;;;19072:3;19067:2;19052:18;;19045:31;;;18850:4;;19093:57;;19130:19;;19122:6;19093:57;:::i;:::-;19085:65;18656:500;-1:-1:-1;;;;;;18656:500:1:o;19161:249::-;19230:6;19283:2;19271:9;19262:7;19258:23;19254:32;19251:52;;;19299:1;19296;19289:12;19251:52;19331:9;19325:16;19350:30;19374:5;19350:30;:::i
Swarm Source
ipfs://dcdaf795b6777c95595d323b2a107e7a0d51c48aa5305eecf37bbc055f176f9b
Loading...
Loading
Loading...
Loading
OVERVIEW
Midnight Bird Ape Yacht Club is a collection of 10,000 Apes that pay homage to two of the most successful collections, Midnight Bird Apes. Each Ape is unique and gives the holder access to future drops and community participation. https://www.mbayc.xyz/Net Worth in USD
$2.03
Net Worth in ETH
0.001
Token Allocations
ETH
100.00%
Multichain Portfolio | 34 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|---|---|---|---|---|
| ETH | 100.00% | $2,034.49 | 0.001 | $2.03 |
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ 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.