Feature Tip: Add private address tag to any address under My Name Tag !
NFT
Overview
TokenID
1642
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 Name:
SPK
Compiler Version
v0.8.13+commit.abaa5c0e
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2022-11-12 */ // SPDX-License-Identifier: MIT // ____ ____ ____ ____ ____ _ ___ _____ _____ _____ ____ ____ __ _ ___ _____ // | \ | \ / || || \ | | / _]/ ___// ___/ / ___/| \| || |/ ] / _]/ ___/ // | o )| D )| o | | | | _ || | / [_( \_( \_ ( \_ | o )| | | ' / / [_( \_ // | || / | | | | | | || |___ | _]\__ |\__ | \__ || _/ | | | \ | _]\__ | // | O || \ | _ | | | | | || || [_ / \ |/ \ | / \ || | | | | || [_ / \ | // | || . \| | | | | | | || || |\ |\ | \ || | | | | . || |\ | // |_____||__|\_||__|__||____||__|__||_____||_____| \___| \___| \___||__| |____||__|\_||_____| \___| // NFT: Brainless Spikes // Twitter: https://twitter.com/BrainlesSpikes // Website: https://brainlesspikes.io/ // File: operator-filter-registry/src/IOperatorFilterRegistry.sol pragma solidity ^0.8.13; interface IOperatorFilterRegistry { function isOperatorAllowed(address registrant, address operator) external view returns (bool); function register(address registrant) external; function registerAndSubscribe(address registrant, address subscription) external; function registerAndCopyEntries(address registrant, address registrantToCopy) external; function updateOperator(address registrant, address operator, bool filtered) external; function updateOperators(address registrant, address[] calldata operators, bool filtered) external; function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external; function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external; function subscribe(address registrant, address registrantToSubscribe) external; function unsubscribe(address registrant, bool copyExistingEntries) external; function subscriptionOf(address addr) external returns (address registrant); function subscribers(address registrant) external returns (address[] memory); function subscriberAt(address registrant, uint256 index) external returns (address); function copyEntriesOf(address registrant, address registrantToCopy) external; function isOperatorFiltered(address registrant, address operator) external returns (bool); function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool); function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool); function filteredOperators(address addr) external returns (address[] memory); function filteredCodeHashes(address addr) external returns (bytes32[] memory); function filteredOperatorAt(address registrant, uint256 index) external returns (address); function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32); function isRegistered(address addr) external returns (bool); function codeHashOf(address addr) external returns (bytes32); } // File: operator-filter-registry/src/OperatorFilterer.sol pragma solidity ^0.8.13; abstract contract OperatorFilterer { error OperatorNotAllowed(address operator); IOperatorFilterRegistry constant operatorFilterRegistry = IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E); constructor(address subscriptionOrRegistrantToCopy, bool subscribe) { // If an inheriting token contract is deployed to a network without the registry deployed, the modifier // will not revert, but the contract will need to be registered with the registry once it is deployed in // order for the modifier to filter addresses. if (address(operatorFilterRegistry).code.length > 0) { if (subscribe) { operatorFilterRegistry.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy); } else { if (subscriptionOrRegistrantToCopy != address(0)) { operatorFilterRegistry.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy); } else { operatorFilterRegistry.register(address(this)); } } } } modifier onlyAllowedOperator(address from) virtual { // Check registry code length to facilitate testing in environments without a deployed registry. if (address(operatorFilterRegistry).code.length > 0) { // Allow spending tokens from addresses with balance // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred // from an EOA. if (from == msg.sender) { _; return; } if ( !( operatorFilterRegistry.isOperatorAllowed(address(this), msg.sender) && operatorFilterRegistry.isOperatorAllowed(address(this), from) ) ) { revert OperatorNotAllowed(msg.sender); } } _; } } // File: erc721a/contracts/IERC721A.sol // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables * (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, * checking first that contract recipients are aware of the ERC721 protocol * to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move * this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external payable; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Transfers `tokenId` from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} * whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external payable; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); } // File: erc721a/contracts/ERC721A.sol // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364). struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `curr` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) public payable virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId].value; } /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) public virtual override { _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) public payable virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public payable virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public payable virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. // The duplicated `log4` removes an extra check and reduces stack juggling. // The assembly, together with the surrounding Solidity code, have been // delicately arranged to nudge the compiler into producing optimized opcodes. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) // The `iszero(eq(,))` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. // The compiler will optimize the `iszero` away for performance. for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), but // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 word for the trailing zeros padding, 1 word for the length, // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0. let m := add(mload(0x40), 0xa0) // Update the free memory pointer to allocate. mstore(0x40, m) // Assign the `str` to the end. str := sub(m, 0x20) // Zeroize the slot after the string. mstore(str, 0) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } } // File: @openzeppelin/contracts/utils/math/Math.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } } // File: @openzeppelin/contracts/utils/Strings.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } } // File: @openzeppelin/contracts/utils/Context.sol // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } // File: @openzeppelin/contracts/access/Ownable.sol // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // File: @openzeppelin/contracts/utils/Address.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } // File: @openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); } // File: @openzeppelin/contracts/token/ERC20/IERC20.sol // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); } // File: @openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } // 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/security/ReentrancyGuard.sol // OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } } // File: @openzeppelin/contracts/utils/cryptography/MerkleProof.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @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 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} * * _Available since v4.7._ */ 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. * * _Available since v4.4._ */ 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} * * _Available since v4.7._ */ 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. * * _Available since v4.7._ */ 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. * * _Available since v4.7._ */ 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). * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild 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 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // 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 for 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) { 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. * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild 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 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // 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 for 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) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } 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: contracts/BrainlessSpikes.sol pragma solidity ^0.8.13; contract SPK is Ownable, ERC721A, PaymentSplitter, ReentrancyGuard, OperatorFilterer { using Strings for uint; string private baseURI; string public hiddenURI; uint256 public maxSupply = 2600; uint256 public maxMintPerTx = 3; uint256 public nftPerAddressLimit = 3; uint256 public wlprice = 0.069 ether; uint256 public pubprice = 0.0969 ether; bool public paused = true; bool public revealed = false; bool public onlyWhitelisted = true; bool public onlyPublic = false; address private royaltyReceiver; uint96 private royaltyFeesInBeeps = 700; bytes32 public merkleRoot; bytes4 private constant _INTERFACE_ID_ERC2981 = 0x2a55205a; mapping(address => uint256) public addressMintedBalance; uint private teamLength; constructor( address[] memory _team, uint[] memory _teamShares, bytes32 _merkleRoot, string memory _baseURI, string memory _hiddenURI ) ERC721A ("Brainless Spikes", "SPK") PaymentSplitter(_team, _teamShares) OperatorFilterer(address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6), false) { merkleRoot = _merkleRoot; baseURI = _baseURI; hiddenURI = _hiddenURI; teamLength = _team.length; } modifier callerIsUser() { require(tx.origin == msg.sender, "Cannot be called from another contract"); _; } // ****** Mint ****** // function mint(uint256 _mintAmount, bytes32[] calldata _proof) external payable nonReentrant callerIsUser{ require(!paused, "The contract is paused"); uint256 supply = totalSupply(); require(_mintAmount > 0, "You need to mint at least 1 NFT"); require(supply + _mintAmount <= maxSupply, "Max supply exceeded!"); require(_mintAmount <= maxMintPerTx, "Max mint amount per session exceeded"); uint256 ownerMintedCount = addressMintedBalance[msg.sender]; require(ownerMintedCount + _mintAmount <= nftPerAddressLimit, "Max NFT per address exceeded"); if(onlyWhitelisted == true) { uint256 price = wlprice; require(isWhiteListed(msg.sender, _proof), "You are not whitelisted"); require(msg.value >= price * _mintAmount, "You don't have enought funds"); for (uint256 i = 1; i <= _mintAmount; i++) { addressMintedBalance[msg.sender]++; } _mint(msg.sender, _mintAmount); } if(onlyPublic == true){ uint256 price = pubprice; require(msg.value >= price * _mintAmount, "You don't have enought funds"); for (uint256 i = 1; i <= _mintAmount; i++) { addressMintedBalance[msg.sender]++; } _mint(msg.sender, _mintAmount); } } // ****** Miscellaneous ****** // function setMaxSupply(uint256 _limit) public onlyOwner { maxSupply = _limit; } function setmaxMintPerTx(uint256 _limit) public onlyOwner { maxMintPerTx = _limit; } function setNftPerAddressLimit(uint256 _limit) public onlyOwner { nftPerAddressLimit = _limit; } function setWLPrice(uint256 _limit) public onlyOwner { wlprice = _limit; } function setPubPrice(uint256 _limit) public onlyOwner { pubprice = _limit; } function setOnlyWhitelisted(bool _state) public onlyOwner { onlyWhitelisted = _state; } function setOnlyPublic(bool _state) public onlyOwner { onlyPublic = _state; } function setRevealed(bool _state) external onlyOwner { revealed = _state; } function walletOfOwner(address address_) public virtual view returns (uint256[] memory) { uint256 _balance = balanceOf(address_); uint256[] memory _tokens = new uint256[] (_balance); uint256 _index; uint256 _loopThrough = totalSupply(); for (uint256 i = 0; i < _loopThrough; i++) { bool _exists = _exists(i); if (_exists) { if (ownerOf(i) == address_) { _tokens[_index] = i; _index++; } } else if (!_exists && _tokens[_balance - 1] == 0) { _loopThrough++; } } return _tokens; } function _startTokenId() internal view virtual override returns (uint256) { return 1; } function setPaused(bool _state) external onlyOwner { paused = _state; } function setBaseUri(string memory _baseURI) external onlyOwner { baseURI = _baseURI; } function setHiddenMetadataUri(string memory _hiddenURI) external onlyOwner { hiddenURI = _hiddenURI; } function tokenURI(uint256 _tokenId) public view virtual override returns (string memory) { require(_exists(_tokenId), "ERC721Metadata: URI query for nonexistent token"); if (revealed == false) { return hiddenURI; } string memory currentBaseURI = baseURI; return bytes(currentBaseURI).length > 0 ? string(abi.encodePacked(currentBaseURI, _tokenId.toString(), ".json")) : ''; } // ****** Whitelist ****** // function setMerkleRoot(bytes32 _merkleRoot) external onlyOwner { merkleRoot = _merkleRoot; } function isWhiteListed(address _account, bytes32[] calldata _proof) internal view returns(bool) { return _verify(leaf(_account), _proof); } function leaf(address _account) internal pure returns(bytes32) { return keccak256(abi.encodePacked(_account)); } function _verify(bytes32 _leaf, bytes32[] memory _proof) internal view returns(bool) { return MerkleProof.verify(_proof, merkleRoot, _leaf); } // ****** Giveaway ****** // function giveawayMint(uint256 _mintAmount, address _receiver) external onlyOwner{ uint256 supply = totalSupply(); require(_mintAmount > 0, "Giveaway need to be at least 1 NFT"); require(supply + _mintAmount <= maxSupply, "Max supply exceeded!"); _mint(_receiver, _mintAmount); } // ****** withdrawal ****** // function withdrawalAll() external onlyOwner nonReentrant { for(uint i = 0 ; i < teamLength ; i++) { release(payable(payee(i))); } } // ****** Implementing Royalty Interface (EIP2981) ****** // function supportsInterface(bytes4 interfaceId) public view virtual override (ERC721A) returns (bool) { if (interfaceId == _INTERFACE_ID_ERC2981) { return true; } return super.supportsInterface(interfaceId); } // ****** RoyaltyInfo ****** // function royaltyInfo(uint256 _tokenId, uint256 _salePrice) external view returns (address receiver, uint256 royaltyAmount) { require(_exists(_tokenId), "ERC2981Royality: Cannot query non-existent token"); return (royaltyReceiver, (_salePrice * royaltyFeesInBeeps) / 10000); } function calculatingRoyalties(uint256 _salePrice) view public returns (uint256) { return (_salePrice / 10000) * royaltyFeesInBeeps; } function setRoyalty(uint96 _royaltyFeesInBeeps) external onlyOwner { royaltyFeesInBeeps = _royaltyFeesInBeeps; } function setRoyaltyReceiver(address _receiver) external onlyOwner{ royaltyReceiver = _receiver; } // ****** Operator Filter Registry ****** // function transferFrom(address from, address to, uint256 tokenId) public payable override onlyAllowedOperator(from) { super.transferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId) public payable override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public payable override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId, data); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address[]","name":"_team","type":"address[]"},{"internalType":"uint256[]","name":"_teamShares","type":"uint256[]"},{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"},{"internalType":"string","name":"_baseURI","type":"string"},{"internalType":"string","name":"_hiddenURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"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"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressMintedBalance","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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"calculatingRoyalties","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":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"address","name":"_receiver","type":"address"}],"name":"giveawayMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"hiddenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintPerTx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nftPerAddressLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"onlyPublic","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"onlyWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"payee","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pubprice","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":[{"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":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"}],"name":"setBaseUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_hiddenURI","type":"string"}],"name":"setHiddenMetadataUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_limit","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_limit","type":"uint256"}],"name":"setNftPerAddressLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setOnlyPublic","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setOnlyWhitelisted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_limit","type":"uint256"}],"name":"setPubPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setRevealed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint96","name":"_royaltyFeesInBeeps","type":"uint96"}],"name":"setRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"}],"name":"setRoyaltyReceiver","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_limit","type":"uint256"}],"name":"setWLPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_limit","type":"uint256"}],"name":"setmaxMintPerTx","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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"address_","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawalAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"wlprice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6080604052610a286013556003601481905560155566f523226980800060165567015842095ebc40006017556018805463ffffffff191662010001179055601980546001600160601b0319166102bc1790553480156200005e57600080fd5b5060405162003f8038038062003f8083398101604081905262000081916200084b565b733cc6cdda760b79bafa08df41ecfa224f810dceb6600086866040518060400160405280601081526020016f427261696e6c657373205370696b657360801b8152506040518060400160405280600381526020016253504b60e81b815250620000f9620000f3620003ec60201b60201c565b620003f0565b81516200010e9060039060208501906200062e565b508051620001249060049060208401906200062e565b5060018055505080518251146200019d5760405162461bcd60e51b815260206004820152603260248201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726044820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b60648201526084015b60405180910390fd5b6000825111620001f05760405162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f20706179656573000000000000604482015260640162000194565b60005b82518110156200025c576200024783828151811062000216576200021662000982565b602002602001015183838151811062000233576200023362000982565b60200260200101516200044060201b60201c565b806200025381620009ae565b915050620001f3565b50506001601055506daaeb6d7670e522a718067333cd4e3b15620003a9578015620002f757604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b158015620002d857600080fd5b505af1158015620002ed573d6000803e3d6000fd5b50505050620003a9565b6001600160a01b03821615620003485760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af290390604401620002bd565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b1580156200038f57600080fd5b505af1158015620003a4573d6000803e3d6000fd5b505050505b5050601a8390558151620003c59060119060208501906200062e565b508051620003db9060129060208401906200062e565b50509251601c555062000a21915050565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b038216620004ad5760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b606482015260840162000194565b60008111620004ff5760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a20736861726573206172652030000000604482015260640162000194565b6001600160a01b0382166000908152600b6020526040902054156200057b5760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b606482015260840162000194565b600d8054600181019091557fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb50180546001600160a01b0319166001600160a01b0384169081179091556000908152600b60205260409020819055600954620005e5908290620009ca565b600955604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b8280546200063c90620009e5565b90600052602060002090601f016020900481019282620006605760008555620006ab565b82601f106200067b57805160ff1916838001178555620006ab565b82800160010185558215620006ab579182015b82811115620006ab5782518255916020019190600101906200068e565b50620006b9929150620006bd565b5090565b5b80821115620006b95760008155600101620006be565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715620007155762000715620006d4565b604052919050565b60006001600160401b03821115620007395762000739620006d4565b5060051b60200190565b600082601f8301126200075557600080fd5b815160206200076e62000768836200071d565b620006ea565b82815260059290921b840181019181810190868411156200078e57600080fd5b8286015b84811015620007ab578051835291830191830162000792565b509695505050505050565b600082601f830112620007c857600080fd5b81516001600160401b03811115620007e457620007e4620006d4565b6020620007fa601f8301601f19168201620006ea565b82815285828487010111156200080f57600080fd5b60005b838110156200082f57858101830151828201840152820162000812565b83811115620008415760008385840101525b5095945050505050565b600080600080600060a086880312156200086457600080fd5b85516001600160401b03808211156200087c57600080fd5b818801915088601f8301126200089157600080fd5b81516020620008a462000768836200071d565b82815260059290921b8401810191818101908c841115620008c457600080fd5b948201945b83861015620008fb5785516001600160a01b0381168114620008eb5760008081fd5b82529482019490820190620008c9565b918b01519199509093505050808211156200091557600080fd5b6200092389838a0162000743565b95506040880151945060608801519150808211156200094157600080fd5b6200094f89838a01620007b6565b935060808801519150808211156200096657600080fd5b506200097588828901620007b6565b9150509295509295909350565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201620009c357620009c362000998565b5060010190565b60008219821115620009e057620009e062000998565b500190565b600181811c90821680620009fa57607f821691505b60208210810362000a1b57634e487b7160e01b600052602260045260246000fd5b50919050565b61354f8062000a316000396000f3fe60806040526004361061039b5760003560e01c80638b83209b116101dc578063cac9266911610102578063de7fcb1d116100a0578063f284433d1161006f578063f284433d14610b3e578063f2fde38b14610b54578063f44b79b314610b74578063f6a5b8e614610b8957600080fd5b8063de7fcb1d14610aaa578063e0a8085314610ac0578063e33b7de314610ae0578063e985e9c514610af557600080fd5b8063d5abeb01116100dc578063d5abeb0114610a28578063d79779b214610a3e578063dc544ca714610a74578063dcd5994e14610a8a57600080fd5b8063cac92669146109b2578063ce7c2ac2146109d2578063d0eb26b014610a0857600080fd5b8063a0bcfc7f1161017a578063ba41b0c611610149578063ba41b0c614610949578063ba7d2c761461095c578063c45ac05014610972578063c87b56dd1461099257600080fd5b8063a0bcfc7f146108d6578063a22cb465146108f6578063a3f8eace14610916578063b88d4fde1461093657600080fd5b80638dc251e3116101b65780638dc251e31461084b57806395d89b411461086b5780639852595c146108805780639c70b512146108b657600080fd5b80638b83209b146107f85780638cc54e7f146108185780638da5cb5b1461082d57600080fd5b8063438b6300116102c15780636352211e1161025f57806370a082311161022e57806370a0823114610783578063715018a6146107a357806379f34a10146107b85780637cb64759146107d857600080fd5b80636352211e146107035780636be560dc146107235780636d40d840146107435780636f8b44b01461076357600080fd5b80634fdd43cb1161029b5780634fdd43cb1461068957806351830227146106a95780635614b9f1146106c85780635c975abb146106e957600080fd5b8063438b63001461061c57806348b75044146106495780634c8ed2301461066957600080fd5b806319165587116103395780633a98ef39116103085780633a98ef391461058e5780633c952764146105a3578063406072a9146105c357806342842e0e1461060957600080fd5b8063191655871461050657806323b872dd146105265780632a55205a146105395780632eb4a7ab1461057857600080fd5b8063095ea7b311610375578063095ea7b31461047857806316c38b3c1461048d57806318160ddd146104ad57806318cae269146104d957600080fd5b806301ffc9a7146103e957806306fdde031461041e578063081812fc1461044057600080fd5b366103e4577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b3480156103f557600080fd5b50610409610404366004612e54565b610ba9565b60405190151581526020015b60405180910390f35b34801561042a57600080fd5b50610433610bda565b6040516104159190612ec9565b34801561044c57600080fd5b5061046061045b366004612edc565b610c6c565b6040516001600160a01b039091168152602001610415565b61048b610486366004612f0a565b610cb0565b005b34801561049957600080fd5b5061048b6104a8366004612f44565b610d50565b3480156104b957600080fd5b506104cb600254600154036000190190565b604051908152602001610415565b3480156104e557600080fd5b506104cb6104f4366004612f61565b601b6020526000908152604090205481565b34801561051257600080fd5b5061048b610521366004612f61565b610d6b565b61048b610534366004612f7e565b610e5b565b34801561054557600080fd5b50610559610554366004612fbf565b610fb7565b604080516001600160a01b039093168352602083019190915201610415565b34801561058457600080fd5b506104cb601a5481565b34801561059a57600080fd5b506009546104cb565b3480156105af57600080fd5b5061048b6105be366004612f44565b61106d565b3480156105cf57600080fd5b506104cb6105de366004612fe1565b6001600160a01b039182166000908152600f6020908152604080832093909416825291909152205490565b61048b610617366004612f7e565b611091565b34801561062857600080fd5b5061063c610637366004612f61565b6111e2565b604051610415919061301a565b34801561065557600080fd5b5061048b610664366004612fe1565b611320565b34801561067557600080fd5b5061048b61068436600461305e565b611431565b34801561069557600080fd5b5061048b6106a436600461310f565b61150a565b3480156106b557600080fd5b5060185461040990610100900460ff1681565b3480156106d457600080fd5b50601854610409906301000000900460ff1681565b3480156106f557600080fd5b506018546104099060ff1681565b34801561070f57600080fd5b5061046061071e366004612edc565b611529565b34801561072f57600080fd5b506104cb61073e366004612edc565b611534565b34801561074f57600080fd5b5061048b61075e366004612f44565b611559565b34801561076f57600080fd5b5061048b61077e366004612edc565b61157f565b34801561078f57600080fd5b506104cb61079e366004612f61565b61158c565b3480156107af57600080fd5b5061048b6115db565b3480156107c457600080fd5b5061048b6107d3366004612edc565b6115ef565b3480156107e457600080fd5b5061048b6107f3366004612edc565b6115fc565b34801561080457600080fd5b50610460610813366004612edc565b611609565b34801561082457600080fd5b50610433611639565b34801561083957600080fd5b506000546001600160a01b0316610460565b34801561085757600080fd5b5061048b610866366004612f61565b6116c7565b34801561087757600080fd5b506104336116fd565b34801561088c57600080fd5b506104cb61089b366004612f61565b6001600160a01b03166000908152600c602052604090205490565b3480156108c257600080fd5b506018546104099062010000900460ff1681565b3480156108e257600080fd5b5061048b6108f136600461310f565b61170c565b34801561090257600080fd5b5061048b610911366004613158565b611727565b34801561092257600080fd5b506104cb610931366004612f61565b611793565b61048b610944366004613186565b6117db565b61048b610957366004613206565b61193a565b34801561096857600080fd5b506104cb60155481565b34801561097e57600080fd5b506104cb61098d366004612fe1565b611d46565b34801561099e57600080fd5b506104336109ad366004612edc565b611e11565b3480156109be57600080fd5b5061048b6109cd366004613285565b612004565b3480156109de57600080fd5b506104cb6109ed366004612f61565b6001600160a01b03166000908152600b602052604090205490565b348015610a1457600080fd5b5061048b610a23366004612edc565b612033565b348015610a3457600080fd5b506104cb60135481565b348015610a4a57600080fd5b506104cb610a59366004612f61565b6001600160a01b03166000908152600e602052604090205490565b348015610a8057600080fd5b506104cb60165481565b348015610a9657600080fd5b5061048b610aa5366004612edc565b612040565b348015610ab657600080fd5b506104cb60145481565b348015610acc57600080fd5b5061048b610adb366004612f44565b61204d565b348015610aec57600080fd5b50600a546104cb565b348015610b0157600080fd5b50610409610b10366004612fe1565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b348015610b4a57600080fd5b506104cb60175481565b348015610b6057600080fd5b5061048b610b6f366004612f61565b61206f565b348015610b8057600080fd5b5061048b6120e8565b348015610b9557600080fd5b5061048b610ba4366004612edc565b61212e565b6000636ad56fd360e11b6001600160e01b0319831601610bcb57506001919050565b610bd48261213b565b92915050565b606060038054610be9906132ae565b80601f0160208091040260200160405190810160405280929190818152602001828054610c15906132ae565b8015610c625780601f10610c3757610100808354040283529160200191610c62565b820191906000526020600020905b815481529060010190602001808311610c4557829003601f168201915b5050505050905090565b6000610c7782612189565b610c94576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b6000610cbb82611529565b9050336001600160a01b03821614610cf457610cd78133610b10565b610cf4576040516367d9dca160e11b815260040160405180910390fd5b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b610d586121be565b6018805460ff1916911515919091179055565b6001600160a01b0381166000908152600b6020526040902054610da95760405162461bcd60e51b8152600401610da0906132e8565b60405180910390fd5b6000610db482611793565b905080600003610dd65760405162461bcd60e51b8152600401610da09061332e565b80600a6000828254610de8919061338f565b90915550506001600160a01b0382166000908152600c60205260409020805482019055610e158282612218565b604080516001600160a01b0384168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a15050565b826daaeb6d7670e522a718067333cd4e3b15610fa657336001600160a01b03821603610e9157610e8c848484612331565b610fb1565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610ee0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f0491906133a7565b8015610f875750604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610f63573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f8791906133a7565b610fa657604051633b79c77360e21b8152336004820152602401610da0565b610fb1848484612331565b50505050565b600080610fc384612189565b6110285760405162461bcd60e51b815260206004820152603060248201527f45524332393831526f79616c6974793a2043616e6e6f74207175657279206e6f60448201526f3716b2bc34b9ba32b73a103a37b5b2b760811b6064820152608401610da0565b6018546019546401000000009091046001600160a01b03169061271090611058906001600160601b0316866133c4565b61106291906133e3565b915091509250929050565b6110756121be565b60188054911515620100000262ff000019909216919091179055565b826daaeb6d7670e522a718067333cd4e3b156111d757336001600160a01b038216036110c257610e8c8484846124c9565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611111573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061113591906133a7565b80156111b85750604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611194573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111b891906133a7565b6111d757604051633b79c77360e21b8152336004820152602401610da0565b610fb18484846124c9565b606060006111ef8361158c565b905060008167ffffffffffffffff81111561120c5761120c613083565b604051908082528060200260200182016040528015611235578160200160208202803683370190505b50905060008061124c600254600154036000190190565b905060005b8181101561131557600061126482612189565b905080156112be57876001600160a01b031661127f83611529565b6001600160a01b0316036112b957818585815181106112a0576112a0613405565b6020908102919091010152836112b58161341b565b9450505b611302565b801580156112ef5750846112d3600188613434565b815181106112e3576112e3613405565b60200260200101516000145b1561130257826112fe8161341b565b9350505b508061130d8161341b565b915050611251565b509195945050505050565b6001600160a01b0381166000908152600b60205260409020546113555760405162461bcd60e51b8152600401610da0906132e8565b60006113618383611d46565b9050806000036113835760405162461bcd60e51b8152600401610da09061332e565b6001600160a01b0383166000908152600e6020526040812080548392906113ab90849061338f565b90915550506001600160a01b038084166000908152600f602090815260408083209386168352929052208054820190556113e68383836124e4565b604080516001600160a01b038481168252602082018490528516917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a2505050565b6114396121be565b600061144c600254600154036000190190565b9050600083116114a95760405162461bcd60e51b815260206004820152602260248201527f4769766561776179206e65656420746f206265206174206c656173742031204e604482015261119560f21b6064820152608401610da0565b6013546114b6848361338f565b11156114fb5760405162461bcd60e51b81526020600482015260146024820152734d617820737570706c792065786365656465642160601b6044820152606401610da0565b6115058284612536565b505050565b6115126121be565b8051611525906012906020840190612da5565b5050565b6000610bd482612634565b6019546000906001600160601b031661154f612710846133e3565b610bd491906133c4565b6115616121be565b6018805491151563010000000263ff00000019909216919091179055565b6115876121be565b601355565b60006001600160a01b0382166115b5576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526006602052604090205467ffffffffffffffff1690565b6115e36121be565b6115ed60006126a3565b565b6115f76121be565b601455565b6116046121be565b601a55565b6000600d828154811061161e5761161e613405565b6000918252602090912001546001600160a01b031692915050565b60128054611646906132ae565b80601f0160208091040260200160405190810160405280929190818152602001828054611672906132ae565b80156116bf5780601f10611694576101008083540402835291602001916116bf565b820191906000526020600020905b8154815290600101906020018083116116a257829003601f168201915b505050505081565b6116cf6121be565b601880546001600160a01b0390921664010000000002640100000000600160c01b0319909216919091179055565b606060048054610be9906132ae565b6117146121be565b8051611525906011906020840190612da5565b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60008061179f600a5490565b6117a9904761338f565b90506117d483826117cf866001600160a01b03166000908152600c602052604090205490565b6126f3565b9392505050565b836daaeb6d7670e522a718067333cd4e3b1561192757336001600160a01b038216036118125761180d85858585612731565b611933565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611861573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061188591906133a7565b80156119085750604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa1580156118e4573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061190891906133a7565b61192757604051633b79c77360e21b8152336004820152602401610da0565b61193385858585612731565b5050505050565b611942612775565b3233146119a05760405162461bcd60e51b815260206004820152602660248201527f43616e6e6f742062652063616c6c65642066726f6d20616e6f7468657220636f6044820152651b9d1c9858dd60d21b6064820152608401610da0565b60185460ff16156119ec5760405162461bcd60e51b8152602060048201526016602482015275151a194818dbdb9d1c9858dd081a5cc81c185d5cd95960521b6044820152606401610da0565b60006119ff600254600154036000190190565b905060008411611a515760405162461bcd60e51b815260206004820152601f60248201527f596f75206e65656420746f206d696e74206174206c656173742031204e4654006044820152606401610da0565b601354611a5e858361338f565b1115611aa35760405162461bcd60e51b81526020600482015260146024820152734d617820737570706c792065786365656465642160601b6044820152606401610da0565b601454841115611b015760405162461bcd60e51b8152602060048201526024808201527f4d6178206d696e7420616d6f756e74207065722073657373696f6e20657863656044820152631959195960e21b6064820152608401610da0565b336000908152601b6020526040902054601554611b1e868361338f565b1115611b6c5760405162461bcd60e51b815260206004820152601c60248201527f4d6178204e4654207065722061646472657373206578636565646564000000006044820152606401610da0565b60185462010000900460ff161515600103611c7e57601654611b8f3386866127ce565b611bdb5760405162461bcd60e51b815260206004820152601760248201527f596f7520617265206e6f742077686974656c69737465640000000000000000006044820152606401610da0565b611be586826133c4565b341015611c345760405162461bcd60e51b815260206004820152601c60248201527f596f7520646f6e2774206861766520656e6f756768742066756e6473000000006044820152606401610da0565b60015b868111611c7157336000908152601b60205260408120805491611c598361341b565b91905055508080611c699061341b565b915050611c37565b50611c7c3387612536565b505b6018546301000000900460ff161515600103611d3a57601754611ca186826133c4565b341015611cf05760405162461bcd60e51b815260206004820152601c60248201527f596f7520646f6e2774206861766520656e6f756768742066756e6473000000006044820152606401610da0565b60015b868111611d2d57336000908152601b60205260408120805491611d158361341b565b91905055508080611d259061341b565b915050611cf3565b50611d383387612536565b505b50506115056001601055565b6001600160a01b0382166000908152600e602052604081205481906040516370a0823160e01b81523060048201526001600160a01b038616906370a0823190602401602060405180830381865afa158015611da5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611dc9919061344b565b611dd3919061338f565b6001600160a01b038086166000908152600f6020908152604080832093881683529290522054909150611e0990849083906126f3565b949350505050565b6060611e1c82612189565b611e805760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610da0565b601854610100900460ff161515600003611f265760128054611ea1906132ae565b80601f0160208091040260200160405190810160405280929190818152602001828054611ecd906132ae565b8015611f1a5780601f10611eef57610100808354040283529160200191611f1a565b820191906000526020600020905b815481529060010190602001808311611efd57829003601f168201915b50505050509050919050565b600060118054611f35906132ae565b80601f0160208091040260200160405190810160405280929190818152602001828054611f61906132ae565b8015611fae5780601f10611f8357610100808354040283529160200191611fae565b820191906000526020600020905b815481529060010190602001808311611f9157829003601f168201915b505050505090506000815111611fd357604051806020016040528060008152506117d4565b80611fdd8461284f565b604051602001611fee929190613464565b6040516020818303038152906040529392505050565b61200c6121be565b601980546bffffffffffffffffffffffff19166001600160601b0392909216919091179055565b61203b6121be565b601555565b6120486121be565b601755565b6120556121be565b601880549115156101000261ff0019909216919091179055565b6120776121be565b6001600160a01b0381166120dc5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610da0565b6120e5816126a3565b50565b6120f06121be565b6120f8612775565b60005b601c548110156121235761211161052182611609565b8061211b8161341b565b9150506120fb565b506115ed6001601055565b6121366121be565b601655565b60006301ffc9a760e01b6001600160e01b03198316148061216c57506380ac58cd60e01b6001600160e01b03198316145b80610bd45750506001600160e01b031916635b5e139f60e01b1490565b60008160011115801561219d575060015482105b8015610bd4575050600090815260056020526040902054600160e01b161590565b6000546001600160a01b031633146115ed5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610da0565b804710156122685760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610da0565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146122b5576040519150601f19603f3d011682016040523d82523d6000602084013e6122ba565b606091505b50509050806115055760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610da0565b600061233c82612634565b9050836001600160a01b0316816001600160a01b03161461236f5760405162a1148160e81b815260040160405180910390fd5b60008281526007602052604090208054338082146001600160a01b038816909114176123bc5761239f8633610b10565b6123bc57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0385166123e357604051633a954ecd60e21b815260040160405180910390fd5b80156123ee57600082555b6001600160a01b038681166000908152600660205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260056020526040812091909155600160e11b841690036124805760018401600081815260056020526040812054900361247e57600154811461247e5760008181526005602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b611505838383604051806020016040528060008152506117db565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526115059084906128e2565b600154600082900361255b5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526006602090815260408083208054680100000000000000018802019055848352600590915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461260a57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001016125d2565b508160000361262b57604051622e076360e81b815260040160405180910390fd5b60015550505050565b6000818060011161268a5760015481101561268a5760008181526005602052604081205490600160e01b82169003612688575b806000036117d4575060001901600081815260056020526040902054612667565b505b604051636f96cda160e11b815260040160405180910390fd5b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6009546001600160a01b0384166000908152600b60205260408120549091839161271d90866133c4565b61272791906133e3565b611e099190613434565b61273c848484610e5b565b6001600160a01b0383163b15610fb157612758848484846129b4565b610fb1576040516368d2bf6b60e11b815260040160405180910390fd5b6002601054036127c75760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610da0565b6002601055565b6000611e09612816856040516bffffffffffffffffffffffff19606083901b166020820152600090603401604051602081830303815290604052805190602001209050919050565b848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250612a9f92505050565b6060600061285c83612aae565b600101905060008167ffffffffffffffff81111561287c5761287c613083565b6040519080825280601f01601f1916602001820160405280156128a6576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846128b057509392505050565b6000612937826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612b869092919063ffffffff16565b805190915015611505578080602001905181019061295591906133a7565b6115055760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610da0565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906129e99033908990889088906004016134a3565b6020604051808303816000875af1925050508015612a24575060408051601f3d908101601f19168201909252612a21918101906134e0565b60015b612a82573d808015612a52576040519150601f19603f3d011682016040523d82523d6000602084013e612a57565b606091505b508051600003612a7a576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b60006117d482601a5485612b95565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310612aed5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310612b19576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310612b3757662386f26fc10000830492506010015b6305f5e1008310612b4f576305f5e100830492506008015b6127108310612b6357612710830492506004015b60648310612b75576064830492506002015b600a8310610bd45760010192915050565b6060611e098484600085612bab565b600082612ba28584612c86565b14949350505050565b606082471015612c0c5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610da0565b600080866001600160a01b03168587604051612c2891906134fd565b60006040518083038185875af1925050503d8060008114612c65576040519150601f19603f3d011682016040523d82523d6000602084013e612c6a565b606091505b5091509150612c7b87838387612cd3565b979650505050505050565b600081815b8451811015612ccb57612cb782868381518110612caa57612caa613405565b6020026020010151612d4c565b915080612cc38161341b565b915050612c8b565b509392505050565b60608315612d42578251600003612d3b576001600160a01b0385163b612d3b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610da0565b5081611e09565b611e098383612d7b565b6000818310612d685760008281526020849052604090206117d4565b60008381526020839052604090206117d4565b815115612d8b5781518083602001fd5b8060405162461bcd60e51b8152600401610da09190612ec9565b828054612db1906132ae565b90600052602060002090601f016020900481019282612dd35760008555612e19565b82601f10612dec57805160ff1916838001178555612e19565b82800160010185558215612e19579182015b82811115612e19578251825591602001919060010190612dfe565b50612e25929150612e29565b5090565b5b80821115612e255760008155600101612e2a565b6001600160e01b0319811681146120e557600080fd5b600060208284031215612e6657600080fd5b81356117d481612e3e565b60005b83811015612e8c578181015183820152602001612e74565b83811115610fb15750506000910152565b60008151808452612eb5816020860160208601612e71565b601f01601f19169290920160200192915050565b6020815260006117d46020830184612e9d565b600060208284031215612eee57600080fd5b5035919050565b6001600160a01b03811681146120e557600080fd5b60008060408385031215612f1d57600080fd5b8235612f2881612ef5565b946020939093013593505050565b80151581146120e557600080fd5b600060208284031215612f5657600080fd5b81356117d481612f36565b600060208284031215612f7357600080fd5b81356117d481612ef5565b600080600060608486031215612f9357600080fd5b8335612f9e81612ef5565b92506020840135612fae81612ef5565b929592945050506040919091013590565b60008060408385031215612fd257600080fd5b50508035926020909101359150565b60008060408385031215612ff457600080fd5b8235612fff81612ef5565b9150602083013561300f81612ef5565b809150509250929050565b6020808252825182820181905260009190848201906040850190845b8181101561305257835183529284019291840191600101613036565b50909695505050505050565b6000806040838503121561307157600080fd5b82359150602083013561300f81612ef5565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156130b4576130b4613083565b604051601f8501601f19908116603f011681019082821181831017156130dc576130dc613083565b816040528093508581528686860111156130f557600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561312157600080fd5b813567ffffffffffffffff81111561313857600080fd5b8201601f8101841361314957600080fd5b611e0984823560208401613099565b6000806040838503121561316b57600080fd5b823561317681612ef5565b9150602083013561300f81612f36565b6000806000806080858703121561319c57600080fd5b84356131a781612ef5565b935060208501356131b781612ef5565b925060408501359150606085013567ffffffffffffffff8111156131da57600080fd5b8501601f810187136131eb57600080fd5b6131fa87823560208401613099565b91505092959194509250565b60008060006040848603121561321b57600080fd5b83359250602084013567ffffffffffffffff8082111561323a57600080fd5b818601915086601f83011261324e57600080fd5b81358181111561325d57600080fd5b8760208260051b850101111561327257600080fd5b6020830194508093505050509250925092565b60006020828403121561329757600080fd5b81356001600160601b03811681146117d457600080fd5b600181811c908216806132c257607f821691505b6020821081036132e257634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201526573686172657360d01b606082015260800190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201526a191d59481c185e5b595b9d60aa1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b600082198211156133a2576133a2613379565b500190565b6000602082840312156133b957600080fd5b81516117d481612f36565b60008160001904831182151516156133de576133de613379565b500290565b60008261340057634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b60006001820161342d5761342d613379565b5060010190565b60008282101561344657613446613379565b500390565b60006020828403121561345d57600080fd5b5051919050565b60008351613476818460208801612e71565b83519083019061348a818360208801612e71565b64173539b7b760d91b9101908152600501949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906134d690830184612e9d565b9695505050505050565b6000602082840312156134f257600080fd5b81516117d481612e3e565b6000825161350f818460208701612e71565b919091019291505056fea2646970667358221220d878aa338fac16ffb161d9cdf7b108e50dcc4cafcd8c62a9058987226bfb00e964736f6c634300080d003300000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000100a340f217c5b1a8d621fb48ae16f3f220b9a7d94fac4ab0457940f2e4a4d8e30d000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000000000000000000000000000000000000000002000000000000000000000000a713a4ce6cd2fb94d8136befcaa803f057d7f2dd00000000000000000000000096ff8e533dfd3958502a965fddee235265044f0d0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000005c00000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000041697066733a2f2f516d554137507337426f547773386e443969776668327a4e4d395335336279756e647161553237473959617532792f68696464656e2e6a736f6e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000041697066733a2f2f516d554137507337426f547773386e443969776668327a4e4d395335336279756e647161553237473959617532792f68696464656e2e6a736f6e00000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x60806040526004361061039b5760003560e01c80638b83209b116101dc578063cac9266911610102578063de7fcb1d116100a0578063f284433d1161006f578063f284433d14610b3e578063f2fde38b14610b54578063f44b79b314610b74578063f6a5b8e614610b8957600080fd5b8063de7fcb1d14610aaa578063e0a8085314610ac0578063e33b7de314610ae0578063e985e9c514610af557600080fd5b8063d5abeb01116100dc578063d5abeb0114610a28578063d79779b214610a3e578063dc544ca714610a74578063dcd5994e14610a8a57600080fd5b8063cac92669146109b2578063ce7c2ac2146109d2578063d0eb26b014610a0857600080fd5b8063a0bcfc7f1161017a578063ba41b0c611610149578063ba41b0c614610949578063ba7d2c761461095c578063c45ac05014610972578063c87b56dd1461099257600080fd5b8063a0bcfc7f146108d6578063a22cb465146108f6578063a3f8eace14610916578063b88d4fde1461093657600080fd5b80638dc251e3116101b65780638dc251e31461084b57806395d89b411461086b5780639852595c146108805780639c70b512146108b657600080fd5b80638b83209b146107f85780638cc54e7f146108185780638da5cb5b1461082d57600080fd5b8063438b6300116102c15780636352211e1161025f57806370a082311161022e57806370a0823114610783578063715018a6146107a357806379f34a10146107b85780637cb64759146107d857600080fd5b80636352211e146107035780636be560dc146107235780636d40d840146107435780636f8b44b01461076357600080fd5b80634fdd43cb1161029b5780634fdd43cb1461068957806351830227146106a95780635614b9f1146106c85780635c975abb146106e957600080fd5b8063438b63001461061c57806348b75044146106495780634c8ed2301461066957600080fd5b806319165587116103395780633a98ef39116103085780633a98ef391461058e5780633c952764146105a3578063406072a9146105c357806342842e0e1461060957600080fd5b8063191655871461050657806323b872dd146105265780632a55205a146105395780632eb4a7ab1461057857600080fd5b8063095ea7b311610375578063095ea7b31461047857806316c38b3c1461048d57806318160ddd146104ad57806318cae269146104d957600080fd5b806301ffc9a7146103e957806306fdde031461041e578063081812fc1461044057600080fd5b366103e4577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b3480156103f557600080fd5b50610409610404366004612e54565b610ba9565b60405190151581526020015b60405180910390f35b34801561042a57600080fd5b50610433610bda565b6040516104159190612ec9565b34801561044c57600080fd5b5061046061045b366004612edc565b610c6c565b6040516001600160a01b039091168152602001610415565b61048b610486366004612f0a565b610cb0565b005b34801561049957600080fd5b5061048b6104a8366004612f44565b610d50565b3480156104b957600080fd5b506104cb600254600154036000190190565b604051908152602001610415565b3480156104e557600080fd5b506104cb6104f4366004612f61565b601b6020526000908152604090205481565b34801561051257600080fd5b5061048b610521366004612f61565b610d6b565b61048b610534366004612f7e565b610e5b565b34801561054557600080fd5b50610559610554366004612fbf565b610fb7565b604080516001600160a01b039093168352602083019190915201610415565b34801561058457600080fd5b506104cb601a5481565b34801561059a57600080fd5b506009546104cb565b3480156105af57600080fd5b5061048b6105be366004612f44565b61106d565b3480156105cf57600080fd5b506104cb6105de366004612fe1565b6001600160a01b039182166000908152600f6020908152604080832093909416825291909152205490565b61048b610617366004612f7e565b611091565b34801561062857600080fd5b5061063c610637366004612f61565b6111e2565b604051610415919061301a565b34801561065557600080fd5b5061048b610664366004612fe1565b611320565b34801561067557600080fd5b5061048b61068436600461305e565b611431565b34801561069557600080fd5b5061048b6106a436600461310f565b61150a565b3480156106b557600080fd5b5060185461040990610100900460ff1681565b3480156106d457600080fd5b50601854610409906301000000900460ff1681565b3480156106f557600080fd5b506018546104099060ff1681565b34801561070f57600080fd5b5061046061071e366004612edc565b611529565b34801561072f57600080fd5b506104cb61073e366004612edc565b611534565b34801561074f57600080fd5b5061048b61075e366004612f44565b611559565b34801561076f57600080fd5b5061048b61077e366004612edc565b61157f565b34801561078f57600080fd5b506104cb61079e366004612f61565b61158c565b3480156107af57600080fd5b5061048b6115db565b3480156107c457600080fd5b5061048b6107d3366004612edc565b6115ef565b3480156107e457600080fd5b5061048b6107f3366004612edc565b6115fc565b34801561080457600080fd5b50610460610813366004612edc565b611609565b34801561082457600080fd5b50610433611639565b34801561083957600080fd5b506000546001600160a01b0316610460565b34801561085757600080fd5b5061048b610866366004612f61565b6116c7565b34801561087757600080fd5b506104336116fd565b34801561088c57600080fd5b506104cb61089b366004612f61565b6001600160a01b03166000908152600c602052604090205490565b3480156108c257600080fd5b506018546104099062010000900460ff1681565b3480156108e257600080fd5b5061048b6108f136600461310f565b61170c565b34801561090257600080fd5b5061048b610911366004613158565b611727565b34801561092257600080fd5b506104cb610931366004612f61565b611793565b61048b610944366004613186565b6117db565b61048b610957366004613206565b61193a565b34801561096857600080fd5b506104cb60155481565b34801561097e57600080fd5b506104cb61098d366004612fe1565b611d46565b34801561099e57600080fd5b506104336109ad366004612edc565b611e11565b3480156109be57600080fd5b5061048b6109cd366004613285565b612004565b3480156109de57600080fd5b506104cb6109ed366004612f61565b6001600160a01b03166000908152600b602052604090205490565b348015610a1457600080fd5b5061048b610a23366004612edc565b612033565b348015610a3457600080fd5b506104cb60135481565b348015610a4a57600080fd5b506104cb610a59366004612f61565b6001600160a01b03166000908152600e602052604090205490565b348015610a8057600080fd5b506104cb60165481565b348015610a9657600080fd5b5061048b610aa5366004612edc565b612040565b348015610ab657600080fd5b506104cb60145481565b348015610acc57600080fd5b5061048b610adb366004612f44565b61204d565b348015610aec57600080fd5b50600a546104cb565b348015610b0157600080fd5b50610409610b10366004612fe1565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b348015610b4a57600080fd5b506104cb60175481565b348015610b6057600080fd5b5061048b610b6f366004612f61565b61206f565b348015610b8057600080fd5b5061048b6120e8565b348015610b9557600080fd5b5061048b610ba4366004612edc565b61212e565b6000636ad56fd360e11b6001600160e01b0319831601610bcb57506001919050565b610bd48261213b565b92915050565b606060038054610be9906132ae565b80601f0160208091040260200160405190810160405280929190818152602001828054610c15906132ae565b8015610c625780601f10610c3757610100808354040283529160200191610c62565b820191906000526020600020905b815481529060010190602001808311610c4557829003601f168201915b5050505050905090565b6000610c7782612189565b610c94576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b6000610cbb82611529565b9050336001600160a01b03821614610cf457610cd78133610b10565b610cf4576040516367d9dca160e11b815260040160405180910390fd5b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b610d586121be565b6018805460ff1916911515919091179055565b6001600160a01b0381166000908152600b6020526040902054610da95760405162461bcd60e51b8152600401610da0906132e8565b60405180910390fd5b6000610db482611793565b905080600003610dd65760405162461bcd60e51b8152600401610da09061332e565b80600a6000828254610de8919061338f565b90915550506001600160a01b0382166000908152600c60205260409020805482019055610e158282612218565b604080516001600160a01b0384168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a15050565b826daaeb6d7670e522a718067333cd4e3b15610fa657336001600160a01b03821603610e9157610e8c848484612331565b610fb1565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610ee0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f0491906133a7565b8015610f875750604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610f63573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f8791906133a7565b610fa657604051633b79c77360e21b8152336004820152602401610da0565b610fb1848484612331565b50505050565b600080610fc384612189565b6110285760405162461bcd60e51b815260206004820152603060248201527f45524332393831526f79616c6974793a2043616e6e6f74207175657279206e6f60448201526f3716b2bc34b9ba32b73a103a37b5b2b760811b6064820152608401610da0565b6018546019546401000000009091046001600160a01b03169061271090611058906001600160601b0316866133c4565b61106291906133e3565b915091509250929050565b6110756121be565b60188054911515620100000262ff000019909216919091179055565b826daaeb6d7670e522a718067333cd4e3b156111d757336001600160a01b038216036110c257610e8c8484846124c9565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611111573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061113591906133a7565b80156111b85750604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611194573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111b891906133a7565b6111d757604051633b79c77360e21b8152336004820152602401610da0565b610fb18484846124c9565b606060006111ef8361158c565b905060008167ffffffffffffffff81111561120c5761120c613083565b604051908082528060200260200182016040528015611235578160200160208202803683370190505b50905060008061124c600254600154036000190190565b905060005b8181101561131557600061126482612189565b905080156112be57876001600160a01b031661127f83611529565b6001600160a01b0316036112b957818585815181106112a0576112a0613405565b6020908102919091010152836112b58161341b565b9450505b611302565b801580156112ef5750846112d3600188613434565b815181106112e3576112e3613405565b60200260200101516000145b1561130257826112fe8161341b565b9350505b508061130d8161341b565b915050611251565b509195945050505050565b6001600160a01b0381166000908152600b60205260409020546113555760405162461bcd60e51b8152600401610da0906132e8565b60006113618383611d46565b9050806000036113835760405162461bcd60e51b8152600401610da09061332e565b6001600160a01b0383166000908152600e6020526040812080548392906113ab90849061338f565b90915550506001600160a01b038084166000908152600f602090815260408083209386168352929052208054820190556113e68383836124e4565b604080516001600160a01b038481168252602082018490528516917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a2505050565b6114396121be565b600061144c600254600154036000190190565b9050600083116114a95760405162461bcd60e51b815260206004820152602260248201527f4769766561776179206e65656420746f206265206174206c656173742031204e604482015261119560f21b6064820152608401610da0565b6013546114b6848361338f565b11156114fb5760405162461bcd60e51b81526020600482015260146024820152734d617820737570706c792065786365656465642160601b6044820152606401610da0565b6115058284612536565b505050565b6115126121be565b8051611525906012906020840190612da5565b5050565b6000610bd482612634565b6019546000906001600160601b031661154f612710846133e3565b610bd491906133c4565b6115616121be565b6018805491151563010000000263ff00000019909216919091179055565b6115876121be565b601355565b60006001600160a01b0382166115b5576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526006602052604090205467ffffffffffffffff1690565b6115e36121be565b6115ed60006126a3565b565b6115f76121be565b601455565b6116046121be565b601a55565b6000600d828154811061161e5761161e613405565b6000918252602090912001546001600160a01b031692915050565b60128054611646906132ae565b80601f0160208091040260200160405190810160405280929190818152602001828054611672906132ae565b80156116bf5780601f10611694576101008083540402835291602001916116bf565b820191906000526020600020905b8154815290600101906020018083116116a257829003601f168201915b505050505081565b6116cf6121be565b601880546001600160a01b0390921664010000000002640100000000600160c01b0319909216919091179055565b606060048054610be9906132ae565b6117146121be565b8051611525906011906020840190612da5565b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60008061179f600a5490565b6117a9904761338f565b90506117d483826117cf866001600160a01b03166000908152600c602052604090205490565b6126f3565b9392505050565b836daaeb6d7670e522a718067333cd4e3b1561192757336001600160a01b038216036118125761180d85858585612731565b611933565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611861573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061188591906133a7565b80156119085750604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa1580156118e4573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061190891906133a7565b61192757604051633b79c77360e21b8152336004820152602401610da0565b61193385858585612731565b5050505050565b611942612775565b3233146119a05760405162461bcd60e51b815260206004820152602660248201527f43616e6e6f742062652063616c6c65642066726f6d20616e6f7468657220636f6044820152651b9d1c9858dd60d21b6064820152608401610da0565b60185460ff16156119ec5760405162461bcd60e51b8152602060048201526016602482015275151a194818dbdb9d1c9858dd081a5cc81c185d5cd95960521b6044820152606401610da0565b60006119ff600254600154036000190190565b905060008411611a515760405162461bcd60e51b815260206004820152601f60248201527f596f75206e65656420746f206d696e74206174206c656173742031204e4654006044820152606401610da0565b601354611a5e858361338f565b1115611aa35760405162461bcd60e51b81526020600482015260146024820152734d617820737570706c792065786365656465642160601b6044820152606401610da0565b601454841115611b015760405162461bcd60e51b8152602060048201526024808201527f4d6178206d696e7420616d6f756e74207065722073657373696f6e20657863656044820152631959195960e21b6064820152608401610da0565b336000908152601b6020526040902054601554611b1e868361338f565b1115611b6c5760405162461bcd60e51b815260206004820152601c60248201527f4d6178204e4654207065722061646472657373206578636565646564000000006044820152606401610da0565b60185462010000900460ff161515600103611c7e57601654611b8f3386866127ce565b611bdb5760405162461bcd60e51b815260206004820152601760248201527f596f7520617265206e6f742077686974656c69737465640000000000000000006044820152606401610da0565b611be586826133c4565b341015611c345760405162461bcd60e51b815260206004820152601c60248201527f596f7520646f6e2774206861766520656e6f756768742066756e6473000000006044820152606401610da0565b60015b868111611c7157336000908152601b60205260408120805491611c598361341b565b91905055508080611c699061341b565b915050611c37565b50611c7c3387612536565b505b6018546301000000900460ff161515600103611d3a57601754611ca186826133c4565b341015611cf05760405162461bcd60e51b815260206004820152601c60248201527f596f7520646f6e2774206861766520656e6f756768742066756e6473000000006044820152606401610da0565b60015b868111611d2d57336000908152601b60205260408120805491611d158361341b565b91905055508080611d259061341b565b915050611cf3565b50611d383387612536565b505b50506115056001601055565b6001600160a01b0382166000908152600e602052604081205481906040516370a0823160e01b81523060048201526001600160a01b038616906370a0823190602401602060405180830381865afa158015611da5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611dc9919061344b565b611dd3919061338f565b6001600160a01b038086166000908152600f6020908152604080832093881683529290522054909150611e0990849083906126f3565b949350505050565b6060611e1c82612189565b611e805760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610da0565b601854610100900460ff161515600003611f265760128054611ea1906132ae565b80601f0160208091040260200160405190810160405280929190818152602001828054611ecd906132ae565b8015611f1a5780601f10611eef57610100808354040283529160200191611f1a565b820191906000526020600020905b815481529060010190602001808311611efd57829003601f168201915b50505050509050919050565b600060118054611f35906132ae565b80601f0160208091040260200160405190810160405280929190818152602001828054611f61906132ae565b8015611fae5780601f10611f8357610100808354040283529160200191611fae565b820191906000526020600020905b815481529060010190602001808311611f9157829003601f168201915b505050505090506000815111611fd357604051806020016040528060008152506117d4565b80611fdd8461284f565b604051602001611fee929190613464565b6040516020818303038152906040529392505050565b61200c6121be565b601980546bffffffffffffffffffffffff19166001600160601b0392909216919091179055565b61203b6121be565b601555565b6120486121be565b601755565b6120556121be565b601880549115156101000261ff0019909216919091179055565b6120776121be565b6001600160a01b0381166120dc5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610da0565b6120e5816126a3565b50565b6120f06121be565b6120f8612775565b60005b601c548110156121235761211161052182611609565b8061211b8161341b565b9150506120fb565b506115ed6001601055565b6121366121be565b601655565b60006301ffc9a760e01b6001600160e01b03198316148061216c57506380ac58cd60e01b6001600160e01b03198316145b80610bd45750506001600160e01b031916635b5e139f60e01b1490565b60008160011115801561219d575060015482105b8015610bd4575050600090815260056020526040902054600160e01b161590565b6000546001600160a01b031633146115ed5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610da0565b804710156122685760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610da0565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146122b5576040519150601f19603f3d011682016040523d82523d6000602084013e6122ba565b606091505b50509050806115055760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610da0565b600061233c82612634565b9050836001600160a01b0316816001600160a01b03161461236f5760405162a1148160e81b815260040160405180910390fd5b60008281526007602052604090208054338082146001600160a01b038816909114176123bc5761239f8633610b10565b6123bc57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0385166123e357604051633a954ecd60e21b815260040160405180910390fd5b80156123ee57600082555b6001600160a01b038681166000908152600660205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260056020526040812091909155600160e11b841690036124805760018401600081815260056020526040812054900361247e57600154811461247e5760008181526005602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b611505838383604051806020016040528060008152506117db565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526115059084906128e2565b600154600082900361255b5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526006602090815260408083208054680100000000000000018802019055848352600590915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461260a57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001016125d2565b508160000361262b57604051622e076360e81b815260040160405180910390fd5b60015550505050565b6000818060011161268a5760015481101561268a5760008181526005602052604081205490600160e01b82169003612688575b806000036117d4575060001901600081815260056020526040902054612667565b505b604051636f96cda160e11b815260040160405180910390fd5b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6009546001600160a01b0384166000908152600b60205260408120549091839161271d90866133c4565b61272791906133e3565b611e099190613434565b61273c848484610e5b565b6001600160a01b0383163b15610fb157612758848484846129b4565b610fb1576040516368d2bf6b60e11b815260040160405180910390fd5b6002601054036127c75760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610da0565b6002601055565b6000611e09612816856040516bffffffffffffffffffffffff19606083901b166020820152600090603401604051602081830303815290604052805190602001209050919050565b848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250612a9f92505050565b6060600061285c83612aae565b600101905060008167ffffffffffffffff81111561287c5761287c613083565b6040519080825280601f01601f1916602001820160405280156128a6576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846128b057509392505050565b6000612937826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612b869092919063ffffffff16565b805190915015611505578080602001905181019061295591906133a7565b6115055760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610da0565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906129e99033908990889088906004016134a3565b6020604051808303816000875af1925050508015612a24575060408051601f3d908101601f19168201909252612a21918101906134e0565b60015b612a82573d808015612a52576040519150601f19603f3d011682016040523d82523d6000602084013e612a57565b606091505b508051600003612a7a576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b60006117d482601a5485612b95565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310612aed5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310612b19576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310612b3757662386f26fc10000830492506010015b6305f5e1008310612b4f576305f5e100830492506008015b6127108310612b6357612710830492506004015b60648310612b75576064830492506002015b600a8310610bd45760010192915050565b6060611e098484600085612bab565b600082612ba28584612c86565b14949350505050565b606082471015612c0c5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610da0565b600080866001600160a01b03168587604051612c2891906134fd565b60006040518083038185875af1925050503d8060008114612c65576040519150601f19603f3d011682016040523d82523d6000602084013e612c6a565b606091505b5091509150612c7b87838387612cd3565b979650505050505050565b600081815b8451811015612ccb57612cb782868381518110612caa57612caa613405565b6020026020010151612d4c565b915080612cc38161341b565b915050612c8b565b509392505050565b60608315612d42578251600003612d3b576001600160a01b0385163b612d3b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610da0565b5081611e09565b611e098383612d7b565b6000818310612d685760008281526020849052604090206117d4565b60008381526020839052604090206117d4565b815115612d8b5781518083602001fd5b8060405162461bcd60e51b8152600401610da09190612ec9565b828054612db1906132ae565b90600052602060002090601f016020900481019282612dd35760008555612e19565b82601f10612dec57805160ff1916838001178555612e19565b82800160010185558215612e19579182015b82811115612e19578251825591602001919060010190612dfe565b50612e25929150612e29565b5090565b5b80821115612e255760008155600101612e2a565b6001600160e01b0319811681146120e557600080fd5b600060208284031215612e6657600080fd5b81356117d481612e3e565b60005b83811015612e8c578181015183820152602001612e74565b83811115610fb15750506000910152565b60008151808452612eb5816020860160208601612e71565b601f01601f19169290920160200192915050565b6020815260006117d46020830184612e9d565b600060208284031215612eee57600080fd5b5035919050565b6001600160a01b03811681146120e557600080fd5b60008060408385031215612f1d57600080fd5b8235612f2881612ef5565b946020939093013593505050565b80151581146120e557600080fd5b600060208284031215612f5657600080fd5b81356117d481612f36565b600060208284031215612f7357600080fd5b81356117d481612ef5565b600080600060608486031215612f9357600080fd5b8335612f9e81612ef5565b92506020840135612fae81612ef5565b929592945050506040919091013590565b60008060408385031215612fd257600080fd5b50508035926020909101359150565b60008060408385031215612ff457600080fd5b8235612fff81612ef5565b9150602083013561300f81612ef5565b809150509250929050565b6020808252825182820181905260009190848201906040850190845b8181101561305257835183529284019291840191600101613036565b50909695505050505050565b6000806040838503121561307157600080fd5b82359150602083013561300f81612ef5565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156130b4576130b4613083565b604051601f8501601f19908116603f011681019082821181831017156130dc576130dc613083565b816040528093508581528686860111156130f557600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561312157600080fd5b813567ffffffffffffffff81111561313857600080fd5b8201601f8101841361314957600080fd5b611e0984823560208401613099565b6000806040838503121561316b57600080fd5b823561317681612ef5565b9150602083013561300f81612f36565b6000806000806080858703121561319c57600080fd5b84356131a781612ef5565b935060208501356131b781612ef5565b925060408501359150606085013567ffffffffffffffff8111156131da57600080fd5b8501601f810187136131eb57600080fd5b6131fa87823560208401613099565b91505092959194509250565b60008060006040848603121561321b57600080fd5b83359250602084013567ffffffffffffffff8082111561323a57600080fd5b818601915086601f83011261324e57600080fd5b81358181111561325d57600080fd5b8760208260051b850101111561327257600080fd5b6020830194508093505050509250925092565b60006020828403121561329757600080fd5b81356001600160601b03811681146117d457600080fd5b600181811c908216806132c257607f821691505b6020821081036132e257634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201526573686172657360d01b606082015260800190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201526a191d59481c185e5b595b9d60aa1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b600082198211156133a2576133a2613379565b500190565b6000602082840312156133b957600080fd5b81516117d481612f36565b60008160001904831182151516156133de576133de613379565b500290565b60008261340057634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b60006001820161342d5761342d613379565b5060010190565b60008282101561344657613446613379565b500390565b60006020828403121561345d57600080fd5b5051919050565b60008351613476818460208801612e71565b83519083019061348a818360208801612e71565b64173539b7b760d91b9101908152600501949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906134d690830184612e9d565b9695505050505050565b6000602082840312156134f257600080fd5b81516117d481612e3e565b6000825161350f818460208701612e71565b919091019291505056fea2646970667358221220d878aa338fac16ffb161d9cdf7b108e50dcc4cafcd8c62a9058987226bfb00e964736f6c634300080d0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000100a340f217c5b1a8d621fb48ae16f3f220b9a7d94fac4ab0457940f2e4a4d8e30d000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000000000000000000000000000000000000000002000000000000000000000000a713a4ce6cd2fb94d8136befcaa803f057d7f2dd00000000000000000000000096ff8e533dfd3958502a965fddee235265044f0d0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000005c00000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000041697066733a2f2f516d554137507337426f547773386e443969776668327a4e4d395335336279756e647161553237473959617532792f68696464656e2e6a736f6e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000041697066733a2f2f516d554137507337426f547773386e443969776668327a4e4d395335336279756e647161553237473959617532792f68696464656e2e6a736f6e00000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _team (address[]): 0xa713A4Ce6Cd2FB94d8136BeFCAA803f057D7F2dD,0x96fF8e533Dfd3958502A965FDdEE235265044f0D
Arg [1] : _teamShares (uint256[]): 92,8
Arg [2] : _merkleRoot (bytes32): 0xa340f217c5b1a8d621fb48ae16f3f220b9a7d94fac4ab0457940f2e4a4d8e30d
Arg [3] : _baseURI (string): ipfs://QmUA7Ps7BoTws8nD9iwfh2zNM9S53byundqaU27G9Yau2y/hidden.json
Arg [4] : _hiddenURI (string): ipfs://QmUA7Ps7BoTws8nD9iwfh2zNM9S53byundqaU27G9Yau2y/hidden.json
-----Encoded View---------------
19 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [2] : a340f217c5b1a8d621fb48ae16f3f220b9a7d94fac4ab0457940f2e4a4d8e30d
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [4] : 00000000000000000000000000000000000000000000000000000000000001e0
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [6] : 000000000000000000000000a713a4ce6cd2fb94d8136befcaa803f057d7f2dd
Arg [7] : 00000000000000000000000096ff8e533dfd3958502a965fddee235265044f0d
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [9] : 000000000000000000000000000000000000000000000000000000000000005c
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000041
Arg [12] : 697066733a2f2f516d554137507337426f547773386e443969776668327a4e4d
Arg [13] : 395335336279756e647161553237473959617532792f68696464656e2e6a736f
Arg [14] : 6e00000000000000000000000000000000000000000000000000000000000000
Arg [15] : 0000000000000000000000000000000000000000000000000000000000000041
Arg [16] : 697066733a2f2f516d554137507337426f547773386e443969776668327a4e4d
Arg [17] : 395335336279756e647161553237473959617532792f68696464656e2e6a736f
Arg [18] : 6e00000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode Sourcemap
116028:8434:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;98101:40;72726:10;98101:40;;;-1:-1:-1;;;;;206:32:1;;;188:51;;98131:9:0;270:2:1;255:18;;248:34;161:18;98101:40:0;;;;;;;116028:8434;;;;;122609:308;;;;;;;;;;-1:-1:-1;122609:308:0;;;;;:::i;:::-;;:::i;:::-;;;844:14:1;;837:22;819:41;;807:2;792:18;122609:308:0;;;;;;;;24639:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;31130:218::-;;;;;;;;;;-1:-1:-1;31130:218:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1971:32:1;;;1953:51;;1941:2;1926:18;31130:218:0;1807:203:1;30563:408:0;;;;;;:::i;:::-;;:::i;:::-;;120555:85;;;;;;;;;;-1:-1:-1;120555:85:0;;;;;:::i;:::-;;:::i;20390:323::-;;;;;;;;;;;;20664:12;;120538:1;20648:13;:28;-1:-1:-1;;20648:46:0;;20390:323;;;;2986:25:1;;;2974:2;2959:18;20390:323:0;2840:177:1;116762:55:0;;;;;;;;;;-1:-1:-1;116762:55:0;;;;;:::i;:::-;;;;;;;;;;;;;;100622:671;;;;;;;;;;-1:-1:-1;100622:671:0;;;;;:::i;:::-;;:::i;123766:212::-;;;;;;:::i;:::-;;:::i;122968:330::-;;;;;;;;;;-1:-1:-1;122968:330:0;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;206:32:1;;;188:51;;270:2;255:18;;248:34;;;;161:18;122968:330:0;14:274:1;116661:25:0;;;;;;;;;;;;;;;;98232:91;;;;;;;;;;-1:-1:-1;98303:12:0;;98232:91;;119519:101;;;;;;;;;;-1:-1:-1;119519:101:0;;;;;:::i;:::-;;:::i;99361:135::-;;;;;;;;;;-1:-1:-1;99361:135:0;;;;;:::i;:::-;-1:-1:-1;;;;;99458:21:0;;;99431:7;99458:21;;;:14;:21;;;;;;;;:30;;;;;;;;;;;;;99361:135;123986:220;;;;;;:::i;:::-;;:::i;119824:614::-;;;;;;;;;;-1:-1:-1;119824:614:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;101561:792::-;;;;;;;;;;-1:-1:-1;101561:792:0;;;;;:::i;:::-;;:::i;121997:319::-;;;;;;;;;;-1:-1:-1;121997:319:0;;;;;:::i;:::-;;:::i;120756:116::-;;;;;;;;;;-1:-1:-1;120756:116:0;;;;;:::i;:::-;;:::i;116458:28::-;;;;;;;;;;-1:-1:-1;116458:28:0;;;;;;;;;;;116536:30;;;;;;;;;;-1:-1:-1;116536:30:0;;;;;;;;;;;116426:25;;;;;;;;;;-1:-1:-1;116426:25:0;;;;;;;;26032:152;;;;;;;;;;-1:-1:-1;26032:152:0;;;;;:::i;:::-;;:::i;123306:147::-;;;;;;;;;;-1:-1:-1;123306:147:0;;;;;:::i;:::-;;:::i;119628:91::-;;;;;;;;;;-1:-1:-1;119628:91:0;;;;;:::i;:::-;;:::i;119001:92::-;;;;;;;;;;-1:-1:-1;119001:92:0;;;;;:::i;:::-;;:::i;21574:233::-;;;;;;;;;;-1:-1:-1;21574:233:0;;;;;:::i;:::-;;:::i;74743:103::-;;;;;;;;;;;;;:::i;119101:98::-;;;;;;;;;;-1:-1:-1;119101:98:0;;;;;:::i;:::-;;:::i;121388:106::-;;;;;;;;;;-1:-1:-1;121388:106:0;;;;;:::i;:::-;;:::i;99587:100::-;;;;;;;;;;-1:-1:-1;99587:100:0;;;;;:::i;:::-;;:::i;116182:23::-;;;;;;;;;;;;;:::i;74095:87::-;;;;;;;;;;-1:-1:-1;74141:7:0;74168:6;-1:-1:-1;;;;;74168:6:0;74095:87;;123595:111;;;;;;;;;;-1:-1:-1;123595:111:0;;;;;:::i;:::-;;:::i;24815:104::-;;;;;;;;;;;;;:::i;99083:109::-;;;;;;;;;;-1:-1:-1;99083:109:0;;;;;:::i;:::-;-1:-1:-1;;;;;99166:18:0;99139:7;99166:18;;;:9;:18;;;;;;;99083:109;116495:34;;;;;;;;;;-1:-1:-1;116495:34:0;;;;;;;;;;;120648:100;;;;;;;;;;-1:-1:-1;120648:100:0;;;;;:::i;:::-;;:::i;31688:234::-;;;;;;;;;;-1:-1:-1;31688:234:0;;;;;:::i;:::-;;:::i;99777:225::-;;;;;;;;;;-1:-1:-1;99777:225:0;;;;;:::i;:::-;;:::i;124214:245::-;;;;;;:::i;:::-;;:::i;117535:1417::-;;;;;;:::i;:::-;;:::i;116290:37::-;;;;;;;;;;;;;;;;100162:260;;;;;;;;;;-1:-1:-1;100162:260:0;;;;;:::i;:::-;;:::i;120880:463::-;;;;;;;;;;-1:-1:-1;120880:463:0;;;;;:::i;:::-;;:::i;123461:126::-;;;;;;;;;;-1:-1:-1;123461:126:0;;;;;:::i;:::-;;:::i;98879:105::-;;;;;;;;;;-1:-1:-1;98879:105:0;;;;;:::i;:::-;-1:-1:-1;;;;;98960:16:0;98933:7;98960:16;;;:7;:16;;;;;;;98879:105;119207:110;;;;;;;;;;-1:-1:-1;119207:110:0;;;;;:::i;:::-;;:::i;116214:31::-;;;;;;;;;;;;;;;;98669:119;;;;;;;;;;-1:-1:-1;98669:119:0;;;;;:::i;:::-;-1:-1:-1;;;;;98754:26:0;98727:7;98754:26;;;:19;:26;;;;;;;98669:119;116336:36;;;;;;;;;;;;;;;;119421:90;;;;;;;;;;-1:-1:-1;119421:90:0;;;;;:::i;:::-;;:::i;116252:31::-;;;;;;;;;;;;;;;;119727:89;;;;;;;;;;-1:-1:-1;119727:89:0;;;;;:::i;:::-;;:::i;98417:95::-;;;;;;;;;;-1:-1:-1;98490:14:0;;98417:95;;32079:164;;;;;;;;;;-1:-1:-1;32079:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;32200:25:0;;;32176:4;32200:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;32079:164;116379:38;;;;;;;;;;;;;;;;75001:201;;;;;;;;;;-1:-1:-1;75001:201:0;;;;;:::i;:::-;;:::i;122362:167::-;;;;;;;;;;;;;:::i;119325:88::-;;;;;;;;;;-1:-1:-1;119325:88:0;;;;;:::i;:::-;;:::i;122609:308::-;122753:4;-1:-1:-1;;;;;;;;;122780:36:0;;;122776:80;;-1:-1:-1;122840:4:0;;122609:308;-1:-1:-1;122609:308:0:o;122776:80::-;122873:36;122897:11;122873:23;:36::i;:::-;122866:43;122609:308;-1:-1:-1;;122609:308:0:o;24639:100::-;24693:13;24726:5;24719:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24639:100;:::o;31130:218::-;31206:7;31231:16;31239:7;31231;:16::i;:::-;31226:64;;31256:34;;-1:-1:-1;;;31256:34:0;;;;;;;;;;;31226:64;-1:-1:-1;31310:24:0;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;31310:30:0;;31130:218::o;30563:408::-;30652:13;30668:16;30676:7;30668;:16::i;:::-;30652:32;-1:-1:-1;72726:10:0;-1:-1:-1;;;;;30701:28:0;;;30697:175;;30749:44;30766:5;72726:10;32079:164;:::i;30749:44::-;30744:128;;30821:35;;-1:-1:-1;;;30821:35:0;;;;;;;;;;;30744:128;30884:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;30884:35:0;-1:-1:-1;;;;;30884:35:0;;;;;;;;;30935:28;;30884:24;;30935:28;;;;;;;30641:330;30563:408;;:::o;120555:85::-;73981:13;:11;:13::i;:::-;120617:6:::1;:15:::0;;-1:-1:-1;;120617:15:0::1;::::0;::::1;;::::0;;;::::1;::::0;;120555:85::o;100622:671::-;-1:-1:-1;;;;;100698:16:0;;100717:1;100698:16;;;:7;:16;;;;;;100690:71;;;;-1:-1:-1;;;100690:71:0;;;;;;;:::i;:::-;;;;;;;;;100774:15;100792:19;100803:7;100792:10;:19::i;:::-;100774:37;;100832:7;100843:1;100832:12;100824:68;;;;-1:-1:-1;;;100824:68:0;;;;;;;:::i;:::-;101105:7;101087:14;;:25;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;;;101148:18:0;;;;;;:9;:18;;;;;:29;;;;;;101201:35;101158:7;101170;101201:17;:35::i;:::-;101252:33;;;-1:-1:-1;;;;;206:32:1;;188:51;;270:2;255:18;;248:34;;;101252:33:0;;161:18:1;101252:33:0;;;;;;;100679:614;100622:671;:::o;123766:212::-;123911:4;3472:42;4612:43;:47;4608:699;;4899:10;-1:-1:-1;;;;;4891:18:0;;;4887:85;;123933:37:::1;123952:4;123958:2;123962:7;123933:18;:37::i;:::-;4950:7:::0;;4887:85;5032:67;;-1:-1:-1;;;5032:67:0;;5081:4;5032:67;;;12005:34:1;5088:10:0;12055:18:1;;;12048:43;3472:42:0;;5032:40;;11940:18:1;;5032:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:157;;;;-1:-1:-1;5128:61:0;;-1:-1:-1;;;5128:61:0;;5177:4;5128:61;;;12005:34:1;-1:-1:-1;;;;;12075:15:1;;12055:18;;;12048:43;3472:42:0;;5128:40;;11940:18:1;;5128:61:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;4986:310;;5250:30;;-1:-1:-1;;;5250:30:0;;5269:10;5250:30;;;1953:51:1;1926:18;;5250:30:0;1807:203:1;4986:310:0;123933:37:::1;123952:4;123958:2;123962:7;123933:18;:37::i;:::-;123766:212:::0;;;;:::o;122968:330::-;123077:16;123095:21;123142:17;123150:8;123142:7;:17::i;:::-;123134:78;;;;-1:-1:-1;;;123134:78:0;;12554:2:1;123134:78:0;;;12536:21:1;12593:2;12573:18;;;12566:30;12632:34;12612:18;;;12605:62;-1:-1:-1;;;12683:18:1;;;12676:46;12739:19;;123134:78:0;12352:412:1;123134:78:0;123231:15;;123262:18;;123231:15;;;;-1:-1:-1;;;;;123231:15:0;;123284:5;;123249:31;;-1:-1:-1;;;;;123262:18:0;123249:10;:31;:::i;:::-;123248:41;;;;:::i;:::-;123223:67;;;;122968:330;;;;;:::o;119519:101::-;73981:13;:11;:13::i;:::-;119588:15:::1;:24:::0;;;::::1;;::::0;::::1;-1:-1:-1::0;;119588:24:0;;::::1;::::0;;;::::1;::::0;;119519:101::o;123986:220::-;124135:4;3472:42;4612:43;:47;4608:699;;4899:10;-1:-1:-1;;;;;4891:18:0;;;4887:85;;124157:41:::1;124180:4;124186:2;124190:7;124157:22;:41::i;4887:85::-:0;5032:67;;-1:-1:-1;;;5032:67:0;;5081:4;5032:67;;;12005:34:1;5088:10:0;12055:18:1;;;12048:43;3472:42:0;;5032:40;;11940:18:1;;5032:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:157;;;;-1:-1:-1;5128:61:0;;-1:-1:-1;;;5128:61:0;;5177:4;5128:61;;;12005:34:1;-1:-1:-1;;;;;12075:15:1;;12055:18;;;12048:43;3472:42:0;;5128:40;;11940:18:1;;5128:61:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;4986:310;;5250:30;;-1:-1:-1;;;5250:30:0;;5269:10;5250:30;;;1953:51:1;1926:18;;5250:30:0;1807:203:1;4986:310:0;124157:41:::1;124180:4;124186:2;124190:7;124157:22;:41::i;119824:614::-:0;119894:16;119923;119942:19;119952:8;119942:9;:19::i;:::-;119923:38;;119972:24;120014:8;119999:24;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;119999:24:0;;119972:51;;120034:14;120059:20;120082:13;20664:12;;120538:1;20648:13;:28;-1:-1:-1;;20648:46:0;;20390:323;120082:13;120059:36;;120111:9;120106:300;120130:12;120126:1;:16;120106:300;;;120164:12;120179:10;120187:1;120179:7;:10::i;:::-;120164:25;;120208:7;120204:191;;;120254:8;-1:-1:-1;;;;;120240:22:0;:10;120248:1;120240:7;:10::i;:::-;-1:-1:-1;;;;;120240:22:0;;120236:62;;120284:1;120266:7;120274:6;120266:15;;;;;;;;:::i;:::-;;;;;;;;;;:19;120287:8;;;;:::i;:::-;;;;120236:62;120204:191;;;120337:7;120336:8;:38;;;;-1:-1:-1;120348:7:0;120356:12;120367:1;120356:8;:12;:::i;:::-;120348:21;;;;;;;;:::i;:::-;;;;;;;120373:1;120348:26;120336:38;120332:63;;;120378:14;;;;:::i;:::-;;;;120332:63;-1:-1:-1;120144:3:0;;;;:::i;:::-;;;;120106:300;;;-1:-1:-1;120423:7:0;;119824:614;-1:-1:-1;;;;;119824:614:0:o;101561:792::-;-1:-1:-1;;;;;101643:16:0;;101662:1;101643:16;;;:7;:16;;;;;;101635:71;;;;-1:-1:-1;;;101635:71:0;;;;;;;:::i;:::-;101719:15;101737:26;101748:5;101755:7;101737:10;:26::i;:::-;101719:44;;101784:7;101795:1;101784:12;101776:68;;;;-1:-1:-1;;;101776:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;102099:26:0;;;;;;:19;:26;;;;;:37;;102129:7;;102099:26;:37;;102129:7;;102099:37;:::i;:::-;;;;-1:-1:-1;;;;;;;102172:21:0;;;;;;;:14;:21;;;;;;;;:30;;;;;;;;;:41;;;;;;102237:47;102187:5;102194:7;102206;102237:22;:47::i;:::-;102300:45;;;-1:-1:-1;;;;;206:32:1;;;188:51;;270:2;255:18;;248:34;;;102300:45:0;;;;;161:18:1;102300:45:0;;;;;;;101624:729;101561:792;;:::o;121997:319::-;73981:13;:11;:13::i;:::-;122088:14:::1;122105:13;20664:12:::0;;120538:1;20648:13;:28;-1:-1:-1;;20648:46:0;;20390:323;122105:13:::1;122088:30;;122151:1;122137:11;:15;122129:62;;;::::0;-1:-1:-1;;;122129:62:0;;13900:2:1;122129:62:0::1;::::0;::::1;13882:21:1::0;13939:2;13919:18;;;13912:30;13978:34;13958:18;;;13951:62;-1:-1:-1;;;14029:18:1;;;14022:32;14071:19;;122129:62:0::1;13698:398:1::0;122129:62:0::1;122234:9;::::0;122210:20:::1;122219:11:::0;122210:6;:20:::1;:::i;:::-;:33;;122202:66;;;::::0;-1:-1:-1;;;122202:66:0;;14303:2:1;122202:66:0::1;::::0;::::1;14285:21:1::0;14342:2;14322:18;;;14315:30;-1:-1:-1;;;14361:18:1;;;14354:50;14421:18;;122202:66:0::1;14101:344:1::0;122202:66:0::1;122279:29;122285:9;122296:11;122279:5;:29::i;:::-;122077:239;121997:319:::0;;:::o;120756:116::-;73981:13;:11;:13::i;:::-;120842:22;;::::1;::::0;:9:::1;::::0;:22:::1;::::0;::::1;::::0;::::1;:::i;:::-;;120756:116:::0;:::o;26032:152::-;26104:7;26147:27;26166:7;26147:18;:27::i;123306:147::-;123427:18;;123377:7;;-1:-1:-1;;;;;123427:18:0;123405;123418:5;123405:10;:18;:::i;:::-;123404:41;;;;:::i;119628:91::-;73981:13;:11;:13::i;:::-;119692:10:::1;:19:::0;;;::::1;;::::0;::::1;-1:-1:-1::0;;119692:19:0;;::::1;::::0;;;::::1;::::0;;119628:91::o;119001:92::-;73981:13;:11;:13::i;:::-;119067:9:::1;:18:::0;119001:92::o;21574:233::-;21646:7;-1:-1:-1;;;;;21670:19:0;;21666:60;;21698:28;;-1:-1:-1;;;21698:28:0;;;;;;;;;;;21666:60;-1:-1:-1;;;;;;21744:25:0;;;;;:18;:25;;;;;;15733:13;21744:55;;21574:233::o;74743:103::-;73981:13;:11;:13::i;:::-;74808:30:::1;74835:1;74808:18;:30::i;:::-;74743:103::o:0;119101:98::-;73981:13;:11;:13::i;:::-;119170:12:::1;:21:::0;119101:98::o;121388:106::-;73981:13;:11;:13::i;:::-;121462:10:::1;:24:::0;121388:106::o;99587:100::-;99638:7;99665;99673:5;99665:14;;;;;;;;:::i;:::-;;;;;;;;;;;-1:-1:-1;;;;;99665:14:0;;99587:100;-1:-1:-1;;99587:100:0:o;116182:23::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;123595:111::-;73981:13;:11;:13::i;:::-;123671:15:::1;:27:::0;;-1:-1:-1;;;;;123671:27:0;;::::1;::::0;::::1;-1:-1:-1::0;;;;;;123671:27:0;;::::1;::::0;;;::::1;::::0;;123595:111::o;24815:104::-;24871:13;24904:7;24897:14;;;;;:::i;120648:100::-;73981:13;:11;:13::i;:::-;120722:18;;::::1;::::0;:7:::1;::::0;:18:::1;::::0;::::1;::::0;::::1;:::i;31688:234::-:0;72726:10;31783:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;31783:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;31783:60:0;;;;;;;;;;31859:55;;819:41:1;;;31783:49:0;;72726:10;31859:55;;792:18:1;31859:55:0;;;;;;;31688:234;;:::o;99777:225::-;99835:7;99855:21;99903:15;98490:14;;;98417:95;99903:15;99879:39;;:21;:39;:::i;:::-;99855:63;;99936:58;99952:7;99961:13;99976:17;99985:7;-1:-1:-1;;;;;99166:18:0;99139:7;99166:18;;;:9;:18;;;;;;;99083:109;99976:17;99936:15;:58::i;:::-;99929:65;99777:225;-1:-1:-1;;;99777:225:0:o;124214:245::-;124382:4;3472:42;4612:43;:47;4608:699;;4899:10;-1:-1:-1;;;;;4891:18:0;;;4887:85;;124404:47:::1;124427:4;124433:2;124437:7;124446:4;124404:22;:47::i;:::-;4950:7:::0;;4887:85;5032:67;;-1:-1:-1;;;5032:67:0;;5081:4;5032:67;;;12005:34:1;5088:10:0;12055:18:1;;;12048:43;3472:42:0;;5032:40;;11940:18:1;;5032:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:157;;;;-1:-1:-1;5128:61:0;;-1:-1:-1;;;5128:61:0;;5177:4;5128:61;;;12005:34:1;-1:-1:-1;;;;;12075:15:1;;12055:18;;;12048:43;3472:42:0;;5128:40;;11940:18:1;;5128:61:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;4986:310;;5250:30;;-1:-1:-1;;;5250:30:0;;5269:10;5250:30;;;1953:51:1;1926:18;;5250:30:0;1807:203:1;4986:310:0;124404:47:::1;124427:4;124433:2;124437:7;124446:4;124404:22;:47::i;:::-;124214:245:::0;;;;;:::o;117535:1417::-;105796:21;:19;:21::i;:::-;117409:9:::1;117422:10;117409:23;117401:74;;;::::0;-1:-1:-1;;;117401:74:0;;14652:2:1;117401:74:0::1;::::0;::::1;14634:21:1::0;14691:2;14671:18;;;14664:30;14730:34;14710:18;;;14703:62;-1:-1:-1;;;14781:18:1;;;14774:36;14827:19;;117401:74:0::1;14450:402:1::0;117401:74:0::1;117659:6:::2;::::0;::::2;;117658:7;117650:42;;;::::0;-1:-1:-1;;;117650:42:0;;15059:2:1;117650:42:0::2;::::0;::::2;15041:21:1::0;15098:2;15078:18;;;15071:30;-1:-1:-1;;;15117:18:1;;;15110:52;15179:18;;117650:42:0::2;14857:346:1::0;117650:42:0::2;117703:14;117720:13;20664:12:::0;;120538:1;20648:13;:28;-1:-1:-1;;20648:46:0;;20390:323;117720:13:::2;117703:30;;117766:1;117752:11;:15;117744:59;;;::::0;-1:-1:-1;;;117744:59:0;;15410:2:1;117744:59:0::2;::::0;::::2;15392:21:1::0;15449:2;15429:18;;;15422:30;15488:33;15468:18;;;15461:61;15539:18;;117744:59:0::2;15208:355:1::0;117744:59:0::2;117846:9;::::0;117822:20:::2;117831:11:::0;117822:6;:20:::2;:::i;:::-;:33;;117814:66;;;::::0;-1:-1:-1;;;117814:66:0;;14303:2:1;117814:66:0::2;::::0;::::2;14285:21:1::0;14342:2;14322:18;;;14315:30;-1:-1:-1;;;14361:18:1;;;14354:50;14421:18;;117814:66:0::2;14101:344:1::0;117814:66:0::2;117914:12;;117899:11;:27;;117891:76;;;::::0;-1:-1:-1;;;117891:76:0;;15770:2:1;117891:76:0::2;::::0;::::2;15752:21:1::0;15809:2;15789:18;;;15782:30;15848:34;15828:18;;;15821:62;-1:-1:-1;;;15899:18:1;;;15892:34;15943:19;;117891:76:0::2;15568:400:1::0;117891:76:0::2;118026:10;117978:24;118005:32:::0;;;:20:::2;:32;::::0;;;;;118090:18:::2;::::0;118056:30:::2;118075:11:::0;118005:32;118056:30:::2;:::i;:::-;:52;;118048:93;;;::::0;-1:-1:-1;;;118048:93:0;;16175:2:1;118048:93:0::2;::::0;::::2;16157:21:1::0;16214:2;16194:18;;;16187:30;16253;16233:18;;;16226:58;16301:18;;118048:93:0::2;15973:352:1::0;118048:93:0::2;118165:15;::::0;;;::::2;;;:23;;118184:4;118165:23:::0;118162:421:::2;;118221:7;::::0;118251:33:::2;118265:10;118277:6:::0;;118251:13:::2;:33::i;:::-;118243:69;;;::::0;-1:-1:-1;;;118243:69:0;;16532:2:1;118243:69:0::2;::::0;::::2;16514:21:1::0;16571:2;16551:18;;;16544:30;16610:25;16590:18;;;16583:53;16653:18;;118243:69:0::2;16330:347:1::0;118243:69:0::2;118348:19;118356:11:::0;118348:5;:19:::2;:::i;:::-;118335:9;:32;;118327:73;;;::::0;-1:-1:-1;;;118327:73:0;;16884:2:1;118327:73:0::2;::::0;::::2;16866:21:1::0;16923:2;16903:18;;;16896:30;16962;16942:18;;;16935:58;17010:18;;118327:73:0::2;16682:352:1::0;118327:73:0::2;118432:1;118415:112;118440:11;118435:1;:16;118415:112;;118498:10;118477:32;::::0;;;:20:::2;:32;::::0;;;;:34;;;::::2;::::0;::::2;:::i;:::-;;;;;;118453:3;;;;;:::i;:::-;;;;118415:112;;;;118541:30;118547:10;118559:11;118541:5;:30::i;:::-;118190:393;118162:421;118606:10;::::0;;;::::2;;;:18;;118620:4;118606:18:::0;118603:332:::2;;118656:8;::::0;118700:19:::2;118708:11:::0;118656:8;118700:19:::2;:::i;:::-;118687:9;:32;;118679:73;;;::::0;-1:-1:-1;;;118679:73:0;;16884:2:1;118679:73:0::2;::::0;::::2;16866:21:1::0;16923:2;16903:18;;;16896:30;16962;16942:18;;;16935:58;17010:18;;118679:73:0::2;16682:352:1::0;118679:73:0::2;118784:1;118767:112;118792:11;118787:1;:16;118767:112;;118850:10;118829:32;::::0;;;:20:::2;:32;::::0;;;;:34;;;::::2;::::0;::::2;:::i;:::-;;;;;;118805:3;;;;;:::i;:::-;;;;118767:112;;;;118893:30;118899:10;118911:11;118893:5;:30::i;:::-;118625:310;118603:332;117639:1313;;105840:20:::0;105234:1;106360:7;:22;106177:213;100162:260;-1:-1:-1;;;;;98754:26:0;;100234:7;98754:26;;;:19;:26;;;;;;100234:7;;100278:30;;-1:-1:-1;;;100278:30:0;;100302:4;100278:30;;;1953:51:1;-1:-1:-1;;;;;100278:15:0;;;;;1926:18:1;;100278:30:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:53;;;;:::i;:::-;-1:-1:-1;;;;;99458:21:0;;;99431:7;99458:21;;;:14;:21;;;;;;;;:30;;;;;;;;;;100254:77;;-1:-1:-1;100349:65:0;;100365:7;;100254:77;;99936:15;:58::i;100349:65::-;100342:72;100162:260;-1:-1:-1;;;;100162:260:0:o;120880:463::-;120954:13;120988:17;120996:8;120988:7;:17::i;:::-;120980:77;;;;-1:-1:-1;;;120980:77:0;;17430:2:1;120980:77:0;;;17412:21:1;17469:2;17449:18;;;17442:30;17508:34;17488:18;;;17481:62;-1:-1:-1;;;17559:18:1;;;17552:45;17614:19;;120980:77:0;17228:411:1;120980:77:0;121074:8;;;;;;;:17;;121086:5;121074:17;121070:66;;121115:9;121108:16;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;120880:463;;;:::o;121070:66::-;121149:28;121180:7;121149:38;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;121238:1;121213:14;121207:28;:32;:128;;;;;;;;;;;;;;;;;121275:14;121291:19;:8;:17;:19::i;:::-;121258:62;;;;;;;;;:::i;:::-;;;;;;;;;;;;;121200:135;120880:463;-1:-1:-1;;;120880:463:0:o;123461:126::-;73981:13;:11;:13::i;:::-;123539:18:::1;:40:::0;;-1:-1:-1;;123539:40:0::1;-1:-1:-1::0;;;;;123539:40:0;;;::::1;::::0;;;::::1;::::0;;123461:126::o;119207:110::-;73981:13;:11;:13::i;:::-;119282:18:::1;:27:::0;119207:110::o;119421:90::-;73981:13;:11;:13::i;:::-;119486:8:::1;:17:::0;119421:90::o;119727:89::-;73981:13;:11;:13::i;:::-;119791:8:::1;:17:::0;;;::::1;;;;-1:-1:-1::0;;119791:17:0;;::::1;::::0;;;::::1;::::0;;119727:89::o;75001:201::-;73981:13;:11;:13::i;:::-;-1:-1:-1;;;;;75090:22:0;::::1;75082:73;;;::::0;-1:-1:-1;;;75082:73:0;;18488:2:1;75082:73:0::1;::::0;::::1;18470:21:1::0;18527:2;18507:18;;;18500:30;18566:34;18546:18;;;18539:62;-1:-1:-1;;;18617:18:1;;;18610:36;18663:19;;75082:73:0::1;18286:402:1::0;75082:73:0::1;75166:28;75185:8;75166:18;:28::i;:::-;75001:201:::0;:::o;122362:167::-;73981:13;:11;:13::i;:::-;105796:21:::1;:19;:21::i;:::-;122434:6:::2;122430:92;122451:10;;122447:1;:14;122430:92;;;122484:26;122500:8;122506:1;122500:5;:8::i;122484:26::-;122464:3:::0;::::2;::::0;::::2;:::i;:::-;;;;122430:92;;;;105840:20:::1;105234:1:::0;106360:7;:22;106177:213;119325:88;73981:13;:11;:13::i;:::-;119389:7:::1;:16:::0;119325:88::o;23737:639::-;23822:4;-1:-1:-1;;;;;;;;;24146:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;24223:25:0;;;24146:102;:179;;;-1:-1:-1;;;;;;;;24300:25:0;-1:-1:-1;;;24300:25:0;;23737:639::o;32501:282::-;32566:4;32622:7;120538:1;32603:26;;:66;;;;;32656:13;;32646:7;:23;32603:66;:153;;;;-1:-1:-1;;32707:26:0;;;;:17;:26;;;;;;-1:-1:-1;;;32707:44:0;:49;;32501:282::o;74260:132::-;74141:7;74168:6;-1:-1:-1;;;;;74168:6:0;72726:10;74324:23;74316:68;;;;-1:-1:-1;;;74316:68:0;;18895:2:1;74316:68:0;;;18877:21:1;;;18914:18;;;18907:30;18973:34;18953:18;;;18946:62;19025:18;;74316:68:0;18693:356:1;78054:317:0;78169:6;78144:21;:31;;78136:73;;;;-1:-1:-1;;;78136:73:0;;19256:2:1;78136:73:0;;;19238:21:1;19295:2;19275:18;;;19268:30;19334:31;19314:18;;;19307:59;19383:18;;78136:73:0;19054:353:1;78136:73:0;78223:12;78241:9;-1:-1:-1;;;;;78241:14:0;78263:6;78241:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;78222:52;;;78293:7;78285:78;;;;-1:-1:-1;;;78285:78:0;;19824:2:1;78285:78:0;;;19806:21:1;19863:2;19843:18;;;19836:30;19902:34;19882:18;;;19875:62;19973:28;19953:18;;;19946:56;20019:19;;78285:78:0;19622:422:1;34769:2825:0;34911:27;34941;34960:7;34941:18;:27::i;:::-;34911:57;;35026:4;-1:-1:-1;;;;;34985:45:0;35001:19;-1:-1:-1;;;;;34985:45:0;;34981:86;;35039:28;;-1:-1:-1;;;35039:28:0;;;;;;;;;;;34981:86;35081:27;33877:24;;;:15;:24;;;;;34105:26;;72726:10;33502:30;;;-1:-1:-1;;;;;33195:28:0;;33480:20;;;33477:56;35267:180;;35360:43;35377:4;72726:10;32079:164;:::i;35360:43::-;35355:92;;35412:35;;-1:-1:-1;;;35412:35:0;;;;;;;;;;;35355:92;-1:-1:-1;;;;;35464:16:0;;35460:52;;35489:23;;-1:-1:-1;;;35489:23:0;;;;;;;;;;;35460:52;35661:15;35658:160;;;35801:1;35780:19;35773:30;35658:160;-1:-1:-1;;;;;36198:24:0;;;;;;;:18;:24;;;;;;36196:26;;-1:-1:-1;;36196:26:0;;;36267:22;;;;;;;;;36265:24;;-1:-1:-1;36265:24:0;;;29421:11;29396:23;29392:41;29379:63;-1:-1:-1;;;29379:63:0;36560:26;;;;:17;:26;;;;;:175;;;;-1:-1:-1;;;36855:47:0;;:52;;36851:627;;36960:1;36950:11;;36928:19;37083:30;;;:17;:30;;;;;;:35;;37079:384;;37221:13;;37206:11;:28;37202:242;;37368:30;;;;:17;:30;;;;;:52;;;37202:242;36909:569;36851:627;37525:7;37521:2;-1:-1:-1;;;;;37506:27:0;37515:4;-1:-1:-1;;;;;37506:27:0;;;;;;;;;;;34900:2694;;;34769:2825;;;:::o;37690:193::-;37836:39;37853:4;37859:2;37863:7;37836:39;;;;;;;;;;;;:16;:39::i;90946:211::-;91090:58;;;-1:-1:-1;;;;;206:32:1;;91090:58:0;;;188:51:1;255:18;;;;248:34;;;91090:58:0;;;;;;;;;;161:18:1;;;;91090:58:0;;;;;;;;-1:-1:-1;;;;;91090:58:0;-1:-1:-1;;;91090:58:0;;;91063:86;;91083:5;;91063:19;:86::i;42150:2966::-;42246:13;;42223:20;42274:13;;;42270:44;;42296:18;;-1:-1:-1;;;42296:18:0;;;;;;;;;;;42270:44;-1:-1:-1;;;;;42802:22:0;;;;;;:18;:22;;;;15871:2;42802:22;;;:71;;42840:32;42828:45;;42802:71;;;43116:31;;;:17;:31;;;;;-1:-1:-1;29852:15:0;;29826:24;29822:46;29421:11;29396:23;29392:41;29389:52;29379:63;;43116:173;;43351:23;;;;43116:31;;42802:22;;44116:25;42802:22;;43969:335;44630:1;44616:12;44612:20;44570:346;44671:3;44662:7;44659:16;44570:346;;44889:7;44879:8;44876:1;44849:25;44846:1;44843;44838:59;44724:1;44711:15;44570:346;;;44574:77;44949:8;44961:1;44949:13;44945:45;;44971:19;;-1:-1:-1;;;44971:19:0;;;;;;;;;;;44945:45;45007:13;:19;-1:-1:-1;122077:239:0::1;121997:319:::0;;:::o;27187:1275::-;27254:7;27289;;120538:1;27338:23;27334:1061;;27391:13;;27384:4;:20;27380:1015;;;27429:14;27446:23;;;:17;:23;;;;;;;-1:-1:-1;;;27535:24:0;;:29;;27531:845;;28200:113;28207:6;28217:1;28207:11;28200:113;;-1:-1:-1;;;28278:6:0;28260:25;;;;:17;:25;;;;;;28200:113;;27531:845;27406:989;27380:1015;28423:31;;-1:-1:-1;;;28423:31:0;;;;;;;;;;;75362:191;75436:16;75455:6;;-1:-1:-1;;;;;75472:17:0;;;-1:-1:-1;;;;;;75472:17:0;;;;;;75505:40;;75455:6;;;;;;;75505:40;;75436:16;75505:40;75425:128;75362:191;:::o;102531:248::-;102741:12;;-1:-1:-1;;;;;102721:16:0;;102677:7;102721:16;;;:7;:16;;;;;;102677:7;;102756:15;;102705:32;;:13;:32;:::i;:::-;102704:49;;;;:::i;:::-;:67;;;;:::i;38481:407::-;38656:31;38669:4;38675:2;38679:7;38656:12;:31::i;:::-;-1:-1:-1;;;;;38702:14:0;;;:19;38698:183;;38741:56;38772:4;38778:2;38782:7;38791:5;38741:30;:56::i;:::-;38736:145;;38825:40;;-1:-1:-1;;;38825:40:0;;;;;;;;;;;105876:293;105278:1;106010:7;;:19;106002:63;;;;-1:-1:-1;;;106002:63:0;;20251:2:1;106002:63:0;;;20233:21:1;20290:2;20270:18;;;20263:30;20329:33;20309:18;;;20302:61;20380:18;;106002:63:0;20049:355:1;106002:63:0;105278:1;106143:7;:18;105876:293::o;121502:153::-;121592:4;121616:31;121624:14;121629:8;121754:26;;-1:-1:-1;;21717:2:1;21713:15;;;21709:53;121754:26:0;;;21697:66:1;121717:7:0;;21779:12:1;;121754:26:0;;;;;;;;;;;;121744:37;;;;;;121737:44;;121663:126;;;;121624:14;121640:6;;121616:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;121616:7:0;;-1:-1:-1;;;121616:31:0:i;70073:716::-;70129:13;70180:14;70197:17;70208:5;70197:10;:17::i;:::-;70217:1;70197:21;70180:38;;70233:20;70267:6;70256:18;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;70256:18:0;-1:-1:-1;70233:41:0;-1:-1:-1;70398:28:0;;;70414:2;70398:28;70455:288;-1:-1:-1;;70487:5:0;-1:-1:-1;;;70624:2:0;70613:14;;70608:30;70487:5;70595:44;70685:2;70676:11;;;-1:-1:-1;70706:21:0;70455:288;70706:21;-1:-1:-1;70764:6:0;70073:716;-1:-1:-1;;;70073:716:0:o;94013:::-;94437:23;94463:69;94491:4;94463:69;;;;;;;;;;;;;;;;;94471:5;-1:-1:-1;;;;;94463:27:0;;;:69;;;;;:::i;:::-;94547:17;;94437:95;;-1:-1:-1;94547:21:0;94543:179;;94644:10;94633:30;;;;;;;;;;;;:::i;:::-;94625:85;;;;-1:-1:-1;;;94625:85:0;;20611:2:1;94625:85:0;;;20593:21:1;20650:2;20630:18;;;20623:30;20689:34;20669:18;;;20662:62;-1:-1:-1;;;20740:18:1;;;20733:40;20790:19;;94625:85:0;20409:406:1;40972:716:0;41156:88;;-1:-1:-1;;;41156:88:0;;41135:4;;-1:-1:-1;;;;;41156:45:0;;;;;:88;;72726:10;;41223:4;;41229:7;;41238:5;;41156:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;41156:88:0;;;;;;;;-1:-1:-1;;41156:88:0;;;;;;;;;;;;:::i;:::-;;;41152:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41439:6;:13;41456:1;41439:18;41435:235;;41485:40;;-1:-1:-1;;;41485:40:0;;;;;;;;;;;41435:235;41628:6;41622:13;41613:6;41609:2;41605:15;41598:38;41152:529;-1:-1:-1;;;;;;41315:64:0;-1:-1:-1;;;41315:64:0;;-1:-1:-1;40972:716:0;;;;;;:::o;121797:156::-;121876:4;121900:45;121919:6;121927:10;;121939:5;121900:18;:45::i;66939:922::-;66992:7;;-1:-1:-1;;;67070:15:0;;67066:102;;-1:-1:-1;;;67106:15:0;;;-1:-1:-1;67150:2:0;67140:12;67066:102;67195:6;67186:5;:15;67182:102;;67231:6;67222:15;;;-1:-1:-1;67266:2:0;67256:12;67182:102;67311:6;67302:5;:15;67298:102;;67347:6;67338:15;;;-1:-1:-1;67382:2:0;67372:12;67298:102;67427:5;67418;:14;67414:99;;67462:5;67453:14;;;-1:-1:-1;67496:1:0;67486:11;67414:99;67540:5;67531;:14;67527:99;;67575:5;67566:14;;;-1:-1:-1;67609:1:0;67599:11;67527:99;67653:5;67644;:14;67640:99;;67688:5;67679:14;;;-1:-1:-1;67722:1:0;67712:11;67640:99;67766:5;67757;:14;67753:66;;67802:1;67792:11;67847:6;66939:922;-1:-1:-1;;66939:922:0:o;79550:229::-;79687:12;79719:52;79741:6;79749:4;79755:1;79758:12;79719:21;:52::i;107619:190::-;107744:4;107797;107768:25;107781:5;107788:4;107768:12;:25::i;:::-;:33;;107619:190;-1:-1:-1;;;;107619:190:0:o;80670:455::-;80840:12;80898:5;80873:21;:30;;80865:81;;;;-1:-1:-1;;;80865:81:0;;22004:2:1;80865:81:0;;;21986:21:1;22043:2;22023:18;;;22016:30;22082:34;22062:18;;;22055:62;-1:-1:-1;;;22133:18:1;;;22126:36;22179:19;;80865:81:0;21802:402:1;80865:81:0;80958:12;80972:23;80999:6;-1:-1:-1;;;;;80999:11:0;81018:5;81025:4;80999:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;80957:73;;;;81048:69;81075:6;81083:7;81092:10;81104:12;81048:26;:69::i;:::-;81041:76;80670:455;-1:-1:-1;;;;;;;80670:455:0:o;108486:296::-;108569:7;108612:4;108569:7;108627:118;108651:5;:12;108647:1;:16;108627:118;;;108700:33;108710:12;108724:5;108730:1;108724:8;;;;;;;;:::i;:::-;;;;;;;108700:9;:33::i;:::-;108685:48;-1:-1:-1;108665:3:0;;;;:::i;:::-;;;;108627:118;;;-1:-1:-1;108762:12:0;108486:296;-1:-1:-1;;;108486:296:0:o;83243:644::-;83428:12;83457:7;83453:427;;;83485:10;:17;83506:1;83485:22;83481:290;;-1:-1:-1;;;;;77088:19:0;;;83695:60;;;;-1:-1:-1;;;83695:60:0;;22690:2:1;83695:60:0;;;22672:21:1;22729:2;22709:18;;;22702:30;22768:31;22748:18;;;22741:59;22817:18;;83695:60:0;22488:353:1;83695:60:0;-1:-1:-1;83792:10:0;83785:17;;83453:427;83835:33;83843:10;83855:12;83835:7;:33::i;115526:149::-;115589:7;115620:1;115616;:5;:51;;115751:13;115845:15;;;115881:4;115874:15;;;115928:4;115912:21;;115616:51;;;115751:13;115845:15;;;115881:4;115874:15;;;115928:4;115912:21;;115624:20;115683:268;84429:552;84590:17;;:21;84586:388;;84822:10;84816:17;84879:15;84866:10;84862:2;84858:19;84851:44;84586:388;84949:12;84942:20;;-1:-1:-1;;;84942:20:0;;;;;;;;:::i;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;293:131:1;-1:-1:-1;;;;;;367:32:1;;357:43;;347:71;;414:1;411;404:12;429:245;487:6;540:2;528:9;519:7;515:23;511:32;508:52;;;556:1;553;546:12;508:52;595:9;582:23;614:30;638:5;614:30;:::i;871:258::-;943:1;953:113;967:6;964:1;961:13;953:113;;;1043:11;;;1037:18;1024:11;;;1017:39;989:2;982:10;953:113;;;1084:6;1081:1;1078:13;1075:48;;;-1:-1:-1;;1119:1:1;1101:16;;1094:27;871:258::o;1134:::-;1176:3;1214:5;1208:12;1241:6;1236:3;1229:19;1257:63;1313:6;1306:4;1301:3;1297:14;1290:4;1283:5;1279:16;1257:63;:::i;:::-;1374:2;1353:15;-1:-1:-1;;1349:29:1;1340:39;;;;1381:4;1336:50;;1134:258;-1:-1:-1;;1134:258:1:o;1397:220::-;1546:2;1535:9;1528:21;1509:4;1566:45;1607:2;1596:9;1592:18;1584:6;1566:45;:::i;1622:180::-;1681:6;1734:2;1722:9;1713:7;1709:23;1705:32;1702:52;;;1750:1;1747;1740:12;1702:52;-1:-1:-1;1773:23:1;;1622:180;-1:-1:-1;1622:180:1:o;2015:131::-;-1:-1:-1;;;;;2090:31:1;;2080:42;;2070:70;;2136:1;2133;2126:12;2151:315;2219:6;2227;2280:2;2268:9;2259:7;2255:23;2251:32;2248:52;;;2296:1;2293;2286:12;2248:52;2335:9;2322:23;2354:31;2379:5;2354:31;:::i;:::-;2404:5;2456:2;2441:18;;;;2428:32;;-1:-1:-1;;;2151:315:1:o;2471:118::-;2557:5;2550:13;2543:21;2536:5;2533:32;2523:60;;2579:1;2576;2569:12;2594:241;2650:6;2703:2;2691:9;2682:7;2678:23;2674:32;2671:52;;;2719:1;2716;2709:12;2671:52;2758:9;2745:23;2777:28;2799:5;2777:28;:::i;3022:247::-;3081:6;3134:2;3122:9;3113:7;3109:23;3105:32;3102:52;;;3150:1;3147;3140:12;3102:52;3189:9;3176:23;3208:31;3233:5;3208:31;:::i;3534:456::-;3611:6;3619;3627;3680:2;3668:9;3659:7;3655:23;3651:32;3648:52;;;3696:1;3693;3686:12;3648:52;3735:9;3722:23;3754:31;3779:5;3754:31;:::i;:::-;3804:5;-1:-1:-1;3861:2:1;3846:18;;3833:32;3874:33;3833:32;3874:33;:::i;:::-;3534:456;;3926:7;;-1:-1:-1;;;3980:2:1;3965:18;;;;3952:32;;3534:456::o;3995:248::-;4063:6;4071;4124:2;4112:9;4103:7;4099:23;4095:32;4092:52;;;4140:1;4137;4130:12;4092:52;-1:-1:-1;;4163:23:1;;;4233:2;4218:18;;;4205:32;;-1:-1:-1;3995:248:1:o;4430:403::-;4513:6;4521;4574:2;4562:9;4553:7;4549:23;4545:32;4542:52;;;4590:1;4587;4580:12;4542:52;4629:9;4616:23;4648:31;4673:5;4648:31;:::i;:::-;4698:5;-1:-1:-1;4755:2:1;4740:18;;4727:32;4768:33;4727:32;4768:33;:::i;:::-;4820:7;4810:17;;;4430:403;;;;;:::o;4838:632::-;5009:2;5061:21;;;5131:13;;5034:18;;;5153:22;;;4980:4;;5009:2;5232:15;;;;5206:2;5191:18;;;4980:4;5275:169;5289:6;5286:1;5283:13;5275:169;;;5350:13;;5338:26;;5419:15;;;;5384:12;;;;5311:1;5304:9;5275:169;;;-1:-1:-1;5461:3:1;;4838:632;-1:-1:-1;;;;;;4838:632:1:o;5475:315::-;5543:6;5551;5604:2;5592:9;5583:7;5579:23;5575:32;5572:52;;;5620:1;5617;5610:12;5572:52;5656:9;5643:23;5633:33;;5716:2;5705:9;5701:18;5688:32;5729:31;5754:5;5729:31;:::i;5795:127::-;5856:10;5851:3;5847:20;5844:1;5837:31;5887:4;5884:1;5877:15;5911:4;5908:1;5901:15;5927:632;5992:5;6022:18;6063:2;6055:6;6052:14;6049:40;;;6069:18;;:::i;:::-;6144:2;6138:9;6112:2;6198:15;;-1:-1:-1;;6194:24:1;;;6220:2;6190:33;6186:42;6174:55;;;6244:18;;;6264:22;;;6241:46;6238:72;;;6290:18;;:::i;:::-;6330:10;6326:2;6319:22;6359:6;6350:15;;6389:6;6381;6374:22;6429:3;6420:6;6415:3;6411:16;6408:25;6405:45;;;6446:1;6443;6436:12;6405:45;6496:6;6491:3;6484:4;6476:6;6472:17;6459:44;6551:1;6544:4;6535:6;6527;6523:19;6519:30;6512:41;;;;5927:632;;;;;:::o;6564:451::-;6633:6;6686:2;6674:9;6665:7;6661:23;6657:32;6654:52;;;6702:1;6699;6692:12;6654:52;6742:9;6729:23;6775:18;6767:6;6764:30;6761:50;;;6807:1;6804;6797:12;6761:50;6830:22;;6883:4;6875:13;;6871:27;-1:-1:-1;6861:55:1;;6912:1;6909;6902:12;6861:55;6935:74;7001:7;6996:2;6983:16;6978:2;6974;6970:11;6935:74;:::i;7205:382::-;7270:6;7278;7331:2;7319:9;7310:7;7306:23;7302:32;7299:52;;;7347:1;7344;7337:12;7299:52;7386:9;7373:23;7405:31;7430:5;7405:31;:::i;:::-;7455:5;-1:-1:-1;7512:2:1;7497:18;;7484:32;7525:30;7484:32;7525:30;:::i;7592:795::-;7687:6;7695;7703;7711;7764:3;7752:9;7743:7;7739:23;7735:33;7732:53;;;7781:1;7778;7771:12;7732:53;7820:9;7807:23;7839:31;7864:5;7839:31;:::i;:::-;7889:5;-1:-1:-1;7946:2:1;7931:18;;7918:32;7959:33;7918:32;7959:33;:::i;:::-;8011:7;-1:-1:-1;8065:2:1;8050:18;;8037:32;;-1:-1:-1;8120:2:1;8105:18;;8092:32;8147:18;8136:30;;8133:50;;;8179:1;8176;8169:12;8133:50;8202:22;;8255:4;8247:13;;8243:27;-1:-1:-1;8233:55:1;;8284:1;8281;8274:12;8233:55;8307:74;8373:7;8368:2;8355:16;8350:2;8346;8342:11;8307:74;:::i;:::-;8297:84;;;7592:795;;;;;;;:::o;8392:683::-;8487:6;8495;8503;8556:2;8544:9;8535:7;8531:23;8527:32;8524:52;;;8572:1;8569;8562:12;8524:52;8608:9;8595:23;8585:33;;8669:2;8658:9;8654:18;8641:32;8692:18;8733:2;8725:6;8722:14;8719:34;;;8749:1;8746;8739:12;8719:34;8787:6;8776:9;8772:22;8762:32;;8832:7;8825:4;8821:2;8817:13;8813:27;8803:55;;8854:1;8851;8844:12;8803:55;8894:2;8881:16;8920:2;8912:6;8909:14;8906:34;;;8936:1;8933;8926:12;8906:34;8989:7;8984:2;8974:6;8971:1;8967:14;8963:2;8959:23;8955:32;8952:45;8949:65;;;9010:1;9007;9000:12;8949:65;9041:2;9037;9033:11;9023:21;;9063:6;9053:16;;;;;8392:683;;;;;:::o;9080:292::-;9138:6;9191:2;9179:9;9170:7;9166:23;9162:32;9159:52;;;9207:1;9204;9197:12;9159:52;9246:9;9233:23;-1:-1:-1;;;;;9289:5:1;9285:38;9278:5;9275:49;9265:77;;9338:1;9335;9328:12;10037:380;10116:1;10112:12;;;;10159;;;10180:61;;10234:4;10226:6;10222:17;10212:27;;10180:61;10287:2;10279:6;10276:14;10256:18;10253:38;10250:161;;10333:10;10328:3;10324:20;10321:1;10314:31;10368:4;10365:1;10358:15;10396:4;10393:1;10386:15;10250:161;;10037:380;;;:::o;10422:402::-;10624:2;10606:21;;;10663:2;10643:18;;;10636:30;10702:34;10697:2;10682:18;;10675:62;-1:-1:-1;;;10768:2:1;10753:18;;10746:36;10814:3;10799:19;;10422:402::o;10829:407::-;11031:2;11013:21;;;11070:2;11050:18;;;11043:30;11109:34;11104:2;11089:18;;11082:62;-1:-1:-1;;;11175:2:1;11160:18;;11153:41;11226:3;11211:19;;10829:407::o;11241:127::-;11302:10;11297:3;11293:20;11290:1;11283:31;11333:4;11330:1;11323:15;11357:4;11354:1;11347:15;11373:128;11413:3;11444:1;11440:6;11437:1;11434:13;11431:39;;;11450:18;;:::i;:::-;-1:-1:-1;11486:9:1;;11373:128::o;12102:245::-;12169:6;12222:2;12210:9;12201:7;12197:23;12193:32;12190:52;;;12238:1;12235;12228:12;12190:52;12270:9;12264:16;12289:28;12311:5;12289:28;:::i;12769:168::-;12809:7;12875:1;12871;12867:6;12863:14;12860:1;12857:21;12852:1;12845:9;12838:17;12834:45;12831:71;;;12882:18;;:::i;:::-;-1:-1:-1;12922:9:1;;12769:168::o;13074:217::-;13114:1;13140;13130:132;;13184:10;13179:3;13175:20;13172:1;13165:31;13219:4;13216:1;13209:15;13247:4;13244:1;13237:15;13130:132;-1:-1:-1;13276:9:1;;13074:217::o;13296:127::-;13357:10;13352:3;13348:20;13345:1;13338:31;13388:4;13385:1;13378:15;13412:4;13409:1;13402:15;13428:135;13467:3;13488:17;;;13485:43;;13508:18;;:::i;:::-;-1:-1:-1;13555:1:1;13544:13;;13428:135::o;13568:125::-;13608:4;13636:1;13633;13630:8;13627:34;;;13641:18;;:::i;:::-;-1:-1:-1;13678:9:1;;13568:125::o;17039:184::-;17109:6;17162:2;17150:9;17141:7;17137:23;17133:32;17130:52;;;17178:1;17175;17168:12;17130:52;-1:-1:-1;17201:16:1;;17039:184;-1:-1:-1;17039:184:1:o;17644:637::-;17924:3;17962:6;17956:13;17978:53;18024:6;18019:3;18012:4;18004:6;18000:17;17978:53;:::i;:::-;18094:13;;18053:16;;;;18116:57;18094:13;18053:16;18150:4;18138:17;;18116:57;:::i;:::-;-1:-1:-1;;;18195:20:1;;18224:22;;;18273:1;18262:13;;17644:637;-1:-1:-1;;;;17644:637:1:o;20820:489::-;-1:-1:-1;;;;;21089:15:1;;;21071:34;;21141:15;;21136:2;21121:18;;21114:43;21188:2;21173:18;;21166:34;;;21236:3;21231:2;21216:18;;21209:31;;;21014:4;;21257:46;;21283:19;;21275:6;21257:46;:::i;:::-;21249:54;20820:489;-1:-1:-1;;;;;;20820:489:1:o;21314:249::-;21383:6;21436:2;21424:9;21415:7;21411:23;21407:32;21404:52;;;21452:1;21449;21442:12;21404:52;21484:9;21478:16;21503:30;21527:5;21503:30;:::i;22209:274::-;22338:3;22376:6;22370:13;22392:53;22438:6;22433:3;22426:4;22418:6;22414:17;22392:53;:::i;:::-;22461:16;;;;;22209:274;-1:-1:-1;;22209:274:1:o
Swarm Source
ipfs://d878aa338fac16ffb161d9cdf7b108e50dcc4cafcd8c62a9058987226bfb00e9
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.