ERC-721
Overview
Max Total Supply
7,777 MBulls
Holders
1,234
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
3 MBullsLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
MBulls
Compiler Version
v0.8.13+commit.abaa5c0e
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2022-07-12 */ // SPDX-License-Identifier: MIT // File: contracts/IERC721A.sol // ERC721A Contracts v4.1.0 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of an ERC721A compliant contract. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set through `_extraData`. uint24 extraData; } /** * @dev Returns the total amount of tokens stored by the contract. * * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens. */ function totalSupply() external view returns (uint256); // ============================== // IERC165 // ============================== /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================== // IERC721 // ============================== /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================== // IERC721Metadata // ============================== /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================== // IERC2309 // ============================== /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` (inclusive) is transferred from `from` to `to`, * as defined in the ERC2309 standard. See `_mintERC2309` for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); } // File: contracts/ERC721A.sol // ERC721A Contracts v4.1.0 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev ERC721 token receiver interface. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, * including the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at `_startTokenId()` * (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Mask of an entry in packed address data. uint256 private constant BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with `_mintERC2309`. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to `_mintERC2309` // is required to cause an overflow, which is unrealistic. uint256 private constant MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The tokenId of the next token to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See `_packedOwnershipOf` implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see `_totalMinted`. */ function totalSupply() public view override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view returns (uint256) { // Counter underflow is impossible as _currentIndex does not decrement, // and it is initialized to `_startTokenId()` unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view returns (uint256) { return _burnCounter; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes of the XOR of // all function selectors in the interface. See: https://eips.ethereum.org/EIPS/eip-165 // e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)` return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> BITPOS_NUMBER_MINTED) & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> BITPOS_NUMBER_BURNED) & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & BITMASK_AUX_COMPLEMENT) | (auxCasted << BITPOS_AUX); _packedAddressData[owner] = packed; } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & BITMASK_BURNED == 0) { // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. // // We can directly compare the packed value. // If the address is zero, packed is zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> BITPOS_START_TIMESTAMP); ownership.burned = packed & BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> BITPOS_EXTRA_DATA); } /** * Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, BITMASK_ADDRESS) // `owner | (block.timestamp << BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << BITPOS_NEXT_INITIALIZED`. result := shl(BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSenderERC721A()) revert ApproveToCaller(); _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & BITMASK_BURNED == 0; // and not burned. } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 tokenId = startTokenId; uint256 end = startTokenId + quantity; do { emit Transfer(address(0), to, tokenId++); } while (tokenId < end); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { mapping(uint256 => address) storage tokenApprovalsPtr = _tokenApprovals; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId]`. assembly { // Compute the slot. mstore(0x00, tokenId) mstore(0x20, tokenApprovalsPtr.slot) approvedAddressSlot := keccak256(0x00, 0x40) // Load the slot's value from storage. approvedAddress := sload(approvedAddressSlot) } } /** * @dev Returns whether the `approvedAddress` is equals to `from` or `msgSender`. */ function _isOwnerOrApproved( address approvedAddress, address from, address msgSender ) private pure returns (bool result) { assembly { // Mask `from` to the lower 160 bits, in case the upper bits somehow aren't clean. from := and(from, BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, BITMASK_ADDRESS) // `msgSender == from || msgSender == approvedAddress`. result := or(eq(msgSender, from), eq(msgSender, approvedAddress)) } } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isOwnerOrApproved(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isOwnerOrApproved(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (BITMASK_BURNED | BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << BITPOS_EXTRA_DATA; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. * This includes minting. * And also called before burning one token. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. * This includes minting. * And also called after one token has been burned. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function _toString(uint256 value) internal pure returns (string memory ptr) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), // but we allocate 128 bytes to keep the free memory pointer 32-byte word aliged. // We will need 1 32-byte word to store the length, // and 3 32-byte words to store a maximum of 78 digits. Total: 32 + 3 * 32 = 128. ptr := add(mload(0x40), 128) // Update the free memory pointer to allocate. mstore(0x40, ptr) // Cache the end of the memory to calculate the length later. let end := ptr // We write the string from the rightmost digit to the leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // Costs a bit more than early returning for the zero case, // but cheaper in terms of deployment and overall runtime costs. for { // Initialize and perform the first pass without check. let temp := value // Move the pointer 1 byte leftwards to point to an empty character slot. ptr := sub(ptr, 1) // Write the character to the pointer. 48 is the ASCII index of '0'. mstore8(ptr, add(48, mod(temp, 10))) temp := div(temp, 10) } temp { // Keep dividing `temp` until zero. temp := div(temp, 10) } { // Body of the for loop. ptr := sub(ptr, 1) mstore8(ptr, add(48, mod(temp, 10))) } let length := sub(end, ptr) // Move the pointer 32 bytes leftwards to make room for the length. ptr := sub(ptr, 32) // Store the length. mstore(ptr, length) } } } // File: contracts/IERC721AQueryable.sol // ERC721A Contracts v4.1.0 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of an ERC721AQueryable compliant contract. */ interface IERC721AQueryable is IERC721A { /** * Invalid query range (`start` >= `stop`). */ error InvalidQueryRange(); /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * - `addr` = `address(0)` * - `startTimestamp` = `0` * - `burned` = `false` * * If the `tokenId` is burned: * - `addr` = `<Address of owner before token was burned>` * - `startTimestamp` = `<Timestamp when token was burned>` * - `burned = `true` * * Otherwise: * - `addr` = `<Address of owner>` * - `startTimestamp` = `<Timestamp of start of ownership>` * - `burned = `false` */ function explicitOwnershipOf(uint256 tokenId) external view returns (TokenOwnership memory); /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] memory tokenIds) external view returns (TokenOwnership[] memory); /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start` < `stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view returns (uint256[] memory); /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(totalSupply) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K pfp collections should be fine). */ function tokensOfOwner(address owner) external view returns (uint256[] memory); } // File: contracts/ERC721AQueryable.sol // ERC721A Contracts v4.1.0 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @title ERC721A Queryable * @dev ERC721A subclass with convenience query functions. */ abstract contract ERC721AQueryable is ERC721A, IERC721AQueryable { /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * - `addr` = `address(0)` * - `startTimestamp` = `0` * - `burned` = `false` * - `extraData` = `0` * * If the `tokenId` is burned: * - `addr` = `<Address of owner before token was burned>` * - `startTimestamp` = `<Timestamp when token was burned>` * - `burned = `true` * - `extraData` = `<Extra data when token was burned>` * * Otherwise: * - `addr` = `<Address of owner>` * - `startTimestamp` = `<Timestamp of start of ownership>` * - `burned = `false` * - `extraData` = `<Extra data at start of ownership>` */ function explicitOwnershipOf(uint256 tokenId) public view override returns (TokenOwnership memory) { TokenOwnership memory ownership; if (tokenId < _startTokenId() || tokenId >= _nextTokenId()) { return ownership; } ownership = _ownershipAt(tokenId); if (ownership.burned) { return ownership; } return _ownershipOf(tokenId); } /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] memory tokenIds) external view override returns (TokenOwnership[] memory) { unchecked { uint256 tokenIdsLength = tokenIds.length; TokenOwnership[] memory ownerships = new TokenOwnership[](tokenIdsLength); for (uint256 i; i != tokenIdsLength; ++i) { ownerships[i] = explicitOwnershipOf(tokenIds[i]); } return ownerships; } } /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start` < `stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view override returns (uint256[] memory) { unchecked { if (start >= stop) revert InvalidQueryRange(); uint256 tokenIdsIdx; uint256 stopLimit = _nextTokenId(); // Set `start = max(start, _startTokenId())`. if (start < _startTokenId()) { start = _startTokenId(); } // Set `stop = min(stop, stopLimit)`. if (stop > stopLimit) { stop = stopLimit; } uint256 tokenIdsMaxLength = balanceOf(owner); // Set `tokenIdsMaxLength = min(balanceOf(owner), stop - start)`, // to cater for cases where `balanceOf(owner)` is too big. if (start < stop) { uint256 rangeLength = stop - start; if (rangeLength < tokenIdsMaxLength) { tokenIdsMaxLength = rangeLength; } } else { tokenIdsMaxLength = 0; } uint256[] memory tokenIds = new uint256[](tokenIdsMaxLength); if (tokenIdsMaxLength == 0) { return tokenIds; } // We need to call `explicitOwnershipOf(start)`, // because the slot at `start` may not be initialized. TokenOwnership memory ownership = explicitOwnershipOf(start); address currOwnershipAddr; // If the starting slot exists (i.e. not burned), initialize `currOwnershipAddr`. // `ownership.address` will not be zero, as `start` is clamped to the valid token ID range. if (!ownership.burned) { currOwnershipAddr = ownership.addr; } for (uint256 i = start; i != stop && tokenIdsIdx != tokenIdsMaxLength; ++i) { ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } // Downsize the array to fit. assembly { mstore(tokenIds, tokenIdsIdx) } return tokenIds; } } /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(totalSupply) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K pfp collections should be fine). */ function tokensOfOwner(address owner) external view override returns (uint256[] memory) { unchecked { uint256 tokenIdsIdx; address currOwnershipAddr; uint256 tokenIdsLength = balanceOf(owner); uint256[] memory tokenIds = new uint256[](tokenIdsLength); TokenOwnership memory ownership; for (uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i) { ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } return tokenIds; } } } // File: @openzeppelin/contracts/utils/Counters.sol // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } } // File: @openzeppelin/contracts/security/ReentrancyGuard.sol // OpenZeppelin Contracts v4.4.1 (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() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // 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/Strings.sol // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_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) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @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] = _HEX_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/Address.sol // OpenZeppelin Contracts (last updated v4.7.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 functionCall(target, data, "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"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(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) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(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) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason 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 { // 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.7.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/utils/cryptography/MerkleProof.sol // OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. * * 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. */ 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 proved to be a part of a Merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * _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} * * _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 the sibling nodes in `proof`, * consuming from one or the other at each step according to the instructions given by * `proofFlags`. * * _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} * * _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: @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/security/Pausable.sol // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } } // File: @openzeppelin/contracts/finance/PaymentSplitter.sol // OpenZeppelin Contracts (last updated v4.7.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"); _released[account] += payment; _totalReleased += 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"); _erc20Released[token][account] += payment; _erc20TotalReleased[token] += payment; SafeERC20.safeTransfer(token, account, payment); emit ERC20PaymentReleased(token, account, payment); } /** * @dev internal logic for computing the pending payment of an `account` given the token historical balances and * already released amounts. */ function _pendingPayment( address account, uint256 totalReceived, uint256 alreadyReleased ) private view returns (uint256) { return (totalReceived * _shares[account]) / _totalShares - alreadyReleased; } /** * @dev Add a new payee to the contract. * @param account The address of the payee to add. * @param shares_ The number of shares owned by the payee. */ function _addPayee(address account, uint256 shares_) private { require(account != address(0), "PaymentSplitter: account is the zero address"); require(shares_ > 0, "PaymentSplitter: shares are 0"); require(_shares[account] == 0, "PaymentSplitter: account already has shares"); _payees.push(account); _shares[account] = shares_; _totalShares = _totalShares + shares_; emit PayeeAdded(account, shares_); } } // File: @openzeppelin/contracts/access/Ownable.sol // OpenZeppelin Contracts (last updated 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/escrow/Escrow.sol // OpenZeppelin Contracts (last updated v4.7.0) (utils/escrow/Escrow.sol) pragma solidity ^0.8.0; /** * @title Escrow * @dev Base escrow contract, holds funds designated for a payee until they * withdraw them. * * Intended usage: This contract (and derived escrow contracts) should be a * standalone contract, that only interacts with the contract that instantiated * it. That way, it is guaranteed that all Ether will be handled according to * the `Escrow` rules, and there is no need to check for payable functions or * transfers in the inheritance tree. The contract that uses the escrow as its * payment method should be its owner, and provide public methods redirecting * to the escrow's deposit and withdraw. */ contract Escrow is Ownable { using Address for address payable; event Deposited(address indexed payee, uint256 weiAmount); event Withdrawn(address indexed payee, uint256 weiAmount); mapping(address => uint256) private _deposits; function depositsOf(address payee) public view returns (uint256) { return _deposits[payee]; } /** * @dev Stores the sent amount as credit to be withdrawn. * @param payee The destination address of the funds. * * Emits a {Deposited} event. */ function deposit(address payee) public payable virtual onlyOwner { uint256 amount = msg.value; _deposits[payee] += amount; emit Deposited(payee, amount); } /** * @dev Withdraw accumulated balance for a payee, forwarding all gas to the * recipient. * * WARNING: Forwarding all gas opens the door to reentrancy vulnerabilities. * Make sure you trust the recipient, or are either following the * checks-effects-interactions pattern or using {ReentrancyGuard}. * * @param payee The address whose funds will be withdrawn and transferred to. * * Emits a {Withdrawn} event. */ function withdraw(address payable payee) public virtual onlyOwner { uint256 payment = _deposits[payee]; _deposits[payee] = 0; payee.sendValue(payment); emit Withdrawn(payee, payment); } } // File: @openzeppelin/contracts/security/PullPayment.sol // OpenZeppelin Contracts (last updated v4.7.0) (security/PullPayment.sol) pragma solidity ^0.8.0; /** * @dev Simple implementation of a * https://consensys.github.io/smart-contract-best-practices/recommendations/#favor-pull-over-push-for-external-calls[pull-payment] * strategy, where the paying contract doesn't interact directly with the * receiver account, which must withdraw its payments itself. * * Pull-payments are often considered the best practice when it comes to sending * Ether, security-wise. It prevents recipients from blocking execution, and * eliminates reentrancy concerns. * * 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]. * * To use, derive from the `PullPayment` contract, and use {_asyncTransfer} * instead of Solidity's `transfer` function. Payees can query their due * payments with {payments}, and retrieve them with {withdrawPayments}. */ abstract contract PullPayment { Escrow private immutable _escrow; constructor() { _escrow = new Escrow(); } /** * @dev Withdraw accumulated payments, forwarding all gas to the recipient. * * Note that _any_ account can call this function, not just the `payee`. * This means that contracts unaware of the `PullPayment` protocol can still * receive funds this way, by having a separate account call * {withdrawPayments}. * * WARNING: Forwarding all gas opens the door to reentrancy vulnerabilities. * Make sure you trust the recipient, or are either following the * checks-effects-interactions pattern or using {ReentrancyGuard}. * * @param payee Whose payments will be withdrawn. * * Causes the `escrow` to emit a {Withdrawn} event. */ function withdrawPayments(address payable payee) public virtual { _escrow.withdraw(payee); } /** * @dev Returns the payments owed to an address. * @param dest The creditor's address. */ function payments(address dest) public view returns (uint256) { return _escrow.depositsOf(dest); } /** * @dev Called by the payer to store the sent amount as credit to be pulled. * Funds sent in this way are stored in an intermediate {Escrow} contract, so * there is no danger of them being spent before withdrawal. * * @param dest The destination address of the funds. * @param amount The amount to transfer. * * Causes the `escrow` to emit a {Deposited} event. */ function _asyncTransfer(address dest, uint256 amount) internal virtual { _escrow.deposit{value: amount}(dest); } } // File: contracts/MBulls.sol pragma solidity ^0.8.13; //@NFT contract MBulls is Ownable, ERC721A, ERC721AQueryable, PaymentSplitter, ReentrancyGuard { using Strings for uint; using Counters for Counters.Counter; enum Step { FreeMint, PublicSale, SoldOut, Reveal } string public baseURI; Step public sellingStep; uint private constant MAX_SUPPLY = 7777; uint private constant MAX_TEAM = 7; uint private constant MAX_FREE = 1993; uint private constant MAX_PUBLIC = 5777; uint public zero_price = 0 ether; uint public publicSalePrice = 0.007 ether; mapping(address => uint) public amountNFTperWalletFreeMint; mapping(address => uint) public amountNFTperWalletpublicSaleMint; bool public revealed = false; bool public paused = false; string public baseExtension = ".json"; Counters.Counter private _nftIdCounter; uint public saleStartTime = 1650326745; uint private teamLength; constructor(address[] memory _team, uint[] memory _teamShares, string memory _theBaseURI) ERC721A("Moon Bulls NFT", "MBulls") PaymentSplitter(_team, _teamShares) { _nftIdCounter.increment(); baseURI = _theBaseURI; teamLength = _team.length; } modifier callerIsUser() { require(tx.origin == msg.sender, "The caller is another contract"); _; } function getBalance() public view returns (uint) { return address(this).balance; } function setPaused(bool _paused) external onlyOwner { paused = _paused; } function changePriceSale(uint _publicSalePrice) external onlyOwner { publicSalePrice = _publicSalePrice; } function setSaleStartTime(uint _saleStartTime) external onlyOwner { saleStartTime = _saleStartTime; } function setBaseUri(string memory _newBaseURI) external onlyOwner { baseURI = _newBaseURI; } function setBaseExtension(string memory _baseExtension) external onlyOwner { baseExtension = _baseExtension; } function reveal() external onlyOwner{ revealed = true; } function _baseURI() internal view virtual override returns (string memory) { return baseURI; } function currentTime() internal view returns(uint) { return block.timestamp; } function setStep(uint _step) external onlyOwner { sellingStep = Step(_step); } function freeMint(address _account, uint _quantity) external payable callerIsUser { uint price = zero_price; require(sellingStep == Step.FreeMint, "Free Mint is not activated"); require(amountNFTperWalletFreeMint[msg.sender] + _quantity <= 3, "You can only get 3x NFT on the Free Mint"); require(totalSupply() + _quantity <= MAX_TEAM + MAX_FREE, "There's no more supply for the Free Mint"); require(msg.value >= price * _quantity, "Not enought funds"); amountNFTperWalletFreeMint[msg.sender] += _quantity; _safeMint(_account, _quantity); } function publicSaleMint(address _account, uint _quantity) external payable callerIsUser { uint price = publicSalePrice; require(price != 0, "Price is 0"); require(sellingStep == Step.PublicSale, "Public sale is not activated"); require(amountNFTperWalletpublicSaleMint[msg.sender] + _quantity <= 7, "You can only get 3x NFT on the Free Mint"); require(totalSupply() + _quantity <= MAX_SUPPLY, "Max supply exceeded"); require(msg.value >= price * _quantity, "Not enought funds"); amountNFTperWalletpublicSaleMint[msg.sender] += _quantity; _safeMint(_account, _quantity); } function Airdrop(address _to, uint _quantity) external onlyOwner { require(totalSupply() + _quantity <= MAX_SUPPLY, "Reached max Supply"); _safeMint(_to, _quantity); } function tokenURI(uint _tokenId) public view virtual override(ERC721A, IERC721A) returns (string memory) { require(_exists(_tokenId), "URI query for nonexistent token"); return string(abi.encodePacked(baseURI, _tokenId.toString(), ".json")); } //ReleaseALL function releaseAll() external onlyOwner nonReentrant{ for(uint i = 0 ; i < teamLength ; i++) { release(payable(payee(i))); } } function withdrawMoney() external onlyOwner nonReentrant { (bool success, ) = msg.sender.call{value: address(this).balance}(""); require(success, "Transfer failed."); } receive() override external payable { revert('Only if you mint'); } }
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":"string","name":"_theBaseURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"InvalidQueryRange","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"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":"_to","type":"address"},{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"Airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"amountNFTperWalletFreeMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"amountNFTperWalletpublicSaleMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseExtension","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_publicSalePrice","type":"uint256"}],"name":"changePriceSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"freeMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"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":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"publicSaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicSalePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"releasable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"releasable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"releaseAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sellingStep","outputs":[{"internalType":"enum MBulls.Step","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseExtension","type":"string"}],"name":"setBaseExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_paused","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_saleStartTime","type":"uint256"}],"name":"setSaleStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_step","type":"uint256"}],"name":"setStep","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":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawMoney","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"zero_price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60006013556618de76816d80006014556017805461ffff1916905560c06040526005608081905264173539b7b760d91b60a0908152620000439160189190620004d2565b5063625dfcd9601a553480156200005957600080fd5b5060405162003a6438038062003a648339810160408190526200007c91620006ef565b82826040518060400160405280600e81526020016d135bdbdb88109d5b1b1cc813919560921b815250604051806040016040528060068152602001654d42756c6c7360d01b815250620000de620000d86200028760201b60201c565b6200028b565b8151620000f3906003906020850190620004d2565b50805162000109906004906020840190620004d2565b50600060015550508051825114620001835760405162461bcd60e51b815260206004820152603260248201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726044820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b60648201526084015b60405180910390fd5b6000825111620001d65760405162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f2070617965657300000000000060448201526064016200017a565b60005b825181101562000242576200022d838281518110620001fc57620001fc620007f4565b6020026020010151838381518110620002195762000219620007f4565b6020026020010151620002db60201b60201c565b80620002398162000820565b915050620001d9565b5050506001601081905550620002646019620004c960201b62001f1c1760201c565b805162000279906011906020840190620004d2565b50509051601b555062000893565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b038216620003485760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b60648201526084016200017a565b600081116200039a5760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a2073686172657320617265203000000060448201526064016200017a565b6001600160a01b0382166000908152600b602052604090205415620004165760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b60648201526084016200017a565b600d8054600181019091557fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb50180546001600160a01b0319166001600160a01b0384169081179091556000908152600b60205260409020819055600954620004809082906200083c565b600955604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b80546001019055565b828054620004e09062000857565b90600052602060002090601f0160209004810192826200050457600085556200054f565b82601f106200051f57805160ff19168380011785556200054f565b828001600101855582156200054f579182015b828111156200054f57825182559160200191906001019062000532565b506200055d92915062000561565b5090565b5b808211156200055d576000815560010162000562565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715620005b957620005b962000578565b604052919050565b60006001600160401b03821115620005dd57620005dd62000578565b5060051b60200190565b600082601f830112620005f957600080fd5b81516020620006126200060c83620005c1565b6200058e565b82815260059290921b840181019181810190868411156200063257600080fd5b8286015b848110156200064f578051835291830191830162000636565b509695505050505050565b600082601f8301126200066c57600080fd5b81516001600160401b0381111562000688576200068862000578565b60206200069e601f8301601f191682016200058e565b8281528582848701011115620006b357600080fd5b60005b83811015620006d3578581018301518282018401528201620006b6565b83811115620006e55760008385840101525b5095945050505050565b6000806000606084860312156200070557600080fd5b83516001600160401b03808211156200071d57600080fd5b818601915086601f8301126200073257600080fd5b81516020620007456200060c83620005c1565b82815260059290921b8401810191818101908a8411156200076557600080fd5b948201945b838610156200079c5785516001600160a01b03811681146200078c5760008081fd5b825294820194908201906200076a565b91890151919750909350505080821115620007b657600080fd5b620007c487838801620005e7565b93506040860151915080821115620007db57600080fd5b50620007ea868287016200065a565b9150509250925092565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016200083557620008356200080a565b5060010190565b600082198211156200085257620008526200080a565b500190565b600181811c908216806200086c57607f821691505b6020821081036200088d57634e487b7160e01b600052602260045260246000fd5b50919050565b6131c180620008a36000396000f3fe6080604052600436106103545760003560e01c80638462151c116101c6578063ac5ae11b116100f7578063ce7c2ac211610095578063e33b7de31161006f578063e33b7de314610a3c578063e985e9c514610a51578063f2fde38b14610a9a578063f8dcbddb14610aba57600080fd5b8063ce7c2ac2146109b0578063d79779b2146109e6578063da3ef23f14610a1c57600080fd5b8063c45ac050116100d1578063c45ac05014610934578063c668286214610954578063c87b56dd14610969578063cbccefb21461098957600080fd5b8063ac5ae11b146108d4578063b88d4fde146108e7578063c23dc68f1461090757600080fd5b806399a2557a11610164578063a22cb4651161013e578063a22cb4651461086a578063a3f8eace1461088a578063a475b5dd146108aa578063ac446002146108bf57600080fd5b806399a2557a146108145780639b6860c814610834578063a0bcfc7f1461084a57600080fd5b80638da5cb5b116101a05780638da5cb5b1461079857806395d89b41146107b65780639852595c146107cb5780639883566e1461080157600080fd5b80638462151c1461072b5780638b83209b146107585780638c32c5681461077857600080fd5b8063406072a9116102a05780635be7fde81161023e5780636c0360eb116102185780636c0360eb146106b45780636df5c32d146106c957806370a08231146106f6578063715018a61461071657600080fd5b80635be7fde8146106605780635c975abb146106755780636352211e1461069457600080fd5b806350c6fbdc1161027a57806350c6fbdc146105e357806351830227146105f9578063525f8a5c146106135780635bbb21771461063357600080fd5b8063406072a91461055d57806342842e0e146105a357806348b75044146105c357600080fd5b806318160ddd1161030d5780631dcfab39116102e75780631dcfab39146104db57806323b872dd146104fb57806339976d431461051b5780633a98ef391461054857600080fd5b806318160ddd1461048c57806319165587146104a55780631cbaee2d146104c557600080fd5b806301ffc9a71461039e57806306fdde03146103d3578063081812fc146103f5578063095ea7b31461042d57806312065fe01461044f57806316c38b3c1461046c57600080fd5b366103995760405162461bcd60e51b815260206004820152601060248201526f13db9b1e481a59881e5bdd481b5a5b9d60821b60448201526064015b60405180910390fd5b600080fd5b3480156103aa57600080fd5b506103be6103b936600461290d565b610ada565b60405190151581526020015b60405180910390f35b3480156103df57600080fd5b506103e8610b2c565b6040516103ca9190612982565b34801561040157600080fd5b50610415610410366004612995565b610bbe565b6040516001600160a01b0390911681526020016103ca565b34801561043957600080fd5b5061044d6104483660046129c3565b610c02565b005b34801561045b57600080fd5b50475b6040519081526020016103ca565b34801561047857600080fd5b5061044d6104873660046129fd565b610ca2565b34801561049857600080fd5b506002546001540361045e565b3480156104b157600080fd5b5061044d6104c0366004612a1a565b610cc4565b3480156104d157600080fd5b5061045e601a5481565b3480156104e757600080fd5b5061044d6104f6366004612995565b610dbd565b34801561050757600080fd5b5061044d610516366004612a37565b610dca565b34801561052757600080fd5b5061045e610536366004612a1a565b60166020526000908152604090205481565b34801561055457600080fd5b5060095461045e565b34801561056957600080fd5b5061045e610578366004612a78565b6001600160a01b039182166000908152600f6020908152604080832093909416825291909152205490565b3480156105af57600080fd5b5061044d6105be366004612a37565b610f62565b3480156105cf57600080fd5b5061044d6105de366004612a78565b610f82565b3480156105ef57600080fd5b5061045e60135481565b34801561060557600080fd5b506017546103be9060ff1681565b34801561061f57600080fd5b5061044d61062e366004612995565b6110a5565b34801561063f57600080fd5b5061065361064e366004612af8565b6110b2565b6040516103ca9190612bdb565b34801561066c57600080fd5b5061044d611180565b34801561068157600080fd5b506017546103be90610100900460ff1681565b3480156106a057600080fd5b506104156106af366004612995565b611212565b3480156106c057600080fd5b506103e861121d565b3480156106d557600080fd5b5061045e6106e4366004612a1a565b60156020526000908152604090205481565b34801561070257600080fd5b5061045e610711366004612a1a565b6112ab565b34801561072257600080fd5b5061044d6112fa565b34801561073757600080fd5b5061074b610746366004612a1a565b61130e565b6040516103ca9190612c1d565b34801561076457600080fd5b50610415610773366004612995565b611417565b34801561078457600080fd5b5061044d6107933660046129c3565b611447565b3480156107a457600080fd5b506000546001600160a01b0316610415565b3480156107c257600080fd5b506103e86114bb565b3480156107d757600080fd5b5061045e6107e6366004612a1a565b6001600160a01b03166000908152600c602052604090205490565b61044d61080f3660046129c3565b6114ca565b34801561082057600080fd5b5061074b61082f366004612c55565b6116be565b34801561084057600080fd5b5061045e60145481565b34801561085657600080fd5b5061044d610865366004612ce2565b611838565b34801561087657600080fd5b5061044d610885366004612d2b565b611853565b34801561089657600080fd5b5061045e6108a5366004612a1a565b6118e8565b3480156108b657600080fd5b5061044d611929565b3480156108cb57600080fd5b5061044d611940565b61044d6108e23660046129c3565b611a2a565b3480156108f357600080fd5b5061044d610902366004612d59565b611c27565b34801561091357600080fd5b50610927610922366004612995565b611c71565b6040516103ca9190612dd9565b34801561094057600080fd5b5061045e61094f366004612a78565b611ce9565b34801561096057600080fd5b506103e8611db4565b34801561097557600080fd5b506103e8610984366004612995565b611dc1565b34801561099557600080fd5b506012546109a39060ff1681565b6040516103ca9190612dfd565b3480156109bc57600080fd5b5061045e6109cb366004612a1a565b6001600160a01b03166000908152600b602052604090205490565b3480156109f257600080fd5b5061045e610a01366004612a1a565b6001600160a01b03166000908152600e602052604090205490565b348015610a2857600080fd5b5061044d610a37366004612ce2565b611e4a565b348015610a4857600080fd5b50600a5461045e565b348015610a5d57600080fd5b506103be610a6c366004612a78565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b348015610aa657600080fd5b5061044d610ab5366004612a1a565b611e65565b348015610ac657600080fd5b5061044d610ad5366004612995565b611ede565b60006301ffc9a760e01b6001600160e01b031983161480610b0b57506380ac58cd60e01b6001600160e01b03198316145b80610b265750635b5e139f60e01b6001600160e01b03198316145b92915050565b606060038054610b3b90612e25565b80601f0160208091040260200160405190810160405280929190818152602001828054610b6790612e25565b8015610bb45780601f10610b8957610100808354040283529160200191610bb4565b820191906000526020600020905b815481529060010190602001808311610b9757829003601f168201915b5050505050905090565b6000610bc982611f25565b610be6576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b6000610c0d82611212565b9050336001600160a01b03821614610c4657610c298133610a6c565b610c46576040516367d9dca160e11b815260040160405180910390fd5b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b610caa611f4d565b601780549115156101000261ff0019909216919091179055565b6001600160a01b0381166000908152600b6020526040902054610cf95760405162461bcd60e51b815260040161039090612e5f565b6000610d04826118e8565b905080600003610d265760405162461bcd60e51b815260040161039090612ea5565b6001600160a01b0382166000908152600c602052604081208054839290610d4e908490612f06565b9250508190555080600a6000828254610d679190612f06565b90915550610d7790508282611fa7565b604080516001600160a01b0384168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a15050565b610dc5611f4d565b601455565b6000610dd5826120c0565b9050836001600160a01b0316816001600160a01b031614610e085760405162a1148160e81b815260040160405180910390fd5b60008281526007602052604090208054338082146001600160a01b03881690911417610e5557610e388633610a6c565b610e5557604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610e7c57604051633a954ecd60e21b815260040160405180910390fd5b8015610e8757600082555b6001600160a01b038681166000908152600660205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260056020526040812091909155600160e11b84169003610f1957600184016000818152600560205260408120549003610f17576001548114610f175760008181526005602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b610f7d83838360405180602001604052806000815250611c27565b505050565b6001600160a01b0381166000908152600b6020526040902054610fb75760405162461bcd60e51b815260040161039090612e5f565b6000610fc38383611ce9565b905080600003610fe55760405162461bcd60e51b815260040161039090612ea5565b6001600160a01b038084166000908152600f602090815260408083209386168352929052908120805483929061101c908490612f06565b90915550506001600160a01b0383166000908152600e602052604081208054839290611049908490612f06565b9091555061105a9050838383612127565b604080516001600160a01b038481168252602082018490528516917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a2505050565b6110ad611f4d565b601a55565b805160609060008167ffffffffffffffff8111156110d2576110d2612ab1565b60405190808252806020026020018201604052801561112457816020015b6040805160808101825260008082526020808301829052928201819052606082015282526000199092019101816110f05790505b50905060005b8281146111785761115385828151811061114657611146612f1e565b6020026020010151611c71565b82828151811061116557611165612f1e565b602090810291909101015260010161112a565b509392505050565b611188611f4d565b6002601054036111da5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610390565b600260105560005b601b5481101561120a576111f86104c082611417565b8061120281612f34565b9150506111e2565b506001601055565b6000610b26826120c0565b6011805461122a90612e25565b80601f016020809104026020016040519081016040528092919081815260200182805461125690612e25565b80156112a35780601f10611278576101008083540402835291602001916112a3565b820191906000526020600020905b81548152906001019060200180831161128657829003601f168201915b505050505081565b60006001600160a01b0382166112d4576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526006602052604090205467ffffffffffffffff1690565b611302611f4d565b61130c6000612179565b565b6060600080600061131e856112ab565b905060008167ffffffffffffffff81111561133b5761133b612ab1565b604051908082528060200260200182016040528015611364578160200160208202803683370190505b50905061139160408051608081018252600080825260208201819052918101829052606081019190915290565b60005b83861461140b576113a4816121c9565b915081604001516114035781516001600160a01b0316156113c457815194505b876001600160a01b0316856001600160a01b03160361140357808387806001019850815181106113f6576113f6612f1e565b6020026020010181815250505b600101611394565b50909695505050505050565b6000600d828154811061142c5761142c612f1e565b6000918252602090912001546001600160a01b031692915050565b61144f611f4d565b611e61816114606002546001540390565b61146a9190612f06565b11156114ad5760405162461bcd60e51b815260206004820152601260248201527152656163686564206d617820537570706c7960701b6044820152606401610390565b6114b78282612205565b5050565b606060048054610b3b90612e25565b3233146115195760405162461bcd60e51b815260206004820152601e60248201527f5468652063616c6c657220697320616e6f7468657220636f6e747261637400006044820152606401610390565b601354600060125460ff16600381111561153557611535612de7565b146115825760405162461bcd60e51b815260206004820152601a60248201527f46726565204d696e74206973206e6f74206163746976617465640000000000006044820152606401610390565b336000908152601560205260409020546003906115a0908490612f06565b11156115be5760405162461bcd60e51b815260040161039090612f4d565b6115cb6107c96007612f06565b826115d96002546001540390565b6115e39190612f06565b11156116425760405162461bcd60e51b815260206004820152602860248201527f54686572652773206e6f206d6f726520737570706c7920666f722074686520466044820152671c995948135a5b9d60c21b6064820152608401610390565b61164c8282612f95565b34101561168f5760405162461bcd60e51b81526020600482015260116024820152704e6f7420656e6f756768742066756e647360781b6044820152606401610390565b33600090815260156020526040812080548492906116ae908490612f06565b90915550610f7d90508383612205565b60608183106116e057604051631960ccad60e11b815260040160405180910390fd5b6000806116ec60015490565b9050808411156116fa578093505b6000611705876112ab565b905084861015611724578585038181101561171e578091505b50611728565b5060005b60008167ffffffffffffffff81111561174357611743612ab1565b60405190808252806020026020018201604052801561176c578160200160208202803683370190505b5090508160000361178257935061183192505050565b600061178d88611c71565b90506000816040015161179e575080515b885b8881141580156117b05750848714155b15611825576117be816121c9565b9250826040015161181d5782516001600160a01b0316156117de57825191505b8a6001600160a01b0316826001600160a01b03160361181d578084888060010199508151811061181057611810612f1e565b6020026020010181815250505b6001016117a0565b50505092835250909150505b9392505050565b611840611f4d565b80516114b790601190602084019061285e565b336001600160a01b0383160361187c5760405163b06307db60e01b815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000806118f4600a5490565b6118fe9047612f06565b90506118318382611924866001600160a01b03166000908152600c602052604090205490565b61221f565b611931611f4d565b6017805460ff19166001179055565b611948611f4d565b60026010540361199a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610390565b6002601055604051600090339047908381818185875af1925050503d80600081146119e1576040519150601f19603f3d011682016040523d82523d6000602084013e6119e6565b606091505b505090508061120a5760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b6044820152606401610390565b323314611a795760405162461bcd60e51b815260206004820152601e60248201527f5468652063616c6c657220697320616e6f7468657220636f6e747261637400006044820152606401610390565b6014546000819003611aba5760405162461bcd60e51b815260206004820152600a6024820152690507269636520697320360b41b6044820152606401610390565b600160125460ff166003811115611ad357611ad3612de7565b14611b205760405162461bcd60e51b815260206004820152601c60248201527f5075626c69632073616c65206973206e6f7420616374697661746564000000006044820152606401610390565b33600090815260166020526040902054600790611b3e908490612f06565b1115611b5c5760405162461bcd60e51b815260040161039090612f4d565b611e6182611b6d6002546001540390565b611b779190612f06565b1115611bbb5760405162461bcd60e51b815260206004820152601360248201527213585e081cdd5c1c1b1e48195e18d959591959606a1b6044820152606401610390565b611bc58282612f95565b341015611c085760405162461bcd60e51b81526020600482015260116024820152704e6f7420656e6f756768742066756e647360781b6044820152606401610390565b33600090815260166020526040812080548492906116ae908490612f06565b611c32848484610dca565b6001600160a01b0383163b15611c6b57611c4e8484848461225d565b611c6b576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6040805160808082018352600080835260208084018290528385018290526060808501839052855193840186528284529083018290529382018190529281018390529091506001548310611cc55792915050565b611cce836121c9565b9050806040015115611ce05792915050565b61183183612348565b6001600160a01b0382166000908152600e602052604081205481906040516370a0823160e01b81523060048201526001600160a01b038616906370a0823190602401602060405180830381865afa158015611d48573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d6c9190612fb4565b611d769190612f06565b6001600160a01b038086166000908152600f6020908152604080832093881683529290522054909150611dac908490839061221f565b949350505050565b6018805461122a90612e25565b6060611dcc82611f25565b611e185760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e006044820152606401610390565b6011611e238361237d565b604051602001611e34929190612fe9565b6040516020818303038152906040529050919050565b611e52611f4d565b80516114b790601890602084019061285e565b611e6d611f4d565b6001600160a01b038116611ed25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610390565b611edb81612179565b50565b611ee6611f4d565b806003811115611ef857611ef8612de7565b6012805460ff19166001836003811115611f1457611f14612de7565b021790555050565b80546001019055565b600060015482108015610b26575050600090815260056020526040902054600160e01b161590565b6000546001600160a01b0316331461130c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610390565b80471015611ff75760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610390565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612044576040519150601f19603f3d011682016040523d82523d6000602084013e612049565b606091505b5050905080610f7d5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610390565b60008160015481101561210e5760008181526005602052604081205490600160e01b8216900361210c575b806000036118315750600019016000818152600560205260409020546120eb565b505b604051636f96cda160e11b815260040160405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610f7d90849061247e565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b604080516080810182526000808252602082018190529181018290526060810191909152600082815260056020526040902054610b2690612550565b6114b7828260405180602001604052806000815250612598565b6009546001600160a01b0384166000908152600b6020526040812054909183916122499086612f95565b61225391906130b9565b611dac91906130cd565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906122929033908990889088906004016130e4565b6020604051808303816000875af19250505080156122cd575060408051601f3d908101601f191682019092526122ca91810190613121565b60015b61232b573d8080156122fb576040519150601f19603f3d011682016040523d82523d6000602084013e612300565b606091505b508051600003612323576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b604080516080810182526000808252602082018190529181018290526060810191909152610b26612378836120c0565b612550565b6060816000036123a45750506040805180820190915260018152600360fc1b602082015290565b8160005b81156123ce57806123b881612f34565b91506123c79050600a836130b9565b91506123a8565b60008167ffffffffffffffff8111156123e9576123e9612ab1565b6040519080825280601f01601f191660200182016040528015612413576020820181803683370190505b5090505b8415611dac576124286001836130cd565b9150612435600a8661313e565b612440906030612f06565b60f81b81838151811061245557612455612f1e565b60200101906001600160f81b031916908160001a905350612477600a866130b9565b9450612417565b60006124d3826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166126059092919063ffffffff16565b805190915015610f7d57808060200190518101906124f19190613152565b610f7d5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610390565b604080516080810182526001600160a01b038316815260a083901c67ffffffffffffffff166020820152600160e01b831615159181019190915260e89190911c606082015290565b6125a28383612614565b6001600160a01b0383163b15610f7d576001548281035b6125cc600086838060010194508661225d565b6125e9576040516368d2bf6b60e11b815260040160405180910390fd5b8181106125b95781600154146125fe57600080fd5b5050505050565b6060611dac84846000856126f4565b6001546001600160a01b03831661263d57604051622e076360e81b815260040160405180910390fd5b8160000361265e5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038316600081815260066020526040902080546801000000000000000185020190554260a01b6001841460e11b1717600082815260056020526040902055808281015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48082106126a85760015550505050565b6060824710156127555760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610390565b6001600160a01b0385163b6127ac5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610390565b600080866001600160a01b031685876040516127c8919061316f565b60006040518083038185875af1925050503d8060008114612805576040519150601f19603f3d011682016040523d82523d6000602084013e61280a565b606091505b509150915061281a828286612825565b979650505050505050565b60608315612834575081611831565b8251156128445782518084602001fd5b8160405162461bcd60e51b81526004016103909190612982565b82805461286a90612e25565b90600052602060002090601f01602090048101928261288c57600085556128d2565b82601f106128a557805160ff19168380011785556128d2565b828001600101855582156128d2579182015b828111156128d25782518255916020019190600101906128b7565b506128de9291506128e2565b5090565b5b808211156128de57600081556001016128e3565b6001600160e01b031981168114611edb57600080fd5b60006020828403121561291f57600080fd5b8135611831816128f7565b60005b8381101561294557818101518382015260200161292d565b83811115611c6b5750506000910152565b6000815180845261296e81602086016020860161292a565b601f01601f19169290920160200192915050565b6020815260006118316020830184612956565b6000602082840312156129a757600080fd5b5035919050565b6001600160a01b0381168114611edb57600080fd5b600080604083850312156129d657600080fd5b82356129e1816129ae565b946020939093013593505050565b8015158114611edb57600080fd5b600060208284031215612a0f57600080fd5b8135611831816129ef565b600060208284031215612a2c57600080fd5b8135611831816129ae565b600080600060608486031215612a4c57600080fd5b8335612a57816129ae565b92506020840135612a67816129ae565b929592945050506040919091013590565b60008060408385031215612a8b57600080fd5b8235612a96816129ae565b91506020830135612aa6816129ae565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612af057612af0612ab1565b604052919050565b60006020808385031215612b0b57600080fd5b823567ffffffffffffffff80821115612b2357600080fd5b818501915085601f830112612b3757600080fd5b813581811115612b4957612b49612ab1565b8060051b9150612b5a848301612ac7565b8181529183018401918481019088841115612b7457600080fd5b938501935b83851015612b9257843582529385019390850190612b79565b98975050505050505050565b80516001600160a01b0316825260208082015167ffffffffffffffff169083015260408082015115159083015260609081015162ffffff16910152565b6020808252825182820181905260009190848201906040850190845b8181101561140b57612c0a838551612b9e565b9284019260809290920191600101612bf7565b6020808252825182820181905260009190848201906040850190845b8181101561140b57835183529284019291840191600101612c39565b600080600060608486031215612c6a57600080fd5b8335612c75816129ae565b95602085013595506040909401359392505050565b600067ffffffffffffffff831115612ca457612ca4612ab1565b612cb7601f8401601f1916602001612ac7565b9050828152838383011115612ccb57600080fd5b828260208301376000602084830101529392505050565b600060208284031215612cf457600080fd5b813567ffffffffffffffff811115612d0b57600080fd5b8201601f81018413612d1c57600080fd5b611dac84823560208401612c8a565b60008060408385031215612d3e57600080fd5b8235612d49816129ae565b91506020830135612aa6816129ef565b60008060008060808587031215612d6f57600080fd5b8435612d7a816129ae565b93506020850135612d8a816129ae565b925060408501359150606085013567ffffffffffffffff811115612dad57600080fd5b8501601f81018713612dbe57600080fd5b612dcd87823560208401612c8a565b91505092959194509250565b60808101610b268284612b9e565b634e487b7160e01b600052602160045260246000fd5b6020810160048310612e1f57634e487b7160e01b600052602160045260246000fd5b91905290565b600181811c90821680612e3957607f821691505b602082108103612e5957634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201526573686172657360d01b606082015260800190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201526a191d59481c185e5b595b9d60aa1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b60008219821115612f1957612f19612ef0565b500190565b634e487b7160e01b600052603260045260246000fd5b600060018201612f4657612f46612ef0565b5060010190565b60208082526028908201527f596f752063616e206f6e6c7920676574203378204e4654206f6e2074686520466040820152671c995948135a5b9d60c21b606082015260800190565b6000816000190483118215151615612faf57612faf612ef0565b500290565b600060208284031215612fc657600080fd5b5051919050565b60008151612fdf81856020860161292a565b9290920192915050565b600080845481600182811c91508083168061300557607f831692505b6020808410820361302457634e487b7160e01b86526022600452602486fd5b818015613038576001811461304957613076565b60ff19861689528489019650613076565b60008b81526020902060005b8681101561306e5781548b820152908501908301613055565b505084890196505b50505050505061309a6130898286612fcd565b64173539b7b760d91b815260050190565b95945050505050565b634e487b7160e01b600052601260045260246000fd5b6000826130c8576130c86130a3565b500490565b6000828210156130df576130df612ef0565b500390565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061311790830184612956565b9695505050505050565b60006020828403121561313357600080fd5b8151611831816128f7565b60008261314d5761314d6130a3565b500690565b60006020828403121561316457600080fd5b8151611831816129ef565b6000825161318181846020870161292a565b919091019291505056fea264697066735822122028dfba41afb1aaf5b5bf94afb23f8f84ba2ea601d6b76e34253ba05bcdfa26d064736f6c634300080d0033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000000010000000000000000000000008075164f4c27ea29e281c2ca884375e8daa17da2000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d515079324c704b3953356842554a343572594a4243435847466f68694d59584c6d7535794c3248685838334c2f00000000000000000000
Deployed Bytecode
0x6080604052600436106103545760003560e01c80638462151c116101c6578063ac5ae11b116100f7578063ce7c2ac211610095578063e33b7de31161006f578063e33b7de314610a3c578063e985e9c514610a51578063f2fde38b14610a9a578063f8dcbddb14610aba57600080fd5b8063ce7c2ac2146109b0578063d79779b2146109e6578063da3ef23f14610a1c57600080fd5b8063c45ac050116100d1578063c45ac05014610934578063c668286214610954578063c87b56dd14610969578063cbccefb21461098957600080fd5b8063ac5ae11b146108d4578063b88d4fde146108e7578063c23dc68f1461090757600080fd5b806399a2557a11610164578063a22cb4651161013e578063a22cb4651461086a578063a3f8eace1461088a578063a475b5dd146108aa578063ac446002146108bf57600080fd5b806399a2557a146108145780639b6860c814610834578063a0bcfc7f1461084a57600080fd5b80638da5cb5b116101a05780638da5cb5b1461079857806395d89b41146107b65780639852595c146107cb5780639883566e1461080157600080fd5b80638462151c1461072b5780638b83209b146107585780638c32c5681461077857600080fd5b8063406072a9116102a05780635be7fde81161023e5780636c0360eb116102185780636c0360eb146106b45780636df5c32d146106c957806370a08231146106f6578063715018a61461071657600080fd5b80635be7fde8146106605780635c975abb146106755780636352211e1461069457600080fd5b806350c6fbdc1161027a57806350c6fbdc146105e357806351830227146105f9578063525f8a5c146106135780635bbb21771461063357600080fd5b8063406072a91461055d57806342842e0e146105a357806348b75044146105c357600080fd5b806318160ddd1161030d5780631dcfab39116102e75780631dcfab39146104db57806323b872dd146104fb57806339976d431461051b5780633a98ef391461054857600080fd5b806318160ddd1461048c57806319165587146104a55780631cbaee2d146104c557600080fd5b806301ffc9a71461039e57806306fdde03146103d3578063081812fc146103f5578063095ea7b31461042d57806312065fe01461044f57806316c38b3c1461046c57600080fd5b366103995760405162461bcd60e51b815260206004820152601060248201526f13db9b1e481a59881e5bdd481b5a5b9d60821b60448201526064015b60405180910390fd5b600080fd5b3480156103aa57600080fd5b506103be6103b936600461290d565b610ada565b60405190151581526020015b60405180910390f35b3480156103df57600080fd5b506103e8610b2c565b6040516103ca9190612982565b34801561040157600080fd5b50610415610410366004612995565b610bbe565b6040516001600160a01b0390911681526020016103ca565b34801561043957600080fd5b5061044d6104483660046129c3565b610c02565b005b34801561045b57600080fd5b50475b6040519081526020016103ca565b34801561047857600080fd5b5061044d6104873660046129fd565b610ca2565b34801561049857600080fd5b506002546001540361045e565b3480156104b157600080fd5b5061044d6104c0366004612a1a565b610cc4565b3480156104d157600080fd5b5061045e601a5481565b3480156104e757600080fd5b5061044d6104f6366004612995565b610dbd565b34801561050757600080fd5b5061044d610516366004612a37565b610dca565b34801561052757600080fd5b5061045e610536366004612a1a565b60166020526000908152604090205481565b34801561055457600080fd5b5060095461045e565b34801561056957600080fd5b5061045e610578366004612a78565b6001600160a01b039182166000908152600f6020908152604080832093909416825291909152205490565b3480156105af57600080fd5b5061044d6105be366004612a37565b610f62565b3480156105cf57600080fd5b5061044d6105de366004612a78565b610f82565b3480156105ef57600080fd5b5061045e60135481565b34801561060557600080fd5b506017546103be9060ff1681565b34801561061f57600080fd5b5061044d61062e366004612995565b6110a5565b34801561063f57600080fd5b5061065361064e366004612af8565b6110b2565b6040516103ca9190612bdb565b34801561066c57600080fd5b5061044d611180565b34801561068157600080fd5b506017546103be90610100900460ff1681565b3480156106a057600080fd5b506104156106af366004612995565b611212565b3480156106c057600080fd5b506103e861121d565b3480156106d557600080fd5b5061045e6106e4366004612a1a565b60156020526000908152604090205481565b34801561070257600080fd5b5061045e610711366004612a1a565b6112ab565b34801561072257600080fd5b5061044d6112fa565b34801561073757600080fd5b5061074b610746366004612a1a565b61130e565b6040516103ca9190612c1d565b34801561076457600080fd5b50610415610773366004612995565b611417565b34801561078457600080fd5b5061044d6107933660046129c3565b611447565b3480156107a457600080fd5b506000546001600160a01b0316610415565b3480156107c257600080fd5b506103e86114bb565b3480156107d757600080fd5b5061045e6107e6366004612a1a565b6001600160a01b03166000908152600c602052604090205490565b61044d61080f3660046129c3565b6114ca565b34801561082057600080fd5b5061074b61082f366004612c55565b6116be565b34801561084057600080fd5b5061045e60145481565b34801561085657600080fd5b5061044d610865366004612ce2565b611838565b34801561087657600080fd5b5061044d610885366004612d2b565b611853565b34801561089657600080fd5b5061045e6108a5366004612a1a565b6118e8565b3480156108b657600080fd5b5061044d611929565b3480156108cb57600080fd5b5061044d611940565b61044d6108e23660046129c3565b611a2a565b3480156108f357600080fd5b5061044d610902366004612d59565b611c27565b34801561091357600080fd5b50610927610922366004612995565b611c71565b6040516103ca9190612dd9565b34801561094057600080fd5b5061045e61094f366004612a78565b611ce9565b34801561096057600080fd5b506103e8611db4565b34801561097557600080fd5b506103e8610984366004612995565b611dc1565b34801561099557600080fd5b506012546109a39060ff1681565b6040516103ca9190612dfd565b3480156109bc57600080fd5b5061045e6109cb366004612a1a565b6001600160a01b03166000908152600b602052604090205490565b3480156109f257600080fd5b5061045e610a01366004612a1a565b6001600160a01b03166000908152600e602052604090205490565b348015610a2857600080fd5b5061044d610a37366004612ce2565b611e4a565b348015610a4857600080fd5b50600a5461045e565b348015610a5d57600080fd5b506103be610a6c366004612a78565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b348015610aa657600080fd5b5061044d610ab5366004612a1a565b611e65565b348015610ac657600080fd5b5061044d610ad5366004612995565b611ede565b60006301ffc9a760e01b6001600160e01b031983161480610b0b57506380ac58cd60e01b6001600160e01b03198316145b80610b265750635b5e139f60e01b6001600160e01b03198316145b92915050565b606060038054610b3b90612e25565b80601f0160208091040260200160405190810160405280929190818152602001828054610b6790612e25565b8015610bb45780601f10610b8957610100808354040283529160200191610bb4565b820191906000526020600020905b815481529060010190602001808311610b9757829003601f168201915b5050505050905090565b6000610bc982611f25565b610be6576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b6000610c0d82611212565b9050336001600160a01b03821614610c4657610c298133610a6c565b610c46576040516367d9dca160e11b815260040160405180910390fd5b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b610caa611f4d565b601780549115156101000261ff0019909216919091179055565b6001600160a01b0381166000908152600b6020526040902054610cf95760405162461bcd60e51b815260040161039090612e5f565b6000610d04826118e8565b905080600003610d265760405162461bcd60e51b815260040161039090612ea5565b6001600160a01b0382166000908152600c602052604081208054839290610d4e908490612f06565b9250508190555080600a6000828254610d679190612f06565b90915550610d7790508282611fa7565b604080516001600160a01b0384168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a15050565b610dc5611f4d565b601455565b6000610dd5826120c0565b9050836001600160a01b0316816001600160a01b031614610e085760405162a1148160e81b815260040160405180910390fd5b60008281526007602052604090208054338082146001600160a01b03881690911417610e5557610e388633610a6c565b610e5557604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610e7c57604051633a954ecd60e21b815260040160405180910390fd5b8015610e8757600082555b6001600160a01b038681166000908152600660205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260056020526040812091909155600160e11b84169003610f1957600184016000818152600560205260408120549003610f17576001548114610f175760008181526005602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b610f7d83838360405180602001604052806000815250611c27565b505050565b6001600160a01b0381166000908152600b6020526040902054610fb75760405162461bcd60e51b815260040161039090612e5f565b6000610fc38383611ce9565b905080600003610fe55760405162461bcd60e51b815260040161039090612ea5565b6001600160a01b038084166000908152600f602090815260408083209386168352929052908120805483929061101c908490612f06565b90915550506001600160a01b0383166000908152600e602052604081208054839290611049908490612f06565b9091555061105a9050838383612127565b604080516001600160a01b038481168252602082018490528516917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a2505050565b6110ad611f4d565b601a55565b805160609060008167ffffffffffffffff8111156110d2576110d2612ab1565b60405190808252806020026020018201604052801561112457816020015b6040805160808101825260008082526020808301829052928201819052606082015282526000199092019101816110f05790505b50905060005b8281146111785761115385828151811061114657611146612f1e565b6020026020010151611c71565b82828151811061116557611165612f1e565b602090810291909101015260010161112a565b509392505050565b611188611f4d565b6002601054036111da5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610390565b600260105560005b601b5481101561120a576111f86104c082611417565b8061120281612f34565b9150506111e2565b506001601055565b6000610b26826120c0565b6011805461122a90612e25565b80601f016020809104026020016040519081016040528092919081815260200182805461125690612e25565b80156112a35780601f10611278576101008083540402835291602001916112a3565b820191906000526020600020905b81548152906001019060200180831161128657829003601f168201915b505050505081565b60006001600160a01b0382166112d4576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526006602052604090205467ffffffffffffffff1690565b611302611f4d565b61130c6000612179565b565b6060600080600061131e856112ab565b905060008167ffffffffffffffff81111561133b5761133b612ab1565b604051908082528060200260200182016040528015611364578160200160208202803683370190505b50905061139160408051608081018252600080825260208201819052918101829052606081019190915290565b60005b83861461140b576113a4816121c9565b915081604001516114035781516001600160a01b0316156113c457815194505b876001600160a01b0316856001600160a01b03160361140357808387806001019850815181106113f6576113f6612f1e565b6020026020010181815250505b600101611394565b50909695505050505050565b6000600d828154811061142c5761142c612f1e565b6000918252602090912001546001600160a01b031692915050565b61144f611f4d565b611e61816114606002546001540390565b61146a9190612f06565b11156114ad5760405162461bcd60e51b815260206004820152601260248201527152656163686564206d617820537570706c7960701b6044820152606401610390565b6114b78282612205565b5050565b606060048054610b3b90612e25565b3233146115195760405162461bcd60e51b815260206004820152601e60248201527f5468652063616c6c657220697320616e6f7468657220636f6e747261637400006044820152606401610390565b601354600060125460ff16600381111561153557611535612de7565b146115825760405162461bcd60e51b815260206004820152601a60248201527f46726565204d696e74206973206e6f74206163746976617465640000000000006044820152606401610390565b336000908152601560205260409020546003906115a0908490612f06565b11156115be5760405162461bcd60e51b815260040161039090612f4d565b6115cb6107c96007612f06565b826115d96002546001540390565b6115e39190612f06565b11156116425760405162461bcd60e51b815260206004820152602860248201527f54686572652773206e6f206d6f726520737570706c7920666f722074686520466044820152671c995948135a5b9d60c21b6064820152608401610390565b61164c8282612f95565b34101561168f5760405162461bcd60e51b81526020600482015260116024820152704e6f7420656e6f756768742066756e647360781b6044820152606401610390565b33600090815260156020526040812080548492906116ae908490612f06565b90915550610f7d90508383612205565b60608183106116e057604051631960ccad60e11b815260040160405180910390fd5b6000806116ec60015490565b9050808411156116fa578093505b6000611705876112ab565b905084861015611724578585038181101561171e578091505b50611728565b5060005b60008167ffffffffffffffff81111561174357611743612ab1565b60405190808252806020026020018201604052801561176c578160200160208202803683370190505b5090508160000361178257935061183192505050565b600061178d88611c71565b90506000816040015161179e575080515b885b8881141580156117b05750848714155b15611825576117be816121c9565b9250826040015161181d5782516001600160a01b0316156117de57825191505b8a6001600160a01b0316826001600160a01b03160361181d578084888060010199508151811061181057611810612f1e565b6020026020010181815250505b6001016117a0565b50505092835250909150505b9392505050565b611840611f4d565b80516114b790601190602084019061285e565b336001600160a01b0383160361187c5760405163b06307db60e01b815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000806118f4600a5490565b6118fe9047612f06565b90506118318382611924866001600160a01b03166000908152600c602052604090205490565b61221f565b611931611f4d565b6017805460ff19166001179055565b611948611f4d565b60026010540361199a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610390565b6002601055604051600090339047908381818185875af1925050503d80600081146119e1576040519150601f19603f3d011682016040523d82523d6000602084013e6119e6565b606091505b505090508061120a5760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b6044820152606401610390565b323314611a795760405162461bcd60e51b815260206004820152601e60248201527f5468652063616c6c657220697320616e6f7468657220636f6e747261637400006044820152606401610390565b6014546000819003611aba5760405162461bcd60e51b815260206004820152600a6024820152690507269636520697320360b41b6044820152606401610390565b600160125460ff166003811115611ad357611ad3612de7565b14611b205760405162461bcd60e51b815260206004820152601c60248201527f5075626c69632073616c65206973206e6f7420616374697661746564000000006044820152606401610390565b33600090815260166020526040902054600790611b3e908490612f06565b1115611b5c5760405162461bcd60e51b815260040161039090612f4d565b611e6182611b6d6002546001540390565b611b779190612f06565b1115611bbb5760405162461bcd60e51b815260206004820152601360248201527213585e081cdd5c1c1b1e48195e18d959591959606a1b6044820152606401610390565b611bc58282612f95565b341015611c085760405162461bcd60e51b81526020600482015260116024820152704e6f7420656e6f756768742066756e647360781b6044820152606401610390565b33600090815260166020526040812080548492906116ae908490612f06565b611c32848484610dca565b6001600160a01b0383163b15611c6b57611c4e8484848461225d565b611c6b576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6040805160808082018352600080835260208084018290528385018290526060808501839052855193840186528284529083018290529382018190529281018390529091506001548310611cc55792915050565b611cce836121c9565b9050806040015115611ce05792915050565b61183183612348565b6001600160a01b0382166000908152600e602052604081205481906040516370a0823160e01b81523060048201526001600160a01b038616906370a0823190602401602060405180830381865afa158015611d48573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d6c9190612fb4565b611d769190612f06565b6001600160a01b038086166000908152600f6020908152604080832093881683529290522054909150611dac908490839061221f565b949350505050565b6018805461122a90612e25565b6060611dcc82611f25565b611e185760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e006044820152606401610390565b6011611e238361237d565b604051602001611e34929190612fe9565b6040516020818303038152906040529050919050565b611e52611f4d565b80516114b790601890602084019061285e565b611e6d611f4d565b6001600160a01b038116611ed25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610390565b611edb81612179565b50565b611ee6611f4d565b806003811115611ef857611ef8612de7565b6012805460ff19166001836003811115611f1457611f14612de7565b021790555050565b80546001019055565b600060015482108015610b26575050600090815260056020526040902054600160e01b161590565b6000546001600160a01b0316331461130c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610390565b80471015611ff75760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610390565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612044576040519150601f19603f3d011682016040523d82523d6000602084013e612049565b606091505b5050905080610f7d5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610390565b60008160015481101561210e5760008181526005602052604081205490600160e01b8216900361210c575b806000036118315750600019016000818152600560205260409020546120eb565b505b604051636f96cda160e11b815260040160405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610f7d90849061247e565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b604080516080810182526000808252602082018190529181018290526060810191909152600082815260056020526040902054610b2690612550565b6114b7828260405180602001604052806000815250612598565b6009546001600160a01b0384166000908152600b6020526040812054909183916122499086612f95565b61225391906130b9565b611dac91906130cd565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906122929033908990889088906004016130e4565b6020604051808303816000875af19250505080156122cd575060408051601f3d908101601f191682019092526122ca91810190613121565b60015b61232b573d8080156122fb576040519150601f19603f3d011682016040523d82523d6000602084013e612300565b606091505b508051600003612323576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b604080516080810182526000808252602082018190529181018290526060810191909152610b26612378836120c0565b612550565b6060816000036123a45750506040805180820190915260018152600360fc1b602082015290565b8160005b81156123ce57806123b881612f34565b91506123c79050600a836130b9565b91506123a8565b60008167ffffffffffffffff8111156123e9576123e9612ab1565b6040519080825280601f01601f191660200182016040528015612413576020820181803683370190505b5090505b8415611dac576124286001836130cd565b9150612435600a8661313e565b612440906030612f06565b60f81b81838151811061245557612455612f1e565b60200101906001600160f81b031916908160001a905350612477600a866130b9565b9450612417565b60006124d3826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166126059092919063ffffffff16565b805190915015610f7d57808060200190518101906124f19190613152565b610f7d5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610390565b604080516080810182526001600160a01b038316815260a083901c67ffffffffffffffff166020820152600160e01b831615159181019190915260e89190911c606082015290565b6125a28383612614565b6001600160a01b0383163b15610f7d576001548281035b6125cc600086838060010194508661225d565b6125e9576040516368d2bf6b60e11b815260040160405180910390fd5b8181106125b95781600154146125fe57600080fd5b5050505050565b6060611dac84846000856126f4565b6001546001600160a01b03831661263d57604051622e076360e81b815260040160405180910390fd5b8160000361265e5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038316600081815260066020526040902080546801000000000000000185020190554260a01b6001841460e11b1717600082815260056020526040902055808281015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48082106126a85760015550505050565b6060824710156127555760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610390565b6001600160a01b0385163b6127ac5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610390565b600080866001600160a01b031685876040516127c8919061316f565b60006040518083038185875af1925050503d8060008114612805576040519150601f19603f3d011682016040523d82523d6000602084013e61280a565b606091505b509150915061281a828286612825565b979650505050505050565b60608315612834575081611831565b8251156128445782518084602001fd5b8160405162461bcd60e51b81526004016103909190612982565b82805461286a90612e25565b90600052602060002090601f01602090048101928261288c57600085556128d2565b82601f106128a557805160ff19168380011785556128d2565b828001600101855582156128d2579182015b828111156128d25782518255916020019190600101906128b7565b506128de9291506128e2565b5090565b5b808211156128de57600081556001016128e3565b6001600160e01b031981168114611edb57600080fd5b60006020828403121561291f57600080fd5b8135611831816128f7565b60005b8381101561294557818101518382015260200161292d565b83811115611c6b5750506000910152565b6000815180845261296e81602086016020860161292a565b601f01601f19169290920160200192915050565b6020815260006118316020830184612956565b6000602082840312156129a757600080fd5b5035919050565b6001600160a01b0381168114611edb57600080fd5b600080604083850312156129d657600080fd5b82356129e1816129ae565b946020939093013593505050565b8015158114611edb57600080fd5b600060208284031215612a0f57600080fd5b8135611831816129ef565b600060208284031215612a2c57600080fd5b8135611831816129ae565b600080600060608486031215612a4c57600080fd5b8335612a57816129ae565b92506020840135612a67816129ae565b929592945050506040919091013590565b60008060408385031215612a8b57600080fd5b8235612a96816129ae565b91506020830135612aa6816129ae565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612af057612af0612ab1565b604052919050565b60006020808385031215612b0b57600080fd5b823567ffffffffffffffff80821115612b2357600080fd5b818501915085601f830112612b3757600080fd5b813581811115612b4957612b49612ab1565b8060051b9150612b5a848301612ac7565b8181529183018401918481019088841115612b7457600080fd5b938501935b83851015612b9257843582529385019390850190612b79565b98975050505050505050565b80516001600160a01b0316825260208082015167ffffffffffffffff169083015260408082015115159083015260609081015162ffffff16910152565b6020808252825182820181905260009190848201906040850190845b8181101561140b57612c0a838551612b9e565b9284019260809290920191600101612bf7565b6020808252825182820181905260009190848201906040850190845b8181101561140b57835183529284019291840191600101612c39565b600080600060608486031215612c6a57600080fd5b8335612c75816129ae565b95602085013595506040909401359392505050565b600067ffffffffffffffff831115612ca457612ca4612ab1565b612cb7601f8401601f1916602001612ac7565b9050828152838383011115612ccb57600080fd5b828260208301376000602084830101529392505050565b600060208284031215612cf457600080fd5b813567ffffffffffffffff811115612d0b57600080fd5b8201601f81018413612d1c57600080fd5b611dac84823560208401612c8a565b60008060408385031215612d3e57600080fd5b8235612d49816129ae565b91506020830135612aa6816129ef565b60008060008060808587031215612d6f57600080fd5b8435612d7a816129ae565b93506020850135612d8a816129ae565b925060408501359150606085013567ffffffffffffffff811115612dad57600080fd5b8501601f81018713612dbe57600080fd5b612dcd87823560208401612c8a565b91505092959194509250565b60808101610b268284612b9e565b634e487b7160e01b600052602160045260246000fd5b6020810160048310612e1f57634e487b7160e01b600052602160045260246000fd5b91905290565b600181811c90821680612e3957607f821691505b602082108103612e5957634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201526573686172657360d01b606082015260800190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201526a191d59481c185e5b595b9d60aa1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b60008219821115612f1957612f19612ef0565b500190565b634e487b7160e01b600052603260045260246000fd5b600060018201612f4657612f46612ef0565b5060010190565b60208082526028908201527f596f752063616e206f6e6c7920676574203378204e4654206f6e2074686520466040820152671c995948135a5b9d60c21b606082015260800190565b6000816000190483118215151615612faf57612faf612ef0565b500290565b600060208284031215612fc657600080fd5b5051919050565b60008151612fdf81856020860161292a565b9290920192915050565b600080845481600182811c91508083168061300557607f831692505b6020808410820361302457634e487b7160e01b86526022600452602486fd5b818015613038576001811461304957613076565b60ff19861689528489019650613076565b60008b81526020902060005b8681101561306e5781548b820152908501908301613055565b505084890196505b50505050505061309a6130898286612fcd565b64173539b7b760d91b815260050190565b95945050505050565b634e487b7160e01b600052601260045260246000fd5b6000826130c8576130c86130a3565b500490565b6000828210156130df576130df612ef0565b500390565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061311790830184612956565b9695505050505050565b60006020828403121561313357600080fd5b8151611831816128f7565b60008261314d5761314d6130a3565b500690565b60006020828403121561316457600080fd5b8151611831816129ef565b6000825161318181846020870161292a565b919091019291505056fea264697066735822122028dfba41afb1aaf5b5bf94afb23f8f84ba2ea601d6b76e34253ba05bcdfa26d064736f6c634300080d0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000000010000000000000000000000008075164f4c27ea29e281c2ca884375e8daa17da2000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d515079324c704b3953356842554a343572594a4243435847466f68694d59584c6d7535794c3248685838334c2f00000000000000000000
-----Decoded View---------------
Arg [0] : _team (address[]): 0x8075164F4c27Ea29E281C2Ca884375e8dAA17da2
Arg [1] : _teamShares (uint256[]): 100
Arg [2] : _theBaseURI (string): ipfs://QmQPy2LpK9S5hBUJ45rYJBCCXGFohiMYXLmu5yL2HhX83L/
-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [4] : 0000000000000000000000008075164f4c27ea29e281c2ca884375e8daa17da2
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000064
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [8] : 697066733a2f2f516d515079324c704b3953356842554a343572594a42434358
Arg [9] : 47466f68694d59584c6d7535794c3248685838334c2f00000000000000000000
Deployed Bytecode Sourcemap
107011:4710:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;111682:26;;-1:-1:-1;;;111682:26:0;;216:2:1;111682:26:0;;;198:21:1;255:2;235:18;;;228:30;-1:-1:-1;;;274:18:1;;;267:46;330:18;;111682:26:0;;;;;;;;107011:4710;;;;14609:615;;;;;;;;;;-1:-1:-1;14609:615:0;;;;;:::i;:::-;;:::i;:::-;;;910:14:1;;903:22;885:41;;873:2;858:18;14609:615:0;;;;;;;;20256:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;22202:204::-;;;;;;;;;;-1:-1:-1;22202:204:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;2059:32:1;;;2041:51;;2029:2;2014:18;22202:204:0;1895:203:1;21750:386:0;;;;;;;;;;-1:-1:-1;21750:386:0;;;;;:::i;:::-;;:::i;:::-;;108438:96;;;;;;;;;;-1:-1:-1;108505:21:0;108438:96;;;2705:25:1;;;2693:2;2678:18;108438:96:0;2559:177:1;108544:87:0;;;;;;;;;;-1:-1:-1;108544:87:0;;;;;:::i;:::-;;:::i;13663:315::-;;;;;;;;;;-1:-1:-1;13929:12:0;;13913:13;;:28;13663:315;;96683:453;;;;;;;;;;-1:-1:-1;96683:453:0;;;;;:::i;:::-;;:::i;107934:38::-;;;;;;;;;;;;;;;;108639:120;;;;;;;;;;-1:-1:-1;108639:120:0;;;;;:::i;:::-;;:::i;31467:2800::-;;;;;;;;;;-1:-1:-1;31467:2800:0;;;;;:::i;:::-;;:::i;107696:64::-;;;;;;;;;;-1:-1:-1;107696:64:0;;;;;:::i;:::-;;;;;;;;;;;;;;94293:91;;;;;;;;;;-1:-1:-1;94364:12:0;;94293:91;;95422:135;;;;;;;;;;-1:-1:-1;95422:135:0;;;;;:::i;:::-;-1:-1:-1;;;;;95519:21:0;;;95492:7;95519:21;;;:14;:21;;;;;;;;:30;;;;;;;;;;;;;95422:135;23092:185;;;;;;;;;;-1:-1:-1;23092:185:0;;;;;:::i;:::-;;:::i;97404:514::-;;;;;;;;;;-1:-1:-1;97404:514:0;;;;;:::i;:::-;;:::i;107538:32::-;;;;;;;;;;;;;;;;107769:28;;;;;;;;;;-1:-1:-1;107769:28:0;;;;;;;;108769:115;;;;;;;;;;-1:-1:-1;108769:115:0;;;;;:::i;:::-;;:::i;48793:468::-;;;;;;;;;;-1:-1:-1;48793:468:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;111273:163::-;;;;;;;;;;;;;:::i;107806:26::-;;;;;;;;;;-1:-1:-1;107806:26:0;;;;;;;;;;;20045:144;;;;;;;;;;-1:-1:-1;20045:144:0;;;;;:::i;:::-;;:::i;107291:21::-;;;;;;;;;;;;;:::i;107629:58::-;;;;;;;;;;-1:-1:-1;107629:58:0;;;;;:::i;:::-;;;;;;;;;;;;;;15288:224;;;;;;;;;;-1:-1:-1;15288:224:0;;;;;:::i;:::-;;:::i;100899:103::-;;;;;;;;;;;;;:::i;52605:892::-;;;;;;;;;;-1:-1:-1;52605:892:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;95648:100::-;;;;;;;;;;-1:-1:-1;95648:100:0;;;;;:::i;:::-;;:::i;110768:186::-;;;;;;;;;;-1:-1:-1;110768:186:0;;;;;:::i;:::-;;:::i;100251:87::-;;;;;;;;;;-1:-1:-1;100297:7:0;100324:6;-1:-1:-1;;;;;100324:6:0;100251:87;;20425:104;;;;;;;;;;;;;:::i;95144:109::-;;;;;;;;;;-1:-1:-1;95144:109:0;;;;;:::i;:::-;-1:-1:-1;;;;;95227:18:0;95200:7;95227:18;;;:9;:18;;;;;;;95144:109;109541:586;;;;;;:::i;:::-;;:::i;49651:2505::-;;;;;;;;;;-1:-1:-1;49651:2505:0;;;;;:::i;:::-;;:::i;107579:41::-;;;;;;;;;;;;;;;;108892:106;;;;;;;;;;-1:-1:-1;108892:106:0;;;;;:::i;:::-;;:::i;22478:308::-;;;;;;;;;;-1:-1:-1;22478:308:0;;;;;:::i;:::-;;:::i;95838:225::-;;;;;;;;;;-1:-1:-1;95838:225:0;;;;;:::i;:::-;;:::i;109139:70::-;;;;;;;;;;;;;:::i;111446:181::-;;;;;;;;;;;;;:::i;110135:625::-;;;;;;:::i;:::-;;:::i;23348:399::-;;;;;;;;;;-1:-1:-1;23348:399:0;;;;;:::i;:::-;;:::i;48214:420::-;;;;;;;;;;-1:-1:-1;48214:420:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;96223:260::-;;;;;;;;;;-1:-1:-1;96223:260:0;;;;;:::i;:::-;;:::i;107841:37::-;;;;;;;;;;;;;:::i;110966:277::-;;;;;;;;;;-1:-1:-1;110966:277:0;;;;;:::i;:::-;;:::i;107321:23::-;;;;;;;;;;-1:-1:-1;107321:23:0;;;;;;;;;;;;;;;:::i;94940:105::-;;;;;;;;;;-1:-1:-1;94940:105:0;;;;;:::i;:::-;-1:-1:-1;;;;;95021:16:0;94994:7;95021:16;;;:7;:16;;;;;;;94940:105;94730:119;;;;;;;;;;-1:-1:-1;94730:119:0;;;;;:::i;:::-;-1:-1:-1;;;;;94815:26:0;94788:7;94815:26;;;:19;:26;;;;;;;94730:119;109009:124;;;;;;;;;;-1:-1:-1;109009:124:0;;;;;:::i;:::-;;:::i;94478:95::-;;;;;;;;;;-1:-1:-1;94551:14:0;;94478:95;;22857:164;;;;;;;;;;-1:-1:-1;22857:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;22978:25:0;;;22954:4;22978:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;22857:164;101157:201;;;;;;;;;;-1:-1:-1;101157:201:0;;;;;:::i;:::-;;:::i;109437:92::-;;;;;;;;;;-1:-1:-1;109437:92:0;;;;;:::i;:::-;;:::i;14609:615::-;14694:4;-1:-1:-1;;;;;;;;;14994:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;15071:25:0;;;14994:102;:179;;;-1:-1:-1;;;;;;;;;;15148:25:0;;;14994:179;14974:199;14609:615;-1:-1:-1;;14609:615:0:o;20256:100::-;20310:13;20343:5;20336:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20256:100;:::o;22202:204::-;22270:7;22295:16;22303:7;22295;:16::i;:::-;22290:64;;22320:34;;-1:-1:-1;;;22320:34:0;;;;;;;;;;;22290:64;-1:-1:-1;22374:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;22374:24:0;;22202:204::o;21750:386::-;21823:13;21839:16;21847:7;21839;:16::i;:::-;21823:32;-1:-1:-1;42650:10:0;-1:-1:-1;;;;;21872:28:0;;;21868:175;;21920:44;21937:5;42650:10;22857:164;:::i;21920:44::-;21915:128;;21992:35;;-1:-1:-1;;;21992:35:0;;;;;;;;;;;21915:128;22055:24;;;;:15;:24;;;;;;:29;;-1:-1:-1;;;;;;22055:29:0;-1:-1:-1;;;;;22055:29:0;;;;;;;;;22100:28;;22055:24;;22100:28;;;;;;;21812:324;21750:386;;:::o;108544:87::-;100137:13;:11;:13::i;:::-;108607:6:::1;:16:::0;;;::::1;;;;-1:-1:-1::0;;108607:16:0;;::::1;::::0;;;::::1;::::0;;108544:87::o;96683:453::-;-1:-1:-1;;;;;96759:16:0;;96778:1;96759:16;;;:7;:16;;;;;;96751:71;;;;-1:-1:-1;;;96751:71:0;;;;;;;:::i;:::-;96835:15;96853:19;96864:7;96853:10;:19::i;:::-;96835:37;;96893:7;96904:1;96893:12;96885:68;;;;-1:-1:-1;;;96885:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;96966:18:0;;;;;;:9;:18;;;;;:29;;96988:7;;96966:18;:29;;96988:7;;96966:29;:::i;:::-;;;;;;;;97024:7;97006:14;;:25;;;;;;;:::i;:::-;;;;-1:-1:-1;97044:35:0;;-1:-1:-1;97062:7:0;97071;97044:17;:35::i;:::-;97095:33;;;-1:-1:-1;;;;;13085:32:1;;13067:51;;13149:2;13134:18;;13127:34;;;97095:33:0;;13040:18:1;97095:33:0;;;;;;;96740:396;96683:453;:::o;108639:120::-;100137:13;:11;:13::i;:::-;108717:15:::1;:34:::0;108639:120::o;31467:2800::-;31601:27;31631;31650:7;31631:18;:27::i;:::-;31601:57;;31716:4;-1:-1:-1;;;;;31675:45:0;31691:19;-1:-1:-1;;;;;31675:45:0;;31671:86;;31729:28;;-1:-1:-1;;;31729:28:0;;;;;;;;;;;31671:86;31771:27;30197:21;;;30024:15;30239:4;30232:36;30321:4;30305:21;;30411:26;;42650:10;31164:30;;;-1:-1:-1;;;;;30862:26:0;;31143:19;;;31140:55;31950:174;;32037:43;32054:4;42650:10;22857:164;:::i;32037:43::-;32032:92;;32089:35;;-1:-1:-1;;;32089:35:0;;;;;;;;;;;32032:92;-1:-1:-1;;;;;32141:16:0;;32137:52;;32166:23;;-1:-1:-1;;;32166:23:0;;;;;;;;;;;32137:52;32338:15;32335:160;;;32478:1;32457:19;32450:30;32335:160;-1:-1:-1;;;;;32873:24:0;;;;;;;:18;:24;;;;;;32871:26;;-1:-1:-1;;32871:26:0;;;32942:22;;;;;;;;;32940:24;;-1:-1:-1;32940:24:0;;;19944:11;19920:22;19916:40;19903:62;-1:-1:-1;;;19903:62:0;33235:26;;;;:17;:26;;;;;:174;;;;-1:-1:-1;;;33529:46:0;;:51;;33525:626;;33633:1;33623:11;;33601:19;33756:30;;;:17;:30;;;;;;:35;;33752:384;;33894:13;;33879:11;:28;33875:242;;34041:30;;;;:17;:30;;;;;:52;;;33875:242;33582:569;33525:626;34198:7;34194:2;-1:-1:-1;;;;;34179:27:0;34188:4;-1:-1:-1;;;;;34179:27:0;;;;;;;;;;;31590:2677;;;31467:2800;;;:::o;23092:185::-;23230:39;23247:4;23253:2;23257:7;23230:39;;;;;;;;;;;;:16;:39::i;:::-;23092:185;;;:::o;97404:514::-;-1:-1:-1;;;;;97486:16:0;;97505:1;97486:16;;;:7;:16;;;;;;97478:71;;;;-1:-1:-1;;;97478:71:0;;;;;;;:::i;:::-;97562:15;97580:26;97591:5;97598:7;97580:10;:26::i;:::-;97562:44;;97627:7;97638:1;97627:12;97619:68;;;;-1:-1:-1;;;97619:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;97700:21:0;;;;;;;:14;:21;;;;;;;;:30;;;;;;;;;;;:41;;97734:7;;97700:21;:41;;97734:7;;97700:41;:::i;:::-;;;;-1:-1:-1;;;;;;;97752:26:0;;;;;;:19;:26;;;;;:37;;97782:7;;97752:26;:37;;97782:7;;97752:37;:::i;:::-;;;;-1:-1:-1;97802:47:0;;-1:-1:-1;97825:5:0;97832:7;97841;97802:22;:47::i;:::-;97865:45;;;-1:-1:-1;;;;;13085:32:1;;;13067:51;;13149:2;13134:18;;13127:34;;;97865:45:0;;;;;13040:18:1;97865:45:0;;;;;;;97467:451;97404:514;;:::o;108769:115::-;100137:13;:11;:13::i;:::-;108846::::1;:30:::0;108769:115::o;48793:468::-;48968:15;;48882:23;;48943:22;48968:15;49035:36;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49035:36:0;;-1:-1:-1;;49035:36:0;;;;;;;;;;;;48998:73;;49091:9;49086:125;49107:14;49102:1;:19;49086:125;;49163:32;49183:8;49192:1;49183:11;;;;;;;;:::i;:::-;;;;;;;49163:19;:32::i;:::-;49147:10;49158:1;49147:13;;;;;;;;:::i;:::-;;;;;;;;;;:48;49123:3;;49086:125;;;-1:-1:-1;49232:10:0;48793:468;-1:-1:-1;;;48793:468:0:o;111273:163::-;100137:13;:11;:13::i;:::-;56779:1:::1;57377:7;;:19:::0;57369:63:::1;;;::::0;-1:-1:-1;;;57369:63:0;;13785:2:1;57369:63:0::1;::::0;::::1;13767:21:1::0;13824:2;13804:18;;;13797:30;13863:33;13843:18;;;13836:61;13914:18;;57369:63:0::1;13583:355:1::0;57369:63:0::1;56779:1;57510:7;:18:::0;111341:6:::2;111337:92;111358:10;;111354:1;:14;111337:92;;;111391:26;111407:8;111413:1;111407:5;:8::i;111391:26::-;111371:3:::0;::::2;::::0;::::2;:::i;:::-;;;;111337:92;;;-1:-1:-1::0;56735:1:0::1;57689:7;:22:::0;111273:163::o;20045:144::-;20109:7;20152:27;20171:7;20152:18;:27::i;107291:21::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;15288:224::-;15352:7;-1:-1:-1;;;;;15376:19:0;;15372:60;;15404:28;;-1:-1:-1;;;15404:28:0;;;;;;;;;;;15372:60;-1:-1:-1;;;;;;15450:25:0;;;;;:18;:25;;;;;;9843:13;15450:54;;15288:224::o;100899:103::-;100137:13;:11;:13::i;:::-;100964:30:::1;100991:1;100964:18;:30::i;:::-;100899:103::o:0;52605:892::-;52675:16;52729:19;52763:25;52803:22;52828:16;52838:5;52828:9;:16::i;:::-;52803:41;;52859:25;52901:14;52887:29;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;52887:29:0;;52859:57;;52931:31;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;52931:31:0;52982:9;52977:472;53026:14;53011:11;:29;52977:472;;53078:15;53091:1;53078:12;:15::i;:::-;53066:27;;53116:9;:16;;;53157:8;53112:73;53207:14;;-1:-1:-1;;;;;53207:28:0;;53203:111;;53280:14;;;-1:-1:-1;53203:111:0;53357:5;-1:-1:-1;;;;;53336:26:0;:17;-1:-1:-1;;;;;53336:26:0;;53332:102;;53413:1;53387:8;53396:13;;;;;;53387:23;;;;;;;;:::i;:::-;;;;;;:27;;;;;53332:102;53042:3;;52977:472;;;-1:-1:-1;53470:8:0;;52605:892;-1:-1:-1;;;;;;52605:892:0:o;95648:100::-;95699:7;95726;95734:5;95726:14;;;;;;;;:::i;:::-;;;;;;;;;;;-1:-1:-1;;;;;95726:14:0;;95648:100;-1:-1:-1;;95648:100:0:o;110768:186::-;100137:13;:11;:13::i;:::-;107388:4:::1;110866:9;110850:13;13929:12:::0;;13913:13;;:28;;13663:315;110850:13:::1;:25;;;;:::i;:::-;:39;;110842:70;;;::::0;-1:-1:-1;;;110842:70:0;;14285:2:1;110842:70:0::1;::::0;::::1;14267:21:1::0;14324:2;14304:18;;;14297:30;-1:-1:-1;;;14343:18:1;;;14336:48;14401:18;;110842:70:0::1;14083:342:1::0;110842:70:0::1;110921:25;110931:3;110936:9;110921;:25::i;:::-;110768:186:::0;;:::o;20425:104::-;20481:13;20514:7;20507:14;;;;;:::i;109541:586::-;108352:9;108365:10;108352:23;108344:66;;;;-1:-1:-1;;;108344:66:0;;14632:2:1;108344:66:0;;;14614:21:1;14671:2;14651:18;;;14644:30;14710:32;14690:18;;;14683:60;14760:18;;108344:66:0;14430:354:1;108344:66:0;109644:10:::1;::::0;109631::::1;109670:11;::::0;::::1;;:28;::::0;::::1;;;;;;:::i;:::-;;109662:67;;;::::0;-1:-1:-1;;;109662:67:0;;14991:2:1;109662:67:0::1;::::0;::::1;14973:21:1::0;15030:2;15010:18;;;15003:30;15069:28;15049:18;;;15042:56;15115:18;;109662:67:0::1;14789:350:1::0;109662:67:0::1;109772:10;109745:38;::::0;;;:26:::1;:38;::::0;;;;;109799:1:::1;::::0;109745:50:::1;::::0;109786:9;;109745:50:::1;:::i;:::-;:55;;109737:108;;;;-1:-1:-1::0;;;109737:108:0::1;;;;;;;:::i;:::-;109890:19;107477:4;107434:1;109890:19;:::i;:::-;109877:9;109861:13;13929:12:::0;;13913:13;;:28;;13663:315;109861:13:::1;:25;;;;:::i;:::-;:48;;109853:101;;;::::0;-1:-1:-1;;;109853:101:0;;15755:2:1;109853:101:0::1;::::0;::::1;15737:21:1::0;15794:2;15774:18;;;15767:30;15833:34;15813:18;;;15806:62;-1:-1:-1;;;15884:18:1;;;15877:38;15932:19;;109853:101:0::1;15553:404:1::0;109853:101:0::1;109983:17;109991:9:::0;109983:5;:17:::1;:::i;:::-;109970:9;:30;;109962:60;;;::::0;-1:-1:-1;;;109962:60:0;;16337:2:1;109962:60:0::1;::::0;::::1;16319:21:1::0;16376:2;16356:18;;;16349:30;-1:-1:-1;;;16395:18:1;;;16388:47;16452:18;;109962:60:0::1;16135:341:1::0;109962:60:0::1;110057:10;110030:38;::::0;;;:26:::1;:38;::::0;;;;:51;;110072:9;;110030:38;:51:::1;::::0;110072:9;;110030:51:::1;:::i;:::-;::::0;;;-1:-1:-1;110089:30:0::1;::::0;-1:-1:-1;110099:8:0;110109:9;110089::::1;:30::i;49651:2505::-:0;49786:16;49853:4;49844:5;:13;49840:45;;49866:19;;-1:-1:-1;;;49866:19:0;;;;;;;;;;;49840:45;49900:19;49934:17;49954:14;13432:13;;;13358:95;49954:14;49934:34;-1:-1:-1;50205:9:0;50198:4;:16;50194:73;;;50242:9;50235:16;;50194:73;50281:25;50309:16;50319:5;50309:9;:16::i;:::-;50281:44;;50503:4;50495:5;:12;50491:278;;;50550:12;;;50585:31;;;50581:111;;;50661:11;50641:31;;50581:111;50509:198;50491:278;;;-1:-1:-1;50752:1:0;50491:278;50783:25;50825:17;50811:32;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;50811:32:0;;50783:60;;50862:17;50883:1;50862:22;50858:78;;50912:8;-1:-1:-1;50905:15:0;;-1:-1:-1;;;50905:15:0;50858:78;51080:31;51114:26;51134:5;51114:19;:26::i;:::-;51080:60;;51155:25;51400:9;:16;;;51395:92;;-1:-1:-1;51457:14:0;;51395:92;51518:5;51501:478;51530:4;51525:1;:9;;:45;;;;;51553:17;51538:11;:32;;51525:45;51501:478;;;51608:15;51621:1;51608:12;:15::i;:::-;51596:27;;51646:9;:16;;;51687:8;51642:73;51737:14;;-1:-1:-1;;;;;51737:28:0;;51733:111;;51810:14;;;-1:-1:-1;51733:111:0;51887:5;-1:-1:-1;;;;;51866:26:0;:17;-1:-1:-1;;;;;51866:26:0;;51862:102;;51943:1;51917:8;51926:13;;;;;;51917:23;;;;;;;;:::i;:::-;;;;;;:27;;;;;51862:102;51572:3;;51501:478;;;-1:-1:-1;;;52064:29:0;;;-1:-1:-1;52071:8:0;;-1:-1:-1;;49651:2505:0;;;;;;:::o;108892:106::-;100137:13;:11;:13::i;:::-;108969:21;;::::1;::::0;:7:::1;::::0;:21:::1;::::0;::::1;::::0;::::1;:::i;22478:308::-:0;42650:10;-1:-1:-1;;;;;22577:31:0;;;22573:61;;22617:17;;-1:-1:-1;;;22617:17:0;;;;;;;;;;;22573:61;42650:10;22647:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;22647:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;22647:60:0;;;;;;;;;;22723:55;;885:41:1;;;22647:49:0;;42650:10;22723:55;;858:18:1;22723:55:0;;;;;;;22478:308;;:::o;95838:225::-;95896:7;95916:21;95964:15;94551:14;;;94478:95;95964:15;95940:39;;:21;:39;:::i;:::-;95916:63;;95997:58;96013:7;96022:13;96037:17;96046:7;-1:-1:-1;;;;;95227:18:0;95200:7;95227:18;;;:9;:18;;;;;;;95144:109;96037:17;95997:15;:58::i;109139:70::-;100137:13;:11;:13::i;:::-;109186:8:::1;:15:::0;;-1:-1:-1;;109186:15:0::1;109197:4;109186:15;::::0;;109139:70::o;111446:181::-;100137:13;:11;:13::i;:::-;56779:1:::1;57377:7;;:19:::0;57369:63:::1;;;::::0;-1:-1:-1;;;57369:63:0;;13785:2:1;57369:63:0::1;::::0;::::1;13767:21:1::0;13824:2;13804:18;;;13797:30;13863:33;13843:18;;;13836:61;13914:18;;57369:63:0::1;13583:355:1::0;57369:63:0::1;56779:1;57510:7;:18:::0;111529:49:::2;::::0;111511:12:::2;::::0;111529:10:::2;::::0;111552:21:::2;::::0;111511:12;111529:49;111511:12;111529:49;111552:21;111529:10;:49:::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;111510:68;;;111593:7;111585:36;;;::::0;-1:-1:-1;;;111585:36:0;;16893:2:1;111585:36:0::2;::::0;::::2;16875:21:1::0;16932:2;16912:18;;;16905:30;-1:-1:-1;;;16951:18:1;;;16944:46;17007:18;;111585:36:0::2;16691:340:1::0;110135:625:0;108352:9;108365:10;108352:23;108344:66;;;;-1:-1:-1;;;108344:66:0;;14632:2:1;108344:66:0;;;14614:21:1;14671:2;14651:18;;;14644:30;14710:32;14690:18;;;14683:60;14760:18;;108344:66:0;14430:354:1;108344:66:0;110244:15:::1;::::0;110231:10:::1;110275::::0;;;110267:33:::1;;;::::0;-1:-1:-1;;;110267:33:0;;17238:2:1;110267:33:0::1;::::0;::::1;17220:21:1::0;17277:2;17257:18;;;17250:30;-1:-1:-1;;;17296:18:1;;;17289:40;17346:18;;110267:33:0::1;17036:334:1::0;110267:33:0::1;110331:15;110316:11;::::0;::::1;;:30;::::0;::::1;;;;;;:::i;:::-;;110308:71;;;::::0;-1:-1:-1;;;110308:71:0;;17577:2:1;110308:71:0::1;::::0;::::1;17559:21:1::0;17616:2;17596:18;;;17589:30;17655;17635:18;;;17628:58;17703:18;;110308:71:0::1;17375:352:1::0;110308:71:0::1;110428:10;110395:44;::::0;;;:32:::1;:44;::::0;;;;;110455:1:::1;::::0;110395:56:::1;::::0;110442:9;;110395:56:::1;:::i;:::-;:61;;110387:114;;;;-1:-1:-1::0;;;110387:114:0::1;;;;;;;:::i;:::-;107388:4;110533:9;110517:13;13929:12:::0;;13913:13;;:28;;13663:315;110517:13:::1;:25;;;;:::i;:::-;:39;;110509:71;;;::::0;-1:-1:-1;;;110509:71:0;;17934:2:1;110509:71:0::1;::::0;::::1;17916:21:1::0;17973:2;17953:18;;;17946:30;-1:-1:-1;;;17992:18:1;;;17985:49;18051:18;;110509:71:0::1;17732:343:1::0;110509:71:0::1;110609:17;110617:9:::0;110609:5;:17:::1;:::i;:::-;110596:9;:30;;110588:60;;;::::0;-1:-1:-1;;;110588:60:0;;16337:2:1;110588:60:0::1;::::0;::::1;16319:21:1::0;16376:2;16356:18;;;16349:30;-1:-1:-1;;;16395:18:1;;;16388:47;16452:18;;110588:60:0::1;16135:341:1::0;110588:60:0::1;110689:10;110656:44;::::0;;;:32:::1;:44;::::0;;;;:57;;110704:9;;110656:44;:57:::1;::::0;110704:9;;110656:57:::1;:::i;23348:399::-:0;23515:31;23528:4;23534:2;23538:7;23515:12;:31::i;:::-;-1:-1:-1;;;;;23561:14:0;;;:19;23557:183;;23600:56;23631:4;23637:2;23641:7;23650:5;23600:30;:56::i;:::-;23595:145;;23684:40;;-1:-1:-1;;;23684:40:0;;;;;;;;;;;23595:145;23348:399;;;;:::o;48214:420::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13432:13:0;;48399:7;:25;48366:103;;48448:9;48214:420;-1:-1:-1;;48214:420:0:o;48366:103::-;48491:21;48504:7;48491:12;:21::i;:::-;48479:33;;48527:9;:16;;;48523:65;;;48567:9;48214:420;-1:-1:-1;;48214:420:0:o;48523:65::-;48605:21;48618:7;48605:12;:21::i;96223:260::-;-1:-1:-1;;;;;94815:26:0;;96295:7;94815:26;;;:19;:26;;;;;;96295:7;;96339:30;;-1:-1:-1;;;96339:30:0;;96363:4;96339:30;;;2041:51:1;-1:-1:-1;;;;;96339:15:0;;;;;2014:18:1;;96339:30:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:53;;;;:::i;:::-;-1:-1:-1;;;;;95519:21:0;;;95492:7;95519:21;;;:14;:21;;;;;;;;:30;;;;;;;;;;96315:77;;-1:-1:-1;96410:65:0;;96426:7;;96315:77;;95997:15;:58::i;96410:65::-;96403:72;96223:260;-1:-1:-1;;;;96223:260:0:o;107841:37::-;;;;;;;:::i;110966:277::-;111065:13;111099:17;111107:8;111099:7;:17::i;:::-;111091:61;;;;-1:-1:-1;;;111091:61:0;;18471:2:1;111091:61:0;;;18453:21:1;18510:2;18490:18;;;18483:30;18549:33;18529:18;;;18522:61;18600:18;;111091:61:0;18269:355:1;111091:61:0;111196:7;111205:19;:8;:17;:19::i;:::-;111179:55;;;;;;;;;:::i;:::-;;;;;;;;;;;;;111165:70;;110966:277;;;:::o;109009:124::-;100137:13;:11;:13::i;:::-;109095:30;;::::1;::::0;:13:::1;::::0;:30:::1;::::0;::::1;::::0;::::1;:::i;101157:201::-:0;100137:13;:11;:13::i;:::-;-1:-1:-1;;;;;101246:22:0;::::1;101238:73;;;::::0;-1:-1:-1;;;101238:73:0;;20571:2:1;101238:73:0::1;::::0;::::1;20553:21:1::0;20610:2;20590:18;;;20583:30;20649:34;20629:18;;;20622:62;-1:-1:-1;;;20700:18:1;;;20693:36;20746:19;;101238:73:0::1;20369:402:1::0;101238:73:0::1;101322:28;101341:8;101322:18;:28::i;:::-;101157:201:::0;:::o;109437:92::-;100137:13;:11;:13::i;:::-;109515:5:::1;109510:11;;;;;;;;:::i;:::-;109496;:25:::0;;-1:-1:-1;;109496:25:0::1;::::0;;::::1;::::0;::::1;;;;;;:::i;:::-;;;;;;109437:92:::0;:::o;54496:127::-;54585:19;;54603:1;54585:19;;;54496:127::o;24002:273::-;24059:4;24149:13;;24139:7;:23;24096:152;;;;-1:-1:-1;;24200:26:0;;;;:17;:26;;;;;;-1:-1:-1;;;24200:43:0;:48;;24002:273::o;100416:132::-;100297:7;100324:6;-1:-1:-1;;;;;100324:6:0;42650:10;100480:23;100472:68;;;;-1:-1:-1;;;100472:68:0;;20978:2:1;100472:68:0;;;20960:21:1;;;20997:18;;;20990:30;21056:34;21036:18;;;21029:62;21108:18;;100472:68:0;20776:356:1;62717:317:0;62832:6;62807:21;:31;;62799:73;;;;-1:-1:-1;;;62799:73:0;;21339:2:1;62799:73:0;;;21321:21:1;21378:2;21358:18;;;21351:30;21417:31;21397:18;;;21390:59;21466:18;;62799:73:0;21137:353:1;62799:73:0;62886:12;62904:9;-1:-1:-1;;;;;62904:14:0;62926:6;62904:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;62885:52;;;62956:7;62948:78;;;;-1:-1:-1;;;62948:78:0;;21697:2:1;62948:78:0;;;21679:21:1;21736:2;21716:18;;;21709:30;21775:34;21755:18;;;21748:62;21846:28;21826:18;;;21819:56;21892:19;;62948:78:0;21495:422:1;16962:1129:0;17029:7;17064;17166:13;;17159:4;:20;17155:869;;;17204:14;17221:23;;;:17;:23;;;;;;;-1:-1:-1;;;17310:23:0;;:28;;17306:699;;17829:113;17836:6;17846:1;17836:11;17829:113;;-1:-1:-1;;;17907:6:0;17889:25;;;;:17;:25;;;;;;17829:113;;17306:699;17181:843;17155:869;18052:31;;-1:-1:-1;;;18052:31:0;;;;;;;;;;;74734:211;74878:58;;;-1:-1:-1;;;;;13085:32:1;;74878:58:0;;;13067:51:1;13134:18;;;;13127:34;;;74878:58:0;;;;;;;;;;13040:18:1;;;;74878:58:0;;;;;;;;-1:-1:-1;;;;;74878:58:0;-1:-1:-1;;;74878:58:0;;;74851:86;;74871:5;;74851:19;:86::i;101518:191::-;101592:16;101611:6;;-1:-1:-1;;;;;101628:17:0;;;-1:-1:-1;;;;;;101628:17:0;;;;;;101661:40;;101611:6;;;;;;;101661:40;;101592:16;101661:40;101581:128;101518:191;:::o;18639:153::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18759:24:0;;;;:17;:24;;;;;;18740:44;;:18;:44::i;24359:104::-;24428:27;24438:2;24442:8;24428:27;;;;;;;;;;;;:9;:27::i;98096:248::-;98306:12;;-1:-1:-1;;;;;98286:16:0;;98242:7;98286:16;;;:7;:16;;;;;;98242:7;;98321:15;;98270:32;;:13;:32;:::i;:::-;98269:49;;;;:::i;:::-;:67;;;;:::i;38218:716::-;38402:88;;-1:-1:-1;;;38402:88:0;;38381:4;;-1:-1:-1;;;;;38402:45:0;;;;;:88;;42650:10;;38469:4;;38475:7;;38484:5;;38402:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;38402:88:0;;;;;;;;-1:-1:-1;;38402:88:0;;;;;;;;;;;;:::i;:::-;;;38398:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38685:6;:13;38702:1;38685:18;38681:235;;38731:40;;-1:-1:-1;;;38731:40:0;;;;;;;;;;;38681:235;38874:6;38868:13;38859:6;38855:2;38851:15;38844:38;38398:529;-1:-1:-1;;;;;;38561:64:0;-1:-1:-1;;;38561:64:0;;-1:-1:-1;38218:716:0;;;;;;:::o;19295:158::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19398:47:0;19417:27;19436:7;19417:18;:27::i;:::-;19398:18;:47::i;58156:723::-;58212:13;58433:5;58442:1;58433:10;58429:53;;-1:-1:-1;;58460:10:0;;;;;;;;;;;;-1:-1:-1;;;58460:10:0;;;;;58156:723::o;58429:53::-;58507:5;58492:12;58548:78;58555:9;;58548:78;;58581:8;;;;:::i;:::-;;-1:-1:-1;58604:10:0;;-1:-1:-1;58612:2:0;58604:10;;:::i;:::-;;;58548:78;;;58636:19;58668:6;58658:17;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;58658:17:0;;58636:39;;58686:154;58693:10;;58686:154;;58720:11;58730:1;58720:11;;:::i;:::-;;-1:-1:-1;58789:10:0;58797:2;58789:5;:10;:::i;:::-;58776:24;;:2;:24;:::i;:::-;58763:39;;58746:6;58753;58746:14;;;;;;;;:::i;:::-;;;;:56;-1:-1:-1;;;;;58746:56:0;;;;;;;;-1:-1:-1;58817:11:0;58826:2;58817:11;;:::i;:::-;;;58686:154;;77801:716;78225:23;78251:69;78279:4;78251:69;;;;;;;;;;;;;;;;;78259:5;-1:-1:-1;;;;;78251:27:0;;;:69;;;;;:::i;:::-;78335:17;;78225:95;;-1:-1:-1;78335:21:0;78331:179;;78432:10;78421:30;;;;;;;;;;;;:::i;:::-;78413:85;;;;-1:-1:-1;;;78413:85:0;;23637:2:1;78413:85:0;;;23619:21:1;23676:2;23656:18;;;23649:30;23715:34;23695:18;;;23688:62;-1:-1:-1;;;23766:18:1;;;23759:40;23816:19;;78413:85:0;23435:406:1;18185:363:0;-1:-1:-1;;;;;;;;;;;;;18295:41:0;;;;10497:3;18381:32;;;18347:67;;-1:-1:-1;;;18347:67:0;-1:-1:-1;;;18444:23:0;;:28;;-1:-1:-1;;;18425:47:0;;;;11014:3;18512:27;;;;-1:-1:-1;;;18483:57:0;-1:-1:-1;18185:363:0:o;24879:681::-;25002:19;25008:2;25012:8;25002:5;:19::i;:::-;-1:-1:-1;;;;;25063:14:0;;;:19;25059:483;;25117:13;;25165:14;;;25198:233;25229:62;25268:1;25272:2;25276:7;;;;;;25285:5;25229:30;:62::i;:::-;25224:167;;25327:40;;-1:-1:-1;;;25327:40:0;;;;;;;;;;;25224:167;25426:3;25418:5;:11;25198:233;;25513:3;25496:13;;:20;25492:34;;25518:8;;;25492:34;25084:458;;24879:681;;;:::o;64201:229::-;64338:12;64370:52;64392:6;64400:4;64406:1;64409:12;64370:21;:52::i;25833:1529::-;25921:13;;-1:-1:-1;;;;;25949:16:0;;25945:48;;25974:19;;-1:-1:-1;;;25974:19:0;;;;;;;;;;;25945:48;26008:8;26020:1;26008:13;26004:44;;26030:18;;-1:-1:-1;;;26030:18:0;;;;;;;;;;;26004:44;-1:-1:-1;;;;;26536:22:0;;;;;;:18;:22;;9980:2;26536:22;;:70;;26574:31;26562:44;;26536:70;;;19944:11;19920:22;19916:40;-1:-1:-1;21654:15:0;;21629:23;21625:45;19913:51;19903:62;26849:31;;;;:17;:31;;;;;:173;26867:12;27098:23;;;27136:101;27163:35;;27188:9;;;;;-1:-1:-1;;;;;27163:35:0;;;27180:1;;27163:35;;27180:1;;27163:35;27232:3;27222:7;:13;27136:101;;27253:13;:19;-1:-1:-1;23092:185:0;;;:::o;65321:510::-;65491:12;65549:5;65524:21;:30;;65516:81;;;;-1:-1:-1;;;65516:81:0;;24048:2:1;65516:81:0;;;24030:21:1;24087:2;24067:18;;;24060:30;24126:34;24106:18;;;24099:62;-1:-1:-1;;;24177:18:1;;;24170:36;24223:19;;65516:81:0;23846:402:1;65516:81:0;-1:-1:-1;;;;;61751:19:0;;;65608:60;;;;-1:-1:-1;;;65608:60:0;;24455:2:1;65608:60:0;;;24437:21:1;24494:2;24474:18;;;24467:30;24533:31;24513:18;;;24506:59;24582:18;;65608:60:0;24253:353:1;65608:60:0;65682:12;65696:23;65723:6;-1:-1:-1;;;;;65723:11:0;65742:5;65749:4;65723:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;65681:73;;;;65772:51;65789:7;65798:10;65810:12;65772:16;:51::i;:::-;65765:58;65321:510;-1:-1:-1;;;;;;;65321:510:0:o;68007:762::-;68157:12;68186:7;68182:580;;;-1:-1:-1;68217:10:0;68210:17;;68182:580;68331:17;;:21;68327:424;;68579:10;68573:17;68640:15;68627:10;68623:2;68619:19;68612:44;68327:424;68722:12;68715:20;;-1:-1:-1;;;68715:20:0;;;;;;;;:::i;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;359:131:1;-1:-1:-1;;;;;;433:32:1;;423:43;;413:71;;480:1;477;470:12;495:245;553:6;606:2;594:9;585:7;581:23;577:32;574:52;;;622:1;619;612:12;574:52;661:9;648:23;680:30;704:5;680:30;:::i;937:258::-;1009:1;1019:113;1033:6;1030:1;1027:13;1019:113;;;1109:11;;;1103:18;1090:11;;;1083:39;1055:2;1048:10;1019:113;;;1150:6;1147:1;1144:13;1141:48;;;-1:-1:-1;;1185:1:1;1167:16;;1160:27;937:258::o;1200:269::-;1253:3;1291:5;1285:12;1318:6;1313:3;1306:19;1334:63;1390:6;1383:4;1378:3;1374:14;1367:4;1360:5;1356:16;1334:63;:::i;:::-;1451:2;1430:15;-1:-1:-1;;1426:29:1;1417:39;;;;1458:4;1413:50;;1200:269;-1:-1:-1;;1200:269:1:o;1474:231::-;1623:2;1612:9;1605:21;1586:4;1643:56;1695:2;1684:9;1680:18;1672:6;1643:56;:::i;1710:180::-;1769:6;1822:2;1810:9;1801:7;1797:23;1793:32;1790:52;;;1838:1;1835;1828:12;1790:52;-1:-1:-1;1861:23:1;;1710:180;-1:-1:-1;1710:180:1:o;2103:131::-;-1:-1:-1;;;;;2178:31:1;;2168:42;;2158:70;;2224:1;2221;2214:12;2239:315;2307:6;2315;2368:2;2356:9;2347:7;2343:23;2339:32;2336:52;;;2384:1;2381;2374:12;2336:52;2423:9;2410:23;2442:31;2467:5;2442:31;:::i;:::-;2492:5;2544:2;2529:18;;;;2516:32;;-1:-1:-1;;;2239:315:1:o;2741:118::-;2827:5;2820:13;2813:21;2806:5;2803:32;2793:60;;2849:1;2846;2839:12;2864:241;2920:6;2973:2;2961:9;2952:7;2948:23;2944:32;2941:52;;;2989:1;2986;2979:12;2941:52;3028:9;3015:23;3047:28;3069:5;3047:28;:::i;3110:255::-;3177:6;3230:2;3218:9;3209:7;3205:23;3201:32;3198:52;;;3246:1;3243;3236:12;3198:52;3285:9;3272:23;3304:31;3329:5;3304:31;:::i;3370:456::-;3447:6;3455;3463;3516:2;3504:9;3495:7;3491:23;3487:32;3484:52;;;3532:1;3529;3522:12;3484:52;3571:9;3558:23;3590:31;3615:5;3590:31;:::i;:::-;3640:5;-1:-1:-1;3697:2:1;3682:18;;3669:32;3710:33;3669:32;3710:33;:::i;:::-;3370:456;;3762:7;;-1:-1:-1;;;3816:2:1;3801:18;;;;3788:32;;3370:456::o;4083:403::-;4166:6;4174;4227:2;4215:9;4206:7;4202:23;4198:32;4195:52;;;4243:1;4240;4233:12;4195:52;4282:9;4269:23;4301:31;4326:5;4301:31;:::i;:::-;4351:5;-1:-1:-1;4408:2:1;4393:18;;4380:32;4421:33;4380:32;4421:33;:::i;:::-;4473:7;4463:17;;;4083:403;;;;;:::o;4491:127::-;4552:10;4547:3;4543:20;4540:1;4533:31;4583:4;4580:1;4573:15;4607:4;4604:1;4597:15;4623:275;4694:2;4688:9;4759:2;4740:13;;-1:-1:-1;;4736:27:1;4724:40;;4794:18;4779:34;;4815:22;;;4776:62;4773:88;;;4841:18;;:::i;:::-;4877:2;4870:22;4623:275;;-1:-1:-1;4623:275:1:o;4903:946::-;4987:6;5018:2;5061;5049:9;5040:7;5036:23;5032:32;5029:52;;;5077:1;5074;5067:12;5029:52;5117:9;5104:23;5146:18;5187:2;5179:6;5176:14;5173:34;;;5203:1;5200;5193:12;5173:34;5241:6;5230:9;5226:22;5216:32;;5286:7;5279:4;5275:2;5271:13;5267:27;5257:55;;5308:1;5305;5298:12;5257:55;5344:2;5331:16;5366:2;5362;5359:10;5356:36;;;5372:18;;:::i;:::-;5418:2;5415:1;5411:10;5401:20;;5441:28;5465:2;5461;5457:11;5441:28;:::i;:::-;5503:15;;;5573:11;;;5569:20;;;5534:12;;;;5601:19;;;5598:39;;;5633:1;5630;5623:12;5598:39;5657:11;;;;5677:142;5693:6;5688:3;5685:15;5677:142;;;5759:17;;5747:30;;5710:12;;;;5797;;;;5677:142;;;5838:5;4903:946;-1:-1:-1;;;;;;;;4903:946:1:o;5854:349::-;5938:12;;-1:-1:-1;;;;;5934:38:1;5922:51;;6026:4;6015:16;;;6009:23;6034:18;6005:48;5989:14;;;5982:72;6117:4;6106:16;;;6100:23;6093:31;6086:39;6070:14;;;6063:63;6179:4;6168:16;;;6162:23;6187:8;6158:38;6142:14;;6135:62;5854:349::o;6208:720::-;6439:2;6491:21;;;6561:13;;6464:18;;;6583:22;;;6410:4;;6439:2;6662:15;;;;6636:2;6621:18;;;6410:4;6705:197;6719:6;6716:1;6713:13;6705:197;;;6768:52;6816:3;6807:6;6801:13;6768:52;:::i;:::-;6877:15;;;;6849:4;6840:14;;;;;6741:1;6734:9;6705:197;;6933:632;7104:2;7156:21;;;7226:13;;7129:18;;;7248:22;;;7075:4;;7104:2;7327:15;;;;7301:2;7286:18;;;7075:4;7370:169;7384:6;7381:1;7378:13;7370:169;;;7445:13;;7433:26;;7514:15;;;;7479:12;;;;7406:1;7399:9;7370:169;;7570:383;7647:6;7655;7663;7716:2;7704:9;7695:7;7691:23;7687:32;7684:52;;;7732:1;7729;7722:12;7684:52;7771:9;7758:23;7790:31;7815:5;7790:31;:::i;:::-;7840:5;7892:2;7877:18;;7864:32;;-1:-1:-1;7943:2:1;7928:18;;;7915:32;;7570:383;-1:-1:-1;;;7570:383:1:o;7958:407::-;8023:5;8057:18;8049:6;8046:30;8043:56;;;8079:18;;:::i;:::-;8117:57;8162:2;8141:15;;-1:-1:-1;;8137:29:1;8168:4;8133:40;8117:57;:::i;:::-;8108:66;;8197:6;8190:5;8183:21;8237:3;8228:6;8223:3;8219:16;8216:25;8213:45;;;8254:1;8251;8244:12;8213:45;8303:6;8298:3;8291:4;8284:5;8280:16;8267:43;8357:1;8350:4;8341:6;8334:5;8330:18;8326:29;8319:40;7958:407;;;;;:::o;8370:451::-;8439:6;8492:2;8480:9;8471:7;8467:23;8463:32;8460:52;;;8508:1;8505;8498:12;8460:52;8548:9;8535:23;8581:18;8573:6;8570:30;8567:50;;;8613:1;8610;8603:12;8567:50;8636:22;;8689:4;8681:13;;8677:27;-1:-1:-1;8667:55:1;;8718:1;8715;8708:12;8667:55;8741:74;8807:7;8802:2;8789:16;8784:2;8780;8776:11;8741:74;:::i;8826:382::-;8891:6;8899;8952:2;8940:9;8931:7;8927:23;8923:32;8920:52;;;8968:1;8965;8958:12;8920:52;9007:9;8994:23;9026:31;9051:5;9026:31;:::i;:::-;9076:5;-1:-1:-1;9133:2:1;9118:18;;9105:32;9146:30;9105:32;9146:30;:::i;9213:795::-;9308:6;9316;9324;9332;9385:3;9373:9;9364:7;9360:23;9356:33;9353:53;;;9402:1;9399;9392:12;9353:53;9441:9;9428:23;9460:31;9485:5;9460:31;:::i;:::-;9510:5;-1:-1:-1;9567:2:1;9552:18;;9539:32;9580:33;9539:32;9580:33;:::i;:::-;9632:7;-1:-1:-1;9686:2:1;9671:18;;9658:32;;-1:-1:-1;9741:2:1;9726:18;;9713:32;9768:18;9757:30;;9754:50;;;9800:1;9797;9790:12;9754:50;9823:22;;9876:4;9868:13;;9864:27;-1:-1:-1;9854:55:1;;9905:1;9902;9895:12;9854:55;9928:74;9994:7;9989:2;9976:16;9971:2;9967;9963:11;9928:74;:::i;:::-;9918:84;;;9213:795;;;;;;;:::o;10013:264::-;10207:3;10192:19;;10220:51;10196:9;10253:6;10220:51;:::i;10282:127::-;10343:10;10338:3;10334:20;10331:1;10324:31;10374:4;10371:1;10364:15;10398:4;10395:1;10388:15;10414:337;10555:2;10540:18;;10588:1;10577:13;;10567:144;;10633:10;10628:3;10624:20;10621:1;10614:31;10668:4;10665:1;10658:15;10696:4;10693:1;10686:15;10567:144;10720:25;;;10414:337;:::o;11416:380::-;11495:1;11491:12;;;;11538;;;11559:61;;11613:4;11605:6;11601:17;11591:27;;11559:61;11666:2;11658:6;11655:14;11635:18;11632:38;11629:161;;11712:10;11707:3;11703:20;11700:1;11693:31;11747:4;11744:1;11737:15;11775:4;11772:1;11765:15;11629:161;;11416:380;;;:::o;11801:402::-;12003:2;11985:21;;;12042:2;12022:18;;;12015:30;12081:34;12076:2;12061:18;;12054:62;-1:-1:-1;;;12147:2:1;12132:18;;12125:36;12193:3;12178:19;;11801:402::o;12208:407::-;12410:2;12392:21;;;12449:2;12429:18;;;12422:30;12488:34;12483:2;12468:18;;12461:62;-1:-1:-1;;;12554:2:1;12539:18;;12532:41;12605:3;12590:19;;12208:407::o;12620:127::-;12681:10;12676:3;12672:20;12669:1;12662:31;12712:4;12709:1;12702:15;12736:4;12733:1;12726:15;12752:128;12792:3;12823:1;12819:6;12816:1;12813:13;12810:39;;;12829:18;;:::i;:::-;-1:-1:-1;12865:9:1;;12752:128::o;13451:127::-;13512:10;13507:3;13503:20;13500:1;13493:31;13543:4;13540:1;13533:15;13567:4;13564:1;13557:15;13943:135;13982:3;14003:17;;;14000:43;;14023:18;;:::i;:::-;-1:-1:-1;14070:1:1;14059:13;;13943:135::o;15144:404::-;15346:2;15328:21;;;15385:2;15365:18;;;15358:30;15424:34;15419:2;15404:18;;15397:62;-1:-1:-1;;;15490:2:1;15475:18;;15468:38;15538:3;15523:19;;15144:404::o;15962:168::-;16002:7;16068:1;16064;16060:6;16056:14;16053:1;16050:21;16045:1;16038:9;16031:17;16027:45;16024:71;;;16075:18;;:::i;:::-;-1:-1:-1;16115:9:1;;15962:168::o;18080:184::-;18150:6;18203:2;18191:9;18182:7;18178:23;18174:32;18171:52;;;18219:1;18216;18209:12;18171:52;-1:-1:-1;18242:16:1;;18080:184;-1:-1:-1;18080:184:1:o;18755:185::-;18797:3;18835:5;18829:12;18850:52;18895:6;18890:3;18883:4;18876:5;18872:16;18850:52;:::i;:::-;18918:16;;;;;18755:185;-1:-1:-1;;18755:185:1:o;19063:1301::-;19340:3;19369:1;19402:6;19396:13;19432:3;19454:1;19482:9;19478:2;19474:18;19464:28;;19542:2;19531:9;19527:18;19564;19554:61;;19608:4;19600:6;19596:17;19586:27;;19554:61;19634:2;19682;19674:6;19671:14;19651:18;19648:38;19645:165;;-1:-1:-1;;;19709:33:1;;19765:4;19762:1;19755:15;19795:4;19716:3;19783:17;19645:165;19826:18;19853:104;;;;19971:1;19966:320;;;;19819:467;;19853:104;-1:-1:-1;;19886:24:1;;19874:37;;19931:16;;;;-1:-1:-1;19853:104:1;;19966:320;18702:1;18695:14;;;18739:4;18726:18;;20061:1;20075:165;20089:6;20086:1;20083:13;20075:165;;;20167:14;;20154:11;;;20147:35;20210:16;;;;20104:10;;20075:165;;;20079:3;;20269:6;20264:3;20260:16;20253:23;;19819:467;;;;;;;20302:56;20327:30;20353:3;20345:6;20327:30;:::i;:::-;-1:-1:-1;;;19005:20:1;;19050:1;19041:11;;18945:113;20302:56;20295:63;19063:1301;-1:-1:-1;;;;;19063:1301:1:o;21922:127::-;21983:10;21978:3;21974:20;21971:1;21964:31;22014:4;22011:1;22004:15;22038:4;22035:1;22028:15;22054:120;22094:1;22120;22110:35;;22125:18;;:::i;:::-;-1:-1:-1;22159:9:1;;22054:120::o;22179:125::-;22219:4;22247:1;22244;22241:8;22238:34;;;22252:18;;:::i;:::-;-1:-1:-1;22289:9:1;;22179:125::o;22309:500::-;-1:-1:-1;;;;;22578:15:1;;;22560:34;;22630:15;;22625:2;22610:18;;22603:43;22677:2;22662:18;;22655:34;;;22725:3;22720:2;22705:18;;22698:31;;;22503:4;;22746:57;;22783:19;;22775:6;22746:57;:::i;:::-;22738:65;22309:500;-1:-1:-1;;;;;;22309:500:1:o;22814:249::-;22883:6;22936:2;22924:9;22915:7;22911:23;22907:32;22904:52;;;22952:1;22949;22942:12;22904:52;22984:9;22978:16;23003:30;23027:5;23003:30;:::i;23068:112::-;23100:1;23126;23116:35;;23131:18;;:::i;:::-;-1:-1:-1;23165:9:1;;23068:112::o;23185:245::-;23252:6;23305:2;23293:9;23284:7;23280:23;23276:32;23273:52;;;23321:1;23318;23311:12;23273:52;23353:9;23347:16;23372:28;23394:5;23372:28;:::i;24611:274::-;24740:3;24778:6;24772:13;24794:53;24840:6;24835:3;24828:4;24820:6;24816:17;24794:53;:::i;:::-;24863:16;;;;;24611:274;-1:-1:-1;;24611:274:1:o
Swarm Source
ipfs://28dfba41afb1aaf5b5bf94afb23f8f84ba2ea601d6b76e34253ba05bcdfa26d0
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ 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.