Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 28 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Approval For... | 16953002 | 508 days ago | IN | 0 ETH | 0.00087152 | ||||
Set Approval For... | 16923374 | 512 days ago | IN | 0 ETH | 0.00095953 | ||||
Set Approval For... | 16916032 | 513 days ago | IN | 0 ETH | 0.00079182 | ||||
Set Approval For... | 16890933 | 517 days ago | IN | 0 ETH | 0.00156458 | ||||
Set Approval For... | 16888889 | 517 days ago | IN | 0 ETH | 0.00052095 | ||||
Set Approval For... | 16886134 | 518 days ago | IN | 0 ETH | 0.00076408 | ||||
Set Approval For... | 16881292 | 518 days ago | IN | 0 ETH | 0.00055847 | ||||
Set Approval For... | 16871726 | 520 days ago | IN | 0 ETH | 0.00193252 | ||||
Set Approval For... | 16868780 | 520 days ago | IN | 0 ETH | 0.00069584 | ||||
Set Approval For... | 16868780 | 520 days ago | IN | 0 ETH | 0.00069547 | ||||
Set Approval For... | 16868776 | 520 days ago | IN | 0 ETH | 0.0007112 | ||||
Set Approval For... | 16868588 | 520 days ago | IN | 0 ETH | 0.00067946 | ||||
Set Approval For... | 16867640 | 520 days ago | IN | 0 ETH | 0.00066449 | ||||
Set Approval For... | 16867119 | 520 days ago | IN | 0 ETH | 0.00058337 | ||||
Set Approval For... | 16865122 | 521 days ago | IN | 0 ETH | 0.00082512 | ||||
Set Approval For... | 16864745 | 521 days ago | IN | 0 ETH | 0.00070012 | ||||
Set Approval For... | 16864745 | 521 days ago | IN | 0 ETH | 0.00070049 | ||||
Set Approval For... | 16863841 | 521 days ago | IN | 0 ETH | 0.00141844 | ||||
Set Approval For... | 16862576 | 521 days ago | IN | 0 ETH | 0.00100774 | ||||
Set Approval For... | 16861813 | 521 days ago | IN | 0 ETH | 0.00081942 | ||||
Set Approval For... | 16859620 | 521 days ago | IN | 0 ETH | 0.00060884 | ||||
Set Approval For... | 16859565 | 521 days ago | IN | 0 ETH | 0.00066376 | ||||
Set Approval For... | 16859479 | 521 days ago | IN | 0 ETH | 0.00057364 | ||||
Mint | 16859440 | 521 days ago | IN | 0 ETH | 0.00377737 | ||||
Mint | 16698808 | 544 days ago | IN | 0 ETH | 0.00699884 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
BPass
Compiler Version
v0.8.17+commit.8df45f5f
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-02-24 */ pragma solidity ^0.8.4; //SPDX-License-Identifier: UNLICENSED // // ERC721A Contracts v4.2.3 // Creator: Chiru Labs /** * @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); } // // ERC721A Contracts v4.2.3 // Creator: Chiru Labs /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364). struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `curr` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) public payable virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId].value; } /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) public virtual override { _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) public payable virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public payable virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public payable virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. // The duplicated `log4` removes an extra check and reduces stack juggling. // The assembly, together with the surrounding Solidity code, have been // delicately arranged to nudge the compiler into producing optimized opcodes. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) // The `iszero(eq(,))` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. // The compiler will optimize the `iszero` away for performance. for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), but // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 word for the trailing zeros padding, 1 word for the length, // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0. let m := add(mload(0x40), 0xa0) // Update the free memory pointer to allocate. mstore(0x40, m) // Assign the `str` to the end. str := sub(m, 0x20) // Zeroize the slot after the string. mstore(str, 0) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } } // // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); } // // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol) /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); } // // OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol) /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } // // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol) /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } contract Ownable { address payable _owner; event OwnerSet(address indexed previousOwner, address indexed newOwner); function isOwner(address account) public view returns (bool) { return account == _owner; } constructor() { _owner = payable(msg.sender); emit OwnerSet(address(0), msg.sender); } modifier onlyOwner() { require(isOwner(msg.sender), "Only owner"); _; } function changeOwner(address payable _newOwner) public onlyOwner { require(_newOwner != address(0)); emit OwnerSet(_owner, _newOwner); _owner = _newOwner; } function _setOwner(address payable newOwner) internal { address oldOwner = _owner; _owner = newOwner; emit OwnerSet(oldOwner, newOwner); } } contract BPass is ERC721A, Ownable { using SafeERC20 for IERC20; string public baseUri; constructor() ERC721A("Babpc Pass", "BPass") { _setOwner(payable(msg.sender)); // _mint(msg.sender, 10); } function mint(address _to, uint256 count) public onlyOwner { _mint(_to, count); } function setBaseUri(string memory uri )public onlyOwner { baseUri = uri; } function withdraw(address token, uint256 amount) public onlyOwner { if (token == 0x000000000000000000000000000000000000bEEF) { _owner.transfer(amount); } else { IERC20 erc20token = IERC20(token); erc20token.safeTransferFrom(address(this), _owner, amount); } } function _baseURI() internal view override virtual returns (string memory) { return baseUri; } 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))) : '.json'; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"_newOwner","type":"address"}],"name":"changeOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"count","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setBaseUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040518060400160405280600a8152602001694261627063205061737360b01b81525060405180604001604052806005815260200164425061737360d81b8152508160029081620000649190620001a0565b506003620000738282620001a0565b50506000808055600880546001600160a01b0319163390811790915560405190925060008051602062001820833981519152908290a3620000b433620000ba565b6200026c565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082906000805160206200182083398151915290600090a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200012657607f821691505b6020821081036200014757634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200019b57600081815260208120601f850160051c81016020861015620001765750805b601f850160051c820191505b81811015620001975782815560010162000182565b5050505b505050565b81516001600160401b03811115620001bc57620001bc620000fb565b620001d481620001cd845462000111565b846200014d565b602080601f8311600181146200020c5760008415620001f35750858301515b600019600386901b1c1916600185901b17855562000197565b600085815260208120601f198616915b828110156200023d578886015182559484019460019091019084016200021c565b50858210156200025c5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6115a4806200027c6000396000f3fe60806040526004361061011f5760003560e01c806370a08231116100a0578063a6f9dae111610064578063a6f9dae11461030a578063b88d4fde1461032a578063c87b56dd1461033d578063e985e9c51461035d578063f3fef3a3146103a657600080fd5b806370a082311461028057806395d89b41146102a05780639abc8320146102b5578063a0bcfc7f146102ca578063a22cb465146102ea57600080fd5b806323b872dd116100e757806323b872dd146101eb5780632f54bf6e146101fe57806340c10f191461022d57806342842e0e1461024d5780636352211e1461026057600080fd5b806301ffc9a71461012457806306fdde0314610159578063081812fc1461017b578063095ea7b3146101b357806318160ddd146101c8575b600080fd5b34801561013057600080fd5b5061014461013f366004611046565b6103c6565b60405190151581526020015b60405180910390f35b34801561016557600080fd5b5061016e610418565b60405161015091906110b3565b34801561018757600080fd5b5061019b6101963660046110c6565b6104aa565b6040516001600160a01b039091168152602001610150565b6101c66101c13660046110f4565b6104ee565b005b3480156101d457600080fd5b50600154600054035b604051908152602001610150565b6101c66101f9366004611120565b61058e565b34801561020a57600080fd5b50610144610219366004611161565b6008546001600160a01b0391821691161490565b34801561023957600080fd5b506101c66102483660046110f4565b610727565b6101c661025b366004611120565b610768565b34801561026c57600080fd5b5061019b61027b3660046110c6565b610788565b34801561028c57600080fd5b506101dd61029b366004611161565b610793565b3480156102ac57600080fd5b5061016e6107e2565b3480156102c157600080fd5b5061016e6107f1565b3480156102d657600080fd5b506101c66102e536600461120a565b61087f565b3480156102f657600080fd5b506101c6610305366004611261565b6108b5565b34801561031657600080fd5b506101c6610325366004611161565b610921565b6101c661033836600461129a565b6109ba565b34801561034957600080fd5b5061016e6103583660046110c6565b610a04565b34801561036957600080fd5b5061014461037836600461131a565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b3480156103b257600080fd5b506101c66103c13660046110f4565b610a96565b60006301ffc9a760e01b6001600160e01b0319831614806103f757506380ac58cd60e01b6001600160e01b03198316145b806104125750635b5e139f60e01b6001600160e01b03198316145b92915050565b60606002805461042790611348565b80601f016020809104026020016040519081016040528092919081815260200182805461045390611348565b80156104a05780601f10610475576101008083540402835291602001916104a0565b820191906000526020600020905b81548152906001019060200180831161048357829003601f168201915b5050505050905090565b60006104b582610b2a565b6104d2576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006104f982610788565b9050336001600160a01b03821614610532576105158133610378565b610532576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061059982610b51565b9050836001600160a01b0316816001600160a01b0316146105cc5760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b03881690911417610619576105fc8633610378565b61061957604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661064057604051633a954ecd60e21b815260040160405180910390fd5b801561064b57600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b841690036106dd576001840160008181526004602052604081205490036106db5760005481146106db5760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b6008546001600160a01b0316331461075a5760405162461bcd60e51b815260040161075190611382565b60405180910390fd5b6107648282610bb8565b5050565b610783838383604051806020016040528060008152506109ba565b505050565b600061041282610b51565b60006001600160a01b0382166107bc576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b60606003805461042790611348565b600980546107fe90611348565b80601f016020809104026020016040519081016040528092919081815260200182805461082a90611348565b80156108775780601f1061084c57610100808354040283529160200191610877565b820191906000526020600020905b81548152906001019060200180831161085a57829003601f168201915b505050505081565b6008546001600160a01b031633146108a95760405162461bcd60e51b815260040161075190611382565b600961076482826113ec565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6008546001600160a01b0316331461094b5760405162461bcd60e51b815260040161075190611382565b6001600160a01b03811661095e57600080fd5b6008546040516001600160a01b038084169216907f342827c97908e5e2f71151c08502a66d44b6f758e3ac2f1de95f02eb95f0a73590600090a3600880546001600160a01b0319166001600160a01b0392909216919091179055565b6109c584848461058e565b6001600160a01b0383163b156109fe576109e184848484610cb6565b6109fe576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6060610a0f82610b2a565b610a2c57604051630a14c4b560e41b815260040160405180910390fd5b6000610a36610da2565b90508051600003610a645760405180604001604052806005815260200164173539b7b760d91b815250610a8f565b80610a6e84610db1565b604051602001610a7f9291906114ac565b6040516020818303038152906040525b9392505050565b6008546001600160a01b03163314610ac05760405162461bcd60e51b815260040161075190611382565b6001600160a01b03821661beef03610b0c576008546040516001600160a01b039091169082156108fc029083906000818181858888f19350505050158015610783573d6000803e3d6000fd5b6008548290610783906001600160a01b038084169130911685610df5565b6000805482108015610412575050600090815260046020526040902054600160e01b161590565b600081600054811015610b9f5760008181526004602052604081205490600160e01b82169003610b9d575b80600003610a8f575060001901600081815260046020526040902054610b7c565b505b604051636f96cda160e11b815260040160405180910390fd5b6000805490829003610bdd5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b818114610c8c57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101610c54565b5081600003610cad57604051622e076360e81b815260040160405180910390fd5b60005550505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290610ceb9033908990889088906004016114db565b6020604051808303816000875af1925050508015610d26575060408051601f3d908101601f19168201909252610d2391810190611518565b60015b610d84573d808015610d54576040519150601f19603f3d011682016040523d82523d6000602084013e610d59565b606091505b508051600003610d7c576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b60606009805461042790611348565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a900480610dcb5750819003601f19909101908152919050565b604080516001600160a01b038581166024830152848116604483015260648083018590528351808403909101815260849092018352602080830180516001600160e01b03166323b872dd60e01b17905283518085019094528084527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564908401526109fe92879291600091610e8d918516908490610f0a565b8051909150156107835780806020019051810190610eab9190611535565b6107835760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610751565b6060610d9a848460008585600080866001600160a01b03168587604051610f319190611552565b60006040518083038185875af1925050503d8060008114610f6e576040519150601f19603f3d011682016040523d82523d6000602084013e610f73565b606091505b5091509150610f8487838387610f8f565b979650505050505050565b60608315610ffe578251600003610ff7576001600160a01b0385163b610ff75760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610751565b5081610d9a565b610d9a83838151156110135781518083602001fd5b8060405162461bcd60e51b815260040161075191906110b3565b6001600160e01b03198116811461104357600080fd5b50565b60006020828403121561105857600080fd5b8135610a8f8161102d565b60005b8381101561107e578181015183820152602001611066565b50506000910152565b6000815180845261109f816020860160208601611063565b601f01601f19169290920160200192915050565b602081526000610a8f6020830184611087565b6000602082840312156110d857600080fd5b5035919050565b6001600160a01b038116811461104357600080fd5b6000806040838503121561110757600080fd5b8235611112816110df565b946020939093013593505050565b60008060006060848603121561113557600080fd5b8335611140816110df565b92506020840135611150816110df565b929592945050506040919091013590565b60006020828403121561117357600080fd5b8135610a8f816110df565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156111af576111af61117e565b604051601f8501601f19908116603f011681019082821181831017156111d7576111d761117e565b816040528093508581528686860111156111f057600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561121c57600080fd5b813567ffffffffffffffff81111561123357600080fd5b8201601f8101841361124457600080fd5b610d9a84823560208401611194565b801515811461104357600080fd5b6000806040838503121561127457600080fd5b823561127f816110df565b9150602083013561128f81611253565b809150509250929050565b600080600080608085870312156112b057600080fd5b84356112bb816110df565b935060208501356112cb816110df565b925060408501359150606085013567ffffffffffffffff8111156112ee57600080fd5b8501601f810187136112ff57600080fd5b61130e87823560208401611194565b91505092959194509250565b6000806040838503121561132d57600080fd5b8235611338816110df565b9150602083013561128f816110df565b600181811c9082168061135c57607f821691505b60208210810361137c57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252600a908201526927b7363c9037bbb732b960b11b604082015260600190565b601f82111561078357600081815260208120601f850160051c810160208610156113cd5750805b601f850160051c820191505b8181101561071f578281556001016113d9565b815167ffffffffffffffff8111156114065761140661117e565b61141a816114148454611348565b846113a6565b602080601f83116001811461144f57600084156114375750858301515b600019600386901b1c1916600185901b17855561071f565b600085815260208120601f198616915b8281101561147e5788860151825594840194600190910190840161145f565b508582101561149c5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600083516114be818460208801611063565b8351908301906114d2818360208801611063565b01949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061150e90830184611087565b9695505050505050565b60006020828403121561152a57600080fd5b8151610a8f8161102d565b60006020828403121561154757600080fd5b8151610a8f81611253565b60008251611564818460208701611063565b919091019291505056fea2646970667358221220fb291a3526c3de103c6e86fcee851a19c108379ab2ca3e1b85cc884e2333051664736f6c63430008110033342827c97908e5e2f71151c08502a66d44b6f758e3ac2f1de95f02eb95f0a735
Deployed Bytecode
0x60806040526004361061011f5760003560e01c806370a08231116100a0578063a6f9dae111610064578063a6f9dae11461030a578063b88d4fde1461032a578063c87b56dd1461033d578063e985e9c51461035d578063f3fef3a3146103a657600080fd5b806370a082311461028057806395d89b41146102a05780639abc8320146102b5578063a0bcfc7f146102ca578063a22cb465146102ea57600080fd5b806323b872dd116100e757806323b872dd146101eb5780632f54bf6e146101fe57806340c10f191461022d57806342842e0e1461024d5780636352211e1461026057600080fd5b806301ffc9a71461012457806306fdde0314610159578063081812fc1461017b578063095ea7b3146101b357806318160ddd146101c8575b600080fd5b34801561013057600080fd5b5061014461013f366004611046565b6103c6565b60405190151581526020015b60405180910390f35b34801561016557600080fd5b5061016e610418565b60405161015091906110b3565b34801561018757600080fd5b5061019b6101963660046110c6565b6104aa565b6040516001600160a01b039091168152602001610150565b6101c66101c13660046110f4565b6104ee565b005b3480156101d457600080fd5b50600154600054035b604051908152602001610150565b6101c66101f9366004611120565b61058e565b34801561020a57600080fd5b50610144610219366004611161565b6008546001600160a01b0391821691161490565b34801561023957600080fd5b506101c66102483660046110f4565b610727565b6101c661025b366004611120565b610768565b34801561026c57600080fd5b5061019b61027b3660046110c6565b610788565b34801561028c57600080fd5b506101dd61029b366004611161565b610793565b3480156102ac57600080fd5b5061016e6107e2565b3480156102c157600080fd5b5061016e6107f1565b3480156102d657600080fd5b506101c66102e536600461120a565b61087f565b3480156102f657600080fd5b506101c6610305366004611261565b6108b5565b34801561031657600080fd5b506101c6610325366004611161565b610921565b6101c661033836600461129a565b6109ba565b34801561034957600080fd5b5061016e6103583660046110c6565b610a04565b34801561036957600080fd5b5061014461037836600461131a565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b3480156103b257600080fd5b506101c66103c13660046110f4565b610a96565b60006301ffc9a760e01b6001600160e01b0319831614806103f757506380ac58cd60e01b6001600160e01b03198316145b806104125750635b5e139f60e01b6001600160e01b03198316145b92915050565b60606002805461042790611348565b80601f016020809104026020016040519081016040528092919081815260200182805461045390611348565b80156104a05780601f10610475576101008083540402835291602001916104a0565b820191906000526020600020905b81548152906001019060200180831161048357829003601f168201915b5050505050905090565b60006104b582610b2a565b6104d2576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006104f982610788565b9050336001600160a01b03821614610532576105158133610378565b610532576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061059982610b51565b9050836001600160a01b0316816001600160a01b0316146105cc5760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b03881690911417610619576105fc8633610378565b61061957604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661064057604051633a954ecd60e21b815260040160405180910390fd5b801561064b57600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b841690036106dd576001840160008181526004602052604081205490036106db5760005481146106db5760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b6008546001600160a01b0316331461075a5760405162461bcd60e51b815260040161075190611382565b60405180910390fd5b6107648282610bb8565b5050565b610783838383604051806020016040528060008152506109ba565b505050565b600061041282610b51565b60006001600160a01b0382166107bc576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b60606003805461042790611348565b600980546107fe90611348565b80601f016020809104026020016040519081016040528092919081815260200182805461082a90611348565b80156108775780601f1061084c57610100808354040283529160200191610877565b820191906000526020600020905b81548152906001019060200180831161085a57829003601f168201915b505050505081565b6008546001600160a01b031633146108a95760405162461bcd60e51b815260040161075190611382565b600961076482826113ec565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6008546001600160a01b0316331461094b5760405162461bcd60e51b815260040161075190611382565b6001600160a01b03811661095e57600080fd5b6008546040516001600160a01b038084169216907f342827c97908e5e2f71151c08502a66d44b6f758e3ac2f1de95f02eb95f0a73590600090a3600880546001600160a01b0319166001600160a01b0392909216919091179055565b6109c584848461058e565b6001600160a01b0383163b156109fe576109e184848484610cb6565b6109fe576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6060610a0f82610b2a565b610a2c57604051630a14c4b560e41b815260040160405180910390fd5b6000610a36610da2565b90508051600003610a645760405180604001604052806005815260200164173539b7b760d91b815250610a8f565b80610a6e84610db1565b604051602001610a7f9291906114ac565b6040516020818303038152906040525b9392505050565b6008546001600160a01b03163314610ac05760405162461bcd60e51b815260040161075190611382565b6001600160a01b03821661beef03610b0c576008546040516001600160a01b039091169082156108fc029083906000818181858888f19350505050158015610783573d6000803e3d6000fd5b6008548290610783906001600160a01b038084169130911685610df5565b6000805482108015610412575050600090815260046020526040902054600160e01b161590565b600081600054811015610b9f5760008181526004602052604081205490600160e01b82169003610b9d575b80600003610a8f575060001901600081815260046020526040902054610b7c565b505b604051636f96cda160e11b815260040160405180910390fd5b6000805490829003610bdd5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b818114610c8c57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101610c54565b5081600003610cad57604051622e076360e81b815260040160405180910390fd5b60005550505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290610ceb9033908990889088906004016114db565b6020604051808303816000875af1925050508015610d26575060408051601f3d908101601f19168201909252610d2391810190611518565b60015b610d84573d808015610d54576040519150601f19603f3d011682016040523d82523d6000602084013e610d59565b606091505b508051600003610d7c576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b60606009805461042790611348565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a900480610dcb5750819003601f19909101908152919050565b604080516001600160a01b038581166024830152848116604483015260648083018590528351808403909101815260849092018352602080830180516001600160e01b03166323b872dd60e01b17905283518085019094528084527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564908401526109fe92879291600091610e8d918516908490610f0a565b8051909150156107835780806020019051810190610eab9190611535565b6107835760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610751565b6060610d9a848460008585600080866001600160a01b03168587604051610f319190611552565b60006040518083038185875af1925050503d8060008114610f6e576040519150601f19603f3d011682016040523d82523d6000602084013e610f73565b606091505b5091509150610f8487838387610f8f565b979650505050505050565b60608315610ffe578251600003610ff7576001600160a01b0385163b610ff75760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610751565b5081610d9a565b610d9a83838151156110135781518083602001fd5b8060405162461bcd60e51b815260040161075191906110b3565b6001600160e01b03198116811461104357600080fd5b50565b60006020828403121561105857600080fd5b8135610a8f8161102d565b60005b8381101561107e578181015183820152602001611066565b50506000910152565b6000815180845261109f816020860160208601611063565b601f01601f19169290920160200192915050565b602081526000610a8f6020830184611087565b6000602082840312156110d857600080fd5b5035919050565b6001600160a01b038116811461104357600080fd5b6000806040838503121561110757600080fd5b8235611112816110df565b946020939093013593505050565b60008060006060848603121561113557600080fd5b8335611140816110df565b92506020840135611150816110df565b929592945050506040919091013590565b60006020828403121561117357600080fd5b8135610a8f816110df565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156111af576111af61117e565b604051601f8501601f19908116603f011681019082821181831017156111d7576111d761117e565b816040528093508581528686860111156111f057600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561121c57600080fd5b813567ffffffffffffffff81111561123357600080fd5b8201601f8101841361124457600080fd5b610d9a84823560208401611194565b801515811461104357600080fd5b6000806040838503121561127457600080fd5b823561127f816110df565b9150602083013561128f81611253565b809150509250929050565b600080600080608085870312156112b057600080fd5b84356112bb816110df565b935060208501356112cb816110df565b925060408501359150606085013567ffffffffffffffff8111156112ee57600080fd5b8501601f810187136112ff57600080fd5b61130e87823560208401611194565b91505092959194509250565b6000806040838503121561132d57600080fd5b8235611338816110df565b9150602083013561128f816110df565b600181811c9082168061135c57607f821691505b60208210810361137c57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252600a908201526927b7363c9037bbb732b960b11b604082015260600190565b601f82111561078357600081815260208120601f850160051c810160208610156113cd5750805b601f850160051c820191505b8181101561071f578281556001016113d9565b815167ffffffffffffffff8111156114065761140661117e565b61141a816114148454611348565b846113a6565b602080601f83116001811461144f57600084156114375750858301515b600019600386901b1c1916600185901b17855561071f565b600085815260208120601f198616915b8281101561147e5788860151825594840194600190910190840161145f565b508582101561149c5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600083516114be818460208801611063565b8351908301906114d2818360208801611063565b01949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061150e90830184611087565b9695505050505050565b60006020828403121561152a57600080fd5b8151610a8f8161102d565b60006020828403121561154757600080fd5b8151610a8f81611253565b60008251611564818460208701611063565b919091019291505056fea2646970667358221220fb291a3526c3de103c6e86fcee851a19c108379ab2ca3e1b85cc884e2333051664736f6c63430008110033
Deployed Bytecode Sourcemap
70936:1179:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18331:639;;;;;;;;;;-1:-1:-1;18331:639:0;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;18331:639:0;;;;;;;;19233:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;25724:218::-;;;;;;;;;;-1:-1:-1;25724:218:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1697:32:1;;;1679:51;;1667:2;1652:18;25724:218:0;1533:203:1;25157:408:0;;;;;;:::i;:::-;;:::i;:::-;;14984:323;;;;;;;;;;-1:-1:-1;15258:12:0;;15045:7;15242:13;:28;14984:323;;;2343:25:1;;;2331:2;2316:18;14984:323:0;2197:177:1;29363:2825:0;;;;;;:::i;:::-;;:::i;70294:98::-;;;;;;;;;;-1:-1:-1;70294:98:0;;;;;:::i;:::-;70380:6;;-1:-1:-1;;;;;70369:17:0;;;70380:6;;70369:17;;70294:98;71160:89;;;;;;;;;;-1:-1:-1;71160:89:0;;;;;:::i;:::-;;:::i;32284:193::-;;;;;;:::i;:::-;;:::i;20626:152::-;;;;;;;;;;-1:-1:-1;20626:152:0;;;;;:::i;:::-;;:::i;16168:233::-;;;;;;;;;;-1:-1:-1;16168:233:0;;;;;:::i;:::-;;:::i;19409:104::-;;;;;;;;;;;;;:::i;71009:21::-;;;;;;;;;;;;;:::i;71253:82::-;;;;;;;;;;-1:-1:-1;71253:82:0;;;;;:::i;:::-;;:::i;26282:234::-;;;;;;;;;;-1:-1:-1;26282:234:0;;;;;:::i;:::-;;:::i;70593:174::-;;;;;;;;;;-1:-1:-1;70593:174:0;;;;;:::i;:::-;;:::i;33075:407::-;;;;;;:::i;:::-;;:::i;71789:321::-;;;;;;;;;;-1:-1:-1;71789:321:0;;;;;:::i;:::-;;:::i;26673:164::-;;;;;;;;;;-1:-1:-1;26673:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;26794:25:0;;;26770:4;26794:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;26673:164;71340:330;;;;;;;;;;-1:-1:-1;71340:330:0;;;;;:::i;:::-;;:::i;18331:639::-;18416:4;-1:-1:-1;;;;;;;;;18740:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;18817:25:0;;;18740:102;:179;;;-1:-1:-1;;;;;;;;;;18894:25:0;;;18740:179;18720:199;18331:639;-1:-1:-1;;18331:639:0:o;19233:100::-;19287:13;19320:5;19313:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19233:100;:::o;25724:218::-;25800:7;25825:16;25833:7;25825;:16::i;:::-;25820:64;;25850:34;;-1:-1:-1;;;25850:34:0;;;;;;;;;;;25820:64;-1:-1:-1;25904:24:0;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;25904:30:0;;25724:218::o;25157:408::-;25246:13;25262:16;25270:7;25262;:16::i;:::-;25246:32;-1:-1:-1;49490:10:0;-1:-1:-1;;;;;25295:28:0;;;25291:175;;25343:44;25360:5;49490:10;26673:164;:::i;25343:44::-;25338:128;;25415:35;;-1:-1:-1;;;25415:35:0;;;;;;;;;;;25338:128;25478:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;25478:35:0;-1:-1:-1;;;;;25478:35:0;;;;;;;;;25529:28;;25478:24;;25529:28;;;;;;;25235:330;25157:408;;:::o;29363:2825::-;29505:27;29535;29554:7;29535:18;:27::i;:::-;29505:57;;29620:4;-1:-1:-1;;;;;29579:45:0;29595:19;-1:-1:-1;;;;;29579:45:0;;29575:86;;29633:28;;-1:-1:-1;;;29633:28:0;;;;;;;;;;;29575:86;29675:27;28471:24;;;:15;:24;;;;;28699:26;;49490:10;28096:30;;;-1:-1:-1;;;;;27789:28:0;;28074:20;;;28071:56;29861:180;;29954:43;29971:4;49490:10;26673:164;:::i;29954:43::-;29949:92;;30006:35;;-1:-1:-1;;;30006:35:0;;;;;;;;;;;29949:92;-1:-1:-1;;;;;30058:16:0;;30054:52;;30083:23;;-1:-1:-1;;;30083:23:0;;;;;;;;;;;30054:52;30255:15;30252:160;;;30395:1;30374:19;30367:30;30252:160;-1:-1:-1;;;;;30792:24:0;;;;;;;:18;:24;;;;;;30790:26;;-1:-1:-1;;30790:26:0;;;30861:22;;;;;;;;;30859:24;;-1:-1:-1;30859:24:0;;;24015:11;23990:23;23986:41;23973:63;-1:-1:-1;;;23973:63:0;31154:26;;;;:17;:26;;;;;:175;;;;-1:-1:-1;;;31449:47:0;;:52;;31445:627;;31554:1;31544:11;;31522:19;31677:30;;;:17;:30;;;;;;:35;;31673:384;;31815:13;;31800:11;:28;31796:242;;31962:30;;;;:17;:30;;;;;:52;;;31796:242;31503:569;31445:627;32119:7;32115:2;-1:-1:-1;;;;;32100:27:0;32109:4;-1:-1:-1;;;;;32100:27:0;;;;;;;;;;;32138:42;29494:2694;;;29363:2825;;;:::o;71160:89::-;70380:6;;-1:-1:-1;;;;;70380:6:0;70547:10;70369:17;70531:42;;;;-1:-1:-1;;;70531:42:0;;;;;;;:::i;:::-;;;;;;;;;71226:17:::1;71232:3;71237:5;71226;:17::i;:::-;71160:89:::0;;:::o;32284:193::-;32430:39;32447:4;32453:2;32457:7;32430:39;;;;;;;;;;;;:16;:39::i;:::-;32284:193;;;:::o;20626:152::-;20698:7;20741:27;20760:7;20741:18;:27::i;16168:233::-;16240:7;-1:-1:-1;;;;;16264:19:0;;16260:60;;16292:28;;-1:-1:-1;;;16292:28:0;;;;;;;;;;;16260:60;-1:-1:-1;;;;;;16338:25:0;;;;;:18;:25;;;;;;10327:13;16338:55;;16168:233::o;19409:104::-;19465:13;19498:7;19491:14;;;;;:::i;71009:21::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;71253:82::-;70380:6;;-1:-1:-1;;;;;70380:6:0;70547:10;70369:17;70531:42;;;;-1:-1:-1;;;70531:42:0;;;;;;;:::i;:::-;71316:7:::1;:13;71326:3:::0;71316:7;:13:::1;:::i;26282:234::-:0;49490:10;26377:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;26377:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;26377:60:0;;;;;;;;;;26453:55;;540:41:1;;;26377:49:0;;49490:10;26453:55;;513:18:1;26453:55:0;;;;;;;26282:234;;:::o;70593:174::-;70380:6;;-1:-1:-1;;;;;70380:6:0;70547:10;70369:17;70531:42;;;;-1:-1:-1;;;70531:42:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;70673:23:0;::::1;70665:32;;;::::0;::::1;;70718:6;::::0;70709:27:::1;::::0;-1:-1:-1;;;;;70709:27:0;;::::1;::::0;70718:6:::1;::::0;70709:27:::1;::::0;70718:6:::1;::::0;70709:27:::1;70743:6;:18:::0;;-1:-1:-1;;;;;;70743:18:0::1;-1:-1:-1::0;;;;;70743:18:0;;;::::1;::::0;;;::::1;::::0;;70593:174::o;33075:407::-;33250:31;33263:4;33269:2;33273:7;33250:12;:31::i;:::-;-1:-1:-1;;;;;33296:14:0;;;:19;33292:183;;33335:56;33366:4;33372:2;33376:7;33385:5;33335:30;:56::i;:::-;33330:145;;33419:40;;-1:-1:-1;;;33419:40:0;;;;;;;;;;;33330:145;33075:407;;;;:::o;71789:321::-;71862:13;71893:16;71901:7;71893;:16::i;:::-;71888:59;;71918:29;;-1:-1:-1;;;71918:29:0;;;;;;;;;;;71888:59;71960:21;71984:10;:8;:10::i;:::-;71960:34;;72018:7;72012:21;72037:1;72012:26;:92;;;;;;;;;;;;;;;-1:-1:-1;;;72012:92:0;;;;;;72065:7;72074:18;72084:7;72074:9;:18::i;:::-;72048:45;;;;;;;;;:::i;:::-;;;;;;;;;;;;;72012:92;72005:99;71789:321;-1:-1:-1;;;71789:321:0:o;71340:330::-;70380:6;;-1:-1:-1;;;;;70380:6:0;70547:10;70369:17;70531:42;;;;-1:-1:-1;;;70531:42:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;71421:51:0;::::1;71430:42;71421:51:::0;71417:246:::1;;71489:6;::::0;:23:::1;::::0;-1:-1:-1;;;;;71489:6:0;;::::1;::::0;:23;::::1;;;::::0;71505:6;;71489::::1;:23:::0;:6;:23;71505:6;71489;:23;::::1;;;;;;;;;;;;;::::0;::::1;;;;71417:246;71636:6;::::0;71572:5;;71593:58:::1;::::0;-1:-1:-1;;;;;71593:27:0;;::::1;::::0;71629:4:::1;::::0;71636:6:::1;71644::::0;71593:27:::1;:58::i;27095:282::-:0;27160:4;27250:13;;27240:7;:23;27197:153;;;;-1:-1:-1;;27301:26:0;;;;:17;:26;;;;;;-1:-1:-1;;;27301:44:0;:49;;27095:282::o;21781:1275::-;21848:7;21883;21985:13;;21978:4;:20;21974:1015;;;22023:14;22040:23;;;:17;:23;;;;;;;-1:-1:-1;;;22129:24:0;;:29;;22125:845;;22794:113;22801:6;22811:1;22801:11;22794:113;;-1:-1:-1;;;22872:6:0;22854:25;;;;:17;:25;;;;;;22794:113;;22125:845;22000:989;21974:1015;23017:31;;-1:-1:-1;;;23017:31:0;;;;;;;;;;;36744:2966;36817:20;36840:13;;;36868;;;36864:44;;36890:18;;-1:-1:-1;;;36890:18:0;;;;;;;;;;;36864:44;-1:-1:-1;;;;;37396:22:0;;;;;;:18;:22;;;;10465:2;37396:22;;;:71;;37434:32;37422:45;;37396:71;;;37710:31;;;:17;:31;;;;;-1:-1:-1;24446:15:0;;24420:24;24416:46;24015:11;23990:23;23986:41;23983:52;23973:63;;37710:173;;37945:23;;;;37710:31;;37396:22;;38710:25;37396:22;;38563:335;39224:1;39210:12;39206:20;39164:346;39265:3;39256:7;39253:16;39164:346;;39483:7;39473:8;39470:1;39443:25;39440:1;39437;39432:59;39318:1;39305:15;39164:346;;;39168:77;39543:8;39555:1;39543:13;39539:45;;39565:19;;-1:-1:-1;;;39565:19:0;;;;;;;;;;;39539:45;39601:13;:19;-1:-1:-1;32284:193:0;;;:::o;35566:716::-;35750:88;;-1:-1:-1;;;35750:88:0;;35729:4;;-1:-1:-1;;;;;35750:45:0;;;;;:88;;49490:10;;35817:4;;35823:7;;35832:5;;35750:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;35750:88:0;;;;;;;;-1:-1:-1;;35750:88:0;;;;;;;;;;;;:::i;:::-;;;35746:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36033:6;:13;36050:1;36033:18;36029:235;;36079:40;;-1:-1:-1;;;36079:40:0;;;;;;;;;;;36029:235;36222:6;36216:13;36207:6;36203:2;36199:15;36192:38;35746:529;-1:-1:-1;;;;;;35909:64:0;-1:-1:-1;;;35909:64:0;;-1:-1:-1;35746:529:0;35566:716;;;;;;:::o;71677:108::-;71738:13;71771:7;71764:14;;;;;:::i;49610:1745::-;49675:17;50109:4;50102;50096:11;50092:22;50201:1;50195:4;50188:15;50276:4;50273:1;50269:12;50262:19;;;50358:1;50353:3;50346:14;50462:3;50701:5;50683:428;50749:1;50744:3;50740:11;50733:18;;50920:2;50914:4;50910:13;50906:2;50902:22;50897:3;50889:36;51014:2;51004:13;;51071:25;50683:428;51071:25;-1:-1:-1;51141:13:0;;;-1:-1:-1;;51256:14:0;;;51318:19;;;51256:14;49610:1745;-1:-1:-1;49610:1745:0:o;66594:248::-;66765:68;;;-1:-1:-1;;;;;10715:15:1;;;66765:68:0;;;10697:34:1;10767:15;;;10747:18;;;10740:43;10799:18;;;;10792:34;;;66765:68:0;;;;;;;;;;10632:18:1;;;;66765:68:0;;;;;;;;-1:-1:-1;;;;;66765:68:0;-1:-1:-1;;;66765:68:0;;;69892:69;;;;;;;;;;;;;;;;66738:96;;66758:5;;66765:68;-1:-1:-1;;69892:69:0;;:27;;;66765:68;;69892:27;:69::i;:::-;69976:17;;69866:95;;-1:-1:-1;69976:21:0;69972:179;;70073:10;70062:30;;;;;;;;;;;;:::i;:::-;70054:85;;;;-1:-1:-1;;;70054:85:0;;11289:2:1;70054:85:0;;;11271:21:1;11328:2;11308:18;;;11301:30;11367:34;11347:18;;;11340:62;-1:-1:-1;;;11418:18:1;;;11411:40;11468:19;;70054:85:0;11087:406:1;60323:229:0;60460:12;60492:52;60514:6;60522:4;60528:1;60531:12;60460;61731;61745:23;61772:6;-1:-1:-1;;;;;61772:11:0;61791:5;61798:4;61772:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;61730:73;;;;61821:69;61848:6;61856:7;61865:10;61877:12;61821:26;:69::i;:::-;61814:76;61443:455;-1:-1:-1;;;;;;;61443:455:0:o;64016:644::-;64201:12;64230:7;64226:427;;;64258:10;:17;64279:1;64258:22;64254:290;;-1:-1:-1;;;;;57861:19:0;;;64468:60;;;;-1:-1:-1;;;64468:60:0;;12399:2:1;64468:60:0;;;12381:21:1;12438:2;12418:18;;;12411:30;12477:31;12457:18;;;12450:59;12526:18;;64468:60:0;12197:353:1;64468:60:0;-1:-1:-1;64565:10:0;64558:17;;64226:427;64608:33;64616:10;64628:12;65363:17;;:21;65359:388;;65595:10;65589:17;65652:15;65639:10;65635:2;65631:19;65624:44;65359:388;65722:12;65715:20;;-1:-1:-1;;;65715:20:0;;;;;;;;:::i;14:131:1:-;-1:-1:-1;;;;;;88:32:1;;78:43;;68:71;;135:1;132;125:12;68:71;14:131;:::o;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:131::-;-1:-1:-1;;;;;1816:31:1;;1806:42;;1796:70;;1862:1;1859;1852:12;1877:315;1945:6;1953;2006:2;1994:9;1985:7;1981:23;1977:32;1974:52;;;2022:1;2019;2012:12;1974:52;2061:9;2048:23;2080:31;2105:5;2080:31;:::i;:::-;2130:5;2182:2;2167:18;;;;2154:32;;-1:-1:-1;;;1877:315:1:o;2379:456::-;2456:6;2464;2472;2525:2;2513:9;2504:7;2500:23;2496:32;2493:52;;;2541:1;2538;2531:12;2493:52;2580:9;2567:23;2599:31;2624:5;2599:31;:::i;:::-;2649:5;-1:-1:-1;2706:2:1;2691:18;;2678:32;2719:33;2678:32;2719:33;:::i;:::-;2379:456;;2771:7;;-1:-1:-1;;;2825:2:1;2810:18;;;;2797:32;;2379:456::o;2840:247::-;2899:6;2952:2;2940:9;2931:7;2927:23;2923:32;2920:52;;;2968:1;2965;2958:12;2920:52;3007:9;2994:23;3026:31;3051:5;3026:31;:::i;3092:127::-;3153:10;3148:3;3144:20;3141:1;3134:31;3184:4;3181:1;3174:15;3208:4;3205:1;3198:15;3224:632;3289:5;3319:18;3360:2;3352:6;3349:14;3346:40;;;3366:18;;:::i;:::-;3441:2;3435:9;3409:2;3495:15;;-1:-1:-1;;3491:24:1;;;3517:2;3487:33;3483:42;3471:55;;;3541:18;;;3561:22;;;3538:46;3535:72;;;3587:18;;:::i;:::-;3627:10;3623:2;3616:22;3656:6;3647:15;;3686:6;3678;3671:22;3726:3;3717:6;3712:3;3708:16;3705:25;3702:45;;;3743:1;3740;3733:12;3702:45;3793:6;3788:3;3781:4;3773:6;3769:17;3756:44;3848:1;3841:4;3832:6;3824;3820:19;3816:30;3809:41;;;;3224:632;;;;;:::o;3861:451::-;3930:6;3983:2;3971:9;3962:7;3958:23;3954:32;3951:52;;;3999:1;3996;3989:12;3951:52;4039:9;4026:23;4072:18;4064:6;4061:30;4058:50;;;4104:1;4101;4094:12;4058:50;4127:22;;4180:4;4172:13;;4168:27;-1:-1:-1;4158:55:1;;4209:1;4206;4199:12;4158:55;4232:74;4298:7;4293:2;4280:16;4275:2;4271;4267:11;4232:74;:::i;4317:118::-;4403:5;4396:13;4389:21;4382:5;4379:32;4369:60;;4425:1;4422;4415:12;4440:382;4505:6;4513;4566:2;4554:9;4545:7;4541:23;4537:32;4534:52;;;4582:1;4579;4572:12;4534:52;4621:9;4608:23;4640:31;4665:5;4640:31;:::i;:::-;4690:5;-1:-1:-1;4747:2:1;4732:18;;4719:32;4760:30;4719:32;4760:30;:::i;:::-;4809:7;4799:17;;;4440:382;;;;;:::o;5087:795::-;5182:6;5190;5198;5206;5259:3;5247:9;5238:7;5234:23;5230:33;5227:53;;;5276:1;5273;5266:12;5227:53;5315:9;5302:23;5334:31;5359:5;5334:31;:::i;:::-;5384:5;-1:-1:-1;5441:2:1;5426:18;;5413:32;5454:33;5413:32;5454:33;:::i;:::-;5506:7;-1:-1:-1;5560:2:1;5545:18;;5532:32;;-1:-1:-1;5615:2:1;5600:18;;5587:32;5642:18;5631:30;;5628:50;;;5674:1;5671;5664:12;5628:50;5697:22;;5750:4;5742:13;;5738:27;-1:-1:-1;5728:55:1;;5779:1;5776;5769:12;5728:55;5802:74;5868:7;5863:2;5850:16;5845:2;5841;5837:11;5802:74;:::i;:::-;5792:84;;;5087:795;;;;;;;:::o;5887:388::-;5955:6;5963;6016:2;6004:9;5995:7;5991:23;5987:32;5984:52;;;6032:1;6029;6022:12;5984:52;6071:9;6058:23;6090:31;6115:5;6090:31;:::i;:::-;6140:5;-1:-1:-1;6197:2:1;6182:18;;6169:32;6210:33;6169:32;6210:33;:::i;6280:380::-;6359:1;6355:12;;;;6402;;;6423:61;;6477:4;6469:6;6465:17;6455:27;;6423:61;6530:2;6522:6;6519:14;6499:18;6496:38;6493:161;;6576:10;6571:3;6567:20;6564:1;6557:31;6611:4;6608:1;6601:15;6639:4;6636:1;6629:15;6493:161;;6280:380;;;:::o;6665:334::-;6867:2;6849:21;;;6906:2;6886:18;;;6879:30;-1:-1:-1;;;6940:2:1;6925:18;;6918:40;6990:2;6975:18;;6665:334::o;7130:545::-;7232:2;7227:3;7224:11;7221:448;;;7268:1;7293:5;7289:2;7282:17;7338:4;7334:2;7324:19;7408:2;7396:10;7392:19;7389:1;7385:27;7379:4;7375:38;7444:4;7432:10;7429:20;7426:47;;;-1:-1:-1;7467:4:1;7426:47;7522:2;7517:3;7513:12;7510:1;7506:20;7500:4;7496:31;7486:41;;7577:82;7595:2;7588:5;7585:13;7577:82;;;7640:17;;;7621:1;7610:13;7577:82;;7851:1352;7977:3;7971:10;8004:18;7996:6;7993:30;7990:56;;;8026:18;;:::i;:::-;8055:97;8145:6;8105:38;8137:4;8131:11;8105:38;:::i;:::-;8099:4;8055:97;:::i;:::-;8207:4;;8271:2;8260:14;;8288:1;8283:663;;;;8990:1;9007:6;9004:89;;;-1:-1:-1;9059:19:1;;;9053:26;9004:89;-1:-1:-1;;7808:1:1;7804:11;;;7800:24;7796:29;7786:40;7832:1;7828:11;;;7783:57;9106:81;;8253:944;;8283:663;7077:1;7070:14;;;7114:4;7101:18;;-1:-1:-1;;8319:20:1;;;8437:236;8451:7;8448:1;8445:14;8437:236;;;8540:19;;;8534:26;8519:42;;8632:27;;;;8600:1;8588:14;;;;8467:19;;8437:236;;;8441:3;8701:6;8692:7;8689:19;8686:201;;;8762:19;;;8756:26;-1:-1:-1;;8845:1:1;8841:14;;;8857:3;8837:24;8833:37;8829:42;8814:58;8799:74;;8686:201;-1:-1:-1;;;;;8933:1:1;8917:14;;;8913:22;8900:36;;-1:-1:-1;7851:1352:1:o;9208:496::-;9387:3;9425:6;9419:13;9441:66;9500:6;9495:3;9488:4;9480:6;9476:17;9441:66;:::i;:::-;9570:13;;9529:16;;;;9592:70;9570:13;9529:16;9639:4;9627:17;;9592:70;:::i;:::-;9678:20;;9208:496;-1:-1:-1;;;;9208:496:1:o;9709:489::-;-1:-1:-1;;;;;9978:15:1;;;9960:34;;10030:15;;10025:2;10010:18;;10003:43;10077:2;10062:18;;10055:34;;;10125:3;10120:2;10105:18;;10098:31;;;9903:4;;10146:46;;10172:19;;10164:6;10146:46;:::i;:::-;10138:54;9709:489;-1:-1:-1;;;;;;9709:489:1:o;10203:249::-;10272:6;10325:2;10313:9;10304:7;10300:23;10296:32;10293:52;;;10341:1;10338;10331:12;10293:52;10373:9;10367:16;10392:30;10416:5;10392:30;:::i;10837:245::-;10904:6;10957:2;10945:9;10936:7;10932:23;10928:32;10925:52;;;10973:1;10970;10963:12;10925:52;11005:9;10999:16;11024:28;11046:5;11024:28;:::i;11905:287::-;12034:3;12072:6;12066:13;12088:66;12147:6;12142:3;12135:4;12127:6;12123:17;12088:66;:::i;:::-;12170:16;;;;;11905:287;-1:-1:-1;;11905:287:1:o
Swarm Source
ipfs://fb291a3526c3de103c6e86fcee851a19c108379ab2ca3e1b85cc884e23330516
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.