More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 21,711 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Approval For... | 18265182 | 15 hrs ago | IN | 0 ETH | 0.00000002 | ||||
Set Approval For... | 18220204 | 40 hrs ago | IN | 0 ETH | 0 | ||||
Set Approval For... | 18131193 | 3 days ago | IN | 0 ETH | 0.00000007 | ||||
Set Approval For... | 18046923 | 5 days ago | IN | 0 ETH | 0 | ||||
Set Approval For... | 17950047 | 7 days ago | IN | 0 ETH | 0.0000001 | ||||
Set Approval For... | 17926363 | 8 days ago | IN | 0 ETH | 0.00000005 | ||||
Set Approval For... | 17922649 | 8 days ago | IN | 0 ETH | 0.00000005 | ||||
Set Approval For... | 17822183 | 10 days ago | IN | 0 ETH | 0.00000002 | ||||
Set Approval For... | 17796986 | 11 days ago | IN | 0 ETH | 0.00000004 | ||||
Set Approval For... | 17771876 | 12 days ago | IN | 0 ETH | 0.00000002 | ||||
Set Approval For... | 17730080 | 13 days ago | IN | 0 ETH | 0.00000005 | ||||
Set Approval For... | 17661857 | 14 days ago | IN | 0 ETH | 0.00000004 | ||||
Set Approval For... | 17654949 | 14 days ago | IN | 0 ETH | 0 | ||||
Set Approval For... | 17606648 | 15 days ago | IN | 0 ETH | 0 | ||||
Set Approval For... | 17440588 | 19 days ago | IN | 0 ETH | 0.00000003 | ||||
Set Approval For... | 17368049 | 21 days ago | IN | 0 ETH | 0 | ||||
Set Approval For... | 17355273 | 21 days ago | IN | 0 ETH | 0.00000003 | ||||
Set Approval For... | 17309068 | 22 days ago | IN | 0 ETH | 0 | ||||
Set Approval For... | 17223014 | 24 days ago | IN | 0 ETH | 0 | ||||
Safe Transfer Fr... | 17217388 | 24 days ago | IN | 0 ETH | 0 | ||||
Set Approval For... | 17188554 | 25 days ago | IN | 0 ETH | 0.00000002 | ||||
Set Approval For... | 17178120 | 25 days ago | IN | 0 ETH | 0.00000005 | ||||
Set Approval For... | 17178079 | 25 days ago | IN | 0 ETH | 0.00000005 | ||||
Set Approval For... | 17178004 | 25 days ago | IN | 0 ETH | 0 | ||||
Set Approval For... | 17177918 | 25 days ago | IN | 0 ETH | 0.00000005 |
Latest 1 internal transaction
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
9483310 | 203 days ago | 0.00006919 ETH |
Loading...
Loading
Contract Name:
BlastApeYachtClub
Compiler Version
v0.8.20+commit.a1b79de6
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity >=0.8.20; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "erc721a/contracts/ERC721A.sol"; import { IBlast } from "./interface/IBlast.sol"; contract BlastApeYachtClub is ERC721A, Ownable(msg.sender), ReentrancyGuard { string public _twitter = ""; string public _discord = ""; IBlast public constant BLAST = IBlast(0x4300000000000000000000000000000000000002); bool public isOpen = false; uint256 public price = 0; string public baseURI; mapping (address => uint256) public wallet; uint256 public maxPerTransaction = 20; uint256 public maxPerWallet = 40; uint256 public maxSupply = 10000; constructor() ERC721A("Blast Yacht Ape Club", "BYAC"){ BLAST.configureAutomaticYield(); BLAST.configureClaimableGas(); } function _startTokenId() internal view virtual override returns (uint256) { return 1; } function mint(uint256 qty) external payable { require(isOpen , "Minting are closed !"); require(qty <= maxPerTransaction, "Limit Transaction !"); require(wallet[msg.sender] <= maxPerTransaction, "Limit Wallet !"); require(totalSupply() + qty <= maxSupply,"Soldout !"); require(msg.value >= qty * price,"Insufficient Funds !"); wallet[msg.sender] += qty; _safeMint(msg.sender, qty); } function _baseURI() internal view virtual override returns (string memory) { return baseURI; } function airdrop(address[] memory listedAirdrop ,uint256[] memory qty) external onlyOwner { for (uint256 i = 0; i < listedAirdrop.length; i++) { _safeMint(listedAirdrop[i], qty[i]); } } function ownerMint(uint256 qty) external onlyOwner { _safeMint(msg.sender, qty); } function setSocial(string memory _newTwitter, string memory _newDiscord) external onlyOwner { _twitter = _newTwitter; _discord = _newDiscord; } function setOpen() external onlyOwner { isOpen = !isOpen ; } function setBaseURI(string memory baseURI_) external onlyOwner { baseURI = baseURI_; } function setPrice(uint256 price_) external onlyOwner { price = price_; } function setmaxPerTransaction(uint256 maxPerTransaction_) external onlyOwner { maxPerTransaction = maxPerTransaction_; } function setmaxPerWallet(uint256 maxPerWallet_) external onlyOwner { maxPerWallet = maxPerWallet_; } function _claimAllGas() payable external onlyOwner { BLAST.claimAllGas(address(this), msg.sender); } function _claimMaxGas() payable external onlyOwner { BLAST.claimMaxGas(address(this), msg.sender); } function _claimAllYield(address recipient) payable external onlyOwner { BLAST.claimAllYield(address(this), recipient); } function readClaimableYield() external view virtual returns (uint256) { return BLAST.readClaimableYield(address(this)); } function readYieldConfiguration() external view virtual returns (uint8) { return BLAST.readYieldConfiguration(address(this)); } function withdraw() public onlyOwner { payable(msg.sender).transfer(payable(address(this)).balance); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.20; enum YieldMode { AUTOMATIC, VOID, CLAIMABLE } enum GasMode { VOID, CLAIMABLE } interface IBlast { // configure function configureContract(address contractAddress, YieldMode _yield, GasMode gasMode, address governor) external; function configure(YieldMode _yield, GasMode gasMode, address governor) external; // base configuration options function configureClaimableYield() external; function configureClaimableYieldOnBehalf(address contractAddress) external; function configureAutomaticYield() external; function configureAutomaticYieldOnBehalf(address contractAddress) external; function configureVoidYield() external; function configureVoidYieldOnBehalf(address contractAddress) external; function configureClaimableGas() external; function configureClaimableGasOnBehalf(address contractAddress) external; function configureVoidGas() external; function configureVoidGasOnBehalf(address contractAddress) external; function configureGovernor(address _governor) external; function configureGovernorOnBehalf(address _newGovernor, address contractAddress) external; // claim yield function claimYield(address contractAddress, address recipientOfYield, uint256 amount) external returns (uint256); function claimAllYield(address contractAddress, address recipientOfYield) external returns (uint256); // claim gas function claimAllGas(address contractAddress, address recipientOfGas) external returns (uint256); function claimGasAtMinClaimRate(address contractAddress, address recipientOfGas, uint256 minClaimRateBips) external returns (uint256); function claimMaxGas(address contractAddress, address recipientOfGas) external returns (uint256); function claimGas(address contractAddress, address recipientOfGas, uint256 gasToClaim, uint256 gasSecondsToConsume) external returns (uint256); // read functions function readClaimableYield(address contractAddress) external view returns (uint256); function readYieldConfiguration(address contractAddress) external view returns (uint8); function readGasParams(address contractAddress) external view returns (uint256 etherSeconds, uint256 etherBalance, uint256 lastUpdated, GasMode); }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @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) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } /** * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a * `nonReentrant` function in the call stack. */ function _reentrancyGuardEntered() internal view returns (bool) { return _status == _ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; import {Context} from "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * The initial owner is set to the address provided by the deployer. This can * later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.20; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The tree and the proofs can be generated using our * https://github.com/OpenZeppelin/merkle-tree[JavaScript library]. * You will find a quickstart guide in the readme. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the Merkle tree could be reinterpreted as a leaf value. * OpenZeppelin's JavaScript library generates Merkle trees that are safe * against this attack out of the box. */ library MerkleProof { /** *@dev The multiproof provided is not valid. */ error MerkleProofInvalidMultiproof(); /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify(bytes32[] memory proof, bytes32 root, bytes32 leaf) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} */ function verifyCalldata(bytes32[] calldata proof, bytes32 root, bytes32 leaf) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a Merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details. */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details. */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false * respectively. * * CAUTION: Not all Merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer). */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the Merkle tree. uint256 leavesLen = leaves.length; uint256 proofLen = proof.length; uint256 totalHashes = proofFlags.length; // Check proof validity. if (leavesLen + proofLen != totalHashes + 1) { revert MerkleProofInvalidMultiproof(); } // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value from the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]) : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { if (proofPos != proofLen) { revert MerkleProofInvalidMultiproof(); } unchecked { return hashes[totalHashes - 1]; } } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof}. * * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details. */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the Merkle tree. uint256 leavesLen = leaves.length; uint256 proofLen = proof.length; uint256 totalHashes = proofFlags.length; // Check proof validity. if (leavesLen + proofLen != totalHashes + 1) { revert MerkleProofInvalidMultiproof(); } // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value from the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]) : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { if (proofPos != proofLen) { revert MerkleProofInvalidMultiproof(); } unchecked { return hashes[totalHashes - 1]; } } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Sorts the pair (a, b) and hashes the result. */ function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } /** * @dev Implementation of keccak256(abi.encode(a, b)) that doesn't allocate or expand memory. */ function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables * (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, * checking first that contract recipients are aware of the ERC721 protocol * to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move * this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external payable; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Transfers `tokenId` from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} * whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external payable; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } }, "remappings": [] }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"BLAST","outputs":[{"internalType":"contract IBlast","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_claimAllGas","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"}],"name":"_claimAllYield","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"_claimMaxGas","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"_discord","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_twitter","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"listedAirdrop","type":"address[]"},{"internalType":"uint256[]","name":"qty","type":"uint256[]"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"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":"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":[],"name":"isOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerTransaction","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"qty","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"qty","type":"uint256"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"readClaimableYield","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"readYieldConfiguration","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"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":"baseURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setOpen","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price_","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newTwitter","type":"string"},{"internalType":"string","name":"_newDiscord","type":"string"}],"name":"setSocial","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxPerTransaction_","type":"uint256"}],"name":"setmaxPerTransaction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxPerWallet_","type":"uint256"}],"name":"setmaxPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"wallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a06040525f6080908152600a90620000199082620002df565b5060408051602081019091525f8152600b90620000379082620002df565b50600c805460ff191690555f600d556014601055602860115561271060125534801562000062575f80fd5b50336040518060400160405280601481526020017f426c6173742059616368742041706520436c7562000000000000000000000000815250604051806040016040528060048152602001634259414360e01b8152508160029081620000c89190620002df565b506003620000d78282620002df565b5060015f5550506001600160a01b0381166200010c57604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6200011781620001ee565b5060016009819055507343000000000000000000000000000000000000026001600160a01b0316637114177a6040518163ffffffff1660e01b81526004015f604051808303815f87803b1580156200016d575f80fd5b505af115801562000180573d5f803e3d5ffd5b505050507343000000000000000000000000000000000000026001600160a01b0316634e606c476040518163ffffffff1660e01b81526004015f604051808303815f87803b158015620001d1575f80fd5b505af1158015620001e4573d5f803e3d5ffd5b50505050620003a7565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b634e487b7160e01b5f52604160045260245ffd5b600181811c908216806200026857607f821691505b6020821081036200028757634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115620002da575f81815260208120601f850160051c81016020861015620002b55750805b601f850160051c820191505b81811015620002d657828155600101620002c1565b5050505b505050565b81516001600160401b03811115620002fb57620002fb6200023f565b62000313816200030c845462000253565b846200028d565b602080601f83116001811462000349575f8415620003315750858301515b5f19600386901b1c1916600185901b178555620002d6565b5f85815260208120601f198616915b82811015620003795788860151825594840194600190910190840162000358565b50858210156200039757878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b611cb080620003b55f395ff3fe608060405260043610610249575f3560e01c80638da5cb5b11610134578063c85bbbef116100b3578063e81bf17411610078578063e81bf174146105ff578063e985e9c514610607578063f19e75d414610626578063f2fde38b14610645578063fa6ab58414610664578063fb7c122514610683575f80fd5b8063c85bbbef1461059b578063c87b56dd146105a3578063d39dd684146105c2578063d5abeb01146105d6578063daa6b00d146105eb575f80fd5b8063a0712d68116100f9578063a0712d6814610517578063a22cb4651461052a578063a56cc43914610549578063b496970514610574578063b88d4fde14610588575f80fd5b80638da5cb5b1461049857806391b7f5ed146104b557806395d89b41146104d457806397d75776146104e8578063a035b1fe14610502575f80fd5b8063453c2310116101cb5780636352211e116101905780636352211e146103ff578063672434821461041e5780636c0360eb1461043d57806370a0823114610451578063712b7b1414610470578063715018a614610484575f80fd5b8063453c23101461037e57806347535d7b146103935780634b980d67146103ac57806355f804b3146103c157806360d3e1ae146103e0575f80fd5b8063108bfbfa11610211578063108bfbfa1461030157806318160ddd1461032057806323b872dd146103445780633ccfd60b1461035757806342842e0e1461036b575f80fd5b806301ffc9a71461024d5780630287db3f1461028157806306fdde0314610296578063081812fc146102b7578063095ea7b3146102ee575b5f80fd5b348015610258575f80fd5b5061026c61026736600461158f565b6106a9565b60405190151581526020015b60405180910390f35b61029461028f3660046115c5565b6106fa565b005b3480156102a1575f80fd5b506102aa61077a565b604051610278919061162b565b3480156102c2575f80fd5b506102d66102d136600461163d565b61080a565b6040516001600160a01b039091168152602001610278565b6102946102fc366004611654565b61084c565b34801561030c575f80fd5b5061029461031b36600461163d565b6108ea565b34801561032b575f80fd5b506001545f54035f19015b604051908152602001610278565b61029461035236600461167c565b6108f7565b348015610362575f80fd5b50610294610a87565b61029461037936600461167c565b610abc565b348015610389575f80fd5b5061033660115481565b34801561039e575f80fd5b50600c5461026c9060ff1681565b3480156103b7575f80fd5b5061033660105481565b3480156103cc575f80fd5b506102946103db36600461176d565b610adb565b3480156103eb575f80fd5b506102946103fa36600461163d565b610aef565b34801561040a575f80fd5b506102d661041936600461163d565b610afc565b348015610429575f80fd5b5061029461043836600461182a565b610b06565b348015610448575f80fd5b506102aa610b67565b34801561045c575f80fd5b5061033661046b3660046115c5565b610bf3565b34801561047b575f80fd5b50610294610c40565b34801561048f575f80fd5b50610294610c5c565b3480156104a3575f80fd5b506008546001600160a01b03166102d6565b3480156104c0575f80fd5b506102946104cf36600461163d565b610c6f565b3480156104df575f80fd5b506102aa610c7c565b3480156104f3575f80fd5b506102d66002604360981b0181565b34801561050d575f80fd5b50610336600d5481565b61029461052536600461163d565b610c8b565b348015610535575f80fd5b506102946105443660046118e4565b610e46565b348015610554575f80fd5b506103366105633660046115c5565b600f6020525f908152604090205481565b34801561057f575f80fd5b506102aa610eb1565b61029461059636600461191d565b610ebe565b610294610f08565b3480156105ae575f80fd5b506102aa6105bd36600461163d565b610f7c565b3480156105cd575f80fd5b50610336610ffd565b3480156105e1575f80fd5b5061033660125481565b3480156105f6575f80fd5b506102aa611068565b610294611075565b348015610612575f80fd5b5061026c610621366004611994565b6110ad565b348015610631575f80fd5b5061029461064036600461163d565b6110da565b348015610650575f80fd5b5061029461065f3660046115c5565b6110ec565b34801561066f575f80fd5b5061029461067e3660046119c5565b611126565b34801561068e575f80fd5b50610697611147565b60405160ff9091168152602001610278565b5f6301ffc9a760e01b6001600160e01b0319831614806106d957506380ac58cd60e01b6001600160e01b03198316145b806106f45750635b5e139f60e01b6001600160e01b03198316145b92915050565b6107026111ad565b60405163430021db60e11b81523060048201526001600160a01b03821660248201526002604360981b019063860043b6906044016020604051808303815f875af1158015610752573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107769190611a1b565b5050565b60606002805461078990611a32565b80601f01602080910402602001604051908101604052809291908181526020018280546107b590611a32565b80156108005780601f106107d757610100808354040283529160200191610800565b820191905f5260205f20905b8154815290600101906020018083116107e357829003601f168201915b5050505050905090565b5f610814826111da565b610831576040516333d1c03960e21b815260040160405180910390fd5b505f908152600660205260409020546001600160a01b031690565b5f61085682610afc565b9050336001600160a01b0382161461088f5761087281336110ad565b61088f576040516367d9dca160e11b815260040160405180910390fd5b5f8281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6108f26111ad565b601055565b5f6109018261120c565b9050836001600160a01b0316816001600160a01b0316146109345760405162a1148160e81b815260040160405180910390fd5b5f8281526006602052604090208054338082146001600160a01b038816909114176109805761096386336110ad565b61098057604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0385166109a757604051633a954ecd60e21b815260040160405180910390fd5b80156109b1575f82555b6001600160a01b038681165f9081526005602052604080822080545f19019055918716808252919020805460010190554260a01b17600160e11b175f85815260046020526040812091909155600160e11b84169003610a3d57600184015f818152600460205260408120549003610a3b575f548114610a3b575f8181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b610a8f6111ad565b6040513390303180156108fc02915f818181858888f19350505050158015610ab9573d5f803e3d5ffd5b50565b610ad683838360405180602001604052805f815250610ebe565b505050565b610ae36111ad565b600e6107768282611aaf565b610af76111ad565b601155565b5f6106f48261120c565b610b0e6111ad565b5f5b8251811015610ad657610b55838281518110610b2e57610b2e611b6b565b6020026020010151838381518110610b4857610b48611b6b565b6020026020010151611275565b80610b5f81611b93565b915050610b10565b600e8054610b7490611a32565b80601f0160208091040260200160405190810160405280929190818152602001828054610ba090611a32565b8015610beb5780601f10610bc257610100808354040283529160200191610beb565b820191905f5260205f20905b815481529060010190602001808311610bce57829003601f168201915b505050505081565b5f6001600160a01b038216610c1b576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03165f9081526005602052604090205467ffffffffffffffff1690565b610c486111ad565b600c805460ff19811660ff90911615179055565b610c646111ad565b610c6d5f61128e565b565b610c776111ad565b600d55565b60606003805461078990611a32565b600c5460ff16610cd95760405162461bcd60e51b81526020600482015260146024820152734d696e74696e672061726520636c6f736564202160601b60448201526064015b60405180910390fd5b601054811115610d215760405162461bcd60e51b81526020600482015260136024820152724c696d6974205472616e73616374696f6e202160681b6044820152606401610cd0565b601054335f908152600f60205260409020541115610d725760405162461bcd60e51b815260206004820152600e60248201526d4c696d69742057616c6c6574202160901b6044820152606401610cd0565b6012546001545f54839190035f1901610d8b9190611bab565b1115610dc55760405162461bcd60e51b8152602060048201526009602482015268536f6c646f7574202160b81b6044820152606401610cd0565b600d54610dd29082611bbe565b341015610e185760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742046756e6473202160601b6044820152606401610cd0565b335f908152600f602052604081208054839290610e36908490611bab565b90915550610ab990503382611275565b335f8181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600b8054610b7490611a32565b610ec98484846108f7565b6001600160a01b0383163b15610f0257610ee5848484846112df565b610f02576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b610f106111ad565b60405163662aa11d60e01b81523060048201523360248201526002604360981b019063662aa11d906044015b6020604051808303815f875af1158015610f58573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ab99190611a1b565b6060610f87826111da565b610fa457604051630a14c4b560e41b815260040160405180910390fd5b5f610fad6113c7565b905080515f03610fcb5760405180602001604052805f815250610ff6565b80610fd5846113d6565b604051602001610fe6929190611bd5565b6040516020818303038152906040525b9392505050565b604051631d864f1d60e31b81523060048201525f906002604360981b019063ec3278e890602401602060405180830381865afa15801561103f573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110639190611a1b565b905090565b600a8054610b7490611a32565b61107d6111ad565b604051634aa7d2f760e11b81523060048201523360248201526002604360981b019063954fa5ee90604401610f3c565b6001600160a01b039182165f90815260076020908152604080832093909416825291909152205460ff1690565b6110e26111ad565b610ab93382611275565b6110f46111ad565b6001600160a01b03811661111d57604051631e4fbdf760e01b81525f6004820152602401610cd0565b610ab98161128e565b61112e6111ad565b600a61113a8382611aaf565b50600b610ad68282611aaf565b60405163fd8c4b9d60e01b81523060048201525f906002604360981b019063fd8c4b9d90602401602060405180830381865afa158015611189573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110639190611c03565b6008546001600160a01b03163314610c6d5760405163118cdaa760e01b8152336004820152602401610cd0565b5f816001111580156111ec57505f5482105b80156106f45750505f90815260046020526040902054600160e01b161590565b5f818060011161125c575f5481101561125c575f8181526004602052604081205490600160e01b8216900361125a575b805f03610ff657505f19015f8181526004602052604090205461123c565b505b604051636f96cda160e11b815260040160405180910390fd5b610776828260405180602001604052805f815250611419565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b604051630a85bd0160e11b81525f906001600160a01b0385169063150b7a0290611313903390899088908890600401611c23565b6020604051808303815f875af192505050801561134d575060408051601f3d908101601f1916820190925261134a91810190611c5f565b60015b6113a9573d80801561137a576040519150601f19603f3d011682016040523d82523d5f602084013e61137f565b606091505b5080515f036113a1576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060600e805461078990611a32565b606060a06040510180604052602081039150505f815280825b600183039250600a81066030018353600a9004806113ef5750819003601f19909101908152919050565b6114238383611482565b6001600160a01b0383163b15610ad6575f548281035b61144b5f8683806001019450866112df565b611468576040516368d2bf6b60e11b815260040160405180910390fd5b81811061143957815f541461147b575f80fd5b5050505050565b5f8054908290036114a65760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b0383165f8181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b8181146115525780835f7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a460010161151c565b50815f0361157257604051622e076360e81b815260040160405180910390fd5b5f5550505050565b6001600160e01b031981168114610ab9575f80fd5b5f6020828403121561159f575f80fd5b8135610ff68161157a565b80356001600160a01b03811681146115c0575f80fd5b919050565b5f602082840312156115d5575f80fd5b610ff6826115aa565b5f5b838110156115f85781810151838201526020016115e0565b50505f910152565b5f81518084526116178160208601602086016115de565b601f01601f19169290920160200192915050565b602081525f610ff66020830184611600565b5f6020828403121561164d575f80fd5b5035919050565b5f8060408385031215611665575f80fd5b61166e836115aa565b946020939093013593505050565b5f805f6060848603121561168e575f80fd5b611697846115aa565b92506116a5602085016115aa565b9150604084013590509250925092565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff811182821017156116f2576116f26116b5565b604052919050565b5f67ffffffffffffffff831115611713576117136116b5565b611726601f8401601f19166020016116c9565b9050828152838383011115611739575f80fd5b828260208301375f602084830101529392505050565b5f82601f83011261175e575f80fd5b610ff6838335602085016116fa565b5f6020828403121561177d575f80fd5b813567ffffffffffffffff811115611793575f80fd5b6113bf8482850161174f565b5f67ffffffffffffffff8211156117b8576117b86116b5565b5060051b60200190565b5f82601f8301126117d1575f80fd5b813560206117e66117e18361179f565b6116c9565b82815260059290921b84018101918181019086841115611804575f80fd5b8286015b8481101561181f5780358352918301918301611808565b509695505050505050565b5f806040838503121561183b575f80fd5b823567ffffffffffffffff80821115611852575f80fd5b818501915085601f830112611865575f80fd5b813560206118756117e18361179f565b82815260059290921b84018101918181019089841115611893575f80fd5b948201945b838610156118b8576118a9866115aa565b82529482019490820190611898565b965050860135925050808211156118cd575f80fd5b506118da858286016117c2565b9150509250929050565b5f80604083850312156118f5575f80fd5b6118fe836115aa565b915060208301358015158114611912575f80fd5b809150509250929050565b5f805f8060808587031215611930575f80fd5b611939856115aa565b9350611947602086016115aa565b925060408501359150606085013567ffffffffffffffff811115611969575f80fd5b8501601f81018713611979575f80fd5b611988878235602084016116fa565b91505092959194509250565b5f80604083850312156119a5575f80fd5b6119ae836115aa565b91506119bc602084016115aa565b90509250929050565b5f80604083850312156119d6575f80fd5b823567ffffffffffffffff808211156119ed575f80fd5b6119f98683870161174f565b93506020850135915080821115611a0e575f80fd5b506118da8582860161174f565b5f60208284031215611a2b575f80fd5b5051919050565b600181811c90821680611a4657607f821691505b602082108103611a6457634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115610ad6575f81815260208120601f850160051c81016020861015611a905750805b601f850160051c820191505b81811015610a7f57828155600101611a9c565b815167ffffffffffffffff811115611ac957611ac96116b5565b611add81611ad78454611a32565b84611a6a565b602080601f831160018114611b10575f8415611af95750858301515b5f19600386901b1c1916600185901b178555610a7f565b5f85815260208120601f198616915b82811015611b3e57888601518255948401946001909101908401611b1f565b5085821015611b5b57878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b5f60018201611ba457611ba4611b7f565b5060010190565b808201808211156106f4576106f4611b7f565b80820281158282048414176106f4576106f4611b7f565b5f8351611be68184602088016115de565b835190830190611bfa8183602088016115de565b01949350505050565b5f60208284031215611c13575f80fd5b815160ff81168114610ff6575f80fd5b6001600160a01b03858116825284166020820152604081018390526080606082018190525f90611c5590830184611600565b9695505050505050565b5f60208284031215611c6f575f80fd5b8151610ff68161157a56fea2646970667358221220d51224c32b4fcab052024242a9f3c4ff04fb460ed1102d93504962420580e39964736f6c63430008140033
Deployed Bytecode
0x608060405260043610610249575f3560e01c80638da5cb5b11610134578063c85bbbef116100b3578063e81bf17411610078578063e81bf174146105ff578063e985e9c514610607578063f19e75d414610626578063f2fde38b14610645578063fa6ab58414610664578063fb7c122514610683575f80fd5b8063c85bbbef1461059b578063c87b56dd146105a3578063d39dd684146105c2578063d5abeb01146105d6578063daa6b00d146105eb575f80fd5b8063a0712d68116100f9578063a0712d6814610517578063a22cb4651461052a578063a56cc43914610549578063b496970514610574578063b88d4fde14610588575f80fd5b80638da5cb5b1461049857806391b7f5ed146104b557806395d89b41146104d457806397d75776146104e8578063a035b1fe14610502575f80fd5b8063453c2310116101cb5780636352211e116101905780636352211e146103ff578063672434821461041e5780636c0360eb1461043d57806370a0823114610451578063712b7b1414610470578063715018a614610484575f80fd5b8063453c23101461037e57806347535d7b146103935780634b980d67146103ac57806355f804b3146103c157806360d3e1ae146103e0575f80fd5b8063108bfbfa11610211578063108bfbfa1461030157806318160ddd1461032057806323b872dd146103445780633ccfd60b1461035757806342842e0e1461036b575f80fd5b806301ffc9a71461024d5780630287db3f1461028157806306fdde0314610296578063081812fc146102b7578063095ea7b3146102ee575b5f80fd5b348015610258575f80fd5b5061026c61026736600461158f565b6106a9565b60405190151581526020015b60405180910390f35b61029461028f3660046115c5565b6106fa565b005b3480156102a1575f80fd5b506102aa61077a565b604051610278919061162b565b3480156102c2575f80fd5b506102d66102d136600461163d565b61080a565b6040516001600160a01b039091168152602001610278565b6102946102fc366004611654565b61084c565b34801561030c575f80fd5b5061029461031b36600461163d565b6108ea565b34801561032b575f80fd5b506001545f54035f19015b604051908152602001610278565b61029461035236600461167c565b6108f7565b348015610362575f80fd5b50610294610a87565b61029461037936600461167c565b610abc565b348015610389575f80fd5b5061033660115481565b34801561039e575f80fd5b50600c5461026c9060ff1681565b3480156103b7575f80fd5b5061033660105481565b3480156103cc575f80fd5b506102946103db36600461176d565b610adb565b3480156103eb575f80fd5b506102946103fa36600461163d565b610aef565b34801561040a575f80fd5b506102d661041936600461163d565b610afc565b348015610429575f80fd5b5061029461043836600461182a565b610b06565b348015610448575f80fd5b506102aa610b67565b34801561045c575f80fd5b5061033661046b3660046115c5565b610bf3565b34801561047b575f80fd5b50610294610c40565b34801561048f575f80fd5b50610294610c5c565b3480156104a3575f80fd5b506008546001600160a01b03166102d6565b3480156104c0575f80fd5b506102946104cf36600461163d565b610c6f565b3480156104df575f80fd5b506102aa610c7c565b3480156104f3575f80fd5b506102d66002604360981b0181565b34801561050d575f80fd5b50610336600d5481565b61029461052536600461163d565b610c8b565b348015610535575f80fd5b506102946105443660046118e4565b610e46565b348015610554575f80fd5b506103366105633660046115c5565b600f6020525f908152604090205481565b34801561057f575f80fd5b506102aa610eb1565b61029461059636600461191d565b610ebe565b610294610f08565b3480156105ae575f80fd5b506102aa6105bd36600461163d565b610f7c565b3480156105cd575f80fd5b50610336610ffd565b3480156105e1575f80fd5b5061033660125481565b3480156105f6575f80fd5b506102aa611068565b610294611075565b348015610612575f80fd5b5061026c610621366004611994565b6110ad565b348015610631575f80fd5b5061029461064036600461163d565b6110da565b348015610650575f80fd5b5061029461065f3660046115c5565b6110ec565b34801561066f575f80fd5b5061029461067e3660046119c5565b611126565b34801561068e575f80fd5b50610697611147565b60405160ff9091168152602001610278565b5f6301ffc9a760e01b6001600160e01b0319831614806106d957506380ac58cd60e01b6001600160e01b03198316145b806106f45750635b5e139f60e01b6001600160e01b03198316145b92915050565b6107026111ad565b60405163430021db60e11b81523060048201526001600160a01b03821660248201526002604360981b019063860043b6906044016020604051808303815f875af1158015610752573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107769190611a1b565b5050565b60606002805461078990611a32565b80601f01602080910402602001604051908101604052809291908181526020018280546107b590611a32565b80156108005780601f106107d757610100808354040283529160200191610800565b820191905f5260205f20905b8154815290600101906020018083116107e357829003601f168201915b5050505050905090565b5f610814826111da565b610831576040516333d1c03960e21b815260040160405180910390fd5b505f908152600660205260409020546001600160a01b031690565b5f61085682610afc565b9050336001600160a01b0382161461088f5761087281336110ad565b61088f576040516367d9dca160e11b815260040160405180910390fd5b5f8281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6108f26111ad565b601055565b5f6109018261120c565b9050836001600160a01b0316816001600160a01b0316146109345760405162a1148160e81b815260040160405180910390fd5b5f8281526006602052604090208054338082146001600160a01b038816909114176109805761096386336110ad565b61098057604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0385166109a757604051633a954ecd60e21b815260040160405180910390fd5b80156109b1575f82555b6001600160a01b038681165f9081526005602052604080822080545f19019055918716808252919020805460010190554260a01b17600160e11b175f85815260046020526040812091909155600160e11b84169003610a3d57600184015f818152600460205260408120549003610a3b575f548114610a3b575f8181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b610a8f6111ad565b6040513390303180156108fc02915f818181858888f19350505050158015610ab9573d5f803e3d5ffd5b50565b610ad683838360405180602001604052805f815250610ebe565b505050565b610ae36111ad565b600e6107768282611aaf565b610af76111ad565b601155565b5f6106f48261120c565b610b0e6111ad565b5f5b8251811015610ad657610b55838281518110610b2e57610b2e611b6b565b6020026020010151838381518110610b4857610b48611b6b565b6020026020010151611275565b80610b5f81611b93565b915050610b10565b600e8054610b7490611a32565b80601f0160208091040260200160405190810160405280929190818152602001828054610ba090611a32565b8015610beb5780601f10610bc257610100808354040283529160200191610beb565b820191905f5260205f20905b815481529060010190602001808311610bce57829003601f168201915b505050505081565b5f6001600160a01b038216610c1b576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03165f9081526005602052604090205467ffffffffffffffff1690565b610c486111ad565b600c805460ff19811660ff90911615179055565b610c646111ad565b610c6d5f61128e565b565b610c776111ad565b600d55565b60606003805461078990611a32565b600c5460ff16610cd95760405162461bcd60e51b81526020600482015260146024820152734d696e74696e672061726520636c6f736564202160601b60448201526064015b60405180910390fd5b601054811115610d215760405162461bcd60e51b81526020600482015260136024820152724c696d6974205472616e73616374696f6e202160681b6044820152606401610cd0565b601054335f908152600f60205260409020541115610d725760405162461bcd60e51b815260206004820152600e60248201526d4c696d69742057616c6c6574202160901b6044820152606401610cd0565b6012546001545f54839190035f1901610d8b9190611bab565b1115610dc55760405162461bcd60e51b8152602060048201526009602482015268536f6c646f7574202160b81b6044820152606401610cd0565b600d54610dd29082611bbe565b341015610e185760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742046756e6473202160601b6044820152606401610cd0565b335f908152600f602052604081208054839290610e36908490611bab565b90915550610ab990503382611275565b335f8181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600b8054610b7490611a32565b610ec98484846108f7565b6001600160a01b0383163b15610f0257610ee5848484846112df565b610f02576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b610f106111ad565b60405163662aa11d60e01b81523060048201523360248201526002604360981b019063662aa11d906044015b6020604051808303815f875af1158015610f58573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ab99190611a1b565b6060610f87826111da565b610fa457604051630a14c4b560e41b815260040160405180910390fd5b5f610fad6113c7565b905080515f03610fcb5760405180602001604052805f815250610ff6565b80610fd5846113d6565b604051602001610fe6929190611bd5565b6040516020818303038152906040525b9392505050565b604051631d864f1d60e31b81523060048201525f906002604360981b019063ec3278e890602401602060405180830381865afa15801561103f573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110639190611a1b565b905090565b600a8054610b7490611a32565b61107d6111ad565b604051634aa7d2f760e11b81523060048201523360248201526002604360981b019063954fa5ee90604401610f3c565b6001600160a01b039182165f90815260076020908152604080832093909416825291909152205460ff1690565b6110e26111ad565b610ab93382611275565b6110f46111ad565b6001600160a01b03811661111d57604051631e4fbdf760e01b81525f6004820152602401610cd0565b610ab98161128e565b61112e6111ad565b600a61113a8382611aaf565b50600b610ad68282611aaf565b60405163fd8c4b9d60e01b81523060048201525f906002604360981b019063fd8c4b9d90602401602060405180830381865afa158015611189573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110639190611c03565b6008546001600160a01b03163314610c6d5760405163118cdaa760e01b8152336004820152602401610cd0565b5f816001111580156111ec57505f5482105b80156106f45750505f90815260046020526040902054600160e01b161590565b5f818060011161125c575f5481101561125c575f8181526004602052604081205490600160e01b8216900361125a575b805f03610ff657505f19015f8181526004602052604090205461123c565b505b604051636f96cda160e11b815260040160405180910390fd5b610776828260405180602001604052805f815250611419565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b604051630a85bd0160e11b81525f906001600160a01b0385169063150b7a0290611313903390899088908890600401611c23565b6020604051808303815f875af192505050801561134d575060408051601f3d908101601f1916820190925261134a91810190611c5f565b60015b6113a9573d80801561137a576040519150601f19603f3d011682016040523d82523d5f602084013e61137f565b606091505b5080515f036113a1576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060600e805461078990611a32565b606060a06040510180604052602081039150505f815280825b600183039250600a81066030018353600a9004806113ef5750819003601f19909101908152919050565b6114238383611482565b6001600160a01b0383163b15610ad6575f548281035b61144b5f8683806001019450866112df565b611468576040516368d2bf6b60e11b815260040160405180910390fd5b81811061143957815f541461147b575f80fd5b5050505050565b5f8054908290036114a65760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b0383165f8181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b8181146115525780835f7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a460010161151c565b50815f0361157257604051622e076360e81b815260040160405180910390fd5b5f5550505050565b6001600160e01b031981168114610ab9575f80fd5b5f6020828403121561159f575f80fd5b8135610ff68161157a565b80356001600160a01b03811681146115c0575f80fd5b919050565b5f602082840312156115d5575f80fd5b610ff6826115aa565b5f5b838110156115f85781810151838201526020016115e0565b50505f910152565b5f81518084526116178160208601602086016115de565b601f01601f19169290920160200192915050565b602081525f610ff66020830184611600565b5f6020828403121561164d575f80fd5b5035919050565b5f8060408385031215611665575f80fd5b61166e836115aa565b946020939093013593505050565b5f805f6060848603121561168e575f80fd5b611697846115aa565b92506116a5602085016115aa565b9150604084013590509250925092565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff811182821017156116f2576116f26116b5565b604052919050565b5f67ffffffffffffffff831115611713576117136116b5565b611726601f8401601f19166020016116c9565b9050828152838383011115611739575f80fd5b828260208301375f602084830101529392505050565b5f82601f83011261175e575f80fd5b610ff6838335602085016116fa565b5f6020828403121561177d575f80fd5b813567ffffffffffffffff811115611793575f80fd5b6113bf8482850161174f565b5f67ffffffffffffffff8211156117b8576117b86116b5565b5060051b60200190565b5f82601f8301126117d1575f80fd5b813560206117e66117e18361179f565b6116c9565b82815260059290921b84018101918181019086841115611804575f80fd5b8286015b8481101561181f5780358352918301918301611808565b509695505050505050565b5f806040838503121561183b575f80fd5b823567ffffffffffffffff80821115611852575f80fd5b818501915085601f830112611865575f80fd5b813560206118756117e18361179f565b82815260059290921b84018101918181019089841115611893575f80fd5b948201945b838610156118b8576118a9866115aa565b82529482019490820190611898565b965050860135925050808211156118cd575f80fd5b506118da858286016117c2565b9150509250929050565b5f80604083850312156118f5575f80fd5b6118fe836115aa565b915060208301358015158114611912575f80fd5b809150509250929050565b5f805f8060808587031215611930575f80fd5b611939856115aa565b9350611947602086016115aa565b925060408501359150606085013567ffffffffffffffff811115611969575f80fd5b8501601f81018713611979575f80fd5b611988878235602084016116fa565b91505092959194509250565b5f80604083850312156119a5575f80fd5b6119ae836115aa565b91506119bc602084016115aa565b90509250929050565b5f80604083850312156119d6575f80fd5b823567ffffffffffffffff808211156119ed575f80fd5b6119f98683870161174f565b93506020850135915080821115611a0e575f80fd5b506118da8582860161174f565b5f60208284031215611a2b575f80fd5b5051919050565b600181811c90821680611a4657607f821691505b602082108103611a6457634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115610ad6575f81815260208120601f850160051c81016020861015611a905750805b601f850160051c820191505b81811015610a7f57828155600101611a9c565b815167ffffffffffffffff811115611ac957611ac96116b5565b611add81611ad78454611a32565b84611a6a565b602080601f831160018114611b10575f8415611af95750858301515b5f19600386901b1c1916600185901b178555610a7f565b5f85815260208120601f198616915b82811015611b3e57888601518255948401946001909101908401611b1f565b5085821015611b5b57878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b5f60018201611ba457611ba4611b7f565b5060010190565b808201808211156106f4576106f4611b7f565b80820281158282048414176106f4576106f4611b7f565b5f8351611be68184602088016115de565b835190830190611bfa8183602088016115de565b01949350505050565b5f60208284031215611c13575f80fd5b815160ff81168114610ff6575f80fd5b6001600160a01b03858116825284166020820152604081018390526080606082018190525f90611c5590830184611600565b9695505050505050565b5f60208284031215611c6f575f80fd5b8151610ff68161157a56fea2646970667358221220d51224c32b4fcab052024242a9f3c4ff04fb460ed1102d93504962420580e39964736f6c63430008140033
Deployed Bytecode Sourcemap
349:3209:4:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9155:630:6;;;;;;;;;;-1:-1:-1;9155:630:6;;;;;:::i;:::-;;:::i;:::-;;;565:14:8;;558:22;540:41;;528:2;513:18;9155:630:6;;;;;;;;3005:134:4;;;;;;:::i;:::-;;:::i;:::-;;10039:98:6;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;16360:214::-;;;;;;;;;;-1:-1:-1;16360:214:6;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;2066:32:8;;;2048:51;;2036:2;2021:18;16360:214:6;1902:203:8;15812:398:6;;;;;;:::i;:::-;;:::i;2497:134:4:-;;;;;;;;;;-1:-1:-1;2497:134:4;;;;;:::i;:::-;;:::i;5894:317:6:-;;;;;;;;;;-1:-1:-1;1100:1:4;6164:12:6;5955:7;6148:13;:28;-1:-1:-1;;6148:46:6;5894:317;;;2515:25:8;;;2503:2;2488:18;5894:317:6;2369:177:8;19903:2764:6;;;;;;:::i;:::-;;:::i;3439:116:4:-;;;;;;;;;;;;;:::i;22758:187:6:-;;;;;;:::i;:::-;;:::i;777:32:4:-;;;;;;;;;;;;;;;;588:26;;;;;;;;;;-1:-1:-1;588:26:4;;;;;;;;731:37;;;;;;;;;;;;;;;;2295:100;;;;;;;;;;-1:-1:-1;2295:100:4;;;;;:::i;:::-;;:::i;2639:114::-;;;;;;;;;;-1:-1:-1;2639:114:4;;;;;:::i;:::-;;:::i;11391:150:6:-;;;;;;;;;;-1:-1:-1;11391:150:6;;;;;:::i;:::-;;:::i;1697:220:4:-;;;;;;;;;;-1:-1:-1;1697:220:4;;;;;:::i;:::-;;:::i;652:21::-;;;;;;;;;;;;;:::i;7045:230:6:-;;;;;;;;;;-1:-1:-1;7045:230:6;;;;;:::i;:::-;;:::i;2208:75:4:-;;;;;;;;;;;;;:::i;2293:101:0:-;;;;;;;;;;;;;:::i;1638:85::-;;;;;;;;;;-1:-1:-1;1710:6:0;;-1:-1:-1;;;;;1710:6:0;1638:85;;2403:86:4;;;;;;;;;;-1:-1:-1;2403:86:4;;;;;:::i;:::-;;:::i;10208:102:6:-;;;;;;;;;;;;;:::i;500:81:4:-;;;;;;;;;;;;-1:-1:-1;;;;;500:81:4;;621:24;;;;;;;;;;;;;;;;1117:456;;;;;;:::i;:::-;;:::i;16901:231:6:-;;;;;;;;;;-1:-1:-1;16901:231:6;;;;;:::i;:::-;;:::i;682:42:4:-;;;;;;;;;;-1:-1:-1;682:42:4;;;;;:::i;:::-;;;;;;;;;;;;;;466:27;;;;;;;;;;;;;:::i;23526:396:6:-;;;;;;:::i;:::-;;:::i;2883:114:4:-;;;:::i;10411:313:6:-;;;;;;;;;;-1:-1:-1;10411:313:6;;;;;:::i;:::-;;:::i;3147:135:4:-;;;;;;;;;;;;;:::i;818:32::-;;;;;;;;;;;;;;;;432:27;;;;;;;;;;;;;:::i;2761:114::-;;;:::i;17282:162:6:-;;;;;;;;;;-1:-1:-1;17282:162:6;;;;;:::i;:::-;;:::i;1925:101:4:-;;;;;;;;;;-1:-1:-1;1925:101:4;;;;;:::i;:::-;;:::i;2543:215:0:-;;;;;;;;;;-1:-1:-1;2543:215:0;;;;;:::i;:::-;;:::i;2034:166:4:-;;;;;;;;;;-1:-1:-1;2034:166:4;;;;;:::i;:::-;;:::i;3290:141::-;;;;;;;;;;;;;:::i;:::-;;;8500:4:8;8488:17;;;8470:36;;8458:2;8443:18;3290:141:4;8328:184:8;9155:630:6;9240:4;-1:-1:-1;;;;;;;;;9558:25:6;;;;:101;;-1:-1:-1;;;;;;;;;;9634:25:6;;;9558:101;:177;;;-1:-1:-1;;;;;;;;;;9710:25:6;;;9558:177;9539:196;9155:630;-1:-1:-1;;9155:630:6:o;3005:134:4:-;1531:13:0;:11;:13::i;:::-;3086:45:4::1;::::0;-1:-1:-1;;;3086:45:4;;3114:4:::1;3086:45;::::0;::::1;8729:34:8::0;-1:-1:-1;;;;;8799:15:8;;8779:18;;;8772:43;-1:-1:-1;;;;;538:42:4;3086:19:::1;::::0;8664:18:8;;3086:45:4::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;3005:134:::0;:::o;10039:98:6:-;10093:13;10125:5;10118:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10039:98;:::o;16360:214::-;16436:7;16460:16;16468:7;16460;:16::i;:::-;16455:64;;16485:34;;-1:-1:-1;;;16485:34:6;;;;;;;;;;;16455:64;-1:-1:-1;16537:24:6;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;16537:30:6;;16360:214::o;15812:398::-;15900:13;15916:16;15924:7;15916;:16::i;:::-;15900:32;-1:-1:-1;39523:10:6;-1:-1:-1;;;;;15947:28:6;;;15943:172;;15994:44;16011:5;39523:10;17282:162;:::i;15994:44::-;15989:126;;16065:35;;-1:-1:-1;;;16065:35:6;;;;;;;;;;;15989:126;16125:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;16125:35:6;-1:-1:-1;;;;;16125:35:6;;;;;;;;;16175:28;;16125:24;;16175:28;;;;;;;15890:320;15812:398;;:::o;2497:134:4:-;1531:13:0;:11;:13::i;:::-;2585:17:4::1;:38:::0;2497:134::o;19903:2764:6:-;20040:27;20070;20089:7;20070:18;:27::i;:::-;20040:57;;20153:4;-1:-1:-1;;;;;20112:45:6;20128:19;-1:-1:-1;;;;;20112:45:6;;20108:86;;20166:28;;-1:-1:-1;;;20166:28:6;;;;;;;;;;;20108:86;20206:27;19036:24;;;:15;:24;;;;;19260:26;;39523:10;18673:30;;;-1:-1:-1;;;;;18370:28:6;;18651:20;;;18648:56;20389:179;;20481:43;20498:4;39523:10;17282:162;:::i;20481:43::-;20476:92;;20533:35;;-1:-1:-1;;;20533:35:6;;;;;;;;;;;20476:92;-1:-1:-1;;;;;20583:16:6;;20579:52;;20608:23;;-1:-1:-1;;;20608:23:6;;;;;;;;;;;20579:52;20774:15;20771:157;;;20912:1;20891:19;20884:30;20771:157;-1:-1:-1;;;;;21300:24:6;;;;;;;:18;:24;;;;;;21298:26;;-1:-1:-1;;21298:26:6;;;21368:22;;;;;;;;;21366:24;;-1:-1:-1;21366:24:6;;;14703:11;14678:23;14674:41;14661:63;-1:-1:-1;;;14661:63:6;21654:26;;;;:17;:26;;;;;:172;;;;-1:-1:-1;;;21943:47:6;;:52;;21939:617;;22047:1;22037:11;;22015:19;22168:30;;;:17;:30;;;;;;:35;;22164:378;;22304:13;;22289:11;:28;22285:239;;22449:30;;;;:17;:30;;;;;:52;;;22285:239;21997:559;21939:617;22600:7;22596:2;-1:-1:-1;;;;;22581:27:6;22590:4;-1:-1:-1;;;;;22581:27:6;;;;;;;;;;;22618:42;20030:2637;;;19903:2764;;;:::o;3439:116:4:-;1531:13:0;:11;:13::i;:::-;3487:60:4::1;::::0;3495:10:::1;::::0;3532:4:::1;3516:30;3487:60:::0;::::1;;;::::0;::::1;::::0;;;3516:30;3495:10;3487:60;::::1;;;;;;;;;;;;;::::0;::::1;;;;;;3439:116::o:0;22758:187:6:-;22899:39;22916:4;22922:2;22926:7;22899:39;;;;;;;;;;;;:16;:39::i;:::-;22758:187;;;:::o;2295:100:4:-;1531:13:0;:11;:13::i;:::-;2369:7:4::1;:18;2379:8:::0;2369:7;:18:::1;:::i;2639:114::-:0;1531:13:0;:11;:13::i;:::-;2717:12:4::1;:28:::0;2639:114::o;11391:150:6:-;11463:7;11505:27;11524:7;11505:18;:27::i;1697:220:4:-;1531:13:0;:11;:13::i;:::-;1803:9:4::1;1798:112;1822:13;:20;1818:1;:24;1798:112;;;1863:35;1873:13;1887:1;1873:16;;;;;;;;:::i;:::-;;;;;;;1891:3;1895:1;1891:6;;;;;;;;:::i;:::-;;;;;;;1863:9;:35::i;:::-;1844:3:::0;::::1;::::0;::::1;:::i;:::-;;;;1798:112;;652:21:::0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;7045:230:6:-;7117:7;-1:-1:-1;;;;;7140:19:6;;7136:60;;7168:28;;-1:-1:-1;;;7168:28:6;;;;;;;;;;;7136:60;-1:-1:-1;;;;;;7213:25:6;;;;;:18;:25;;;;;;1360:13;7213:55;;7045:230::o;2208:75:4:-;1531:13:0;:11;:13::i;:::-;2268:6:4::1;::::0;;-1:-1:-1;;2257:17:4;::::1;2268:6;::::0;;::::1;2267:7;2257:17;::::0;;2208:75::o;2293:101:0:-;1531:13;:11;:13::i;:::-;2357:30:::1;2384:1;2357:18;:30::i;:::-;2293:101::o:0;2403:86:4:-;1531:13:0;:11;:13::i;:::-;2467:5:4::1;:14:::0;2403:86::o;10208:102:6:-;10264:13;10296:7;10289:14;;;;;:::i;1117:456:4:-;1185:6;;;;1177:40;;;;-1:-1:-1;;;1177:40:4;;12210:2:8;1177:40:4;;;12192:21:8;12249:2;12229:18;;;12222:30;-1:-1:-1;;;12268:18:8;;;12261:50;12328:18;;1177:40:4;;;;;;;;;1243:17;;1236:3;:24;;1228:56;;;;-1:-1:-1;;;1228:56:4;;12559:2:8;1228:56:4;;;12541:21:8;12598:2;12578:18;;;12571:30;-1:-1:-1;;;12617:18:8;;;12610:49;12676:18;;1228:56:4;12357:343:8;1228:56:4;1325:17;;1310:10;1303:18;;;;:6;:18;;;;;;:39;;1295:66;;;;-1:-1:-1;;;1295:66:4;;12907:2:8;1295:66:4;;;12889:21:8;12946:2;12926:18;;;12919:30;-1:-1:-1;;;12965:18:8;;;12958:44;13019:18;;1295:66:4;12705:338:8;1295:66:4;1403:9;;1100:1;6164:12:6;5955:7;6148:13;1396:3:4;;6148:28:6;;-1:-1:-1;;6148:46:6;1380:19:4;;;;:::i;:::-;:32;;1372:53;;;;-1:-1:-1;;;1372:53:4;;13380:2:8;1372:53:4;;;13362:21:8;13419:1;13399:18;;;13392:29;-1:-1:-1;;;13437:18:8;;;13430:39;13486:18;;1372:53:4;13178:332:8;1372:53:4;1463:5;;1457:11;;:3;:11;:::i;:::-;1444:9;:24;;1436:56;;;;-1:-1:-1;;;1436:56:4;;13890:2:8;1436:56:4;;;13872:21:8;13929:2;13909:18;;;13902:30;-1:-1:-1;;;13948:18:8;;;13941:50;14008:18;;1436:56:4;13688:344:8;1436:56:4;1510:10;1503:18;;;;:6;:18;;;;;:25;;1525:3;;1503:18;:25;;1525:3;;1503:25;:::i;:::-;;;;-1:-1:-1;1539:26:4;;-1:-1:-1;1549:10:4;1561:3;1539:9;:26::i;16901:231:6:-;39523:10;16995:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;16995:49:6;;;;;;;;;;;;:60;;-1:-1:-1;;16995:60:6;;;;;;;;;;17070:55;;540:41:8;;;16995:49:6;;39523:10;17070:55;;513:18:8;17070:55:6;;;;;;;16901:231;;:::o;466:27:4:-;;;;;;;:::i;23526:396:6:-;23695:31;23708:4;23714:2;23718:7;23695:12;:31::i;:::-;-1:-1:-1;;;;;23740:14:6;;;:19;23736:180;;23778:56;23809:4;23815:2;23819:7;23828:5;23778:30;:56::i;:::-;23773:143;;23861:40;;-1:-1:-1;;;23861:40:6;;;;;;;;;;;23773:143;23526:396;;;;:::o;2883:114:4:-;1531:13:0;:11;:13::i;:::-;2945:44:4::1;::::0;-1:-1:-1;;;2945:44:4;;2971:4:::1;2945:44;::::0;::::1;8729:34:8::0;2978:10:4::1;8779:18:8::0;;;8772:43;-1:-1:-1;;;;;538:42:4;2945:17:::1;::::0;8664:18:8;;2945:44:4::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;10411:313:6:-:0;10484:13;10514:16;10522:7;10514;:16::i;:::-;10509:59;;10539:29;;-1:-1:-1;;;10539:29:6;;;;;;;;;;;10509:59;10579:21;10603:10;:8;:10::i;:::-;10579:34;;10636:7;10630:21;10655:1;10630:26;:87;;;;;;;;;;;;;;;;;10683:7;10692:18;10702:7;10692:9;:18::i;:::-;10666:45;;;;;;;;;:::i;:::-;;;;;;;;;;;;;10630:87;10623:94;10411:313;-1:-1:-1;;;10411:313:6:o;3147:135:4:-;3235:39;;-1:-1:-1;;;3235:39:4;;3268:4;3235:39;;;2048:51:8;3208:7:4;;-1:-1:-1;;;;;538:42:4;3235:24;;2021:18:8;;3235:39:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;3228:46;;3147:135;:::o;432:27::-;;;;;;;:::i;2761:114::-;1531:13:0;:11;:13::i;:::-;2823:44:4::1;::::0;-1:-1:-1;;;2823:44:4;;2849:4:::1;2823:44;::::0;::::1;8729:34:8::0;2856:10:4::1;8779:18:8::0;;;8772:43;-1:-1:-1;;;;;538:42:4;2823:17:::1;::::0;8664:18:8;;2823:44:4::1;8517:304:8::0;17282:162:6;-1:-1:-1;;;;;17402:25:6;;;17379:4;17402:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;17282:162::o;1925:101:4:-;1531:13:0;:11;:13::i;:::-;1992:26:4::1;2002:10;2014:3;1992:9;:26::i;2543:215:0:-:0;1531:13;:11;:13::i;:::-;-1:-1:-1;;;;;2627:22:0;::::1;2623:91;;2672:31;::::0;-1:-1:-1;;;2672:31:0;;2700:1:::1;2672:31;::::0;::::1;2048:51:8::0;2021:18;;2672:31:0::1;1902:203:8::0;2623:91:0::1;2723:28;2742:8;2723:18;:28::i;2034:166:4:-:0;1531:13:0;:11;:13::i;:::-;2137:8:4::1;:22;2148:11:::0;2137:8;:22:::1;:::i;:::-;-1:-1:-1::0;2170:8:4::1;:22;2181:11:::0;2170:8;:22:::1;:::i;3290:141::-:0;3380:43;;-1:-1:-1;;;3380:43:4;;3417:4;3380:43;;;2048:51:8;3355:5:4;;-1:-1:-1;;;;;538:42:4;3380:28;;2021:18:8;;3380:43:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;1796:162:0:-;1710:6;;-1:-1:-1;;;;;1710:6:0;39523:10:6;1855:23:0;1851:101;;1901:40;;-1:-1:-1;;;1901:40:0;;39523:10:6;1901:40:0;;;2048:51:8;2021:18;;1901:40:0;1902:203:8;17693:277:6;17758:4;17812:7;1100:1:4;17793:26:6;;:65;;;;;17845:13;;17835:7;:23;17793:65;:151;;;;-1:-1:-1;;17895:26:6;;;;:17;:26;;;;;;-1:-1:-1;;;17895:44:6;:49;;17693:277::o;12515:1249::-;12582:7;12616;;1100:1:4;12662:23:6;12658:1042;;12714:13;;12707:4;:20;12703:997;;;12751:14;12768:23;;;:17;:23;;;;;;;-1:-1:-1;;;12855:24:6;;:29;;12851:831;;13510:111;13517:6;13527:1;13517:11;13510:111;;-1:-1:-1;;;13587:6:6;13569:25;;;;:17;:25;;;;;;13510:111;;12851:831;12729:971;12703:997;13726:31;;-1:-1:-1;;;13726:31:6;;;;;;;;;;;33423:110;33499:27;33509:2;33513:8;33499:27;;;;;;;;;;;;:9;:27::i;2912:187:0:-;3004:6;;;-1:-1:-1;;;;;3020:17:0;;;-1:-1:-1;;;;;;3020:17:0;;;;;;;3052:40;;3004:6;;;3020:17;3004:6;;3052:40;;2985:16;;3052:40;2975:124;2912:187;:::o;25948:697:6:-;26126:88;;-1:-1:-1;;;26126:88:6;;26106:4;;-1:-1:-1;;;;;26126:45:6;;;;;:88;;39523:10;;26193:4;;26199:7;;26208:5;;26126:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;26126:88:6;;;;;;;;-1:-1:-1;;26126:88:6;;;;;;;;;;;;:::i;:::-;;;26122:517;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26404:6;:13;26421:1;26404:18;26400:229;;26449:40;;-1:-1:-1;;;26449:40:6;;;;;;;;;;;26400:229;26589:6;26583:13;26574:6;26570:2;26566:15;26559:38;26122:517;-1:-1:-1;;;;;;26282:64:6;-1:-1:-1;;;26282:64:6;;-1:-1:-1;26122:517:6;25948:697;;;;;;:::o;1581:108:4:-;1641:13;1674:7;1667:14;;;;;:::i;39637:1708:6:-;39702:17;40130:4;40123;40117:11;40113:22;40220:1;40214:4;40207:15;40293:4;40290:1;40286:12;40279:19;;;40373:1;40368:3;40361:14;40474:3;40708:5;40690:419;40755:1;40750:3;40746:11;40739:18;;40923:2;40917:4;40913:13;40909:2;40905:22;40900:3;40892:36;41015:2;41005:13;;41070:25;40690:419;41070:25;-1:-1:-1;41137:13:6;;;-1:-1:-1;;41250:14:6;;;41310:19;;;41250:14;39637:1708;-1:-1:-1;39637:1708:6:o;32675:669::-;32801:19;32807:2;32811:8;32801:5;:19::i;:::-;-1:-1:-1;;;;;32859:14:6;;;:19;32855:473;;32898:11;32912:13;32959:14;;;32991:229;33021:62;33060:1;33064:2;33068:7;;;;;;33077:5;33021:30;:62::i;:::-;33016:165;;33118:40;;-1:-1:-1;;;33118:40:6;;;;;;;;;;;33016:165;33215:3;33207:5;:11;32991:229;;33300:3;33283:13;;:20;33279:34;;33305:8;;;33279:34;32880:448;;32675:669;;;:::o;27091:2902::-;27163:20;27186:13;;;27213;;;27209:44;;27235:18;;-1:-1:-1;;;27235:18:6;;;;;;;;;;;27209:44;-1:-1:-1;;;;;27728:22:6;;;;;;:18;:22;;;;1495:2;27728:22;;;:71;;27766:32;27754:45;;27728:71;;;28035:31;;;:17;:31;;;;;-1:-1:-1;15123:15:6;;15097:24;15093:46;14703:11;14678:23;14674:41;14671:52;14661:63;;28035:170;;28264:23;;;;28035:31;;27728:22;;29016:25;27728:22;;28872:328;29520:1;29506:12;29502:20;29461:339;29560:3;29551:7;29548:16;29461:339;;29774:7;29764:8;29761:1;29734:25;29731:1;29728;29723:59;29612:1;29599:15;29461:339;;;29465:75;29831:8;29843:1;29831:13;29827:45;;29853:19;;-1:-1:-1;;;29853:19:6;;;;;;;;;;;29827:45;29887:13;:19;-1:-1:-1;22758:187:6;;;:::o;14:131:8:-;-1:-1:-1;;;;;;88:32:8;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;592:173::-;660:20;;-1:-1:-1;;;;;709:31:8;;699:42;;689:70;;755:1;752;745:12;689:70;592:173;;;:::o;770:186::-;829:6;882:2;870:9;861:7;857:23;853:32;850:52;;;898:1;895;888:12;850:52;921:29;940:9;921:29;:::i;961:250::-;1046:1;1056:113;1070:6;1067:1;1064:13;1056:113;;;1146:11;;;1140:18;1127:11;;;1120:39;1092:2;1085:10;1056:113;;;-1:-1:-1;;1203:1:8;1185:16;;1178:27;961:250::o;1216:271::-;1258:3;1296:5;1290:12;1323:6;1318:3;1311:19;1339:76;1408:6;1401:4;1396:3;1392:14;1385:4;1378:5;1374:16;1339:76;:::i;:::-;1469:2;1448:15;-1:-1:-1;;1444:29:8;1435:39;;;;1476:4;1431:50;;1216:271;-1:-1:-1;;1216:271:8:o;1492:220::-;1641:2;1630:9;1623:21;1604:4;1661:45;1702:2;1691:9;1687:18;1679:6;1661:45;:::i;1717:180::-;1776:6;1829:2;1817:9;1808:7;1804:23;1800:32;1797:52;;;1845:1;1842;1835:12;1797:52;-1:-1:-1;1868:23:8;;1717:180;-1:-1:-1;1717:180:8:o;2110:254::-;2178:6;2186;2239:2;2227:9;2218:7;2214:23;2210:32;2207:52;;;2255:1;2252;2245:12;2207:52;2278:29;2297:9;2278:29;:::i;:::-;2268:39;2354:2;2339:18;;;;2326:32;;-1:-1:-1;;;2110:254:8:o;2551:328::-;2628:6;2636;2644;2697:2;2685:9;2676:7;2672:23;2668:32;2665:52;;;2713:1;2710;2703:12;2665:52;2736:29;2755:9;2736:29;:::i;:::-;2726:39;;2784:38;2818:2;2807:9;2803:18;2784:38;:::i;:::-;2774:48;;2869:2;2858:9;2854:18;2841:32;2831:42;;2551:328;;;;;:::o;2884:127::-;2945:10;2940:3;2936:20;2933:1;2926:31;2976:4;2973:1;2966:15;3000:4;2997:1;2990:15;3016:275;3087:2;3081:9;3152:2;3133:13;;-1:-1:-1;;3129:27:8;3117:40;;3187:18;3172:34;;3208:22;;;3169:62;3166:88;;;3234:18;;:::i;:::-;3270:2;3263:22;3016:275;;-1:-1:-1;3016:275:8:o;3296:407::-;3361:5;3395:18;3387:6;3384:30;3381:56;;;3417:18;;:::i;:::-;3455:57;3500:2;3479:15;;-1:-1:-1;;3475:29:8;3506:4;3471:40;3455:57;:::i;:::-;3446:66;;3535:6;3528:5;3521:21;3575:3;3566:6;3561:3;3557:16;3554:25;3551:45;;;3592:1;3589;3582:12;3551:45;3641:6;3636:3;3629:4;3622:5;3618:16;3605:43;3695:1;3688:4;3679:6;3672:5;3668:18;3664:29;3657:40;3296:407;;;;;:::o;3708:222::-;3751:5;3804:3;3797:4;3789:6;3785:17;3781:27;3771:55;;3822:1;3819;3812:12;3771:55;3844:80;3920:3;3911:6;3898:20;3891:4;3883:6;3879:17;3844:80;:::i;3935:322::-;4004:6;4057:2;4045:9;4036:7;4032:23;4028:32;4025:52;;;4073:1;4070;4063:12;4025:52;4113:9;4100:23;4146:18;4138:6;4135:30;4132:50;;;4178:1;4175;4168:12;4132:50;4201;4243:7;4234:6;4223:9;4219:22;4201:50;:::i;4262:183::-;4322:4;4355:18;4347:6;4344:30;4341:56;;;4377:18;;:::i;:::-;-1:-1:-1;4422:1:8;4418:14;4434:4;4414:25;;4262:183::o;4450:662::-;4504:5;4557:3;4550:4;4542:6;4538:17;4534:27;4524:55;;4575:1;4572;4565:12;4524:55;4611:6;4598:20;4637:4;4661:60;4677:43;4717:2;4677:43;:::i;:::-;4661:60;:::i;:::-;4755:15;;;4841:1;4837:10;;;;4825:23;;4821:32;;;4786:12;;;;4865:15;;;4862:35;;;4893:1;4890;4883:12;4862:35;4929:2;4921:6;4917:15;4941:142;4957:6;4952:3;4949:15;4941:142;;;5023:17;;5011:30;;5061:12;;;;4974;;4941:142;;;-1:-1:-1;5101:5:8;4450:662;-1:-1:-1;;;;;;4450:662:8:o;5117:1146::-;5235:6;5243;5296:2;5284:9;5275:7;5271:23;5267:32;5264:52;;;5312:1;5309;5302:12;5264:52;5352:9;5339:23;5381:18;5422:2;5414:6;5411:14;5408:34;;;5438:1;5435;5428:12;5408:34;5476:6;5465:9;5461:22;5451:32;;5521:7;5514:4;5510:2;5506:13;5502:27;5492:55;;5543:1;5540;5533:12;5492:55;5579:2;5566:16;5601:4;5625:60;5641:43;5681:2;5641:43;:::i;5625:60::-;5719:15;;;5801:1;5797:10;;;;5789:19;;5785:28;;;5750:12;;;;5825:19;;;5822:39;;;5857:1;5854;5847:12;5822:39;5881:11;;;;5901:148;5917:6;5912:3;5909:15;5901:148;;;5983:23;6002:3;5983:23;:::i;:::-;5971:36;;5934:12;;;;6027;;;;5901:148;;;6068:5;-1:-1:-1;;6111:18:8;;6098:32;;-1:-1:-1;;6142:16:8;;;6139:36;;;6171:1;6168;6161:12;6139:36;;6194:63;6249:7;6238:8;6227:9;6223:24;6194:63;:::i;:::-;6184:73;;;5117:1146;;;;;:::o;6491:347::-;6556:6;6564;6617:2;6605:9;6596:7;6592:23;6588:32;6585:52;;;6633:1;6630;6623:12;6585:52;6656:29;6675:9;6656:29;:::i;:::-;6646:39;;6735:2;6724:9;6720:18;6707:32;6782:5;6775:13;6768:21;6761:5;6758:32;6748:60;;6804:1;6801;6794:12;6748:60;6827:5;6817:15;;;6491:347;;;;;:::o;6843:667::-;6938:6;6946;6954;6962;7015:3;7003:9;6994:7;6990:23;6986:33;6983:53;;;7032:1;7029;7022:12;6983:53;7055:29;7074:9;7055:29;:::i;:::-;7045:39;;7103:38;7137:2;7126:9;7122:18;7103:38;:::i;:::-;7093:48;;7188:2;7177:9;7173:18;7160:32;7150:42;;7243:2;7232:9;7228:18;7215:32;7270:18;7262:6;7259:30;7256:50;;;7302:1;7299;7292:12;7256:50;7325:22;;7378:4;7370:13;;7366:27;-1:-1:-1;7356:55:8;;7407:1;7404;7397:12;7356:55;7430:74;7496:7;7491:2;7478:16;7473:2;7469;7465:11;7430:74;:::i;:::-;7420:84;;;6843:667;;;;;;;:::o;7515:260::-;7583:6;7591;7644:2;7632:9;7623:7;7619:23;7615:32;7612:52;;;7660:1;7657;7650:12;7612:52;7683:29;7702:9;7683:29;:::i;:::-;7673:39;;7731:38;7765:2;7754:9;7750:18;7731:38;:::i;:::-;7721:48;;7515:260;;;;;:::o;7780:543::-;7868:6;7876;7929:2;7917:9;7908:7;7904:23;7900:32;7897:52;;;7945:1;7942;7935:12;7897:52;7985:9;7972:23;8014:18;8055:2;8047:6;8044:14;8041:34;;;8071:1;8068;8061:12;8041:34;8094:50;8136:7;8127:6;8116:9;8112:22;8094:50;:::i;:::-;8084:60;;8197:2;8186:9;8182:18;8169:32;8153:48;;8226:2;8216:8;8213:16;8210:36;;;8242:1;8239;8232:12;8210:36;;8265:52;8309:7;8298:8;8287:9;8283:24;8265:52;:::i;8826:184::-;8896:6;8949:2;8937:9;8928:7;8924:23;8920:32;8917:52;;;8965:1;8962;8955:12;8917:52;-1:-1:-1;8988:16:8;;8826:184;-1:-1:-1;8826:184:8:o;9015:380::-;9094:1;9090:12;;;;9137;;;9158:61;;9212:4;9204:6;9200:17;9190:27;;9158:61;9265:2;9257:6;9254:14;9234:18;9231:38;9228:161;;9311:10;9306:3;9302:20;9299:1;9292:31;9346:4;9343:1;9336:15;9374:4;9371:1;9364:15;9228:161;;9015:380;;;:::o;9526:545::-;9628:2;9623:3;9620:11;9617:448;;;9664:1;9689:5;9685:2;9678:17;9734:4;9730:2;9720:19;9804:2;9792:10;9788:19;9785:1;9781:27;9775:4;9771:38;9840:4;9828:10;9825:20;9822:47;;;-1:-1:-1;9863:4:8;9822:47;9918:2;9913:3;9909:12;9906:1;9902:20;9896:4;9892:31;9882:41;;9973:82;9991:2;9984:5;9981:13;9973:82;;;10036:17;;;10017:1;10006:13;9973:82;;10247:1352;10373:3;10367:10;10400:18;10392:6;10389:30;10386:56;;;10422:18;;:::i;:::-;10451:97;10541:6;10501:38;10533:4;10527:11;10501:38;:::i;:::-;10495:4;10451:97;:::i;:::-;10603:4;;10667:2;10656:14;;10684:1;10679:663;;;;11386:1;11403:6;11400:89;;;-1:-1:-1;11455:19:8;;;11449:26;11400:89;-1:-1:-1;;10204:1:8;10200:11;;;10196:24;10192:29;10182:40;10228:1;10224:11;;;10179:57;11502:81;;10649:944;;10679:663;9473:1;9466:14;;;9510:4;9497:18;;-1:-1:-1;;10715:20:8;;;10833:236;10847:7;10844:1;10841:14;10833:236;;;10936:19;;;10930:26;10915:42;;11028:27;;;;10996:1;10984:14;;;;10863:19;;10833:236;;;10837:3;11097:6;11088:7;11085:19;11082:201;;;11158:19;;;11152:26;-1:-1:-1;;11241:1:8;11237:14;;;11253:3;11233:24;11229:37;11225:42;11210:58;11195:74;;11082:201;-1:-1:-1;;;;;11329:1:8;11313:14;;;11309:22;11296:36;;-1:-1:-1;10247:1352:8:o;11604:127::-;11665:10;11660:3;11656:20;11653:1;11646:31;11696:4;11693:1;11686:15;11720:4;11717:1;11710:15;11736:127;11797:10;11792:3;11788:20;11785:1;11778:31;11828:4;11825:1;11818:15;11852:4;11849:1;11842:15;11868:135;11907:3;11928:17;;;11925:43;;11948:18;;:::i;:::-;-1:-1:-1;11995:1:8;11984:13;;11868:135::o;13048:125::-;13113:9;;;13134:10;;;13131:36;;;13147:18;;:::i;13515:168::-;13588:9;;;13619;;13636:15;;;13630:22;;13616:37;13606:71;;13657:18;;:::i;14037:496::-;14216:3;14254:6;14248:13;14270:66;14329:6;14324:3;14317:4;14309:6;14305:17;14270:66;:::i;:::-;14399:13;;14358:16;;;;14421:70;14399:13;14358:16;14468:4;14456:17;;14421:70;:::i;:::-;14507:20;;14037:496;-1:-1:-1;;;;14037:496:8:o;14538:273::-;14606:6;14659:2;14647:9;14638:7;14634:23;14630:32;14627:52;;;14675:1;14672;14665:12;14627:52;14707:9;14701:16;14757:4;14750:5;14746:16;14739:5;14736:27;14726:55;;14777:1;14774;14767:12;14816:489;-1:-1:-1;;;;;15085:15:8;;;15067:34;;15137:15;;15132:2;15117:18;;15110:43;15184:2;15169:18;;15162:34;;;15232:3;15227:2;15212:18;;15205:31;;;15010:4;;15253:46;;15279:19;;15271:6;15253:46;:::i;:::-;15245:54;14816:489;-1:-1:-1;;;;;;14816:489:8:o;15310:249::-;15379:6;15432:2;15420:9;15411:7;15407:23;15403:32;15400:52;;;15448:1;15445;15438:12;15400:52;15480:9;15474:16;15499:30;15523:5;15499:30;:::i
Swarm Source
ipfs://d51224c32b4fcab052024242a9f3c4ff04fb460ed1102d93504962420580e399
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.