Overview
TokenID
6537
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
TheCryptAvatar
Compiler Version
v0.8.23+commit.f704f362
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2024-05-27 */ // File: utils/TransferPolicy.sol pragma solidity ^0.8.4; enum AllowlistTypes { Operators, PermittedContractReceivers } enum ReceiverConstraints { None, NoCode, EOA } enum CallerConstraints { None, OperatorWhitelistEnableOTC, OperatorWhitelistDisableOTC } enum StakerConstraints { None, CallerIsTxOrigin, EOA } enum TransferSecurityLevels { Zero, One, Two, Three, Four, Five, Six } struct TransferSecurityPolicy { CallerConstraints callerConstraints; ReceiverConstraints receiverConstraints; } struct CollectionSecurityPolicy { TransferSecurityLevels transferSecurityLevel; uint120 operatorWhitelistId; uint120 permittedContractReceiversId; } // File: interfaces/ITransferValidator.sol pragma solidity ^0.8.4; interface ITransferValidator { function applyCollectionTransferPolicy(address caller, address from, address to) external view; } // File: interfaces/ITransferSecurityRegistry.sol pragma solidity ^0.8.4; interface ITransferSecurityRegistry { event AddedToAllowlist(AllowlistTypes indexed kind, uint256 indexed id, address indexed account); event CreatedAllowlist(AllowlistTypes indexed kind, uint256 indexed id, string indexed name); event ReassignedAllowlistOwnership(AllowlistTypes indexed kind, uint256 indexed id, address indexed newOwner); event RemovedFromAllowlist(AllowlistTypes indexed kind, uint256 indexed id, address indexed account); event SetAllowlist(AllowlistTypes indexed kind, address indexed collection, uint120 indexed id); event SetTransferSecurityLevel(address indexed collection, TransferSecurityLevels level); function createOperatorWhitelist(string calldata name) external returns (uint120); function createPermittedContractReceiverAllowlist(string calldata name) external returns (uint120); function reassignOwnershipOfOperatorWhitelist(uint120 id, address newOwner) external; function reassignOwnershipOfPermittedContractReceiverAllowlist(uint120 id, address newOwner) external; function renounceOwnershipOfOperatorWhitelist(uint120 id) external; function renounceOwnershipOfPermittedContractReceiverAllowlist(uint120 id) external; function setTransferSecurityLevelOfCollection(address collection, TransferSecurityLevels level) external; function setOperatorWhitelistOfCollection(address collection, uint120 id) external; function setPermittedContractReceiverAllowlistOfCollection(address collection, uint120 id) external; function addOperatorToWhitelist(uint120 id, address operator) external; function addPermittedContractReceiverToAllowlist(uint120 id, address receiver) external; function removeOperatorFromWhitelist(uint120 id, address operator) external; function removePermittedContractReceiverFromAllowlist(uint120 id, address receiver) external; function getCollectionSecurityPolicy(address collection) external view returns (CollectionSecurityPolicy memory); function getWhitelistedOperators(uint120 id) external view returns (address[] memory); function getPermittedContractReceivers(uint120 id) external view returns (address[] memory); function isOperatorWhitelisted(uint120 id, address operator) external view returns (bool); function isContractReceiverPermitted(uint120 id, address receiver) external view returns (bool); } // File: @openzeppelin/contracts/utils/introspection/IERC165.sol // OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol) pragma solidity ^0.8.20; /** * @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/interfaces/IERC165.sol // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC165.sol) pragma solidity ^0.8.20; // File: interfaces/IEOARegistry.sol pragma solidity ^0.8.4; interface IEOARegistry is IERC165 { function isVerifiedEOA(address account) external view returns (bool); } // File: interfaces/ICreatorTokenTransferValidator.sol pragma solidity ^0.8.4; interface ICreatorTokenTransferValidator is ITransferSecurityRegistry, ITransferValidator, IEOARegistry {} // File: interfaces/ICreatorToken.sol pragma solidity ^0.8.4; interface ICreatorToken { event TransferValidatorUpdated(address oldValidator, address newValidator); function getTransferValidator() external view returns (ICreatorTokenTransferValidator); function getSecurityPolicy() external view returns (CollectionSecurityPolicy memory); function getWhitelistedOperators() external view returns (address[] memory); function getPermittedContractReceivers() external view returns (address[] memory); function isOperatorWhitelisted(address operator) external view returns (bool); function isContractReceiverPermitted(address receiver) external view returns (bool); function isTransferAllowed(address caller, address from, address to) external view returns (bool); } // File: contracts/IERC721A.sol // ERC721A Contracts v4.1.0 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of an ERC721A compliant contract. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); struct TokenOwnership { // The address of the owner. address addr; // Keeps track of 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 through `_extraData`. uint24 extraData; } /** * @dev Returns the total amount of tokens stored by the contract. * * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens. */ function totalSupply() external view returns (uint256); // ============================== // 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); // ============================== // 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`. * * 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 calldata data ) external; /** * @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 ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================== // IERC721Metadata // ============================== /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================== // IERC2309 // ============================== /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` (inclusive) is transferred from `from` to `to`, * as defined in the ERC2309 standard. See `_mintERC2309` for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); } // File: contracts/ERC721A.sol // ERC721A Contracts v4.1.0 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev ERC721 token receiver interface. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, * including the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at `_startTokenId()` * (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // 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 tokenId of the next token 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 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 1; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view 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 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 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 returns (uint256) { return _burnCounter; } /** * @dev See {IERC165-supportsInterface}. */ 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: 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 == 0x2a55205a || // ERC 2981 rotyalty interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view 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 { 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; } /** * 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 ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. // // We can directly compare the packed value. // If the address is zero, packed is zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * 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); } /** * Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @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 See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ 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 ''; } /** * @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)) } } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSenderERC721A()) revert ApproveToCaller(); _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev 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 (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & BITMASK_BURNED == 0; // and not burned. } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal { _safeMint(to, 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 { _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 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 { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); 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 tokenId = startTokenId; uint256 end = startTokenId + quantity; do { emit Transfer(address(0), to, tokenId++); } while (tokenId < end); _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 { 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 Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { mapping(uint256 => address) storage tokenApprovalsPtr = _tokenApprovals; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId]`. assembly { // Compute the slot. mstore(0x00, tokenId) mstore(0x20, tokenApprovalsPtr.slot) approvedAddressSlot := keccak256(0x00, 0x40) // Load the slot's value from storage. approvedAddress := sload(approvedAddressSlot) } } /** * @dev Returns whether the `approvedAddress` is equals to `from` or `msgSender`. */ function _isOwnerOrApproved( address approvedAddress, address from, address msgSender ) private pure returns (bool result) { assembly { // Mask `from` to the lower 160 bits, in case the upper bits somehow aren't clean. from := and(from, BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, BITMASK_ADDRESS) // `msgSender == from || msgSender == approvedAddress`. result := or(eq(msgSender, from), eq(msgSender, approvedAddress)) } } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isOwnerOrApproved(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 `_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) = _getApprovedAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isOwnerOrApproved(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++; } } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool 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)) } } } } /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal { 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 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; } /** * @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 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 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 returns (string memory ptr) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), // but we allocate 128 bytes to keep the free memory pointer 32-byte word aliged. // We will need 1 32-byte word to store the length, // and 3 32-byte words to store a maximum of 78 digits. Total: 32 + 3 * 32 = 128. ptr := add(mload(0x40), 128) // Update the free memory pointer to allocate. mstore(0x40, ptr) // Cache the end of the memory to calculate the length later. let end := ptr // We write the string from the rightmost digit to the leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // Costs a bit more than early returning for the zero case, // but cheaper in terms of deployment and overall runtime costs. for { // Initialize and perform the first pass without check. let temp := value // Move the pointer 1 byte leftwards to point to an empty character slot. ptr := sub(ptr, 1) // Write the character to the pointer. 48 is the ASCII index of '0'. mstore8(ptr, add(48, mod(temp, 10))) temp := div(temp, 10) } temp { // Keep dividing `temp` until zero. temp := div(temp, 10) } { // Body of the for loop. ptr := sub(ptr, 1) mstore8(ptr, add(48, mod(temp, 10))) } let length := sub(end, ptr) // Move the pointer 32 bytes leftwards to make room for the length. ptr := sub(ptr, 32) // Store the length. mstore(ptr, length) } } } // File: @openzeppelin/contracts/utils/math/SignedMath.sol // OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SignedMath.sol) pragma solidity ^0.8.20; /** * @dev Standard signed math utilities missing in the Solidity language. */ library SignedMath { /** * @dev Returns the largest of two signed numbers. */ function max(int256 a, int256 b) internal pure returns (int256) { return a > b ? a : b; } /** * @dev Returns the smallest of two signed numbers. */ function min(int256 a, int256 b) internal pure returns (int256) { return a < b ? a : b; } /** * @dev Returns the average of two signed numbers without overflow. * The result is rounded towards zero. */ function average(int256 a, int256 b) internal pure returns (int256) { // Formula from the book "Hacker's Delight" int256 x = (a & b) + ((a ^ b) >> 1); return x + (int256(uint256(x) >> 255) & (a ^ b)); } /** * @dev Returns the absolute unsigned value of a signed value. */ function abs(int256 n) internal pure returns (uint256) { unchecked { // must be unchecked in order to support `n = type(int256).min` return uint256(n >= 0 ? n : -n); } } } // File: @openzeppelin/contracts/utils/math/Math.sol // OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol) pragma solidity ^0.8.20; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Muldiv operation overflow. */ error MathOverflowedMulDiv(); enum Rounding { Floor, // Toward negative infinity Ceil, // Toward positive infinity Trunc, // Toward zero Expand // Away from zero } /** * @dev Returns the addition of two unsigned integers, with an overflow flag. */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @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 towards infinity instead * of rounding towards zero. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { if (b == 0) { // Guarantee the same behavior as in a regular Solidity division. return a / b; } // (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 = x * y; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { // Solidity will revert if denominator == 0, unlike the div opcode on its own. // The surrounding unchecked block does not change this fact. // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic. return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. if (denominator <= prod1) { revert MathOverflowedMulDiv(); } /////////////////////////////////////////////// // 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. uint256 twos = denominator & (0 - denominator); 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 (unsignedRoundsUp(rounding) && 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 * towards zero. * * 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 + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2 of a positive value rounded towards zero. * 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 + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10 of a positive value rounded towards zero. * 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 + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0); } } /** * @dev Return the log in base 256 of a positive value rounded towards zero. * 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 256, 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 + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0); } } /** * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers. */ function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) { return uint8(rounding) % 2 == 1; } } // File: @openzeppelin/contracts/utils/Strings.sol // OpenZeppelin Contracts (last updated v5.0.0) (utils/Strings.sol) pragma solidity ^0.8.20; /** * @dev String operations. */ library Strings { bytes16 private constant HEX_DIGITS = "0123456789abcdef"; uint8 private constant ADDRESS_LENGTH = 20; /** * @dev The `value` string doesn't fit in the specified `length`. */ error StringsInsufficientHexLength(uint256 value, uint256 length); /** * @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), HEX_DIGITS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `int256` to its ASCII `string` decimal representation. */ function toStringSigned(int256 value) internal pure returns (string memory) { return string.concat(value < 0 ? "-" : "", toString(SignedMath.abs(value))); } /** * @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) { uint256 localValue = value; bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = HEX_DIGITS[localValue & 0xf]; localValue >>= 4; } if (localValue != 0) { revert StringsInsufficientHexLength(value, length); } 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); } /** * @dev Returns true if the two strings are equal. */ function equal(string memory a, string memory b) internal pure returns (bool) { return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b)); } } // File: @openzeppelin/contracts/utils/Address.sol // OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol) pragma solidity ^0.8.20; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev The ETH balance of the account is not enough to perform the operation. */ error AddressInsufficientBalance(address account); /** * @dev There's no code at `target` (it is not a contract). */ error AddressEmptyCode(address target); /** * @dev A call to an address target failed. The target may have reverted. */ error FailedInnerCall(); /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { if (address(this).balance < amount) { revert AddressInsufficientBalance(address(this)); } (bool success, ) = recipient.call{value: amount}(""); if (!success) { revert FailedInnerCall(); } } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason or custom error, it is bubbled * up by this function (like regular Solidity function calls). However, if * the call reverted with no returned reason, this function reverts with a * {FailedInnerCall} error. * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { if (address(this).balance < value) { revert AddressInsufficientBalance(address(this)); } (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target * was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an * unsuccessful call. */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata ) internal view returns (bytes memory) { if (!success) { _revert(returndata); } else { // only check if target is a contract if the call was successful and the return data is empty // otherwise we already know that it was a contract if (returndata.length == 0 && target.code.length == 0) { revert AddressEmptyCode(target); } return returndata; } } /** * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the * revert reason or with a default {FailedInnerCall} error. */ function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) { if (!success) { _revert(returndata); } else { return returndata; } } /** * @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}. */ function _revert(bytes memory returndata) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert FailedInnerCall(); } } } // File: @openzeppelin/contracts/token/ERC20/extensions/IERC20Permit.sol // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Permit.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. * * ==== Security Considerations * * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be * considered as an intention to spend the allowance in any specific way. The second is that because permits have * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be * generally recommended is: * * ```solidity * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public { * try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {} * doThing(..., value); * } * * function doThing(..., uint256 value) public { * token.safeTransferFrom(msg.sender, address(this), value); * ... * } * ``` * * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also * {SafeERC20-safeTransferFrom}). * * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so * contracts should have entry points that don't rely on permit. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. * * CAUTION: See Security Considerations above. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); } // File: @openzeppelin/contracts/token/ERC20/IERC20.sol // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the value of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the value of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves a `value` amount of tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 value) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets a `value` amount of tokens as the allowance of `spender` over the * caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 value) external returns (bool); /** * @dev Moves a `value` amount of tokens from `from` to `to` using the * allowance mechanism. `value` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 value) external returns (bool); } // File: @openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.20; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; /** * @dev An operation with an ERC20 token failed. */ error SafeERC20FailedOperation(address token); /** * @dev Indicates a failed `decreaseAllowance` request. */ error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease); /** * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value))); } /** * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful. */ function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value))); } /** * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 oldAllowance = token.allowance(address(this), spender); forceApprove(token, spender, oldAllowance + value); } /** * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no * value, non-reverting calls are assumed to be successful. */ function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal { unchecked { uint256 currentAllowance = token.allowance(address(this), spender); if (currentAllowance < requestedDecrease) { revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease); } forceApprove(token, spender, currentAllowance - requestedDecrease); } } /** * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval * to be set to zero before setting it to a non-zero value, such as USDT. */ function forceApprove(IERC20 token, address spender, uint256 value) internal { bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value)); if (!_callOptionalReturnBool(token, approvalCall)) { _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0))); _callOptionalReturn(token, approvalCall); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data); if (returndata.length != 0 && !abi.decode(returndata, (bool))) { revert SafeERC20FailedOperation(address(token)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). * * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead. */ function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false // and not revert is the subcall reverts. (bool success, bytes memory returndata) = address(token).call(data); return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && address(token).code.length > 0; } } // File: @openzeppelin/contracts/utils/cryptography/MerkleProof.sol // OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.20; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The tree and the proofs can be generated using our * https://github.com/OpenZeppelin/merkle-tree[JavaScript library]. * You will find a quickstart guide in the readme. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the Merkle tree could be reinterpreted as a leaf value. * OpenZeppelin's JavaScript library generates Merkle trees that are safe * against this attack out of the box. */ library MerkleProof { /** *@dev The multiproof provided is not valid. */ error MerkleProofInvalidMultiproof(); /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify(bytes32[] memory proof, bytes32 root, bytes32 leaf) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} */ function verifyCalldata(bytes32[] calldata proof, bytes32 root, bytes32 leaf) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a Merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details. */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details. */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false * respectively. * * CAUTION: Not all Merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer). */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the Merkle tree. uint256 leavesLen = leaves.length; uint256 proofLen = proof.length; uint256 totalHashes = proofFlags.length; // Check proof validity. if (leavesLen + proofLen != totalHashes + 1) { revert MerkleProofInvalidMultiproof(); } // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value from the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]) : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { if (proofPos != proofLen) { revert MerkleProofInvalidMultiproof(); } unchecked { return hashes[totalHashes - 1]; } } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof}. * * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details. */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the Merkle tree. uint256 leavesLen = leaves.length; uint256 proofLen = proof.length; uint256 totalHashes = proofFlags.length; // Check proof validity. if (leavesLen + proofLen != totalHashes + 1) { revert MerkleProofInvalidMultiproof(); } // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value from the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]) : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { if (proofPos != proofLen) { revert MerkleProofInvalidMultiproof(); } unchecked { return hashes[totalHashes - 1]; } } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Sorts the pair (a, b) and hashes the result. */ function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } /** * @dev Implementation of keccak256(abi.encode(a, b)) that doesn't allocate or expand memory. */ function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } } // File: @openzeppelin/contracts/utils/Context.sol // OpenZeppelin Contracts (last updated v5.0.0) (utils/Context.sol) pragma solidity ^0.8.20; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } // File: utils/TransferValidation.sol pragma solidity ^0.8.4; /** * @title TransferValidation * @author Limit Break, Inc. * @notice A mix-in that can be combined with ERC-721 contracts to provide more granular hooks. * Openzeppelin's ERC721 contract only provides hooks for before and after transfer. This allows * developers to validate or customize transfers within the context of a mint, a burn, or a transfer. */ abstract contract TransferValidation is Context { error ShouldNotMintToBurnAddress(); /// @dev Inheriting contracts should call this function in the _beforeTokenTransfer function to get more granular hooks. function _validateBeforeTransfer(address from, address to, uint256 tokenId) internal virtual { bool fromZeroAddress = from == address(0); bool toZeroAddress = to == address(0); if(fromZeroAddress && toZeroAddress) { revert ShouldNotMintToBurnAddress(); } else if(fromZeroAddress) { _preValidateMint(_msgSender(), to, tokenId, msg.value); } else if(toZeroAddress) { _preValidateBurn(_msgSender(), from, tokenId, msg.value); } else { _preValidateTransfer(_msgSender(), from, to, tokenId, msg.value); } } /// @dev Inheriting contracts should call this function in the _afterTokenTransfer function to get more granular hooks. function _validateAfterTransfer(address from, address to, uint256 tokenId) internal virtual { bool fromZeroAddress = from == address(0); bool toZeroAddress = to == address(0); if(fromZeroAddress && toZeroAddress) { revert ShouldNotMintToBurnAddress(); } else if(fromZeroAddress) { _postValidateMint(_msgSender(), to, tokenId, msg.value); } else if(toZeroAddress) { _postValidateBurn(_msgSender(), from, tokenId, msg.value); } else { _postValidateTransfer(_msgSender(), from, to, tokenId, msg.value); } } /// @dev Optional validation hook that fires before a mint function _preValidateMint(address caller, address to, uint256 tokenId, uint256 value) internal virtual {} /// @dev Optional validation hook that fires after a mint function _postValidateMint(address caller, address to, uint256 tokenId, uint256 value) internal virtual {} /// @dev Optional validation hook that fires before a burn function _preValidateBurn(address caller, address from, uint256 tokenId, uint256 value) internal virtual {} /// @dev Optional validation hook that fires after a burn function _postValidateBurn(address caller, address from, uint256 tokenId, uint256 value) internal virtual {} /// @dev Optional validation hook that fires before a transfer function _preValidateTransfer(address caller, address from, address to, uint256 tokenId, uint256 value) internal virtual {} /// @dev Optional validation hook that fires after a transfer function _postValidateTransfer(address caller, address from, address to, uint256 tokenId, uint256 value) internal virtual {} } // File: access/OwnablePermissions.sol pragma solidity ^0.8.4; abstract contract OwnablePermissions is Context { function _requireCallerIsContractOwner() internal view virtual; } // File: contracts/CreatorTokenBase.sol pragma solidity ^0.8.4; /** * @title CreatorTokenBase * @author Limit Break, Inc. * @notice CreatorTokenBase is an abstract contract that provides basic functionality for managing token * transfer policies through an implementation of ICreatorTokenTransferValidator. This contract is intended to be used * as a base for creator-specific token contracts, enabling customizable transfer restrictions and security policies. * * <h4>Features:</h4> * <ul>Ownable: This contract can have an owner who can set and update the transfer validator.</ul> * <ul>TransferValidation: Implements the basic token transfer validation interface.</ul> * <ul>ICreatorToken: Implements the interface for creator tokens, providing view functions for token security policies.</ul> * * <h4>Benefits:</h4> * <ul>Provides a flexible and modular way to implement custom token transfer restrictions and security policies.</ul> * <ul>Allows creators to enforce policies such as whitelisted operators and permitted contract receivers.</ul> * <ul>Can be easily integrated into other token contracts as a base contract.</ul> * * <h4>Intended Usage:</h4> * <ul>Use as a base contract for creator token implementations that require advanced transfer restrictions and * security policies.</ul> * <ul>Set and update the ICreatorTokenTransferValidator implementation contract to enforce desired policies for the * creator token.</ul> */ abstract contract CreatorTokenBase is OwnablePermissions, TransferValidation, ICreatorToken { error CreatorTokenBase__InvalidTransferValidatorContract(); error CreatorTokenBase__SetTransferValidatorFirst(); address public constant DEFAULT_TRANSFER_VALIDATOR = address(0x0000721C310194CcfC01E523fc93C9cCcFa2A0Ac); TransferSecurityLevels public constant DEFAULT_TRANSFER_SECURITY_LEVEL = TransferSecurityLevels.One; uint120 public constant DEFAULT_OPERATOR_WHITELIST_ID = uint120(1); ICreatorTokenTransferValidator private transferValidator; /** * @notice Allows the contract owner to set the transfer validator to the official validator contract * and set the security policy to the recommended default settings. * @dev May be overridden to change the default behavior of an individual collection. */ function setToDefaultSecurityPolicy() public virtual { _requireCallerIsContractOwner(); setTransferValidator(DEFAULT_TRANSFER_VALIDATOR); ICreatorTokenTransferValidator(DEFAULT_TRANSFER_VALIDATOR).setTransferSecurityLevelOfCollection(address(this), DEFAULT_TRANSFER_SECURITY_LEVEL); ICreatorTokenTransferValidator(DEFAULT_TRANSFER_VALIDATOR).setOperatorWhitelistOfCollection(address(this), DEFAULT_OPERATOR_WHITELIST_ID); } /** * @notice Allows the contract owner to set the transfer validator to a custom validator contract * and set the security policy to their own custom settings. */ function setToCustomValidatorAndSecurityPolicy( address validator, TransferSecurityLevels level, uint120 operatorWhitelistId, uint120 permittedContractReceiversAllowlistId) public { _requireCallerIsContractOwner(); setTransferValidator(validator); ICreatorTokenTransferValidator(validator). setTransferSecurityLevelOfCollection(address(this), level); ICreatorTokenTransferValidator(validator). setOperatorWhitelistOfCollection(address(this), operatorWhitelistId); ICreatorTokenTransferValidator(validator). setPermittedContractReceiverAllowlistOfCollection(address(this), permittedContractReceiversAllowlistId); } /** * @notice Allows the contract owner to set the security policy to their own custom settings. * @dev Reverts if the transfer validator has not been set. */ function setToCustomSecurityPolicy( TransferSecurityLevels level, uint120 operatorWhitelistId, uint120 permittedContractReceiversAllowlistId) public { _requireCallerIsContractOwner(); ICreatorTokenTransferValidator validator = getTransferValidator(); if (address(validator) == address(0)) { revert CreatorTokenBase__SetTransferValidatorFirst(); } validator.setTransferSecurityLevelOfCollection(address(this), level); validator.setOperatorWhitelistOfCollection(address(this), operatorWhitelistId); validator.setPermittedContractReceiverAllowlistOfCollection(address(this), permittedContractReceiversAllowlistId); } /** * @notice Sets the transfer validator for the token contract. * * @dev Throws when provided validator contract is not the zero address and doesn't support * the ICreatorTokenTransferValidator interface. * @dev Throws when the caller is not the contract owner. * * @dev <h4>Postconditions:</h4> * 1. The transferValidator address is updated. * 2. The `TransferValidatorUpdated` event is emitted. * * @param transferValidator_ The address of the transfer validator contract. */ function setTransferValidator(address transferValidator_) public { _requireCallerIsContractOwner(); bool isValidTransferValidator = false; if(transferValidator_.code.length > 0) { try IERC165(transferValidator_).supportsInterface(type(ICreatorTokenTransferValidator).interfaceId) returns (bool supportsInterface) { isValidTransferValidator = supportsInterface; } catch {} } if(transferValidator_ != address(0) && !isValidTransferValidator) { revert CreatorTokenBase__InvalidTransferValidatorContract(); } emit TransferValidatorUpdated(address(transferValidator), transferValidator_); transferValidator = ICreatorTokenTransferValidator(transferValidator_); } /** * @notice Returns the transfer validator contract address for this token contract. */ function getTransferValidator() public view override returns (ICreatorTokenTransferValidator) { return transferValidator; } /** * @notice Returns the security policy for this token contract, which includes: * Transfer security level, operator whitelist id, permitted contract receiver allowlist id. */ function getSecurityPolicy() public view override returns (CollectionSecurityPolicy memory) { if (address(transferValidator) != address(0)) { return transferValidator.getCollectionSecurityPolicy(address(this)); } return CollectionSecurityPolicy({ transferSecurityLevel: TransferSecurityLevels.Zero, operatorWhitelistId: 0, permittedContractReceiversId: 0 }); } /** * @notice Returns the list of all whitelisted operators for this token contract. * @dev This can be an expensive call and should only be used in view-only functions. */ function getWhitelistedOperators() public view override returns (address[] memory) { if (address(transferValidator) != address(0)) { return transferValidator.getWhitelistedOperators( transferValidator.getCollectionSecurityPolicy(address(this)).operatorWhitelistId); } return new address[](0); } /** * @notice Returns the list of permitted contract receivers for this token contract. * @dev This can be an expensive call and should only be used in view-only functions. */ function getPermittedContractReceivers() public view override returns (address[] memory) { if (address(transferValidator) != address(0)) { return transferValidator.getPermittedContractReceivers( transferValidator.getCollectionSecurityPolicy(address(this)).permittedContractReceiversId); } return new address[](0); } /** * @notice Checks if an operator is whitelisted for this token contract. * @param operator The address of the operator to check. */ function isOperatorWhitelisted(address operator) public view override returns (bool) { if (address(transferValidator) != address(0)) { return transferValidator.isOperatorWhitelisted( transferValidator.getCollectionSecurityPolicy(address(this)).operatorWhitelistId, operator); } return false; } /** * @notice Checks if a contract receiver is permitted for this token contract. * @param receiver The address of the receiver to check. */ function isContractReceiverPermitted(address receiver) public view override returns (bool) { if (address(transferValidator) != address(0)) { return transferValidator.isContractReceiverPermitted( transferValidator.getCollectionSecurityPolicy(address(this)).permittedContractReceiversId, receiver); } return false; } /** * @notice Determines if a transfer is allowed based on the token contract's security policy. Use this function * to simulate whether or not a transfer made by the specified `caller` from the `from` address to the `to` * address would be allowed by this token's security policy. * * @notice This function only checks the security policy restrictions and does not check whether token ownership * or approvals are in place. * * @param caller The address of the simulated caller. * @param from The address of the sender. * @param to The address of the receiver. * @return True if the transfer is allowed, false otherwise. */ function isTransferAllowed(address caller, address from, address to) public view override returns (bool) { if (address(transferValidator) != address(0)) { try transferValidator.applyCollectionTransferPolicy(caller, from, to) { return true; } catch { return false; } } return true; } /** * @dev Pre-validates a token transfer, reverting if the transfer is not allowed by this token's security policy. * Inheriting contracts are responsible for overriding the _beforeTokenTransfer function, or its equivalent * and calling _validateBeforeTransfer so that checks can be properly applied during token transfers. * * @dev Throws when the transfer doesn't comply with the collection's transfer policy, if the transferValidator is * set to a non-zero address. * * @param caller The address of the caller. * @param from The address of the sender. * @param to The address of the receiver. */ function _preValidateTransfer( address caller, address from, address to, uint256 /*tokenId*/, uint256 /*value*/) internal virtual override { if (address(transferValidator) != address(0)) { transferValidator.applyCollectionTransferPolicy(caller, from, to); } } } // File: @openzeppelin/contracts/finance/PaymentSplitter.sol // OpenZeppelin Contracts (last updated v4.8.0) (finance/PaymentSplitter.sol) pragma solidity ^0.8.0; /** * @title PaymentSplitter * @dev This contract allows to split Ether payments among a group of accounts. The sender does not need to be aware * that the Ether will be split in this way, since it is handled transparently by the contract. * * The split can be in equal parts or in any other arbitrary proportion. The way this is specified is by assigning each * account to a number of shares. Of all the Ether that this contract receives, each account will then be able to claim * an amount proportional to the percentage of total shares they were assigned. The distribution of shares is set at the * time of contract deployment and can't be updated thereafter. * * `PaymentSplitter` follows a _pull payment_ model. This means that payments are not automatically forwarded to the * accounts but kept in this contract, and the actual transfer is triggered as a separate step by calling the {release} * function. * * NOTE: This contract assumes that ERC20 tokens will behave similarly to native tokens (Ether). Rebasing tokens, and * tokens that apply fees during transfers, are likely to not be supported as expected. If in doubt, we encourage you * to run tests before sending real value to this contract. */ contract PaymentSplitter is Context { event PayeeAdded(address account, uint256 shares); event PaymentReleased(address to, uint256 amount); event ERC20PaymentReleased(IERC20 indexed token, address to, uint256 amount); event PaymentReceived(address from, uint256 amount); uint256 private _totalShares; uint256 private _totalReleased; mapping(address => uint256) private _shares; mapping(address => uint256) private _released; address[] private _payees; mapping(IERC20 => uint256) private _erc20TotalReleased; mapping(IERC20 => mapping(address => uint256)) private _erc20Released; /** * @dev Creates an instance of `PaymentSplitter` where each account in `payees` is assigned the number of shares at * the matching position in the `shares` array. * * All addresses in `payees` must be non-zero. Both arrays must have the same non-zero length, and there must be no * duplicates in `payees`. */ constructor(address[] memory payees, uint256[] memory shares_) payable { require(payees.length == shares_.length, "PaymentSplitter: payees and shares length mismatch"); require(payees.length > 0, "PaymentSplitter: no payees"); for (uint256 i = 0; i < payees.length; i++) { _addPayee(payees[i], shares_[i]); } } /** * @dev The Ether received will be logged with {PaymentReceived} events. Note that these events are not fully * reliable: it's possible for a contract to receive Ether without triggering this function. This only affects the * reliability of the events, and not the actual splitting of Ether. * * To learn more about this see the Solidity documentation for * https://solidity.readthedocs.io/en/latest/contracts.html#fallback-function[fallback * functions]. */ receive() external payable virtual { emit PaymentReceived(_msgSender(), msg.value); } /** * @dev Getter for the total shares held by payees. */ function totalShares() public view returns (uint256) { return _totalShares; } /** * @dev Getter for the total amount of Ether already released. */ function totalReleased() public view returns (uint256) { return _totalReleased; } /** * @dev Getter for the total amount of `token` already released. `token` should be the address of an IERC20 * contract. */ function totalReleased(IERC20 token) public view returns (uint256) { return _erc20TotalReleased[token]; } /** * @dev Getter for the amount of shares held by an account. */ function shares(address account) public view returns (uint256) { return _shares[account]; } /** * @dev Getter for the amount of Ether already released to a payee. */ function released(address account) public view returns (uint256) { return _released[account]; } /** * @dev Getter for the amount of `token` tokens already released to a payee. `token` should be the address of an * IERC20 contract. */ function released(IERC20 token, address account) public view returns (uint256) { return _erc20Released[token][account]; } /** * @dev Getter for the address of the payee number `index`. */ function payee(uint256 index) public view returns (address) { return _payees[index]; } /** * @dev Getter for the amount of payee's releasable Ether. */ function releasable(address account) public view returns (uint256) { uint256 totalReceived = address(this).balance + totalReleased(); return _pendingPayment(account, totalReceived, released(account)); } /** * @dev Getter for the amount of payee's releasable `token` tokens. `token` should be the address of an * IERC20 contract. */ function releasable(IERC20 token, address account) public view returns (uint256) { uint256 totalReceived = token.balanceOf(address(this)) + totalReleased(token); return _pendingPayment(account, totalReceived, released(token, account)); } /** * @dev Triggers a transfer to `account` of the amount of Ether they are owed, according to their percentage of the * total shares and their previous withdrawals. */ function release(address payable account) public virtual { require(_shares[account] > 0, "PaymentSplitter: account has no shares"); uint256 payment = releasable(account); require(payment != 0, "PaymentSplitter: account is not due payment"); // _totalReleased is the sum of all values in _released. // If "_totalReleased += payment" does not overflow, then "_released[account] += payment" cannot overflow. _totalReleased += payment; unchecked { _released[account] += payment; } Address.sendValue(account, payment); emit PaymentReleased(account, payment); } /** * @dev Triggers a transfer to `account` of the amount of `token` tokens they are owed, according to their * percentage of the total shares and their previous withdrawals. `token` must be the address of an IERC20 * contract. */ function release(IERC20 token, address account) public virtual { require(_shares[account] > 0, "PaymentSplitter: account has no shares"); uint256 payment = releasable(token, account); require(payment != 0, "PaymentSplitter: account is not due payment"); // _erc20TotalReleased[token] is the sum of all values in _erc20Released[token]. // If "_erc20TotalReleased[token] += payment" does not overflow, then "_erc20Released[token][account] += payment" // cannot overflow. _erc20TotalReleased[token] += payment; unchecked { _erc20Released[token][account] += payment; } SafeERC20.safeTransfer(token, account, payment); emit ERC20PaymentReleased(token, account, payment); } /** * @dev internal logic for computing the pending payment of an `account` given the token historical balances and * already released amounts. */ function _pendingPayment( address account, uint256 totalReceived, uint256 alreadyReleased ) private view returns (uint256) { return (totalReceived * _shares[account]) / _totalShares - alreadyReleased; } /** * @dev Add a new payee to the contract. * @param account The address of the payee to add. * @param shares_ The number of shares owned by the payee. */ function _addPayee(address account, uint256 shares_) private { require(account != address(0), "PaymentSplitter: account is the zero address"); require(shares_ > 0, "PaymentSplitter: shares are 0"); require(_shares[account] == 0, "PaymentSplitter: account already has shares"); _payees.push(account); _shares[account] = shares_; _totalShares = _totalShares + shares_; emit PayeeAdded(account, shares_); } } // File: @openzeppelin/contracts/access/Ownable.sol // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * The initial owner is set to the address provided by the deployer. This can * later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // File: contracts/TheCryptAvatar.sol pragma solidity ^0.8.18; contract TheCryptAvatar is Ownable, ERC721A, PaymentSplitter, CreatorTokenBase { using Strings for uint256; enum Step { Stopped, Active } string public baseURI; Step public sellingStep; uint256 public MAX_SUPPLY = 6666; uint256 public MAX_TOTAL_PHASE = 5666; uint256 public MAX_PER_WALLET_FREE = 1; uint256 public MAX_PER_WALLET_WL = 6666; uint256 public MAX_PER_WALLET_OG = 6666; uint256 public MAX_PER_WALLET_PUBLIC = 6666; uint256 public freeSalePrice = 0 ether; uint256 public ogSalePrice = 0.019 ether; uint256 public wlSalePrice = 0.029 ether; uint256 public publicSalePrice = 0.039 ether; bytes32 public merkleRootFREE; bytes32 public merkleRootOG; bytes32 public merkleRootWL; mapping(address => uint256) public amountNFTsperWalletFREE; mapping(address => uint256) public amountNFTsperWalletOG; mapping(address => uint256) public amountNFTsperWalletWL; mapping(address => uint256) public amountNFTsperWalletPUBLIC; uint256 private teamLength; constructor( address _initialOwner, address[] memory _team, uint256[] memory _teamShares, string memory _baseURI ) CreatorTokenBase() ERC721A("TheCrypt", "CRYPT") PaymentSplitter(_team, _teamShares) Ownable(_initialOwner) { baseURI = _baseURI; teamLength = _team.length; } modifier callerIsUser() { require(tx.origin == msg.sender, "The caller is another contract"); _; } function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(ICreatorToken).interfaceId || super.supportsInterface(interfaceId); } /// @dev Ties the erc721a _beforeTokenTransfers hook to more granular transfer validation logic function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual override { for (uint256 i = 0; i < quantity;) { _validateBeforeTransfer(from, to, startTokenId + i); unchecked { ++i; } } } /// @dev Ties the erc721a _afterTokenTransfer hook to more granular transfer validation logic function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual override { for (uint256 i = 0; i < quantity;) { _validateAfterTransfer(from, to, startTokenId + i); unchecked { ++i; } } } function _msgSenderERC721A() internal view virtual override returns (address) { return _msgSender(); } function _requireCallerIsContractOwner() internal view override { require(msg.sender == owner(), "Caller is not the contract owner"); } function whitelistMint( address _account, uint256 _quantity, bytes32[] calldata _proof, uint256 _whitelist ) external payable callerIsUser { require( sellingStep == Step.Active, "Whitelist sale is not activated" ); require(msg.sender == _account, "Mint with your own wallet."); require( _whitelist == 1 || _whitelist == 2 || _whitelist == 3, "Whitelist incorrect" ); require( totalSupply() + _quantity <= MAX_TOTAL_PHASE, "Max supply exceeded" ); require(totalSupply() + _quantity <= MAX_SUPPLY, "Max supply exceeded"); if (_whitelist == 3) { require(isWhiteListed(msg.sender, _proof), "Not whitelisted"); require( amountNFTsperWalletWL[msg.sender] + _quantity <= MAX_PER_WALLET_WL, "Max per wallet limit reached" ); require(msg.value >= wlSalePrice * _quantity, "Not enought funds"); amountNFTsperWalletWL[msg.sender] += _quantity; } else if (_whitelist == 2){ require(isOGListed(msg.sender, _proof), "Not whitelisted"); require( amountNFTsperWalletOG[msg.sender] + _quantity <= MAX_PER_WALLET_OG, "Max per wallet limit reached" ); require(msg.value >= ogSalePrice * _quantity, "Not enought funds"); amountNFTsperWalletOG[msg.sender] += _quantity; } else if (_whitelist == 1){ require(isFREEListed(msg.sender, _proof), "Not whitelisted"); require( amountNFTsperWalletFREE[msg.sender] + _quantity <= MAX_PER_WALLET_FREE, "Max per wallet limit reached" ); require(msg.value >= freeSalePrice * _quantity, "Not enought funds"); amountNFTsperWalletFREE[msg.sender] += _quantity; } _safeMint(_account, _quantity); } function publicSaleMint(address _account, uint256 _quantity) external payable { require(sellingStep == Step.Active, "Public sale is not activated"); require( totalSupply() + _quantity <= MAX_TOTAL_PHASE, "Max supply exceeded" ); require(totalSupply() + _quantity <= MAX_SUPPLY, "Max supply exceeded"); require( amountNFTsperWalletPUBLIC[_account] + _quantity <= MAX_PER_WALLET_PUBLIC, "Max per wallet limit reached" ); require(msg.value >= publicSalePrice * _quantity, "Not enought funds"); amountNFTsperWalletPUBLIC[_account] += _quantity; _safeMint(_account, _quantity); } function gift(address _to, uint256 _quantity) external onlyOwner { require(totalSupply() + _quantity <= MAX_SUPPLY, "Reached max Supply"); _safeMint(_to, _quantity); } function lowerSupply(uint256 _MAX_SUPPLY) external onlyOwner { require(_MAX_SUPPLY < MAX_SUPPLY, "Cannot increase supply!"); MAX_SUPPLY = _MAX_SUPPLY; } function setMaxTotalPHASE(uint256 _MAX_TOTAL_PHASE) external onlyOwner { MAX_TOTAL_PHASE = _MAX_TOTAL_PHASE; } function setMaxPerWalletFREE(uint256 _MAX_PER_WALLET_FREE) external onlyOwner { MAX_PER_WALLET_FREE = _MAX_PER_WALLET_FREE; } function setMaxPerWalletWL(uint256 _MAX_PER_WALLET_WL) external onlyOwner { MAX_PER_WALLET_WL = _MAX_PER_WALLET_WL; } function setMaxPerWalletOG(uint256 _MAX_PER_WALLET_OG) external onlyOwner { MAX_PER_WALLET_OG = _MAX_PER_WALLET_OG; } function setMaxPerWalletPUBLIC(uint256 _MAX_PER_WALLET_PUBLIC) external onlyOwner { MAX_PER_WALLET_PUBLIC = _MAX_PER_WALLET_PUBLIC; } function setWLSalePrice(uint256 _wlSalePrice) external onlyOwner { wlSalePrice = _wlSalePrice; } function setOGSalePrice(uint256 _ogSalePrice) external onlyOwner { ogSalePrice = _ogSalePrice; } function setFREESalePrice(uint256 _freeSalePrice) external onlyOwner { freeSalePrice = _freeSalePrice; } function setPublicSalePrice(uint256 _publicSalePrice) external onlyOwner { publicSalePrice = _publicSalePrice; } function setBaseUri(string memory _baseURI) external onlyOwner { baseURI = _baseURI; } function setStep(uint256 _step) external onlyOwner { sellingStep = Step(_step); } function tokenURI(uint256 _tokenId) public view virtual override returns (string memory) { require(_exists(_tokenId), "URI query for nonexistent token"); return string(abi.encodePacked(baseURI, _tokenId.toString(), ".json")); } //Whitelist function setMerkleRootWL(bytes32 _merkleRootWL) external onlyOwner { merkleRootWL = _merkleRootWL; } function setMerkleRootOG(bytes32 _merkleRootOG) external onlyOwner { merkleRootOG = _merkleRootOG; } function setMerkleRootFREE(bytes32 _merkleRootFREE) external onlyOwner { merkleRootFREE = _merkleRootFREE; } function isFREEListed(address _account, bytes32[] calldata _proof) internal view returns (bool) { return _verifyFREE(leaf(_account), _proof); } function isOGListed(address _account, bytes32[] calldata _proof) internal view returns (bool) { return _verifyOG(leaf(_account), _proof); } function isWhiteListed(address _account, bytes32[] calldata _proof) internal view returns (bool) { return _verifyWL(leaf(_account), _proof); } function leaf(address _account) internal pure returns (bytes32) { return keccak256(abi.encodePacked(_account)); } function _verifyWL(bytes32 _leaf, bytes32[] memory _proof) internal view returns (bool) { return MerkleProof.verify(_proof, merkleRootWL, _leaf); } function _verifyOG(bytes32 _leaf, bytes32[] memory _proof) internal view returns (bool) { return MerkleProof.verify(_proof, merkleRootOG, _leaf); } function _verifyFREE(bytes32 _leaf, bytes32[] memory _proof) internal view returns (bool) { return MerkleProof.verify(_proof, merkleRootFREE, _leaf); } //ReleaseALL function releaseAll() external onlyOwner { for (uint256 i = 0; i < teamLength; i++) { release(payable(payee(i))); } } receive() external payable override { revert("Only if you mint"); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_initialOwner","type":"address"},{"internalType":"address[]","name":"_team","type":"address[]"},{"internalType":"uint256[]","name":"_teamShares","type":"uint256[]"},{"internalType":"string","name":"_baseURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"AddressEmptyCode","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"AddressInsufficientBalance","type":"error"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"CreatorTokenBase__InvalidTransferValidatorContract","type":"error"},{"inputs":[],"name":"CreatorTokenBase__SetTransferValidatorFirst","type":"error"},{"inputs":[],"name":"FailedInnerCall","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"inputs":[],"name":"ShouldNotMintToBurnAddress","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract IERC20","name":"token","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ERC20PaymentReleased","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":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"PayeeAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReleased","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldValidator","type":"address"},{"indexed":false,"internalType":"address","name":"newValidator","type":"address"}],"name":"TransferValidatorUpdated","type":"event"},{"inputs":[],"name":"DEFAULT_OPERATOR_WHITELIST_ID","outputs":[{"internalType":"uint120","name":"","type":"uint120"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_TRANSFER_SECURITY_LEVEL","outputs":[{"internalType":"enum TransferSecurityLevels","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_TRANSFER_VALIDATOR","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PER_WALLET_FREE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PER_WALLET_OG","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PER_WALLET_PUBLIC","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PER_WALLET_WL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TOTAL_PHASE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"amountNFTsperWalletFREE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"amountNFTsperWalletOG","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"amountNFTsperWalletPUBLIC","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"amountNFTsperWalletWL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freeSalePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPermittedContractReceivers","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSecurityPolicy","outputs":[{"components":[{"internalType":"enum TransferSecurityLevels","name":"transferSecurityLevel","type":"uint8"},{"internalType":"uint120","name":"operatorWhitelistId","type":"uint120"},{"internalType":"uint120","name":"permittedContractReceiversId","type":"uint120"}],"internalType":"struct CollectionSecurityPolicy","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTransferValidator","outputs":[{"internalType":"contract ICreatorTokenTransferValidator","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getWhitelistedOperators","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"gift","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"isContractReceiverPermitted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"isOperatorWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"caller","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"}],"name":"isTransferAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_MAX_SUPPLY","type":"uint256"}],"name":"lowerSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"merkleRootFREE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRootOG","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRootWL","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ogSalePrice","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":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"payee","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"publicSaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicSalePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"releasable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"releasable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"releaseAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sellingStep","outputs":[{"internalType":"enum TheCryptAvatar.Step","name":"","type":"uint8"}],"stateMutability":"view","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":[{"internalType":"uint256","name":"_freeSalePrice","type":"uint256"}],"name":"setFREESalePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_MAX_PER_WALLET_FREE","type":"uint256"}],"name":"setMaxPerWalletFREE","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_MAX_PER_WALLET_OG","type":"uint256"}],"name":"setMaxPerWalletOG","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_MAX_PER_WALLET_PUBLIC","type":"uint256"}],"name":"setMaxPerWalletPUBLIC","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_MAX_PER_WALLET_WL","type":"uint256"}],"name":"setMaxPerWalletWL","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_MAX_TOTAL_PHASE","type":"uint256"}],"name":"setMaxTotalPHASE","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRootFREE","type":"bytes32"}],"name":"setMerkleRootFREE","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRootOG","type":"bytes32"}],"name":"setMerkleRootOG","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRootWL","type":"bytes32"}],"name":"setMerkleRootWL","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_ogSalePrice","type":"uint256"}],"name":"setOGSalePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_publicSalePrice","type":"uint256"}],"name":"setPublicSalePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_step","type":"uint256"}],"name":"setStep","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum TransferSecurityLevels","name":"level","type":"uint8"},{"internalType":"uint120","name":"operatorWhitelistId","type":"uint120"},{"internalType":"uint120","name":"permittedContractReceiversAllowlistId","type":"uint120"}],"name":"setToCustomSecurityPolicy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"validator","type":"address"},{"internalType":"enum TransferSecurityLevels","name":"level","type":"uint8"},{"internalType":"uint120","name":"operatorWhitelistId","type":"uint120"},{"internalType":"uint120","name":"permittedContractReceiversAllowlistId","type":"uint120"}],"name":"setToCustomValidatorAndSecurityPolicy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setToDefaultSecurityPolicy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"transferValidator_","type":"address"}],"name":"setTransferValidator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_wlSalePrice","type":"uint256"}],"name":"setWLSalePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"shares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalShares","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":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_quantity","type":"uint256"},{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"},{"internalType":"uint256","name":"_whitelist","type":"uint256"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"wlSalePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6080604052611a0a6013556116226014556001601555611a0a601655611a0a601755611a0a6018555f601955664380663abb8000601a5566670758aa7c8000601b55668a8e4b1a3d8000601c5534801562000058575f80fd5b50604051620047b1380380620047b18339810160408190526200007b9162000627565b828260405180604001604052806008815260200167151a1950dc9e5c1d60c21b8152506040518060400160405280600581526020016410d496541560da1b815250875f6001600160a01b0316816001600160a01b031603620000f757604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b620001028162000269565b506003620001118382620007b5565b506004620001208282620007b5565b506001805550508051825114620001955760405162461bcd60e51b815260206004820152603260248201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726044820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b6064820152608401620000ee565b5f825111620001e75760405162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f207061796565730000000000006044820152606401620000ee565b5f5b825181101562000246576200023d8382815181106200020c576200020c62000881565b602002602001015183838151811062000229576200022962000881565b6020026020010151620002b860201b60201c565b600101620001e9565b50601191506200025990508282620007b5565b5050905160245550620008bb9050565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b038216620003255760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b6064820152608401620000ee565b5f8111620003765760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a207368617265732061726520300000006044820152606401620000ee565b6001600160a01b0382165f908152600b602052604090205415620003f15760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b6064820152608401620000ee565b600d8054600181019091557fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb50180546001600160a01b0319166001600160a01b0384169081179091555f908152600b602052604090208190556009546200045a90829062000895565b600955604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b80516001600160a01b0381168114620004ba575f80fd5b919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f191681016001600160401b0381118282101715620004fe57620004fe620004bf565b604052919050565b5f6001600160401b03821115620005215762000521620004bf565b5060051b60200190565b5f82601f8301126200053b575f80fd5b81516020620005546200054e8362000506565b620004d3565b8083825260208201915060208460051b87010193508684111562000576575f80fd5b602086015b848110156200059457805183529183019183016200057b565b509695505050505050565b5f82601f830112620005af575f80fd5b81516001600160401b03811115620005cb57620005cb620004bf565b6020620005e1601f8301601f19168201620004d3565b8281528582848701011115620005f5575f80fd5b5f5b8381101562000614578581018301518282018401528201620005f7565b505f928101909101919091529392505050565b5f805f80608085870312156200063b575f80fd5b6200064685620004a3565b602086810151919550906001600160401b038082111562000665575f80fd5b818801915088601f83011262000679575f80fd5b81516200068a6200054e8262000506565b81815260059190911b8301840190848101908b831115620006a9575f80fd5b938501935b82851015620006d257620006c285620004a3565b82529385019390850190620006ae565b60408b01519098509450505080831115620006eb575f80fd5b620006f989848a016200052b565b945060608801519250808311156200070f575f80fd5b50506200071f878288016200059f565b91505092959194509250565b600181811c908216806200074057607f821691505b6020821081036200075f57634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115620007b057805f5260205f20601f840160051c810160208510156200078c5750805b601f840160051c820191505b81811015620007ad575f815560010162000798565b50505b505050565b81516001600160401b03811115620007d157620007d1620004bf565b620007e981620007e284546200072b565b8462000765565b602080601f8311600181146200081f575f8415620008075750858301515b5f19600386901b1c1916600185901b17855562000879565b5f85815260208120601f198616915b828110156200084f578886015182559484019460019091019084016200082e565b50858210156200086d57878501515f19600388901b60f8161c191681555b505060018460011b0185555b505050505050565b634e487b7160e01b5f52603260045260245ffd5b80820180821115620008b557634e487b7160e01b5f52601160045260245ffd5b92915050565b613ee880620008c95f395ff3fe608060405260043610610466575f3560e01c80638b83209b11610241578063c1612d4111610134578063d79779b2116100b3578063f2fde38b11610078578063f2fde38b14610de6578063f33cb7d014610e05578063f8dcbddb14610e1a578063fae9fd8314610e39578063fd762d9214610e58575f80fd5b8063d79779b214610d0e578063e33b7de314610d42578063e453366a14610d56578063e985e9c514610d80578063ebb6ab4414610dc7575f80fd5b8063cbccefb2116100f9578063cbccefb214610c6c578063cbce4c9714610c92578063ce7c2ac214610cb1578063d007af5c14610ce5578063d6492d8114610cf9575f80fd5b8063c1612d4114610bdb578063c2dd083214610bfa578063c45ac05014610c0f578063c715381614610c2e578063c87b56dd14610c4d575f80fd5b8063a3237827116101c0578063ac6a635911610185578063ac6a635914610b3c578063ad3e31b714610b67578063ad6cb31914610b86578063b88d4fde14610b9b578063be537f4314610bba575f80fd5b8063a323782714610aad578063a3f8eace14610acc578063a58fdc1114610aeb578063a9fc664e14610b0a578063ac5ae11b14610b29575f80fd5b80639852595c116102065780639852595c14610a075780639b6860c814610a3b5780639d645a4414610a50578063a0bcfc7f14610a6f578063a22cb46514610a8e575f80fd5b80638b83209b146109625780638da5cb5b146109815780638eb478a61461099d578063952aeab8146109c857806395d89b41146109f3575f80fd5b8063406072a9116103595780636352211e116102d857806370a082311161029d57806370a08231146108e6578063715018a614610905578063734c66bd14610919578063791a25191461092e578063828122ab1461094d575f80fd5b80636352211e1461087557806364affb40146108945780636bdb5b0f146108a95780636c0360eb146108be5780636c3b8699146108d2575f80fd5b806355cf59121161031e57806355cf5912146107e457806358155dcc146108035780635be7fde8146108165780635d4c1d461461082a5780636134716214610856575f80fd5b8063406072a91461072c57806342842e0e1461077057806348b750441461078f578063495c8bf9146107ae578063509033b4146107cf575f80fd5b806319165587116103e55780632e8da829116103aa5780632e8da829146106b05780633058a112146106cf57806332cb6b0c146106ee57806334bb95dc146107035780633a98ef3914610718575f80fd5b8063191655871461061d5780631b25b0771461063c5780631c33b3281461065b5780632177a1031461067c57806323b872dd14610691575f80fd5b8063081812fc1161042b578063081812fc14610581578063095ea7b3146105a0578063098144d4146105bf578063151fcfcc146105dc57806318160ddd146105fb575f80fd5b806301463546146104af57806301ffc9a7146104f15780630232fc171461052057806306fdde03146105415780630805943914610562575f80fd5b366104ab5760405162461bcd60e51b815260206004820152601060248201526f13db9b1e481a59881e5bdd481b5a5b9d60821b60448201526064015b60405180910390fd5b5f80fd5b3480156104ba575f80fd5b506104d471721c310194ccfc01e523fc93c9cccfa2a0ac81565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156104fc575f80fd5b5061051061050b3660046133d1565b610e77565b60405190151581526020016104e8565b34801561052b575f80fd5b5061053f61053a3660046133ec565b610ea1565b005b34801561054c575f80fd5b50610555610eae565b6040516104e89190613450565b34801561056d575f80fd5b5061053f61057c3660046133ec565b610f3e565b34801561058c575f80fd5b506104d461059b3660046133ec565b610f4b565b3480156105ab575f80fd5b5061053f6105ba366004613476565b610f8d565b3480156105ca575f80fd5b506010546001600160a01b03166104d4565b3480156105e7575f80fd5b5061053f6105f63660046133ec565b61102b565b348015610606575f80fd5b5061060f611038565b6040519081526020016104e8565b348015610628575f80fd5b5061053f6106373660046134a0565b611045565b348015610647575f80fd5b506105106106563660046134bb565b611127565b348015610666575f80fd5b5061066f600181565b6040516104e8919061352b565b348015610687575f80fd5b5061060f60145481565b34801561069c575f80fd5b5061053f6106ab366004613539565b6111bc565b3480156106bb575f80fd5b506105106106ca3660046134a0565b611366565b3480156106da575f80fd5b5061053f6106e93660046133ec565b61146c565b3480156106f9575f80fd5b5061060f60135481565b34801561070e575f80fd5b5061060f60155481565b348015610723575f80fd5b5060095461060f565b348015610737575f80fd5b5061060f610746366004613577565b6001600160a01b039182165f908152600f6020908152604080832093909416825291909152205490565b34801561077b575f80fd5b5061053f61078a366004613539565b611479565b34801561079a575f80fd5b5061053f6107a9366004613577565b611498565b3480156107b9575f80fd5b506107c26115a4565b6040516104e891906135ae565b3480156107da575f80fd5b5061060f601a5481565b3480156107ef575f80fd5b5061053f6107fe3660046133ec565b6116ae565b61053f6108113660046135fa565b6116bb565b348015610821575f80fd5b5061053f611acb565b348015610835575f80fd5b5061083e600181565b6040516001600160781b0390911681526020016104e8565b348015610861575f80fd5b5061053f6108703660046136a6565b611af6565b348015610880575f80fd5b506104d461088f3660046133ec565b611c51565b34801561089f575f80fd5b5061060f60185481565b3480156108b4575f80fd5b5061060f601d5481565b3480156108c9575f80fd5b50610555611c5b565b3480156108dd575f80fd5b5061053f611ce7565b3480156108f1575f80fd5b5061060f6109003660046134a0565b611dd6565b348015610910575f80fd5b5061053f611e23565b348015610924575f80fd5b5061060f601b5481565b348015610939575f80fd5b5061053f6109483660046133ec565b611e36565b348015610958575f80fd5b5061060f60165481565b34801561096d575f80fd5b506104d461097c3660046133ec565b611e43565b34801561098c575f80fd5b505f546001600160a01b03166104d4565b3480156109a8575f80fd5b5061060f6109b73660046134a0565b60236020525f908152604090205481565b3480156109d3575f80fd5b5061060f6109e23660046134a0565b60226020525f908152604090205481565b3480156109fe575f80fd5b50610555611e71565b348015610a12575f80fd5b5061060f610a213660046134a0565b6001600160a01b03165f908152600c602052604090205490565b348015610a46575f80fd5b5061060f601c5481565b348015610a5b575f80fd5b50610510610a6a3660046134a0565b611e80565b348015610a7a575f80fd5b5061053f610a8936600461377d565b611f45565b348015610a99575f80fd5b5061053f610aa83660046137cf565b611f5d565b348015610ab8575f80fd5b5061053f610ac73660046133ec565b611ffe565b348015610ad7575f80fd5b5061060f610ae63660046134a0565b61200b565b348015610af6575f80fd5b5061053f610b053660046133ec565b61204a565b348015610b15575f80fd5b5061053f610b243660046134a0565b612057565b61053f610b37366004613476565b612176565b348015610b47575f80fd5b5061060f610b563660046134a0565b60216020525f908152604090205481565b348015610b72575f80fd5b5061053f610b813660046133ec565b6122ec565b348015610b91575f80fd5b5061060f601e5481565b348015610ba6575f80fd5b5061053f610bb53660046137fb565b6122f9565b348015610bc5575f80fd5b50610bce61233d565b6040516104e89190613876565b348015610be6575f80fd5b5061053f610bf53660046133ec565b6123f4565b348015610c05575f80fd5b5061060f60175481565b348015610c1a575f80fd5b5061060f610c29366004613577565b612401565b348015610c39575f80fd5b5061053f610c483660046133ec565b6124c8565b348015610c58575f80fd5b50610555610c673660046133ec565b612526565b348015610c77575f80fd5b50601254610c859060ff1681565b6040516104e891906138b1565b348015610c9d575f80fd5b5061053f610cac366004613476565b6125af565b348015610cbc575f80fd5b5061060f610ccb3660046134a0565b6001600160a01b03165f908152600b602052604090205490565b348015610cf0575f80fd5b506107c261261a565b348015610d04575f80fd5b5061060f601f5481565b348015610d19575f80fd5b5061060f610d283660046134a0565b6001600160a01b03165f908152600e602052604090205490565b348015610d4d575f80fd5b50600a5461060f565b348015610d61575f80fd5b5061060f610d703660046134a0565b602080525f908152604090205481565b348015610d8b575f80fd5b50610510610d9a366004613577565b6001600160a01b039182165f90815260086020908152604080832093909416825291909152205460ff1690565b348015610dd2575f80fd5b5061053f610de13660046133ec565b6126d1565b348015610df1575f80fd5b5061053f610e003660046134a0565b6126de565b348015610e10575f80fd5b5061060f60195481565b348015610e25575f80fd5b5061053f610e343660046133ec565b612718565b348015610e44575f80fd5b5061053f610e533660046133ec565b612755565b348015610e63575f80fd5b5061053f610e723660046138cb565b612762565b5f6001600160e01b031982166310c8aba560e31b1480610e9b5750610e9b82612857565b92915050565b610ea96128bf565b601555565b606060038054610ebd90613924565b80601f0160208091040260200160405190810160405280929190818152602001828054610ee990613924565b8015610f345780601f10610f0b57610100808354040283529160200191610f34565b820191905f5260205f20905b815481529060010190602001808311610f1757829003601f168201915b5050505050905090565b610f466128bf565b601b55565b5f610f55826128eb565b610f72576040516333d1c03960e21b815260040160405180910390fd5b505f908152600760205260409020546001600160a01b031690565b5f610f9782611c51565b9050336001600160a01b03821614610fd057610fb38133610d9a565b610fd0576040516367d9dca160e11b815260040160405180910390fd5b5f8281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6110336128bf565b601955565b600254600154035f190190565b6001600160a01b0381165f908152600b60205260409020546110795760405162461bcd60e51b81526004016104a29061395c565b5f6110838261200b565b9050805f036110a45760405162461bcd60e51b81526004016104a2906139a2565b80600a5f8282546110b59190613a01565b90915550506001600160a01b0382165f908152600c602052604090208054820190556110e1828261291e565b604080516001600160a01b0384168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a15050565b6010545f906001600160a01b0316156111b15760105460405163050bf71960e31b81526001600160a01b038681166004830152858116602483015284811660448301529091169063285fb8c8906064015f6040518083038186803b15801561118d575f80fd5b505afa92505050801561119e575060015b6111a957505f6111b5565b5060016111b5565b5060015b9392505050565b5f6111c6826129b1565b9050836001600160a01b0316816001600160a01b0316146111f95760405162a1148160e81b815260040160405180910390fd5b5f8281526007602052604090208054338082146001600160a01b03881690911417611245576112288633610d9a565b61124557604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661126c57604051633a954ecd60e21b815260040160405180910390fd5b6112798686866001612a1b565b8015611283575f82555b6001600160a01b038681165f9081526006602052604080822080545f19019055918716808252919020805460010190554260a01b17600160e11b175f85815260056020526040812091909155600160e11b8416900361131057600184015f81815260056020526040812054900361130e57600154811461130e575f8181526005602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461135e8686866001612a41565b505050505050565b6010545f906001600160a01b03161561146557601054604051635caaa2a960e11b81523060048201526001600160a01b039091169063d72dde5e90829063b955455290602401606060405180830381865afa1580156113c7573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906113eb9190613a14565b602001516040516001600160e01b031960e084901b1681526001600160781b0390911660048201526001600160a01b03851660248201526044015b602060405180830381865afa158015611441573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e9b9190613a84565b505f919050565b6114746128bf565b601455565b61149383838360405180602001604052805f8152506122f9565b505050565b6001600160a01b0381165f908152600b60205260409020546114cc5760405162461bcd60e51b81526004016104a29061395c565b5f6114d78383612401565b9050805f036114f85760405162461bcd60e51b81526004016104a2906139a2565b6001600160a01b0383165f908152600e60205260408120805483929061151f908490613a01565b90915550506001600160a01b038084165f908152600f60209081526040808320938616835292905220805482019055611559838383612a67565b604080516001600160a01b038481168252602082018490528516917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a2505050565b6010546060906001600160a01b03161561169c57601054604051635caaa2a960e11b81523060048201526001600160a01b0390911690633fe5df9990829063b955455290602401606060405180830381865afa158015611606573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061162a9190613a14565b602001516040516001600160e01b031960e084901b1681526001600160781b0390911660048201526024015b5f60405180830381865afa158015611670573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526116979190810190613a9f565b905090565b50604080515f81526020810190915290565b6116b66128bf565b601855565b32331461170a5760405162461bcd60e51b815260206004820152601e60248201527f5468652063616c6c657220697320616e6f7468657220636f6e7472616374000060448201526064016104a2565b600160125460ff16600181111561172357611723613503565b146117705760405162461bcd60e51b815260206004820152601f60248201527f57686974656c6973742073616c65206973206e6f74206163746976617465640060448201526064016104a2565b336001600160a01b038616146117c85760405162461bcd60e51b815260206004820152601a60248201527f4d696e74207769746820796f7572206f776e2077616c6c65742e00000000000060448201526064016104a2565b80600114806117d75750806002145b806117e25750806003145b6118245760405162461bcd60e51b815260206004820152601360248201527215da1a5d195b1a5cdd081a5b98dbdc9c9958dd606a1b60448201526064016104a2565b60145484611830611038565b61183a9190613a01565b11156118585760405162461bcd60e51b81526004016104a290613b4c565b60135484611864611038565b61186e9190613a01565b111561188c5760405162461bcd60e51b81526004016104a290613b4c565b8060030361194c5761189f338484612ab9565b6118bb5760405162461bcd60e51b81526004016104a290613b79565b601654335f908152602260205260409020546118d8908690613a01565b11156118f65760405162461bcd60e51b81526004016104a290613ba2565b83601b546119049190613bd9565b3410156119235760405162461bcd60e51b81526004016104a290613bf0565b335f9081526022602052604081208054869290611941908490613a01565b90915550611aba9050565b80600203611a015761195f338484612afe565b61197b5760405162461bcd60e51b81526004016104a290613b79565b601754335f90815260216020526040902054611998908690613a01565b11156119b65760405162461bcd60e51b81526004016104a290613ba2565b83601a546119c49190613bd9565b3410156119e35760405162461bcd60e51b81526004016104a290613bf0565b335f9081526021602052604081208054869290611941908490613a01565b80600103611aba57611a14338484612b43565b611a305760405162461bcd60e51b81526004016104a290613b79565b601554335f908152602080526040902054611a4c908690613a01565b1115611a6a5760405162461bcd60e51b81526004016104a290613ba2565b83601954611a789190613bd9565b341015611a975760405162461bcd60e51b81526004016104a290613bf0565b335f90815260208052604081208054869290611ab4908490613a01565b90915550505b611ac48585612b88565b5050505050565b611ad36128bf565b5f5b602454811015611af357611aeb61063782611e43565b600101611ad5565b50565b611afe612ba1565b5f611b116010546001600160a01b031690565b90506001600160a01b038116611b3a57604051631cffe3dd60e11b815260040160405180910390fd5b604051630368065360e61b81526001600160a01b0382169063da0194c090611b689030908890600401613c1b565b5f604051808303815f87803b158015611b7f575f80fd5b505af1158015611b91573d5f803e3d5ffd5b5050604051631182550160e11b81526001600160a01b0384169250632304aa029150611bc39030908790600401613c38565b5f604051808303815f87803b158015611bda575f80fd5b505af1158015611bec573d5f803e3d5ffd5b505060405163235d10c560e21b81526001600160a01b0384169250638d7443149150611c1e9030908690600401613c38565b5f604051808303815f87803b158015611c35575f80fd5b505af1158015611c47573d5f803e3d5ffd5b5050505050505050565b5f610e9b826129b1565b60118054611c6890613924565b80601f0160208091040260200160405190810160405280929190818152602001828054611c9490613924565b8015611cdf5780601f10611cb657610100808354040283529160200191611cdf565b820191905f5260205f20905b815481529060010190602001808311611cc257829003601f168201915b505050505081565b611cef612ba1565b611d0a71721c310194ccfc01e523fc93c9cccfa2a0ac612057565b604051630368065360e61b815271721c310194ccfc01e523fc93c9cccfa2a0ac9063da0194c090611d42903090600190600401613c1b565b5f604051808303815f87803b158015611d59575f80fd5b505af1158015611d6b573d5f803e3d5ffd5b5050604051631182550160e11b815271721c310194ccfc01e523fc93c9cccfa2a0ac9250632304aa029150611da7903090600190600401613c38565b5f604051808303815f87803b158015611dbe575f80fd5b505af1158015611dd0573d5f803e3d5ffd5b50505050565b5f6001600160a01b038216611dfe576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03165f9081526006602052604090205467ffffffffffffffff1690565b611e2b6128bf565b611e345f612bfa565b565b611e3e6128bf565b601c55565b5f600d8281548110611e5757611e57613c5a565b5f918252602090912001546001600160a01b031692915050565b606060048054610ebd90613924565b6010545f906001600160a01b03161561146557601054604051635caaa2a960e11b81523060048201526001600160a01b0390911690639445f53090829063b955455290602401606060405180830381865afa158015611ee1573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611f059190613a14565b60409081015190516001600160e01b031960e084901b1681526001600160781b0390911660048201526001600160a01b0385166024820152604401611426565b611f4d6128bf565b6011611f598282613cb2565b5050565b336001600160a01b03831603611f865760405163b06307db60e01b815260040160405180910390fd5b335f8181526008602090815260408083206001600160a01b0387168085529252909120805460ff1916841515179055906001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611ff2911515815260200190565b60405180910390a35050565b6120066128bf565b601755565b5f80612016600a5490565b6120209047613a01565b90506111b58382612045866001600160a01b03165f908152600c602052604090205490565b612c49565b6120526128bf565b601e55565b61205f612ba1565b5f6001600160a01b0382163b156120d8576040516301ffc9a760e01b81525f60048201526001600160a01b038316906301ffc9a790602401602060405180830381865afa9250505080156120d0575060408051601f3d908101601f191682019092526120cd91810190613a84565b60015b156120d85790505b6001600160a01b038216158015906120ee575080155b1561210c576040516332483afb60e01b815260040160405180910390fd5b601054604080516001600160a01b03928316815291841660208301527fcc5dc080ff977b3c3a211fa63ab74f90f658f5ba9d3236e92c8f59570f442aac910160405180910390a150601080546001600160a01b0319166001600160a01b0392909216919091179055565b600160125460ff16600181111561218f5761218f613503565b146121dc5760405162461bcd60e51b815260206004820152601c60248201527f5075626c69632073616c65206973206e6f74206163746976617465640000000060448201526064016104a2565b601454816121e8611038565b6121f29190613a01565b11156122105760405162461bcd60e51b81526004016104a290613b4c565b6013548161221c611038565b6122269190613a01565b11156122445760405162461bcd60e51b81526004016104a290613b4c565b6018546001600160a01b0383165f9081526023602052604090205461226a908390613a01565b11156122885760405162461bcd60e51b81526004016104a290613ba2565b80601c546122969190613bd9565b3410156122b55760405162461bcd60e51b81526004016104a290613bf0565b6001600160a01b0382165f90815260236020526040812080548392906122dc908490613a01565b90915550611f5990508282612b88565b6122f46128bf565b601f55565b6123048484846111bc565b6001600160a01b0383163b15611dd05761232084848484612c86565b611dd0576040516368d2bf6b60e11b815260040160405180910390fd5b604080516060810182525f80825260208201819052918101919091526010546001600160a01b0316156123d457601054604051635caaa2a960e11b81523060048201526001600160a01b039091169063b955455290602401606060405180830381865afa1580156123b0573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906116979190613a14565b50604080516060810182525f808252602082018190529181019190915290565b6123fc6128bf565b601655565b6001600160a01b0382165f908152600e602052604081205481906040516370a0823160e01b81523060048201526001600160a01b038616906370a0823190602401602060405180830381865afa15801561245d573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906124819190613d6e565b61248b9190613a01565b6001600160a01b038086165f908152600f60209081526040808320938816835292905220549091506124c09084908390612c49565b949350505050565b6124d06128bf565b60135481106125215760405162461bcd60e51b815260206004820152601760248201527f43616e6e6f7420696e63726561736520737570706c792100000000000000000060448201526064016104a2565b601355565b6060612531826128eb565b61257d5760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e0060448201526064016104a2565b601161258883612d6d565b604051602001612599929190613d85565b6040516020818303038152906040529050919050565b6125b76128bf565b601354816125c3611038565b6125cd9190613a01565b11156126105760405162461bcd60e51b815260206004820152601260248201527152656163686564206d617820537570706c7960701b60448201526064016104a2565b611f598282612b88565b6010546060906001600160a01b03161561169c57601054604051635caaa2a960e11b81523060048201526001600160a01b03909116906317e94a6c90829063b955455290602401606060405180830381865afa15801561267c573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906126a09190613a14565b60409081015190516001600160e01b031960e084901b1681526001600160781b039091166004820152602401611656565b6126d96128bf565b601a55565b6126e66128bf565b6001600160a01b03811661270f57604051631e4fbdf760e01b81525f60048201526024016104a2565b611af381612bfa565b6127206128bf565b80600181111561273257612732613503565b6012805460ff19166001838181111561274d5761274d613503565b021790555050565b61275d6128bf565b601d55565b61276a612ba1565b61277384612057565b604051630368065360e61b81526001600160a01b0385169063da0194c0906127a19030908790600401613c1b565b5f604051808303815f87803b1580156127b8575f80fd5b505af11580156127ca573d5f803e3d5ffd5b5050604051631182550160e11b81526001600160a01b0387169250632304aa0291506127fc9030908690600401613c38565b5f604051808303815f87803b158015612813575f80fd5b505af1158015612825573d5f803e3d5ffd5b505060405163235d10c560e21b81526001600160a01b0387169250638d7443149150611c1e9030908590600401613c38565b5f6301ffc9a760e01b6001600160e01b03198316148061288757506380ac58cd60e01b6001600160e01b03198316145b806128a2575063152a902d60e11b6001600160e01b03198316145b80610e9b5750506001600160e01b031916635b5e139f60e01b1490565b5f546001600160a01b03163314611e345760405163118cdaa760e01b81523360048201526024016104a2565b5f816001111580156128fe575060015482105b8015610e9b5750505f90815260056020526040902054600160e01b161590565b804710156129415760405163cd78605960e01b81523060048201526024016104a2565b5f826001600160a01b0316826040515f6040518083038185875af1925050503d805f811461298a576040519150601f19603f3d011682016040523d82523d5f602084013e61298f565b606091505b505090508061149357604051630a12f52160e11b815260040160405180910390fd5b5f8180600111612a0257600154811015612a02575f8181526005602052604081205490600160e01b82169003612a00575b805f036111b557505f19015f818152600560205260409020546129e2565b505b604051636f96cda160e11b815260040160405180910390fd5b5f5b81811015611ac457612a398585612a348487613a01565b612dfd565b600101612a1d565b5f5b81811015611ac457612a5f8585612a5a8487613a01565b612e53565b600101612a43565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611493908490612e9a565b5f6124c0612ac685612efb565b8484808060200260200160405190810160405280939291908181526020018383602002808284375f92019190915250612f3992505050565b5f6124c0612b0b85612efb565b8484808060200260200160405190810160405280939291908181526020018383602002808284375f92019190915250612f4792505050565b5f6124c0612b5085612efb565b8484808060200260200160405190810160405280939291908181526020018383602002808284375f92019190915250612f5592505050565b611f59828260405180602001604052805f815250612f63565b5f546001600160a01b03163314611e345760405162461bcd60e51b815260206004820181905260248201527f43616c6c6572206973206e6f742074686520636f6e7472616374206f776e657260448201526064016104a2565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6009546001600160a01b0384165f908152600b602052604081205490918391612c729086613bd9565b612c7c9190613e18565b6124c09190613e37565b604051630a85bd0160e11b81525f906001600160a01b0385169063150b7a0290612cba903390899088908890600401613e4a565b6020604051808303815f875af1925050508015612cf4575060408051601f3d908101601f19168201909252612cf191810190613e7c565b60015b612d50573d808015612d21576040519150601f19603f3d011682016040523d82523d5f602084013e612d26565b606091505b5080515f03612d48576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b60605f612d7983612fc7565b60010190505f8167ffffffffffffffff811115612d9857612d986136e3565b6040519080825280601f01601f191660200182016040528015612dc2576020820181803683370190505b5090508181016020015b5f19016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084612dcc57509392505050565b6001600160a01b038381161590831615818015612e175750805b15612e3557604051635cbd944160e01b815260040160405180910390fd5b8115612e41575b611ac4565b80612e3c57611ac4338686863461309e565b6001600160a01b038381161590831615818015612e6d5750805b15612e8b57604051635cbd944160e01b815260040160405180910390fd5b81612e3c5780612e3c57611ac4565b5f612eae6001600160a01b0384168361311f565b905080515f14158015612ed2575080806020019051810190612ed09190613a84565b155b1561149357604051635274afe760e01b81526001600160a01b03841660048201526024016104a2565b6040516bffffffffffffffffffffffff19606083901b1660208201525f90603401604051602081830303815290604052805190602001209050919050565b5f6111b582601f548561312c565b5f6111b582601e548561312c565b5f6111b582601d548561312c565b612f6d8383613141565b6001600160a01b0383163b15611493576001548281035b612f965f868380600101945086612c86565b612fb3576040516368d2bf6b60e11b815260040160405180910390fd5b818110612f84578160015414611ac4575f80fd5b5f8072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106130055772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310613031576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061304f57662386f26fc10000830492506010015b6305f5e1008310613067576305f5e100830492506008015b612710831061307b57612710830492506004015b6064831061308d576064830492506002015b600a8310610e9b5760010192915050565b6010546001600160a01b031615611ac45760105460405163050bf71960e31b81526001600160a01b038781166004830152868116602483015285811660448301529091169063285fb8c8906064015f6040518083038186803b158015613102575f80fd5b505afa158015613114573d5f803e3d5ffd5b505050505050505050565b60606111b583835f613230565b5f8261313885846132c9565b14949350505050565b6001546001600160a01b03831661316a57604051622e076360e81b815260040160405180910390fd5b815f0361318a5760405163b562e8dd60e01b815260040160405180910390fd5b6131965f848385612a1b565b6001600160a01b0383165f81815260066020526040902080546801000000000000000185020190554260a01b6001841460e11b17175f82815260056020526040902055808281015b6040516001830192906001600160a01b038716905f907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48082106131de57600155506114935f848385612a41565b6060814710156132555760405163cd78605960e01b81523060048201526024016104a2565b5f80856001600160a01b031684866040516132709190613e97565b5f6040518083038185875af1925050503d805f81146132aa576040519150601f19603f3d011682016040523d82523d5f602084013e6132af565b606091505b50915091506132bf86838361330b565b9695505050505050565b5f81815b8451811015613303576132f9828683815181106132ec576132ec613c5a565b6020026020010151613367565b91506001016132cd565b509392505050565b6060826133205761331b82613393565b6111b5565b815115801561333757506001600160a01b0384163b155b1561336057604051639996b31560e01b81526001600160a01b03851660048201526024016104a2565b50806111b5565b5f818310613381575f8281526020849052604090206111b5565b5f8381526020839052604090206111b5565b8051156133a35780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b6001600160e01b031981168114611af3575f80fd5b5f602082840312156133e1575f80fd5b81356111b5816133bc565b5f602082840312156133fc575f80fd5b5035919050565b5f5b8381101561341d578181015183820152602001613405565b50505f910152565b5f815180845261343c816020860160208601613403565b601f01601f19169290920160200192915050565b602081525f6111b56020830184613425565b6001600160a01b0381168114611af3575f80fd5b5f8060408385031215613487575f80fd5b823561349281613462565b946020939093013593505050565b5f602082840312156134b0575f80fd5b81356111b581613462565b5f805f606084860312156134cd575f80fd5b83356134d881613462565b925060208401356134e881613462565b915060408401356134f881613462565b809150509250925092565b634e487b7160e01b5f52602160045260245ffd5b6007811061352757613527613503565b9052565b60208101610e9b8284613517565b5f805f6060848603121561354b575f80fd5b833561355681613462565b9250602084013561356681613462565b929592945050506040919091013590565b5f8060408385031215613588575f80fd5b823561359381613462565b915060208301356135a381613462565b809150509250929050565b602080825282518282018190525f9190848201906040850190845b818110156135ee5783516001600160a01b0316835292840192918401916001016135c9565b50909695505050505050565b5f805f805f6080868803121561360e575f80fd5b853561361981613462565b945060208601359350604086013567ffffffffffffffff8082111561363c575f80fd5b818801915088601f83011261364f575f80fd5b81358181111561365d575f80fd5b8960208260051b8501011115613671575f80fd5b96999598505060200195606001359392505050565b60078110611af3575f80fd5b6001600160781b0381168114611af3575f80fd5b5f805f606084860312156136b8575f80fd5b83356136c381613686565b925060208401356136d381613692565b915060408401356134f881613692565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff81118282101715613720576137206136e3565b604052919050565b5f67ffffffffffffffff831115613741576137416136e3565b613754601f8401601f19166020016136f7565b9050828152838383011115613767575f80fd5b828260208301375f602084830101529392505050565b5f6020828403121561378d575f80fd5b813567ffffffffffffffff8111156137a3575f80fd5b8201601f810184136137b3575f80fd5b6124c084823560208401613728565b8015158114611af3575f80fd5b5f80604083850312156137e0575f80fd5b82356137eb81613462565b915060208301356135a3816137c2565b5f805f806080858703121561380e575f80fd5b843561381981613462565b9350602085013561382981613462565b925060408501359150606085013567ffffffffffffffff81111561384b575f80fd5b8501601f8101871361385b575f80fd5b61386a87823560208401613728565b91505092959194509250565b5f606082019050613888828451613517565b60208301516001600160781b038082166020850152806040860151166040850152505092915050565b60208101600283106138c5576138c5613503565b91905290565b5f805f80608085870312156138de575f80fd5b84356138e981613462565b935060208501356138f981613686565b9250604085013561390981613692565b9150606085013561391981613692565b939692955090935050565b600181811c9082168061393857607f821691505b60208210810361395657634e487b7160e01b5f52602260045260245ffd5b50919050565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201526573686172657360d01b606082015260800190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201526a191d59481c185e5b595b9d60aa1b606082015260800190565b634e487b7160e01b5f52601160045260245ffd5b80820180821115610e9b57610e9b6139ed565b5f60608284031215613a24575f80fd5b6040516060810181811067ffffffffffffffff82111715613a4757613a476136e3565b6040528251613a5581613686565b81526020830151613a6581613692565b60208201526040830151613a7881613692565b60408201529392505050565b5f60208284031215613a94575f80fd5b81516111b5816137c2565b5f6020808385031215613ab0575f80fd5b825167ffffffffffffffff80821115613ac7575f80fd5b818501915085601f830112613ada575f80fd5b815181811115613aec57613aec6136e3565b8060051b9150613afd8483016136f7565b8181529183018401918481019088841115613b16575f80fd5b938501935b83851015613b405784519250613b3083613462565b8282529385019390850190613b1b565b98975050505050505050565b60208082526013908201527213585e081cdd5c1c1b1e48195e18d959591959606a1b604082015260600190565b6020808252600f908201526e139bdd081dda1a5d195b1a5cdd1959608a1b604082015260600190565b6020808252601c908201527f4d6178207065722077616c6c6574206c696d6974207265616368656400000000604082015260600190565b8082028115828204841417610e9b57610e9b6139ed565b6020808252601190820152704e6f7420656e6f756768742066756e647360781b604082015260600190565b6001600160a01b0383168152604081016111b56020830184613517565b6001600160a01b039290921682526001600160781b0316602082015260400190565b634e487b7160e01b5f52603260045260245ffd5b601f82111561149357805f5260205f20601f840160051c81016020851015613c935750805b601f840160051c820191505b81811015611ac4575f8155600101613c9f565b815167ffffffffffffffff811115613ccc57613ccc6136e3565b613ce081613cda8454613924565b84613c6e565b602080601f831160018114613d13575f8415613cfc5750858301515b5f19600386901b1c1916600185901b17855561135e565b5f85815260208120601f198616915b82811015613d4157888601518255948401946001909101908401613d22565b5085821015613d5e57878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b5f60208284031215613d7e575f80fd5b5051919050565b5f808454613d9281613924565b60018281168015613daa5760018114613dbf57613deb565b60ff1984168752821515830287019450613deb565b885f526020805f205f5b85811015613de25781548a820152908401908201613dc9565b50505082870194505b505050508351613dff818360208801613403565b64173539b7b760d91b9101908152600501949350505050565b5f82613e3257634e487b7160e01b5f52601260045260245ffd5b500490565b81810381811115610e9b57610e9b6139ed565b6001600160a01b03858116825284166020820152604081018390526080606082018190525f906132bf90830184613425565b5f60208284031215613e8c575f80fd5b81516111b5816133bc565b5f8251613ea8818460208701613403565b919091019291505056fea2646970667358221220e02991dadbe4643a9776db3cc7c674cd489fdf2f86c3ae8a60d136e2ed6bbe2964736f6c634300081700330000000000000000000000003303c4350259c2b8f3c560b2ec70ad3ed87a5e720000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001800000000000000000000000000000000000000000000000000000000000000003000000000000000000000000d3964e5200e61353cdb5c3363b83953fa0772b3b0000000000000000000000007f8cab8d1b44157d82941468c2371f18ce63368d0000000000000000000000003303c4350259c2b8f3c560b2ec70ad3ed87a5e72000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000005d000000000000000000000000000000000000000000000000000000000000005968747470733a2f2f6e667473746f726167652e6c696e6b2f697066732f62616679626569636a756a6637656f697a336f79357570757376363565716b6769376966376e6f62616a327362787367746b6b62737075786275342f00000000000000
Deployed Bytecode
0x608060405260043610610466575f3560e01c80638b83209b11610241578063c1612d4111610134578063d79779b2116100b3578063f2fde38b11610078578063f2fde38b14610de6578063f33cb7d014610e05578063f8dcbddb14610e1a578063fae9fd8314610e39578063fd762d9214610e58575f80fd5b8063d79779b214610d0e578063e33b7de314610d42578063e453366a14610d56578063e985e9c514610d80578063ebb6ab4414610dc7575f80fd5b8063cbccefb2116100f9578063cbccefb214610c6c578063cbce4c9714610c92578063ce7c2ac214610cb1578063d007af5c14610ce5578063d6492d8114610cf9575f80fd5b8063c1612d4114610bdb578063c2dd083214610bfa578063c45ac05014610c0f578063c715381614610c2e578063c87b56dd14610c4d575f80fd5b8063a3237827116101c0578063ac6a635911610185578063ac6a635914610b3c578063ad3e31b714610b67578063ad6cb31914610b86578063b88d4fde14610b9b578063be537f4314610bba575f80fd5b8063a323782714610aad578063a3f8eace14610acc578063a58fdc1114610aeb578063a9fc664e14610b0a578063ac5ae11b14610b29575f80fd5b80639852595c116102065780639852595c14610a075780639b6860c814610a3b5780639d645a4414610a50578063a0bcfc7f14610a6f578063a22cb46514610a8e575f80fd5b80638b83209b146109625780638da5cb5b146109815780638eb478a61461099d578063952aeab8146109c857806395d89b41146109f3575f80fd5b8063406072a9116103595780636352211e116102d857806370a082311161029d57806370a08231146108e6578063715018a614610905578063734c66bd14610919578063791a25191461092e578063828122ab1461094d575f80fd5b80636352211e1461087557806364affb40146108945780636bdb5b0f146108a95780636c0360eb146108be5780636c3b8699146108d2575f80fd5b806355cf59121161031e57806355cf5912146107e457806358155dcc146108035780635be7fde8146108165780635d4c1d461461082a5780636134716214610856575f80fd5b8063406072a91461072c57806342842e0e1461077057806348b750441461078f578063495c8bf9146107ae578063509033b4146107cf575f80fd5b806319165587116103e55780632e8da829116103aa5780632e8da829146106b05780633058a112146106cf57806332cb6b0c146106ee57806334bb95dc146107035780633a98ef3914610718575f80fd5b8063191655871461061d5780631b25b0771461063c5780631c33b3281461065b5780632177a1031461067c57806323b872dd14610691575f80fd5b8063081812fc1161042b578063081812fc14610581578063095ea7b3146105a0578063098144d4146105bf578063151fcfcc146105dc57806318160ddd146105fb575f80fd5b806301463546146104af57806301ffc9a7146104f15780630232fc171461052057806306fdde03146105415780630805943914610562575f80fd5b366104ab5760405162461bcd60e51b815260206004820152601060248201526f13db9b1e481a59881e5bdd481b5a5b9d60821b60448201526064015b60405180910390fd5b5f80fd5b3480156104ba575f80fd5b506104d471721c310194ccfc01e523fc93c9cccfa2a0ac81565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156104fc575f80fd5b5061051061050b3660046133d1565b610e77565b60405190151581526020016104e8565b34801561052b575f80fd5b5061053f61053a3660046133ec565b610ea1565b005b34801561054c575f80fd5b50610555610eae565b6040516104e89190613450565b34801561056d575f80fd5b5061053f61057c3660046133ec565b610f3e565b34801561058c575f80fd5b506104d461059b3660046133ec565b610f4b565b3480156105ab575f80fd5b5061053f6105ba366004613476565b610f8d565b3480156105ca575f80fd5b506010546001600160a01b03166104d4565b3480156105e7575f80fd5b5061053f6105f63660046133ec565b61102b565b348015610606575f80fd5b5061060f611038565b6040519081526020016104e8565b348015610628575f80fd5b5061053f6106373660046134a0565b611045565b348015610647575f80fd5b506105106106563660046134bb565b611127565b348015610666575f80fd5b5061066f600181565b6040516104e8919061352b565b348015610687575f80fd5b5061060f60145481565b34801561069c575f80fd5b5061053f6106ab366004613539565b6111bc565b3480156106bb575f80fd5b506105106106ca3660046134a0565b611366565b3480156106da575f80fd5b5061053f6106e93660046133ec565b61146c565b3480156106f9575f80fd5b5061060f60135481565b34801561070e575f80fd5b5061060f60155481565b348015610723575f80fd5b5060095461060f565b348015610737575f80fd5b5061060f610746366004613577565b6001600160a01b039182165f908152600f6020908152604080832093909416825291909152205490565b34801561077b575f80fd5b5061053f61078a366004613539565b611479565b34801561079a575f80fd5b5061053f6107a9366004613577565b611498565b3480156107b9575f80fd5b506107c26115a4565b6040516104e891906135ae565b3480156107da575f80fd5b5061060f601a5481565b3480156107ef575f80fd5b5061053f6107fe3660046133ec565b6116ae565b61053f6108113660046135fa565b6116bb565b348015610821575f80fd5b5061053f611acb565b348015610835575f80fd5b5061083e600181565b6040516001600160781b0390911681526020016104e8565b348015610861575f80fd5b5061053f6108703660046136a6565b611af6565b348015610880575f80fd5b506104d461088f3660046133ec565b611c51565b34801561089f575f80fd5b5061060f60185481565b3480156108b4575f80fd5b5061060f601d5481565b3480156108c9575f80fd5b50610555611c5b565b3480156108dd575f80fd5b5061053f611ce7565b3480156108f1575f80fd5b5061060f6109003660046134a0565b611dd6565b348015610910575f80fd5b5061053f611e23565b348015610924575f80fd5b5061060f601b5481565b348015610939575f80fd5b5061053f6109483660046133ec565b611e36565b348015610958575f80fd5b5061060f60165481565b34801561096d575f80fd5b506104d461097c3660046133ec565b611e43565b34801561098c575f80fd5b505f546001600160a01b03166104d4565b3480156109a8575f80fd5b5061060f6109b73660046134a0565b60236020525f908152604090205481565b3480156109d3575f80fd5b5061060f6109e23660046134a0565b60226020525f908152604090205481565b3480156109fe575f80fd5b50610555611e71565b348015610a12575f80fd5b5061060f610a213660046134a0565b6001600160a01b03165f908152600c602052604090205490565b348015610a46575f80fd5b5061060f601c5481565b348015610a5b575f80fd5b50610510610a6a3660046134a0565b611e80565b348015610a7a575f80fd5b5061053f610a8936600461377d565b611f45565b348015610a99575f80fd5b5061053f610aa83660046137cf565b611f5d565b348015610ab8575f80fd5b5061053f610ac73660046133ec565b611ffe565b348015610ad7575f80fd5b5061060f610ae63660046134a0565b61200b565b348015610af6575f80fd5b5061053f610b053660046133ec565b61204a565b348015610b15575f80fd5b5061053f610b243660046134a0565b612057565b61053f610b37366004613476565b612176565b348015610b47575f80fd5b5061060f610b563660046134a0565b60216020525f908152604090205481565b348015610b72575f80fd5b5061053f610b813660046133ec565b6122ec565b348015610b91575f80fd5b5061060f601e5481565b348015610ba6575f80fd5b5061053f610bb53660046137fb565b6122f9565b348015610bc5575f80fd5b50610bce61233d565b6040516104e89190613876565b348015610be6575f80fd5b5061053f610bf53660046133ec565b6123f4565b348015610c05575f80fd5b5061060f60175481565b348015610c1a575f80fd5b5061060f610c29366004613577565b612401565b348015610c39575f80fd5b5061053f610c483660046133ec565b6124c8565b348015610c58575f80fd5b50610555610c673660046133ec565b612526565b348015610c77575f80fd5b50601254610c859060ff1681565b6040516104e891906138b1565b348015610c9d575f80fd5b5061053f610cac366004613476565b6125af565b348015610cbc575f80fd5b5061060f610ccb3660046134a0565b6001600160a01b03165f908152600b602052604090205490565b348015610cf0575f80fd5b506107c261261a565b348015610d04575f80fd5b5061060f601f5481565b348015610d19575f80fd5b5061060f610d283660046134a0565b6001600160a01b03165f908152600e602052604090205490565b348015610d4d575f80fd5b50600a5461060f565b348015610d61575f80fd5b5061060f610d703660046134a0565b602080525f908152604090205481565b348015610d8b575f80fd5b50610510610d9a366004613577565b6001600160a01b039182165f90815260086020908152604080832093909416825291909152205460ff1690565b348015610dd2575f80fd5b5061053f610de13660046133ec565b6126d1565b348015610df1575f80fd5b5061053f610e003660046134a0565b6126de565b348015610e10575f80fd5b5061060f60195481565b348015610e25575f80fd5b5061053f610e343660046133ec565b612718565b348015610e44575f80fd5b5061053f610e533660046133ec565b612755565b348015610e63575f80fd5b5061053f610e723660046138cb565b612762565b5f6001600160e01b031982166310c8aba560e31b1480610e9b5750610e9b82612857565b92915050565b610ea96128bf565b601555565b606060038054610ebd90613924565b80601f0160208091040260200160405190810160405280929190818152602001828054610ee990613924565b8015610f345780601f10610f0b57610100808354040283529160200191610f34565b820191905f5260205f20905b815481529060010190602001808311610f1757829003601f168201915b5050505050905090565b610f466128bf565b601b55565b5f610f55826128eb565b610f72576040516333d1c03960e21b815260040160405180910390fd5b505f908152600760205260409020546001600160a01b031690565b5f610f9782611c51565b9050336001600160a01b03821614610fd057610fb38133610d9a565b610fd0576040516367d9dca160e11b815260040160405180910390fd5b5f8281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6110336128bf565b601955565b600254600154035f190190565b6001600160a01b0381165f908152600b60205260409020546110795760405162461bcd60e51b81526004016104a29061395c565b5f6110838261200b565b9050805f036110a45760405162461bcd60e51b81526004016104a2906139a2565b80600a5f8282546110b59190613a01565b90915550506001600160a01b0382165f908152600c602052604090208054820190556110e1828261291e565b604080516001600160a01b0384168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a15050565b6010545f906001600160a01b0316156111b15760105460405163050bf71960e31b81526001600160a01b038681166004830152858116602483015284811660448301529091169063285fb8c8906064015f6040518083038186803b15801561118d575f80fd5b505afa92505050801561119e575060015b6111a957505f6111b5565b5060016111b5565b5060015b9392505050565b5f6111c6826129b1565b9050836001600160a01b0316816001600160a01b0316146111f95760405162a1148160e81b815260040160405180910390fd5b5f8281526007602052604090208054338082146001600160a01b03881690911417611245576112288633610d9a565b61124557604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661126c57604051633a954ecd60e21b815260040160405180910390fd5b6112798686866001612a1b565b8015611283575f82555b6001600160a01b038681165f9081526006602052604080822080545f19019055918716808252919020805460010190554260a01b17600160e11b175f85815260056020526040812091909155600160e11b8416900361131057600184015f81815260056020526040812054900361130e57600154811461130e575f8181526005602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461135e8686866001612a41565b505050505050565b6010545f906001600160a01b03161561146557601054604051635caaa2a960e11b81523060048201526001600160a01b039091169063d72dde5e90829063b955455290602401606060405180830381865afa1580156113c7573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906113eb9190613a14565b602001516040516001600160e01b031960e084901b1681526001600160781b0390911660048201526001600160a01b03851660248201526044015b602060405180830381865afa158015611441573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e9b9190613a84565b505f919050565b6114746128bf565b601455565b61149383838360405180602001604052805f8152506122f9565b505050565b6001600160a01b0381165f908152600b60205260409020546114cc5760405162461bcd60e51b81526004016104a29061395c565b5f6114d78383612401565b9050805f036114f85760405162461bcd60e51b81526004016104a2906139a2565b6001600160a01b0383165f908152600e60205260408120805483929061151f908490613a01565b90915550506001600160a01b038084165f908152600f60209081526040808320938616835292905220805482019055611559838383612a67565b604080516001600160a01b038481168252602082018490528516917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a2505050565b6010546060906001600160a01b03161561169c57601054604051635caaa2a960e11b81523060048201526001600160a01b0390911690633fe5df9990829063b955455290602401606060405180830381865afa158015611606573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061162a9190613a14565b602001516040516001600160e01b031960e084901b1681526001600160781b0390911660048201526024015b5f60405180830381865afa158015611670573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526116979190810190613a9f565b905090565b50604080515f81526020810190915290565b6116b66128bf565b601855565b32331461170a5760405162461bcd60e51b815260206004820152601e60248201527f5468652063616c6c657220697320616e6f7468657220636f6e7472616374000060448201526064016104a2565b600160125460ff16600181111561172357611723613503565b146117705760405162461bcd60e51b815260206004820152601f60248201527f57686974656c6973742073616c65206973206e6f74206163746976617465640060448201526064016104a2565b336001600160a01b038616146117c85760405162461bcd60e51b815260206004820152601a60248201527f4d696e74207769746820796f7572206f776e2077616c6c65742e00000000000060448201526064016104a2565b80600114806117d75750806002145b806117e25750806003145b6118245760405162461bcd60e51b815260206004820152601360248201527215da1a5d195b1a5cdd081a5b98dbdc9c9958dd606a1b60448201526064016104a2565b60145484611830611038565b61183a9190613a01565b11156118585760405162461bcd60e51b81526004016104a290613b4c565b60135484611864611038565b61186e9190613a01565b111561188c5760405162461bcd60e51b81526004016104a290613b4c565b8060030361194c5761189f338484612ab9565b6118bb5760405162461bcd60e51b81526004016104a290613b79565b601654335f908152602260205260409020546118d8908690613a01565b11156118f65760405162461bcd60e51b81526004016104a290613ba2565b83601b546119049190613bd9565b3410156119235760405162461bcd60e51b81526004016104a290613bf0565b335f9081526022602052604081208054869290611941908490613a01565b90915550611aba9050565b80600203611a015761195f338484612afe565b61197b5760405162461bcd60e51b81526004016104a290613b79565b601754335f90815260216020526040902054611998908690613a01565b11156119b65760405162461bcd60e51b81526004016104a290613ba2565b83601a546119c49190613bd9565b3410156119e35760405162461bcd60e51b81526004016104a290613bf0565b335f9081526021602052604081208054869290611941908490613a01565b80600103611aba57611a14338484612b43565b611a305760405162461bcd60e51b81526004016104a290613b79565b601554335f908152602080526040902054611a4c908690613a01565b1115611a6a5760405162461bcd60e51b81526004016104a290613ba2565b83601954611a789190613bd9565b341015611a975760405162461bcd60e51b81526004016104a290613bf0565b335f90815260208052604081208054869290611ab4908490613a01565b90915550505b611ac48585612b88565b5050505050565b611ad36128bf565b5f5b602454811015611af357611aeb61063782611e43565b600101611ad5565b50565b611afe612ba1565b5f611b116010546001600160a01b031690565b90506001600160a01b038116611b3a57604051631cffe3dd60e11b815260040160405180910390fd5b604051630368065360e61b81526001600160a01b0382169063da0194c090611b689030908890600401613c1b565b5f604051808303815f87803b158015611b7f575f80fd5b505af1158015611b91573d5f803e3d5ffd5b5050604051631182550160e11b81526001600160a01b0384169250632304aa029150611bc39030908790600401613c38565b5f604051808303815f87803b158015611bda575f80fd5b505af1158015611bec573d5f803e3d5ffd5b505060405163235d10c560e21b81526001600160a01b0384169250638d7443149150611c1e9030908690600401613c38565b5f604051808303815f87803b158015611c35575f80fd5b505af1158015611c47573d5f803e3d5ffd5b5050505050505050565b5f610e9b826129b1565b60118054611c6890613924565b80601f0160208091040260200160405190810160405280929190818152602001828054611c9490613924565b8015611cdf5780601f10611cb657610100808354040283529160200191611cdf565b820191905f5260205f20905b815481529060010190602001808311611cc257829003601f168201915b505050505081565b611cef612ba1565b611d0a71721c310194ccfc01e523fc93c9cccfa2a0ac612057565b604051630368065360e61b815271721c310194ccfc01e523fc93c9cccfa2a0ac9063da0194c090611d42903090600190600401613c1b565b5f604051808303815f87803b158015611d59575f80fd5b505af1158015611d6b573d5f803e3d5ffd5b5050604051631182550160e11b815271721c310194ccfc01e523fc93c9cccfa2a0ac9250632304aa029150611da7903090600190600401613c38565b5f604051808303815f87803b158015611dbe575f80fd5b505af1158015611dd0573d5f803e3d5ffd5b50505050565b5f6001600160a01b038216611dfe576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03165f9081526006602052604090205467ffffffffffffffff1690565b611e2b6128bf565b611e345f612bfa565b565b611e3e6128bf565b601c55565b5f600d8281548110611e5757611e57613c5a565b5f918252602090912001546001600160a01b031692915050565b606060048054610ebd90613924565b6010545f906001600160a01b03161561146557601054604051635caaa2a960e11b81523060048201526001600160a01b0390911690639445f53090829063b955455290602401606060405180830381865afa158015611ee1573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611f059190613a14565b60409081015190516001600160e01b031960e084901b1681526001600160781b0390911660048201526001600160a01b0385166024820152604401611426565b611f4d6128bf565b6011611f598282613cb2565b5050565b336001600160a01b03831603611f865760405163b06307db60e01b815260040160405180910390fd5b335f8181526008602090815260408083206001600160a01b0387168085529252909120805460ff1916841515179055906001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611ff2911515815260200190565b60405180910390a35050565b6120066128bf565b601755565b5f80612016600a5490565b6120209047613a01565b90506111b58382612045866001600160a01b03165f908152600c602052604090205490565b612c49565b6120526128bf565b601e55565b61205f612ba1565b5f6001600160a01b0382163b156120d8576040516301ffc9a760e01b81525f60048201526001600160a01b038316906301ffc9a790602401602060405180830381865afa9250505080156120d0575060408051601f3d908101601f191682019092526120cd91810190613a84565b60015b156120d85790505b6001600160a01b038216158015906120ee575080155b1561210c576040516332483afb60e01b815260040160405180910390fd5b601054604080516001600160a01b03928316815291841660208301527fcc5dc080ff977b3c3a211fa63ab74f90f658f5ba9d3236e92c8f59570f442aac910160405180910390a150601080546001600160a01b0319166001600160a01b0392909216919091179055565b600160125460ff16600181111561218f5761218f613503565b146121dc5760405162461bcd60e51b815260206004820152601c60248201527f5075626c69632073616c65206973206e6f74206163746976617465640000000060448201526064016104a2565b601454816121e8611038565b6121f29190613a01565b11156122105760405162461bcd60e51b81526004016104a290613b4c565b6013548161221c611038565b6122269190613a01565b11156122445760405162461bcd60e51b81526004016104a290613b4c565b6018546001600160a01b0383165f9081526023602052604090205461226a908390613a01565b11156122885760405162461bcd60e51b81526004016104a290613ba2565b80601c546122969190613bd9565b3410156122b55760405162461bcd60e51b81526004016104a290613bf0565b6001600160a01b0382165f90815260236020526040812080548392906122dc908490613a01565b90915550611f5990508282612b88565b6122f46128bf565b601f55565b6123048484846111bc565b6001600160a01b0383163b15611dd05761232084848484612c86565b611dd0576040516368d2bf6b60e11b815260040160405180910390fd5b604080516060810182525f80825260208201819052918101919091526010546001600160a01b0316156123d457601054604051635caaa2a960e11b81523060048201526001600160a01b039091169063b955455290602401606060405180830381865afa1580156123b0573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906116979190613a14565b50604080516060810182525f808252602082018190529181019190915290565b6123fc6128bf565b601655565b6001600160a01b0382165f908152600e602052604081205481906040516370a0823160e01b81523060048201526001600160a01b038616906370a0823190602401602060405180830381865afa15801561245d573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906124819190613d6e565b61248b9190613a01565b6001600160a01b038086165f908152600f60209081526040808320938816835292905220549091506124c09084908390612c49565b949350505050565b6124d06128bf565b60135481106125215760405162461bcd60e51b815260206004820152601760248201527f43616e6e6f7420696e63726561736520737570706c792100000000000000000060448201526064016104a2565b601355565b6060612531826128eb565b61257d5760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e0060448201526064016104a2565b601161258883612d6d565b604051602001612599929190613d85565b6040516020818303038152906040529050919050565b6125b76128bf565b601354816125c3611038565b6125cd9190613a01565b11156126105760405162461bcd60e51b815260206004820152601260248201527152656163686564206d617820537570706c7960701b60448201526064016104a2565b611f598282612b88565b6010546060906001600160a01b03161561169c57601054604051635caaa2a960e11b81523060048201526001600160a01b03909116906317e94a6c90829063b955455290602401606060405180830381865afa15801561267c573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906126a09190613a14565b60409081015190516001600160e01b031960e084901b1681526001600160781b039091166004820152602401611656565b6126d96128bf565b601a55565b6126e66128bf565b6001600160a01b03811661270f57604051631e4fbdf760e01b81525f60048201526024016104a2565b611af381612bfa565b6127206128bf565b80600181111561273257612732613503565b6012805460ff19166001838181111561274d5761274d613503565b021790555050565b61275d6128bf565b601d55565b61276a612ba1565b61277384612057565b604051630368065360e61b81526001600160a01b0385169063da0194c0906127a19030908790600401613c1b565b5f604051808303815f87803b1580156127b8575f80fd5b505af11580156127ca573d5f803e3d5ffd5b5050604051631182550160e11b81526001600160a01b0387169250632304aa0291506127fc9030908690600401613c38565b5f604051808303815f87803b158015612813575f80fd5b505af1158015612825573d5f803e3d5ffd5b505060405163235d10c560e21b81526001600160a01b0387169250638d7443149150611c1e9030908590600401613c38565b5f6301ffc9a760e01b6001600160e01b03198316148061288757506380ac58cd60e01b6001600160e01b03198316145b806128a2575063152a902d60e11b6001600160e01b03198316145b80610e9b5750506001600160e01b031916635b5e139f60e01b1490565b5f546001600160a01b03163314611e345760405163118cdaa760e01b81523360048201526024016104a2565b5f816001111580156128fe575060015482105b8015610e9b5750505f90815260056020526040902054600160e01b161590565b804710156129415760405163cd78605960e01b81523060048201526024016104a2565b5f826001600160a01b0316826040515f6040518083038185875af1925050503d805f811461298a576040519150601f19603f3d011682016040523d82523d5f602084013e61298f565b606091505b505090508061149357604051630a12f52160e11b815260040160405180910390fd5b5f8180600111612a0257600154811015612a02575f8181526005602052604081205490600160e01b82169003612a00575b805f036111b557505f19015f818152600560205260409020546129e2565b505b604051636f96cda160e11b815260040160405180910390fd5b5f5b81811015611ac457612a398585612a348487613a01565b612dfd565b600101612a1d565b5f5b81811015611ac457612a5f8585612a5a8487613a01565b612e53565b600101612a43565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611493908490612e9a565b5f6124c0612ac685612efb565b8484808060200260200160405190810160405280939291908181526020018383602002808284375f92019190915250612f3992505050565b5f6124c0612b0b85612efb565b8484808060200260200160405190810160405280939291908181526020018383602002808284375f92019190915250612f4792505050565b5f6124c0612b5085612efb565b8484808060200260200160405190810160405280939291908181526020018383602002808284375f92019190915250612f5592505050565b611f59828260405180602001604052805f815250612f63565b5f546001600160a01b03163314611e345760405162461bcd60e51b815260206004820181905260248201527f43616c6c6572206973206e6f742074686520636f6e7472616374206f776e657260448201526064016104a2565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6009546001600160a01b0384165f908152600b602052604081205490918391612c729086613bd9565b612c7c9190613e18565b6124c09190613e37565b604051630a85bd0160e11b81525f906001600160a01b0385169063150b7a0290612cba903390899088908890600401613e4a565b6020604051808303815f875af1925050508015612cf4575060408051601f3d908101601f19168201909252612cf191810190613e7c565b60015b612d50573d808015612d21576040519150601f19603f3d011682016040523d82523d5f602084013e612d26565b606091505b5080515f03612d48576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b60605f612d7983612fc7565b60010190505f8167ffffffffffffffff811115612d9857612d986136e3565b6040519080825280601f01601f191660200182016040528015612dc2576020820181803683370190505b5090508181016020015b5f19016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084612dcc57509392505050565b6001600160a01b038381161590831615818015612e175750805b15612e3557604051635cbd944160e01b815260040160405180910390fd5b8115612e41575b611ac4565b80612e3c57611ac4338686863461309e565b6001600160a01b038381161590831615818015612e6d5750805b15612e8b57604051635cbd944160e01b815260040160405180910390fd5b81612e3c5780612e3c57611ac4565b5f612eae6001600160a01b0384168361311f565b905080515f14158015612ed2575080806020019051810190612ed09190613a84565b155b1561149357604051635274afe760e01b81526001600160a01b03841660048201526024016104a2565b6040516bffffffffffffffffffffffff19606083901b1660208201525f90603401604051602081830303815290604052805190602001209050919050565b5f6111b582601f548561312c565b5f6111b582601e548561312c565b5f6111b582601d548561312c565b612f6d8383613141565b6001600160a01b0383163b15611493576001548281035b612f965f868380600101945086612c86565b612fb3576040516368d2bf6b60e11b815260040160405180910390fd5b818110612f84578160015414611ac4575f80fd5b5f8072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106130055772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310613031576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061304f57662386f26fc10000830492506010015b6305f5e1008310613067576305f5e100830492506008015b612710831061307b57612710830492506004015b6064831061308d576064830492506002015b600a8310610e9b5760010192915050565b6010546001600160a01b031615611ac45760105460405163050bf71960e31b81526001600160a01b038781166004830152868116602483015285811660448301529091169063285fb8c8906064015f6040518083038186803b158015613102575f80fd5b505afa158015613114573d5f803e3d5ffd5b505050505050505050565b60606111b583835f613230565b5f8261313885846132c9565b14949350505050565b6001546001600160a01b03831661316a57604051622e076360e81b815260040160405180910390fd5b815f0361318a5760405163b562e8dd60e01b815260040160405180910390fd5b6131965f848385612a1b565b6001600160a01b0383165f81815260066020526040902080546801000000000000000185020190554260a01b6001841460e11b17175f82815260056020526040902055808281015b6040516001830192906001600160a01b038716905f907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48082106131de57600155506114935f848385612a41565b6060814710156132555760405163cd78605960e01b81523060048201526024016104a2565b5f80856001600160a01b031684866040516132709190613e97565b5f6040518083038185875af1925050503d805f81146132aa576040519150601f19603f3d011682016040523d82523d5f602084013e6132af565b606091505b50915091506132bf86838361330b565b9695505050505050565b5f81815b8451811015613303576132f9828683815181106132ec576132ec613c5a565b6020026020010151613367565b91506001016132cd565b509392505050565b6060826133205761331b82613393565b6111b5565b815115801561333757506001600160a01b0384163b155b1561336057604051639996b31560e01b81526001600160a01b03851660048201526024016104a2565b50806111b5565b5f818310613381575f8281526020849052604090206111b5565b5f8381526020839052604090206111b5565b8051156133a35780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b6001600160e01b031981168114611af3575f80fd5b5f602082840312156133e1575f80fd5b81356111b5816133bc565b5f602082840312156133fc575f80fd5b5035919050565b5f5b8381101561341d578181015183820152602001613405565b50505f910152565b5f815180845261343c816020860160208601613403565b601f01601f19169290920160200192915050565b602081525f6111b56020830184613425565b6001600160a01b0381168114611af3575f80fd5b5f8060408385031215613487575f80fd5b823561349281613462565b946020939093013593505050565b5f602082840312156134b0575f80fd5b81356111b581613462565b5f805f606084860312156134cd575f80fd5b83356134d881613462565b925060208401356134e881613462565b915060408401356134f881613462565b809150509250925092565b634e487b7160e01b5f52602160045260245ffd5b6007811061352757613527613503565b9052565b60208101610e9b8284613517565b5f805f6060848603121561354b575f80fd5b833561355681613462565b9250602084013561356681613462565b929592945050506040919091013590565b5f8060408385031215613588575f80fd5b823561359381613462565b915060208301356135a381613462565b809150509250929050565b602080825282518282018190525f9190848201906040850190845b818110156135ee5783516001600160a01b0316835292840192918401916001016135c9565b50909695505050505050565b5f805f805f6080868803121561360e575f80fd5b853561361981613462565b945060208601359350604086013567ffffffffffffffff8082111561363c575f80fd5b818801915088601f83011261364f575f80fd5b81358181111561365d575f80fd5b8960208260051b8501011115613671575f80fd5b96999598505060200195606001359392505050565b60078110611af3575f80fd5b6001600160781b0381168114611af3575f80fd5b5f805f606084860312156136b8575f80fd5b83356136c381613686565b925060208401356136d381613692565b915060408401356134f881613692565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff81118282101715613720576137206136e3565b604052919050565b5f67ffffffffffffffff831115613741576137416136e3565b613754601f8401601f19166020016136f7565b9050828152838383011115613767575f80fd5b828260208301375f602084830101529392505050565b5f6020828403121561378d575f80fd5b813567ffffffffffffffff8111156137a3575f80fd5b8201601f810184136137b3575f80fd5b6124c084823560208401613728565b8015158114611af3575f80fd5b5f80604083850312156137e0575f80fd5b82356137eb81613462565b915060208301356135a3816137c2565b5f805f806080858703121561380e575f80fd5b843561381981613462565b9350602085013561382981613462565b925060408501359150606085013567ffffffffffffffff81111561384b575f80fd5b8501601f8101871361385b575f80fd5b61386a87823560208401613728565b91505092959194509250565b5f606082019050613888828451613517565b60208301516001600160781b038082166020850152806040860151166040850152505092915050565b60208101600283106138c5576138c5613503565b91905290565b5f805f80608085870312156138de575f80fd5b84356138e981613462565b935060208501356138f981613686565b9250604085013561390981613692565b9150606085013561391981613692565b939692955090935050565b600181811c9082168061393857607f821691505b60208210810361395657634e487b7160e01b5f52602260045260245ffd5b50919050565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201526573686172657360d01b606082015260800190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201526a191d59481c185e5b595b9d60aa1b606082015260800190565b634e487b7160e01b5f52601160045260245ffd5b80820180821115610e9b57610e9b6139ed565b5f60608284031215613a24575f80fd5b6040516060810181811067ffffffffffffffff82111715613a4757613a476136e3565b6040528251613a5581613686565b81526020830151613a6581613692565b60208201526040830151613a7881613692565b60408201529392505050565b5f60208284031215613a94575f80fd5b81516111b5816137c2565b5f6020808385031215613ab0575f80fd5b825167ffffffffffffffff80821115613ac7575f80fd5b818501915085601f830112613ada575f80fd5b815181811115613aec57613aec6136e3565b8060051b9150613afd8483016136f7565b8181529183018401918481019088841115613b16575f80fd5b938501935b83851015613b405784519250613b3083613462565b8282529385019390850190613b1b565b98975050505050505050565b60208082526013908201527213585e081cdd5c1c1b1e48195e18d959591959606a1b604082015260600190565b6020808252600f908201526e139bdd081dda1a5d195b1a5cdd1959608a1b604082015260600190565b6020808252601c908201527f4d6178207065722077616c6c6574206c696d6974207265616368656400000000604082015260600190565b8082028115828204841417610e9b57610e9b6139ed565b6020808252601190820152704e6f7420656e6f756768742066756e647360781b604082015260600190565b6001600160a01b0383168152604081016111b56020830184613517565b6001600160a01b039290921682526001600160781b0316602082015260400190565b634e487b7160e01b5f52603260045260245ffd5b601f82111561149357805f5260205f20601f840160051c81016020851015613c935750805b601f840160051c820191505b81811015611ac4575f8155600101613c9f565b815167ffffffffffffffff811115613ccc57613ccc6136e3565b613ce081613cda8454613924565b84613c6e565b602080601f831160018114613d13575f8415613cfc5750858301515b5f19600386901b1c1916600185901b17855561135e565b5f85815260208120601f198616915b82811015613d4157888601518255948401946001909101908401613d22565b5085821015613d5e57878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b5f60208284031215613d7e575f80fd5b5051919050565b5f808454613d9281613924565b60018281168015613daa5760018114613dbf57613deb565b60ff1984168752821515830287019450613deb565b885f526020805f205f5b85811015613de25781548a820152908401908201613dc9565b50505082870194505b505050508351613dff818360208801613403565b64173539b7b760d91b9101908152600501949350505050565b5f82613e3257634e487b7160e01b5f52601260045260245ffd5b500490565b81810381811115610e9b57610e9b6139ed565b6001600160a01b03858116825284166020820152604081018390526080606082018190525f906132bf90830184613425565b5f60208284031215613e8c575f80fd5b81516111b5816133bc565b5f8251613ea8818460208701613403565b919091019291505056fea2646970667358221220e02991dadbe4643a9776db3cc7c674cd489fdf2f86c3ae8a60d136e2ed6bbe2964736f6c63430008170033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000003303c4350259c2b8f3c560b2ec70ad3ed87a5e720000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001800000000000000000000000000000000000000000000000000000000000000003000000000000000000000000d3964e5200e61353cdb5c3363b83953fa0772b3b0000000000000000000000007f8cab8d1b44157d82941468c2371f18ce63368d0000000000000000000000003303c4350259c2b8f3c560b2ec70ad3ed87a5e72000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000005d000000000000000000000000000000000000000000000000000000000000005968747470733a2f2f6e667473746f726167652e6c696e6b2f697066732f62616679626569636a756a6637656f697a336f79357570757376363565716b6769376966376e6f62616a327362787367746b6b62737075786275342f00000000000000
-----Decoded View---------------
Arg [0] : _initialOwner (address): 0x3303C4350259C2B8F3C560B2ec70aD3ed87A5E72
Arg [1] : _team (address[]): 0xd3964E5200e61353cDb5c3363B83953fa0772B3B,0x7F8caB8D1B44157d82941468c2371f18Ce63368D,0x3303C4350259C2B8F3C560B2ec70aD3ed87A5E72
Arg [2] : _teamShares (uint256[]): 3,4,93
Arg [3] : _baseURI (string): https://nftstorage.link/ipfs/bafybeicjujf7eoiz3oy5upusv65eqkgi7if7nobaj2sbxsgtkkbspuxbu4/
-----Encoded View---------------
16 Constructor Arguments found :
Arg [0] : 0000000000000000000000003303c4350259c2b8f3c560b2ec70ad3ed87a5e72
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [5] : 000000000000000000000000d3964e5200e61353cdb5c3363b83953fa0772b3b
Arg [6] : 0000000000000000000000007f8cab8d1b44157d82941468c2371f18ce63368d
Arg [7] : 0000000000000000000000003303c4350259c2b8f3c560b2ec70ad3ed87a5e72
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [11] : 000000000000000000000000000000000000000000000000000000000000005d
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000059
Arg [13] : 68747470733a2f2f6e667473746f726167652e6c696e6b2f697066732f626166
Arg [14] : 79626569636a756a6637656f697a336f79357570757376363565716b67693769
Arg [15] : 66376e6f62616a327362787367746b6b62737075786275342f00000000000000
Deployed Bytecode Sourcemap
127426:10041:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;137430:26;;-1:-1:-1;;;137430:26:0;;216:2:1;137430:26:0;;;198:21:1;255:2;235:18;;;228:30;-1:-1:-1;;;274:18:1;;;267:46;330:18;;137430:26:0;;;;;;;;127426:10041;;;;105694:104;;;;;;;;;;;;105755:42;105694:104;;;;;-1:-1:-1;;;;;523:32:1;;;505:51;;493:2;478:18;105694:104:0;;;;;;;;129008:203;;;;;;;;;;-1:-1:-1;129008:203:0;;;;;:::i;:::-;;:::i;:::-;;;1118:14:1;;1111:22;1093:41;;1081:2;1066:18;129008:203:0;953:187:1;133834:162:0;;;;;;;;;;-1:-1:-1;133834:162:0;;;;;:::i;:::-;;:::i;:::-;;26071:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;134460:110::-;;;;;;;;;;-1:-1:-1;134460:110:0;;;;;:::i;:::-;;:::i;28023:204::-;;;;;;;;;;-1:-1:-1;28023:204:0;;;;;:::i;:::-;;:::i;27565:392::-;;;;;;;;;;-1:-1:-1;27565:392:0;;;;;:::i;:::-;;:::i;110220:137::-;;;;;;;;;;-1:-1:-1;110332:17:0;;-1:-1:-1;;;;;110332:17:0;110220:137;;134696:118;;;;;;;;;;-1:-1:-1;134696:118:0;;;;;:::i;:::-;;:::i;19415:315::-;;;;;;;;;;;;;:::i;:::-;;;2934:25:1;;;2922:2;2907:18;19415:315:0;2788:177:1;121331:671:0;;;;;;;;;;-1:-1:-1;121331:671:0;;;;;:::i;:::-;;:::i;114004:387::-;;;;;;;;;;-1:-1:-1;114004:387:0;;;;;:::i;:::-;;:::i;105805:99::-;;;;;;;;;;;;105878:26;105805:99;;;;;;;;;:::i;127707:37::-;;;;;;;;;;;;;;;;37292:2800;;;;;;;;;;-1:-1:-1;37292:2800:0;;;;;:::i;:::-;;:::i;112349:357::-;;;;;;;;;;-1:-1:-1;112349:357:0;;;;;:::i;:::-;;:::i;133702:124::-;;;;;;;;;;-1:-1:-1;133702:124:0;;;;;:::i;:::-;;:::i;127668:32::-;;;;;;;;;;;;;;;;127753:38;;;;;;;;;;;;;;;;118941:91;;;;;;;;;;-1:-1:-1;119012:12:0;;118941:91;;120070:135;;;;;;;;;;-1:-1:-1;120070:135:0;;;;;:::i;:::-;-1:-1:-1;;;;;120167:21:0;;;120140:7;120167:21;;;:14;:21;;;;;;;;:30;;;;;;;;;;;;;120070:135;28917:185;;;;;;;;;;-1:-1:-1;28917:185:0;;;;;:::i;:::-;;:::i;122270:792::-;;;;;;;;;;-1:-1:-1;122270:792:0;;;;;:::i;:::-;;:::i;111236:358::-;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;127987:40::-;;;;;;;;;;;;;;;;134282:170;;;;;;;;;;-1:-1:-1;134282:170:0;;;;;:::i;:::-;;:::i;130432:2121::-;;;;;;:::i;:::-;;:::i;137222:153::-;;;;;;;;;;;;;:::i;105911:66::-;;;;;;;;;;;;105975:1;105911:66;;;;;-1:-1:-1;;;;;7131:45:1;;;7113:64;;7101:2;7086:18;105911:66:0;6967:216:1;107960:727:0;;;;;;;;;;-1:-1:-1;107960:727:0;;;;;:::i;:::-;;:::i;25860:144::-;;;;;;;;;;-1:-1:-1;25860:144:0;;;;;:::i;:::-;;:::i;127890:43::-;;;;;;;;;;;;;;;;128134:29;;;;;;;;;;;;;;;;127606:21;;;;;;;;;;;;;:::i;106351:464::-;;;;;;;;;;;;;:::i;21103:224::-;;;;;;;;;;-1:-1:-1;21103:224:0;;;;;:::i;:::-;;:::i;126505:103::-;;;;;;;;;;;;;:::i;128034:40::-;;;;;;;;;;;;;;;;134822:126;;;;;;;;;;-1:-1:-1;134822:126:0;;;;;:::i;:::-;;:::i;127798:39::-;;;;;;;;;;;;;;;;120296:100;;;;;;;;;;-1:-1:-1;120296:100:0;;;;;:::i;:::-;;:::i;125830:87::-;;;;;;;;;;-1:-1:-1;125876:7:0;125903:6;-1:-1:-1;;;;;125903:6:0;125830:87;;128431:60;;;;;;;;;;-1:-1:-1;128431:60:0;;;;;:::i;:::-;;;;;;;;;;;;;;128368:56;;;;;;;;;;-1:-1:-1;128368:56:0;;;;;:::i;:::-;;;;;;;;;;;;;;26240:104;;;;;;;;;;;;;:::i;119792:109::-;;;;;;;;;;-1:-1:-1;119792:109:0;;;;;:::i;:::-;-1:-1:-1;;;;;119875:18:0;119848:7;119875:18;;;:9;:18;;;;;;;119792:109;128081:44;;;;;;;;;;;;;;;;112878:378;;;;;;;;;;-1:-1:-1;112878:378:0;;;;;:::i;:::-;;:::i;134956:100::-;;;;;;;;;;-1:-1:-1;134956:100:0;;;;;:::i;:::-;;:::i;28299:306::-;;;;;;;;;;-1:-1:-1;28299:306:0;;;;;:::i;:::-;;:::i;134143:131::-;;;;;;;;;;-1:-1:-1;134143:131:0;;;;;:::i;:::-;;:::i;120486:225::-;;;;;;;;;;-1:-1:-1;120486:225:0;;;;;:::i;:::-;;:::i;135616:114::-;;;;;;;;;;-1:-1:-1;135616:114:0;;;;;:::i;:::-;;:::i;109287:818::-;;;;;;;;;;-1:-1:-1;109287:818:0;;;;;:::i;:::-;;:::i;132561:752::-;;;;;;:::i;:::-;;:::i;128305:56::-;;;;;;;;;;-1:-1:-1;128305:56:0;;;;;:::i;:::-;;;;;;;;;;;;;;135494:114;;;;;;;;;;-1:-1:-1;135494:114:0;;;;;:::i;:::-;;:::i;128170:27::-;;;;;;;;;;;;;;;;29173:399;;;;;;;;;;-1:-1:-1;29173:399:0;;;;;:::i;:::-;;:::i;110574:455::-;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;134004:131::-;;;;;;;;;;-1:-1:-1;134004:131:0;;;;;:::i;:::-;;:::i;127844:39::-;;;;;;;;;;;;;;;;120871:260;;;;;;;;;;-1:-1:-1;120871:260:0;;;;;:::i;:::-;;:::i;133519:175::-;;;;;;;;;;-1:-1:-1;133519:175:0;;;;;:::i;:::-;;:::i;135167:302::-;;;;;;;;;;-1:-1:-1;135167:302:0;;;;;:::i;:::-;;:::i;127636:23::-;;;;;;;;;;-1:-1:-1;127636:23:0;;;;;;;;;;;;;;;:::i;133321:190::-;;;;;;;;;;-1:-1:-1;133321:190:0;;;;;:::i;:::-;;:::i;119588:105::-;;;;;;;;;;-1:-1:-1;119588:105:0;;;;;:::i;:::-;-1:-1:-1;;;;;119669:16:0;119642:7;119669:16;;;:7;:16;;;;;;;119588:105;111804:379;;;;;;;;;;;;;:::i;128204:27::-;;;;;;;;;;;;;;;;119378:119;;;;;;;;;;-1:-1:-1;119378:119:0;;;;;:::i;:::-;-1:-1:-1;;;;;119463:26:0;119436:7;119463:26;;;:19;:26;;;;;;;119378:119;119126:95;;;;;;;;;;-1:-1:-1;119199:14:0;;119126:95;;128240:58;;;;;;;;;;-1:-1:-1;128240:58:0;;;;;:::i;:::-;;;;;;;;;;;;;;28682:164;;;;;;;;;;-1:-1:-1;28682:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;28803:25:0;;;28779:4;28803:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;28682:164;134578:110;;;;;;;;;;-1:-1:-1;134578:110:0;;;;;:::i;:::-;;:::i;126763:220::-;;;;;;;;;;-1:-1:-1;126763:220:0;;;;;:::i;:::-;;:::i;127942:38::-;;;;;;;;;;;;;;;;135064:95;;;;;;;;;;-1:-1:-1;135064:95:0;;;;;:::i;:::-;;:::i;135738:122::-;;;;;;;;;;-1:-1:-1;135738:122:0;;;;;:::i;:::-;;:::i;107018:749::-;;;;;;;;;;-1:-1:-1;107018:749:0;;;;;:::i;:::-;;:::i;129008:203::-;129093:4;-1:-1:-1;;;;;;129117:46:0;;-1:-1:-1;;;129117:46:0;;:86;;;129167:36;129191:11;129167:23;:36::i;:::-;129110:93;129008:203;-1:-1:-1;;129008:203:0:o;133834:162::-;125716:13;:11;:13::i;:::-;133946:19:::1;:42:::0;133834:162::o;26071:100::-;26125:13;26158:5;26151:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26071:100;:::o;134460:110::-;125716:13;:11;:13::i;:::-;134536:11:::1;:26:::0;134460:110::o;28023:204::-;28091:7;28116:16;28124:7;28116;:16::i;:::-;28111:64;;28141:34;;-1:-1:-1;;;28141:34:0;;;;;;;;;;;28111:64;-1:-1:-1;28195:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;28195:24:0;;28023:204::o;27565:392::-;27646:13;27662:16;27670:7;27662;:16::i;:::-;27646:32;-1:-1:-1;100454:10:0;-1:-1:-1;;;;;27693:28:0;;;27689:175;;27741:44;27758:5;100454:10;27765:19;111236:358;27741:44;27736:128;;27813:35;;-1:-1:-1;;;27813:35:0;;;;;;;;;;;27736:128;27876:24;;;;:15;:24;;;;;;:29;;-1:-1:-1;;;;;;27876:29:0;-1:-1:-1;;;;;27876:29:0;;;;;;;;;27921:28;;27876:24;;27921:28;;;;;;;27635:322;27565:392;;:::o;134696:118::-;125716:13;:11;:13::i;:::-;134776::::1;:30:::0;134696:118::o;19415:315::-;19681:12;;19022:1;19665:13;:28;-1:-1:-1;;19665:46:0;;19415:315::o;121331:671::-;-1:-1:-1;;;;;121407:16:0;;121426:1;121407:16;;;:7;:16;;;;;;121399:71;;;;-1:-1:-1;;;121399:71:0;;;;;;;:::i;:::-;121483:15;121501:19;121512:7;121501:10;:19::i;:::-;121483:37;;121541:7;121552:1;121541:12;121533:68;;;;-1:-1:-1;;;121533:68:0;;;;;;;:::i;:::-;121814:7;121796:14;;:25;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;;;121857:18:0;;;;;;:9;:18;;;;;:29;;;;;;121910:35;121867:7;121879;121910:17;:35::i;:::-;121961:33;;;-1:-1:-1;;;;;14828:32:1;;14810:51;;14892:2;14877:18;;14870:34;;;121961:33:0;;14783:18:1;121961:33:0;;;;;;;121388:614;121331:671;:::o;114004:387::-;114132:17;;114103:4;;-1:-1:-1;;;;;114132:17:0;114124:40;114120:242;;114185:17;;:65;;-1:-1:-1;;;114185:65:0;;-1:-1:-1;;;;;15173:15:1;;;114185:65:0;;;15155:34:1;15225:15;;;15205:18;;;15198:43;15277:15;;;15257:18;;;15250:43;114185:17:0;;;;:47;;15090:18:1;;114185:65:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;114181:170;;-1:-1:-1;114330:5:0;114323:12;;114181:170;-1:-1:-1;114277:4:0;114270:11;;114181:170;-1:-1:-1;114379:4:0;114004:387;;;;;;:::o;37292:2800::-;37426:27;37456;37475:7;37456:18;:27::i;:::-;37426:57;;37541:4;-1:-1:-1;;;;;37500:45:0;37516:19;-1:-1:-1;;;;;37500:45:0;;37496:86;;37554:28;;-1:-1:-1;;;37554:28:0;;;;;;;;;;;37496:86;37596:27;36022:21;;;35849:15;36064:4;36057:36;36146:4;36130:21;;36236:26;;100454:10;36989:30;;;-1:-1:-1;;;;;36687:26:0;;36968:19;;;36965:55;37775:174;;37862:43;37879:4;100454:10;37885:19;111236:358;37862:43;37857:92;;37914:35;;-1:-1:-1;;;37914:35:0;;;;;;;;;;;37857:92;-1:-1:-1;;;;;37966:16:0;;37962:52;;37991:23;;-1:-1:-1;;;37991:23:0;;;;;;;;;;;37962:52;38027:43;38049:4;38055:2;38059:7;38068:1;38027:21;:43::i;:::-;38163:15;38160:160;;;38303:1;38282:19;38275:30;38160:160;-1:-1:-1;;;;;38698:24:0;;;;;;;:18;:24;;;;;;38696:26;;-1:-1:-1;;38696:26:0;;;38767:22;;;;;;;;;38765:24;;-1:-1:-1;38765:24:0;;;25759:11;25735:22;25731:40;25718:62;-1:-1:-1;;;25718:62:0;39060:26;;;;:17;:26;;;;;:174;;;;-1:-1:-1;;;39354:46:0;;:51;;39350:626;;39458:1;39448:11;;39426:19;39581:30;;;:17;:30;;;;;;:35;;39577:384;;39719:13;;39704:11;:28;39700:242;;39866:30;;;;:17;:30;;;;;:52;;;39700:242;39407:569;39350:626;40023:7;40019:2;-1:-1:-1;;;;;40004:27:0;40013:4;-1:-1:-1;;;;;40004:27:0;;;;;;;;;;;40042:42;40063:4;40069:2;40073:7;40082:1;40042:20;:42::i;:::-;37415:2677;;;37292:2800;;;:::o;112349:357::-;112457:17;;112428:4;;-1:-1:-1;;;;;112457:17:0;112449:40;112445:229;;112513:17;;112571:60;;-1:-1:-1;;;112571:60:0;;112625:4;112571:60;;;505:51:1;-1:-1:-1;;;;;112513:17:0;;;;:39;;:17;;112571:45;;478:18:1;;112571:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:80;;;112513:149;;-1:-1:-1;;;;;;112513:149:0;;;;;;;-1:-1:-1;;;;;16309:45:1;;;112513:149:0;;;16291:64:1;-1:-1:-1;;;;;16391:32:1;;16371:18;;;16364:60;16264:18;;112513:149:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;112445:229::-;-1:-1:-1;112693:5:0;;112349:357;-1:-1:-1;112349:357:0:o;133702:124::-;125716:13;:11;:13::i;:::-;133784:15:::1;:34:::0;133702:124::o;28917:185::-;29055:39;29072:4;29078:2;29082:7;29055:39;;;;;;;;;;;;:16;:39::i;:::-;28917:185;;;:::o;122270:792::-;-1:-1:-1;;;;;122352:16:0;;122371:1;122352:16;;;:7;:16;;;;;;122344:71;;;;-1:-1:-1;;;122344:71:0;;;;;;;:::i;:::-;122428:15;122446:26;122457:5;122464:7;122446:10;:26::i;:::-;122428:44;;122493:7;122504:1;122493:12;122485:68;;;;-1:-1:-1;;;122485:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;122808:26:0;;;;;;:19;:26;;;;;:37;;122838:7;;122808:26;:37;;122838:7;;122808:37;:::i;:::-;;;;-1:-1:-1;;;;;;;122881:21:0;;;;;;;:14;:21;;;;;;;;:30;;;;;;;;;:41;;;;;;122946:47;122896:5;122903:7;122915;122946:22;:47::i;:::-;123009:45;;;-1:-1:-1;;;;;14828:32:1;;;14810:51;;14892:2;14877:18;;14870:34;;;123009:45:0;;;;;14783:18:1;123009:45:0;;;;;;;122333:729;122270:792;;:::o;111236:358::-;111342:17;;111301:16;;-1:-1:-1;;;;;111342:17:0;111334:40;111330:221;;111398:17;;111458:60;;-1:-1:-1;;;111458:60:0;;111512:4;111458:60;;;505:51:1;-1:-1:-1;;;;;111398:17:0;;;;:41;;:17;;111458:45;;478:18:1;;111458:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:80;;;111398:141;;-1:-1:-1;;;;;;111398:141:0;;;;;;;-1:-1:-1;;;;;7131:45:1;;;111398:141:0;;;7113:64:1;7086:18;;111398:141:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;111398:141:0;;;;;;;;;;;;:::i;:::-;111391:148;;111236:358;:::o;111330:221::-;-1:-1:-1;111570:16:0;;;111584:1;111570:16;;;;;;;;;111236:358::o;134282:170::-;125716:13;:11;:13::i;:::-;134398:21:::1;:46:::0;134282:170::o;130432:2121::-;128922:9;128935:10;128922:23;128914:66;;;;-1:-1:-1;;;128914:66:0;;18182:2:1;128914:66:0;;;18164:21:1;18221:2;18201:18;;;18194:30;18260:32;18240:18;;;18233:60;18310:18;;128914:66:0;17980:354:1;128914:66:0;130660:11:::1;130645;::::0;::::1;;::::0;:26;::::1;;;;;;:::i;:::-;;130623:107;;;::::0;-1:-1:-1;;;130623:107:0;;18541:2:1;130623:107:0::1;::::0;::::1;18523:21:1::0;18580:2;18560:18;;;18553:30;18619:33;18599:18;;;18592:61;18670:18;;130623:107:0::1;18339:355:1::0;130623:107:0::1;130749:10;-1:-1:-1::0;;;;;130749:22:0;::::1;;130741:61;;;::::0;-1:-1:-1;;;130741:61:0;;18901:2:1;130741:61:0::1;::::0;::::1;18883:21:1::0;18940:2;18920:18;;;18913:30;18979:28;18959:18;;;18952:56;19025:18;;130741:61:0::1;18699:350:1::0;130741:61:0::1;130835:10;130849:1;130835:15;:34;;;;130854:10;130868:1;130854:15;130835:34;:53;;;;130873:10;130887:1;130873:15;130835:53;130813:122;;;::::0;-1:-1:-1;;;130813:122:0;;19256:2:1;130813:122:0::1;::::0;::::1;19238:21:1::0;19295:2;19275:18;;;19268:30;-1:-1:-1;;;19314:18:1;;;19307:49;19373:18;;130813:122:0::1;19054:343:1::0;130813:122:0::1;130997:15;;130984:9;130968:13;:11;:13::i;:::-;:25;;;;:::i;:::-;:44;;130946:113;;;;-1:-1:-1::0;;;130946:113:0::1;;;;;;;:::i;:::-;131107:10;;131094:9;131078:13;:11;:13::i;:::-;:25;;;;:::i;:::-;:39;;131070:71;;;;-1:-1:-1::0;;;131070:71:0::1;;;;;;;:::i;:::-;131166:10;131180:1;131166:15:::0;131162:1343:::1;;131206:33;131220:10;131232:6;;131206:13;:33::i;:::-;131198:61;;;;-1:-1:-1::0;;;131198:61:0::1;;;;;;;:::i;:::-;131370:17;::::0;131322:10:::1;131300:33;::::0;;;:21:::1;:33;::::0;;;;;:45:::1;::::0;131336:9;;131300:45:::1;:::i;:::-;:87;;131274:177;;;;-1:-1:-1::0;;;131274:177:0::1;;;;;;;:::i;:::-;131501:9;131487:11;;:23;;;;:::i;:::-;131474:9;:36;;131466:66;;;;-1:-1:-1::0;;;131466:66:0::1;;;;;;;:::i;:::-;131569:10;131547:33;::::0;;;:21:::1;:33;::::0;;;;:46;;131584:9;;131547:33;:46:::1;::::0;131584:9;;131547:46:::1;:::i;:::-;::::0;;;-1:-1:-1;131162:1343:0::1;::::0;-1:-1:-1;131162:1343:0::1;;131615:10;131629:1;131615:15:::0;131611:894:::1;;131654:30;131665:10;131677:6;;131654:10;:30::i;:::-;131646:58;;;;-1:-1:-1::0;;;131646:58:0::1;;;;;;;:::i;:::-;131815:17;::::0;131767:10:::1;131745:33;::::0;;;:21:::1;:33;::::0;;;;;:45:::1;::::0;131781:9;;131745:45:::1;:::i;:::-;:87;;131719:177;;;;-1:-1:-1::0;;;131719:177:0::1;;;;;;;:::i;:::-;131946:9;131932:11;;:23;;;;:::i;:::-;131919:9;:36;;131911:66;;;;-1:-1:-1::0;;;131911:66:0::1;;;;;;;:::i;:::-;132014:10;131992:33;::::0;;;:21:::1;:33;::::0;;;;:46;;132029:9;;131992:33;:46:::1;::::0;132029:9;;131992:46:::1;:::i;131611:894::-;132060:10;132074:1;132060:15:::0;132056:449:::1;;132099:32;132112:10;132124:6;;132099:12;:32::i;:::-;132091:60;;;;-1:-1:-1::0;;;132091:60:0::1;;;;;;;:::i;:::-;132264:19;::::0;132216:10:::1;132192:35;::::0;;;:23:::1;:35:::0;;;;;;:47:::1;::::0;132230:9;;132192:47:::1;:::i;:::-;:91;;132166:181;;;;-1:-1:-1::0;;;132166:181:0::1;;;;;;;:::i;:::-;132399:9;132383:13;;:25;;;;:::i;:::-;132370:9;:38;;132362:68;;;;-1:-1:-1::0;;;132362:68:0::1;;;;;;;:::i;:::-;132469:10;132445:35;::::0;;;:23:::1;:35:::0;;;;;:48;;132484:9;;132445:35;:48:::1;::::0;132484:9;;132445:48:::1;:::i;:::-;::::0;;;-1:-1:-1;;132056:449:0::1;132515:30;132525:8;132535:9;132515;:30::i;:::-;130432:2121:::0;;;;;:::o;137222:153::-;125716:13;:11;:13::i;:::-;137279:9:::1;137274:94;137298:10;;137294:1;:14;137274:94;;;137330:26;137346:8;137352:1;137346:5;:8::i;137330:26::-;137310:3;;137274:94;;;;137222:153::o:0;107960:727::-;108149:31;:29;:31::i;:::-;108193:40;108236:22;110332:17;;-1:-1:-1;;;;;110332:17:0;;110220:137;108236:22;108193:65;-1:-1:-1;;;;;;108273:32:0;;108269:117;;108329:45;;-1:-1:-1;;;108329:45:0;;;;;;;;;;;108269:117;108398:68;;-1:-1:-1;;;108398:68:0;;-1:-1:-1;;;;;108398:46:0;;;;;:68;;108453:4;;108460:5;;108398:68;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;108477:78:0;;-1:-1:-1;;;108477:78:0;;-1:-1:-1;;;;;108477:42:0;;;-1:-1:-1;108477:42:0;;-1:-1:-1;108477:78:0;;108528:4;;108535:19;;108477:78;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;108566:113:0;;-1:-1:-1;;;108566:113:0;;-1:-1:-1;;;;;108566:59:0;;;-1:-1:-1;108566:59:0;;-1:-1:-1;108566:113:0;;108634:4;;108641:37;;108566:113;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;108138:549;107960:727;;;:::o;25860:144::-;25924:7;25967:27;25986:7;25967:18;:27::i;127606:21::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;106351:464::-;106415:31;:29;:31::i;:::-;106457:48;105755:42;106457:20;:48::i;:::-;106516:143;;-1:-1:-1;;;106516:143:0;;105755:42;;106516:95;;:143;;106620:4;;105878:26;;106516:143;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;106670:137:0;;-1:-1:-1;;;106670:137:0;;105755:42;;-1:-1:-1;106670:91:0;;-1:-1:-1;106670:137:0;;106770:4;;105975:1;;106670:137;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;106351:464::o;21103:224::-;21167:7;-1:-1:-1;;;;;21191:19:0;;21187:60;;21219:28;;-1:-1:-1;;;21219:28:0;;;;;;;;;;;21187:60;-1:-1:-1;;;;;;21265:25:0;;;;;:18;:25;;;;;;15595:13;21265:54;;21103:224::o;126505:103::-;125716:13;:11;:13::i;:::-;126570:30:::1;126597:1;126570:18;:30::i;:::-;126505:103::o:0;134822:126::-;125716:13;:11;:13::i;:::-;134906:15:::1;:34:::0;134822:126::o;120296:100::-;120347:7;120374;120382:5;120374:14;;;;;;;;:::i;:::-;;;;;;;;;;;-1:-1:-1;;;;;120374:14:0;;120296:100;-1:-1:-1;;120296:100:0:o;26240:104::-;26296:13;26329:7;26322:14;;;;;:::i;112878:378::-;112992:17;;112963:4;;-1:-1:-1;;;;;112992:17:0;112984:40;112980:244;;113048:17;;113112:60;;-1:-1:-1;;;113112:60:0;;113166:4;113112:60;;;505:51:1;-1:-1:-1;;;;;113048:17:0;;;;:45;;:17;;113112:45;;478:18:1;;113112:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:89;;;;;113048:164;;-1:-1:-1;;;;;;113048:164:0;;;;;;;-1:-1:-1;;;;;16309:45:1;;;113048:164:0;;;16291:64:1;-1:-1:-1;;;;;16391:32:1;;16371:18;;;16364:60;16264:18;;113048:164:0;16117:313:1;134956:100:0;125716:13;:11;:13::i;:::-;135030:7:::1;:18;135040:8:::0;135030:7;:18:::1;:::i;:::-;;134956:100:::0;:::o;28299:306::-;100454:10;-1:-1:-1;;;;;28398:31:0;;;28394:61;;28438:17;;-1:-1:-1;;;28438:17:0;;;;;;;;;;;28394:61;100454:10;28466:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;28466:49:0;;;;;;;;;;:60;;-1:-1:-1;;28466:60:0;;;;;;;:49;-1:-1:-1;;;;;28542:55:0;;28588:8;28542:55;;;;1118:14:1;1111:22;1093:41;;1081:2;1066:18;;953:187;28542:55:0;;;;;;;;28299:306;;:::o;134143:131::-;125716:13;:11;:13::i;:::-;134228:17:::1;:38:::0;134143:131::o;120486:225::-;120544:7;120564:21;120612:15;119199:14;;;119126:95;120612:15;120588:39;;:21;:39;:::i;:::-;120564:63;;120645:58;120661:7;120670:13;120685:17;120694:7;-1:-1:-1;;;;;119875:18:0;119848:7;119875:18;;;:9;:18;;;;;;;119792:109;120685:17;120645:15;:58::i;135616:114::-;125716:13;:11;:13::i;:::-;135694:12:::1;:28:::0;135616:114::o;109287:818::-;109363:31;:29;:31::i;:::-;109407:29;-1:-1:-1;;;;;109460:30:0;;;:34;109457:304;;109515:95;;-1:-1:-1;;;109515:95:0;;109561:48;109515:95;;;24068:52:1;-1:-1:-1;;;;;109515:45:0;;;;;24041:18:1;;109515:95:0;;;;;;;;;;;;;;;;;;-1:-1:-1;109515:95:0;;;;;;;;-1:-1:-1;;109515:95:0;;;;;;;;;;;;:::i;:::-;;;109511:239;;;109708:17;-1:-1:-1;109511:239:0;-1:-1:-1;;;;;109776:32:0;;;;;;:61;;;109813:24;109812:25;109776:61;109773:152;;;109861:52;;-1:-1:-1;;;109861:52:0;;;;;;;;;;;109773:152;109975:17;;109942:72;;;-1:-1:-1;;;;;109975:17:0;;;24343:34:1;;24413:15;;;24408:2;24393:18;;24386:43;109942:72:0;;24278:18:1;109942:72:0;;;;;;;-1:-1:-1;110027:17:0;:70;;-1:-1:-1;;;;;;110027:70:0;-1:-1:-1;;;;;110027:70:0;;;;;;;;;;109287:818::o;132561:752::-;132696:11;132681;;;;;:26;;;;;;;:::i;:::-;;132673:67;;;;-1:-1:-1;;;132673:67:0;;24642:2:1;132673:67:0;;;24624:21:1;24681:2;24661:18;;;24654:30;24720;24700:18;;;24693:58;24768:18;;132673:67:0;24440:352:1;132673:67:0;132802:15;;132789:9;132773:13;:11;:13::i;:::-;:25;;;;:::i;:::-;:44;;132751:113;;;;-1:-1:-1;;;132751:113:0;;;;;;;:::i;:::-;132912:10;;132899:9;132883:13;:11;:13::i;:::-;:25;;;;:::i;:::-;:39;;132875:71;;;;-1:-1:-1;;;132875:71:0;;;;;;;:::i;:::-;133047:21;;-1:-1:-1;;;;;132979:35:0;;;;;;:25;:35;;;;;;:47;;133017:9;;132979:47;:::i;:::-;:89;;132957:167;;;;-1:-1:-1;;;132957:167:0;;;;;;;:::i;:::-;133174:9;133156:15;;:27;;;;:::i;:::-;133143:9;:40;;133135:70;;;;-1:-1:-1;;;133135:70:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;133216:35:0;;;;;;:25;:35;;;;;:48;;133255:9;;133216:35;:48;;133255:9;;133216:48;:::i;:::-;;;;-1:-1:-1;133275:30:0;;-1:-1:-1;133285:8:0;133295:9;133275;:30::i;135494:114::-;125716:13;:11;:13::i;:::-;135572:12:::1;:28:::0;135494:114::o;29173:399::-;29340:31;29353:4;29359:2;29363:7;29340:12;:31::i;:::-;-1:-1:-1;;;;;29386:14:0;;;:19;29382:183;;29425:56;29456:4;29462:2;29466:7;29475:5;29425:30;:56::i;:::-;29420:145;;29509:40;;-1:-1:-1;;;29509:40:0;;;;;;;;;;;110574:455;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;110689:17:0;;-1:-1:-1;;;;;110689:17:0;110681:40;110677:140;;110745:17;;:60;;-1:-1:-1;;;110745:60:0;;110799:4;110745:60;;;505:51:1;-1:-1:-1;;;;;110745:17:0;;;;:45;;478:18:1;;110745:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;110677:140::-;-1:-1:-1;110836:185:0;;;;;;;;-1:-1:-1;110836:185:0;;;;;;;;;;;;;;;;;110574:455::o;134004:131::-;125716:13;:11;:13::i;:::-;134089:17:::1;:38:::0;134004:131::o;120871:260::-;-1:-1:-1;;;;;119463:26:0;;120943:7;119463:26;;;:19;:26;;;;;;120943:7;;120987:30;;-1:-1:-1;;;120987:30:0;;121011:4;120987:30;;;505:51:1;-1:-1:-1;;;;;120987:15:0;;;;;478:18:1;;120987:30:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:53;;;;:::i;:::-;-1:-1:-1;;;;;120167:21:0;;;120140:7;120167:21;;;:14;:21;;;;;;;;:30;;;;;;;;;;120963:77;;-1:-1:-1;121058:65:0;;121074:7;;120963:77;;120645:15;:58::i;121058:65::-;121051:72;120871:260;-1:-1:-1;;;;120871:260:0:o;133519:175::-;125716:13;:11;:13::i;:::-;133613:10:::1;;133599:11;:24;133591:60;;;::::0;-1:-1:-1;;;133591:60:0;;25188:2:1;133591:60:0::1;::::0;::::1;25170:21:1::0;25227:2;25207:18;;;25200:30;25266:25;25246:18;;;25239:53;25309:18;;133591:60:0::1;24986:347:1::0;133591:60:0::1;133662:10;:24:::0;133519:175::o;135167:302::-;135286:13;135325:17;135333:8;135325:7;:17::i;:::-;135317:61;;;;-1:-1:-1;;;135317:61:0;;25540:2:1;135317:61:0;;;25522:21:1;25579:2;25559:18;;;25552:30;25618:33;25598:18;;;25591:61;25669:18;;135317:61:0;25338:355:1;135317:61:0;135422:7;135431:19;:8;:17;:19::i;:::-;135405:55;;;;;;;;;:::i;:::-;;;;;;;;;;;;;135391:70;;135167:302;;;:::o;133321:190::-;125716:13;:11;:13::i;:::-;133434:10:::1;;133421:9;133405:13;:11;:13::i;:::-;:25;;;;:::i;:::-;:39;;133397:70;;;::::0;-1:-1:-1;;;133397:70:0;;27093:2:1;133397:70:0::1;::::0;::::1;27075:21:1::0;27132:2;27112:18;;;27105:30;-1:-1:-1;;;27151:18:1;;;27144:48;27209:18;;133397:70:0::1;26891:342:1::0;133397:70:0::1;133478:25;133488:3;133493:9;133478;:25::i;111804:379::-:0;111916:17;;111875:16;;-1:-1:-1;;;;;111916:17:0;111908:40;111904:236;;111972:17;;112038:60;;-1:-1:-1;;;112038:60:0;;112092:4;112038:60;;;505:51:1;-1:-1:-1;;;;;111972:17:0;;;;:47;;:17;;112038:45;;478:18:1;;112038:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:89;;;;;111972:156;;-1:-1:-1;;;;;;111972:156:0;;;;;;;-1:-1:-1;;;;;7131:45:1;;;111972:156:0;;;7113:64:1;7086:18;;111972:156:0;6967:216:1;134578:110:0;125716:13;:11;:13::i;:::-;134654:11:::1;:26:::0;134578:110::o;126763:220::-;125716:13;:11;:13::i;:::-;-1:-1:-1;;;;;126848:22:0;::::1;126844:93;;126894:31;::::0;-1:-1:-1;;;126894:31:0;;126922:1:::1;126894:31;::::0;::::1;505:51:1::0;478:18;;126894:31:0::1;359:203:1::0;126844:93:0::1;126947:28;126966:8;126947:18;:28::i;135064:95::-:0;125716:13;:11;:13::i;:::-;135145:5:::1;135140:11;;;;;;;;:::i;:::-;135126;:25:::0;;-1:-1:-1;;135126:25:0::1;::::0;;;;::::1;;;;;;:::i;:::-;;;;;;135064:95:::0;:::o;135738:122::-;125716:13;:11;:13::i;:::-;135820:14:::1;:32:::0;135738:122::o;107018:749::-;107248:31;:29;:31::i;:::-;107292;107313:9;107292:20;:31::i;:::-;107336:114;;-1:-1:-1;;;107336:114:0;;-1:-1:-1;;;;;107336:92:0;;;;;:114;;107437:4;;107444:5;;107336:114;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;107463:124:0;;-1:-1:-1;;;107463:124:0;;-1:-1:-1;;;;;107463:88:0;;;-1:-1:-1;107463:88:0;;-1:-1:-1;107463:124:0;;107560:4;;107567:19;;107463:124;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;107600:159:0;;-1:-1:-1;;;107600:159:0;;-1:-1:-1;;;;;107600:105:0;;;-1:-1:-1;107600:105:0;;-1:-1:-1;107600:159:0;;107714:4;;107721:37;;107600:159;;;:::i;20361:678::-;20446:4;-1:-1:-1;;;;;;;;;20746:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;20823:25:0;;;20746:102;:179;;;-1:-1:-1;;;;;;;;;;20900:25:0;;;20746:179;:242;;;-1:-1:-1;;;;;;;;20963:25:0;-1:-1:-1;;;20963:25:0;;20361:678::o;125995:166::-;125876:7;125903:6;-1:-1:-1;;;;;125903:6:0;100454:10;126055:23;126051:103;;126102:40;;-1:-1:-1;;;126102:40:0;;100454:10;126102:40;;;505:51:1;478:18;;126102:40:0;359:203:1;29827:273:0;29884:4;29940:7;19022:1;29921:26;;:66;;;;;29974:13;;29964:7;:23;29921:66;:152;;;;-1:-1:-1;;30025:26:0;;;;:17;:26;;;;;;-1:-1:-1;;;30025:43:0;:48;;29827:273::o;72188:340::-;72298:6;72274:21;:30;72270:111;;;72328:41;;-1:-1:-1;;;72328:41:0;;72363:4;72328:41;;;505:51:1;478:18;;72328:41:0;359:203:1;72270:111:0;72394:12;72412:9;-1:-1:-1;;;;;72412:14:0;72434:6;72412:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;72393:52;;;72461:7;72456:65;;72492:17;;-1:-1:-1;;;72492:17:0;;;;;;;;;;;22777:1129;22844:7;22879;;19022:1;22928:23;22924:915;;22981:13;;22974:4;:20;22970:869;;;23019:14;23036:23;;;:17;:23;;;;;;;-1:-1:-1;;;23125:23:0;;:28;;23121:699;;23644:113;23651:6;23661:1;23651:11;23644:113;;-1:-1:-1;;;23722:6:0;23704:25;;;;:17;:25;;;;;;23644:113;;23121:699;22996:843;22970:869;23867:31;;-1:-1:-1;;;23867:31:0;;;;;;;;;;;129320:359;129502:9;129497:175;129521:8;129517:1;:12;129497:175;;;129547:51;129571:4;129577:2;129581:16;129596:1;129581:12;:16;:::i;:::-;129547:23;:51::i;:::-;129642:3;;129497:175;;129786:357;129967:9;129962:174;129986:8;129982:1;:12;129962:174;;;130012:50;130035:4;130041:2;130045:16;130060:1;130045:12;:16;:::i;:::-;130012:22;:50::i;:::-;130106:3;;129962:174;;85093:162;85203:43;;;-1:-1:-1;;;;;14828:32:1;;85203:43:0;;;14810:51:1;14877:18;;;;14870:34;;;85203:43:0;;;;;;;;;;14783:18:1;;;;85203:43:0;;;;;;;;-1:-1:-1;;;;;85203:43:0;-1:-1:-1;;;85203:43:0;;;85176:71;;85196:5;;85176:19;:71::i;136266:188::-;136384:4;136413:33;136423:14;136428:8;136423:4;:14::i;:::-;136439:6;;136413:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;136413:9:0;;-1:-1:-1;;;136413:33:0:i;136073:185::-;136188:4;136217:33;136227:14;136232:8;136227:4;:14::i;:::-;136243:6;;136217:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;136217:9:0;;-1:-1:-1;;;136217:33:0:i;135876:189::-;135993:4;136022:35;136034:14;136039:8;136034:4;:14::i;:::-;136050:6;;136022:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;136022:11:0;;-1:-1:-1;;;136022:35:0:i;30184:104::-;30253:27;30263:2;30267:8;30253:27;;;;;;;;;;;;:9;:27::i;130275:149::-;125876:7;125903:6;-1:-1:-1;;;;;125903:6:0;130358:10;:21;130350:66;;;;-1:-1:-1;;;130350:66:0;;27650:2:1;130350:66:0;;;27632:21:1;;;27669:18;;;27662:30;27728:34;27708:18;;;27701:62;27780:18;;130350:66:0;27448:356:1;127143:191:0;127217:16;127236:6;;-1:-1:-1;;;;;127253:17:0;;;-1:-1:-1;;;;;;127253:17:0;;;;;;127286:40;;127236:6;;;;;;;127286:40;;127217:16;127286:40;127206:128;127143:191;:::o;123240:248::-;123450:12;;-1:-1:-1;;;;;123430:16:0;;123386:7;123430:16;;;:7;:16;;;;;;123386:7;;123465:15;;123414:32;;:13;:32;:::i;:::-;123413:49;;;;:::i;:::-;:67;;;;:::i;44043:716::-;44227:88;;-1:-1:-1;;;44227:88:0;;44206:4;;-1:-1:-1;;;;;44227:45:0;;;;;:88;;100454:10;;44294:4;;44300:7;;44309:5;;44227:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;44227:88:0;;;;;;;;-1:-1:-1;;44227:88:0;;;;;;;;;;;;:::i;:::-;;;44223:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;44510:6;:13;44527:1;44510:18;44506:235;;44556:40;;-1:-1:-1;;;44556:40:0;;;;;;;;;;;44506:235;44699:6;44693:13;44684:6;44680:2;44676:15;44669:38;44223:529;-1:-1:-1;;;;;;44386:64:0;-1:-1:-1;;;44386:64:0;;-1:-1:-1;44043:716:0;;;;;;:::o;68059:718::-;68115:13;68166:14;68183:17;68194:5;68183:10;:17::i;:::-;68203:1;68183:21;68166:38;;68219:20;68253:6;68242:18;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;68242:18:0;-1:-1:-1;68219:41:0;-1:-1:-1;68384:28:0;;;68400:2;68384:28;68441:290;-1:-1:-1;;68473:5:0;-1:-1:-1;;;68610:2:0;68599:14;;68594:32;68473:5;68581:46;68673:2;68664:11;;;-1:-1:-1;68694:21:0;68441:290;68694:21;-1:-1:-1;68752:6:0;68059:718;-1:-1:-1;;;68059:718:0:o;101259:623::-;-1:-1:-1;;;;;101386:18:0;;;;;101436:16;;;101386:18;101468:32;;;;;101487:13;101468:32;101465:410;;;101524:28;;-1:-1:-1;;;101524:28:0;;;;;;;;;;;101465:410;101573:15;101570:305;;;101605:54;101570:305;;;101680:13;101710:56;101677:198;101799:64;100454:10;101834:4;101840:2;101844:7;101853:9;101799:20;:64::i;102015:625::-;-1:-1:-1;;;;;102141:18:0;;;;;102191:16;;;102141:18;102223:32;;;;;102242:13;102223:32;102220:413;;;102279:28;;-1:-1:-1;;;102279:28:0;;;;;;;;;;;102220:413;102328:15;102360:55;102325:308;102436:13;102466:57;102433:200;102556:65;137222:153::o;87904:638::-;88328:23;88354:33;-1:-1:-1;;;;;88354:27:0;;88382:4;88354:27;:33::i;:::-;88328:59;;88402:10;:17;88423:1;88402:22;;:57;;;;;88440:10;88429:30;;;;;;;;;;;;:::i;:::-;88428:31;88402:57;88398:137;;;88483:40;;-1:-1:-1;;;88483:40:0;;-1:-1:-1;;;;;523:32:1;;88483:40:0;;;505:51:1;478:18;;88483:40:0;359:203:1;136462:127:0;136554:26;;-1:-1:-1;;29193:2:1;29189:15;;;29185:53;136554:26:0;;;29173:66:1;136517:7:0;;29255:12:1;;136554:26:0;;;;;;;;;;;;136544:37;;;;;;136537:44;;136462:127;;;:::o;136597:193::-;136706:4;136735:47;136754:6;136762:12;;136776:5;136735:18;:47::i;136798:193::-;136907:4;136936:47;136955:6;136963:12;;136977:5;136936:18;:47::i;136999:197::-;137110:4;137139:49;137158:6;137166:14;;137182:5;137139:18;:49::i;30704:681::-;30827:19;30833:2;30837:8;30827:5;:19::i;:::-;-1:-1:-1;;;;;30888:14:0;;;:19;30884:483;;30942:13;;30990:14;;;31023:233;31054:62;31093:1;31097:2;31101:7;;;;;;31110:5;31054:30;:62::i;:::-;31049:167;;31152:40;;-1:-1:-1;;;31152:40:0;;;;;;;;;;;31049:167;31251:3;31243:5;:11;31023:233;;31338:3;31321:13;;:20;31317:34;;31343:8;;;64463:948;64516:7;;-1:-1:-1;;;64594:17:0;;64590:106;;-1:-1:-1;;;64632:17:0;;;-1:-1:-1;64678:2:0;64668:12;64590:106;64723:8;64714:5;:17;64710:106;;64761:8;64752:17;;;-1:-1:-1;64798:2:0;64788:12;64710:106;64843:8;64834:5;:17;64830:106;;64881:8;64872:17;;;-1:-1:-1;64918:2:0;64908:12;64830:106;64963:7;64954:5;:16;64950:103;;65000:7;64991:16;;;-1:-1:-1;65036:1:0;65026:11;64950:103;65080:7;65071:5;:16;65067:103;;65117:7;65108:16;;;-1:-1:-1;65153:1:0;65143:11;65067:103;65197:7;65188:5;:16;65184:103;;65234:7;65225:16;;;-1:-1:-1;65270:1:0;65260:11;65184:103;65314:7;65305:5;:16;65301:68;;65352:1;65342:11;65397:6;64463:948;-1:-1:-1;;64463:948:0:o;115094:344::-;115305:17;;-1:-1:-1;;;;;115305:17:0;115297:40;115293:138;;115354:17;;:65;;-1:-1:-1;;;115354:65:0;;-1:-1:-1;;;;;15173:15:1;;;115354:65:0;;;15155:34:1;15225:15;;;15205:18;;;15198:43;15277:15;;;15257:18;;;15250:43;115354:17:0;;;;:47;;15090:18:1;;115354:65:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;115094:344;;;;;:::o;73391:153::-;73466:12;73498:38;73520:6;73528:4;73534:1;73498:21;:38::i;90981:156::-;91072:4;91125;91096:25;91109:5;91116:4;91096:12;:25::i;:::-;:33;;90981:156;-1:-1:-1;;;;90981:156:0:o;31658:1529::-;31746:13;;-1:-1:-1;;;;;31774:16:0;;31770:48;;31799:19;;-1:-1:-1;;;31799:19:0;;;;;;;;;;;31770:48;31833:8;31845:1;31833:13;31829:44;;31855:18;;-1:-1:-1;;;31855:18:0;;;;;;;;;;;31829:44;31886:61;31916:1;31920:2;31924:12;31938:8;31886:21;:61::i;:::-;-1:-1:-1;;;;;32361:22:0;;;;;;:18;:22;;15732:2;32361:22;;:70;;32399:31;32387:44;;32361:70;;;25759:11;25735:22;25731:40;-1:-1:-1;27469:15:0;;27444:23;27440:45;25728:51;25718:62;32674:31;;;;:17;:31;;;;;:173;32692:12;32923:23;;;32961:101;32988:35;;33013:9;;;;;-1:-1:-1;;;;;32988:35:0;;;33005:1;;32988:35;;33005:1;;32988:35;33057:3;33047:7;:13;32961:101;;33078:13;:19;-1:-1:-1;33119:60:0;33148:1;33152:2;33156:12;33170:8;33119:20;:60::i;73879:398::-;73978:12;74031:5;74007:21;:29;74003:110;;;74060:41;;-1:-1:-1;;;74060:41:0;;74095:4;74060:41;;;505:51:1;478:18;;74060:41:0;359:203:1;74003:110:0;74124:12;74138:23;74165:6;-1:-1:-1;;;;;74165:11:0;74184:5;74191:4;74165:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;74123:73;;;;74214:55;74241:6;74249:7;74258:10;74214:26;:55::i;:::-;74207:62;73879:398;-1:-1:-1;;;;;;73879:398:0:o;91700:296::-;91783:7;91826:4;91783:7;91841:118;91865:5;:12;91861:1;:16;91841:118;;;91914:33;91924:12;91938:5;91944:1;91938:8;;;;;;;;:::i;:::-;;;;;;;91914:9;:33::i;:::-;91899:48;-1:-1:-1;91879:3:0;;91841:118;;;-1:-1:-1;91976:12:0;91700:296;-1:-1:-1;;;91700:296:0:o;75355:597::-;75503:12;75533:7;75528:417;;75557:19;75565:10;75557:7;:19::i;:::-;75528:417;;;75785:17;;:22;:49;;;;-1:-1:-1;;;;;;75811:18:0;;;:23;75785:49;75781:121;;;75862:24;;-1:-1:-1;;;75862:24:0;;-1:-1:-1;;;;;523:32:1;;75862:24:0;;;505:51:1;478:18;;75862:24:0;359:203:1;75781:121:0;-1:-1:-1;75923:10:0;75916:17;;99130:149;99193:7;99224:1;99220;:5;:51;;99472:13;99566:15;;;99602:4;99595:15;;;99649:4;99633:21;;99220:51;;;99472:13;99566:15;;;99602:4;99595:15;;;99649:4;99633:21;;99228:20;99404:268;76505:528;76638:17;;:21;76634:392;;76870:10;76864:17;76927:15;76914:10;76910:2;76906:19;76899:44;76634:392;76997:17;;-1:-1:-1;;;76997:17:0;;;;;;;;;;;567:131:1;-1:-1:-1;;;;;;641:32:1;;631:43;;621:71;;688:1;685;678:12;703:245;761:6;814:2;802:9;793:7;789:23;785:32;782:52;;;830:1;827;820:12;782:52;869:9;856:23;888:30;912:5;888:30;:::i;1145:180::-;1204:6;1257:2;1245:9;1236:7;1232:23;1228:32;1225:52;;;1273:1;1270;1263:12;1225:52;-1:-1:-1;1296:23:1;;1145:180;-1:-1:-1;1145:180:1:o;1330:250::-;1415:1;1425:113;1439:6;1436:1;1433:13;1425:113;;;1515:11;;;1509:18;1496:11;;;1489:39;1461:2;1454:10;1425:113;;;-1:-1:-1;;1572:1:1;1554:16;;1547:27;1330:250::o;1585:271::-;1627:3;1665:5;1659:12;1692:6;1687:3;1680:19;1708:76;1777:6;1770:4;1765:3;1761:14;1754:4;1747:5;1743:16;1708:76;:::i;:::-;1838:2;1817:15;-1:-1:-1;;1813:29:1;1804:39;;;;1845:4;1800:50;;1585:271;-1:-1:-1;;1585:271:1:o;1861:220::-;2010:2;1999:9;1992:21;1973:4;2030:45;2071:2;2060:9;2056:18;2048:6;2030:45;:::i;2086:131::-;-1:-1:-1;;;;;2161:31:1;;2151:42;;2141:70;;2207:1;2204;2197:12;2222:315;2290:6;2298;2351:2;2339:9;2330:7;2326:23;2322:32;2319:52;;;2367:1;2364;2357:12;2319:52;2406:9;2393:23;2425:31;2450:5;2425:31;:::i;:::-;2475:5;2527:2;2512:18;;;;2499:32;;-1:-1:-1;;;2222:315:1:o;2970:255::-;3037:6;3090:2;3078:9;3069:7;3065:23;3061:32;3058:52;;;3106:1;3103;3096:12;3058:52;3145:9;3132:23;3164:31;3189:5;3164:31;:::i;3230:529::-;3307:6;3315;3323;3376:2;3364:9;3355:7;3351:23;3347:32;3344:52;;;3392:1;3389;3382:12;3344:52;3431:9;3418:23;3450:31;3475:5;3450:31;:::i;:::-;3500:5;-1:-1:-1;3557:2:1;3542:18;;3529:32;3570:33;3529:32;3570:33;:::i;:::-;3622:7;-1:-1:-1;3681:2:1;3666:18;;3653:32;3694:33;3653:32;3694:33;:::i;:::-;3746:7;3736:17;;;3230:529;;;;;:::o;3764:127::-;3825:10;3820:3;3816:20;3813:1;3806:31;3856:4;3853:1;3846:15;3880:4;3877:1;3870:15;3896:153;3990:1;3983:5;3980:12;3970:46;;3996:18;;:::i;:::-;4025;;3896:153::o;4054:232::-;4211:2;4196:18;;4223:57;4200:9;4262:6;4223:57;:::i;4291:456::-;4368:6;4376;4384;4437:2;4425:9;4416:7;4412:23;4408:32;4405:52;;;4453:1;4450;4443:12;4405:52;4492:9;4479:23;4511:31;4536:5;4511:31;:::i;:::-;4561:5;-1:-1:-1;4618:2:1;4603:18;;4590:32;4631:33;4590:32;4631:33;:::i;:::-;4291:456;;4683:7;;-1:-1:-1;;;4737:2:1;4722:18;;;;4709:32;;4291:456::o;5004:403::-;5087:6;5095;5148:2;5136:9;5127:7;5123:23;5119:32;5116:52;;;5164:1;5161;5154:12;5116:52;5203:9;5190:23;5222:31;5247:5;5222:31;:::i;:::-;5272:5;-1:-1:-1;5329:2:1;5314:18;;5301:32;5342:33;5301:32;5342:33;:::i;:::-;5394:7;5384:17;;;5004:403;;;;;:::o;5412:658::-;5583:2;5635:21;;;5705:13;;5608:18;;;5727:22;;;5554:4;;5583:2;5806:15;;;;5780:2;5765:18;;;5554:4;5849:195;5863:6;5860:1;5857:13;5849:195;;;5928:13;;-1:-1:-1;;;;;5924:39:1;5912:52;;6019:15;;;;5984:12;;;;5960:1;5878:9;5849:195;;;-1:-1:-1;6061:3:1;;5412:658;-1:-1:-1;;;;;;5412:658:1:o;6075:887::-;6188:6;6196;6204;6212;6220;6273:3;6261:9;6252:7;6248:23;6244:33;6241:53;;;6290:1;6287;6280:12;6241:53;6329:9;6316:23;6348:31;6373:5;6348:31;:::i;:::-;6398:5;-1:-1:-1;6450:2:1;6435:18;;6422:32;;-1:-1:-1;6505:2:1;6490:18;;6477:32;6528:18;6558:14;;;6555:34;;;6585:1;6582;6575:12;6555:34;6623:6;6612:9;6608:22;6598:32;;6668:7;6661:4;6657:2;6653:13;6649:27;6639:55;;6690:1;6687;6680:12;6639:55;6730:2;6717:16;6756:2;6748:6;6745:14;6742:34;;;6772:1;6769;6762:12;6742:34;6825:7;6820:2;6810:6;6807:1;6803:14;6799:2;6795:23;6791:32;6788:45;6785:65;;;6846:1;6843;6836:12;6785:65;6075:887;;;;-1:-1:-1;;6877:2:1;6869:11;;6952:2;6937:18;6924:32;;6075:887;-1:-1:-1;;;6075:887:1:o;7188:121::-;7283:1;7276:5;7273:12;7263:40;;7299:1;7296;7289:12;7314:144;-1:-1:-1;;;;;7393:5:1;7389:44;7382:5;7379:55;7369:83;;7448:1;7445;7438:12;7463:574;7565:6;7573;7581;7634:2;7622:9;7613:7;7609:23;7605:32;7602:52;;;7650:1;7647;7640:12;7602:52;7689:9;7676:23;7708:51;7753:5;7708:51;:::i;:::-;7778:5;-1:-1:-1;7835:2:1;7820:18;;7807:32;7848:33;7807:32;7848:33;:::i;:::-;7900:7;-1:-1:-1;7959:2:1;7944:18;;7931:32;7972:33;7931:32;7972:33;:::i;8224:127::-;8285:10;8280:3;8276:20;8273:1;8266:31;8316:4;8313:1;8306:15;8340:4;8337:1;8330:15;8356:275;8427:2;8421:9;8492:2;8473:13;;-1:-1:-1;;8469:27:1;8457:40;;8527:18;8512:34;;8548:22;;;8509:62;8506:88;;;8574:18;;:::i;:::-;8610:2;8603:22;8356:275;;-1:-1:-1;8356:275:1:o;8636:407::-;8701:5;8735:18;8727:6;8724:30;8721:56;;;8757:18;;:::i;:::-;8795:57;8840:2;8819:15;;-1:-1:-1;;8815:29:1;8846:4;8811:40;8795:57;:::i;:::-;8786:66;;8875:6;8868:5;8861:21;8915:3;8906:6;8901:3;8897:16;8894:25;8891:45;;;8932:1;8929;8922:12;8891:45;8981:6;8976:3;8969:4;8962:5;8958:16;8945:43;9035:1;9028:4;9019:6;9012:5;9008:18;9004:29;8997:40;8636:407;;;;;:::o;9048:451::-;9117:6;9170:2;9158:9;9149:7;9145:23;9141:32;9138:52;;;9186:1;9183;9176:12;9138:52;9226:9;9213:23;9259:18;9251:6;9248:30;9245:50;;;9291:1;9288;9281:12;9245:50;9314:22;;9367:4;9359:13;;9355:27;-1:-1:-1;9345:55:1;;9396:1;9393;9386:12;9345:55;9419:74;9485:7;9480:2;9467:16;9462:2;9458;9454:11;9419:74;:::i;9504:118::-;9590:5;9583:13;9576:21;9569:5;9566:32;9556:60;;9612:1;9609;9602:12;9627:382;9692:6;9700;9753:2;9741:9;9732:7;9728:23;9724:32;9721:52;;;9769:1;9766;9759:12;9721:52;9808:9;9795:23;9827:31;9852:5;9827:31;:::i;:::-;9877:5;-1:-1:-1;9934:2:1;9919:18;;9906:32;9947:30;9906:32;9947:30;:::i;10199:795::-;10294:6;10302;10310;10318;10371:3;10359:9;10350:7;10346:23;10342:33;10339:53;;;10388:1;10385;10378:12;10339:53;10427:9;10414:23;10446:31;10471:5;10446:31;:::i;:::-;10496:5;-1:-1:-1;10553:2:1;10538:18;;10525:32;10566:33;10525:32;10566:33;:::i;:::-;10618:7;-1:-1:-1;10672:2:1;10657:18;;10644:32;;-1:-1:-1;10727:2:1;10712:18;;10699:32;10754:18;10743:30;;10740:50;;;10786:1;10783;10776:12;10740:50;10809:22;;10862:4;10854:13;;10850:27;-1:-1:-1;10840:55:1;;10891:1;10888;10881:12;10840:55;10914:74;10980:7;10975:2;10962:16;10957:2;10953;10949:11;10914:74;:::i;:::-;10904:84;;;10199:795;;;;;;;:::o;10999:532::-;11171:4;11213:2;11202:9;11198:18;11190:26;;11225:64;11279:9;11270:6;11264:13;11225:64;:::i;:::-;11336:4;11328:6;11324:17;11318:24;-1:-1:-1;;;;;11449:2:1;11435:12;11431:21;11424:4;11413:9;11409:20;11402:51;11521:2;11513:4;11505:6;11501:17;11495:24;11491:33;11484:4;11473:9;11469:20;11462:63;;;10999:532;;;;:::o;11536:240::-;11677:2;11662:18;;11710:1;11699:13;;11689:47;;11716:18;;:::i;:::-;11745:25;;;11536:240;:::o;12441:716::-;12552:6;12560;12568;12576;12629:3;12617:9;12608:7;12604:23;12600:33;12597:53;;;12646:1;12643;12636:12;12597:53;12685:9;12672:23;12704:31;12729:5;12704:31;:::i;:::-;12754:5;-1:-1:-1;12811:2:1;12796:18;;12783:32;12824:53;12783:32;12824:53;:::i;:::-;12896:7;-1:-1:-1;12955:2:1;12940:18;;12927:32;12968:33;12927:32;12968:33;:::i;:::-;13020:7;-1:-1:-1;13079:2:1;13064:18;;13051:32;13092:33;13051:32;13092:33;:::i;:::-;12441:716;;;;-1:-1:-1;12441:716:1;;-1:-1:-1;;12441:716:1:o;13162:380::-;13241:1;13237:12;;;;13284;;;13305:61;;13359:4;13351:6;13347:17;13337:27;;13305:61;13412:2;13404:6;13401:14;13381:18;13378:38;13375:161;;13458:10;13453:3;13449:20;13446:1;13439:31;13493:4;13490:1;13483:15;13521:4;13518:1;13511:15;13375:161;;13162:380;;;:::o;13547:402::-;13749:2;13731:21;;;13788:2;13768:18;;;13761:30;13827:34;13822:2;13807:18;;13800:62;-1:-1:-1;;;13893:2:1;13878:18;;13871:36;13939:3;13924:19;;13547:402::o;13954:407::-;14156:2;14138:21;;;14195:2;14175:18;;;14168:30;14234:34;14229:2;14214:18;;14207:62;-1:-1:-1;;;14300:2:1;14285:18;;14278:41;14351:3;14336:19;;13954:407::o;14366:127::-;14427:10;14422:3;14418:20;14415:1;14408:31;14458:4;14455:1;14448:15;14482:4;14479:1;14472:15;14498:125;14563:9;;;14584:10;;;14581:36;;;14597:18;;:::i;15304:808::-;15414:6;15467:2;15455:9;15446:7;15442:23;15438:32;15435:52;;;15483:1;15480;15473:12;15435:52;15516:2;15510:9;15558:2;15550:6;15546:15;15627:6;15615:10;15612:22;15591:18;15579:10;15576:34;15573:62;15570:88;;;15638:18;;:::i;:::-;15674:2;15667:22;15711:16;;15736:51;15711:16;15736:51;:::i;:::-;15796:21;;15862:2;15847:18;;15841:25;15875:33;15841:25;15875:33;:::i;:::-;15936:2;15924:15;;15917:32;15994:2;15979:18;;15973:25;16007:33;15973:25;16007:33;:::i;:::-;16068:2;16056:15;;16049:32;16060:6;15304:808;-1:-1:-1;;;15304:808:1:o;16435:245::-;16502:6;16555:2;16543:9;16534:7;16530:23;16526:32;16523:52;;;16571:1;16568;16561:12;16523:52;16603:9;16597:16;16622:28;16644:5;16622:28;:::i;16964:1011::-;17059:6;17090:2;17133;17121:9;17112:7;17108:23;17104:32;17101:52;;;17149:1;17146;17139:12;17101:52;17182:9;17176:16;17211:18;17252:2;17244:6;17241:14;17238:34;;;17268:1;17265;17258:12;17238:34;17306:6;17295:9;17291:22;17281:32;;17351:7;17344:4;17340:2;17336:13;17332:27;17322:55;;17373:1;17370;17363:12;17322:55;17402:2;17396:9;17424:2;17420;17417:10;17414:36;;;17430:18;;:::i;:::-;17476:2;17473:1;17469:10;17459:20;;17499:28;17523:2;17519;17515:11;17499:28;:::i;:::-;17561:15;;;17631:11;;;17627:20;;;17592:12;;;;17659:19;;;17656:39;;;17691:1;17688;17681:12;17656:39;17715:11;;;;17735:210;17751:6;17746:3;17743:15;17735:210;;;17824:3;17818:10;17805:23;;17841:31;17866:5;17841:31;:::i;:::-;17885:18;;;17768:12;;;;17923;;;;17735:210;;;17964:5;16964:1011;-1:-1:-1;;;;;;;;16964:1011:1:o;19402:343::-;19604:2;19586:21;;;19643:2;19623:18;;;19616:30;-1:-1:-1;;;19677:2:1;19662:18;;19655:49;19736:2;19721:18;;19402:343::o;19750:339::-;19952:2;19934:21;;;19991:2;19971:18;;;19964:30;-1:-1:-1;;;20025:2:1;20010:18;;20003:45;20080:2;20065:18;;19750:339::o;20094:352::-;20296:2;20278:21;;;20335:2;20315:18;;;20308:30;20374;20369:2;20354:18;;20347:58;20437:2;20422:18;;20094:352::o;20451:168::-;20524:9;;;20555;;20572:15;;;20566:22;;20552:37;20542:71;;20593:18;;:::i;20624:341::-;20826:2;20808:21;;;20865:2;20845:18;;;20838:30;-1:-1:-1;;;20899:2:1;20884:18;;20877:47;20956:2;20941:18;;20624:341::o;20970:329::-;-1:-1:-1;;;;;21185:32:1;;21167:51;;21155:2;21140:18;;21227:66;21289:2;21274:18;;21266:6;21227:66;:::i;21304:313::-;-1:-1:-1;;;;;21496:32:1;;;;21478:51;;-1:-1:-1;;;;;21565:45:1;21560:2;21545:18;;21538:73;21466:2;21451:18;;21304:313::o;21622:127::-;21683:10;21678:3;21674:20;21671:1;21664:31;21714:4;21711:1;21704:15;21738:4;21735:1;21728:15;21880:518;21982:2;21977:3;21974:11;21971:421;;;22018:5;22015:1;22008:16;22062:4;22059:1;22049:18;22132:2;22120:10;22116:19;22113:1;22109:27;22103:4;22099:38;22168:4;22156:10;22153:20;22150:47;;;-1:-1:-1;22191:4:1;22150:47;22246:2;22241:3;22237:12;22234:1;22230:20;22224:4;22220:31;22210:41;;22301:81;22319:2;22312:5;22309:13;22301:81;;;22378:1;22364:16;;22345:1;22334:13;22301:81;;22574:1345;22700:3;22694:10;22727:18;22719:6;22716:30;22713:56;;;22749:18;;:::i;:::-;22778:97;22868:6;22828:38;22860:4;22854:11;22828:38;:::i;:::-;22822:4;22778:97;:::i;:::-;22930:4;;22987:2;22976:14;;23004:1;22999:663;;;;23706:1;23723:6;23720:89;;;-1:-1:-1;23775:19:1;;;23769:26;23720:89;-1:-1:-1;;22531:1:1;22527:11;;;22523:24;22519:29;22509:40;22555:1;22551:11;;;22506:57;23822:81;;22969:944;;22999:663;21827:1;21820:14;;;21864:4;21851:18;;-1:-1:-1;;23035:20:1;;;23153:236;23167:7;23164:1;23161:14;23153:236;;;23256:19;;;23250:26;23235:42;;23348:27;;;;23316:1;23304:14;;;;23183:19;;23153:236;;;23157:3;23417:6;23408:7;23405:19;23402:201;;;23478:19;;;23472:26;-1:-1:-1;;23561:1:1;23557:14;;;23573:3;23553:24;23549:37;23545:42;23530:58;23515:74;;23402:201;-1:-1:-1;;;;;23649:1:1;23633:14;;;23629:22;23616:36;;-1:-1:-1;22574:1345:1:o;24797:184::-;24867:6;24920:2;24908:9;24899:7;24895:23;24891:32;24888:52;;;24936:1;24933;24926:12;24888:52;-1:-1:-1;24959:16:1;;24797:184;-1:-1:-1;24797:184:1:o;25698:1188::-;25975:3;26004:1;26037:6;26031:13;26067:36;26093:9;26067:36;:::i;:::-;26122:1;26139:17;;;26165:133;;;;26312:1;26307:358;;;;26132:533;;26165:133;-1:-1:-1;;26198:24:1;;26186:37;;26271:14;;26264:22;26252:35;;26243:45;;;-1:-1:-1;26165:133:1;;26307:358;26338:6;26335:1;26328:17;26368:4;26413;26410:1;26400:18;26440:1;26454:165;26468:6;26465:1;26462:13;26454:165;;;26546:14;;26533:11;;;26526:35;26589:16;;;;26483:10;;26454:165;;;26458:3;;;26648:6;26643:3;26639:16;26632:23;;26132:533;;;;;26696:6;26690:13;26712:68;26771:8;26766:3;26759:4;26751:6;26747:17;26712:68;:::i;:::-;-1:-1:-1;;;26802:18:1;;26829:22;;;26878:1;26867:13;;25698:1188;-1:-1:-1;;;;25698:1188:1:o;27941:217::-;27981:1;28007;27997:132;;28051:10;28046:3;28042:20;28039:1;28032:31;28086:4;28083:1;28076:15;28114:4;28111:1;28104:15;27997:132;-1:-1:-1;28143:9:1;;27941:217::o;28163:128::-;28230:9;;;28251:11;;;28248:37;;;28265:18;;:::i;28296:489::-;-1:-1:-1;;;;;28565:15:1;;;28547:34;;28617:15;;28612:2;28597:18;;28590:43;28664:2;28649:18;;28642:34;;;28712:3;28707:2;28692:18;;28685:31;;;28490:4;;28733:46;;28759:19;;28751:6;28733:46;:::i;28790:249::-;28859:6;28912:2;28900:9;28891:7;28887:23;28883:32;28880:52;;;28928:1;28925;28918:12;28880:52;28960:9;28954:16;28979:30;29003:5;28979:30;:::i;29278:287::-;29407:3;29445:6;29439:13;29461:66;29520:6;29515:3;29508:4;29500:6;29496:17;29461:66;:::i;:::-;29543:16;;;;;29278:287;-1:-1:-1;;29278:287:1:o
Swarm Source
ipfs://e02991dadbe4643a9776db3cc7c674cd489fdf2f86c3ae8a60d136e2ed6bbe29
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.