Feature Tip: Add private address tag to any address under My Name Tag !
Source Code
Overview
ETH Balance
0.001 ETH
Eth Value
$2.13 (@ $2,134.30/ETH)More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 51 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Set Approval For... | 15563700 | 1282 days ago | IN | 0 ETH | 0.00028443 | ||||
| Withdraw | 15232153 | 1334 days ago | IN | 0 ETH | 0.00139764 | ||||
| Set Approval For... | 15230519 | 1334 days ago | IN | 0 ETH | 0.00036288 | ||||
| Set Approval For... | 15230464 | 1334 days ago | IN | 0 ETH | 0.00036011 | ||||
| Set Approval For... | 15230432 | 1334 days ago | IN | 0 ETH | 0.0003341 | ||||
| Set Approval For... | 15230405 | 1334 days ago | IN | 0 ETH | 0.00041496 | ||||
| Mint | 15230401 | 1334 days ago | IN | 0.001 ETH | 0.00064531 | ||||
| Set Approval For... | 15230398 | 1334 days ago | IN | 0 ETH | 0.00039045 | ||||
| Set Approval For... | 15230389 | 1334 days ago | IN | 0 ETH | 0.00031552 | ||||
| Mint | 15230389 | 1334 days ago | IN | 0.001 ETH | 0.00062697 | ||||
| Mint | 15230386 | 1334 days ago | IN | 0.0015 ETH | 0.00049716 | ||||
| Mint | 15230374 | 1334 days ago | IN | 0.0015 ETH | 0.0004375 | ||||
| Mint | 15230374 | 1334 days ago | IN | 0.001 ETH | 0.00042547 | ||||
| Mint | 15230374 | 1334 days ago | IN | 0.0015 ETH | 0.0004375 | ||||
| Mint | 15230369 | 1334 days ago | IN | 0.002 ETH | 0.00058029 | ||||
| Mint | 15230369 | 1334 days ago | IN | 0.0015 ETH | 0.00049132 | ||||
| Mint | 15230369 | 1334 days ago | IN | 0.0015 ETH | 0.00049132 | ||||
| Mint | 15230368 | 1334 days ago | IN | 0.0015 ETH | 0.00044848 | ||||
| Mint | 15230368 | 1334 days ago | IN | 0.0015 ETH | 0.00044848 | ||||
| Mint | 15230368 | 1334 days ago | IN | 0.0015 ETH | 0.00044848 | ||||
| Mint | 15230368 | 1334 days ago | IN | 0.0015 ETH | 0.00044848 | ||||
| Mint | 15230362 | 1334 days ago | IN | 0.0015 ETH | 0.00052589 | ||||
| Mint | 15230361 | 1334 days ago | IN | 0.001 ETH | 0.00051415 | ||||
| Mint | 15230361 | 1334 days ago | IN | 0.0015 ETH | 0.00052868 | ||||
| Mint | 15230360 | 1334 days ago | IN | 0.001 ETH | 0.000516 |
Latest 1 internal transaction
Advanced mode:
| Parent Transaction Hash | Method | Block |
From
|
|
To
|
||
|---|---|---|---|---|---|---|---|
| Transfer | 15232153 | 1334 days ago | 0.085 ETH |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
squares
Compiler Version
v0.8.4+commit.c7e474f2
Contract Source Code (Solidity)
/**
*Submitted for verification at Etherscan.io on 2022-07-27
*/
// File: @openzeppelin/contracts/security/ReentrancyGuard.sol
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)
pragma solidity ^0.8.0;
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* available, which can be applied to functions to make sure there are no nested
* (reentrant) calls to them.
*
* Note that because there is a single `nonReentrant` guard, functions marked as
* `nonReentrant` may not call one another. This can be worked around by making
* those functions `private`, and then adding `external` `nonReentrant` entry
* points to them.
*
* TIP: If you would like to learn more about reentrancy and alternative ways
* to protect against it, check out our blog post
* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
*/
abstract contract ReentrancyGuard {
// Booleans are more expensive than uint256 or any type that takes up a full
// word because each write operation emits an extra SLOAD to first read the
// slot's contents, replace the bits taken up by the boolean, and then write
// back. This is the compiler's defense against contract upgrades and
// pointer aliasing, and it cannot be disabled.
// The values being non-zero value makes deployment a bit more expensive,
// but in exchange the refund on every call to nonReentrant will be lower in
// amount. Since refunds are capped to a percentage of the total
// transaction's gas, it is best to keep them low in cases like this one, to
// increase the likelihood of the full refund coming into effect.
uint256 private constant _NOT_ENTERED = 1;
uint256 private constant _ENTERED = 2;
uint256 private _status;
constructor() {
_status = _NOT_ENTERED;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and making it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
// On the first call to nonReentrant, _notEntered will be true
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
// Any calls to nonReentrant after this point will fail
_status = _ENTERED;
_;
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = _NOT_ENTERED;
}
}
// File: @openzeppelin/contracts/utils/Strings.sol
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)
pragma solidity ^0.8.0;
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
// Inspired by OraclizeAPI's implementation - MIT licence
// https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol
if (value == 0) {
return "0";
}
uint256 temp = value;
uint256 digits;
while (temp != 0) {
digits++;
temp /= 10;
}
bytes memory buffer = new bytes(digits);
while (value != 0) {
digits -= 1;
buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
value /= 10;
}
return string(buffer);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
*/
function toHexString(uint256 value) internal pure returns (string memory) {
if (value == 0) {
return "0x00";
}
uint256 temp = value;
uint256 length = 0;
while (temp != 0) {
length++;
temp >>= 8;
}
return toHexString(value, length);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
*/
function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
bytes memory buffer = new bytes(2 * length + 2);
buffer[0] = "0";
buffer[1] = "x";
for (uint256 i = 2 * length + 1; i > 1; --i) {
buffer[i] = _HEX_SYMBOLS[value & 0xf];
value >>= 4;
}
require(value == 0, "Strings: hex length insufficient");
return string(buffer);
}
}
// File: @openzeppelin/contracts/utils/Context.sol
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
// File: @openzeppelin/contracts/access/Ownable.sol
// OpenZeppelin Contracts 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: erc721a/contracts/IERC721A.sol
// ERC721A Contracts v4.2.0
// Creator: Chiru Labs
pragma solidity ^0.8.4;
/**
* @dev Interface of ERC721A.
*/
interface IERC721A {
/**
* The caller must own the token or be an approved operator.
*/
error ApprovalCallerNotOwnerNorApproved();
/**
* The token does not exist.
*/
error ApprovalQueryForNonexistentToken();
/**
* The caller cannot approve to their own address.
*/
error ApproveToCaller();
/**
* Cannot query the balance for the zero address.
*/
error BalanceQueryForZeroAddress();
/**
* Cannot mint to the zero address.
*/
error MintToZeroAddress();
/**
* The quantity of tokens minted must be more than zero.
*/
error MintZeroQuantity();
/**
* The token does not exist.
*/
error OwnerQueryForNonexistentToken();
/**
* The caller must own the token or be an approved operator.
*/
error TransferCallerNotOwnerNorApproved();
/**
* The token must be owned by `from`.
*/
error TransferFromIncorrectOwner();
/**
* Cannot safely transfer to a contract that does not implement the
* ERC721Receiver interface.
*/
error TransferToNonERC721ReceiverImplementer();
/**
* Cannot transfer to the zero address.
*/
error TransferToZeroAddress();
/**
* The token does not exist.
*/
error URIQueryForNonexistentToken();
/**
* The `quantity` minted with ERC2309 exceeds the safety limit.
*/
error MintERC2309QuantityExceedsLimit();
/**
* The `extraData` cannot be set on an unintialized ownership slot.
*/
error OwnershipNotInitializedForExtraData();
// =============================================================
// STRUCTS
// =============================================================
struct TokenOwnership {
// The address of the owner.
address addr;
// Stores the start time of ownership with minimal overhead for tokenomics.
uint64 startTimestamp;
// Whether the token has been burned.
bool burned;
// Arbitrary data similar to `startTimestamp` that can be set via {_extraData}.
uint24 extraData;
}
// =============================================================
// TOKEN COUNTERS
// =============================================================
/**
* @dev Returns the total number of tokens in existence.
* Burned tokens will reduce the count.
* To get the total number of tokens minted, please see {_totalMinted}.
*/
function totalSupply() external view returns (uint256);
// =============================================================
// IERC165
// =============================================================
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
* to learn more about how these ids are created.
*
* This function call must use less than 30000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
// =============================================================
// IERC721
// =============================================================
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables or disables
* (`approved`) `operator` to manage all of its assets.
*/
event ApprovalForAll(address indexed owner, address indexed operator, bool approved);
/**
* @dev Returns the number of tokens in `owner`'s account.
*/
function balanceOf(address owner) external view returns (uint256 balance);
/**
* @dev Returns the owner of the `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function ownerOf(uint256 tokenId) external view returns (address owner);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`,
* checking first that contract recipients are aware of the ERC721 protocol
* to prevent tokens from being forever locked.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be have been allowed to move
* this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement
* {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes calldata data
) external;
/**
* @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Transfers `tokenId` from `from` to `to`.
*
* WARNING: Usage of this method is discouraged, use {safeTransferFrom}
* whenever possible.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token
* by either {approve} or {setApprovalForAll}.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Gives permission to `to` to transfer `tokenId` token to another account.
* The approval is cleared when the token is transferred.
*
* Only a single account can be approved at a time, so approving the
* zero address clears previous approvals.
*
* Requirements:
*
* - The caller must own the token or be an approved operator.
* - `tokenId` must exist.
*
* Emits an {Approval} event.
*/
function approve(address to, uint256 tokenId) external;
/**
* @dev Approve or remove `operator` as an operator for the caller.
* Operators can call {transferFrom} or {safeTransferFrom}
* for any token owned by the caller.
*
* Requirements:
*
* - The `operator` cannot be the caller.
*
* Emits an {ApprovalForAll} event.
*/
function setApprovalForAll(address operator, bool _approved) external;
/**
* @dev Returns the account approved for `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function getApproved(uint256 tokenId) external view returns (address operator);
/**
* @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
*
* See {setApprovalForAll}.
*/
function isApprovedForAll(address owner, address operator) external view returns (bool);
// =============================================================
// IERC721Metadata
// =============================================================
/**
* @dev Returns the token collection name.
*/
function name() external view returns (string memory);
/**
* @dev Returns the token collection symbol.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
*/
function tokenURI(uint256 tokenId) external view returns (string memory);
// =============================================================
// IERC2309
// =============================================================
/**
* @dev Emitted when tokens in `fromTokenId` to `toTokenId`
* (inclusive) is transferred from `from` to `to`, as defined in the
* [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard.
*
* See {_mintERC2309} for more details.
*/
event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to);
}
// File: erc721a/contracts/ERC721A.sol
// ERC721A Contracts v4.2.0
// Creator: Chiru Labs
pragma solidity ^0.8.4;
/**
* @dev Interface of ERC721 token receiver.
*/
interface ERC721A__IERC721Receiver {
function onERC721Received(
address operator,
address from,
uint256 tokenId,
bytes calldata data
) external returns (bytes4);
}
/**
* @title ERC721A
*
* @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721)
* Non-Fungible Token Standard, including the Metadata extension.
* Optimized for lower gas during batch mints.
*
* Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...)
* starting from `_startTokenId()`.
*
* Assumptions:
*
* - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
* - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256).
*/
contract ERC721A is IERC721A {
// Reference type for token approval.
struct TokenApprovalRef {
address value;
}
// =============================================================
// CONSTANTS
// =============================================================
// Mask of an entry in packed address data.
uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1;
// The bit position of `numberMinted` in packed address data.
uint256 private constant _BITPOS_NUMBER_MINTED = 64;
// The bit position of `numberBurned` in packed address data.
uint256 private constant _BITPOS_NUMBER_BURNED = 128;
// The bit position of `aux` in packed address data.
uint256 private constant _BITPOS_AUX = 192;
// Mask of all 256 bits in packed address data except the 64 bits for `aux`.
uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1;
// The bit position of `startTimestamp` in packed ownership.
uint256 private constant _BITPOS_START_TIMESTAMP = 160;
// The bit mask of the `burned` bit in packed ownership.
uint256 private constant _BITMASK_BURNED = 1 << 224;
// The bit position of the `nextInitialized` bit in packed ownership.
uint256 private constant _BITPOS_NEXT_INITIALIZED = 225;
// The bit mask of the `nextInitialized` bit in packed ownership.
uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225;
// The bit position of `extraData` in packed ownership.
uint256 private constant _BITPOS_EXTRA_DATA = 232;
// Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`.
uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1;
// The mask of the lower 160 bits for addresses.
uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1;
// The maximum `quantity` that can be minted with {_mintERC2309}.
// This limit is to prevent overflows on the address data entries.
// For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309}
// is required to cause an overflow, which is unrealistic.
uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000;
// The `Transfer` event signature is given by:
// `keccak256(bytes("Transfer(address,address,uint256)"))`.
bytes32 private constant _TRANSFER_EVENT_SIGNATURE =
0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef;
// =============================================================
// STORAGE
// =============================================================
// The next token ID to be minted.
uint256 private _currentIndex;
// The number of tokens burned.
uint256 private _burnCounter;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to ownership details
// An empty struct value does not necessarily mean the token is unowned.
// See {_packedOwnershipOf} implementation for details.
//
// Bits Layout:
// - [0..159] `addr`
// - [160..223] `startTimestamp`
// - [224] `burned`
// - [225] `nextInitialized`
// - [232..255] `extraData`
mapping(uint256 => uint256) private _packedOwnerships;
// Mapping owner address to address data.
//
// Bits Layout:
// - [0..63] `balance`
// - [64..127] `numberMinted`
// - [128..191] `numberBurned`
// - [192..255] `aux`
mapping(address => uint256) private _packedAddressData;
// Mapping from token ID to approved address.
mapping(uint256 => TokenApprovalRef) private _tokenApprovals;
// Mapping from owner to operator approvals
mapping(address => mapping(address => bool)) private _operatorApprovals;
// =============================================================
// CONSTRUCTOR
// =============================================================
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
_currentIndex = _startTokenId();
}
// =============================================================
// TOKEN COUNTING OPERATIONS
// =============================================================
/**
* @dev Returns the starting token ID.
* To change the starting token ID, please override this function.
*/
function _startTokenId() internal view virtual returns (uint256) {
return 0;
}
/**
* @dev Returns the next token ID to be minted.
*/
function _nextTokenId() internal view virtual returns (uint256) {
return _currentIndex;
}
/**
* @dev Returns the total number of tokens in existence.
* Burned tokens will reduce the count.
* To get the total number of tokens minted, please see {_totalMinted}.
*/
function totalSupply() public view virtual override returns (uint256) {
// Counter underflow is impossible as _burnCounter cannot be incremented
// more than `_currentIndex - _startTokenId()` times.
unchecked {
return _currentIndex - _burnCounter - _startTokenId();
}
}
/**
* @dev Returns the total amount of tokens minted in the contract.
*/
function _totalMinted() internal view virtual returns (uint256) {
// Counter underflow is impossible as `_currentIndex` does not decrement,
// and it is initialized to `_startTokenId()`.
unchecked {
return _currentIndex - _startTokenId();
}
}
/**
* @dev Returns the total number of tokens burned.
*/
function _totalBurned() internal view virtual returns (uint256) {
return _burnCounter;
}
// =============================================================
// ADDRESS DATA OPERATIONS
// =============================================================
/**
* @dev Returns the number of tokens in `owner`'s account.
*/
function balanceOf(address owner) public view virtual override returns (uint256) {
if (owner == address(0)) revert BalanceQueryForZeroAddress();
return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY;
}
/**
* Returns the number of tokens minted by `owner`.
*/
function _numberMinted(address owner) internal view returns (uint256) {
return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY;
}
/**
* Returns the number of tokens burned by or on behalf of `owner`.
*/
function _numberBurned(address owner) internal view returns (uint256) {
return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY;
}
/**
* Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used).
*/
function _getAux(address owner) internal view returns (uint64) {
return uint64(_packedAddressData[owner] >> _BITPOS_AUX);
}
/**
* Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used).
* If there are multiple variables, please pack them into a uint64.
*/
function _setAux(address owner, uint64 aux) internal virtual {
uint256 packed = _packedAddressData[owner];
uint256 auxCasted;
// Cast `aux` with assembly to avoid redundant masking.
assembly {
auxCasted := aux
}
packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX);
_packedAddressData[owner] = packed;
}
// =============================================================
// IERC165
// =============================================================
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
* to learn more about how these ids are created.
*
* This function call must use less than 30000 gas.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
// The interface IDs are constants representing the first 4 bytes
// of the XOR of all function selectors in the interface.
// See: [ERC165](https://eips.ethereum.org/EIPS/eip-165)
// (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`)
return
interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165.
interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721.
interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata.
}
// =============================================================
// IERC721Metadata
// =============================================================
/**
* @dev Returns the token collection name.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev Returns the token collection symbol.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
*/
function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
if (!_exists(tokenId)) revert URIQueryForNonexistentToken();
string memory baseURI = _baseURI();
return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : '';
}
/**
* @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
* token will be the concatenation of the `baseURI` and the `tokenId`. Empty
* by default, it can be overridden in child contracts.
*/
function _baseURI() internal view virtual returns (string memory) {
return '';
}
// =============================================================
// OWNERSHIPS OPERATIONS
// =============================================================
/**
* @dev Returns the owner of the `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function ownerOf(uint256 tokenId) public view virtual override returns (address) {
return address(uint160(_packedOwnershipOf(tokenId)));
}
/**
* @dev Gas spent here starts off proportional to the maximum mint batch size.
* It gradually moves to O(1) as tokens get transferred around over time.
*/
function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) {
return _unpackedOwnership(_packedOwnershipOf(tokenId));
}
/**
* @dev Returns the unpacked `TokenOwnership` struct at `index`.
*/
function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) {
return _unpackedOwnership(_packedOwnerships[index]);
}
/**
* @dev Initializes the ownership slot minted at `index` for efficiency purposes.
*/
function _initializeOwnershipAt(uint256 index) internal virtual {
if (_packedOwnerships[index] == 0) {
_packedOwnerships[index] = _packedOwnershipOf(index);
}
}
/**
* Returns the packed ownership data of `tokenId`.
*/
function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) {
uint256 curr = tokenId;
unchecked {
if (_startTokenId() <= curr)
if (curr < _currentIndex) {
uint256 packed = _packedOwnerships[curr];
// If not burned.
if (packed & _BITMASK_BURNED == 0) {
// Invariant:
// There will always be an initialized ownership slot
// (i.e. `ownership.addr != address(0) && ownership.burned == false`)
// before an unintialized ownership slot
// (i.e. `ownership.addr == address(0) && ownership.burned == false`)
// Hence, `curr` will not underflow.
//
// We can directly compare the packed value.
// If the address is zero, packed will be zero.
while (packed == 0) {
packed = _packedOwnerships[--curr];
}
return packed;
}
}
}
revert OwnerQueryForNonexistentToken();
}
/**
* @dev Returns the unpacked `TokenOwnership` struct from `packed`.
*/
function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) {
ownership.addr = address(uint160(packed));
ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP);
ownership.burned = packed & _BITMASK_BURNED != 0;
ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA);
}
/**
* @dev Packs ownership data into a single uint256.
*/
function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) {
assembly {
// Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
owner := and(owner, _BITMASK_ADDRESS)
// `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`.
result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags))
}
}
/**
* @dev Returns the `nextInitialized` flag set if `quantity` equals 1.
*/
function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) {
// For branchless setting of the `nextInitialized` flag.
assembly {
// `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`.
result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1))
}
}
// =============================================================
// APPROVAL OPERATIONS
// =============================================================
/**
* @dev Gives permission to `to` to transfer `tokenId` token to another account.
* The approval is cleared when the token is transferred.
*
* Only a single account can be approved at a time, so approving the
* zero address clears previous approvals.
*
* Requirements:
*
* - The caller must own the token or be an approved operator.
* - `tokenId` must exist.
*
* Emits an {Approval} event.
*/
function approve(address to, uint256 tokenId) public virtual override {
address owner = ownerOf(tokenId);
if (_msgSenderERC721A() != owner)
if (!isApprovedForAll(owner, _msgSenderERC721A())) {
revert ApprovalCallerNotOwnerNorApproved();
}
_tokenApprovals[tokenId].value = to;
emit Approval(owner, to, tokenId);
}
/**
* @dev Returns the account approved for `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function getApproved(uint256 tokenId) public view virtual override returns (address) {
if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();
return _tokenApprovals[tokenId].value;
}
/**
* @dev Approve or remove `operator` as an operator for the caller.
* Operators can call {transferFrom} or {safeTransferFrom}
* for any token owned by the caller.
*
* Requirements:
*
* - The `operator` cannot be the caller.
*
* Emits an {ApprovalForAll} event.
*/
function setApprovalForAll(address operator, bool approved) public virtual override {
if (operator == _msgSenderERC721A()) revert ApproveToCaller();
_operatorApprovals[_msgSenderERC721A()][operator] = approved;
emit ApprovalForAll(_msgSenderERC721A(), operator, approved);
}
/**
* @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
*
* See {setApprovalForAll}.
*/
function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
return _operatorApprovals[owner][operator];
}
/**
* @dev Returns whether `tokenId` exists.
*
* Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
*
* Tokens start existing when they are minted. See {_mint}.
*/
function _exists(uint256 tokenId) internal view virtual returns (bool) {
return
_startTokenId() <= tokenId &&
tokenId < _currentIndex && // If within bounds,
_packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned.
}
/**
* @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`.
*/
function _isSenderApprovedOrOwner(
address approvedAddress,
address owner,
address msgSender
) private pure returns (bool result) {
assembly {
// Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
owner := and(owner, _BITMASK_ADDRESS)
// Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean.
msgSender := and(msgSender, _BITMASK_ADDRESS)
// `msgSender == owner || msgSender == approvedAddress`.
result := or(eq(msgSender, owner), eq(msgSender, approvedAddress))
}
}
/**
* @dev Returns the storage slot and value for the approved address of `tokenId`.
*/
function _getApprovedSlotAndAddress(uint256 tokenId)
private
view
returns (uint256 approvedAddressSlot, address approvedAddress)
{
TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId];
// The following is equivalent to `approvedAddress = _tokenApprovals[tokenId]`.
assembly {
approvedAddressSlot := tokenApproval.slot
approvedAddress := sload(approvedAddressSlot)
}
}
// =============================================================
// TRANSFER OPERATIONS
// =============================================================
/**
* @dev Transfers `tokenId` from `from` to `to`.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token
* by either {approve} or {setApprovalForAll}.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);
if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner();
(uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId);
// The nested ifs save around 20+ gas over a compound boolean condition.
if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A()))
if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved();
if (to == address(0)) revert TransferToZeroAddress();
_beforeTokenTransfers(from, to, tokenId, 1);
// Clear approvals from the previous owner.
assembly {
if approvedAddress {
// This is equivalent to `delete _tokenApprovals[tokenId]`.
sstore(approvedAddressSlot, 0)
}
}
// Underflow of the sender's balance is impossible because we check for
// ownership above and the recipient's balance can't realistically overflow.
// Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256.
unchecked {
// We can directly increment and decrement the balances.
--_packedAddressData[from]; // Updates: `balance -= 1`.
++_packedAddressData[to]; // Updates: `balance += 1`.
// Updates:
// - `address` to the next owner.
// - `startTimestamp` to the timestamp of transfering.
// - `burned` to `false`.
// - `nextInitialized` to `true`.
_packedOwnerships[tokenId] = _packOwnershipData(
to,
_BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked)
);
// If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) {
uint256 nextTokenId = tokenId + 1;
// If the next slot's address is zero and not burned (i.e. packed value is zero).
if (_packedOwnerships[nextTokenId] == 0) {
// If the next slot is within bounds.
if (nextTokenId != _currentIndex) {
// Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
_packedOwnerships[nextTokenId] = prevOwnershipPacked;
}
}
}
}
emit Transfer(from, to, tokenId);
_afterTokenTransfers(from, to, tokenId, 1);
}
/**
* @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
safeTransferFrom(from, to, tokenId, '');
}
/**
* @dev Safely transfers `tokenId` token from `from` to `to`.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token
* by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement
* {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes memory _data
) public virtual override {
transferFrom(from, to, tokenId);
if (to.code.length != 0)
if (!_checkContractOnERC721Received(from, to, tokenId, _data)) {
revert TransferToNonERC721ReceiverImplementer();
}
}
/**
* @dev Hook that is called before a set of serially-ordered token IDs
* are about to be transferred. This includes minting.
* And also called before burning one token.
*
* `startTokenId` - the first token ID to be transferred.
* `quantity` - the amount to be transferred.
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, `from`'s `tokenId` will be
* transferred to `to`.
* - When `from` is zero, `tokenId` will be minted for `to`.
* - When `to` is zero, `tokenId` will be burned by `from`.
* - `from` and `to` are never both zero.
*/
function _beforeTokenTransfers(
address from,
address to,
uint256 startTokenId,
uint256 quantity
) internal virtual {}
/**
* @dev Hook that is called after a set of serially-ordered token IDs
* have been transferred. This includes minting.
* And also called after one token has been burned.
*
* `startTokenId` - the first token ID to be transferred.
* `quantity` - the amount to be transferred.
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, `from`'s `tokenId` has been
* transferred to `to`.
* - When `from` is zero, `tokenId` has been minted for `to`.
* - When `to` is zero, `tokenId` has been burned by `from`.
* - `from` and `to` are never both zero.
*/
function _afterTokenTransfers(
address from,
address to,
uint256 startTokenId,
uint256 quantity
) internal virtual {}
/**
* @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract.
*
* `from` - Previous owner of the given token ID.
* `to` - Target address that will receive the token.
* `tokenId` - Token ID to be transferred.
* `_data` - Optional data to send along with the call.
*
* Returns whether the call correctly returned the expected magic value.
*/
function _checkContractOnERC721Received(
address from,
address to,
uint256 tokenId,
bytes memory _data
) private returns (bool) {
try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns (
bytes4 retval
) {
return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector;
} catch (bytes memory reason) {
if (reason.length == 0) {
revert TransferToNonERC721ReceiverImplementer();
} else {
assembly {
revert(add(32, reason), mload(reason))
}
}
}
}
// =============================================================
// MINT OPERATIONS
// =============================================================
/**
* @dev Mints `quantity` tokens and transfers them to `to`.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - `quantity` must be greater than 0.
*
* Emits a {Transfer} event for each mint.
*/
function _mint(address to, uint256 quantity) internal virtual {
uint256 startTokenId = _currentIndex;
if (quantity == 0) revert MintZeroQuantity();
_beforeTokenTransfers(address(0), to, startTokenId, quantity);
// Overflows are incredibly unrealistic.
// `balance` and `numberMinted` have a maximum limit of 2**64.
// `tokenId` has a maximum limit of 2**256.
unchecked {
// Updates:
// - `balance += quantity`.
// - `numberMinted += quantity`.
//
// We can directly add to the `balance` and `numberMinted`.
_packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1);
// Updates:
// - `address` to the owner.
// - `startTimestamp` to the timestamp of minting.
// - `burned` to `false`.
// - `nextInitialized` to `quantity == 1`.
_packedOwnerships[startTokenId] = _packOwnershipData(
to,
_nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
);
uint256 toMasked;
uint256 end = startTokenId + quantity;
// Use assembly to loop and emit the `Transfer` event for gas savings.
assembly {
// Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean.
toMasked := and(to, _BITMASK_ADDRESS)
// Emit the `Transfer` event.
log4(
0, // Start of data (0, since no data).
0, // End of data (0, since no data).
_TRANSFER_EVENT_SIGNATURE, // Signature.
0, // `address(0)`.
toMasked, // `to`.
startTokenId // `tokenId`.
)
for {
let tokenId := add(startTokenId, 1)
} iszero(eq(tokenId, end)) {
tokenId := add(tokenId, 1)
} {
// Emit the `Transfer` event. Similar to above.
log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId)
}
}
if (toMasked == 0) revert MintToZeroAddress();
_currentIndex = end;
}
_afterTokenTransfers(address(0), to, startTokenId, quantity);
}
/**
* @dev Mints `quantity` tokens and transfers them to `to`.
*
* This function is intended for efficient minting only during contract creation.
*
* It emits only one {ConsecutiveTransfer} as defined in
* [ERC2309](https://eips.ethereum.org/EIPS/eip-2309),
* instead of a sequence of {Transfer} event(s).
*
* Calling this function outside of contract creation WILL make your contract
* non-compliant with the ERC721 standard.
* For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309
* {ConsecutiveTransfer} event is only permissible during contract creation.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - `quantity` must be greater than 0.
*
* Emits a {ConsecutiveTransfer} event.
*/
function _mintERC2309(address to, uint256 quantity) internal virtual {
uint256 startTokenId = _currentIndex;
if (to == address(0)) revert MintToZeroAddress();
if (quantity == 0) revert MintZeroQuantity();
if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit();
_beforeTokenTransfers(address(0), to, startTokenId, quantity);
// Overflows are unrealistic due to the above check for `quantity` to be below the limit.
unchecked {
// Updates:
// - `balance += quantity`.
// - `numberMinted += quantity`.
//
// We can directly add to the `balance` and `numberMinted`.
_packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1);
// Updates:
// - `address` to the owner.
// - `startTimestamp` to the timestamp of minting.
// - `burned` to `false`.
// - `nextInitialized` to `quantity == 1`.
_packedOwnerships[startTokenId] = _packOwnershipData(
to,
_nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
);
emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to);
_currentIndex = startTokenId + quantity;
}
_afterTokenTransfers(address(0), to, startTokenId, quantity);
}
/**
* @dev Safely mints `quantity` tokens and transfers them to `to`.
*
* Requirements:
*
* - If `to` refers to a smart contract, it must implement
* {IERC721Receiver-onERC721Received}, which is called for each safe transfer.
* - `quantity` must be greater than 0.
*
* See {_mint}.
*
* Emits a {Transfer} event for each mint.
*/
function _safeMint(
address to,
uint256 quantity,
bytes memory _data
) internal virtual {
_mint(to, quantity);
unchecked {
if (to.code.length != 0) {
uint256 end = _currentIndex;
uint256 index = end - quantity;
do {
if (!_checkContractOnERC721Received(address(0), to, index++, _data)) {
revert TransferToNonERC721ReceiverImplementer();
}
} while (index < end);
// Reentrancy protection.
if (_currentIndex != end) revert();
}
}
}
/**
* @dev Equivalent to `_safeMint(to, quantity, '')`.
*/
function _safeMint(address to, uint256 quantity) internal virtual {
_safeMint(to, quantity, '');
}
// =============================================================
// BURN OPERATIONS
// =============================================================
/**
* @dev Equivalent to `_burn(tokenId, false)`.
*/
function _burn(uint256 tokenId) internal virtual {
_burn(tokenId, false);
}
/**
* @dev Destroys `tokenId`.
* The approval is cleared when the token is burned.
*
* Requirements:
*
* - `tokenId` must exist.
*
* Emits a {Transfer} event.
*/
function _burn(uint256 tokenId, bool approvalCheck) internal virtual {
uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);
address from = address(uint160(prevOwnershipPacked));
(uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId);
if (approvalCheck) {
// The nested ifs save around 20+ gas over a compound boolean condition.
if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A()))
if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved();
}
_beforeTokenTransfers(from, address(0), tokenId, 1);
// Clear approvals from the previous owner.
assembly {
if approvedAddress {
// This is equivalent to `delete _tokenApprovals[tokenId]`.
sstore(approvedAddressSlot, 0)
}
}
// Underflow of the sender's balance is impossible because we check for
// ownership above and the recipient's balance can't realistically overflow.
// Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256.
unchecked {
// Updates:
// - `balance -= 1`.
// - `numberBurned += 1`.
//
// We can directly decrement the balance, and increment the number burned.
// This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`.
_packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1;
// Updates:
// - `address` to the last owner.
// - `startTimestamp` to the timestamp of burning.
// - `burned` to `true`.
// - `nextInitialized` to `true`.
_packedOwnerships[tokenId] = _packOwnershipData(
from,
(_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked)
);
// If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) {
uint256 nextTokenId = tokenId + 1;
// If the next slot's address is zero and not burned (i.e. packed value is zero).
if (_packedOwnerships[nextTokenId] == 0) {
// If the next slot is within bounds.
if (nextTokenId != _currentIndex) {
// Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
_packedOwnerships[nextTokenId] = prevOwnershipPacked;
}
}
}
}
emit Transfer(from, address(0), tokenId);
_afterTokenTransfers(from, address(0), tokenId, 1);
// Overflow not possible, as _burnCounter cannot be exceed _currentIndex times.
unchecked {
_burnCounter++;
}
}
// =============================================================
// EXTRA DATA OPERATIONS
// =============================================================
/**
* @dev Directly sets the extra data for the ownership data `index`.
*/
function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual {
uint256 packed = _packedOwnerships[index];
if (packed == 0) revert OwnershipNotInitializedForExtraData();
uint256 extraDataCasted;
// Cast `extraData` with assembly to avoid redundant masking.
assembly {
extraDataCasted := extraData
}
packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA);
_packedOwnerships[index] = packed;
}
/**
* @dev Called during each token transfer to set the 24bit `extraData` field.
* Intended to be overridden by the cosumer contract.
*
* `previousExtraData` - the value of `extraData` before transfer.
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, `from`'s `tokenId` will be
* transferred to `to`.
* - When `from` is zero, `tokenId` will be minted for `to`.
* - When `to` is zero, `tokenId` will be burned by `from`.
* - `from` and `to` are never both zero.
*/
function _extraData(
address from,
address to,
uint24 previousExtraData
) internal view virtual returns (uint24) {}
/**
* @dev Returns the next extra data for the packed ownership data.
* The returned result is shifted into position.
*/
function _nextExtraData(
address from,
address to,
uint256 prevOwnershipPacked
) private view returns (uint256) {
uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA);
return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA;
}
// =============================================================
// OTHER OPERATIONS
// =============================================================
/**
* @dev Returns the message sender (defaults to `msg.sender`).
*
* If you are writing GSN compatible contracts, you need to override this function.
*/
function _msgSenderERC721A() internal view virtual returns (address) {
return msg.sender;
}
/**
* @dev Converts a uint256 to its ASCII string decimal representation.
*/
function _toString(uint256 value) internal pure virtual returns (string memory 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.
// The ASCII index of the '0' character is 48.
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/squares.sol
pragma solidity ^0.8.4;
contract squares is ERC721A, Ownable, ReentrancyGuard {
using Strings for uint256;
uint256 public constant Max_Supply = 2200;
uint256 public price = 0.0005 ether;
string contractmeta = "ipfs://QmPJJzCyuoZBDep6gpCkGYDk5nviLuG7xqMbjze5uFbJRU";
string private _baseTokenURI = "ipfs://QmcuPcPa1FkpRGRmRUY3sAAcy1gC1s89eCUg7L7wo8dN11/";
bool public isActive = true;
constructor () ERC721A("SomethingArt", "SMART") {
}
event Minted(
address minter,
uint256 quantity
);
function contractURI() public view returns (string memory) {
return contractmeta;
}
function _baseURI() internal view virtual override returns (string memory) {
return _baseTokenURI;
}
function setBaseURI(string memory _URI) external onlyOwner {
_baseTokenURI = _URI;
}
function setActive(bool _state) external onlyOwner {
isActive = _state;
}
function tokenURI(uint256 _tokenId) public view virtual override returns (string memory){
require( _exists(_tokenId),"no token");
string memory currentBaseURI = _baseURI();
return bytes(currentBaseURI).length > 0
? string(abi.encodePacked(currentBaseURI, _tokenId.toString(), ".json"))
: "";
}
function mint(uint256 _quantity) external payable nonReentrant {
require(isActive, "Not active");
require(_quantity > 0, "No 0 mint");
require(msg.value >= (price * _quantity), "Not enough Eth");
require((totalSupply() + _quantity) <= Max_Supply, "Max supply");
_safeMint(msg.sender, _quantity);
emit Minted (
msg.sender,
_quantity
);
}
function adminMint(address _recp, uint256 _quantity) external nonReentrant onlyOwner{
require(isActive, "Not active");
_safeMint(_recp, _quantity);
emit Minted (
_recp,
_quantity
);
}
function withdraw(address _address, uint256 amount) public onlyOwner nonReentrant {
(bool os, ) = payable(_address).call{value: amount}("");
require(os);
//---
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"minter","type":"address"},{"indexed":false,"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"Minted","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":"Max_Supply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_recp","type":"address"},{"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":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setActive","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":"_URI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
6601c6bf52634000600a5560e0604052603560808181529062001bb560a03980516200003491600b9160209091019062000157565b5060405180606001604052806036815260200162001b7f6036913980516200006591600c9160209091019062000157565b50600d805460ff191660011790553480156200008057600080fd5b50604080518082018252600c81526b14dbdb595d1a1a5b99d05c9d60a21b60208083019182528351808501909452600584526414d350549560da1b908401528151919291620000d29160029162000157565b508051620000e890600390602084019062000157565b50506000805550620000fa3362000105565b60016009556200023a565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200016590620001fd565b90600052602060002090601f016020900481019282620001895760008555620001d4565b82601f10620001a457805160ff1916838001178555620001d4565b82800160010185558215620001d4579182015b82811115620001d4578251825591602001919060010190620001b7565b50620001e2929150620001e6565b5090565b5b80821115620001e25760008155600101620001e7565b600181811c908216806200021257607f821691505b602082108114156200023457634e487b7160e01b600052602260045260246000fd5b50919050565b611935806200024a6000396000f3fe6080604052600436106101815760003560e01c80638da5cb5b116100d1578063b88d4fde1161008a578063e8a3d48511610064578063e8a3d4851461043b578063e985e9c514610450578063f2fde38b14610499578063f3fef3a3146104b957600080fd5b8063b88d4fde146103db578063c87b56dd146103fb578063e58306f91461041b57600080fd5b80638da5cb5b1461033f57806395d89b411461035d578063a035b1fe14610372578063a0712d6814610388578063a22cb4651461039b578063acec338a146103bb57600080fd5b806323b872dd1161013e5780636352211e116101185780636352211e146102d45780636737c9c1146102f457806370a082311461030a578063715018a61461032a57600080fd5b806323b872dd1461027457806342842e0e1461029457806355f804b3146102b457600080fd5b806301ffc9a71461018657806306fdde03146101bb578063081812fc146101dd578063095ea7b31461021557806318160ddd1461023757806322f3e2d41461025a575b600080fd5b34801561019257600080fd5b506101a66101a13660046115f2565b6104d9565b60405190151581526020015b60405180910390f35b3480156101c757600080fd5b506101d061052b565b6040516101b29190611730565b3480156101e957600080fd5b506101fd6101f8366004611670565b6105bd565b6040516001600160a01b0390911681526020016101b2565b34801561022157600080fd5b506102356102303660046115af565b610601565b005b34801561024357600080fd5b50600154600054035b6040519081526020016101b2565b34801561026657600080fd5b50600d546101a69060ff1681565b34801561028057600080fd5b5061023561028f3660046114d2565b6106a1565b3480156102a057600080fd5b506102356102af3660046114d2565b610832565b3480156102c057600080fd5b506102356102cf36600461162a565b610852565b3480156102e057600080fd5b506101fd6102ef366004611670565b61089c565b34801561030057600080fd5b5061024c61089881565b34801561031657600080fd5b5061024c610325366004611486565b6108a7565b34801561033657600080fd5b506102356108f6565b34801561034b57600080fd5b506008546001600160a01b03166101fd565b34801561036957600080fd5b506101d061092c565b34801561037e57600080fd5b5061024c600a5481565b610235610396366004611670565b61093b565b3480156103a757600080fd5b506102356103b6366004611586565b610acd565b3480156103c757600080fd5b506102356103d63660046115d8565b610b63565b3480156103e757600080fd5b506102356103f636600461150d565b610ba0565b34801561040757600080fd5b506101d0610416366004611670565b610bea565b34801561042757600080fd5b506102356104363660046115af565b610c88565b34801561044757600080fd5b506101d0610d6e565b34801561045c57600080fd5b506101a661046b3660046114a0565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b3480156104a557600080fd5b506102356104b4366004611486565b610d7d565b3480156104c557600080fd5b506102356104d43660046115af565b610e18565b60006301ffc9a760e01b6001600160e01b03198316148061050a57506380ac58cd60e01b6001600160e01b03198316145b806105255750635b5e139f60e01b6001600160e01b03198316145b92915050565b60606002805461053a9061183d565b80601f01602080910402602001604051908101604052809291908181526020018280546105669061183d565b80156105b35780601f10610588576101008083540402835291602001916105b3565b820191906000526020600020905b81548152906001019060200180831161059657829003601f168201915b5050505050905090565b60006105c882610ed2565b6105e5576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061060c8261089c565b9050336001600160a01b0382161461064557610628813361046b565b610645576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60006106ac82610ef9565b9050836001600160a01b0316816001600160a01b0316146106df5760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b0388169091141761072c5761070f863361046b565b61072c57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661075357604051633a954ecd60e21b815260040160405180910390fd5b801561075e57600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040902055600160e11b83166107e957600184016000818152600460205260409020546107e75760005481146107e75760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b61084d83838360405180602001604052806000815250610ba0565b505050565b6008546001600160a01b031633146108855760405162461bcd60e51b815260040161087c90611743565b60405180910390fd5b805161089890600c90602084019061134b565b5050565b600061052582610ef9565b60006001600160a01b0382166108d0576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b031633146109205760405162461bcd60e51b815260040161087c90611743565b61092a6000610f5a565b565b60606003805461053a9061183d565b6002600954141561095e5760405162461bcd60e51b815260040161087c90611778565b6002600955600d5460ff166109a25760405162461bcd60e51b815260206004820152600a6024820152694e6f742061637469766560b01b604482015260640161087c565b600081116109de5760405162461bcd60e51b8152602060048201526009602482015268139bc80c081b5a5b9d60ba1b604482015260640161087c565b80600a546109ec91906117db565b341015610a2c5760405162461bcd60e51b815260206004820152600e60248201526d09cdee840cadcdeeaced0408ae8d60931b604482015260640161087c565b61089881610a3d6001546000540390565b610a4791906117af565b1115610a825760405162461bcd60e51b815260206004820152600a6024820152694d617820737570706c7960b01b604482015260640161087c565b610a8c3382610fac565b60408051338152602081018390527f30385c845b448a36257a6a1716e6ad2e1bc2cbe333cde1e69fe849ad6511adfe910160405180910390a1506001600955565b6001600160a01b038216331415610af75760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6008546001600160a01b03163314610b8d5760405162461bcd60e51b815260040161087c90611743565b600d805460ff1916911515919091179055565b610bab8484846106a1565b6001600160a01b0383163b15610be457610bc784848484610fc6565b610be4576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6060610bf582610ed2565b610c2c5760405162461bcd60e51b81526020600482015260086024820152673737903a37b5b2b760c11b604482015260640161087c565b6000610c366110be565b90506000815111610c565760405180602001604052806000815250610c81565b80610c60846110cd565b604051602001610c719291906116b4565b6040516020818303038152906040525b9392505050565b60026009541415610cab5760405162461bcd60e51b815260040161087c90611778565b60026009556008546001600160a01b03163314610cda5760405162461bcd60e51b815260040161087c90611743565b600d5460ff16610d195760405162461bcd60e51b815260206004820152600a6024820152694e6f742061637469766560b01b604482015260640161087c565b610d238282610fac565b604080516001600160a01b0384168152602081018390527f30385c845b448a36257a6a1716e6ad2e1bc2cbe333cde1e69fe849ad6511adfe910160405180910390a150506001600955565b6060600b805461053a9061183d565b6008546001600160a01b03163314610da75760405162461bcd60e51b815260040161087c90611743565b6001600160a01b038116610e0c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161087c565b610e1581610f5a565b50565b6008546001600160a01b03163314610e425760405162461bcd60e51b815260040161087c90611743565b60026009541415610e655760405162461bcd60e51b815260040161087c90611778565b60026009556040516000906001600160a01b0384169083908381818185875af1925050503d8060008114610eb5576040519150601f19603f3d011682016040523d82523d6000602084013e610eba565b606091505b5050905080610ec857600080fd5b5050600160095550565b6000805482108015610525575050600090815260046020526040902054600160e01b161590565b600081600054811015610f4157600081815260046020526040902054600160e01b8116610f3f575b80610c81575060001901600081815260046020526040902054610f21565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6108988282604051806020016040528060008152506111e7565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290610ffb9033908990889088906004016116f3565b602060405180830381600087803b15801561101557600080fd5b505af1925050508015611045575060408051601f3d908101601f191682019092526110429181019061160e565b60015b6110a0573d808015611073576040519150601f19603f3d011682016040523d82523d6000602084013e611078565b606091505b508051611098576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060600c805461053a9061183d565b6060816110f15750506040805180820190915260018152600360fc1b602082015290565b8160005b811561111b578061110581611878565b91506111149050600a836117c7565b91506110f5565b60008167ffffffffffffffff81111561114457634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561116e576020820181803683370190505b5090505b84156110b6576111836001836117fa565b9150611190600a86611893565b61119b9060306117af565b60f81b8183815181106111be57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506111e0600a866117c7565b9450611172565b6111f18383611254565b6001600160a01b0383163b1561084d576000548281035b61121b6000868380600101945086610fc6565b611238576040516368d2bf6b60e11b815260040160405180910390fd5b81811061120857816000541461124d57600080fd5b5050505050565b600054816112755760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461132457808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001016112ec565b508161134257604051622e076360e81b815260040160405180910390fd5b60005550505050565b8280546113579061183d565b90600052602060002090601f01602090048101928261137957600085556113bf565b82601f1061139257805160ff19168380011785556113bf565b828001600101855582156113bf579182015b828111156113bf5782518255916020019190600101906113a4565b506113cb9291506113cf565b5090565b5b808211156113cb57600081556001016113d0565b600067ffffffffffffffff808411156113ff576113ff6118d3565b604051601f8501601f19908116603f01168101908282118183101715611427576114276118d3565b8160405280935085815286868601111561144057600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b038116811461147157600080fd5b919050565b8035801515811461147157600080fd5b600060208284031215611497578081fd5b610c818261145a565b600080604083850312156114b2578081fd5b6114bb8361145a565b91506114c96020840161145a565b90509250929050565b6000806000606084860312156114e6578081fd5b6114ef8461145a565b92506114fd6020850161145a565b9150604084013590509250925092565b60008060008060808587031215611522578081fd5b61152b8561145a565b93506115396020860161145a565b925060408501359150606085013567ffffffffffffffff81111561155b578182fd5b8501601f8101871361156b578182fd5b61157a878235602084016113e4565b91505092959194509250565b60008060408385031215611598578182fd5b6115a18361145a565b91506114c960208401611476565b600080604083850312156115c1578182fd5b6115ca8361145a565b946020939093013593505050565b6000602082840312156115e9578081fd5b610c8182611476565b600060208284031215611603578081fd5b8135610c81816118e9565b60006020828403121561161f578081fd5b8151610c81816118e9565b60006020828403121561163b578081fd5b813567ffffffffffffffff811115611651578182fd5b8201601f81018413611661578182fd5b6110b6848235602084016113e4565b600060208284031215611681578081fd5b5035919050565b600081518084526116a0816020860160208601611811565b601f01601f19169290920160200192915050565b600083516116c6818460208801611811565b8351908301906116da818360208801611811565b64173539b7b760d91b9101908152600501949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061172690830184611688565b9695505050505050565b602081526000610c816020830184611688565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b600082198211156117c2576117c26118a7565b500190565b6000826117d6576117d66118bd565b500490565b60008160001904831182151516156117f5576117f56118a7565b500290565b60008282101561180c5761180c6118a7565b500390565b60005b8381101561182c578181015183820152602001611814565b83811115610be45750506000910152565b600181811c9082168061185157607f821691505b6020821081141561187257634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561188c5761188c6118a7565b5060010190565b6000826118a2576118a26118bd565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610e1557600080fdfea2646970667358221220108bdf74ba3770cd19c032a61dadb2453d85c0b7b7444e63dbf11ee9a18b11cf64736f6c63430008040033697066733a2f2f516d63755063506131466b705247526d5255593373414163793167433173383965435567374c37776f38644e31312f697066733a2f2f516d504a4a7a4379756f5a42446570366770436b4759446b356e76694c75473778714d626a7a65357546624a5255
Deployed Bytecode
0x6080604052600436106101815760003560e01c80638da5cb5b116100d1578063b88d4fde1161008a578063e8a3d48511610064578063e8a3d4851461043b578063e985e9c514610450578063f2fde38b14610499578063f3fef3a3146104b957600080fd5b8063b88d4fde146103db578063c87b56dd146103fb578063e58306f91461041b57600080fd5b80638da5cb5b1461033f57806395d89b411461035d578063a035b1fe14610372578063a0712d6814610388578063a22cb4651461039b578063acec338a146103bb57600080fd5b806323b872dd1161013e5780636352211e116101185780636352211e146102d45780636737c9c1146102f457806370a082311461030a578063715018a61461032a57600080fd5b806323b872dd1461027457806342842e0e1461029457806355f804b3146102b457600080fd5b806301ffc9a71461018657806306fdde03146101bb578063081812fc146101dd578063095ea7b31461021557806318160ddd1461023757806322f3e2d41461025a575b600080fd5b34801561019257600080fd5b506101a66101a13660046115f2565b6104d9565b60405190151581526020015b60405180910390f35b3480156101c757600080fd5b506101d061052b565b6040516101b29190611730565b3480156101e957600080fd5b506101fd6101f8366004611670565b6105bd565b6040516001600160a01b0390911681526020016101b2565b34801561022157600080fd5b506102356102303660046115af565b610601565b005b34801561024357600080fd5b50600154600054035b6040519081526020016101b2565b34801561026657600080fd5b50600d546101a69060ff1681565b34801561028057600080fd5b5061023561028f3660046114d2565b6106a1565b3480156102a057600080fd5b506102356102af3660046114d2565b610832565b3480156102c057600080fd5b506102356102cf36600461162a565b610852565b3480156102e057600080fd5b506101fd6102ef366004611670565b61089c565b34801561030057600080fd5b5061024c61089881565b34801561031657600080fd5b5061024c610325366004611486565b6108a7565b34801561033657600080fd5b506102356108f6565b34801561034b57600080fd5b506008546001600160a01b03166101fd565b34801561036957600080fd5b506101d061092c565b34801561037e57600080fd5b5061024c600a5481565b610235610396366004611670565b61093b565b3480156103a757600080fd5b506102356103b6366004611586565b610acd565b3480156103c757600080fd5b506102356103d63660046115d8565b610b63565b3480156103e757600080fd5b506102356103f636600461150d565b610ba0565b34801561040757600080fd5b506101d0610416366004611670565b610bea565b34801561042757600080fd5b506102356104363660046115af565b610c88565b34801561044757600080fd5b506101d0610d6e565b34801561045c57600080fd5b506101a661046b3660046114a0565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b3480156104a557600080fd5b506102356104b4366004611486565b610d7d565b3480156104c557600080fd5b506102356104d43660046115af565b610e18565b60006301ffc9a760e01b6001600160e01b03198316148061050a57506380ac58cd60e01b6001600160e01b03198316145b806105255750635b5e139f60e01b6001600160e01b03198316145b92915050565b60606002805461053a9061183d565b80601f01602080910402602001604051908101604052809291908181526020018280546105669061183d565b80156105b35780601f10610588576101008083540402835291602001916105b3565b820191906000526020600020905b81548152906001019060200180831161059657829003601f168201915b5050505050905090565b60006105c882610ed2565b6105e5576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061060c8261089c565b9050336001600160a01b0382161461064557610628813361046b565b610645576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60006106ac82610ef9565b9050836001600160a01b0316816001600160a01b0316146106df5760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b0388169091141761072c5761070f863361046b565b61072c57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661075357604051633a954ecd60e21b815260040160405180910390fd5b801561075e57600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040902055600160e11b83166107e957600184016000818152600460205260409020546107e75760005481146107e75760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b61084d83838360405180602001604052806000815250610ba0565b505050565b6008546001600160a01b031633146108855760405162461bcd60e51b815260040161087c90611743565b60405180910390fd5b805161089890600c90602084019061134b565b5050565b600061052582610ef9565b60006001600160a01b0382166108d0576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b031633146109205760405162461bcd60e51b815260040161087c90611743565b61092a6000610f5a565b565b60606003805461053a9061183d565b6002600954141561095e5760405162461bcd60e51b815260040161087c90611778565b6002600955600d5460ff166109a25760405162461bcd60e51b815260206004820152600a6024820152694e6f742061637469766560b01b604482015260640161087c565b600081116109de5760405162461bcd60e51b8152602060048201526009602482015268139bc80c081b5a5b9d60ba1b604482015260640161087c565b80600a546109ec91906117db565b341015610a2c5760405162461bcd60e51b815260206004820152600e60248201526d09cdee840cadcdeeaced0408ae8d60931b604482015260640161087c565b61089881610a3d6001546000540390565b610a4791906117af565b1115610a825760405162461bcd60e51b815260206004820152600a6024820152694d617820737570706c7960b01b604482015260640161087c565b610a8c3382610fac565b60408051338152602081018390527f30385c845b448a36257a6a1716e6ad2e1bc2cbe333cde1e69fe849ad6511adfe910160405180910390a1506001600955565b6001600160a01b038216331415610af75760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6008546001600160a01b03163314610b8d5760405162461bcd60e51b815260040161087c90611743565b600d805460ff1916911515919091179055565b610bab8484846106a1565b6001600160a01b0383163b15610be457610bc784848484610fc6565b610be4576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6060610bf582610ed2565b610c2c5760405162461bcd60e51b81526020600482015260086024820152673737903a37b5b2b760c11b604482015260640161087c565b6000610c366110be565b90506000815111610c565760405180602001604052806000815250610c81565b80610c60846110cd565b604051602001610c719291906116b4565b6040516020818303038152906040525b9392505050565b60026009541415610cab5760405162461bcd60e51b815260040161087c90611778565b60026009556008546001600160a01b03163314610cda5760405162461bcd60e51b815260040161087c90611743565b600d5460ff16610d195760405162461bcd60e51b815260206004820152600a6024820152694e6f742061637469766560b01b604482015260640161087c565b610d238282610fac565b604080516001600160a01b0384168152602081018390527f30385c845b448a36257a6a1716e6ad2e1bc2cbe333cde1e69fe849ad6511adfe910160405180910390a150506001600955565b6060600b805461053a9061183d565b6008546001600160a01b03163314610da75760405162461bcd60e51b815260040161087c90611743565b6001600160a01b038116610e0c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161087c565b610e1581610f5a565b50565b6008546001600160a01b03163314610e425760405162461bcd60e51b815260040161087c90611743565b60026009541415610e655760405162461bcd60e51b815260040161087c90611778565b60026009556040516000906001600160a01b0384169083908381818185875af1925050503d8060008114610eb5576040519150601f19603f3d011682016040523d82523d6000602084013e610eba565b606091505b5050905080610ec857600080fd5b5050600160095550565b6000805482108015610525575050600090815260046020526040902054600160e01b161590565b600081600054811015610f4157600081815260046020526040902054600160e01b8116610f3f575b80610c81575060001901600081815260046020526040902054610f21565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6108988282604051806020016040528060008152506111e7565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290610ffb9033908990889088906004016116f3565b602060405180830381600087803b15801561101557600080fd5b505af1925050508015611045575060408051601f3d908101601f191682019092526110429181019061160e565b60015b6110a0573d808015611073576040519150601f19603f3d011682016040523d82523d6000602084013e611078565b606091505b508051611098576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060600c805461053a9061183d565b6060816110f15750506040805180820190915260018152600360fc1b602082015290565b8160005b811561111b578061110581611878565b91506111149050600a836117c7565b91506110f5565b60008167ffffffffffffffff81111561114457634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561116e576020820181803683370190505b5090505b84156110b6576111836001836117fa565b9150611190600a86611893565b61119b9060306117af565b60f81b8183815181106111be57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506111e0600a866117c7565b9450611172565b6111f18383611254565b6001600160a01b0383163b1561084d576000548281035b61121b6000868380600101945086610fc6565b611238576040516368d2bf6b60e11b815260040160405180910390fd5b81811061120857816000541461124d57600080fd5b5050505050565b600054816112755760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461132457808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001016112ec565b508161134257604051622e076360e81b815260040160405180910390fd5b60005550505050565b8280546113579061183d565b90600052602060002090601f01602090048101928261137957600085556113bf565b82601f1061139257805160ff19168380011785556113bf565b828001600101855582156113bf579182015b828111156113bf5782518255916020019190600101906113a4565b506113cb9291506113cf565b5090565b5b808211156113cb57600081556001016113d0565b600067ffffffffffffffff808411156113ff576113ff6118d3565b604051601f8501601f19908116603f01168101908282118183101715611427576114276118d3565b8160405280935085815286868601111561144057600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b038116811461147157600080fd5b919050565b8035801515811461147157600080fd5b600060208284031215611497578081fd5b610c818261145a565b600080604083850312156114b2578081fd5b6114bb8361145a565b91506114c96020840161145a565b90509250929050565b6000806000606084860312156114e6578081fd5b6114ef8461145a565b92506114fd6020850161145a565b9150604084013590509250925092565b60008060008060808587031215611522578081fd5b61152b8561145a565b93506115396020860161145a565b925060408501359150606085013567ffffffffffffffff81111561155b578182fd5b8501601f8101871361156b578182fd5b61157a878235602084016113e4565b91505092959194509250565b60008060408385031215611598578182fd5b6115a18361145a565b91506114c960208401611476565b600080604083850312156115c1578182fd5b6115ca8361145a565b946020939093013593505050565b6000602082840312156115e9578081fd5b610c8182611476565b600060208284031215611603578081fd5b8135610c81816118e9565b60006020828403121561161f578081fd5b8151610c81816118e9565b60006020828403121561163b578081fd5b813567ffffffffffffffff811115611651578182fd5b8201601f81018413611661578182fd5b6110b6848235602084016113e4565b600060208284031215611681578081fd5b5035919050565b600081518084526116a0816020860160208601611811565b601f01601f19169290920160200192915050565b600083516116c6818460208801611811565b8351908301906116da818360208801611811565b64173539b7b760d91b9101908152600501949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061172690830184611688565b9695505050505050565b602081526000610c816020830184611688565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b600082198211156117c2576117c26118a7565b500190565b6000826117d6576117d66118bd565b500490565b60008160001904831182151516156117f5576117f56118a7565b500290565b60008282101561180c5761180c6118a7565b500390565b60005b8381101561182c578181015183820152602001611814565b83811115610be45750506000910152565b600181811c9082168061185157607f821691505b6020821081141561187257634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561188c5761188c6118a7565b5060010190565b6000826118a2576118a26118bd565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610e1557600080fdfea2646970667358221220108bdf74ba3770cd19c032a61dadb2453d85c0b7b7444e63dbf11ee9a18b11cf64736f6c63430008040033
Deployed Bytecode Sourcemap
59626:2366:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26741:639;;;;;;;;;;-1:-1:-1;26741:639:0;;;;;:::i;:::-;;:::i;:::-;;;6709:14:1;;6702:22;6684:41;;6672:2;6657:18;26741:639:0;;;;;;;;27643:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;34126:218::-;;;;;;;;;;-1:-1:-1;34126:218:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;5728:32:1;;;5710:51;;5698:2;5683:18;34126:218:0;5665:102:1;33567:400:0;;;;;;;;;;-1:-1:-1;33567:400:0;;;;;:::i;:::-;;:::i;:::-;;23394:323;;;;;;;;;;-1:-1:-1;23668:12:0;;23455:7;23652:13;:28;23394:323;;;9928:25:1;;;9916:2;9901:18;23394:323:0;9883:76:1;60005:27:0;;;;;;;;;;-1:-1:-1;60005:27:0;;;;;;;;37833:2817;;;;;;;;;;-1:-1:-1;37833:2817:0;;;;;:::i;:::-;;:::i;40746:185::-;;;;;;;;;;-1:-1:-1;40746:185:0;;;;;:::i;:::-;;:::i;60457:98::-;;;;;;;;;;-1:-1:-1;60457:98:0;;;;;:::i;:::-;;:::i;29036:152::-;;;;;;;;;;-1:-1:-1;29036:152:0;;;;;:::i;:::-;;:::i;59719:41::-;;;;;;;;;;;;59756:4;59719:41;;24578:233;;;;;;;;;;-1:-1:-1;24578:233:0;;;;;:::i;:::-;;:::i;7489:103::-;;;;;;;;;;;;;:::i;6838:87::-;;;;;;;;;;-1:-1:-1;6911:6:0;;-1:-1:-1;;;;;6911:6:0;6838:87;;27819:104;;;;;;;;;;;;;:::i;59767:35::-;;;;;;;;;;;;;;;;61044:472;;;;;;:::i;:::-;;:::i;34684:308::-;;;;;;;;;;-1:-1:-1;34684:308:0;;;;;:::i;:::-;;:::i;60565:87::-;;;;;;;;;;-1:-1:-1;60565:87:0;;;;;:::i;:::-;;:::i;41529:399::-;;;;;;;;;;-1:-1:-1;41529:399:0;;;;;:::i;:::-;;:::i;60664:358::-;;;;;;;;;;-1:-1:-1;60664:358:0;;;;;:::i;:::-;;:::i;61524:258::-;;;;;;;;;;-1:-1:-1;61524:258:0;;;;;:::i;:::-;;:::i;60226:97::-;;;;;;;;;;;;;:::i;35149:164::-;;;;;;;;;;-1:-1:-1;35149:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;35270:25:0;;;35246:4;35270:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;35149:164;7747:201;;;;;;;;;;-1:-1:-1;7747:201:0;;;;;:::i;:::-;;:::i;61796:193::-;;;;;;;;;;-1:-1:-1;61796:193:0;;;;;:::i;:::-;;:::i;26741:639::-;26826:4;-1:-1:-1;;;;;;;;;27150:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;27227:25:0;;;27150:102;:179;;;-1:-1:-1;;;;;;;;;;27304:25:0;;;27150:179;27130:199;26741:639;-1:-1:-1;;26741:639:0:o;27643:100::-;27697:13;27730:5;27723:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27643:100;:::o;34126:218::-;34202:7;34227:16;34235:7;34227;:16::i;:::-;34222:64;;34252:34;;-1:-1:-1;;;34252:34:0;;;;;;;;;;;34222:64;-1:-1:-1;34306:24:0;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;34306:30:0;;34126:218::o;33567:400::-;33648:13;33664:16;33672:7;33664;:16::i;:::-;33648:32;-1:-1:-1;57424:10:0;-1:-1:-1;;;;;33697:28:0;;;33693:175;;33745:44;33762:5;57424:10;35149:164;:::i;33745:44::-;33740:128;;33817:35;;-1:-1:-1;;;33817:35:0;;;;;;;;;;;33740:128;33880:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;33880:35:0;-1:-1:-1;;;;;33880:35:0;;;;;;;;;33931:28;;33880:24;;33931:28;;;;;;;33567:400;;;:::o;37833:2817::-;37967:27;37997;38016:7;37997:18;:27::i;:::-;37967:57;;38082:4;-1:-1:-1;;;;;38041:45:0;38057:19;-1:-1:-1;;;;;38041:45:0;;38037:86;;38095:28;;-1:-1:-1;;;38095:28:0;;;;;;;;;;;38037:86;38137:27;36947:24;;;:15;:24;;;;;37169:26;;57424:10;36572:30;;;-1:-1:-1;;;;;36265:28:0;;36550:20;;;36547:56;38323:180;;38416:43;38433:4;57424:10;35149:164;:::i;38416:43::-;38411:92;;38468:35;;-1:-1:-1;;;38468:35:0;;;;;;;;;;;38411:92;-1:-1:-1;;;;;38520:16:0;;38516:52;;38545:23;;-1:-1:-1;;;38545:23:0;;;;;;;;;;;38516:52;38717:15;38714:2;;;38857:1;38836:19;38829:30;38714:2;-1:-1:-1;;;;;39254:24:0;;;;;;;:18;:24;;;;;;39252:26;;-1:-1:-1;;39252:26:0;;;39323:22;;;;;;;;;39321:24;;-1:-1:-1;39321:24:0;;;32425:11;32400:23;32396:41;32383:63;-1:-1:-1;;;32383:63:0;39616:26;;;;:17;:26;;;;;:175;-1:-1:-1;;;39911:47:0;;39907:627;;40016:1;40006:11;;39984:19;40139:30;;;:17;:30;;;;;;40135:384;;40277:13;;40262:11;:28;40258:242;;40424:30;;;;:17;:30;;;;;:52;;;40258:242;39907:627;;40581:7;40577:2;-1:-1:-1;;;;;40562:27:0;40571:4;-1:-1:-1;;;;;40562:27:0;;;;;;;;;;;37833:2817;;;;;;:::o;40746:185::-;40884:39;40901:4;40907:2;40911:7;40884:39;;;;;;;;;;;;:16;:39::i;:::-;40746:185;;;:::o;60457:98::-;6911:6;;-1:-1:-1;;;;;6911:6:0;57424:10;7058:23;7050:68;;;;-1:-1:-1;;;7050:68:0;;;;;;;:::i;:::-;;;;;;;;;60527:20;;::::1;::::0;:13:::1;::::0;:20:::1;::::0;::::1;::::0;::::1;:::i;:::-;;60457:98:::0;:::o;29036:152::-;29108:7;29151:27;29170:7;29151:18;:27::i;24578:233::-;24650:7;-1:-1:-1;;;;;24674:19:0;;24670:60;;24702:28;;-1:-1:-1;;;24702:28:0;;;;;;;;;;;24670:60;-1:-1:-1;;;;;;24748:25:0;;;;;:18;:25;;;;;;18737:13;24748:55;;24578:233::o;7489:103::-;6911:6;;-1:-1:-1;;;;;6911:6:0;57424:10;7058:23;7050:68;;;;-1:-1:-1;;;7050:68:0;;;;;;;:::i;:::-;7554:30:::1;7581:1;7554:18;:30::i;:::-;7489:103::o:0;27819:104::-;27875:13;27908:7;27901:14;;;;;:::i;61044:472::-;1812:1;2410:7;;:19;;2402:63;;;;-1:-1:-1;;;2402:63:0;;;;;;;:::i;:::-;1812:1;2543:7;:18;61126:8:::1;::::0;::::1;;61118:31;;;::::0;-1:-1:-1;;;61118:31:0;;7906:2:1;61118:31:0::1;::::0;::::1;7888:21:1::0;7945:2;7925:18;;;7918:30;-1:-1:-1;;;7964:18:1;;;7957:40;8014:18;;61118:31:0::1;7878:160:1::0;61118:31:0::1;61180:1;61168:9;:13;61160:35;;;::::0;-1:-1:-1;;;61160:35:0;;7162:2:1;61160:35:0::1;::::0;::::1;7144:21:1::0;7201:1;7181:18;;;7174:29;-1:-1:-1;;;7219:18:1;;;7212:39;7268:18;;61160:35:0::1;7134:158:1::0;61160:35:0::1;61236:9;61228:5;;:17;;;;:::i;:::-;61214:9;:32;;61206:59;;;::::0;-1:-1:-1;;;61206:59:0;;9281:2:1;61206:59:0::1;::::0;::::1;9263:21:1::0;9320:2;9300:18;;;9293:30;-1:-1:-1;;;9339:18:1;;;9332:44;9393:18;;61206:59:0::1;9253:164:1::0;61206:59:0::1;59756:4;61312:9;61296:13;23668:12:::0;;23455:7;23652:13;:28;;23394:323;61296:13:::1;:25;;;;:::i;:::-;61295:41;;61287:64;;;::::0;-1:-1:-1;;;61287:64:0;;8245:2:1;61287:64:0::1;::::0;::::1;8227:21:1::0;8284:2;8264:18;;;8257:30;-1:-1:-1;;;8303:18:1;;;8296:40;8353:18;;61287:64:0::1;8217:160:1::0;61287:64:0::1;61391:32;61401:10;61413:9;61391;:32::i;:::-;61441:67;::::0;;61463:10:::1;6439:51:1::0;;6521:2;6506:18;;6499:34;;;61441:67:0::1;::::0;6412:18:1;61441:67:0::1;;;;;;;-1:-1:-1::0;1768:1:0;2722:7;:22;61044:472::o;34684:308::-;-1:-1:-1;;;;;34783:31:0;;57424:10;34783:31;34779:61;;;34823:17;;-1:-1:-1;;;34823:17:0;;;;;;;;;;;34779:61;57424:10;34853:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;34853:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;34853:60:0;;;;;;;;;;34929:55;;6684:41:1;;;34853:49:0;;57424:10;34929:55;;6657:18:1;34929:55:0;;;;;;;34684:308;;:::o;60565:87::-;6911:6;;-1:-1:-1;;;;;6911:6:0;57424:10;7058:23;7050:68;;;;-1:-1:-1;;;7050:68:0;;;;;;;:::i;:::-;60627:8:::1;:17:::0;;-1:-1:-1;;60627:17:0::1;::::0;::::1;;::::0;;;::::1;::::0;;60565:87::o;41529:399::-;41696:31;41709:4;41715:2;41719:7;41696:12;:31::i;:::-;-1:-1:-1;;;;;41742:14:0;;;:19;41738:183;;41781:56;41812:4;41818:2;41822:7;41831:5;41781:30;:56::i;:::-;41776:145;;41865:40;;-1:-1:-1;;;41865:40:0;;;;;;;;;;;41776:145;41529:399;;;;:::o;60664:358::-;60738:13;60772:17;60780:8;60772:7;:17::i;:::-;60763:38;;;;-1:-1:-1;;;60763:38:0;;8584:2:1;60763:38:0;;;8566:21:1;8623:1;8603:18;;;8596:29;-1:-1:-1;;;8641:18:1;;;8634:38;8689:18;;60763:38:0;8556:157:1;60763:38:0;60819:28;60850:10;:8;:10::i;:::-;60819:41;;60909:1;60884:14;60878:28;:32;:136;;;;;;;;;;;;;;;;;60950:14;60966:19;:8;:17;:19::i;:::-;60933:62;;;;;;;;;:::i;:::-;;;;;;;;;;;;;60878:136;60871:143;60664:358;-1:-1:-1;;;60664:358:0:o;61524:258::-;1812:1;2410:7;;:19;;2402:63;;;;-1:-1:-1;;;2402:63:0;;;;;;;:::i;:::-;1812:1;2543:7;:18;6911:6;;-1:-1:-1;;;;;6911:6:0;57424:10;7058:23:::1;7050:68;;;;-1:-1:-1::0;;;7050:68:0::1;;;;;;;:::i;:::-;61627:8:::2;::::0;::::2;;61619:31;;;::::0;-1:-1:-1;;;61619:31:0;;7906:2:1;61619:31:0::2;::::0;::::2;7888:21:1::0;7945:2;7925:18;;;7918:30;-1:-1:-1;;;7964:18:1;;;7957:40;8014:18;;61619:31:0::2;7878:160:1::0;61619:31:0::2;61661:27;61671:5;61678:9;61661;:27::i;:::-;61712:62;::::0;;-1:-1:-1;;;;;6457:32:1;;6439:51;;6521:2;6506:18;;6499:34;;;61712:62:0::2;::::0;6412:18:1;61712:62:0::2;;;;;;;-1:-1:-1::0;;1768:1:0;2722:7;:22;61524:258::o;60226:97::-;60270:13;60303:12;60296:19;;;;;:::i;7747:201::-;6911:6;;-1:-1:-1;;;;;6911:6:0;57424:10;7058:23;7050:68;;;;-1:-1:-1;;;7050:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;7836:22:0;::::1;7828:73;;;::::0;-1:-1:-1;;;7828:73:0;;7499:2:1;7828:73:0::1;::::0;::::1;7481:21:1::0;7538:2;7518:18;;;7511:30;7577:34;7557:18;;;7550:62;-1:-1:-1;;;7628:18:1;;;7621:36;7674:19;;7828:73:0::1;7471:228:1::0;7828:73:0::1;7912:28;7931:8;7912:18;:28::i;:::-;7747:201:::0;:::o;61796:193::-;6911:6;;-1:-1:-1;;;;;6911:6:0;57424:10;7058:23;7050:68;;;;-1:-1:-1;;;7050:68:0;;;;;;;:::i;:::-;1812:1:::1;2410:7;;:19;;2402:63;;;;-1:-1:-1::0;;;2402:63:0::1;;;;;;;:::i;:::-;1812:1;2543:7;:18:::0;61903:41:::2;::::0;61890:7:::2;::::0;-1:-1:-1;;;;;61903:22:0;::::2;::::0;61933:6;;61890:7;61903:41;61890:7;61903:41;61933:6;61903:22;:41:::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;61889:55;;;61963:2;61955:11;;;::::0;::::2;;-1:-1:-1::0;;1768:1:0::1;2722:7;:22:::0;-1:-1:-1;61796:193:0:o;35571:282::-;35636:4;35726:13;;35716:7;:23;35673:153;;;;-1:-1:-1;;35777:26:0;;;;:17;:26;;;;;;-1:-1:-1;;;35777:44:0;:49;;35571:282::o;30191:1275::-;30258:7;30293;30395:13;;30388:4;:20;30384:1015;;;30433:14;30450:23;;;:17;:23;;;;;;-1:-1:-1;;;30539:24:0;;30535:845;;31204:113;31211:11;31204:113;;-1:-1:-1;;;31282:6:0;31264:25;;;;:17;:25;;;;;;31204:113;;30535:845;30384:1015;;31427:31;;-1:-1:-1;;;31427:31:0;;;;;;;;;;;8108:191;8201:6;;;-1:-1:-1;;;;;8218:17:0;;;-1:-1:-1;;;;;;8218:17:0;;;;;;;8251:40;;8201:6;;;8218:17;8201:6;;8251:40;;8182:16;;8251:40;8108:191;;:::o;51169:112::-;51246:27;51256:2;51260:8;51246:27;;;;;;;;;;;;:9;:27::i;44012:716::-;44196:88;;-1:-1:-1;;;44196:88:0;;44175:4;;-1:-1:-1;;;;;44196:45:0;;;;;:88;;57424:10;;44263:4;;44269:7;;44278:5;;44196:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;44196:88:0;;;;;;;;-1:-1:-1;;44196:88:0;;;;;;;;;;;;:::i;:::-;;;44192:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;44479:13:0;;44475:235;;44525:40;;-1:-1:-1;;;44525:40:0;;;;;;;;;;;44475:235;44668:6;44662:13;44653:6;44649:2;44645:15;44638:38;44192:529;-1:-1:-1;;;;;;44355:64:0;-1:-1:-1;;;44355:64:0;;-1:-1:-1;44192:529:0;44012:716;;;;;;:::o;60335:114::-;60395:13;60428;60421:20;;;;;:::i;3124:723::-;3180:13;3401:10;3397:53;;-1:-1:-1;;3428:10:0;;;;;;;;;;;;-1:-1:-1;;;3428:10:0;;;;;3124:723::o;3397:53::-;3475:5;3460:12;3516:78;3523:9;;3516:78;;3549:8;;;;:::i;:::-;;-1:-1:-1;3572:10:0;;-1:-1:-1;3580:2:0;3572:10;;:::i;:::-;;;3516:78;;;3604:19;3636:6;3626:17;;;;;;-1:-1:-1;;;3626:17:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;3626:17:0;;3604:39;;3654:154;3661:10;;3654:154;;3688:11;3698:1;3688:11;;:::i;:::-;;-1:-1:-1;3757:10:0;3765:2;3757:5;:10;:::i;:::-;3744:24;;:2;:24;:::i;:::-;3731:39;;3714:6;3721;3714:14;;;;;;-1:-1:-1;;;3714:14:0;;;;;;;;;;;;:56;-1:-1:-1;;;;;3714:56:0;;;;;;;;-1:-1:-1;3785:11:0;3794:2;3785:11;;:::i;:::-;;;3654:154;;50396:689;50527:19;50533:2;50537:8;50527:5;:19::i;:::-;-1:-1:-1;;;;;50588:14:0;;;:19;50584:483;;50628:11;50642:13;50690:14;;;50723:233;50754:62;50793:1;50797:2;50801:7;;;;;;50810:5;50754:30;:62::i;:::-;50749:167;;50852:40;;-1:-1:-1;;;50852:40:0;;;;;;;;;;;50749:167;50951:3;50943:5;:11;50723:233;;51038:3;51021:13;;:20;51017:34;;51043:8;;;51017:34;50584:483;;50396:689;;;:::o;45190:2454::-;45263:20;45286:13;45314;45310:44;;45336:18;;-1:-1:-1;;;45336:18:0;;;;;;;;;;;45310:44;-1:-1:-1;;;;;45842:22:0;;;;;;:18;:22;;;;18875:2;45842:22;;;:71;;45880:32;45868:45;;45842:71;;;46156:31;;;:17;:31;;;;;-1:-1:-1;32856:15:0;;32830:24;32826:46;32425:11;32400:23;32396:41;32393:52;32383:63;;46156:173;;46391:23;;;;46156:31;;45842:22;;46890:25;45842:22;;46743:335;47158:1;47144:12;47140:20;47098:346;47199:3;47190:7;47187:16;47098:346;;47417:7;47407:8;47404:1;47377:25;47374:1;47371;47366:59;47252:1;47239:15;47098:346;;;-1:-1:-1;47477:13:0;47473:45;;47499:19;;-1:-1:-1;;;47499:19:0;;;;;;;;;;;47473:45;47535:13;:19;-1:-1:-1;40746:185:0;;;:::o;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;14:631:1;78:5;108:18;149:2;141:6;138:14;135:2;;;155:18;;:::i;:::-;230:2;224:9;198:2;284:15;;-1:-1:-1;;280:24:1;;;306:2;276:33;272:42;260:55;;;330:18;;;350:22;;;327:46;324:2;;;376:18;;:::i;:::-;416:10;412:2;405:22;445:6;436:15;;475:6;467;460:22;515:3;506:6;501:3;497:16;494:25;491:2;;;532:1;529;522:12;491:2;582:6;577:3;570:4;562:6;558:17;545:44;637:1;630:4;621:6;613;609:19;605:30;598:41;;;;88:557;;;;;:::o;650:173::-;718:20;;-1:-1:-1;;;;;767:31:1;;757:42;;747:2;;813:1;810;803:12;747:2;699:124;;;:::o;828:160::-;893:20;;949:13;;942:21;932:32;;922:2;;978:1;975;968:12;993:196;1052:6;1105:2;1093:9;1084:7;1080:23;1076:32;1073:2;;;1126:6;1118;1111:22;1073:2;1154:29;1173:9;1154:29;:::i;1194:270::-;1262:6;1270;1323:2;1311:9;1302:7;1298:23;1294:32;1291:2;;;1344:6;1336;1329:22;1291:2;1372:29;1391:9;1372:29;:::i;:::-;1362:39;;1420:38;1454:2;1443:9;1439:18;1420:38;:::i;:::-;1410:48;;1281:183;;;;;:::o;1469:338::-;1546:6;1554;1562;1615:2;1603:9;1594:7;1590:23;1586:32;1583:2;;;1636:6;1628;1621:22;1583:2;1664:29;1683:9;1664:29;:::i;:::-;1654:39;;1712:38;1746:2;1735:9;1731:18;1712:38;:::i;:::-;1702:48;;1797:2;1786:9;1782:18;1769:32;1759:42;;1573:234;;;;;:::o;1812:696::-;1907:6;1915;1923;1931;1984:3;1972:9;1963:7;1959:23;1955:33;1952:2;;;2006:6;1998;1991:22;1952:2;2034:29;2053:9;2034:29;:::i;:::-;2024:39;;2082:38;2116:2;2105:9;2101:18;2082:38;:::i;:::-;2072:48;;2167:2;2156:9;2152:18;2139:32;2129:42;;2222:2;2211:9;2207:18;2194:32;2249:18;2241:6;2238:30;2235:2;;;2286:6;2278;2271:22;2235:2;2314:22;;2367:4;2359:13;;2355:27;-1:-1:-1;2345:2:1;;2401:6;2393;2386:22;2345:2;2429:73;2494:7;2489:2;2476:16;2471:2;2467;2463:11;2429:73;:::i;:::-;2419:83;;;1942:566;;;;;;;:::o;2513:264::-;2578:6;2586;2639:2;2627:9;2618:7;2614:23;2610:32;2607:2;;;2660:6;2652;2645:22;2607:2;2688:29;2707:9;2688:29;:::i;:::-;2678:39;;2736:35;2767:2;2756:9;2752:18;2736:35;:::i;2782:264::-;2850:6;2858;2911:2;2899:9;2890:7;2886:23;2882:32;2879:2;;;2932:6;2924;2917:22;2879:2;2960:29;2979:9;2960:29;:::i;:::-;2950:39;3036:2;3021:18;;;;3008:32;;-1:-1:-1;;;2869:177:1:o;3051:190::-;3107:6;3160:2;3148:9;3139:7;3135:23;3131:32;3128:2;;;3181:6;3173;3166:22;3128:2;3209:26;3225:9;3209:26;:::i;3246:255::-;3304:6;3357:2;3345:9;3336:7;3332:23;3328:32;3325:2;;;3378:6;3370;3363:22;3325:2;3422:9;3409:23;3441:30;3465:5;3441:30;:::i;3506:259::-;3575:6;3628:2;3616:9;3607:7;3603:23;3599:32;3596:2;;;3649:6;3641;3634:22;3596:2;3686:9;3680:16;3705:30;3729:5;3705:30;:::i;3770:480::-;3839:6;3892:2;3880:9;3871:7;3867:23;3863:32;3860:2;;;3913:6;3905;3898:22;3860:2;3958:9;3945:23;3991:18;3983:6;3980:30;3977:2;;;4028:6;4020;4013:22;3977:2;4056:22;;4109:4;4101:13;;4097:27;-1:-1:-1;4087:2:1;;4143:6;4135;4128:22;4087:2;4171:73;4236:7;4231:2;4218:16;4213:2;4209;4205:11;4171:73;:::i;4255:190::-;4314:6;4367:2;4355:9;4346:7;4342:23;4338:32;4335:2;;;4388:6;4380;4373:22;4335:2;-1:-1:-1;4416:23:1;;4325:120;-1:-1:-1;4325:120:1:o;4450:257::-;4491:3;4529:5;4523:12;4556:6;4551:3;4544:19;4572:63;4628:6;4621:4;4616:3;4612:14;4605:4;4598:5;4594:16;4572:63;:::i;:::-;4689:2;4668:15;-1:-1:-1;;4664:29:1;4655:39;;;;4696:4;4651:50;;4499:208;-1:-1:-1;;4499:208:1:o;4712:637::-;4992:3;5030:6;5024:13;5046:53;5092:6;5087:3;5080:4;5072:6;5068:17;5046:53;:::i;:::-;5162:13;;5121:16;;;;5184:57;5162:13;5121:16;5218:4;5206:17;;5184:57;:::i;:::-;-1:-1:-1;;;5263:20:1;;5292:22;;;5341:1;5330:13;;5000:349;-1:-1:-1;;;;5000:349:1:o;5772:488::-;-1:-1:-1;;;;;6041:15:1;;;6023:34;;6093:15;;6088:2;6073:18;;6066:43;6140:2;6125:18;;6118:34;;;6188:3;6183:2;6168:18;;6161:31;;;5966:4;;6209:45;;6234:19;;6226:6;6209:45;:::i;:::-;6201:53;5975:285;-1:-1:-1;;;;;;5975:285:1:o;6736:219::-;6885:2;6874:9;6867:21;6848:4;6905:44;6945:2;6934:9;6930:18;6922:6;6905:44;:::i;8718:356::-;8920:2;8902:21;;;8939:18;;;8932:30;8998:34;8993:2;8978:18;;8971:62;9065:2;9050:18;;8892:182::o;9422:355::-;9624:2;9606:21;;;9663:2;9643:18;;;9636:30;9702:33;9697:2;9682:18;;9675:61;9768:2;9753:18;;9596:181::o;9964:128::-;10004:3;10035:1;10031:6;10028:1;10025:13;10022:2;;;10041:18;;:::i;:::-;-1:-1:-1;10077:9:1;;10012:80::o;10097:120::-;10137:1;10163;10153:2;;10168:18;;:::i;:::-;-1:-1:-1;10202:9:1;;10143:74::o;10222:168::-;10262:7;10328:1;10324;10320:6;10316:14;10313:1;10310:21;10305:1;10298:9;10291:17;10287:45;10284:2;;;10335:18;;:::i;:::-;-1:-1:-1;10375:9:1;;10274:116::o;10395:125::-;10435:4;10463:1;10460;10457:8;10454:2;;;10468:18;;:::i;:::-;-1:-1:-1;10505:9:1;;10444:76::o;10525:258::-;10597:1;10607:113;10621:6;10618:1;10615:13;10607:113;;;10697:11;;;10691:18;10678:11;;;10671:39;10643:2;10636:10;10607:113;;;10738:6;10735:1;10732:13;10729:2;;;-1:-1:-1;;10773:1:1;10755:16;;10748:27;10578:205::o;10788:380::-;10867:1;10863:12;;;;10910;;;10931:2;;10985:4;10977:6;10973:17;10963:27;;10931:2;11038;11030:6;11027:14;11007:18;11004:38;11001:2;;;11084:10;11079:3;11075:20;11072:1;11065:31;11119:4;11116:1;11109:15;11147:4;11144:1;11137:15;11001:2;;10843:325;;;:::o;11173:135::-;11212:3;-1:-1:-1;;11233:17:1;;11230:2;;;11253:18;;:::i;:::-;-1:-1:-1;11300:1:1;11289:13;;11220:88::o;11313:112::-;11345:1;11371;11361:2;;11376:18;;:::i;:::-;-1:-1:-1;11410:9:1;;11351:74::o;11430:127::-;11491:10;11486:3;11482:20;11479:1;11472:31;11522:4;11519:1;11512:15;11546:4;11543:1;11536:15;11562:127;11623:10;11618:3;11614:20;11611:1;11604:31;11654:4;11651:1;11644:15;11678:4;11675:1;11668:15;11694:127;11755:10;11750:3;11746:20;11743:1;11736:31;11786:4;11783:1;11776:15;11810:4;11807:1;11800:15;11826:131;-1:-1:-1;;;;;;11900:32:1;;11890:43;;11880:2;;11947:1;11944;11937:12
Swarm Source
ipfs://108bdf74ba3770cd19c032a61dadb2453d85c0b7b7444e63dbf11ee9a18b11cf
Loading...
Loading
Loading...
Loading
Net Worth in USD
$2.13
Net Worth in ETH
0.001
Token Allocations
ETH
100.00%
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|---|---|---|---|---|
| ETH | 100.00% | $2,134.18 | 0.001 | $2.13 |
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.