MeteoriaNFT token contract has migrated to a new address.
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 16 from a total of 16 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Renounce Ownersh... | 16924702 | 536 days ago | IN | 0 ETH | 0.00056427 | ||||
Burn | 16917924 | 537 days ago | IN | 0 ETH | 0.00079952 | ||||
Burn | 16917922 | 537 days ago | IN | 0 ETH | 0.00121296 | ||||
Burn | 16917920 | 537 days ago | IN | 0 ETH | 0.00114347 | ||||
Burn | 16917917 | 537 days ago | IN | 0 ETH | 0.00120977 | ||||
Burn | 16917913 | 537 days ago | IN | 0 ETH | 0.0011713 | ||||
Burn | 16917903 | 537 days ago | IN | 0 ETH | 0.00115094 | ||||
Burn | 16917899 | 537 days ago | IN | 0 ETH | 0.00113882 | ||||
Burn | 16917893 | 537 days ago | IN | 0 ETH | 0.0011876 | ||||
Burn | 16917882 | 537 days ago | IN | 0 ETH | 0.00108778 | ||||
Owner Mint | 16902783 | 539 days ago | IN | 0 ETH | 0.00109769 | ||||
Set Config | 16873808 | 543 days ago | IN | 0 ETH | 0.00052739 | ||||
Owner Mint | 16867065 | 544 days ago | IN | 0 ETH | 0.00090562 | ||||
Set Base URI | 16867058 | 544 days ago | IN | 0 ETH | 0.00120599 | ||||
Set Meteorium | 16852767 | 546 days ago | IN | 0 ETH | 0.00079925 | ||||
0x600b6080 | 16852756 | 546 days ago | IN | 0 ETH | 0.05661182 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
MeteoriaNFT
Compiler Version
v0.8.18+commit.87f61d96
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-03-18 */ // SPDX-License-Identifier: MIT // File: contracts/WithdrawFairly.sol pragma solidity ^0.8.7; interface IERC20 { function balanceOf(address account) external view returns (uint256); function transfer(address to, uint256 amount) external returns (bool); } /** * @title WithdrawFairly * @author 0x0 */ contract WithdrawFairly { error Unauthorized(); error ZeroBalance(); error TransferFailed(); struct Part { address wallet; uint8 salesPart; uint8 royaltiesPart; } Part[] public parts; mapping(address => bool) public callers; constructor() payable { parts.push(Part(0xecB4278af1379c38Eab140063fFC426f05FEde28, 20, 15)); callers[0xecB4278af1379c38Eab140063fFC426f05FEde28] = true; parts.push(Part(0xE1580cA711094CF2888716a54c5A892245653435, 49, 65)); callers[0xE1580cA711094CF2888716a54c5A892245653435] = true; parts.push(Part(0x963363fc0BDf5D4b48Ef3dc5CA374e909f13e730, 5, 5)); parts.push(Part(0x95B5b3c1Dc12c6124B077133aBc86e809382934E, 5, 5)); parts.push(Part(0xef581EBE97F20a7EFF93Fe9149F07F34cD78CaE1, 10, 5)); parts.push(Part(0x23a2f69Dbb116Ff3c878560f23B9BA3a3803020A, 1, 0)); parts.push(Part(0x44d32341F2248937286aEEdd53eC9367bEFC30e8, 10, 5)); } function shareETHSalesPart() external { if (!callers[msg.sender]) revert Unauthorized(); uint256 balance = address(this).balance; if (balance == 0) revert ZeroBalance(); Part memory part; for (uint256 i; i < parts.length;) { part = parts[i]; // Below will never realistically overflows unchecked { if (part.salesPart != 0) { _withdraw( part.wallet, balance * part.salesPart / 100 ); } ++i; } } } function shareETHRoyaltiesPart() external { if (!callers[msg.sender]) revert Unauthorized(); uint256 balance = address(this).balance; if (balance == 0) revert ZeroBalance(); Part memory part; for (uint256 i; i < parts.length;) { part = parts[i]; unchecked { if (part.royaltiesPart != 0) { _withdraw( part.wallet, balance * part.royaltiesPart / 100 ); } ++i; } } } function shareTokenRoyaltiesPart(address token) external { if (!callers[msg.sender]) revert Unauthorized(); IERC20 tokenContract = IERC20(token); uint256 balance = tokenContract.balanceOf(address(this)); if (balance == 0) revert ZeroBalance(); Part memory part; for (uint256 i; i < parts.length;) { part = parts[i]; if (part.royaltiesPart != 0) { if (!tokenContract.transfer( part.wallet, balance * part.royaltiesPart / 100 )) revert TransferFailed(); } unchecked { ++i; } } } function _withdraw(address _address, uint256 _amount) private { (bool success, ) = _address.call{value: _amount}(""); if (!success) revert TransferFailed(); } receive() external payable {} } // File: erc721a/contracts/IERC721A.sol // 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); } // File: erc721a/contracts/ERC721A.sol // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // 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) } } } // File: operator-filter-registry/src/lib/Constants.sol pragma solidity ^0.8.13; address constant CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS = 0x000000000000AAeB6D7670E522A718067333cd4E; address constant CANONICAL_CORI_SUBSCRIPTION = 0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6; // File: operator-filter-registry/src/IOperatorFilterRegistry.sol pragma solidity ^0.8.13; interface IOperatorFilterRegistry { /** * @notice Returns true if operator is not filtered for a given token, either by address or codeHash. Also returns * true if supplied registrant address is not registered. */ function isOperatorAllowed(address registrant, address operator) external view returns (bool); /** * @notice Registers an address with the registry. May be called by address itself or by EIP-173 owner. */ function register(address registrant) external; /** * @notice Registers an address with the registry and "subscribes" to another address's filtered operators and codeHashes. */ function registerAndSubscribe(address registrant, address subscription) external; /** * @notice Registers an address with the registry and copies the filtered operators and codeHashes from another * address without subscribing. */ function registerAndCopyEntries(address registrant, address registrantToCopy) external; /** * @notice Unregisters an address with the registry and removes its subscription. May be called by address itself or by EIP-173 owner. * Note that this does not remove any filtered addresses or codeHashes. * Also note that any subscriptions to this registrant will still be active and follow the existing filtered addresses and codehashes. */ function unregister(address addr) external; /** * @notice Update an operator address for a registered address - when filtered is true, the operator is filtered. */ function updateOperator(address registrant, address operator, bool filtered) external; /** * @notice Update multiple operators for a registered address - when filtered is true, the operators will be filtered. Reverts on duplicates. */ function updateOperators(address registrant, address[] calldata operators, bool filtered) external; /** * @notice Update a codeHash for a registered address - when filtered is true, the codeHash is filtered. */ function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external; /** * @notice Update multiple codeHashes for a registered address - when filtered is true, the codeHashes will be filtered. Reverts on duplicates. */ function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external; /** * @notice Subscribe an address to another registrant's filtered operators and codeHashes. Will remove previous * subscription if present. * Note that accounts with subscriptions may go on to subscribe to other accounts - in this case, * subscriptions will not be forwarded. Instead the former subscription's existing entries will still be * used. */ function subscribe(address registrant, address registrantToSubscribe) external; /** * @notice Unsubscribe an address from its current subscribed registrant, and optionally copy its filtered operators and codeHashes. */ function unsubscribe(address registrant, bool copyExistingEntries) external; /** * @notice Get the subscription address of a given registrant, if any. */ function subscriptionOf(address addr) external returns (address registrant); /** * @notice Get the set of addresses subscribed to a given registrant. * Note that order is not guaranteed as updates are made. */ function subscribers(address registrant) external returns (address[] memory); /** * @notice Get the subscriber at a given index in the set of addresses subscribed to a given registrant. * Note that order is not guaranteed as updates are made. */ function subscriberAt(address registrant, uint256 index) external returns (address); /** * @notice Copy filtered operators and codeHashes from a different registrantToCopy to addr. */ function copyEntriesOf(address registrant, address registrantToCopy) external; /** * @notice Returns true if operator is filtered by a given address or its subscription. */ function isOperatorFiltered(address registrant, address operator) external returns (bool); /** * @notice Returns true if the hash of an address's code is filtered by a given address or its subscription. */ function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool); /** * @notice Returns true if a codeHash is filtered by a given address or its subscription. */ function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool); /** * @notice Returns a list of filtered operators for a given address or its subscription. */ function filteredOperators(address addr) external returns (address[] memory); /** * @notice Returns the set of filtered codeHashes for a given address or its subscription. * Note that order is not guaranteed as updates are made. */ function filteredCodeHashes(address addr) external returns (bytes32[] memory); /** * @notice Returns the filtered operator at the given index of the set of filtered operators for a given address or * its subscription. * Note that order is not guaranteed as updates are made. */ function filteredOperatorAt(address registrant, uint256 index) external returns (address); /** * @notice Returns the filtered codeHash at the given index of the list of filtered codeHashes for a given address or * its subscription. * Note that order is not guaranteed as updates are made. */ function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32); /** * @notice Returns true if an address has registered */ function isRegistered(address addr) external returns (bool); /** * @dev Convenience method to compute the code hash of an arbitrary contract */ function codeHashOf(address addr) external returns (bytes32); } // File: operator-filter-registry/src/OperatorFilterer.sol pragma solidity ^0.8.13; /** * @title OperatorFilterer * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another * registrant's entries in the OperatorFilterRegistry. * @dev This smart contract is meant to be inherited by token contracts so they can use the following: * - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods. * - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods. * Please note that if your token contract does not provide an owner with EIP-173, it must provide * administration methods on the contract itself to interact with the registry otherwise the subscription * will be locked to the options set during construction. */ abstract contract OperatorFilterer { /// @dev Emitted when an operator is not allowed. error OperatorNotAllowed(address operator); IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY = IOperatorFilterRegistry(CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS); /// @dev The constructor that is called when the contract is being deployed. constructor(address subscriptionOrRegistrantToCopy, bool subscribe) { // If an inheriting token contract is deployed to a network without the registry deployed, the modifier // will not revert, but the contract will need to be registered with the registry once it is deployed in // order for the modifier to filter addresses. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { if (subscribe) { OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy); } else { if (subscriptionOrRegistrantToCopy != address(0)) { OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy); } else { OPERATOR_FILTER_REGISTRY.register(address(this)); } } } } /** * @dev A helper function to check if an operator is allowed. */ modifier onlyAllowedOperator(address from) virtual { // Allow spending tokens from addresses with balance // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred // from an EOA. if (from != msg.sender) { _checkFilterOperator(msg.sender); } _; } /** * @dev A helper function to check if an operator approval is allowed. */ modifier onlyAllowedOperatorApproval(address operator) virtual { _checkFilterOperator(operator); _; } /** * @dev A helper function to check if an operator is allowed. */ function _checkFilterOperator(address operator) internal view virtual { // Check registry code length to facilitate testing in environments without a deployed registry. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { // under normal circumstances, this function will revert rather than return false, but inheriting contracts // may specify their own OperatorFilterRegistry implementations, which may behave differently if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) { revert OperatorNotAllowed(operator); } } } } // File: operator-filter-registry/src/DefaultOperatorFilterer.sol pragma solidity ^0.8.13; /** * @title DefaultOperatorFilterer * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription. * @dev Please note that if your token contract does not provide an owner with EIP-173, it must provide * administration methods on the contract itself to interact with the registry otherwise the subscription * will be locked to the options set during construction. */ abstract contract DefaultOperatorFilterer is OperatorFilterer { /// @dev The constructor that is called when the contract is being deployed. constructor() OperatorFilterer(CANONICAL_CORI_SUBSCRIPTION, true) {} } // File: @openzeppelin/contracts/utils/introspection/IERC165.sol // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } // File: @openzeppelin/contracts/utils/introspection/ERC165.sol // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } } // File: @openzeppelin/contracts/interfaces/IERC2981.sol // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); } // File: @openzeppelin/contracts/token/common/ERC2981.sol // OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: invalid receiver"); _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: Invalid parameters"); _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } } // File: @openzeppelin/contracts/utils/Context.sol // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } // File: @openzeppelin/contracts/access/Ownable.sol // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev 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 { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // File: @openzeppelin/contracts/utils/math/Math.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } } // File: @openzeppelin/contracts/utils/Strings.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } } // File: @openzeppelin/contracts/utils/cryptography/ECDSA.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV // Deprecated in v4.8 } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. /// @solidity memory-safe-assembly assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } } // File: contracts/MeteoriaNFT.sol pragma solidity ^0.8.7; interface IMeteorium { function mint(address to, uint256 amount) external; } /** * @title MeteoriaNFT * @author 0x0 * * Meteoria main NFT collection, used as access to our various events to come. * It will also be the only way of minting a genesis Meteorium token by * minting batches of 3 (3 MeteoriaNFT minted = 1 genesis Meteorium). * * The reveal system for this token will be fully offchain, our backend will * only display as revealed the one who will be explicitly unpacked by their * owners. * The final draw will directly be saved and a hash will computed and * shared to forge a proof and prove there has been no manupulations in the * process. Once the reveal event ends, all the metadata will be pushed * on IPFS and the URI should be frozen. */ contract MeteoriaNFT is ERC721A, ERC2981, DefaultOperatorFilterer, WithdrawFairly, Ownable { using ECDSA for bytes32; error CannotUnfreezeURI(); error CannotUpdateFrozenURI(); error OnlyEOA(); error CollectionSoldOut(); error NotPresale(); error MaxPresaleMints(); error NotWhitelisted(); error NotSale(); error MintPaused(); error MaxSaleTxMintsReached(); error IncorrectETHValue(); struct MeteoriaNFTConfig { uint64 presaleStart; uint64 presaleEnd; uint64 salePrice; uint8 maxMintsPerTx; uint8 maxMintsPresale; bool mintPaused; bool frozenURI; } address private constant _PRESALE_AUTHORITY = 0x8734A7EA99895869a16d2c2fc5DBAD78a40F1C70; uint256 private constant _MINT_SUPPLY = 6000; uint256 private constant _METEORIUM_MINT_RATE = 3; IMeteorium private _meteorium; MeteoriaNFTConfig public config; // Metadata data string public baseURI; event MeteoriaNFTConfigUpdated(MeteoriaNFTConfig newConfig); event MeteoriumUpdated(address meteorium); event FrozenURI(); event BaseURIUpdated(string baseURI); constructor() payable ERC721A("MeteoriaNFT", "MTO") { // Setting royalties to 5% _setDefaultRoyalty(address(this), 500); // Define base conf below config = MeteoriaNFTConfig( 1680138000, 1680141600, 0.055 ether, 9, 3, false, false ); } function setDefaultRoyalty( address _receiver, uint96 _feeNumerator ) external onlyOwner { _setDefaultRoyalty(_receiver, _feeNumerator); } function setConfig(MeteoriaNFTConfig calldata newConf) external onlyOwner { if (config.frozenURI && !newConf.frozenURI) revert CannotUnfreezeURI(); config = newConf; if (newConf.frozenURI) emit FrozenURI(); emit MeteoriaNFTConfigUpdated(newConf); } function setMeteorium(address meteorium) external onlyOwner { _meteorium = IMeteorium(meteorium); emit MeteoriumUpdated(meteorium); } function setBaseURI(string calldata baseURI_) external onlyOwner { if (config.frozenURI) revert CannotUpdateFrozenURI(); baseURI = baseURI_; emit BaseURIUpdated(baseURI_); } function ownerMint(uint256 amount, address to) external onlyOwner { if (isSoldOut(amount)) revert CollectionSoldOut(); _mint(to, amount); } function ownershipOf( uint256 tokenId ) external view returns (TokenOwnership memory) { return _ownershipOf(tokenId); } function isSoldOut(uint256 nftWanted) public view returns (bool) { return _totalMinted() + nftWanted > _MINT_SUPPLY; } function supportsInterface( bytes4 interfaceId ) public view virtual override(ERC721A, ERC2981) returns (bool) { return ERC721A.supportsInterface(interfaceId) || ERC2981.supportsInterface(interfaceId); } function setApprovalForAll( address operator, bool approved ) public override onlyAllowedOperatorApproval(operator) { super.setApprovalForAll(operator, approved); } function approve( address operator, uint256 tokenId ) public payable override onlyAllowedOperatorApproval(operator) { super.approve(operator, tokenId); } function transferFrom( address from, address to, uint256 tokenId ) public payable override onlyAllowedOperator(from) { super.transferFrom(from, to, tokenId); } function safeTransferFrom( address from, address to, uint256 tokenId ) public payable override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId); } function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public payable override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId, data); } function tokenURI( uint256 _nftId ) public view override returns (string memory) { if (!_exists(_nftId)) revert URIQueryForNonexistentToken(); return string(abi.encodePacked(baseURI, _toString(_nftId), ".json")); } function burn(uint256 tokenId) public virtual { _burn(tokenId, true); } function totalMinted() external view returns (uint256) { return _totalMinted(); } function numberMinted(address owner) external view returns (uint256) { return _numberMinted(owner); } function presaleMint(uint256 amount, bytes calldata signature) external payable { if (msg.sender != tx.origin) revert OnlyEOA(); if (isSoldOut(amount)) revert CollectionSoldOut(); if ( _PRESALE_AUTHORITY != keccak256( abi.encodePacked(msg.sender) ).toEthSignedMessageHash().recover(signature) ) revert NotWhitelisted(); MeteoriaNFTConfig memory conf = config; if (conf.mintPaused) revert MintPaused(); if ( block.timestamp < conf.presaleStart || block.timestamp >= conf.presaleEnd ) revert NotPresale(); uint256 meteoriumEarned; // Below cannot overflow as it would already have occured in isSoldOut // function which isn't using unchecked block, regarding the price, // this contract assume the price will not reach irrealistic price // for NFTs mints which would also require a huge collection size ( // which would already cause trouble with ERC721A impl) unchecked { if (_numberMinted(msg.sender) + amount > conf.maxMintsPresale) revert MaxPresaleMints(); if (msg.value != conf.salePrice * amount) revert IncorrectETHValue(); meteoriumEarned = amount / _METEORIUM_MINT_RATE; } if (meteoriumEarned > 0) { _meteorium.mint(msg.sender, meteoriumEarned); } _mint(msg.sender, amount); } function saleMint(uint256 amount) external payable { if (msg.sender != tx.origin) revert OnlyEOA(); if (isSoldOut(amount)) revert CollectionSoldOut(); MeteoriaNFTConfig memory conf = config; if (conf.mintPaused) revert MintPaused(); if (block.timestamp < conf.presaleEnd) revert NotSale(); if (amount > conf.maxMintsPerTx) revert MaxSaleTxMintsReached(); uint256 meteoriumEarned; unchecked { if (msg.value != conf.salePrice * amount) revert IncorrectETHValue(); meteoriumEarned = amount / _METEORIUM_MINT_RATE; } if (meteoriumEarned > 0) { _meteorium.mint(msg.sender, meteoriumEarned); } _mint(msg.sender, amount); } function _startTokenId() internal pure override returns (uint256) { return 1; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"payable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"CannotUnfreezeURI","type":"error"},{"inputs":[],"name":"CannotUpdateFrozenURI","type":"error"},{"inputs":[],"name":"CollectionSoldOut","type":"error"},{"inputs":[],"name":"IncorrectETHValue","type":"error"},{"inputs":[],"name":"MaxPresaleMints","type":"error"},{"inputs":[],"name":"MaxSaleTxMintsReached","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintPaused","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"NotPresale","type":"error"},{"inputs":[],"name":"NotSale","type":"error"},{"inputs":[],"name":"NotWhitelisted","type":"error"},{"inputs":[],"name":"OnlyEOA","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFailed","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"Unauthorized","type":"error"},{"inputs":[],"name":"ZeroBalance","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":false,"internalType":"string","name":"baseURI","type":"string"}],"name":"BaseURIUpdated","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":[],"name":"FrozenURI","type":"event"},{"anonymous":false,"inputs":[{"components":[{"internalType":"uint64","name":"presaleStart","type":"uint64"},{"internalType":"uint64","name":"presaleEnd","type":"uint64"},{"internalType":"uint64","name":"salePrice","type":"uint64"},{"internalType":"uint8","name":"maxMintsPerTx","type":"uint8"},{"internalType":"uint8","name":"maxMintsPresale","type":"uint8"},{"internalType":"bool","name":"mintPaused","type":"bool"},{"internalType":"bool","name":"frozenURI","type":"bool"}],"indexed":false,"internalType":"struct MeteoriaNFT.MeteoriaNFTConfig","name":"newConfig","type":"tuple"}],"name":"MeteoriaNFTConfigUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"meteorium","type":"address"}],"name":"MeteoriumUpdated","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":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"callers","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"config","outputs":[{"internalType":"uint64","name":"presaleStart","type":"uint64"},{"internalType":"uint64","name":"presaleEnd","type":"uint64"},{"internalType":"uint64","name":"salePrice","type":"uint64"},{"internalType":"uint8","name":"maxMintsPerTx","type":"uint8"},{"internalType":"uint8","name":"maxMintsPresale","type":"uint8"},{"internalType":"bool","name":"mintPaused","type":"bool"},{"internalType":"bool","name":"frozenURI","type":"bool"}],"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":[{"internalType":"uint256","name":"nftWanted","type":"uint256"}],"name":"isSoldOut","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"numberMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"parts","outputs":[{"internalType":"address","name":"wallet","type":"address"},{"internalType":"uint8","name":"salesPart","type":"uint8"},{"internalType":"uint8","name":"royaltiesPart","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"presaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"saleMint","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":[{"components":[{"internalType":"uint64","name":"presaleStart","type":"uint64"},{"internalType":"uint64","name":"presaleEnd","type":"uint64"},{"internalType":"uint64","name":"salePrice","type":"uint64"},{"internalType":"uint8","name":"maxMintsPerTx","type":"uint8"},{"internalType":"uint8","name":"maxMintsPresale","type":"uint8"},{"internalType":"bool","name":"mintPaused","type":"bool"},{"internalType":"bool","name":"frozenURI","type":"bool"}],"internalType":"struct MeteoriaNFT.MeteoriaNFTConfig","name":"newConf","type":"tuple"}],"name":"setConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint96","name":"_feeNumerator","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"meteorium","type":"address"}],"name":"setMeteorium","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"shareETHRoyaltiesPart","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"shareETHSalesPart","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"shareTokenRoyaltiesPart","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":"_nftId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"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"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
600b60809081526a13595d195bdc9a5853919560aa1b60a052610100604052600360c0908152624d544f60e81b60e052733cc6cdda760b79bafa08df41ecfa224f810dceb691600191600262000056838262000ae1565b50600362000065828262000ae1565b50600160005550506daaeb6d7670e522a718067333cd4e3b15620001b25780156200010057604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b158015620000e157600080fd5b505af1158015620000f6573d6000803e3d6000fd5b50505050620001b2565b6001600160a01b03821615620001515760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af290390604401620000c6565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b1580156200019857600080fd5b505af1158015620001ad573d6000803e3d6000fd5b505050505b5050600a604051806060016040528073ecb4278af1379c38eab140063ffc426f05fede286001600160a01b03168152602001601460ff168152602001600f60ff168152509080600181540180825580915050600190039060005260206000200160009091909190915060008201518160000160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060208201518160000160146101000a81548160ff021916908360ff16021790555060408201518160000160156101000a81548160ff021916908360ff16021790555050506001600b600073ecb4278af1379c38eab140063ffc426f05fede286001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff021916908315150217905550600a604051806060016040528073e1580ca711094cf2888716a54c5a8922456534356001600160a01b03168152602001603160ff168152602001604160ff168152509080600181540180825580915050600190039060005260206000200160009091909190915060008201518160000160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060208201518160000160146101000a81548160ff021916908360ff16021790555060408201518160000160156101000a81548160ff021916908360ff16021790555050506001600b600073e1580ca711094cf2888716a54c5a8922456534356001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff021916908315150217905550600a604051806060016040528073963363fc0bdf5d4b48ef3dc5ca374e909f13e7306001600160a01b03168152602001600560ff168152602001600560ff168152509080600181540180825580915050600190039060005260206000200160009091909190915060008201518160000160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060208201518160000160146101000a81548160ff021916908360ff16021790555060408201518160000160156101000a81548160ff021916908360ff1602179055505050600a60405180606001604052807395b5b3c1dc12c6124b077133abc86e809382934e6001600160a01b03168152602001600560ff168152602001600560ff168152509080600181540180825580915050600190039060005260206000200160009091909190915060008201518160000160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060208201518160000160146101000a81548160ff021916908360ff16021790555060408201518160000160156101000a81548160ff021916908360ff1602179055505050600a604051806060016040528073ef581ebe97f20a7eff93fe9149f07f34cd78cae16001600160a01b03168152602001600a60ff168152602001600560ff168152509080600181540180825580915050600190039060005260206000200160009091909190915060008201518160000160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060208201518160000160146101000a81548160ff021916908360ff16021790555060408201518160000160156101000a81548160ff021916908360ff1602179055505050600a60405180606001604052807323a2f69dbb116ff3c878560f23b9ba3a3803020a6001600160a01b03168152602001600160ff168152602001600060ff168152509080600181540180825580915050600190039060005260206000200160009091909190915060008201518160000160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060208201518160000160146101000a81548160ff021916908360ff16021790555060408201518160000160156101000a81548160ff021916908360ff1602179055505050600a60405180606001604052807344d32341f2248937286aeedd53ec9367befc30e86001600160a01b03168152602001600a60ff168152602001600560ff168152509080600181540180825580915050600190039060005260206000200160009091909190915060008201518160000160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060208201518160000160146101000a81548160ff021916908360ff16021790555060408201518160000160156101000a81548160ff021916908360ff16021790555050506200085a62000854620008e160201b60201c565b620008e5565b62000868306101f462000937565b6040805160e081018252636424df108152636424ed20602082015266c3663566a58000918101919091526009606082015260036080820152600060a0820181905260c090910152600e80546001600160e01b03191679030900c3663566a58000000000006424ed20000000006424df1017905562000bad565b3390565b600c80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6127106001600160601b0382161115620009ab5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084015b60405180910390fd5b6001600160a01b03821662000a035760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401620009a2565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600855565b634e487b7160e01b600052604160045260246000fd5b600181811c9082168062000a6757607f821691505b60208210810362000a8857634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111562000adc57600081815260208120601f850160051c8101602086101562000ab75750805b601f850160051c820191505b8181101562000ad85782815560010162000ac3565b5050505b505050565b81516001600160401b0381111562000afd5762000afd62000a3c565b62000b158162000b0e845462000a52565b8462000a8e565b602080601f83116001811462000b4d576000841562000b345750858301515b600019600386901b1c1916600185901b17855562000ad8565b600085815260208120601f198616915b8281101562000b7e5788860151825594840194600190910190840162000b5d565b508582101562000b9d5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b613c168062000bbd6000396000f3fe6080604052600436106102895760003560e01c8063715018a611610153578063b88d4fde116100cb578063dc33e6811161007f578063f0ba9cb811610064578063f0ba9cb814610873578063f2fde38b14610893578063fd24a854146108b357600080fd5b8063dc33e6811461080a578063e985e9c51461082a57600080fd5b8063c87b56dd116100b0578063c87b56dd14610781578063c9eb4662146107a1578063d52c57e0146107ea57600080fd5b8063b88d4fde1461074e578063bf9e98341461076157600080fd5b80638da5cb5b11610122578063a22cb46511610107578063a22cb465146106f5578063a2309ff814610715578063b7d930181461072e57600080fd5b80638da5cb5b146106c257806395d89b41146106e057600080fd5b8063715018a61461055357806379502c55146105685780637bbf4a3f1461067f5780638ca887ca146106af57600080fd5b806323b872dd1161020157806355f804b3116101b5578063688039b91161019a578063688039b9146105095780636c0360eb1461051e57806370a082311461053357600080fd5b806355f804b3146104c95780636352211e146104e957600080fd5b806341f43434116101e657806341f434341461047457806342842e0e1461049657806342966c68146104a957600080fd5b806323b872dd146104225780632a55205a1461043557600080fd5b8063095ea7b31161025857806318160ddd1161023d57806318160ddd146103c65780631ffa6c6c146103ed578063204bfc6e1461040257600080fd5b8063095ea7b314610346578063140364a11461035957600080fd5b806301ffc9a71461029557806304634d8d146102ca57806306fdde03146102ec578063081812fc1461030e57600080fd5b3661029057005b600080fd5b3480156102a157600080fd5b506102b56102b0366004613058565b6108c6565b60405190151581526020015b60405180910390f35b3480156102d657600080fd5b506102ea6102e5366004613091565b6108e6565b005b3480156102f857600080fd5b506103016108fc565b6040516102c19190613129565b34801561031a57600080fd5b5061032e61032936600461313c565b61098e565b6040516001600160a01b0390911681526020016102c1565b6102ea610354366004613155565b6109eb565b34801561036557600080fd5b5061037961037436600461313c565b610a04565b6040516102c1919081516001600160a01b0316815260208083015167ffffffffffffffff169082015260408083015115159082015260609182015162ffffff169181019190915260800190565b3480156103d257600080fd5b5060015460005403600019015b6040519081526020016102c1565b3480156103f957600080fd5b506102ea610a31565b34801561040e57600080fd5b506102ea61041d36600461317f565b610b8e565b6102ea610430366004613197565b610c94565b34801561044157600080fd5b506104556104503660046131d3565b610cbf565b604080516001600160a01b0390931683526020830191909152016102c1565b34801561048057600080fd5b5061032e6daaeb6d7670e522a718067333cd4e81565b6102ea6104a4366004613197565b610d9e565b3480156104b557600080fd5b506102ea6104c436600461313c565b610dc3565b3480156104d557600080fd5b506102ea6104e4366004613237565b610dd1565b3480156104f557600080fd5b5061032e61050436600461313c565b610e80565b34801561051557600080fd5b506102ea610e8b565b34801561052a57600080fd5b50610301610fe7565b34801561053f57600080fd5b506103df61054e366004613279565b611075565b34801561055f57600080fd5b506102ea6110dd565b34801561057457600080fd5b50600e546106339067ffffffffffffffff808216916801000000000000000081048216917001000000000000000000000000000000008204169060ff7801000000000000000000000000000000000000000000000000820481169179010000000000000000000000000000000000000000000000000081048216917a01000000000000000000000000000000000000000000000000000082048116917b0100000000000000000000000000000000000000000000000000000090041687565b6040805167ffffffffffffffff98891681529688166020880152949096169385019390935260ff9182166060850152166080830152151560a082015290151560c082015260e0016102c1565b34801561068b57600080fd5b506102b561069a366004613279565b600b6020526000908152604090205460ff1681565b6102ea6106bd36600461313c565b6110f1565b3480156106ce57600080fd5b50600c546001600160a01b031661032e565b3480156106ec57600080fd5b506103016113eb565b34801561070157600080fd5b506102ea6107103660046132ad565b6113fa565b34801561072157600080fd5b50600054600019016103df565b34801561073a57600080fd5b506102ea610749366004613279565b61140e565b6102ea61075c366004613308565b61147c565b34801561076d57600080fd5b506102ea61077c366004613279565b6114a9565b34801561078d57600080fd5b5061030161079c36600461313c565b61175a565b3480156107ad57600080fd5b506107c16107bc36600461313c565b6117cd565b604080516001600160a01b03909416845260ff92831660208501529116908201526060016102c1565b3480156107f657600080fd5b506102ea6108053660046133e4565b61182f565b34801561081657600080fd5b506103df610825366004613279565b611881565b34801561083657600080fd5b506102b5610845366004613410565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561087f57600080fd5b506102b561088e36600461313c565b6118ac565b34801561089f57600080fd5b506102ea6108ae366004613279565b6118d0565b6102ea6108c136600461343a565b61197c565b60006108d182611df6565b806108e057506108e082611ed7565b92915050565b6108ee611f6e565b6108f88282611fe2565b5050565b60606002805461090b90613486565b80601f016020809104026020016040519081016040528092919081815260200182805461093790613486565b80156109845780601f1061095957610100808354040283529160200191610984565b820191906000526020600020905b81548152906001019060200180831161096757829003601f168201915b5050505050905090565b600061099982612141565b6109cf576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b816109f58161218f565b6109ff838361227a565b505050565b6040805160808101825260008082526020820181905291810182905260608101919091526108e082612368565b336000908152600b602052604090205460ff16610a7a576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b476000819003610ab6576040517f669567ea00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60408051606081018252600080825260208201819052918101829052905b600a548110156109ff57600a8181548110610af157610af16134d3565b60009182526020918290206040805160608101825292909101546001600160a01b038116835260ff740100000000000000000000000000000000000000008204811694840185905275010000000000000000000000000000000000000000009091041690820152925015610b8657610b8682600001516064846020015160ff16860281610b8057610b80613502565b046123f9565b600101610ad4565b610b96611f6e565b600e547b01000000000000000000000000000000000000000000000000000000900460ff168015610bd45750610bd260e0820160c08301613531565b155b15610c0b576040517fcdbbae3b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600e610c18828261358d565b50610c2b905060e0820160c08301613531565b15610c5a576040517f668d78aec4f2992f95f4866cc75cddb478d1f9b1009c4379c2828ff97333156f90600090a15b7f3241ddbd143d35565507d60cafbcb4a46d478e0fb91a66011ea2c9671af274dc81604051610c8991906137e9565b60405180910390a150565b826001600160a01b0381163314610cae57610cae3361218f565b610cb9848484612486565b50505050565b60008281526009602090815260408083208151808301909252546001600160a01b038116808352740100000000000000000000000000000000000000009091046bffffffffffffffffffffffff16928201929092528291610d605750604080518082019091526008546001600160a01b03811682527401000000000000000000000000000000000000000090046bffffffffffffffffffffffff1660208201525b602081015160009061271090610d84906bffffffffffffffffffffffff16876138bb565b610d8e91906138d2565b91519350909150505b9250929050565b826001600160a01b0381163314610db857610db83361218f565b610cb98484846126c4565b610dce8160016126df565b50565b610dd9611f6e565b600e547b01000000000000000000000000000000000000000000000000000000900460ff1615610e35576040517f138380c100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600f610e42828483613953565b507f6741b2fc379fad678116fe3d4d4b9a1a184ab53ba36b86ad0fa66340b1ab41ad8282604051610e74929190613a13565b60405180910390a15050565b60006108e082612891565b336000908152600b602052604090205460ff16610ed4576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b476000819003610f10576040517f669567ea00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60408051606081018252600080825260208201819052918101829052905b600a548110156109ff57600a8181548110610f4b57610f4b6134d3565b60009182526020918290206040805160608101825291909201546001600160a01b038116825260ff7401000000000000000000000000000000000000000082048116948301949094527501000000000000000000000000000000000000000000900490921690820181905290925015610fdf57610fdf82600001516064846040015160ff16860281610b8057610b80613502565b600101610f2e565b600f8054610ff490613486565b80601f016020809104026020016040519081016040528092919081815260200182805461102090613486565b801561106d5780601f106110425761010080835404028352916020019161106d565b820191906000526020600020905b81548152906001019060200180831161105057829003601f168201915b505050505081565b60006001600160a01b0382166110b7576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6110e5611f6e565b6110ef6000612939565b565b33321461112a576040517f9f8129d100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611133816118ac565b1561116a576040517f5fd48f9100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040805160e081018252600e5467ffffffffffffffff8082168352680100000000000000008204811660208401527001000000000000000000000000000000008204169282019290925260ff78010000000000000000000000000000000000000000000000008304811660608301527901000000000000000000000000000000000000000000000000008304811660808301527a0100000000000000000000000000000000000000000000000000008304811615801560a08401527b0100000000000000000000000000000000000000000000000000000090930416151560c082015290611284576040517fd7d248ba00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806020015167ffffffffffffffff164210156112cc576040517fa7283fb900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806060015160ff1682111561130d576040517f9b4d7d3b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600082826040015167ffffffffffffffff16023414611358576040517fde94e21300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506003820480156113e157600d546040517f40c10f19000000000000000000000000000000000000000000000000000000008152336004820152602481018390526001600160a01b03909116906340c10f1990604401600060405180830381600087803b1580156113c857600080fd5b505af11580156113dc573d6000803e3d6000fd5b505050505b6109ff33846129a3565b60606003805461090b90613486565b816114048161218f565b6109ff8383612ad4565b611416611f6e565b600d80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0383169081179091556040519081527f3e9146b2a9714ce35ccf2b0322caf7e1b156af00fa6239c568589ea8fe223ba790602001610c89565b836001600160a01b0381163314611496576114963361218f565b6114a285858585612b5e565b5050505050565b336000908152600b602052604090205460ff166114f2576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015281906000906001600160a01b038316906370a0823190602401602060405180830381865afa158015611554573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115789190613a42565b9050806000036115b4576040517f669567ea00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60408051606081018252600080825260208201819052918101829052905b600a548110156114a257600a81815481106115ef576115ef6134d3565b60009182526020918290206040805160608101825291909201546001600160a01b038116825260ff740100000000000000000000000000000000000000008204811694830194909452750100000000000000000000000000000000000000000090049092169082018190529092501561175257836001600160a01b031663a9059cbb83600001516064856040015160ff168761168b91906138bb565b61169591906138d2565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af11580156116f8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061171c9190613a5b565b611752576040517f90b8ec1800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001016115d2565b606061176582612141565b61179b576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600f6117a683612bbb565b6040516020016117b7929190613a78565b6040516020818303038152906040529050919050565b600a81815481106117dd57600080fd5b6000918252602090912001546001600160a01b038116915060ff740100000000000000000000000000000000000000008204811691750100000000000000000000000000000000000000000090041683565b611837611f6e565b611840826118ac565b15611877576040517f5fd48f9100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6108f881836129a3565b6001600160a01b0381166000908152600560205260408082205467ffffffffffffffff911c166108e0565b6000611770826118bf6000546000190190565b6118c99190613b45565b1192915050565b6118d8611f6e565b6001600160a01b038116611973576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b610dce81612939565b3332146119b5576040517f9f8129d100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6119be836118ac565b156119f5576040517f5fd48f9100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611ad382828080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250506040517fffffffffffffffffffffffffffffffffffffffff0000000000000000000000003360601b166020820152611acd92506034019050604051602081830303815290604052805190602001206040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b90612bff565b6001600160a01b0316738734a7ea99895869a16d2c2fc5dbad78a40f1c706001600160a01b031614611b31576040517f584a793800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040805160e081018252600e5467ffffffffffffffff8082168352680100000000000000008204811660208401527001000000000000000000000000000000008204169282019290925260ff78010000000000000000000000000000000000000000000000008304811660608301527901000000000000000000000000000000000000000000000000008304811660808301527a0100000000000000000000000000000000000000000000000000008304811615801560a08401527b0100000000000000000000000000000000000000000000000000000090930416151560c082015290611c4b576040517fd7d248ba00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805167ffffffffffffffff16421080611c725750806020015167ffffffffffffffff164210155b15611ca9576040517f310a594a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000816080015160ff1685611ce1336001600160a01b03166000908152600560205260409081902054901c67ffffffffffffffff1690565b011115611d1a576040517fa85607a200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b84826040015167ffffffffffffffff16023414611d63576040517fde94e21300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50600384048015611dec57600d546040517f40c10f19000000000000000000000000000000000000000000000000000000008152336004820152602481018390526001600160a01b03909116906340c10f1990604401600060405180830381600087803b158015611dd357600080fd5b505af1158015611de7573d6000803e3d6000fd5b505050505b6114a233866129a3565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff0000000000000000000000000000000000000000000000000000000083161480611e8957507f80ac58cd000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b806108e05750507fffffffff00000000000000000000000000000000000000000000000000000000167f5b5e139f000000000000000000000000000000000000000000000000000000001490565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f2a55205a0000000000000000000000000000000000000000000000000000000014806108e057507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316146108e0565b600c546001600160a01b031633146110ef576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161196a565b6127106bffffffffffffffffffffffff82161115612082576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c2065786365656460448201527f2073616c65507269636500000000000000000000000000000000000000000000606482015260840161196a565b6001600160a01b0382166120f2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f455243323938313a20696e76616c696420726563656976657200000000000000604482015260640161196a565b604080518082019091526001600160a01b039092168083526bffffffffffffffffffffffff90911660209092018290527401000000000000000000000000000000000000000090910217600855565b600081600111158015612155575060005482105b80156108e05750506000908152600460205260409020547c0100000000000000000000000000000000000000000000000000000000161590565b6daaeb6d7670e522a718067333cd4e3b15610dce576040517fc61711340000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015612215573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122399190613a5b565b610dce576040517fede71dcc0000000000000000000000000000000000000000000000000000000081526001600160a01b038216600482015260240161196a565b600061228582610e80565b9050336001600160a01b038216146122f4576001600160a01b038116600090815260076020908152604080832033845290915290205460ff166122f4576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008281526006602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6040805160808101825260008082526020820181905291810182905260608101919091526108e061239883612891565b604080516080810182526001600160a01b038316815260a083901c67ffffffffffffffff1660208201527c0100000000000000000000000000000000000000000000000000000000831615159181019190915260e89190911c606082015290565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612446576040519150601f19603f3d011682016040523d82523d6000602084013e61244b565b606091505b50509050806109ff576040517f90b8ec1800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061249182612891565b9050836001600160a01b0316816001600160a01b0316146124de576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000828152600660205260409020805461250a8187335b6001600160a01b039081169116811491141790565b61256b576001600160a01b038616600090815260076020908152604080832033845290915290205460ff1661256b576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b0385166125ab576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80156125b657600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b177c0200000000000000000000000000000000000000000000000000000000176000858152600460205260408120919091557c02000000000000000000000000000000000000000000000000000000008416900361267a576001840160008181526004602052604081205490036126785760005481146126785760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b6109ff8383836040518060200160405280600081525061147c565b60006126ea83612891565b90508060008061270886600090815260066020526040902080549091565b91509150841561277e5761271d8184336124f5565b61277e576001600160a01b038316600090815260076020908152604080832033845290915290205460ff1661277e576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b801561278957600082555b6001600160a01b038316600081815260056020526040902080546fffffffffffffffffffffffffffffffff0190554260a01b177c0300000000000000000000000000000000000000000000000000000000176000878152600460205260408120919091557c020000000000000000000000000000000000000000000000000000000085169003612849576001860160008181526004602052604081205490036128475760005481146128475760008181526004602052604090208590555b505b60405186906000906001600160a01b038616907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050600180548101905550505050565b600081806001116129075760005481101561290757600081815260046020526040812054907c010000000000000000000000000000000000000000000000000000000082169003612905575b806000036128fe5750600019016000818152600460205260409020546128dd565b9392505050565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600c80546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60008054908290036129e1576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b818114612a9057808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101612a58565b5081600003612acb576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005550505050565b3360008181526007602090815260408083206001600160a01b0387168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b612b69848484610c94565b6001600160a01b0383163b15610cb957612b8584848484612c23565b610cb9576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a900480612bd55750819003601f19909101908152919050565b6000806000612c0e8585612d71565b91509150612c1b81612db3565b509392505050565b6040517f150b7a020000000000000000000000000000000000000000000000000000000081526000906001600160a01b0385169063150b7a0290612c71903390899088908890600401613b58565b6020604051808303816000875af1925050508015612cac575060408051601f3d908101601f19168201909252612ca991810190613b94565b60015b612d23573d808015612cda576040519150601f19603f3d011682016040523d82523d6000602084013e612cdf565b606091505b508051600003612d1b576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050949350505050565b6000808251604103612da75760208301516040840151606085015160001a612d9b87828585612f66565b94509450505050610d97565b50600090506002610d97565b6000816004811115612dc757612dc7613bb1565b03612dcf5750565b6001816004811115612de357612de3613bb1565b03612e4a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161196a565b6002816004811115612e5e57612e5e613bb1565b03612ec5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161196a565b6003816004811115612ed957612ed9613bb1565b03610dce576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f7565000000000000000000000000000000000000000000000000000000000000606482015260840161196a565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612f9d5750600090506003613021565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612ff1573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661301a57600060019250925050613021565b9150600090505b94509492505050565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114610dce57600080fd5b60006020828403121561306a57600080fd5b81356128fe8161302a565b80356001600160a01b038116811461308c57600080fd5b919050565b600080604083850312156130a457600080fd5b6130ad83613075565b915060208301356bffffffffffffffffffffffff811681146130ce57600080fd5b809150509250929050565b60005b838110156130f45781810151838201526020016130dc565b50506000910152565b600081518084526131158160208601602086016130d9565b601f01601f19169290920160200192915050565b6020815260006128fe60208301846130fd565b60006020828403121561314e57600080fd5b5035919050565b6000806040838503121561316857600080fd5b61317183613075565b946020939093013593505050565b600060e0828403121561319157600080fd5b50919050565b6000806000606084860312156131ac57600080fd5b6131b584613075565b92506131c360208501613075565b9150604084013590509250925092565b600080604083850312156131e657600080fd5b50508035926020909101359150565b60008083601f84011261320757600080fd5b50813567ffffffffffffffff81111561321f57600080fd5b602083019150836020828501011115610d9757600080fd5b6000806020838503121561324a57600080fd5b823567ffffffffffffffff81111561326157600080fd5b61326d858286016131f5565b90969095509350505050565b60006020828403121561328b57600080fd5b6128fe82613075565b8015158114610dce57600080fd5b803561308c81613294565b600080604083850312156132c057600080fd5b6132c983613075565b915060208301356130ce81613294565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000806000806080858703121561331e57600080fd5b61332785613075565b935061333560208601613075565b925060408501359150606085013567ffffffffffffffff8082111561335957600080fd5b818701915087601f83011261336d57600080fd5b81358181111561337f5761337f6132d9565b604051601f8201601f19908116603f011681019083821181831017156133a7576133a76132d9565b816040528281528a60208487010111156133c057600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600080604083850312156133f757600080fd5b8235915061340760208401613075565b90509250929050565b6000806040838503121561342357600080fd5b61342c83613075565b915061340760208401613075565b60008060006040848603121561344f57600080fd5b83359250602084013567ffffffffffffffff81111561346d57600080fd5b613479868287016131f5565b9497909650939450505050565b600181811c9082168061349a57607f821691505b602082108103613191577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006020828403121561354357600080fd5b81356128fe81613294565b67ffffffffffffffff81168114610dce57600080fd5b60ff81168114610dce57600080fd5b600081356108e081613564565b600081356108e081613294565b81356135988161354e565b67ffffffffffffffff811690508154817fffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000821617835560208401356135dc8161354e565b6fffffffffffffffff00000000000000008160401b16905080837fffffffffffffffffffffffffffffffff00000000000000000000000000000000841617178455604085013561362b8161354e565b77ffffffffffffffff000000000000000000000000000000008160801b16847fffffffffffffffff0000000000000000000000000000000000000000000000008516178317178555505050506136d061368660608401613573565b82547fffffffffffffff00ffffffffffffffffffffffffffffffffffffffffffffffff1660c09190911b78ff00000000000000000000000000000000000000000000000016178255565b61372a6136df60808401613573565b82547fffffffffffff00ffffffffffffffffffffffffffffffffffffffffffffffffff1660c89190911b79ff0000000000000000000000000000000000000000000000000016178255565b61378961373960a08401613580565b8280547fffffffffff00ffffffffffffffffffffffffffffffffffffffffffffffffffff1691151560d01b7aff000000000000000000000000000000000000000000000000000016919091179055565b6108f861379860c08401613580565b8280547fffffffff00ffffffffffffffffffffffffffffffffffffffffffffffffffffff1691151560d81b7bff00000000000000000000000000000000000000000000000000000016919091179055565b60e0810182356137f88161354e565b67ffffffffffffffff90811683526020840135906138158261354e565b908116602084015260408401359061382c8261354e565b166040830152606083013561384081613564565b60ff166060830152608083013561385681613564565b60ff16608083015261386a60a084016132a2565b151560a083015261387d60c084016132a2565b80151560c08401525092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b80820281158282048414176108e0576108e061388c565b600082613908577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b601f8211156109ff57600081815260208120601f850160051c810160208610156139345750805b601f850160051c820191505b818110156126bc57828155600101613940565b67ffffffffffffffff83111561396b5761396b6132d9565b61397f836139798354613486565b8361390d565b6000601f8411600181146139b3576000851561399b5750838201355b600019600387901b1c1916600186901b1783556114a2565b600083815260209020601f19861690835b828110156139e457868501358255602094850194600190920191016139c4565b5086821015613a015760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b60208152816020820152818360408301376000818301604090810191909152601f909201601f19160101919050565b600060208284031215613a5457600080fd5b5051919050565b600060208284031215613a6d57600080fd5b81516128fe81613294565b6000808454613a8681613486565b60018281168015613a9e5760018114613ad157613b00565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0084168752821515830287019450613b00565b8860005260208060002060005b85811015613af75781548a820152908401908201613ade565b50505082870194505b505050508351613b148183602088016130d9565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000009101908152600501949350505050565b808201808211156108e0576108e061388c565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613b8a60808301846130fd565b9695505050505050565b600060208284031215613ba657600080fd5b81516128fe8161302a565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fdfea2646970667358221220ef9c0b3aa82e6772b8bc08e7379a28e9a1b3aa008c9cdca5de9eeb705c841a0464736f6c63430008120033
Deployed Bytecode
0x6080604052600436106102895760003560e01c8063715018a611610153578063b88d4fde116100cb578063dc33e6811161007f578063f0ba9cb811610064578063f0ba9cb814610873578063f2fde38b14610893578063fd24a854146108b357600080fd5b8063dc33e6811461080a578063e985e9c51461082a57600080fd5b8063c87b56dd116100b0578063c87b56dd14610781578063c9eb4662146107a1578063d52c57e0146107ea57600080fd5b8063b88d4fde1461074e578063bf9e98341461076157600080fd5b80638da5cb5b11610122578063a22cb46511610107578063a22cb465146106f5578063a2309ff814610715578063b7d930181461072e57600080fd5b80638da5cb5b146106c257806395d89b41146106e057600080fd5b8063715018a61461055357806379502c55146105685780637bbf4a3f1461067f5780638ca887ca146106af57600080fd5b806323b872dd1161020157806355f804b3116101b5578063688039b91161019a578063688039b9146105095780636c0360eb1461051e57806370a082311461053357600080fd5b806355f804b3146104c95780636352211e146104e957600080fd5b806341f43434116101e657806341f434341461047457806342842e0e1461049657806342966c68146104a957600080fd5b806323b872dd146104225780632a55205a1461043557600080fd5b8063095ea7b31161025857806318160ddd1161023d57806318160ddd146103c65780631ffa6c6c146103ed578063204bfc6e1461040257600080fd5b8063095ea7b314610346578063140364a11461035957600080fd5b806301ffc9a71461029557806304634d8d146102ca57806306fdde03146102ec578063081812fc1461030e57600080fd5b3661029057005b600080fd5b3480156102a157600080fd5b506102b56102b0366004613058565b6108c6565b60405190151581526020015b60405180910390f35b3480156102d657600080fd5b506102ea6102e5366004613091565b6108e6565b005b3480156102f857600080fd5b506103016108fc565b6040516102c19190613129565b34801561031a57600080fd5b5061032e61032936600461313c565b61098e565b6040516001600160a01b0390911681526020016102c1565b6102ea610354366004613155565b6109eb565b34801561036557600080fd5b5061037961037436600461313c565b610a04565b6040516102c1919081516001600160a01b0316815260208083015167ffffffffffffffff169082015260408083015115159082015260609182015162ffffff169181019190915260800190565b3480156103d257600080fd5b5060015460005403600019015b6040519081526020016102c1565b3480156103f957600080fd5b506102ea610a31565b34801561040e57600080fd5b506102ea61041d36600461317f565b610b8e565b6102ea610430366004613197565b610c94565b34801561044157600080fd5b506104556104503660046131d3565b610cbf565b604080516001600160a01b0390931683526020830191909152016102c1565b34801561048057600080fd5b5061032e6daaeb6d7670e522a718067333cd4e81565b6102ea6104a4366004613197565b610d9e565b3480156104b557600080fd5b506102ea6104c436600461313c565b610dc3565b3480156104d557600080fd5b506102ea6104e4366004613237565b610dd1565b3480156104f557600080fd5b5061032e61050436600461313c565b610e80565b34801561051557600080fd5b506102ea610e8b565b34801561052a57600080fd5b50610301610fe7565b34801561053f57600080fd5b506103df61054e366004613279565b611075565b34801561055f57600080fd5b506102ea6110dd565b34801561057457600080fd5b50600e546106339067ffffffffffffffff808216916801000000000000000081048216917001000000000000000000000000000000008204169060ff7801000000000000000000000000000000000000000000000000820481169179010000000000000000000000000000000000000000000000000081048216917a01000000000000000000000000000000000000000000000000000082048116917b0100000000000000000000000000000000000000000000000000000090041687565b6040805167ffffffffffffffff98891681529688166020880152949096169385019390935260ff9182166060850152166080830152151560a082015290151560c082015260e0016102c1565b34801561068b57600080fd5b506102b561069a366004613279565b600b6020526000908152604090205460ff1681565b6102ea6106bd36600461313c565b6110f1565b3480156106ce57600080fd5b50600c546001600160a01b031661032e565b3480156106ec57600080fd5b506103016113eb565b34801561070157600080fd5b506102ea6107103660046132ad565b6113fa565b34801561072157600080fd5b50600054600019016103df565b34801561073a57600080fd5b506102ea610749366004613279565b61140e565b6102ea61075c366004613308565b61147c565b34801561076d57600080fd5b506102ea61077c366004613279565b6114a9565b34801561078d57600080fd5b5061030161079c36600461313c565b61175a565b3480156107ad57600080fd5b506107c16107bc36600461313c565b6117cd565b604080516001600160a01b03909416845260ff92831660208501529116908201526060016102c1565b3480156107f657600080fd5b506102ea6108053660046133e4565b61182f565b34801561081657600080fd5b506103df610825366004613279565b611881565b34801561083657600080fd5b506102b5610845366004613410565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561087f57600080fd5b506102b561088e36600461313c565b6118ac565b34801561089f57600080fd5b506102ea6108ae366004613279565b6118d0565b6102ea6108c136600461343a565b61197c565b60006108d182611df6565b806108e057506108e082611ed7565b92915050565b6108ee611f6e565b6108f88282611fe2565b5050565b60606002805461090b90613486565b80601f016020809104026020016040519081016040528092919081815260200182805461093790613486565b80156109845780601f1061095957610100808354040283529160200191610984565b820191906000526020600020905b81548152906001019060200180831161096757829003601f168201915b5050505050905090565b600061099982612141565b6109cf576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b816109f58161218f565b6109ff838361227a565b505050565b6040805160808101825260008082526020820181905291810182905260608101919091526108e082612368565b336000908152600b602052604090205460ff16610a7a576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b476000819003610ab6576040517f669567ea00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60408051606081018252600080825260208201819052918101829052905b600a548110156109ff57600a8181548110610af157610af16134d3565b60009182526020918290206040805160608101825292909101546001600160a01b038116835260ff740100000000000000000000000000000000000000008204811694840185905275010000000000000000000000000000000000000000009091041690820152925015610b8657610b8682600001516064846020015160ff16860281610b8057610b80613502565b046123f9565b600101610ad4565b610b96611f6e565b600e547b01000000000000000000000000000000000000000000000000000000900460ff168015610bd45750610bd260e0820160c08301613531565b155b15610c0b576040517fcdbbae3b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600e610c18828261358d565b50610c2b905060e0820160c08301613531565b15610c5a576040517f668d78aec4f2992f95f4866cc75cddb478d1f9b1009c4379c2828ff97333156f90600090a15b7f3241ddbd143d35565507d60cafbcb4a46d478e0fb91a66011ea2c9671af274dc81604051610c8991906137e9565b60405180910390a150565b826001600160a01b0381163314610cae57610cae3361218f565b610cb9848484612486565b50505050565b60008281526009602090815260408083208151808301909252546001600160a01b038116808352740100000000000000000000000000000000000000009091046bffffffffffffffffffffffff16928201929092528291610d605750604080518082019091526008546001600160a01b03811682527401000000000000000000000000000000000000000090046bffffffffffffffffffffffff1660208201525b602081015160009061271090610d84906bffffffffffffffffffffffff16876138bb565b610d8e91906138d2565b91519350909150505b9250929050565b826001600160a01b0381163314610db857610db83361218f565b610cb98484846126c4565b610dce8160016126df565b50565b610dd9611f6e565b600e547b01000000000000000000000000000000000000000000000000000000900460ff1615610e35576040517f138380c100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600f610e42828483613953565b507f6741b2fc379fad678116fe3d4d4b9a1a184ab53ba36b86ad0fa66340b1ab41ad8282604051610e74929190613a13565b60405180910390a15050565b60006108e082612891565b336000908152600b602052604090205460ff16610ed4576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b476000819003610f10576040517f669567ea00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60408051606081018252600080825260208201819052918101829052905b600a548110156109ff57600a8181548110610f4b57610f4b6134d3565b60009182526020918290206040805160608101825291909201546001600160a01b038116825260ff7401000000000000000000000000000000000000000082048116948301949094527501000000000000000000000000000000000000000000900490921690820181905290925015610fdf57610fdf82600001516064846040015160ff16860281610b8057610b80613502565b600101610f2e565b600f8054610ff490613486565b80601f016020809104026020016040519081016040528092919081815260200182805461102090613486565b801561106d5780601f106110425761010080835404028352916020019161106d565b820191906000526020600020905b81548152906001019060200180831161105057829003601f168201915b505050505081565b60006001600160a01b0382166110b7576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6110e5611f6e565b6110ef6000612939565b565b33321461112a576040517f9f8129d100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611133816118ac565b1561116a576040517f5fd48f9100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040805160e081018252600e5467ffffffffffffffff8082168352680100000000000000008204811660208401527001000000000000000000000000000000008204169282019290925260ff78010000000000000000000000000000000000000000000000008304811660608301527901000000000000000000000000000000000000000000000000008304811660808301527a0100000000000000000000000000000000000000000000000000008304811615801560a08401527b0100000000000000000000000000000000000000000000000000000090930416151560c082015290611284576040517fd7d248ba00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806020015167ffffffffffffffff164210156112cc576040517fa7283fb900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806060015160ff1682111561130d576040517f9b4d7d3b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600082826040015167ffffffffffffffff16023414611358576040517fde94e21300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506003820480156113e157600d546040517f40c10f19000000000000000000000000000000000000000000000000000000008152336004820152602481018390526001600160a01b03909116906340c10f1990604401600060405180830381600087803b1580156113c857600080fd5b505af11580156113dc573d6000803e3d6000fd5b505050505b6109ff33846129a3565b60606003805461090b90613486565b816114048161218f565b6109ff8383612ad4565b611416611f6e565b600d80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0383169081179091556040519081527f3e9146b2a9714ce35ccf2b0322caf7e1b156af00fa6239c568589ea8fe223ba790602001610c89565b836001600160a01b0381163314611496576114963361218f565b6114a285858585612b5e565b5050505050565b336000908152600b602052604090205460ff166114f2576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015281906000906001600160a01b038316906370a0823190602401602060405180830381865afa158015611554573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115789190613a42565b9050806000036115b4576040517f669567ea00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60408051606081018252600080825260208201819052918101829052905b600a548110156114a257600a81815481106115ef576115ef6134d3565b60009182526020918290206040805160608101825291909201546001600160a01b038116825260ff740100000000000000000000000000000000000000008204811694830194909452750100000000000000000000000000000000000000000090049092169082018190529092501561175257836001600160a01b031663a9059cbb83600001516064856040015160ff168761168b91906138bb565b61169591906138d2565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af11580156116f8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061171c9190613a5b565b611752576040517f90b8ec1800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001016115d2565b606061176582612141565b61179b576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600f6117a683612bbb565b6040516020016117b7929190613a78565b6040516020818303038152906040529050919050565b600a81815481106117dd57600080fd5b6000918252602090912001546001600160a01b038116915060ff740100000000000000000000000000000000000000008204811691750100000000000000000000000000000000000000000090041683565b611837611f6e565b611840826118ac565b15611877576040517f5fd48f9100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6108f881836129a3565b6001600160a01b0381166000908152600560205260408082205467ffffffffffffffff911c166108e0565b6000611770826118bf6000546000190190565b6118c99190613b45565b1192915050565b6118d8611f6e565b6001600160a01b038116611973576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b610dce81612939565b3332146119b5576040517f9f8129d100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6119be836118ac565b156119f5576040517f5fd48f9100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611ad382828080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250506040517fffffffffffffffffffffffffffffffffffffffff0000000000000000000000003360601b166020820152611acd92506034019050604051602081830303815290604052805190602001206040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b90612bff565b6001600160a01b0316738734a7ea99895869a16d2c2fc5dbad78a40f1c706001600160a01b031614611b31576040517f584a793800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040805160e081018252600e5467ffffffffffffffff8082168352680100000000000000008204811660208401527001000000000000000000000000000000008204169282019290925260ff78010000000000000000000000000000000000000000000000008304811660608301527901000000000000000000000000000000000000000000000000008304811660808301527a0100000000000000000000000000000000000000000000000000008304811615801560a08401527b0100000000000000000000000000000000000000000000000000000090930416151560c082015290611c4b576040517fd7d248ba00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805167ffffffffffffffff16421080611c725750806020015167ffffffffffffffff164210155b15611ca9576040517f310a594a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000816080015160ff1685611ce1336001600160a01b03166000908152600560205260409081902054901c67ffffffffffffffff1690565b011115611d1a576040517fa85607a200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b84826040015167ffffffffffffffff16023414611d63576040517fde94e21300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50600384048015611dec57600d546040517f40c10f19000000000000000000000000000000000000000000000000000000008152336004820152602481018390526001600160a01b03909116906340c10f1990604401600060405180830381600087803b158015611dd357600080fd5b505af1158015611de7573d6000803e3d6000fd5b505050505b6114a233866129a3565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff0000000000000000000000000000000000000000000000000000000083161480611e8957507f80ac58cd000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b806108e05750507fffffffff00000000000000000000000000000000000000000000000000000000167f5b5e139f000000000000000000000000000000000000000000000000000000001490565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f2a55205a0000000000000000000000000000000000000000000000000000000014806108e057507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316146108e0565b600c546001600160a01b031633146110ef576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161196a565b6127106bffffffffffffffffffffffff82161115612082576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c2065786365656460448201527f2073616c65507269636500000000000000000000000000000000000000000000606482015260840161196a565b6001600160a01b0382166120f2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f455243323938313a20696e76616c696420726563656976657200000000000000604482015260640161196a565b604080518082019091526001600160a01b039092168083526bffffffffffffffffffffffff90911660209092018290527401000000000000000000000000000000000000000090910217600855565b600081600111158015612155575060005482105b80156108e05750506000908152600460205260409020547c0100000000000000000000000000000000000000000000000000000000161590565b6daaeb6d7670e522a718067333cd4e3b15610dce576040517fc61711340000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015612215573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122399190613a5b565b610dce576040517fede71dcc0000000000000000000000000000000000000000000000000000000081526001600160a01b038216600482015260240161196a565b600061228582610e80565b9050336001600160a01b038216146122f4576001600160a01b038116600090815260076020908152604080832033845290915290205460ff166122f4576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008281526006602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6040805160808101825260008082526020820181905291810182905260608101919091526108e061239883612891565b604080516080810182526001600160a01b038316815260a083901c67ffffffffffffffff1660208201527c0100000000000000000000000000000000000000000000000000000000831615159181019190915260e89190911c606082015290565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612446576040519150601f19603f3d011682016040523d82523d6000602084013e61244b565b606091505b50509050806109ff576040517f90b8ec1800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061249182612891565b9050836001600160a01b0316816001600160a01b0316146124de576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000828152600660205260409020805461250a8187335b6001600160a01b039081169116811491141790565b61256b576001600160a01b038616600090815260076020908152604080832033845290915290205460ff1661256b576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b0385166125ab576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80156125b657600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b177c0200000000000000000000000000000000000000000000000000000000176000858152600460205260408120919091557c02000000000000000000000000000000000000000000000000000000008416900361267a576001840160008181526004602052604081205490036126785760005481146126785760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b6109ff8383836040518060200160405280600081525061147c565b60006126ea83612891565b90508060008061270886600090815260066020526040902080549091565b91509150841561277e5761271d8184336124f5565b61277e576001600160a01b038316600090815260076020908152604080832033845290915290205460ff1661277e576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b801561278957600082555b6001600160a01b038316600081815260056020526040902080546fffffffffffffffffffffffffffffffff0190554260a01b177c0300000000000000000000000000000000000000000000000000000000176000878152600460205260408120919091557c020000000000000000000000000000000000000000000000000000000085169003612849576001860160008181526004602052604081205490036128475760005481146128475760008181526004602052604090208590555b505b60405186906000906001600160a01b038616907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050600180548101905550505050565b600081806001116129075760005481101561290757600081815260046020526040812054907c010000000000000000000000000000000000000000000000000000000082169003612905575b806000036128fe5750600019016000818152600460205260409020546128dd565b9392505050565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600c80546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60008054908290036129e1576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b818114612a9057808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101612a58565b5081600003612acb576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005550505050565b3360008181526007602090815260408083206001600160a01b0387168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b612b69848484610c94565b6001600160a01b0383163b15610cb957612b8584848484612c23565b610cb9576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a900480612bd55750819003601f19909101908152919050565b6000806000612c0e8585612d71565b91509150612c1b81612db3565b509392505050565b6040517f150b7a020000000000000000000000000000000000000000000000000000000081526000906001600160a01b0385169063150b7a0290612c71903390899088908890600401613b58565b6020604051808303816000875af1925050508015612cac575060408051601f3d908101601f19168201909252612ca991810190613b94565b60015b612d23573d808015612cda576040519150601f19603f3d011682016040523d82523d6000602084013e612cdf565b606091505b508051600003612d1b576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050949350505050565b6000808251604103612da75760208301516040840151606085015160001a612d9b87828585612f66565b94509450505050610d97565b50600090506002610d97565b6000816004811115612dc757612dc7613bb1565b03612dcf5750565b6001816004811115612de357612de3613bb1565b03612e4a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161196a565b6002816004811115612e5e57612e5e613bb1565b03612ec5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161196a565b6003816004811115612ed957612ed9613bb1565b03610dce576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f7565000000000000000000000000000000000000000000000000000000000000606482015260840161196a565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612f9d5750600090506003613021565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612ff1573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661301a57600060019250925050613021565b9150600090505b94509492505050565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114610dce57600080fd5b60006020828403121561306a57600080fd5b81356128fe8161302a565b80356001600160a01b038116811461308c57600080fd5b919050565b600080604083850312156130a457600080fd5b6130ad83613075565b915060208301356bffffffffffffffffffffffff811681146130ce57600080fd5b809150509250929050565b60005b838110156130f45781810151838201526020016130dc565b50506000910152565b600081518084526131158160208601602086016130d9565b601f01601f19169290920160200192915050565b6020815260006128fe60208301846130fd565b60006020828403121561314e57600080fd5b5035919050565b6000806040838503121561316857600080fd5b61317183613075565b946020939093013593505050565b600060e0828403121561319157600080fd5b50919050565b6000806000606084860312156131ac57600080fd5b6131b584613075565b92506131c360208501613075565b9150604084013590509250925092565b600080604083850312156131e657600080fd5b50508035926020909101359150565b60008083601f84011261320757600080fd5b50813567ffffffffffffffff81111561321f57600080fd5b602083019150836020828501011115610d9757600080fd5b6000806020838503121561324a57600080fd5b823567ffffffffffffffff81111561326157600080fd5b61326d858286016131f5565b90969095509350505050565b60006020828403121561328b57600080fd5b6128fe82613075565b8015158114610dce57600080fd5b803561308c81613294565b600080604083850312156132c057600080fd5b6132c983613075565b915060208301356130ce81613294565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000806000806080858703121561331e57600080fd5b61332785613075565b935061333560208601613075565b925060408501359150606085013567ffffffffffffffff8082111561335957600080fd5b818701915087601f83011261336d57600080fd5b81358181111561337f5761337f6132d9565b604051601f8201601f19908116603f011681019083821181831017156133a7576133a76132d9565b816040528281528a60208487010111156133c057600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600080604083850312156133f757600080fd5b8235915061340760208401613075565b90509250929050565b6000806040838503121561342357600080fd5b61342c83613075565b915061340760208401613075565b60008060006040848603121561344f57600080fd5b83359250602084013567ffffffffffffffff81111561346d57600080fd5b613479868287016131f5565b9497909650939450505050565b600181811c9082168061349a57607f821691505b602082108103613191577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006020828403121561354357600080fd5b81356128fe81613294565b67ffffffffffffffff81168114610dce57600080fd5b60ff81168114610dce57600080fd5b600081356108e081613564565b600081356108e081613294565b81356135988161354e565b67ffffffffffffffff811690508154817fffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000821617835560208401356135dc8161354e565b6fffffffffffffffff00000000000000008160401b16905080837fffffffffffffffffffffffffffffffff00000000000000000000000000000000841617178455604085013561362b8161354e565b77ffffffffffffffff000000000000000000000000000000008160801b16847fffffffffffffffff0000000000000000000000000000000000000000000000008516178317178555505050506136d061368660608401613573565b82547fffffffffffffff00ffffffffffffffffffffffffffffffffffffffffffffffff1660c09190911b78ff00000000000000000000000000000000000000000000000016178255565b61372a6136df60808401613573565b82547fffffffffffff00ffffffffffffffffffffffffffffffffffffffffffffffffff1660c89190911b79ff0000000000000000000000000000000000000000000000000016178255565b61378961373960a08401613580565b8280547fffffffffff00ffffffffffffffffffffffffffffffffffffffffffffffffffff1691151560d01b7aff000000000000000000000000000000000000000000000000000016919091179055565b6108f861379860c08401613580565b8280547fffffffff00ffffffffffffffffffffffffffffffffffffffffffffffffffffff1691151560d81b7bff00000000000000000000000000000000000000000000000000000016919091179055565b60e0810182356137f88161354e565b67ffffffffffffffff90811683526020840135906138158261354e565b908116602084015260408401359061382c8261354e565b166040830152606083013561384081613564565b60ff166060830152608083013561385681613564565b60ff16608083015261386a60a084016132a2565b151560a083015261387d60c084016132a2565b80151560c08401525092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b80820281158282048414176108e0576108e061388c565b600082613908577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b601f8211156109ff57600081815260208120601f850160051c810160208610156139345750805b601f850160051c820191505b818110156126bc57828155600101613940565b67ffffffffffffffff83111561396b5761396b6132d9565b61397f836139798354613486565b8361390d565b6000601f8411600181146139b3576000851561399b5750838201355b600019600387901b1c1916600186901b1783556114a2565b600083815260209020601f19861690835b828110156139e457868501358255602094850194600190920191016139c4565b5086821015613a015760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b60208152816020820152818360408301376000818301604090810191909152601f909201601f19160101919050565b600060208284031215613a5457600080fd5b5051919050565b600060208284031215613a6d57600080fd5b81516128fe81613294565b6000808454613a8681613486565b60018281168015613a9e5760018114613ad157613b00565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0084168752821515830287019450613b00565b8860005260208060002060005b85811015613af75781548a820152908401908201613ade565b50505082870194505b505050508351613b148183602088016130d9565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000009101908152600501949350505050565b808201808211156108e0576108e061388c565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613b8a60808301846130fd565b9695505050505050565b600060208284031215613ba657600080fd5b81516128fe8161302a565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fdfea2646970667358221220ef9c0b3aa82e6772b8bc08e7379a28e9a1b3aa008c9cdca5de9eeb705c841a0464736f6c63430008120033
Deployed Bytecode Sourcemap
101559:7355:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;104523:244;;;;;;;;;;-1:-1:-1;104523:244:0;;;;;:::i;:::-;;:::i;:::-;;;707:14:1;;700:22;682:41;;670:2;655:18;104523:244:0;;;;;;;;103189:173;;;;;;;;;;-1:-1:-1;103189:173:0;;;;;:::i;:::-;;:::i;:::-;;22915:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;29406:218::-;;;;;;;;;;-1:-1:-1;29406:218:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;2470:55:1;;;2452:74;;2440:2;2425:18;29406:218:0;2306:226:1;104984:190:0;;;;;;:::i;:::-;;:::i;104228:147::-;;;;;;;;;;-1:-1:-1;104228:147:0;;;;;:::i;:::-;;:::i;:::-;;;;;;3027:13:1;;-1:-1:-1;;;;;3023:62:1;3005:81;;3146:4;3134:17;;;3128:24;3154:18;3124:49;3102:20;;;3095:79;3244:4;3232:17;;;3226:24;3219:32;3212:40;3190:20;;;3183:70;3313:4;3301:17;;;3295:24;3321:8;3291:39;3269:20;;;3262:69;;;;2992:3;2977:19;;2796:541;18666:323:0;;;;;;;;;;-1:-1:-1;108902:1:0;18940:12;18727:7;18924:13;:28;-1:-1:-1;;18924:46:0;18666:323;;;3488:25:1;;;3476:2;3461:18;18666:323:0;3342:177:1;1349:674:0;;;;;;;;;;;;;:::i;103370:295::-;;;;;;;;;;-1:-1:-1;103370:295:0;;;;;:::i;:::-;;:::i;105182:205::-;;;;;;:::i;:::-;;:::i;70632:442::-;;;;;;;;;;-1:-1:-1;70632:442:0;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;4511:55:1;;;4493:74;;4598:2;4583:18;;4576:34;;;;4466:18;70632:442:0;4319:297:1;62779:143:0;;;;;;;;;;;;55195:42;62779:143;;105395:213;;;;;;:::i;:::-;;:::i;106132:85::-;;;;;;;;;;-1:-1:-1;106132:85:0;;;;;:::i;:::-;;:::i;103839:209::-;;;;;;;;;;-1:-1:-1;103839:209:0;;;;;:::i;:::-;;:::i;24308:152::-;;;;;;;;;;-1:-1:-1;24308:152:0;;;;;:::i;:::-;;:::i;2031:616::-;;;;;;;;;;;;;:::i;102590:21::-;;;;;;;;;;;;;:::i;19850:233::-;;;;;;;;;;-1:-1:-1;19850:233:0;;;;;:::i;:::-;;:::i;75905:103::-;;;;;;;;;;;;;:::i;102528:31::-;;;;;;;;;;-1:-1:-1;102528:31:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6143:18:1;6188:15;;;6170:34;;6240:15;;;6235:2;6220:18;;6213:43;6292:15;;;;6272:18;;;6265:43;;;;6356:4;6344:17;;;6339:2;6324:18;;6317:45;6399:17;6393:3;6378:19;;6371:46;6461:14;6454:22;6448:3;6433:19;;6426:51;6521:14;;6514:22;6508:3;6493:19;;6486:51;6120:3;6105:19;102528:31:0;5844:699:1;580:39:0;;;;;;;;;;-1:-1:-1;580:39:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;108011:799;;;;;;:::i;:::-;;:::i;75257:87::-;;;;;;;;;;-1:-1:-1;75330:6:0;;-1:-1:-1;;;;;75330:6:0;75257:87;;23091:104;;;;;;;;;;;;;:::i;104775:201::-;;;;;;;;;;-1:-1:-1;104775:201:0;;;;;:::i;:::-;;:::i;106225:95::-;;;;;;;;;;-1:-1:-1;106271:7:0;19333:13;-1:-1:-1;;19333:31:0;106225:95;;103673:158;;;;;;;;;;-1:-1:-1;103673:158:0;;;;;:::i;:::-;;:::i;105616:247::-;;;;;;:::i;:::-;;:::i;2656:716::-;;;;;;;;;;-1:-1:-1;2656:716:0;;;;;:::i;:::-;;:::i;105871:253::-;;;;;;;;;;-1:-1:-1;105871:253:0;;;;;:::i;:::-;;:::i;554:19::-;;;;;;;;;;-1:-1:-1;554:19:0;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;8727:55:1;;;8709:74;;8831:4;8819:17;;;8814:2;8799:18;;8792:45;8873:17;;8853:18;;;8846:45;8697:2;8682:18;554:19:0;8515:382:1;104056:164:0;;;;;;;;;;-1:-1:-1;104056:164:0;;;;;:::i;:::-;;:::i;106328:115::-;;;;;;;;;;-1:-1:-1;106328:115:0;;;;;:::i;:::-;;:::i;30355:164::-;;;;;;;;;;-1:-1:-1;30355:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;30476:25:0;;;30452:4;30476:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;30355:164;104383:132;;;;;;;;;;-1:-1:-1;104383:132:0;;;;;:::i;:::-;;:::i;76163:201::-;;;;;;;;;;-1:-1:-1;76163:201:0;;;;;:::i;:::-;;:::i;106451:1552::-;;;;;;:::i;:::-;;:::i;104523:244::-;104642:4;104666:38;104692:11;104666:25;:38::i;:::-;:93;;;;104721:38;104747:11;104721:25;:38::i;:::-;104659:100;104523:244;-1:-1:-1;;104523:244:0:o;103189:173::-;75143:13;:11;:13::i;:::-;103310:44:::1;103329:9;103340:13;103310:18;:44::i;:::-;103189:173:::0;;:::o;22915:100::-;22969:13;23002:5;22995:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22915:100;:::o;29406:218::-;29482:7;29507:16;29515:7;29507;:16::i;:::-;29502:64;;29532:34;;;;;;;;;;;;;;29502:64;-1:-1:-1;29586:24:0;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;29586:30:0;;29406:218::o;104984:190::-;105113:8;64561:30;64582:8;64561:20;:30::i;:::-;105134:32:::1;105148:8;105158:7;105134:13;:32::i;:::-;104984:190:::0;;;:::o;104228:147::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;104346:21:0;104359:7;104346:12;:21::i;1349:674::-;1411:10;1403:19;;;;:7;:19;;;;;;;;1398:60;;1444:14;;;;;;;;;;;;;;1398:60;1489:21;1471:15;1527:12;;;1523:38;;1548:13;;;;;;;;;;;;;;1523:38;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;1603:413:0;1623:5;:12;1619:16;;1603:413;;;1660:5;1666:1;1660:8;;;;;;;;:::i;:::-;;;;;;;;;;1653:15;;;;;;;;1660:8;;;;1653:15;-1:-1:-1;;;;;1653:15:0;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1775:19:0;1771:195;;1819:127;1855:4;:11;;;1920:3;1903:4;:14;;;1893:24;;:7;:24;:30;;;;;:::i;:::-;;1819:9;:127::i;:::-;1986:3;;1603:413;;103370:295;75143:13;:11;:13::i;:::-;103459:6:::1;:16:::0;;;::::1;;;:38:::0;::::1;;;-1:-1:-1::0;103480:17:0::1;::::0;;;::::1;::::0;::::1;;:::i;:::-;103479:18;103459:38;103455:70;;;103506:19;;;;;;;;;;;;;;103455:70;103547:7:::0;103538:6:::1;:16;103547:7:::0;103538:6;:16:::1;:::i;:::-;-1:-1:-1::0;103571:17:0::1;::::0;-1:-1:-1;103571:17:0;;;::::1;::::0;::::1;;:::i;:::-;103567:39;;;103595:11;::::0;::::1;::::0;;;::::1;103567:39;103624:33;103649:7;103624:33;;;;;;:::i;:::-;;;;;;;;103370:295:::0;:::o;105182:205::-;105325:4;-1:-1:-1;;;;;64287:18:0;;64295:10;64287:18;64283:83;;64322:32;64343:10;64322:20;:32::i;:::-;105342:37:::1;105361:4;105367:2;105371:7;105342:18;:37::i;:::-;105182:205:::0;;;;:::o;70632:442::-;70729:7;70787:27;;;:17;:27;;;;;;;;70758:56;;;;;;;;;-1:-1:-1;;;;;70758:56:0;;;;;;;;;;;;;;;;;;70729:7;;70827:92;;-1:-1:-1;70878:29:0;;;;;;;;;70888:19;70878:29;-1:-1:-1;;;;;70878:29:0;;;;;;;;;;;;;70827:92;70969:23;;;;70931:21;;71440:5;;70956:36;;70955:58;70956:36;:10;:36;:::i;:::-;70955:58;;;;:::i;:::-;71034:16;;;-1:-1:-1;70931:82:0;;-1:-1:-1;;70632:442:0;;;;;;:::o;105395:213::-;105542:4;-1:-1:-1;;;;;64287:18:0;;64295:10;64287:18;64283:83;;64322:32;64343:10;64322:20;:32::i;:::-;105559:41:::1;105582:4;105588:2;105592:7;105559:22;:41::i;106132:85::-:0;106189:20;106195:7;106204:4;106189:5;:20::i;:::-;106132:85;:::o;103839:209::-;75143:13;:11;:13::i;:::-;103919:6:::1;:16:::0;;;::::1;;;103915:52;;;103944:23;;;;;;;;;;;;;;103915:52;103980:7;:18;103990:8:::0;;103980:7;:18:::1;:::i;:::-;;104016:24;104031:8;;104016:24;;;;;;;:::i;:::-;;;;;;;;103839:209:::0;;:::o;24308:152::-;24380:7;24423:27;24442:7;24423:18;:27::i;2031:616::-;2097:10;2089:19;;;;:7;:19;;;;;;;;2084:47;;2117:14;;;;;;;;;;;;;;2084:47;2162:21;2144:15;2200:12;;;2196:38;;2221:13;;;;;;;;;;;;;;2196:38;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;2276:364:0;2296:5;:12;2292:16;;2276:364;;;2333:5;2339:1;2333:8;;;;;;;;:::i;:::-;;;;;;;;;;2326:15;;;;;;;;2333:8;;;;2326:15;-1:-1:-1;;;;;2326:15:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2391:23:0;2387:203;;2439:131;2475:4;:11;;;2544:3;2523:4;:18;;;2513:28;;:7;:28;:34;;;;;:::i;2439:131::-;2610:3;;2276:364;;102590:21;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;19850:233::-;19922:7;-1:-1:-1;;;;;19946:19:0;;19942:60;;19974:28;;;;;;;;;;;;;;19942:60;-1:-1:-1;;;;;;20020:25:0;;;;;:18;:25;;;;;;14009:13;20020:55;;19850:233::o;75905:103::-;75143:13;:11;:13::i;:::-;75970:30:::1;75997:1;75970:18;:30::i;:::-;75905:103::o:0;108011:799::-;108077:10;108091:9;108077:23;108073:45;;108109:9;;;;;;;;;;;;;;108073:45;108133:17;108143:6;108133:9;:17::i;:::-;108129:49;;;108159:19;;;;;;;;;;;;;;108129:49;108191:38;;;;;;;;108223:6;108191:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;108242:40;;108270:12;;;;;;;;;;;;;;108242:40;108315:4;:15;;;108297:33;;:15;:33;108293:55;;;108339:9;;;;;;;;;;;;;;108293:55;108372:4;:18;;;108363:27;;:6;:27;108359:63;;;108399:23;;;;;;;;;;;;;;108359:63;108435:23;108530:6;108513:4;:14;;;:23;;;108500:9;:36;108496:85;;108562:19;;;;;;;;;;;;;;108496:85;-1:-1:-1;102480:1:0;108616:29;;108673:19;;108669:96;;108709:10;;:44;;;;;108725:10;108709:44;;;4493:74:1;4583:18;;;4576:34;;;-1:-1:-1;;;;;108709:10:0;;;;:15;;4466:18:1;;108709:44:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;108669:96;108777:25;108783:10;108795:6;108777:5;:25::i;23091:104::-;23147:13;23180:7;23173:14;;;;;:::i;104775:201::-;104904:8;64561:30;64582:8;64561:20;:30::i;:::-;104925:43:::1;104949:8;104959;104925:23;:43::i;103673:158::-:0;75143:13;:11;:13::i;:::-;103744:10:::1;:34:::0;;;::::1;-1:-1:-1::0;;;;;103744:34:0;::::1;::::0;;::::1;::::0;;;103796:27:::1;::::0;2452:74:1;;;103796:27:0::1;::::0;2440:2:1;2425:18;103796:27:0::1;2306:226:1::0;105616:247:0;105791:4;-1:-1:-1;;;;;64287:18:0;;64295:10;64287:18;64283:83;;64322:32;64343:10;64322:20;:32::i;:::-;105808:47:::1;105831:4;105837:2;105841:7;105850:4;105808:22;:47::i;:::-;105616:247:::0;;;;;:::o;2656:716::-;2737:10;2729:19;;;;:7;:19;;;;;;;;2724:47;;2757:14;;;;;;;;;;;;;;2724:47;2851:38;;;;;2883:4;2851:38;;;2452:74:1;2814:5:0;;2784:20;;-1:-1:-1;;;;;2851:23:0;;;;;2425:18:1;;2851:38:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;2833:56;;2906:7;2917:1;2906:12;2902:38;;2927:13;;;;;;;;;;;;;;2902:38;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;2982:383:0;3002:5;:12;2998:16;;2982:383;;;3039:5;3045:1;3039:8;;;;;;;;:::i;:::-;;;;;;;;;;3032:15;;;;;;;;3039:8;;;;3032:15;-1:-1:-1;;;;;3032:15:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;3068:23:0;3064:226;;3117:13;-1:-1:-1;;;;;3117:22:0;;3162:4;:11;;;3227:3;3206:4;:18;;;3196:28;;:7;:28;;;;:::i;:::-;:34;;;;:::i;:::-;3117:132;;;;;;;;;;-1:-1:-1;;;;;4511:55:1;;;3117:132:0;;;4493:74:1;4583:18;;;4576:34;4466:18;;3117:132:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;3112:162;;3258:16;;;;;;;;;;;;;;3112:162;3335:3;;2982:383;;105871:253;105951:13;105982:15;105990:6;105982:7;:15::i;:::-;105977:58;;106006:29;;;;;;;;;;;;;;105977:58;106079:7;106088:17;106098:6;106088:9;:17::i;:::-;106062:53;;;;;;;;;:::i;:::-;;;;;;;;;;;;;106048:68;;105871:253;;;:::o;554:19::-;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;554:19:0;;;-1:-1:-1;554:19:0;;;;;;;;;;;;:::o;104056:164::-;75143:13;:11;:13::i;:::-;104137:17:::1;104147:6;104137:9;:17::i;:::-;104133:49;;;104163:19;;;;;;;;;;;;;;104133:49;104195:17;104201:2;104205:6;104195:5;:17::i;106328:115::-:0;-1:-1:-1;;;;;20254:25:0;;106388:7;20254:25;;;:18;:25;;14147:2;20254:25;;;;14009:13;20254:50;;20253:82;106415:20;20165:178;104383:132;104442:4;102421;104483:9;104466:14;19142:7;19333:13;-1:-1:-1;;19333:31:0;;19087:296;104466:14;:26;;;;:::i;:::-;:41;;104383:132;-1:-1:-1;;104383:132:0:o;76163:201::-;75143:13;:11;:13::i;:::-;-1:-1:-1;;;;;76252:22:0;::::1;76244:73;;;::::0;::::1;::::0;;20779:2:1;76244:73:0::1;::::0;::::1;20761:21:1::0;20818:2;20798:18;;;20791:30;20857:34;20837:18;;;20830:62;20928:8;20908:18;;;20901:36;20954:19;;76244:73:0::1;;;;;;;;;76328:28;76347:8;76328:18;:28::i;106451:1552::-:0;106569:10;106583:9;106569:23;106565:45;;106601:9;;;;;;;;;;;;;;106565:45;106625:17;106635:6;106625:9;:17::i;:::-;106621:49;;;106651:19;;;;;;;;;;;;;;106621:49;106721:115;106826:9;;106721:115;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;106749:28:0;;21146:66:1;106766:10:0;21133:2:1;21129:15;21125:88;106749:28:0;;;21113:101:1;106721:96:0;;-1:-1:-1;21230:12:1;;;-1:-1:-1;106749:28:0;;;;;;;;;;;;106721:71;;;;;;99569:58;;23163:66:1;99569:58:0;;;23151:79:1;23246:12;;;23239:28;;;99436:7:0;;23283:12:1;;99569:58:0;;;;;;;;;;;;99559:69;;;;;;99552:76;;99367:269;;;;106721:96;:104;;:115::i;:::-;-1:-1:-1;;;;;106699:137:0;102332:42;-1:-1:-1;;;;;106699:137:0;;106681:190;;106855:16;;;;;;;;;;;;;;106681:190;106884:38;;;;;;;;106916:6;106884:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;106935:40;;106963:12;;;;;;;;;;;;;;106935:40;107022:17;;107004:35;;:15;:35;;:86;;;107075:4;:15;;;107056:34;;:15;:34;;107004:86;106986:135;;;107109:12;;;;;;;;;;;;;;106986:135;107134:23;107609:4;:20;;;107572:57;;107600:6;107572:25;107586:10;-1:-1:-1;;;;;20254:25:0;20226:7;20254:25;;;:18;:25;;14147:2;20254:25;;;;;:50;;14009:13;20253:82;;20165:178;107572:25;:34;:57;107568:104;;;107655:17;;;;;;;;;;;;;;107568:104;107723:6;107706:4;:14;;;:23;;;107693:9;:36;107689:85;;107755:19;;;;;;;;;;;;;;107689:85;-1:-1:-1;102480:1:0;107809:29;;107866:19;;107862:96;;107902:10;;:44;;;;;107918:10;107902:44;;;4493:74:1;4583:18;;;4576:34;;;-1:-1:-1;;;;;107902:10:0;;;;:15;;4466:18:1;;107902:44:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;107862:96;107970:25;107976:10;107988:6;107970:5;:25::i;22013:639::-;22098:4;22422:25;;;;;;:102;;-1:-1:-1;22499:25:0;;;;;22422:102;:179;;;-1:-1:-1;;22576:25:0;;;;;22013:639::o;70362:215::-;70464:4;70488:41;;;70503:26;70488:41;;:81;;-1:-1:-1;68038:25:0;68023:40;;;;70533:36;67914:157;75422:132;75330:6;;-1:-1:-1;;;;;75330:6:0;73888:10;75486:23;75478:68;;;;;;;21455:2:1;75478:68:0;;;21437:21:1;;;21474:18;;;21467:30;21533:34;21513:18;;;21506:62;21585:18;;75478:68:0;21253:356:1;71724:332:0;71440:5;71827:33;;;;;71819:88;;;;;;;21816:2:1;71819:88:0;;;21798:21:1;21855:2;21835:18;;;21828:30;21894:34;21874:18;;;21867:62;21965:12;21945:18;;;21938:40;21995:19;;71819:88:0;21614:406:1;71819:88:0;-1:-1:-1;;;;;71926:22:0;;71918:60;;;;;;;22227:2:1;71918:60:0;;;22209:21:1;22266:2;22246:18;;;22239:30;22305:27;22285:18;;;22278:55;22350:18;;71918:60:0;22025:349:1;71918:60:0;72013:35;;;;;;;;;-1:-1:-1;;;;;72013:35:0;;;;;;;;;;;;;;;;;71991:57;;;;;:19;:57;71724:332::o;30777:282::-;30842:4;30898:7;108902:1;30879:26;;:66;;;;;30932:13;;30922:7;:23;30879:66;:153;;;;-1:-1:-1;;30983:26:0;;;;:17;:26;;;;;;14785:8;30983:44;:49;;30777:282::o;64704:647::-;55195:42;64895:45;:49;64891:453;;65194:67;;;;;65245:4;65194:67;;;22614:34:1;-1:-1:-1;;;;;22684:15:1;;22664:18;;;22657:43;55195:42:0;;65194;;22526:18:1;;65194:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;65189:144;;65289:28;;;;;-1:-1:-1;;;;;2470:55:1;;65289:28:0;;;2452:74:1;2425:18;;65289:28:0;2306:226:1;28839:408:0;28928:13;28944:16;28952:7;28944;:16::i;:::-;28928:32;-1:-1:-1;73888:10:0;-1:-1:-1;;;;;28977:28:0;;;28973:175;;-1:-1:-1;;;;;30476:25:0;;30452:4;30476:25;;;:18;:25;;;;;;;;73888:10;30476:35;;;;;;;;;;29020:128;;29097:35;;;;;;;;;;;;;;29020:128;29160:24;;;;:15;:24;;;;;;:35;;;;-1:-1:-1;;;;;29160:35:0;;;;;;;;;29211:28;;29160:24;;29211:28;;;;;;;28917:330;28839:408;;:::o;24649:166::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24760:47:0;24779:27;24798:7;24779:18;:27::i;:::-;-1:-1:-1;;;;;;;;;;;;;26947:41:0;;;;14668:3;27033:33;;;26999:68;;-1:-1:-1;;;26999:68:0;14785:8;27097:24;;:29;;-1:-1:-1;;;27078:48:0;;;;15189:3;27166:28;;;;-1:-1:-1;;;27137:58:0;-1:-1:-1;26837:366:0;3380:183;3454:12;3472:8;-1:-1:-1;;;;;3472:13:0;3493:7;3472:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3453:52;;;3523:7;3518:37;;3539:16;;;;;;;;;;;;;;33045:2825;33187:27;33217;33236:7;33217:18;:27::i;:::-;33187:57;;33302:4;-1:-1:-1;;;;;33261:45:0;33277:19;-1:-1:-1;;;;;33261:45:0;;33257:86;;33315:28;;;;;;;;;;;;;;33257:86;33357:27;32153:24;;;:15;:24;;;;;32381:26;;33548:68;32381:26;33590:4;73888:10;33596:19;-1:-1:-1;;;;;31627:32:0;;;31471:28;;31756:20;;31778:30;;31753:56;;31168:659;33548:68;33543:180;;-1:-1:-1;;;;;30476:25:0;;30452:4;30476:25;;;:18;:25;;;;;;;;73888:10;30476:35;;;;;;;;;;33631:92;;33688:35;;;;;;;;;;;;;;33631:92;-1:-1:-1;;;;;33740:16:0;;33736:52;;33765:23;;;;;;;;;;;;;;33736:52;33937:15;33934:160;;;34077:1;34056:19;34049:30;33934:160;-1:-1:-1;;;;;34474:24:0;;;;;;;:18;:24;;;;;;34472:26;;-1:-1:-1;;34472:26:0;;;34543:22;;;;;;;;;34541:24;;-1:-1:-1;34541:24:0;;;27697:11;27672:23;27668:41;27655:63;15065:8;27655:63;34836:26;;;;:17;:26;;;;;:175;;;;15065:8;35131:47;;:52;;35127:627;;35236:1;35226:11;;35204:19;35359:30;;;:17;:30;;;;;;:35;;35355:384;;35497:13;;35482:11;:28;35478:242;;35644:30;;;;:17;:30;;;;;:52;;;35478:242;35185:569;35127:627;35801:7;35797:2;-1:-1:-1;;;;;35782:27:0;35791:4;-1:-1:-1;;;;;35782:27:0;;;;;;;;;;;35820:42;33176:2694;;;33045:2825;;;:::o;35966:193::-;36112:39;36129:4;36135:2;36139:7;36112:39;;;;;;;;;;;;:16;:39::i;47614:3081::-;47694:27;47724;47743:7;47724:18;:27::i;:::-;47694:57;-1:-1:-1;47694:57:0;47764:12;;47886:35;47913:7;32042:27;32153:24;;;:15;:24;;;;;32381:26;;32153:24;;31940:485;47886:35;47829:92;;;;47938:13;47934:316;;;48059:68;48084:15;48101:4;73888:10;48107:19;73808:98;48059:68;48054:184;;-1:-1:-1;;;;;30476:25:0;;30452:4;30476:25;;;:18;:25;;;;;;;;73888:10;30476:35;;;;;;;;;;48146:92;;48203:35;;;;;;;;;;;;;;48146:92;48406:15;48403:160;;;48546:1;48525:19;48518:30;48403:160;-1:-1:-1;;;;;49165:24:0;;;;;;:18;:24;;;;;:60;;49193:32;49165:60;;;27697:11;27672:23;27668:41;27655:63;49553:43;27655:63;49463:26;;;;:17;:26;;;;;:205;;;;15065:8;49788:47;;:52;;49784:627;;49893:1;49883:11;;49861:19;50016:30;;;:17;:30;;;;;;:35;;50012:384;;50154:13;;50139:11;:28;50135:242;;50301:30;;;;:17;:30;;;;;:52;;;50135:242;49842:569;49784:627;50439:35;;50466:7;;50462:1;;-1:-1:-1;;;;;50439:35:0;;;;;50462:1;;50439:35;-1:-1:-1;;50662:12:0;:14;;;;;;-1:-1:-1;;;;47614:3081:0:o;25463:1275::-;25530:7;25565;;108902:1;25614:23;25610:1061;;25667:13;;25660:4;:20;25656:1015;;;25705:14;25722:23;;;:17;:23;;;;;;;14785:8;25811:24;;:29;;25807:845;;26476:113;26483:6;26493:1;26483:11;26476:113;;-1:-1:-1;;;26554:6:0;26536:25;;;;:17;:25;;;;;;26476:113;;;26622:6;25463:1275;-1:-1:-1;;;25463:1275:0:o;25807:845::-;25682:989;25656:1015;26699:31;;;;;;;;;;;;;;76524:191;76617:6;;;-1:-1:-1;;;;;76634:17:0;;;;;;;;;;;76667:40;;76617:6;;;76634:17;76617:6;;76667:40;;76598:16;;76667:40;76587:128;76524:191;:::o;40426:2966::-;40499:20;40522:13;;;40550;;;40546:44;;40572:18;;;;;;;;;;;;;;40546:44;-1:-1:-1;;;;;41078:22:0;;;;;;:18;:22;;;;14147:2;41078:22;;;:71;;41116:32;41104:45;;41078:71;;;41392:31;;;:17;:31;;;;;-1:-1:-1;28128:15:0;;28102:24;28098:46;27697:11;27672:23;27668:41;27665:52;27655:63;;41392:173;;41627:23;;;;41392:31;;41078:22;;42392:25;41078:22;;42245:335;42906:1;42892:12;42888:20;42846:346;42947:3;42938:7;42935:16;42846:346;;43165:7;43155:8;43152:1;43125:25;43122:1;43119;43114:59;43000:1;42987:15;42846:346;;;42850:77;43225:8;43237:1;43225:13;43221:45;;43247:19;;;;;;;;;;;;;;43221:45;43283:13;:19;-1:-1:-1;104984:190:0;;;:::o;29964:234::-;73888:10;30059:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;30059:49:0;;;;;;;;;;;;:60;;;;;;;;;;;;;30135:55;;682:41:1;;;30059:49:0;;73888:10;30135:55;;655:18:1;30135:55:0;;;;;;;29964:234;;:::o;36757:407::-;36932:31;36945:4;36951:2;36955:7;36932:12;:31::i;:::-;-1:-1:-1;;;;;36978:14:0;;;:19;36974:183;;37017:56;37048:4;37054:2;37058:7;37067:5;37017:30;:56::i;:::-;37012:145;;37101:40;;;;;;;;;;;;;;53292:1745;53357:17;53791:4;53784;53778:11;53774:22;53883:1;53877:4;53870:15;53958:4;53955:1;53951:12;53944:19;;;54040:1;54035:3;54028:14;54144:3;54383:5;54365:428;54431:1;54426:3;54422:11;54415:18;;54602:2;54596:4;54592:13;54588:2;54584:22;54579:3;54571:36;54696:2;54686:13;;54753:25;54365:428;54753:25;-1:-1:-1;54823:13:0;;;-1:-1:-1;;54938:14:0;;;55000:19;;;54938:14;53292:1745;-1:-1:-1;53292:1745:0:o;95677:231::-;95755:7;95776:17;95795:18;95817:27;95828:4;95834:9;95817:10;:27::i;:::-;95775:69;;;;95855:18;95867:5;95855:11;:18::i;:::-;-1:-1:-1;95891:9:0;95677:231;-1:-1:-1;;;95677:231:0:o;39248:716::-;39432:88;;;;;39411:4;;-1:-1:-1;;;;;39432:45:0;;;;;:88;;73888:10;;39499:4;;39505:7;;39514:5;;39432:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;39432:88:0;;;;;;;;-1:-1:-1;;39432:88:0;;;;;;;;;;;;:::i;:::-;;;39428:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39715:6;:13;39732:1;39715:18;39711:235;;39761:40;;;;;;;;;;;;;;39711:235;39904:6;39898:13;39889:6;39885:2;39881:15;39874:38;39428:529;39591:64;;39601:54;39591:64;;-1:-1:-1;39248:716:0;;;;;;:::o;94128:747::-;94209:7;94218:12;94247:9;:16;94267:2;94247:22;94243:625;;94591:4;94576:20;;94570:27;94641:4;94626:20;;94620:27;94699:4;94684:20;;94678:27;94286:9;94670:36;94742:25;94753:4;94670:36;94570:27;94620;94742:10;:25::i;:::-;94735:32;;;;;;;;;94243:625;-1:-1:-1;94816:1:0;;-1:-1:-1;94820:35:0;94800:56;;92521:521;92599:20;92590:5;:29;;;;;;;;:::i;:::-;;92586:449;;92521:521;:::o;92586:449::-;92697:29;92688:5;:38;;;;;;;;:::i;:::-;;92684:351;;92743:34;;;;;24468:2:1;92743:34:0;;;24450:21:1;24507:2;24487:18;;;24480:30;24546:26;24526:18;;;24519:54;24590:18;;92743:34:0;24266:348:1;92684:351:0;92808:35;92799:5;:44;;;;;;;;:::i;:::-;;92795:240;;92860:41;;;;;24821:2:1;92860:41:0;;;24803:21:1;24860:2;24840:18;;;24833:30;24899:33;24879:18;;;24872:61;24950:18;;92860:41:0;24619:355:1;92795:240:0;92932:30;92923:5;:39;;;;;;;;:::i;:::-;;92919:116;;92979:44;;;;;25181:2:1;92979:44:0;;;25163:21:1;25220:2;25200:18;;;25193:30;25259:34;25239:18;;;25232:62;25330:4;25310:18;;;25303:32;25352:19;;92979:44:0;24979:398:1;97129:1520:0;97260:7;;98194:66;98181:79;;98177:163;;;-1:-1:-1;98293:1:0;;-1:-1:-1;98297:30:0;98277:51;;98177:163;98454:24;;;98437:14;98454:24;;;;;;;;;25609:25:1;;;25682:4;25670:17;;25650:18;;;25643:45;;;;25704:18;;;25697:34;;;25747:18;;;25740:34;;;98454:24:0;;25581:19:1;;98454:24:0;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;98454:24:0;;-1:-1:-1;;98454:24:0;;;-1:-1:-1;;;;;;;98493:20:0;;98489:103;;98546:1;98550:29;98530:50;;;;;;;98489:103;98612:6;-1:-1:-1;98620:20:0;;-1:-1:-1;97129:1520:0;;;;;;;;:::o;14:177:1:-;99:66;92:5;88:78;81:5;78:89;68:117;;181:1;178;171:12;196:245;254:6;307:2;295:9;286:7;282:23;278:32;275:52;;;323:1;320;313:12;275:52;362:9;349:23;381:30;405:5;381:30;:::i;734:196::-;802:20;;-1:-1:-1;;;;;851:54:1;;841:65;;831:93;;920:1;917;910:12;831:93;734:196;;;:::o;935:366::-;1002:6;1010;1063:2;1051:9;1042:7;1038:23;1034:32;1031:52;;;1079:1;1076;1069:12;1031:52;1102:29;1121:9;1102:29;:::i;:::-;1092:39;;1181:2;1170:9;1166:18;1153:32;1225:26;1218:5;1214:38;1207:5;1204:49;1194:77;;1267:1;1264;1257:12;1194:77;1290:5;1280:15;;;935:366;;;;;:::o;1306:250::-;1391:1;1401:113;1415:6;1412:1;1409:13;1401:113;;;1491:11;;;1485:18;1472:11;;;1465:39;1437:2;1430:10;1401:113;;;-1:-1:-1;;1548:1:1;1530:16;;1523:27;1306:250::o;1561:330::-;1603:3;1641:5;1635:12;1668:6;1663:3;1656:19;1684:76;1753:6;1746:4;1741:3;1737:14;1730:4;1723:5;1719:16;1684:76;:::i;:::-;1805:2;1793:15;-1:-1:-1;;1789:88:1;1780:98;;;;1880:4;1776:109;;1561:330;-1:-1:-1;;1561:330:1:o;1896:220::-;2045:2;2034:9;2027:21;2008:4;2065:45;2106:2;2095:9;2091:18;2083:6;2065:45;:::i;2121:180::-;2180:6;2233:2;2221:9;2212:7;2208:23;2204:32;2201:52;;;2249:1;2246;2239:12;2201:52;-1:-1:-1;2272:23:1;;2121:180;-1:-1:-1;2121:180:1:o;2537:254::-;2605:6;2613;2666:2;2654:9;2645:7;2641:23;2637:32;2634:52;;;2682:1;2679;2672:12;2634:52;2705:29;2724:9;2705:29;:::i;:::-;2695:39;2781:2;2766:18;;;;2753:32;;-1:-1:-1;;;2537:254:1:o;3524:204::-;3620:6;3673:3;3661:9;3652:7;3648:23;3644:33;3641:53;;;3690:1;3687;3680:12;3641:53;-1:-1:-1;3713:9:1;3524:204;-1:-1:-1;3524:204:1:o;3733:328::-;3810:6;3818;3826;3879:2;3867:9;3858:7;3854:23;3850:32;3847:52;;;3895:1;3892;3885:12;3847:52;3918:29;3937:9;3918:29;:::i;:::-;3908:39;;3966:38;4000:2;3989:9;3985:18;3966:38;:::i;:::-;3956:48;;4051:2;4040:9;4036:18;4023:32;4013:42;;3733:328;;;;;:::o;4066:248::-;4134:6;4142;4195:2;4183:9;4174:7;4170:23;4166:32;4163:52;;;4211:1;4208;4201:12;4163:52;-1:-1:-1;;4234:23:1;;;4304:2;4289:18;;;4276:32;;-1:-1:-1;4066:248:1:o;4884:348::-;4936:8;4946:6;5000:3;4993:4;4985:6;4981:17;4977:27;4967:55;;5018:1;5015;5008:12;4967:55;-1:-1:-1;5041:20:1;;5084:18;5073:30;;5070:50;;;5116:1;5113;5106:12;5070:50;5153:4;5145:6;5141:17;5129:29;;5205:3;5198:4;5189:6;5181;5177:19;5173:30;5170:39;5167:59;;;5222:1;5219;5212:12;5237:411;5308:6;5316;5369:2;5357:9;5348:7;5344:23;5340:32;5337:52;;;5385:1;5382;5375:12;5337:52;5425:9;5412:23;5458:18;5450:6;5447:30;5444:50;;;5490:1;5487;5480:12;5444:50;5529:59;5580:7;5571:6;5560:9;5556:22;5529:59;:::i;:::-;5607:8;;5503:85;;-1:-1:-1;5237:411:1;-1:-1:-1;;;;5237:411:1:o;5653:186::-;5712:6;5765:2;5753:9;5744:7;5740:23;5736:32;5733:52;;;5781:1;5778;5771:12;5733:52;5804:29;5823:9;5804:29;:::i;6548:118::-;6634:5;6627:13;6620:21;6613:5;6610:32;6600:60;;6656:1;6653;6646:12;6671:128;6736:20;;6765:28;6736:20;6765:28;:::i;6804:315::-;6869:6;6877;6930:2;6918:9;6909:7;6905:23;6901:32;6898:52;;;6946:1;6943;6936:12;6898:52;6969:29;6988:9;6969:29;:::i;:::-;6959:39;;7048:2;7037:9;7033:18;7020:32;7061:28;7083:5;7061:28;:::i;7124:184::-;7176:77;7173:1;7166:88;7273:4;7270:1;7263:15;7297:4;7294:1;7287:15;7313:1197;7408:6;7416;7424;7432;7485:3;7473:9;7464:7;7460:23;7456:33;7453:53;;;7502:1;7499;7492:12;7453:53;7525:29;7544:9;7525:29;:::i;:::-;7515:39;;7573:38;7607:2;7596:9;7592:18;7573:38;:::i;:::-;7563:48;;7658:2;7647:9;7643:18;7630:32;7620:42;;7713:2;7702:9;7698:18;7685:32;7736:18;7777:2;7769:6;7766:14;7763:34;;;7793:1;7790;7783:12;7763:34;7831:6;7820:9;7816:22;7806:32;;7876:7;7869:4;7865:2;7861:13;7857:27;7847:55;;7898:1;7895;7888:12;7847:55;7934:2;7921:16;7956:2;7952;7949:10;7946:36;;;7962:18;;:::i;:::-;8096:2;8090:9;8158:4;8150:13;;-1:-1:-1;;8146:22:1;;;8170:2;8142:31;8138:40;8126:53;;;8194:18;;;8214:22;;;8191:46;8188:72;;;8240:18;;:::i;:::-;8280:10;8276:2;8269:22;8315:2;8307:6;8300:18;8355:7;8350:2;8345;8341;8337:11;8333:20;8330:33;8327:53;;;8376:1;8373;8366:12;8327:53;8432:2;8427;8423;8419:11;8414:2;8406:6;8402:15;8389:46;8477:1;8472:2;8467;8459:6;8455:15;8451:24;8444:35;8498:6;8488:16;;;;;;;7313:1197;;;;;;;:::o;8902:254::-;8970:6;8978;9031:2;9019:9;9010:7;9006:23;9002:32;8999:52;;;9047:1;9044;9037:12;8999:52;9083:9;9070:23;9060:33;;9112:38;9146:2;9135:9;9131:18;9112:38;:::i;:::-;9102:48;;8902:254;;;;;:::o;9161:260::-;9229:6;9237;9290:2;9278:9;9269:7;9265:23;9261:32;9258:52;;;9306:1;9303;9296:12;9258:52;9329:29;9348:9;9329:29;:::i;:::-;9319:39;;9377:38;9411:2;9400:9;9396:18;9377:38;:::i;9426:478::-;9505:6;9513;9521;9574:2;9562:9;9553:7;9549:23;9545:32;9542:52;;;9590:1;9587;9580:12;9542:52;9626:9;9613:23;9603:33;;9687:2;9676:9;9672:18;9659:32;9714:18;9706:6;9703:30;9700:50;;;9746:1;9743;9736:12;9700:50;9785:59;9836:7;9827:6;9816:9;9812:22;9785:59;:::i;:::-;9426:478;;9863:8;;-1:-1:-1;9759:85:1;;-1:-1:-1;;;;9426:478:1:o;9909:437::-;9988:1;9984:12;;;;10031;;;10052:61;;10106:4;10098:6;10094:17;10084:27;;10052:61;10159:2;10151:6;10148:14;10128:18;10125:38;10122:218;;10196:77;10193:1;10186:88;10297:4;10294:1;10287:15;10325:4;10322:1;10315:15;10351:184;10403:77;10400:1;10393:88;10500:4;10497:1;10490:15;10524:4;10521:1;10514:15;10540:184;10592:77;10589:1;10582:88;10689:4;10686:1;10679:15;10713:4;10710:1;10703:15;10729:241;10785:6;10838:2;10826:9;10817:7;10813:23;10809:32;10806:52;;;10854:1;10851;10844:12;10806:52;10893:9;10880:23;10912:28;10934:5;10912:28;:::i;10975:129::-;11060:18;11053:5;11049:30;11042:5;11039:41;11029:69;;11094:1;11091;11084:12;11109:114;11193:4;11186:5;11182:16;11175:5;11172:27;11162:55;;11213:1;11210;11203:12;11228:172;11271:11;11323:3;11310:17;11336:29;11359:5;11336:29;:::i;11989:170::-;12031:11;12083:3;12070:17;12096:28;12118:5;12096:28;:::i;12784:1400::-;12969:5;12956:19;12984:32;13008:7;12984:32;:::i;:::-;13048:18;13039:7;13035:32;13025:42;;13092:4;13086:11;13199:2;13130:66;13126:2;13122:75;13119:83;13113:4;13106:97;13251:2;13244:5;13240:14;13227:28;13264:32;13288:7;13264:32;:::i;:::-;13337:34;13327:7;13323:2;13319:16;13315:57;13305:67;;13482:2;13477;13408:66;13404:2;13400:75;13397:83;13394:91;13388:4;13381:105;13534:2;13527:5;13523:14;13510:28;13547:32;13571:7;13547:32;:::i;:::-;13720:50;13710:7;13705:3;13701:17;13697:74;13691:2;13622:66;13618:2;13614:75;13611:83;13607:2;13604:91;13601:171;13595:4;13588:185;;;;;13782:92;13832:41;13869:2;13862:5;13858:14;13832:41;:::i;:::-;11495:11;;11539:66;11531:75;11616:3;11612:15;;;;11629:52;11608:74;11528:155;11515:169;;11405:285;13782:92;13883:95;13935:42;13972:3;13965:5;13961:15;13935:42;:::i;:::-;11787:11;;11831:66;11823:75;11908:3;11904:15;;;;11921:54;11900:76;11820:157;11807:171;;11695:289;13883:95;13987:92;14037:41;14073:3;14066:5;14062:15;14037:41;:::i;:::-;14031:4;12254:11;;12298:66;12290:75;12387:13;;12380:21;12375:3;12371:31;12404:56;12367:94;12287:175;;;;12274:189;;12164:305;13987:92;14088:90;14136:41;14172:3;14165:5;14161:15;14136:41;:::i;:::-;14130:4;12562:11;;12606:66;12598:75;12695:13;;12688:21;12683:3;12679:31;12712:58;12675:96;12595:177;;;;12582:191;;12474:305;14189:1232;14395:3;14380:19;;14421:20;;14450:30;14421:20;14450:30;:::i;:::-;14499:18;14544:14;;;14526:33;;14608:4;14596:17;;14583:31;;14623:32;14583:31;14623:32;:::i;:::-;14693:16;;;14686:4;14671:20;;14664:46;14759:4;14747:17;;14734:31;;14774:32;14734:31;14774:32;:::i;:::-;14844:16;14837:4;14822:20;;14815:46;14910:4;14898:17;;14885:31;14925;14885;14925;:::i;:::-;15007:4;14994:18;14987:4;14972:20;;14965:48;15062:4;15050:17;;15037:31;15077;15037;15077;:::i;:::-;15159:4;15146:18;15139:4;15124:20;;15117:48;15194:34;15222:4;15210:17;;15194:34;:::i;:::-;516:13;509:21;15282:4;15267:20;;497:34;15319;15347:4;15335:17;;15319:34;:::i;:::-;516:13;;509:21;15409:4;15394:20;;497:34;15362:53;14189:1232;;;;:::o;15426:184::-;15478:77;15475:1;15468:88;15575:4;15572:1;15565:15;15599:4;15596:1;15589:15;15615:168;15688:9;;;15719;;15736:15;;;15730:22;;15716:37;15706:71;;15757:18;;:::i;15788:274::-;15828:1;15854;15844:189;;15889:77;15886:1;15879:88;15990:4;15987:1;15980:15;16018:4;16015:1;16008:15;15844:189;-1:-1:-1;16047:9:1;;15788:274::o;16193:545::-;16295:2;16290:3;16287:11;16284:448;;;16331:1;16356:5;16352:2;16345:17;16401:4;16397:2;16387:19;16471:2;16459:10;16455:19;16452:1;16448:27;16442:4;16438:38;16507:4;16495:10;16492:20;16489:47;;;-1:-1:-1;16530:4:1;16489:47;16585:2;16580:3;16576:12;16573:1;16569:20;16563:4;16559:31;16549:41;;16640:82;16658:2;16651:5;16648:13;16640:82;;;16703:17;;;16684:1;16673:13;16640:82;;16974:1325;17098:18;17093:3;17090:27;17087:53;;;17120:18;;:::i;:::-;17149:94;17239:3;17199:38;17231:4;17225:11;17199:38;:::i;:::-;17193:4;17149:94;:::i;:::-;17269:1;17294:2;17289:3;17286:11;17311:1;17306:735;;;;18085:1;18102:3;18099:93;;;-1:-1:-1;18158:19:1;;;18145:33;18099:93;-1:-1:-1;;16871:1:1;16867:11;;;16863:84;16859:89;16849:100;16955:1;16951:11;;;16846:117;18205:78;;17279:1014;;17306:735;16140:1;16133:14;;;16177:4;16164:18;;-1:-1:-1;;17342:76:1;;;17502:9;17524:229;17538:7;17535:1;17532:14;17524:229;;;17627:19;;;17614:33;17599:49;;17734:4;17719:20;;;;17687:1;17675:14;;;;17554:12;17524:229;;;17528:3;17781;17772:7;17769:16;17766:219;;;-1:-1:-1;;17895:3:1;17889;17886:1;17882:11;17878:21;17874:94;17870:99;17857:9;17852:3;17848:19;17835:33;17831:139;17823:6;17816:155;17766:219;;;18028:1;18022:3;18019:1;18015:11;18011:19;18005:4;17998:33;17279:1014;;16974:1325;;;:::o;18304:449::-;18463:2;18452:9;18445:21;18502:6;18497:2;18486:9;18482:18;18475:34;18559:6;18551;18546:2;18535:9;18531:18;18518:48;18615:1;18586:22;;;18610:2;18582:31;;;18575:42;;;;18669:2;18657:15;;;-1:-1:-1;;18653:88:1;18638:104;18634:113;;18304:449;-1:-1:-1;18304:449:1:o;18758:184::-;18828:6;18881:2;18869:9;18860:7;18856:23;18852:32;18849:52;;;18897:1;18894;18887:12;18849:52;-1:-1:-1;18920:16:1;;18758:184;-1:-1:-1;18758:184:1:o;18947:245::-;19014:6;19067:2;19055:9;19046:7;19042:23;19038:32;19035:52;;;19083:1;19080;19073:12;19035:52;19115:9;19109:16;19134:28;19156:5;19134:28;:::i;19197:1245::-;19474:3;19503:1;19536:6;19530:13;19566:36;19592:9;19566:36;:::i;:::-;19621:1;19638:18;;;19665:191;;;;19870:1;19865:356;;;;19631:590;;19665:191;19713:66;19702:9;19698:82;19693:3;19686:95;19836:6;19829:14;19822:22;19814:6;19810:35;19805:3;19801:45;19794:52;;19665:191;;19865:356;19896:6;19893:1;19886:17;19926:4;19971:2;19968:1;19958:16;19996:1;20010:165;20024:6;20021:1;20018:13;20010:165;;;20102:14;;20089:11;;;20082:35;20145:16;;;;20039:10;;20010:165;;;20014:3;;;20204:6;20199:3;20195:16;20188:23;;19631:590;;;;;20252:6;20246:13;20268:68;20327:8;20322:3;20315:4;20307:6;20303:17;20268:68;:::i;:::-;20399:7;20358:18;;20385:22;;;20434:1;20423:13;;19197:1245;-1:-1:-1;;;;19197:1245:1:o;20447:125::-;20512:9;;;20533:10;;;20530:36;;;20546:18;;:::i;23306:512::-;23500:4;-1:-1:-1;;;;;23610:2:1;23602:6;23598:15;23587:9;23580:34;23662:2;23654:6;23650:15;23645:2;23634:9;23630:18;23623:43;;23702:6;23697:2;23686:9;23682:18;23675:34;23745:3;23740:2;23729:9;23725:18;23718:31;23766:46;23807:3;23796:9;23792:19;23784:6;23766:46;:::i;:::-;23758:54;23306:512;-1:-1:-1;;;;;;23306:512:1:o;23823:249::-;23892:6;23945:2;23933:9;23924:7;23920:23;23916:32;23913:52;;;23961:1;23958;23951:12;23913:52;23993:9;23987:16;24012:30;24036:5;24012:30;:::i;24077:184::-;24129:77;24126:1;24119:88;24226:4;24223:1;24216:15;24250:4;24247:1;24240:15
Swarm Source
ipfs://ef9c0b3aa82e6772b8bc08e7379a28e9a1b3aa008c9cdca5de9eeb705c841a04
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.