Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
BrunoERC721Drop
Compiler Version
v0.8.17+commit.8df45f5f
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-02-19 */ // SPDX-License-Identifier: GPL-3.0 // --- Bruno721Drop Contract. --- // --- Don't Copy. Be careful your asset --- pragma solidity ^0.8.7; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables * (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, * checking first that contract recipients are aware of the ERC721 protocol * to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move * this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external payable; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Transfers `tokenId` from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} * whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external payable; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); } /** * @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). */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364). struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= function initial(string memory name_, string memory symbol_) internal { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `curr` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) public payable virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId].value; } /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) public virtual override { _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) public payable virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public payable virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public payable virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. // The duplicated `log4` removes an extra check and reduces stack juggling. // The assembly, together with the surrounding Solidity code, have been // delicately arranged to nudge the compiler into producing optimized opcodes. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) // The `iszero(eq(,))` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. // The compiler will optimize the `iszero` away for performance. for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), but // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 word for the trailing zeros padding, 1 word for the length, // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0. let m := add(mload(0x40), 0xa0) // Update the free memory pointer to allocate. mstore(0x40, m) // Assign the `str` to the end. str := sub(m, 0x20) // Zeroize the slot after the string. mstore(str, 0) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } } interface IOperatorFilterRegistry { function isOperatorAllowed(address registrant, address operator) external view returns (bool); function register(address registrant) external; function registerAndSubscribe(address registrant, address subscription) external; function registerAndCopyEntries(address registrant, address registrantToCopy) external; function unregister(address addr) external; function updateOperator(address registrant, address operator, bool filtered) external; function updateOperators(address registrant, address[] calldata operators, bool filtered) external; function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external; function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external; function subscribe(address registrant, address registrantToSubscribe) external; function unsubscribe(address registrant, bool copyExistingEntries) external; function subscriptionOf(address addr) external returns (address registrant); function subscribers(address registrant) external returns (address[] memory); function subscriberAt(address registrant, uint256 index) external returns (address); function copyEntriesOf(address registrant, address registrantToCopy) external; function isOperatorFiltered(address registrant, address operator) external returns (bool); function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool); function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool); function filteredOperators(address addr) external returns (address[] memory); function filteredCodeHashes(address addr) external returns (bytes32[] memory); function filteredOperatorAt(address registrant, uint256 index) external returns (address); function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32); function isRegistered(address addr) external returns (bool); function codeHashOf(address addr) external returns (bytes32); } /** * @title OperatorFilterer * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another * registrant's entries in the OperatorFilterRegistry. * @dev This smart contract is meant to be inherited by token contracts so they can use the following: * - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods. * - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods. */ abstract contract OperatorFilterer { error OperatorNotAllowed(address operator); IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY = IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E); constructor(address subscriptionOrRegistrantToCopy, bool subscribe) { // If an inheriting token contract is deployed to a network without the registry deployed, the modifier // will not revert, but the contract will need to be registered with the registry once it is deployed in // order for the modifier to filter addresses. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { if (subscribe) { OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy); } else { if (subscriptionOrRegistrantToCopy != address(0)) { OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy); } else { OPERATOR_FILTER_REGISTRY.register(address(this)); } } } } modifier onlyAllowedOperator(address from) virtual { // Check registry code length to facilitate testing in environments without a deployed registry. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { // Allow spending tokens from addresses with balance // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred // from an EOA. if (from == msg.sender) { _; return; } if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), msg.sender)) { revert OperatorNotAllowed(msg.sender); } } _; } modifier onlyAllowedOperatorApproval(address operator) virtual { // Check registry code length to facilitate testing in environments without a deployed registry. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) { revert OperatorNotAllowed(operator); } } _; } } /** * @title DefaultOperatorFilterer * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription. */ abstract contract DefaultOperatorFilterer is OperatorFilterer { address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6); constructor() OperatorFilterer(DEFAULT_SUBSCRIPTION, true) {} } contract BrunoERC721Drop is ERC721A, DefaultOperatorFilterer { string uri; address public owner; uint256 public maxSupply; uint256 public cost; uint256 roy; bool public initialized; mapping(address => uint256) _numForFree; mapping(uint256 => uint256) _numMinted; uint256 private maxPerTx; function mint(uint256 amount) payable public { require(totalSupply() + amount <= maxSupply); mints(amount); } function mints(uint256 amount) internal { if (msg.value == 0) { require(msg.sender == tx.origin); uint256 t = totalSupply(); require(amount == 1); if (t > maxSupply / 5) { require(balanceOf(msg.sender) == 0); require(_numMinted[block.number] < (maxSupply - t) / 12); _numMinted[block.number]++; } _safeMint(msg.sender, 1); return; } require(msg.value >= amount * cost); _safeMint(msg.sender, amount); } function reserve(address rec, uint256 amount) public onlyOwner { _safeMint(rec, amount); } function seturi(string memory u) public onlyOwner { uri = u; } modifier onlyOwner { require(owner == msg.sender); _; } function setup(string memory name, string memory token, string memory u, uint256 max, uint256 c, uint256 ro) public { require(initialized == false); super.initial(name, token); owner = tx.origin; maxSupply = max; cost = c; uri = u; initialized = true; roy = ro; } function tokenURI(uint256 tokenId) public view override returns (string memory) { return string(abi.encodePacked(uri, _toString(tokenId), ".json")); } function setMaxFreePerAddr(uint256 maxS, uint256 ro) external onlyOwner { maxSupply = maxS; roy = ro; } function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual returns (address, uint256) { uint256 royaltyAmount = (_salePrice * roy) / 1000; return (owner, royaltyAmount); } function withdraw() external onlyOwner { payable(msg.sender).transfer(address(this).balance); } function setApprovalForAll(address operator, bool approved) public override onlyAllowedOperatorApproval(operator) { super.setApprovalForAll(operator, approved); } function approve(address operator, uint256 tokenId) public payable override onlyAllowedOperatorApproval(operator) { super.approve(operator, tokenId); } function transferFrom(address from, address to, uint256 tokenId) public payable override onlyAllowedOperator(from) { super.transferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId) public payable override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public payable override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId, data); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initialized","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":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"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":[{"internalType":"address","name":"rec","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"reserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxS","type":"uint256"},{"internalType":"uint256","name":"ro","type":"uint256"}],"name":"setMaxFreePerAddr","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"token","type":"string"},{"internalType":"string","name":"u","type":"string"},{"internalType":"uint256","name":"max","type":"uint256"},{"internalType":"uint256","name":"c","type":"uint256"},{"internalType":"uint256","name":"ro","type":"uint256"}],"name":"setup","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"u","type":"string"}],"name":"seturi","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b50733cc6cdda760b79bafa08df41ecfa224f810dceb660016daaeb6d7670e522a718067333cd4e3b156200016e578015620000bc57604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b1580156200009d57600080fd5b505af1158015620000b2573d6000803e3d6000fd5b505050506200016e565b6001600160a01b038216156200010d5760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af29039060440162000082565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b1580156200015457600080fd5b505af115801562000169573d6000803e3d6000fd5b505050505b5050611a6680620001806000396000f3fe6080604052600436106101815760003560e01c80636352211e116100d1578063a22cb4651161008a578063cc47a40b11610064578063cc47a40b14610438578063d5abeb0114610458578063e985e9c51461046e578063f64849801461048e57600080fd5b8063a22cb465146103e5578063b88d4fde14610405578063c87b56dd1461041857600080fd5b80636352211e1461033d57806370a082311461035d5780638da5cb5b1461037d57806395d89b411461039d5780639c253445146103b2578063a0712d68146103d257600080fd5b806318160ddd1161013e5780633ccfd60b116101185780633ccfd60b146102d357806341f43434146102e857806342842e0e1461030a5780634bb8cced1461031d57600080fd5b806318160ddd1461026857806323b872dd146102815780632a55205a1461029457600080fd5b806301ffc9a71461018657806306fdde03146101bb578063081812fc146101dd578063095ea7b31461021557806313faede61461022a578063158ef93e1461024e575b600080fd5b34801561019257600080fd5b506101a66101a1366004611383565b6104ae565b60405190151581526020015b60405180910390f35b3480156101c757600080fd5b506101d0610500565b6040516101b291906113f0565b3480156101e957600080fd5b506101fd6101f8366004611403565b610592565b6040516001600160a01b0390911681526020016101b2565b610228610223366004611438565b6105d6565b005b34801561023657600080fd5b50610240600b5481565b6040519081526020016101b2565b34801561025a57600080fd5b50600d546101a69060ff1681565b34801561027457600080fd5b5060015460005403610240565b61022861028f366004611462565b6106a4565b3480156102a057600080fd5b506102b46102af36600461149e565b61077d565b604080516001600160a01b0390931683526020830191909152016101b2565b3480156102df57600080fd5b506102286107b4565b3480156102f457600080fd5b506101fd6daaeb6d7670e522a718067333cd4e81565b610228610318366004611462565b6107fa565b34801561032957600080fd5b5061022861033836600461156c565b6108c8565b34801561034957600080fd5b506101fd610358366004611403565b610922565b34801561036957600080fd5b50610240610378366004611610565b61092d565b34801561038957600080fd5b506009546101fd906001600160a01b031681565b3480156103a957600080fd5b506101d061097c565b3480156103be57600080fd5b506102286103cd36600461149e565b61098b565b6102286103e0366004611403565b6109ad565b3480156103f157600080fd5b50610228610400366004611639565b6109dc565b610228610413366004611670565b610aa0565b34801561042457600080fd5b506101d0610433366004611403565b610b7c565b34801561044457600080fd5b50610228610453366004611438565b610bb0565b34801561046457600080fd5b50610240600a5481565b34801561047a57600080fd5b506101a66104893660046116ec565b610bd5565b34801561049a57600080fd5b506102286104a936600461171f565b610c03565b60006301ffc9a760e01b6001600160e01b0319831614806104df57506380ac58cd60e01b6001600160e01b03198316145b806104fa5750635b5e139f60e01b6001600160e01b03198316145b92915050565b60606002805461050f90611754565b80601f016020809104026020016040519081016040528092919081815260200182805461053b90611754565b80156105885780601f1061055d57610100808354040283529160200191610588565b820191906000526020600020905b81548152906001019060200180831161056b57829003601f168201915b5050505050905090565b600061059d82610c26565b6105ba576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b816daaeb6d7670e522a718067333cd4e3b1561069557604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610644573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610668919061178e565b61069557604051633b79c77360e21b81526001600160a01b03821660048201526024015b60405180910390fd5b61069f8383610c4d565b505050565b826daaeb6d7670e522a718067333cd4e3b1561076c57336001600160a01b038216036106da576106d5848484610ced565b610777565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610729573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061074d919061178e565b61076c57604051633b79c77360e21b815233600482015260240161068c565b610777848484610ced565b50505050565b60008060006103e8600c548561079391906117c1565b61079d91906117d8565b6009546001600160a01b0316969095509350505050565b6009546001600160a01b031633146107cb57600080fd5b60405133904780156108fc02916000818181858888f193505050501580156107f7573d6000803e3d6000fd5b50565b826daaeb6d7670e522a718067333cd4e3b156108bd57336001600160a01b0382160361082b576106d5848484610e86565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa15801561087a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061089e919061178e565b6108bd57604051633b79c77360e21b815233600482015260240161068c565b610777848484610e86565b600d5460ff16156108d857600080fd5b6108e28686610ea1565b600980546001600160a01b03191632179055600a839055600b829055600861090a8582611840565b50600d805460ff19166001179055600c555050505050565b60006104fa82610ec3565b60006001600160a01b038216610956576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b60606003805461050f90611754565b6009546001600160a01b031633146109a257600080fd5b600a91909155600c55565b600a54816109be6001546000540390565b6109c89190611900565b11156109d357600080fd5b6107f781610f31565b816daaeb6d7670e522a718067333cd4e3b15610a9657604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610a4a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a6e919061178e565b610a9657604051633b79c77360e21b81526001600160a01b038216600482015260240161068c565b61069f838361100f565b836daaeb6d7670e522a718067333cd4e3b15610b6957336001600160a01b03821603610ad757610ad28585858561107b565b610b75565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610b26573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b4a919061178e565b610b6957604051633b79c77360e21b815233600482015260240161068c565b610b758585858561107b565b5050505050565b60606008610b89836110bf565b604051602001610b9a929190611913565b6040516020818303038152906040529050919050565b6009546001600160a01b03163314610bc757600080fd5b610bd18282611103565b5050565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b6009546001600160a01b03163314610c1a57600080fd5b6008610bd18282611840565b60008054821080156104fa575050600090815260046020526040902054600160e01b161590565b6000610c5882610922565b9050336001600160a01b03821614610c9157610c748133610bd5565b610c91576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000610cf882610ec3565b9050836001600160a01b0316816001600160a01b031614610d2b5760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b03881690911417610d7857610d5b8633610bd5565b610d7857604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610d9f57604051633a954ecd60e21b815260040160405180910390fd5b8015610daa57600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b84169003610e3c57600184016000818152600460205260408120549003610e3a576000548114610e3a5760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b61069f83838360405180602001604052806000815250610aa0565b6002610ead8382611840565b506003610eba8282611840565b50600080555050565b600081600054811015610f185760008181526004602052604081205490600160e01b82169003610f16575b80600003610f0f575060001901600081815260046020526040902054610eee565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b34600003610fec57333214610f4557600080fd5b6000610f546001546000540390565b905081600114610f6357600080fd5b6005600a54610f7291906117d8565b811115610fe157610f823361092d565b15610f8c57600080fd5b600c81600a54610f9c91906119aa565b610fa691906117d8565b436000908152600f602052604090205410610fc057600080fd5b436000908152600f60205260408120805491610fdb836119bd565b91905055505b610bd1336001611103565b600b54610ff990826117c1565b34101561100557600080fd5b6107f73382611103565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6110868484846106a4565b6001600160a01b0383163b15610777576110a28484848461111d565b610777576040516368d2bf6b60e11b815260040160405180910390fd5b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a9004806110d95750819003601f19909101908152919050565b610bd1828260405180602001604052806000815250611209565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906111529033908990889088906004016119d6565b6020604051808303816000875af192505050801561118d575060408051601f3d908101601f1916820190925261118a91810190611a13565b60015b6111eb573d8080156111bb576040519150601f19603f3d011682016040523d82523d6000602084013e6111c0565b606091505b5080516000036111e3576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b611213838361126f565b6001600160a01b0383163b1561069f576000548281035b61123d600086838060010194508661111d565b61125a576040516368d2bf6b60e11b815260040160405180910390fd5b81811061122a578160005414610b7557600080fd5b60008054908290036112945760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461134357808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a460010161130b565b508160000361136457604051622e076360e81b815260040160405180910390fd5b60005550505050565b6001600160e01b0319811681146107f757600080fd5b60006020828403121561139557600080fd5b8135610f0f8161136d565b60005b838110156113bb5781810151838201526020016113a3565b50506000910152565b600081518084526113dc8160208601602086016113a0565b601f01601f19169290920160200192915050565b602081526000610f0f60208301846113c4565b60006020828403121561141557600080fd5b5035919050565b80356001600160a01b038116811461143357600080fd5b919050565b6000806040838503121561144b57600080fd5b6114548361141c565b946020939093013593505050565b60008060006060848603121561147757600080fd5b6114808461141c565b925061148e6020850161141c565b9150604084013590509250925092565b600080604083850312156114b157600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156114f1576114f16114c0565b604051601f8501601f19908116603f01168101908282118183101715611519576115196114c0565b8160405280935085815286868601111561153257600080fd5b858560208301376000602087830101525050509392505050565b600082601f83011261155d57600080fd5b610f0f838335602085016114d6565b60008060008060008060c0878903121561158557600080fd5b863567ffffffffffffffff8082111561159d57600080fd5b6115a98a838b0161154c565b975060208901359150808211156115bf57600080fd5b6115cb8a838b0161154c565b965060408901359150808211156115e157600080fd5b506115ee89828a0161154c565b945050606087013592506080870135915060a087013590509295509295509295565b60006020828403121561162257600080fd5b610f0f8261141c565b80151581146107f757600080fd5b6000806040838503121561164c57600080fd5b6116558361141c565b915060208301356116658161162b565b809150509250929050565b6000806000806080858703121561168657600080fd5b61168f8561141c565b935061169d6020860161141c565b925060408501359150606085013567ffffffffffffffff8111156116c057600080fd5b8501601f810187136116d157600080fd5b6116e0878235602084016114d6565b91505092959194509250565b600080604083850312156116ff57600080fd5b6117088361141c565b91506117166020840161141c565b90509250929050565b60006020828403121561173157600080fd5b813567ffffffffffffffff81111561174857600080fd5b6112018482850161154c565b600181811c9082168061176857607f821691505b60208210810361178857634e487b7160e01b600052602260045260246000fd5b50919050565b6000602082840312156117a057600080fd5b8151610f0f8161162b565b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176104fa576104fa6117ab565b6000826117f557634e487b7160e01b600052601260045260246000fd5b500490565b601f82111561069f57600081815260208120601f850160051c810160208610156118215750805b601f850160051c820191505b81811015610e7e5782815560010161182d565b815167ffffffffffffffff81111561185a5761185a6114c0565b61186e816118688454611754565b846117fa565b602080601f8311600181146118a3576000841561188b5750858301515b600019600386901b1c1916600185901b178555610e7e565b600085815260208120601f198616915b828110156118d2578886015182559484019460019091019084016118b3565b50858210156118f05787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b808201808211156104fa576104fa6117ab565b600080845461192181611754565b60018281168015611939576001811461194e5761197d565b60ff198416875282151583028701945061197d565b8860005260208060002060005b858110156119745781548a82015290840190820161195b565b50505082870194505b5050505083516119918183602088016113a0565b64173539b7b760d91b9101908152600501949350505050565b818103818111156104fa576104fa6117ab565b6000600182016119cf576119cf6117ab565b5060010190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611a09908301846113c4565b9695505050505050565b600060208284031215611a2557600080fd5b8151610f0f8161136d56fea2646970667358221220f9253c61347837404a5fb48c29bc403d0c2a7659bad263d017335cf94bc0e0e764736f6c63430008110033
Deployed Bytecode
0x6080604052600436106101815760003560e01c80636352211e116100d1578063a22cb4651161008a578063cc47a40b11610064578063cc47a40b14610438578063d5abeb0114610458578063e985e9c51461046e578063f64849801461048e57600080fd5b8063a22cb465146103e5578063b88d4fde14610405578063c87b56dd1461041857600080fd5b80636352211e1461033d57806370a082311461035d5780638da5cb5b1461037d57806395d89b411461039d5780639c253445146103b2578063a0712d68146103d257600080fd5b806318160ddd1161013e5780633ccfd60b116101185780633ccfd60b146102d357806341f43434146102e857806342842e0e1461030a5780634bb8cced1461031d57600080fd5b806318160ddd1461026857806323b872dd146102815780632a55205a1461029457600080fd5b806301ffc9a71461018657806306fdde03146101bb578063081812fc146101dd578063095ea7b31461021557806313faede61461022a578063158ef93e1461024e575b600080fd5b34801561019257600080fd5b506101a66101a1366004611383565b6104ae565b60405190151581526020015b60405180910390f35b3480156101c757600080fd5b506101d0610500565b6040516101b291906113f0565b3480156101e957600080fd5b506101fd6101f8366004611403565b610592565b6040516001600160a01b0390911681526020016101b2565b610228610223366004611438565b6105d6565b005b34801561023657600080fd5b50610240600b5481565b6040519081526020016101b2565b34801561025a57600080fd5b50600d546101a69060ff1681565b34801561027457600080fd5b5060015460005403610240565b61022861028f366004611462565b6106a4565b3480156102a057600080fd5b506102b46102af36600461149e565b61077d565b604080516001600160a01b0390931683526020830191909152016101b2565b3480156102df57600080fd5b506102286107b4565b3480156102f457600080fd5b506101fd6daaeb6d7670e522a718067333cd4e81565b610228610318366004611462565b6107fa565b34801561032957600080fd5b5061022861033836600461156c565b6108c8565b34801561034957600080fd5b506101fd610358366004611403565b610922565b34801561036957600080fd5b50610240610378366004611610565b61092d565b34801561038957600080fd5b506009546101fd906001600160a01b031681565b3480156103a957600080fd5b506101d061097c565b3480156103be57600080fd5b506102286103cd36600461149e565b61098b565b6102286103e0366004611403565b6109ad565b3480156103f157600080fd5b50610228610400366004611639565b6109dc565b610228610413366004611670565b610aa0565b34801561042457600080fd5b506101d0610433366004611403565b610b7c565b34801561044457600080fd5b50610228610453366004611438565b610bb0565b34801561046457600080fd5b50610240600a5481565b34801561047a57600080fd5b506101a66104893660046116ec565b610bd5565b34801561049a57600080fd5b506102286104a936600461171f565b610c03565b60006301ffc9a760e01b6001600160e01b0319831614806104df57506380ac58cd60e01b6001600160e01b03198316145b806104fa5750635b5e139f60e01b6001600160e01b03198316145b92915050565b60606002805461050f90611754565b80601f016020809104026020016040519081016040528092919081815260200182805461053b90611754565b80156105885780601f1061055d57610100808354040283529160200191610588565b820191906000526020600020905b81548152906001019060200180831161056b57829003601f168201915b5050505050905090565b600061059d82610c26565b6105ba576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b816daaeb6d7670e522a718067333cd4e3b1561069557604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610644573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610668919061178e565b61069557604051633b79c77360e21b81526001600160a01b03821660048201526024015b60405180910390fd5b61069f8383610c4d565b505050565b826daaeb6d7670e522a718067333cd4e3b1561076c57336001600160a01b038216036106da576106d5848484610ced565b610777565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610729573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061074d919061178e565b61076c57604051633b79c77360e21b815233600482015260240161068c565b610777848484610ced565b50505050565b60008060006103e8600c548561079391906117c1565b61079d91906117d8565b6009546001600160a01b0316969095509350505050565b6009546001600160a01b031633146107cb57600080fd5b60405133904780156108fc02916000818181858888f193505050501580156107f7573d6000803e3d6000fd5b50565b826daaeb6d7670e522a718067333cd4e3b156108bd57336001600160a01b0382160361082b576106d5848484610e86565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa15801561087a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061089e919061178e565b6108bd57604051633b79c77360e21b815233600482015260240161068c565b610777848484610e86565b600d5460ff16156108d857600080fd5b6108e28686610ea1565b600980546001600160a01b03191632179055600a839055600b829055600861090a8582611840565b50600d805460ff19166001179055600c555050505050565b60006104fa82610ec3565b60006001600160a01b038216610956576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b60606003805461050f90611754565b6009546001600160a01b031633146109a257600080fd5b600a91909155600c55565b600a54816109be6001546000540390565b6109c89190611900565b11156109d357600080fd5b6107f781610f31565b816daaeb6d7670e522a718067333cd4e3b15610a9657604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610a4a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a6e919061178e565b610a9657604051633b79c77360e21b81526001600160a01b038216600482015260240161068c565b61069f838361100f565b836daaeb6d7670e522a718067333cd4e3b15610b6957336001600160a01b03821603610ad757610ad28585858561107b565b610b75565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610b26573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b4a919061178e565b610b6957604051633b79c77360e21b815233600482015260240161068c565b610b758585858561107b565b5050505050565b60606008610b89836110bf565b604051602001610b9a929190611913565b6040516020818303038152906040529050919050565b6009546001600160a01b03163314610bc757600080fd5b610bd18282611103565b5050565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b6009546001600160a01b03163314610c1a57600080fd5b6008610bd18282611840565b60008054821080156104fa575050600090815260046020526040902054600160e01b161590565b6000610c5882610922565b9050336001600160a01b03821614610c9157610c748133610bd5565b610c91576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000610cf882610ec3565b9050836001600160a01b0316816001600160a01b031614610d2b5760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b03881690911417610d7857610d5b8633610bd5565b610d7857604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610d9f57604051633a954ecd60e21b815260040160405180910390fd5b8015610daa57600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b84169003610e3c57600184016000818152600460205260408120549003610e3a576000548114610e3a5760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b61069f83838360405180602001604052806000815250610aa0565b6002610ead8382611840565b506003610eba8282611840565b50600080555050565b600081600054811015610f185760008181526004602052604081205490600160e01b82169003610f16575b80600003610f0f575060001901600081815260046020526040902054610eee565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b34600003610fec57333214610f4557600080fd5b6000610f546001546000540390565b905081600114610f6357600080fd5b6005600a54610f7291906117d8565b811115610fe157610f823361092d565b15610f8c57600080fd5b600c81600a54610f9c91906119aa565b610fa691906117d8565b436000908152600f602052604090205410610fc057600080fd5b436000908152600f60205260408120805491610fdb836119bd565b91905055505b610bd1336001611103565b600b54610ff990826117c1565b34101561100557600080fd5b6107f73382611103565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6110868484846106a4565b6001600160a01b0383163b15610777576110a28484848461111d565b610777576040516368d2bf6b60e11b815260040160405180910390fd5b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a9004806110d95750819003601f19909101908152919050565b610bd1828260405180602001604052806000815250611209565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906111529033908990889088906004016119d6565b6020604051808303816000875af192505050801561118d575060408051601f3d908101601f1916820190925261118a91810190611a13565b60015b6111eb573d8080156111bb576040519150601f19603f3d011682016040523d82523d6000602084013e6111c0565b606091505b5080516000036111e3576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b611213838361126f565b6001600160a01b0383163b1561069f576000548281035b61123d600086838060010194508661111d565b61125a576040516368d2bf6b60e11b815260040160405180910390fd5b81811061122a578160005414610b7557600080fd5b60008054908290036112945760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461134357808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a460010161130b565b508160000361136457604051622e076360e81b815260040160405180910390fd5b60005550505050565b6001600160e01b0319811681146107f757600080fd5b60006020828403121561139557600080fd5b8135610f0f8161136d565b60005b838110156113bb5781810151838201526020016113a3565b50506000910152565b600081518084526113dc8160208601602086016113a0565b601f01601f19169290920160200192915050565b602081526000610f0f60208301846113c4565b60006020828403121561141557600080fd5b5035919050565b80356001600160a01b038116811461143357600080fd5b919050565b6000806040838503121561144b57600080fd5b6114548361141c565b946020939093013593505050565b60008060006060848603121561147757600080fd5b6114808461141c565b925061148e6020850161141c565b9150604084013590509250925092565b600080604083850312156114b157600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156114f1576114f16114c0565b604051601f8501601f19908116603f01168101908282118183101715611519576115196114c0565b8160405280935085815286868601111561153257600080fd5b858560208301376000602087830101525050509392505050565b600082601f83011261155d57600080fd5b610f0f838335602085016114d6565b60008060008060008060c0878903121561158557600080fd5b863567ffffffffffffffff8082111561159d57600080fd5b6115a98a838b0161154c565b975060208901359150808211156115bf57600080fd5b6115cb8a838b0161154c565b965060408901359150808211156115e157600080fd5b506115ee89828a0161154c565b945050606087013592506080870135915060a087013590509295509295509295565b60006020828403121561162257600080fd5b610f0f8261141c565b80151581146107f757600080fd5b6000806040838503121561164c57600080fd5b6116558361141c565b915060208301356116658161162b565b809150509250929050565b6000806000806080858703121561168657600080fd5b61168f8561141c565b935061169d6020860161141c565b925060408501359150606085013567ffffffffffffffff8111156116c057600080fd5b8501601f810187136116d157600080fd5b6116e0878235602084016114d6565b91505092959194509250565b600080604083850312156116ff57600080fd5b6117088361141c565b91506117166020840161141c565b90509250929050565b60006020828403121561173157600080fd5b813567ffffffffffffffff81111561174857600080fd5b6112018482850161154c565b600181811c9082168061176857607f821691505b60208210810361178857634e487b7160e01b600052602260045260246000fd5b50919050565b6000602082840312156117a057600080fd5b8151610f0f8161162b565b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176104fa576104fa6117ab565b6000826117f557634e487b7160e01b600052601260045260246000fd5b500490565b601f82111561069f57600081815260208120601f850160051c810160208610156118215750805b601f850160051c820191505b81811015610e7e5782815560010161182d565b815167ffffffffffffffff81111561185a5761185a6114c0565b61186e816118688454611754565b846117fa565b602080601f8311600181146118a3576000841561188b5750858301515b600019600386901b1c1916600185901b178555610e7e565b600085815260208120601f198616915b828110156118d2578886015182559484019460019091019084016118b3565b50858210156118f05787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b808201808211156104fa576104fa6117ab565b600080845461192181611754565b60018281168015611939576001811461194e5761197d565b60ff198416875282151583028701945061197d565b8860005260208060002060005b858110156119745781548a82015290840190820161195b565b50505082870194505b5050505083516119918183602088016113a0565b64173539b7b760d91b9101908152600501949350505050565b818103818111156104fa576104fa6117ab565b6000600182016119cf576119cf6117ab565b5060010190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611a09908301846113c4565b9695505050505050565b600060208284031215611a2557600080fd5b8151610f0f8161136d56fea2646970667358221220f9253c61347837404a5fb48c29bc403d0c2a7659bad263d017335cf94bc0e0e764736f6c63430008110033
Deployed Bytecode Sourcemap
57428:3345:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19022:639;;;;;;;;;;-1:-1:-1;19022:639:0;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;19022:639:0;;;;;;;;19924:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;26415:218::-;;;;;;;;;;-1:-1:-1;26415:218:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1697:32:1;;;1679:51;;1667:2;1652:18;26415:218:0;1533:203:1;59986:165:0;;;;;;:::i;:::-;;:::i;:::-;;57579:19;;;;;;;;;;;;;;;;;;;2324:25:1;;;2312:2;2297:18;57579:19:0;2178:177:1;57627:23:0;;;;;;;;;;-1:-1:-1;57627:23:0;;;;;;;;15675:323;;;;;;;;;;-1:-1:-1;15949:12:0;;15736:7;15933:13;:28;15675:323;;60159:171;;;;;;:::i;:::-;;:::i;59463:214::-;;;;;;;;;;-1:-1:-1;59463:214:0;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;3138:32:1;;;3120:51;;3202:2;3187:18;;3180:34;;;;3093:18;59463:214:0;2946:274:1;59685:109:0;;;;;;;;;;;;;:::i;54791:143::-;;;;;;;;;;;;54891:42;54791:143;;60338:179;;;;;;:::i;:::-;;:::i;58809:340::-;;;;;;;;;;-1:-1:-1;58809:340:0;;;;;:::i;:::-;;:::i;21317:152::-;;;;;;;;;;-1:-1:-1;21317:152:0;;;;;:::i;:::-;;:::i;16859:233::-;;;;;;;;;;-1:-1:-1;16859:233:0;;;;;:::i;:::-;;:::i;57517:20::-;;;;;;;;;;-1:-1:-1;57517:20:0;;;;-1:-1:-1;;;;;57517:20:0;;;20100:104;;;;;;;;;;;;;:::i;59329:126::-;;;;;;;;;;-1:-1:-1;59329:126:0;;;;;:::i;:::-;;:::i;57788:132::-;;;;;;:::i;:::-;;:::i;59802:176::-;;;;;;;;;;-1:-1:-1;59802:176:0;;;;;:::i;:::-;;:::i;60525:245::-;;;;;;:::i;:::-;;:::i;59157:164::-;;;;;;;;;;-1:-1:-1;59157:164:0;;;;;:::i;:::-;;:::i;58523:104::-;;;;;;;;;;-1:-1:-1;58523:104:0;;;;;:::i;:::-;;:::i;57546:24::-;;;;;;;;;;;;;;;;27364:164;;;;;;;;;;-1:-1:-1;27364:164:0;;;;;:::i;:::-;;:::i;58635:76::-;;;;;;;;;;-1:-1:-1;58635:76:0;;;;;:::i;:::-;;:::i;19022:639::-;19107:4;-1:-1:-1;;;;;;;;;19431:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;19508:25:0;;;19431:102;:179;;;-1:-1:-1;;;;;;;;;;19585:25:0;;;19431:179;19411:199;19022:639;-1:-1:-1;;19022:639:0:o;19924:100::-;19978:13;20011:5;20004:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19924:100;:::o;26415:218::-;26491:7;26516:16;26524:7;26516;:16::i;:::-;26511:64;;26541:34;;-1:-1:-1;;;26541:34:0;;;;;;;;;;;26511:64;-1:-1:-1;26595:24:0;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;26595:30:0;;26415:218::o;59986:165::-;60090:8;54891:42;56785:45;:49;56781:225;;56856:67;;-1:-1:-1;;;56856:67:0;;56907:4;56856:67;;;7911:34:1;-1:-1:-1;;;;;7981:15:1;;7961:18;;;7954:43;54891:42:0;;56856;;7846:18:1;;56856:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;56851:144;;56951:28;;-1:-1:-1;;;56951:28:0;;-1:-1:-1;;;;;1697:32:1;;56951:28:0;;;1679:51:1;1652:18;;56951:28:0;;;;;;;;56851:144;60111:32:::1;60125:8;60135:7;60111:13;:32::i;:::-;59986:165:::0;;;:::o;60159:171::-;60268:4;54891:42;56039:45;:49;56035:539;;56328:10;-1:-1:-1;;;;;56320:18:0;;;56316:85;;60285:37:::1;60304:4;60310:2;60314:7;60285:18;:37::i;:::-;56379:7:::0;;56316:85;56420:69;;-1:-1:-1;;;56420:69:0;;56471:4;56420:69;;;7911:34:1;56478:10:0;7961:18:1;;;7954:43;54891:42:0;;56420;;7846:18:1;;56420:69:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;56415:148;;56517:30;;-1:-1:-1;;;56517:30:0;;56536:10;56517:30;;;1679:51:1;1652:18;;56517:30:0;1533:203:1;56415:148:0;60285:37:::1;60304:4;60310:2;60314:7;60285:18;:37::i;:::-;60159:171:::0;;;;:::o;59463:214::-;59551:7;59560;59580:21;59625:4;59618:3;;59605:10;:16;;;;:::i;:::-;59604:25;;;;:::i;:::-;59648:5;;-1:-1:-1;;;;;59648:5:0;;59580:49;;-1:-1:-1;59463:214:0;-1:-1:-1;;;;59463:214:0:o;59685:109::-;58761:5;;-1:-1:-1;;;;;58761:5:0;58770:10;58761:19;58753:28;;;;;;59735:51:::1;::::0;59743:10:::1;::::0;59764:21:::1;59735:51:::0;::::1;;;::::0;::::1;::::0;;;59764:21;59743:10;59735:51;::::1;;;;;;;;;;;;;::::0;::::1;;;;;;59685:109::o:0;60338:179::-;60451:4;54891:42;56039:45;:49;56035:539;;56328:10;-1:-1:-1;;;;;56320:18:0;;;56316:85;;60468:41:::1;60491:4;60497:2;60501:7;60468:22;:41::i;56316:85::-:0;56420:69;;-1:-1:-1;;;56420:69:0;;56471:4;56420:69;;;7911:34:1;56478:10:0;7961:18:1;;;7954:43;54891:42:0;;56420;;7846:18:1;;56420:69:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;56415:148;;56517:30;;-1:-1:-1;;;56517:30:0;;56536:10;56517:30;;;1679:51:1;1652:18;;56517:30:0;1533:203:1;56415:148:0;60468:41:::1;60491:4;60497:2;60501:7;60468:22;:41::i;58809:340::-:0;58944:11;;;;:20;58936:29;;;;;;58976:26;58990:4;58996:5;58976:13;:26::i;:::-;59013:5;:17;;-1:-1:-1;;;;;;59013:17:0;59021:9;59013:17;;;59041:9;:15;;;59067:4;:8;;;59086:3;:7;59092:1;59086:3;:7;:::i;:::-;-1:-1:-1;59104:11:0;:18;;-1:-1:-1;;59104:18:0;59118:4;59104:18;;;59133:3;:8;-1:-1:-1;;;;;58809:340:0:o;21317:152::-;21389:7;21432:27;21451:7;21432:18;:27::i;16859:233::-;16931:7;-1:-1:-1;;;;;16955:19:0;;16951:60;;16983:28;;-1:-1:-1;;;16983:28:0;;;;;;;;;;;16951:60;-1:-1:-1;;;;;;17029:25:0;;;;;:18;:25;;;;;;11004:13;17029:55;;16859:233::o;20100:104::-;20156:13;20189:7;20182:14;;;;;:::i;59329:126::-;58761:5;;-1:-1:-1;;;;;58761:5:0;58770:10;58761:19;58753:28;;;;;;59412:9:::1;:16:::0;;;;59439:3:::1;:8:::0;59329:126::o;57788:132::-;57878:9;;57868:6;57852:13;15949:12;;15736:7;15933:13;:28;;15675:323;57852:13;:22;;;;:::i;:::-;:35;;57844:44;;;;;;57899:13;57905:6;57899:5;:13::i;59802:176::-;59906:8;54891:42;56785:45;:49;56781:225;;56856:67;;-1:-1:-1;;;56856:67:0;;56907:4;56856:67;;;7911:34:1;-1:-1:-1;;;;;7981:15:1;;7961:18;;;7954:43;54891:42:0;;56856;;7846:18:1;;56856:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;56851:144;;56951:28;;-1:-1:-1;;;56951:28:0;;-1:-1:-1;;;;;1697:32:1;;56951:28:0;;;1679:51:1;1652:18;;56951:28:0;1533:203:1;56851:144:0;59927:43:::1;59951:8;59961;59927:23;:43::i;60525:245::-:0;60693:4;54891:42;56039:45;:49;56035:539;;56328:10;-1:-1:-1;;;;;56320:18:0;;;56316:85;;60715:47:::1;60738:4;60744:2;60748:7;60757:4;60715:22;:47::i;:::-;56379:7:::0;;56316:85;56420:69;;-1:-1:-1;;;56420:69:0;;56471:4;56420:69;;;7911:34:1;56478:10:0;7961:18:1;;;7954:43;54891:42:0;;56420;;7846:18:1;;56420:69:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;56415:148;;56517:30;;-1:-1:-1;;;56517:30:0;;56536:10;56517:30;;;1679:51:1;1652:18;;56517:30:0;1533:203:1;56415:148:0;60715:47:::1;60738:4;60744:2;60748:7;60757:4;60715:22;:47::i;:::-;60525:245:::0;;;;;:::o;59157:164::-;59222:13;59279:3;59284:18;59294:7;59284:9;:18::i;:::-;59262:50;;;;;;;;;:::i;:::-;;;;;;;;;;;;;59248:65;;59157:164;;;:::o;58523:104::-;58761:5;;-1:-1:-1;;;;;58761:5:0;58770:10;58761:19;58753:28;;;;;;58597:22:::1;58607:3;58612:6;58597:9;:22::i;:::-;58523:104:::0;;:::o;27364:164::-;-1:-1:-1;;;;;27485:25:0;;;27461:4;27485:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;27364:164::o;58635:76::-;58761:5;;-1:-1:-1;;;;;58761:5:0;58770:10;58761:19;58753:28;;;;;;58696:3:::1;:7;58702:1:::0;58696:3;:7:::1;:::i;27786:282::-:0;27851:4;27941:13;;27931:7;:23;27888:153;;;;-1:-1:-1;;27992:26:0;;;;:17;:26;;;;;;-1:-1:-1;;;27992:44:0;:49;;27786:282::o;25848:408::-;25937:13;25953:16;25961:7;25953;:16::i;:::-;25937:32;-1:-1:-1;50183:10:0;-1:-1:-1;;;;;25986:28:0;;;25982:175;;26034:44;26051:5;50183:10;27364:164;:::i;26034:44::-;26029:128;;26106:35;;-1:-1:-1;;;26106:35:0;;;;;;;;;;;26029:128;26169:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;26169:35:0;-1:-1:-1;;;;;26169:35:0;;;;;;;;;26220:28;;26169:24;;26220:28;;;;;;;25926:330;25848:408;;:::o;30054:2825::-;30196:27;30226;30245:7;30226:18;:27::i;:::-;30196:57;;30311:4;-1:-1:-1;;;;;30270:45:0;30286:19;-1:-1:-1;;;;;30270:45:0;;30266:86;;30324:28;;-1:-1:-1;;;30324:28:0;;;;;;;;;;;30266:86;30366:27;29162:24;;;:15;:24;;;;;29390:26;;50183:10;28787:30;;;-1:-1:-1;;;;;28480:28:0;;28765:20;;;28762:56;30552:180;;30645:43;30662:4;50183:10;27364:164;:::i;30645:43::-;30640:92;;30697:35;;-1:-1:-1;;;30697:35:0;;;;;;;;;;;30640:92;-1:-1:-1;;;;;30749:16:0;;30745:52;;30774:23;;-1:-1:-1;;;30774:23:0;;;;;;;;;;;30745:52;30946:15;30943:160;;;31086:1;31065:19;31058:30;30943:160;-1:-1:-1;;;;;31483:24:0;;;;;;;:18;:24;;;;;;31481:26;;-1:-1:-1;;31481:26:0;;;31552:22;;;;;;;;;31550:24;;-1:-1:-1;31550:24:0;;;24706:11;24681:23;24677:41;24664:63;-1:-1:-1;;;24664:63:0;31845:26;;;;:17;:26;;;;;:175;;;;-1:-1:-1;;;32140:47:0;;:52;;32136:627;;32245:1;32235:11;;32213:19;32368:30;;;:17;:30;;;;;;:35;;32364:384;;32506:13;;32491:11;:28;32487:242;;32653:30;;;;:17;:30;;;;;:52;;;32487:242;32194:569;32136:627;32810:7;32806:2;-1:-1:-1;;;;;32791:27:0;32800:4;-1:-1:-1;;;;;32791:27:0;;;;;;;;;;;32829:42;30185:2694;;;30054:2825;;;:::o;32975:193::-;33121:39;33138:4;33144:2;33148:7;33121:39;;;;;;;;;;;;:16;:39::i;14683:172::-;14764:5;:13;14772:5;14764;:13;:::i;:::-;-1:-1:-1;14788:7:0;:17;14798:7;14788;:17;:::i;:::-;-1:-1:-1;15247:7:0;14816:13;:31;-1:-1:-1;;14683:172:0:o;22472:1275::-;22539:7;22574;22676:13;;22669:4;:20;22665:1015;;;22714:14;22731:23;;;:17;:23;;;;;;;-1:-1:-1;;;22820:24:0;;:29;;22816:845;;23485:113;23492:6;23502:1;23492:11;23485:113;;-1:-1:-1;;;23563:6:0;23545:25;;;;:17;:25;;;;;;23485:113;;;23631:6;22472:1275;-1:-1:-1;;;22472:1275:0:o;22816:845::-;22691:989;22665:1015;23708:31;;-1:-1:-1;;;23708:31:0;;;;;;;;;;;57928:585;57983:9;57996:1;57983:14;57979:441;;58022:10;58036:9;58022:23;58014:32;;;;;;58061:9;58073:13;15949:12;;15736:7;15933:13;:28;;15675:323;58073:13;58061:25;;58109:6;58119:1;58109:11;58101:20;;;;;;58156:1;58144:9;;:13;;;;:::i;:::-;58140:1;:17;58136:213;;;58186:21;58196:10;58186:9;:21::i;:::-;:26;58178:35;;;;;;58285:2;58280:1;58268:9;;:13;;;;:::i;:::-;58267:20;;;;:::i;:::-;58251:12;58240:24;;;;:10;:24;;;;;;:47;58232:56;;;;;;58318:12;58307:24;;;;:10;:24;;;;;:26;;;;;;:::i;:::-;;;;;;58136:213;58363:24;58373:10;58385:1;58363:9;:24::i;57979:441::-;58460:4;;58451:13;;:6;:13;:::i;:::-;58438:9;:26;;58430:35;;;;;;58476:29;58486:10;58498:6;58476:9;:29::i;26973:234::-;50183:10;27068:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;27068:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;27068:60:0;;;;;;;;;;27144:55;;540:41:1;;;27068:49:0;;50183:10;27144:55;;513:18:1;27144:55:0;;;;;;;26973:234;;:::o;33768:407::-;33943:31;33956:4;33962:2;33966:7;33943:12;:31::i;:::-;-1:-1:-1;;;;;33989:14:0;;;:19;33985:183;;34028:56;34059:4;34065:2;34069:7;34078:5;34028:30;:56::i;:::-;34023:145;;34112:40;;-1:-1:-1;;;34112:40:0;;;;;;;;;;;50303:1745;50368:17;50802:4;50795;50789:11;50785:22;50894:1;50888:4;50881:15;50969:4;50966:1;50962:12;50955:19;;;51051:1;51046:3;51039:14;51155:3;51394:5;51376:428;51442:1;51437:3;51433:11;51426:18;;51613:2;51607:4;51603:13;51599:2;51595:22;51590:3;51582:36;51707:2;51697:13;;51764:25;51376:428;51764:25;-1:-1:-1;51834:13:0;;;-1:-1:-1;;51949:14:0;;;52011:19;;;51949:14;50303:1745;-1:-1:-1;50303:1745:0:o;43928:112::-;44005:27;44015:2;44019:8;44005:27;;;;;;;;;;;;:9;:27::i;36259:716::-;36443:88;;-1:-1:-1;;;36443:88:0;;36422:4;;-1:-1:-1;;;;;36443:45:0;;;;;:88;;50183:10;;36510:4;;36516:7;;36525:5;;36443:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;36443:88:0;;;;;;;;-1:-1:-1;;36443:88:0;;;;;;;;;;;;:::i;:::-;;;36439:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36726:6;:13;36743:1;36726:18;36722:235;;36772:40;;-1:-1:-1;;;36772:40:0;;;;;;;;;;;36722:235;36915:6;36909:13;36900:6;36896:2;36892:15;36885:38;36439:529;-1:-1:-1;;;;;;36602:64:0;-1:-1:-1;;;36602:64:0;;-1:-1:-1;36439:529:0;36259:716;;;;;;:::o;43155:689::-;43286:19;43292:2;43296:8;43286:5;:19::i;:::-;-1:-1:-1;;;;;43347:14:0;;;:19;43343:483;;43387:11;43401:13;43449:14;;;43482:233;43513:62;43552:1;43556:2;43560:7;;;;;;43569:5;43513:30;:62::i;:::-;43508:167;;43611:40;;-1:-1:-1;;;43611:40:0;;;;;;;;;;;43508:167;43710:3;43702:5;:11;43482:233;;43797:3;43780:13;;:20;43776:34;;43802:8;;;37437:2966;37510:20;37533:13;;;37561;;;37557:44;;37583:18;;-1:-1:-1;;;37583:18:0;;;;;;;;;;;37557:44;-1:-1:-1;;;;;38089:22:0;;;;;;:18;:22;;;;11142:2;38089:22;;;:71;;38127:32;38115:45;;38089:71;;;38403:31;;;:17;:31;;;;;-1:-1:-1;25137:15:0;;25111:24;25107:46;24706:11;24681:23;24677:41;24674:52;24664:63;;38403:173;;38638:23;;;;38403:31;;38089:22;;39403:25;38089:22;;39256:335;39917:1;39903:12;39899:20;39857:346;39958:3;39949:7;39946:16;39857:346;;40176:7;40166:8;40163:1;40136:25;40133:1;40130;40125:59;40011:1;39998:15;39857:346;;;39861:77;40236:8;40248:1;40236:13;40232:45;;40258:19;;-1:-1:-1;;;40258:19:0;;;;;;;;;;;40232:45;40294:13;:19;-1:-1:-1;59986:165:0;;;:::o;14:131:1:-;-1:-1:-1;;;;;;88:32:1;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;592:250::-;677:1;687:113;701:6;698:1;695:13;687:113;;;777:11;;;771:18;758:11;;;751:39;723:2;716:10;687:113;;;-1:-1:-1;;834:1:1;816:16;;809:27;592:250::o;847:271::-;889:3;927:5;921:12;954:6;949:3;942:19;970:76;1039:6;1032:4;1027:3;1023:14;1016:4;1009:5;1005:16;970:76;:::i;:::-;1100:2;1079:15;-1:-1:-1;;1075:29:1;1066:39;;;;1107:4;1062:50;;847:271;-1:-1:-1;;847:271:1:o;1123:220::-;1272:2;1261:9;1254:21;1235:4;1292:45;1333:2;1322:9;1318:18;1310:6;1292:45;:::i;1348:180::-;1407:6;1460:2;1448:9;1439:7;1435:23;1431:32;1428:52;;;1476:1;1473;1466:12;1428:52;-1:-1:-1;1499:23:1;;1348:180;-1:-1:-1;1348:180:1:o;1741:173::-;1809:20;;-1:-1:-1;;;;;1858:31:1;;1848:42;;1838:70;;1904:1;1901;1894:12;1838:70;1741:173;;;:::o;1919:254::-;1987:6;1995;2048:2;2036:9;2027:7;2023:23;2019:32;2016:52;;;2064:1;2061;2054:12;2016:52;2087:29;2106:9;2087:29;:::i;:::-;2077:39;2163:2;2148:18;;;;2135:32;;-1:-1:-1;;;1919:254:1:o;2360:328::-;2437:6;2445;2453;2506:2;2494:9;2485:7;2481:23;2477:32;2474:52;;;2522:1;2519;2512:12;2474:52;2545:29;2564:9;2545:29;:::i;:::-;2535:39;;2593:38;2627:2;2616:9;2612:18;2593:38;:::i;:::-;2583:48;;2678:2;2667:9;2663:18;2650:32;2640:42;;2360:328;;;;;:::o;2693:248::-;2761:6;2769;2822:2;2810:9;2801:7;2797:23;2793:32;2790:52;;;2838:1;2835;2828:12;2790:52;-1:-1:-1;;2861:23:1;;;2931:2;2916:18;;;2903:32;;-1:-1:-1;2693:248:1:o;3465:127::-;3526:10;3521:3;3517:20;3514:1;3507:31;3557:4;3554:1;3547:15;3581:4;3578:1;3571:15;3597:632;3662:5;3692:18;3733:2;3725:6;3722:14;3719:40;;;3739:18;;:::i;:::-;3814:2;3808:9;3782:2;3868:15;;-1:-1:-1;;3864:24:1;;;3890:2;3860:33;3856:42;3844:55;;;3914:18;;;3934:22;;;3911:46;3908:72;;;3960:18;;:::i;:::-;4000:10;3996:2;3989:22;4029:6;4020:15;;4059:6;4051;4044:22;4099:3;4090:6;4085:3;4081:16;4078:25;4075:45;;;4116:1;4113;4106:12;4075:45;4166:6;4161:3;4154:4;4146:6;4142:17;4129:44;4221:1;4214:4;4205:6;4197;4193:19;4189:30;4182:41;;;;3597:632;;;;;:::o;4234:222::-;4277:5;4330:3;4323:4;4315:6;4311:17;4307:27;4297:55;;4348:1;4345;4338:12;4297:55;4370:80;4446:3;4437:6;4424:20;4417:4;4409:6;4405:17;4370:80;:::i;4461:950::-;4595:6;4603;4611;4619;4627;4635;4688:3;4676:9;4667:7;4663:23;4659:33;4656:53;;;4705:1;4702;4695:12;4656:53;4745:9;4732:23;4774:18;4815:2;4807:6;4804:14;4801:34;;;4831:1;4828;4821:12;4801:34;4854:50;4896:7;4887:6;4876:9;4872:22;4854:50;:::i;:::-;4844:60;;4957:2;4946:9;4942:18;4929:32;4913:48;;4986:2;4976:8;4973:16;4970:36;;;5002:1;4999;4992:12;4970:36;5025:52;5069:7;5058:8;5047:9;5043:24;5025:52;:::i;:::-;5015:62;;5130:2;5119:9;5115:18;5102:32;5086:48;;5159:2;5149:8;5146:16;5143:36;;;5175:1;5172;5165:12;5143:36;;5198:52;5242:7;5231:8;5220:9;5216:24;5198:52;:::i;:::-;5188:62;;;5297:2;5286:9;5282:18;5269:32;5259:42;;5348:3;5337:9;5333:19;5320:33;5310:43;;5400:3;5389:9;5385:19;5372:33;5362:43;;4461:950;;;;;;;;:::o;5416:186::-;5475:6;5528:2;5516:9;5507:7;5503:23;5499:32;5496:52;;;5544:1;5541;5534:12;5496:52;5567:29;5586:9;5567:29;:::i;5607:118::-;5693:5;5686:13;5679:21;5672:5;5669:32;5659:60;;5715:1;5712;5705:12;5730:315;5795:6;5803;5856:2;5844:9;5835:7;5831:23;5827:32;5824:52;;;5872:1;5869;5862:12;5824:52;5895:29;5914:9;5895:29;:::i;:::-;5885:39;;5974:2;5963:9;5959:18;5946:32;5987:28;6009:5;5987:28;:::i;:::-;6034:5;6024:15;;;5730:315;;;;;:::o;6050:667::-;6145:6;6153;6161;6169;6222:3;6210:9;6201:7;6197:23;6193:33;6190:53;;;6239:1;6236;6229:12;6190:53;6262:29;6281:9;6262:29;:::i;:::-;6252:39;;6310:38;6344:2;6333:9;6329:18;6310:38;:::i;:::-;6300:48;;6395:2;6384:9;6380:18;6367:32;6357:42;;6450:2;6439:9;6435:18;6422:32;6477:18;6469:6;6466:30;6463:50;;;6509:1;6506;6499:12;6463:50;6532:22;;6585:4;6577:13;;6573:27;-1:-1:-1;6563:55:1;;6614:1;6611;6604:12;6563:55;6637:74;6703:7;6698:2;6685:16;6680:2;6676;6672:11;6637:74;:::i;:::-;6627:84;;;6050:667;;;;;;;:::o;6722:260::-;6790:6;6798;6851:2;6839:9;6830:7;6826:23;6822:32;6819:52;;;6867:1;6864;6857:12;6819:52;6890:29;6909:9;6890:29;:::i;:::-;6880:39;;6938:38;6972:2;6961:9;6957:18;6938:38;:::i;:::-;6928:48;;6722:260;;;;;:::o;6987:322::-;7056:6;7109:2;7097:9;7088:7;7084:23;7080:32;7077:52;;;7125:1;7122;7115:12;7077:52;7165:9;7152:23;7198:18;7190:6;7187:30;7184:50;;;7230:1;7227;7220:12;7184:50;7253;7295:7;7286:6;7275:9;7271:22;7253:50;:::i;7314:380::-;7393:1;7389:12;;;;7436;;;7457:61;;7511:4;7503:6;7499:17;7489:27;;7457:61;7564:2;7556:6;7553:14;7533:18;7530:38;7527:161;;7610:10;7605:3;7601:20;7598:1;7591:31;7645:4;7642:1;7635:15;7673:4;7670:1;7663:15;7527:161;;7314:380;;;:::o;8008:245::-;8075:6;8128:2;8116:9;8107:7;8103:23;8099:32;8096:52;;;8144:1;8141;8134:12;8096:52;8176:9;8170:16;8195:28;8217:5;8195:28;:::i;8258:127::-;8319:10;8314:3;8310:20;8307:1;8300:31;8350:4;8347:1;8340:15;8374:4;8371:1;8364:15;8390:168;8463:9;;;8494;;8511:15;;;8505:22;;8491:37;8481:71;;8532:18;;:::i;8563:217::-;8603:1;8629;8619:132;;8673:10;8668:3;8664:20;8661:1;8654:31;8708:4;8705:1;8698:15;8736:4;8733:1;8726:15;8619:132;-1:-1:-1;8765:9:1;;8563:217::o;8911:545::-;9013:2;9008:3;9005:11;9002:448;;;9049:1;9074:5;9070:2;9063:17;9119:4;9115:2;9105:19;9189:2;9177:10;9173:19;9170:1;9166:27;9160:4;9156:38;9225:4;9213:10;9210:20;9207:47;;;-1:-1:-1;9248:4:1;9207:47;9303:2;9298:3;9294:12;9291:1;9287:20;9281:4;9277:31;9267:41;;9358:82;9376:2;9369:5;9366:13;9358:82;;;9421:17;;;9402:1;9391:13;9358:82;;9632:1352;9758:3;9752:10;9785:18;9777:6;9774:30;9771:56;;;9807:18;;:::i;:::-;9836:97;9926:6;9886:38;9918:4;9912:11;9886:38;:::i;:::-;9880:4;9836:97;:::i;:::-;9988:4;;10052:2;10041:14;;10069:1;10064:663;;;;10771:1;10788:6;10785:89;;;-1:-1:-1;10840:19:1;;;10834:26;10785:89;-1:-1:-1;;9589:1:1;9585:11;;;9581:24;9577:29;9567:40;9613:1;9609:11;;;9564:57;10887:81;;10034:944;;10064:663;8858:1;8851:14;;;8895:4;8882:18;;-1:-1:-1;;10100:20:1;;;10218:236;10232:7;10229:1;10226:14;10218:236;;;10321:19;;;10315:26;10300:42;;10413:27;;;;10381:1;10369:14;;;;10248:19;;10218:236;;;10222:3;10482:6;10473:7;10470:19;10467:201;;;10543:19;;;10537:26;-1:-1:-1;;10626:1:1;10622:14;;;10638:3;10618:24;10614:37;10610:42;10595:58;10580:74;;10467:201;-1:-1:-1;;;;;10714:1:1;10698:14;;;10694:22;10681:36;;-1:-1:-1;9632:1352:1:o;10989:125::-;11054:9;;;11075:10;;;11072:36;;;11088:18;;:::i;11119:1187::-;11396:3;11425:1;11458:6;11452:13;11488:36;11514:9;11488:36;:::i;:::-;11543:1;11560:18;;;11587:133;;;;11734:1;11729:356;;;;11553:532;;11587:133;-1:-1:-1;;11620:24:1;;11608:37;;11693:14;;11686:22;11674:35;;11665:45;;;-1:-1:-1;11587:133:1;;11729:356;11760:6;11757:1;11750:17;11790:4;11835:2;11832:1;11822:16;11860:1;11874:165;11888:6;11885:1;11882:13;11874:165;;;11966:14;;11953:11;;;11946:35;12009:16;;;;11903:10;;11874:165;;;11878:3;;;12068:6;12063:3;12059:16;12052:23;;11553:532;;;;;12116:6;12110:13;12132:68;12191:8;12186:3;12179:4;12171:6;12167:17;12132:68;:::i;:::-;-1:-1:-1;;;12222:18:1;;12249:22;;;12298:1;12287:13;;11119:1187;-1:-1:-1;;;;11119:1187:1:o;12311:128::-;12378:9;;;12399:11;;;12396:37;;;12413:18;;:::i;12444:135::-;12483:3;12504:17;;;12501:43;;12524:18;;:::i;:::-;-1:-1:-1;12571:1:1;12560:13;;12444:135::o;12584:489::-;-1:-1:-1;;;;;12853:15:1;;;12835:34;;12905:15;;12900:2;12885:18;;12878:43;12952:2;12937:18;;12930:34;;;13000:3;12995:2;12980:18;;12973:31;;;12778:4;;13021:46;;13047:19;;13039:6;13021:46;:::i;:::-;13013:54;12584:489;-1:-1:-1;;;;;;12584:489:1:o;13078:249::-;13147:6;13200:2;13188:9;13179:7;13175:23;13171:32;13168:52;;;13216:1;13213;13206:12;13168:52;13248:9;13242:16;13267:30;13291:5;13267:30;:::i
Swarm Source
ipfs://f9253c61347837404a5fb48c29bc403d0c2a7659bad263d017335cf94bc0e0e7
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
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.