ERC-721
NFT
Overview
Max Total Supply
2,000 WINDCHIME
Holders
1,096
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 WINDCHIMELoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
BaseDutchAuctionERC721A
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT // Author: Eric Gao (@itsoksami, https://github.com/Ericxgao) pragma solidity ^0.8.4; import "erc721a/contracts/ERC721A.sol"; import "./LinearDutchAuction.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "@openzeppelin/contracts/finance/PaymentSplitter.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "hardhat/console.sol"; contract BaseDutchAuctionERC721A is ERC721A, LinearDutchAuction, ReentrancyGuard { using Strings for uint256; using ECDSA for bytes32; string public prefix = "Windchime"; string public prefixDiscounted = "Windchime"; string private baseTokenURI = ''; string public licenseTerms = ''; mapping(address => uint256) private _whitelistClaimed; mapping(address => uint256) private _publicListClaimed; uint256 public whitelistMaxMint; uint256 public publicListMaxMint; uint256 public reservedMax; uint256 public max; uint256 public nonReservedMinted; uint256 public reservedMinted; uint256 public discountedPrice; PaymentSplitter private _splitter; bool public isAllowedRefund; bool public allowPublicRefunds; bool allowWhitelistRefunds; bool allowDiscountRefunds; uint256 public isRefund; uint256 public refundPrice; uint256 public totalMintsForRefund; mapping(address => uint256) publicPurchasePrices; mapping(address => uint256) whitelistPurchasePrices; mapping(address => uint256) discountedPurchasePrices; mapping(address => uint256) private _discountClaimed; uint64 private constant decreaseInterval = 900; uint64 private constant numDecreases = 9; uint64 private constant startPrice = 5 ether; uint64 private constant decreaseSize = 0.5 ether; uint256 public publicTotalMaxMint; uint256 public publicTotalMinted; constructor( address[] memory payees, uint256[] memory shares, string memory name, string memory symbol, uint256 _whitelistMaxMint, uint256 _publicListMaxMint, uint256 _nonReservedMax, uint256 _reservedMax, uint256 _discountedPrice, uint256 _publicTotalMaxMint ) ERC721A(name, symbol, 20) LinearDutchAuction( LinearDutchAuction.DutchAuctionConfig({ startPoint: 0, // disabled at deployment startPrice: startPrice, unit: AuctionIntervalUnit.Time, decreaseInterval: decreaseInterval, // 15 minutes decreaseSize: decreaseSize, numDecreases: numDecreases }), .5 ether ) { whitelistMaxMint = _whitelistMaxMint; publicListMaxMint = _publicListMaxMint; reservedMax = _reservedMax; max = _nonReservedMax + reservedMax; nonReservedMinted = 0; reservedMinted = 0; discountedPrice = _discountedPrice; publicTotalMaxMint = _publicTotalMaxMint; _splitter = new PaymentSplitter(payees, shares); } function release(address payable account) external { _splitter.release(account); } function _hash(string memory _prefix, address _address) internal pure returns (bytes32) { return keccak256(abi.encodePacked(_prefix, _address)); } function _whitelistHash(address _address, uint256 _price, uint256 _quantity) internal pure returns (bytes32) { return keccak256(abi.encodePacked(_address, _price, _quantity)); } function _verify(bytes32 hash, bytes memory signature) internal view returns (bool) { return (_recover(hash, signature) == owner()); } function _recover(bytes32 hash, bytes memory signature) internal pure returns (address) { return hash.recover(signature); } function setPrefix(string memory _prefix) public onlyOwner { prefix = _prefix; } function setLicenseTerms(string memory _licenseTerms) public onlyOwner { licenseTerms = _licenseTerms; } function setMax(uint256 _max) external onlyOwner { max = _max; } function setPrefixDiscounted(string memory _prefix) public onlyOwner { prefixDiscounted = _prefix; } function setWhitelistMaxMint(uint256 _whitelistMaxMint) external onlyOwner { whitelistMaxMint = _whitelistMaxMint; } function setPublicListMaxMint(uint256 _publicListMaxMint) external onlyOwner { publicListMaxMint = _publicListMaxMint; } function mintPublic(uint256 numberOfTokens) external payable { require(_publicListClaimed[msg.sender] + _whitelistClaimed[msg.sender] + numberOfTokens <= publicListMaxMint, 'You cannot mint this many.'); publicTotalMinted += numberOfTokens; require(publicTotalMinted <= publicTotalMaxMint, "exceed amount"); _publicListClaimed[msg.sender] += numberOfTokens; _nonReservedMintHelper(numberOfTokens, true); } function mintWhitelist(bytes32 hash, bytes memory signature, uint256 numberOfTokens) external payable { require(_verify(hash, signature), "This hash's signature is invalid."); require(_hash(prefix, msg.sender) == hash, "The address hash does not match the signed hash."); require(_whitelistClaimed[msg.sender] + numberOfTokens <= whitelistMaxMint, 'You cannot mint this many.'); _whitelistClaimed[msg.sender] += numberOfTokens; _nonReservedMintHelper(numberOfTokens, false); } function mintWhitelistPrice(bytes32 hash, bytes memory signature, uint256 price, uint256 numberOfTokens) external payable { require(_verify(hash, signature), "This hash's signature is invalid."); require(_whitelistHash(msg.sender, price, numberOfTokens) == hash, "The address hash does not match the signed hash."); require(_whitelistClaimed[msg.sender] + numberOfTokens <= whitelistMaxMint, 'You cannot mint this many.'); _whitelistClaimed[msg.sender] += numberOfTokens; _mintWhitelistPrice(price, numberOfTokens); } function _mintWhitelistPrice(uint256 _price, uint256 _quantity) internal nonReentrant { require(totalSupply() + _quantity <= max, "Sold out."); uint256 amount = _price * _quantity; require(amount <= msg.value, "Invalid amount."); _safeMint(msg.sender, _quantity); totalMintsForRefund += _quantity; whitelistPurchasePrices[msg.sender] += amount; if (msg.value > amount) { address payable reimburse = payable(_msgSender()); uint256 refundAmount = msg.value - amount; (bool success, bytes memory returnData) = reimburse.call{ value: refundAmount }(""); require(success, string(returnData)); } } function _hashMintWhitelistAmountAndPrice(string memory _prefix, address _address, uint256 _amount, uint256 _price) internal view returns (bytes32) { return keccak256(abi.encodePacked(_prefix, _address, _amount, _price)); } function mintWhitelistAmountAndPrice(bytes32 hash, bytes calldata signature, uint256 numberOfTokens, uint256 customLimit, uint256 price) external payable { require(_verify(hash, signature), "This hash's signature is invalid."); require(_hashMintWhitelistAmountAndPrice(prefixDiscounted, msg.sender, customLimit, price) == hash, "Hash invalid."); require(_whitelistClaimed[msg.sender] + numberOfTokens <= customLimit, 'You cannot mint this many.'); require(_whitelistClaimed[msg.sender] + numberOfTokens <= whitelistMaxMint, 'You cannot mint this many.'); _whitelistClaimed[msg.sender] += numberOfTokens; _mintWhitelistPrice(price, numberOfTokens); } function _nonReservedMintHelper(uint256 numberOfTokens, bool isPublic) internal nonReentrant { require(totalSupply() + numberOfTokens <= max, "Sold out."); uint256 price = cost(numberOfTokens); require(price <= msg.value, "Invalid amount."); _safeMint(msg.sender, numberOfTokens); totalMintsForRefund += numberOfTokens; if (isPublic) { publicPurchasePrices[msg.sender] += price; } else { whitelistPurchasePrices[msg.sender] += price; } if (msg.value > price) { address payable reimburse = payable(_msgSender()); uint256 refundAmount = msg.value - price; // Using Address.sendValue() here would mask the revertMsg upon // reentrancy, but we want to expose it to allow for more precise // testing. This otherwise uses the exact same pattern as // Address.sendValue(). (bool success, bytes memory returnData) = reimburse.call{ value: refundAmount }(""); // Although `returnData` will have a spurious prefix, all we really // care about is that it contains the ReentrancyGuard reversion // message so we can check in the tests. require(success, string(returnData)); } } function splitPayments(uint256 _amount) public payable onlyOwner { (bool success, ) = payable(_splitter).call{value: _amount}( "" ); require(success, "transfer failed"); } function airdropMint(address[] calldata recipients, uint256[] calldata amounts) external onlyOwner { uint256 len = recipients.length; for(uint256 i = 0; i < len; i ++) { require( totalSupply() + amounts[i] <= reservedMax, "Sold out." ); if (amounts[i] < maxBatchSize) { _safeMint(recipients[i], amounts[i]); } else { require( amounts[i] % maxBatchSize == 0, "Can only mint a multiple of the maxBatchSize." ); uint256 numChunks = amounts[i] / maxBatchSize; for (uint256 i = 0; i < numChunks; i++) { _safeMint(recipients[i], maxBatchSize); } } } } function mintReserved(uint256 quantity, address recipient) external onlyOwner { require( totalSupply() + quantity <= reservedMax, "Sold out." ); if (quantity < maxBatchSize) { _safeMint(recipient, quantity); } else { require( quantity % maxBatchSize == 0, "Can only mint a multiple of the maxBatchSize." ); uint256 numChunks = quantity / maxBatchSize; for (uint256 i = 0; i < numChunks; i++) { _safeMint(recipient, maxBatchSize); } } } function mintWhitelistDiscounted(bytes32 hash, bytes memory signature, uint256 numberOfTokens) external payable { require(_verify(hash, signature), "This hash's signature is invalid."); require(_hash(prefixDiscounted, msg.sender) == hash, "The address hash does not match the signed hash."); require(_whitelistClaimed[msg.sender] + numberOfTokens <= whitelistMaxMint, 'You cannot mint this many.'); require(discountedPrice * numberOfTokens == msg.value, "Invalid amount."); _whitelistClaimed[msg.sender] += numberOfTokens; _discountClaimed[msg.sender] += numberOfTokens; totalMintsForRefund += numberOfTokens; discountedPurchasePrices[msg.sender] += msg.value; _safeMint(msg.sender, numberOfTokens); } function setBaseURI(string memory baseTokenURI_) external onlyOwner { baseTokenURI = baseTokenURI_; } function tokenURI(uint256 tokenId) public view override returns (string memory) { return string(abi.encodePacked(baseTokenURI, tokenId.toString())); } function setRefundPrice(uint256 _price) external onlyOwner { refundPrice = _price; } function setAllowPublicRefunds(bool _allow) external onlyOwner { allowPublicRefunds = _allow; } function setAllowWhitelistRefunds(bool _allow) external onlyOwner { allowWhitelistRefunds = _allow; } function setAllowDiscountRefunds(bool _allow) external onlyOwner { allowDiscountRefunds = _allow; } function allowRefund(bool _allow) external onlyOwner { isAllowedRefund = _allow; } function getRefundTotal() external view returns(uint256) { require(isAllowedRefund, "refund not allowed"); return totalMintsForRefund * refundPrice; } function getPublicRefundAmount() public view returns(uint256) { if (allowPublicRefunds && (publicPurchasePrices[msg.sender] > _publicListClaimed[msg.sender] * refundPrice)) { return publicPurchasePrices[msg.sender] - _publicListClaimed[msg.sender] * refundPrice; } return 0; } function getWhitelistRefundAmount() public view returns(uint256) { if (allowWhitelistRefunds && (whitelistPurchasePrices[msg.sender] > (_whitelistClaimed[msg.sender] - _discountClaimed[msg.sender]) * refundPrice)) { return whitelistPurchasePrices[msg.sender] - (_whitelistClaimed[msg.sender] - _discountClaimed[msg.sender]) * refundPrice; } return 0; } function getDiscountRefundAmount() public view returns(uint256) { if (allowDiscountRefunds && (discountedPurchasePrices[msg.sender] > _discountClaimed[msg.sender] * refundPrice)) { return discountedPurchasePrices[msg.sender] - _discountClaimed[msg.sender] * refundPrice; } return 0; } function refund() external nonReentrant { require(isAllowedRefund == true, "refund not allowed"); uint256 amount; uint256 refundAmount = getPublicRefundAmount(); if (refundAmount != 0) { amount = refundAmount; publicPurchasePrices[msg.sender] = 0; totalMintsForRefund = totalMintsForRefund - _publicListClaimed[msg.sender]; } refundAmount = getWhitelistRefundAmount(); if (refundAmount != 0) { amount += refundAmount; whitelistPurchasePrices[msg.sender] = 0; totalMintsForRefund = totalMintsForRefund - (_whitelistClaimed[msg.sender] - _discountClaimed[msg.sender]); } refundAmount = getDiscountRefundAmount(); if (refundAmount != 0) { amount += refundAmount; discountedPurchasePrices[msg.sender] = 0; totalMintsForRefund = totalMintsForRefund - _discountClaimed[msg.sender]; } require(amount != 0, "no refunds"); (bool success, ) = payable(msg.sender).call{value: amount}(""); require(success == true, "failed to refund"); } function getStartPrice() external view onlyOwner returns(uint64) { return startPrice; } function getDecreaseInterval() external view onlyOwner returns(uint64) { return decreaseInterval; } function getNumDescreases() external view onlyOwner returns(uint64) { return numDecreases; } function getDecreaseSize() external view onlyOwner returns(uint64) { return decreaseSize; } function getPublicMinted() external view returns(uint256) { return _publicListClaimed[msg.sender]; } function getWhitelistMinted() external view returns(uint256) { return _whitelistClaimed[msg.sender]; } function setPublicTotalMaxMint(uint256 _amount) external onlyOwner { publicTotalMaxMint = _amount; } function setDiscountedPrice(uint256 _discountedPrice) external onlyOwner { discountedPrice = _discountedPrice; } }
// SPDX-License-Identifier: MIT // Creator: Chiru Labs pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..). * * Does not support burning tokens to address(0). */ contract ERC721A is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable { using Address for address; using Strings for uint256; struct TokenOwnership { address addr; uint64 startTimestamp; } struct AddressData { uint128 balance; uint128 numberMinted; } uint256 private currentIndex = 0; uint256 internal immutable maxBatchSize; // 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 ownershipOf implementation for details. mapping(uint256 => TokenOwnership) private _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // 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; /** * @dev * `maxBatchSize` refers to how much a minter can mint at a time. */ constructor( string memory name_, string memory symbol_, uint256 maxBatchSize_ ) { require(maxBatchSize_ > 0, "ERC721A: max batch size must be nonzero"); _name = name_; _symbol = symbol_; maxBatchSize = maxBatchSize_; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view override returns (uint256) { return currentIndex; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view override returns (uint256) { require(index < totalSupply(), "ERC721A: global index out of bounds"); return index; } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. * This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first. * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) { require(index < balanceOf(owner), "ERC721A: owner index out of bounds"); uint256 numMintedSoFar = totalSupply(); uint256 tokenIdsIdx = 0; address currOwnershipAddr = address(0); for (uint256 i = 0; i < numMintedSoFar; i++) { TokenOwnership memory ownership = _ownerships[i]; if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { if (tokenIdsIdx == index) { return i; } tokenIdsIdx++; } } revert("ERC721A: unable to get token of owner by index"); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { require(owner != address(0), "ERC721A: balance query for the zero address"); return uint256(_addressData[owner].balance); } function _numberMinted(address owner) internal view returns (uint256) { require(owner != address(0), "ERC721A: number minted query for the zero address"); return uint256(_addressData[owner].numberMinted); } function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { require(_exists(tokenId), "ERC721A: owner query for nonexistent token"); uint256 lowestTokenToCheck; if (tokenId >= maxBatchSize) { lowestTokenToCheck = tokenId - maxBatchSize + 1; } for (uint256 curr = tokenId; curr >= lowestTokenToCheck; curr--) { TokenOwnership memory ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } revert("ERC721A: unable to determine the owner of token"); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return ownershipOf(tokenId).addr; } /** * @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) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @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, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721A.ownerOf(tokenId); require(to != owner, "ERC721A: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721A: approve caller is not owner nor approved for all" ); _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { require(_exists(tokenId), "ERC721A: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public override { require(operator != _msgSender(), "ERC721A: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), 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-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public override { _transfer(from, to, tokenId); require( _checkOnERC721Received(from, to, tokenId, _data), "ERC721A: transfer to non ERC721Receiver implementer" ); } /** * @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 tokenId < currentIndex; } function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ""); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` cannot be larger than the max batch size. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { uint256 startTokenId = currentIndex; require(to != address(0), "ERC721A: mint to the zero address"); // We know if the first token in the batch doesn't exist, the other ones don't as well, because of serial ordering. require(!_exists(startTokenId), "ERC721A: token already minted"); require(quantity <= maxBatchSize, "ERC721A: quantity to mint too high"); _beforeTokenTransfers(address(0), to, startTokenId, quantity); AddressData memory addressData = _addressData[to]; _addressData[to] = AddressData( addressData.balance + uint128(quantity), addressData.numberMinted + uint128(quantity) ); _ownerships[startTokenId] = TokenOwnership(to, uint64(block.timestamp)); uint256 updatedIndex = startTokenId; for (uint256 i = 0; i < quantity; i++) { emit Transfer(address(0), to, updatedIndex); require( _checkOnERC721Received(address(0), to, updatedIndex, _data), "ERC721A: transfer to non ERC721Receiver implementer" ); updatedIndex++; } currentIndex = updatedIndex; _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @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 _transfer( address from, address to, uint256 tokenId ) private { TokenOwnership memory prevOwnership = ownershipOf(tokenId); bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr || getApproved(tokenId) == _msgSender() || isApprovedForAll(prevOwnership.addr, _msgSender())); require(isApprovedOrOwner, "ERC721A: transfer caller is not owner nor approved"); require(prevOwnership.addr == from, "ERC721A: transfer from incorrect owner"); require(to != address(0), "ERC721A: transfer to the zero address"); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); _addressData[from].balance -= 1; _addressData[to].balance += 1; _ownerships[tokenId] = TokenOwnership(to, uint64(block.timestamp)); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; if (_ownerships[nextTokenId].addr == address(0)) { if (_exists(nextTokenId)) { _ownerships[nextTokenId] = TokenOwnership(prevOwnership.addr, prevOwnership.startTimestamp); } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } uint256 public nextOwnerToExplicitlySet = 0; /** * @dev Explicitly set `owners` to eliminate loops in future calls of ownerOf(). */ function _setOwnersExplicit(uint256 quantity) internal { uint256 oldNextOwnerToSet = nextOwnerToExplicitlySet; require(quantity > 0, "quantity must be nonzero"); uint256 endIndex = oldNextOwnerToSet + quantity - 1; if (endIndex > currentIndex - 1) { endIndex = currentIndex - 1; } // We know if the last one in the group exists, all in the group exist, due to serial ordering. require(_exists(endIndex), "not enough minted yet for this cleanup"); for (uint256 i = oldNextOwnerToSet; i <= endIndex; i++) { if (_ownerships[i].addr == address(0)) { TokenOwnership memory ownership = ownershipOf(i); _ownerships[i] = TokenOwnership(ownership.addr, ownership.startTimestamp); } } nextOwnerToExplicitlySet = endIndex + 1; } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a 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 _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721A: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * * 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`. */ 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. * * 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` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
// SPDX-License-Identifier: MIT // Copyright (c) 2021 the ethier authors (github.com/divergencetech/ethier) pragma solidity >=0.8.0 <0.9.0; import "@openzeppelin/contracts/utils/math/Math.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; /// @notice A Seller with a linearly decreasing price. abstract contract LinearDutchAuction is Ownable { /** @param unit The unit of "time" used for decreasing prices, block number or timestamp. NOTE: See the comment on AuctionIntervalUnit re use of Time as a unit. @param startPoint The block or timestamp at which the auction opens. A value of zero disables the auction. See setAuctionStartPoint(). @param startPrice The price at `startPoint`. @param decreaseInterval The number of units to wait before decreasing the price. MUST be non-zero. @param decreaseSize The amount by which price decreases after every `decreaseInterval`. @param numDecreases The maximum number of price decreases before remaining constant. The reserve price is therefore implicit and equal to startPrice-numDecrease*decreaseSize. */ struct DutchAuctionConfig { uint256 startPoint; uint256 startPrice; uint256 decreaseInterval; uint256 decreaseSize; // From https://docs.soliditylang.org/en/v0.8.10/types.html#enums "Enums // cannot have more than 256 members"; presumably they take 8 bits, so // use some of the numDecreases space instead. uint248 numDecreases; AuctionIntervalUnit unit; } /** @notice The unit of "time" along which the cost decreases. @dev If no value is provided then the zero UNSPECIFIED will trigger an error. NOTE: The Block unit is more reliable as it has an explicit progression (simply incrementing). Miners are allowed to have a time drift into the future although which predisposes to unexpected behaviour by which "future" costs are encountered. See the ConsenSys 15-second rule: https://consensys.net/blog/developers/solidity-best-practices-for-smart-contract-security/ */ enum AuctionIntervalUnit { UNSPECIFIED, Block, Time } /// @param expectedReserve See setAuctionConfig(). constructor( DutchAuctionConfig memory config, uint256 expectedReserve ) { setAuctionConfig(config, expectedReserve); } /// @notice Configuration of price changes. DutchAuctionConfig public dutchAuctionConfig; /** @notice Sets the auction config. @param expectedReserve A safety check that the reserve, as calculated from the config, is as expected. */ function setAuctionConfig( DutchAuctionConfig memory config, uint256 expectedReserve ) public onlyOwner { // Underflow might occur is size/num decreases is too large. unchecked { require( config.startPrice - config.decreaseSize * config.numDecreases == expectedReserve, "LinearDutchAuction: incorrect reserve" ); } require( config.unit != AuctionIntervalUnit.UNSPECIFIED, "LinearDutchAuction: unspecified unit" ); require( config.decreaseInterval > 0, "LinearDutchAuction: zero decrease interval" ); dutchAuctionConfig = config; } /** @notice Sets the config startPoint. A startPoint of zero disables the auction. @dev The auction can be toggle on and off with this function, without the cost of having to update the entire config. */ function setAuctionStartPoint(uint256 startPoint) public onlyOwner { dutchAuctionConfig.startPoint = startPoint; } /// @notice Dutch-auction logic cost function. function cost(uint256 n) public view returns (uint256) { DutchAuctionConfig storage cfg = dutchAuctionConfig; return n * (cfg.startPrice - Math.min((block.timestamp - cfg.startPoint) / cfg.decreaseInterval, cfg.numDecreases) * cfg.decreaseSize); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @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); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return recover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return recover(hash, r, vs); } else { revert("ECDSA: invalid signature length"); } } /** * @dev Overload of {ECDSA-recover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { bytes32 s; uint8 v; assembly { s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) v := add(shr(255, vs), 27) } return recover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (281): 0 < s < secp256k1n ÷ 2 + 1, and for v in (282): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. require( uint256(s) <= 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0, "ECDSA: invalid signature 's' value" ); require(v == 27 || v == 28, "ECDSA: invalid signature 'v' value"); // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); require(signer != address(0), "ECDSA: invalid signature"); return signer; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Address.sol"; import "../utils/Context.sol"; import "../utils/math/SafeMath.sol"; /** * @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. * * `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. */ contract PaymentSplitter is Context { event PayeeAdded(address account, uint256 shares); event PaymentReleased(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; /** * @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 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 address of the payee number `index`. */ function payee(uint256 index) public view returns (address) { return _payees[index]; } /** * @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 totalReceived = address(this).balance + _totalReleased; uint256 payment = (totalReceived * _shares[account]) / _totalShares - _released[account]; require(payment != 0, "PaymentSplitter: account is not due payment"); _released[account] = _released[account] + payment; _totalReleased = _totalReleased + payment; Address.sendValue(account, payment); emit PaymentReleased(account, payment); } /** * @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_); } }
// SPDX-License-Identifier: MIT 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 make 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; } }
// SPDX-License-Identifier: MIT pragma solidity >= 0.4.22 <0.9.0; library console { address constant CONSOLE_ADDRESS = address(0x000000000000000000636F6e736F6c652e6c6f67); function _sendLogPayload(bytes memory payload) private view { uint256 payloadLength = payload.length; address consoleAddress = CONSOLE_ADDRESS; assembly { let payloadStart := add(payload, 32) let r := staticcall(gas(), consoleAddress, payloadStart, payloadLength, 0, 0) } } function log() internal view { _sendLogPayload(abi.encodeWithSignature("log()")); } function logInt(int p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(int)", p0)); } function logUint(uint p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint)", p0)); } function logString(string memory p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(string)", p0)); } function logBool(bool p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool)", p0)); } function logAddress(address p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(address)", p0)); } function logBytes(bytes memory p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes)", p0)); } function logBytes1(bytes1 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes1)", p0)); } function logBytes2(bytes2 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes2)", p0)); } function logBytes3(bytes3 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes3)", p0)); } function logBytes4(bytes4 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes4)", p0)); } function logBytes5(bytes5 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes5)", p0)); } function logBytes6(bytes6 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes6)", p0)); } function logBytes7(bytes7 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes7)", p0)); } function logBytes8(bytes8 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes8)", p0)); } function logBytes9(bytes9 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes9)", p0)); } function logBytes10(bytes10 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes10)", p0)); } function logBytes11(bytes11 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes11)", p0)); } function logBytes12(bytes12 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes12)", p0)); } function logBytes13(bytes13 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes13)", p0)); } function logBytes14(bytes14 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes14)", p0)); } function logBytes15(bytes15 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes15)", p0)); } function logBytes16(bytes16 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes16)", p0)); } function logBytes17(bytes17 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes17)", p0)); } function logBytes18(bytes18 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes18)", p0)); } function logBytes19(bytes19 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes19)", p0)); } function logBytes20(bytes20 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes20)", p0)); } function logBytes21(bytes21 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes21)", p0)); } function logBytes22(bytes22 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes22)", p0)); } function logBytes23(bytes23 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes23)", p0)); } function logBytes24(bytes24 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes24)", p0)); } function logBytes25(bytes25 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes25)", p0)); } function logBytes26(bytes26 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes26)", p0)); } function logBytes27(bytes27 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes27)", p0)); } function logBytes28(bytes28 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes28)", p0)); } function logBytes29(bytes29 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes29)", p0)); } function logBytes30(bytes30 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes30)", p0)); } function logBytes31(bytes31 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes31)", p0)); } function logBytes32(bytes32 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes32)", p0)); } function log(uint p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint)", p0)); } function log(string memory p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(string)", p0)); } function log(bool p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool)", p0)); } function log(address p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(address)", p0)); } function log(uint p0, uint p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint)", p0, p1)); } function log(uint p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string)", p0, p1)); } function log(uint p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool)", p0, p1)); } function log(uint p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address)", p0, p1)); } function log(string memory p0, uint p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint)", p0, p1)); } function log(string memory p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string)", p0, p1)); } function log(string memory p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool)", p0, p1)); } function log(string memory p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address)", p0, p1)); } function log(bool p0, uint p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint)", p0, p1)); } function log(bool p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string)", p0, p1)); } function log(bool p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool)", p0, p1)); } function log(bool p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address)", p0, p1)); } function log(address p0, uint p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint)", p0, p1)); } function log(address p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string)", p0, p1)); } function log(address p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool)", p0, p1)); } function log(address p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address)", p0, p1)); } function log(uint p0, uint p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint)", p0, p1, p2)); } function log(uint p0, uint p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string)", p0, p1, p2)); } function log(uint p0, uint p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool)", p0, p1, p2)); } function log(uint p0, uint p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address)", p0, p1, p2)); } function log(uint p0, string memory p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint)", p0, p1, p2)); } function log(uint p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string)", p0, p1, p2)); } function log(uint p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool)", p0, p1, p2)); } function log(uint p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address)", p0, p1, p2)); } function log(uint p0, bool p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint)", p0, p1, p2)); } function log(uint p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string)", p0, p1, p2)); } function log(uint p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool)", p0, p1, p2)); } function log(uint p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address)", p0, p1, p2)); } function log(uint p0, address p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint)", p0, p1, p2)); } function log(uint p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string)", p0, p1, p2)); } function log(uint p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool)", p0, p1, p2)); } function log(uint p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address)", p0, p1, p2)); } function log(string memory p0, uint p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint)", p0, p1, p2)); } function log(string memory p0, uint p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string)", p0, p1, p2)); } function log(string memory p0, uint p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool)", p0, p1, p2)); } function log(string memory p0, uint p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address)", p0, p1, p2)); } function log(string memory p0, string memory p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint)", p0, p1, p2)); } function log(string memory p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string)", p0, p1, p2)); } function log(string memory p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool)", p0, p1, p2)); } function log(string memory p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address)", p0, p1, p2)); } function log(string memory p0, bool p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint)", p0, p1, p2)); } function log(string memory p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string)", p0, p1, p2)); } function log(string memory p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool)", p0, p1, p2)); } function log(string memory p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address)", p0, p1, p2)); } function log(string memory p0, address p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint)", p0, p1, p2)); } function log(string memory p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string)", p0, p1, p2)); } function log(string memory p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool)", p0, p1, p2)); } function log(string memory p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address)", p0, p1, p2)); } function log(bool p0, uint p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint)", p0, p1, p2)); } function log(bool p0, uint p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string)", p0, p1, p2)); } function log(bool p0, uint p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool)", p0, p1, p2)); } function log(bool p0, uint p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address)", p0, p1, p2)); } function log(bool p0, string memory p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint)", p0, p1, p2)); } function log(bool p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string)", p0, p1, p2)); } function log(bool p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool)", p0, p1, p2)); } function log(bool p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address)", p0, p1, p2)); } function log(bool p0, bool p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint)", p0, p1, p2)); } function log(bool p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string)", p0, p1, p2)); } function log(bool p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool)", p0, p1, p2)); } function log(bool p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address)", p0, p1, p2)); } function log(bool p0, address p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint)", p0, p1, p2)); } function log(bool p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string)", p0, p1, p2)); } function log(bool p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool)", p0, p1, p2)); } function log(bool p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address)", p0, p1, p2)); } function log(address p0, uint p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint)", p0, p1, p2)); } function log(address p0, uint p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string)", p0, p1, p2)); } function log(address p0, uint p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool)", p0, p1, p2)); } function log(address p0, uint p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address)", p0, p1, p2)); } function log(address p0, string memory p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint)", p0, p1, p2)); } function log(address p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string)", p0, p1, p2)); } function log(address p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool)", p0, p1, p2)); } function log(address p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address)", p0, p1, p2)); } function log(address p0, bool p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint)", p0, p1, p2)); } function log(address p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string)", p0, p1, p2)); } function log(address p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool)", p0, p1, p2)); } function log(address p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address)", p0, p1, p2)); } function log(address p0, address p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint)", p0, p1, p2)); } function log(address p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string)", p0, p1, p2)); } function log(address p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool)", p0, p1, p2)); } function log(address p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address)", p0, p1, p2)); } function log(uint p0, uint p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,uint)", p0, p1, p2, p3)); } function log(uint p0, uint p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,string)", p0, p1, p2, p3)); } function log(uint p0, uint p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,bool)", p0, p1, p2, p3)); } function log(uint p0, uint p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,address)", p0, p1, p2, p3)); } function log(uint p0, uint p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,uint)", p0, p1, p2, p3)); } function log(uint p0, uint p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,string)", p0, p1, p2, p3)); } function log(uint p0, uint p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,bool)", p0, p1, p2, p3)); } function log(uint p0, uint p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,address)", p0, p1, p2, p3)); } function log(uint p0, uint p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,uint)", p0, p1, p2, p3)); } function log(uint p0, uint p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,string)", p0, p1, p2, p3)); } function log(uint p0, uint p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,bool)", p0, p1, p2, p3)); } function log(uint p0, uint p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,address)", p0, p1, p2, p3)); } function log(uint p0, uint p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,uint)", p0, p1, p2, p3)); } function log(uint p0, uint p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,string)", p0, p1, p2, p3)); } function log(uint p0, uint p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,bool)", p0, p1, p2, p3)); } function log(uint p0, uint p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,address)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,uint)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,string)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,bool)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,address)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string,uint)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string,string)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string,bool)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string,address)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,uint)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,string)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,bool)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,address)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address,uint)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address,string)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address,bool)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address,address)", p0, p1, p2, p3)); } function log(uint p0, bool p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,uint)", p0, p1, p2, p3)); } function log(uint p0, bool p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,string)", p0, p1, p2, p3)); } function log(uint p0, bool p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,bool)", p0, p1, p2, p3)); } function log(uint p0, bool p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,address)", p0, p1, p2, p3)); } function log(uint p0, bool p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,uint)", p0, p1, p2, p3)); } function log(uint p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,string)", p0, p1, p2, p3)); } function log(uint p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,bool)", p0, p1, p2, p3)); } function log(uint p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,address)", p0, p1, p2, p3)); } function log(uint p0, bool p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,uint)", p0, p1, p2, p3)); } function log(uint p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,string)", p0, p1, p2, p3)); } function log(uint p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,bool)", p0, p1, p2, p3)); } function log(uint p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,address)", p0, p1, p2, p3)); } function log(uint p0, bool p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,uint)", p0, p1, p2, p3)); } function log(uint p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,string)", p0, p1, p2, p3)); } function log(uint p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,bool)", p0, p1, p2, p3)); } function log(uint p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,address)", p0, p1, p2, p3)); } function log(uint p0, address p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,uint)", p0, p1, p2, p3)); } function log(uint p0, address p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,string)", p0, p1, p2, p3)); } function log(uint p0, address p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,bool)", p0, p1, p2, p3)); } function log(uint p0, address p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,address)", p0, p1, p2, p3)); } function log(uint p0, address p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string,uint)", p0, p1, p2, p3)); } function log(uint p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string,string)", p0, p1, p2, p3)); } function log(uint p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string,bool)", p0, p1, p2, p3)); } function log(uint p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string,address)", p0, p1, p2, p3)); } function log(uint p0, address p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,uint)", p0, p1, p2, p3)); } function log(uint p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,string)", p0, p1, p2, p3)); } function log(uint p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,bool)", p0, p1, p2, p3)); } function log(uint p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,address)", p0, p1, p2, p3)); } function log(uint p0, address p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address,uint)", p0, p1, p2, p3)); } function log(uint p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address,string)", p0, p1, p2, p3)); } function log(uint p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address,bool)", p0, p1, p2, p3)); } function log(uint p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address,address)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,uint)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,string)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,address)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string,uint)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string,string)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string,address)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,uint)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address,uint)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address,string)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint,uint)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,uint)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,uint)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,uint)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,uint)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,uint)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,uint)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,uint)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint,uint)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,uint)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,uint)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,uint)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,address)", p0, p1, p2, p3)); } function log(bool p0, uint p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,uint)", p0, p1, p2, p3)); } function log(bool p0, uint p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,string)", p0, p1, p2, p3)); } function log(bool p0, uint p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,bool)", p0, p1, p2, p3)); } function log(bool p0, uint p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,address)", p0, p1, p2, p3)); } function log(bool p0, uint p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,uint)", p0, p1, p2, p3)); } function log(bool p0, uint p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,string)", p0, p1, p2, p3)); } function log(bool p0, uint p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,bool)", p0, p1, p2, p3)); } function log(bool p0, uint p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,address)", p0, p1, p2, p3)); } function log(bool p0, uint p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,uint)", p0, p1, p2, p3)); } function log(bool p0, uint p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,string)", p0, p1, p2, p3)); } function log(bool p0, uint p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, uint p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,address)", p0, p1, p2, p3)); } function log(bool p0, uint p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,uint)", p0, p1, p2, p3)); } function log(bool p0, uint p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,string)", p0, p1, p2, p3)); } function log(bool p0, uint p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,bool)", p0, p1, p2, p3)); } function log(bool p0, uint p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,uint)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,uint)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,uint)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,uint)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,uint)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,uint)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,uint)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,uint)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,uint)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,uint)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,uint)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,uint)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,address)", p0, p1, p2, p3)); } function log(address p0, uint p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,uint)", p0, p1, p2, p3)); } function log(address p0, uint p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,string)", p0, p1, p2, p3)); } function log(address p0, uint p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,bool)", p0, p1, p2, p3)); } function log(address p0, uint p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,address)", p0, p1, p2, p3)); } function log(address p0, uint p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string,uint)", p0, p1, p2, p3)); } function log(address p0, uint p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string,string)", p0, p1, p2, p3)); } function log(address p0, uint p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string,bool)", p0, p1, p2, p3)); } function log(address p0, uint p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string,address)", p0, p1, p2, p3)); } function log(address p0, uint p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,uint)", p0, p1, p2, p3)); } function log(address p0, uint p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,string)", p0, p1, p2, p3)); } function log(address p0, uint p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,bool)", p0, p1, p2, p3)); } function log(address p0, uint p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,address)", p0, p1, p2, p3)); } function log(address p0, uint p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address,uint)", p0, p1, p2, p3)); } function log(address p0, uint p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address,string)", p0, p1, p2, p3)); } function log(address p0, uint p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address,bool)", p0, p1, p2, p3)); } function log(address p0, uint p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint,uint)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,uint)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,uint)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,uint)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,uint)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,uint)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,uint)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,uint)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,address)", p0, p1, p2, p3)); } function log(address p0, address p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint,uint)", p0, p1, p2, p3)); } function log(address p0, address p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint,string)", p0, p1, p2, p3)); } function log(address p0, address p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint,address)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,uint)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,string)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,address)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,uint)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,string)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,address)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,uint)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,string)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,address)", p0, p1, p2, p3)); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) 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 Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @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 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); /** * @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; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @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); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @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 * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 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); } function _verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) private 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 assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT 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; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a >= b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow, so we distribute. return (a / 2) + (b / 2) + (((a % 2) + (b % 2)) / 2); } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a / b + (a % b == 0 ? 0 : 1); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * 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() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { 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 { _setOwner(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"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address[]","name":"payees","type":"address[]"},{"internalType":"uint256[]","name":"shares","type":"uint256[]"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint256","name":"_whitelistMaxMint","type":"uint256"},{"internalType":"uint256","name":"_publicListMaxMint","type":"uint256"},{"internalType":"uint256","name":"_nonReservedMax","type":"uint256"},{"internalType":"uint256","name":"_reservedMax","type":"uint256"},{"internalType":"uint256","name":"_discountedPrice","type":"uint256"},{"internalType":"uint256","name":"_publicTotalMaxMint","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"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":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address[]","name":"recipients","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"airdropMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"allowPublicRefunds","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_allow","type":"bool"}],"name":"allowRefund","outputs":[],"stateMutability":"nonpayable","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":[{"internalType":"uint256","name":"n","type":"uint256"}],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"discountedPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dutchAuctionConfig","outputs":[{"internalType":"uint256","name":"startPoint","type":"uint256"},{"internalType":"uint256","name":"startPrice","type":"uint256"},{"internalType":"uint256","name":"decreaseInterval","type":"uint256"},{"internalType":"uint256","name":"decreaseSize","type":"uint256"},{"internalType":"uint248","name":"numDecreases","type":"uint248"},{"internalType":"enum LinearDutchAuction.AuctionIntervalUnit","name":"unit","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDecreaseInterval","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDecreaseSize","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDiscountRefundAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getNumDescreases","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPublicMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPublicRefundAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRefundTotal","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getStartPrice","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getWhitelistMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getWhitelistRefundAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isAllowedRefund","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"isRefund","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"licenseTerms","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"max","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mintPublic","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"name":"mintReserved","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"hash","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mintWhitelist","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"hash","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"uint256","name":"numberOfTokens","type":"uint256"},{"internalType":"uint256","name":"customLimit","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"}],"name":"mintWhitelistAmountAndPrice","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"hash","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mintWhitelistDiscounted","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"hash","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mintWhitelistPrice","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextOwnerToExplicitlySet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nonReservedMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"prefix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"prefixDiscounted","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicListMaxMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicTotalMaxMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicTotalMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"refund","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"refundPrice","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":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reservedMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"reservedMinted","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":"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":[{"internalType":"bool","name":"_allow","type":"bool"}],"name":"setAllowDiscountRefunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_allow","type":"bool"}],"name":"setAllowPublicRefunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_allow","type":"bool"}],"name":"setAllowWhitelistRefunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"startPoint","type":"uint256"},{"internalType":"uint256","name":"startPrice","type":"uint256"},{"internalType":"uint256","name":"decreaseInterval","type":"uint256"},{"internalType":"uint256","name":"decreaseSize","type":"uint256"},{"internalType":"uint248","name":"numDecreases","type":"uint248"},{"internalType":"enum LinearDutchAuction.AuctionIntervalUnit","name":"unit","type":"uint8"}],"internalType":"struct LinearDutchAuction.DutchAuctionConfig","name":"config","type":"tuple"},{"internalType":"uint256","name":"expectedReserve","type":"uint256"}],"name":"setAuctionConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"startPoint","type":"uint256"}],"name":"setAuctionStartPoint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseTokenURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_discountedPrice","type":"uint256"}],"name":"setDiscountedPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_licenseTerms","type":"string"}],"name":"setLicenseTerms","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_max","type":"uint256"}],"name":"setMax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_prefix","type":"string"}],"name":"setPrefix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_prefix","type":"string"}],"name":"setPrefixDiscounted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_publicListMaxMint","type":"uint256"}],"name":"setPublicListMaxMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setPublicTotalMaxMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setRefundPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_whitelistMaxMint","type":"uint256"}],"name":"setWhitelistMaxMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"splitPayments","outputs":[],"stateMutability":"payable","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":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMintsForRefund","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":"whitelistMaxMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
600080805560075560e0604052600960a08190526857696e646368696d6560b81b60c09081526200003491600f9190620004d1565b506040805180820190915260098082526857696e646368696d6560b81b60209092019182526200006791601091620004d1565b506040805160208101918290526000908190526200008891601191620004d1565b50604080516020810191829052600090819052620000a991601291620004d1565b50348015620000b757600080fd5b5060405162005cee38038062005cee833981016040819052620000da9162000706565b6040805160c08101825260008152674563918244f400006020820152610384918101919091526706f05b59d3b2000060608201526009608082015260a08101600290526706f05b59d3b200008989601462000139565b60405180910390fd5b82516200014e906001906020860190620004d1565b50815162000164906002906020850190620004d1565b50608052506200017690503362000229565b6200018282826200027b565b50506001600e55601586905560168590556017839055620001a48385620008c9565b60185560006019819055601a55601b82905560248190556040518a908a90620001cd9062000560565b620001da929190620007f6565b604051809103906000f080158015620001f7573d6000803e3d6000fd5b50601c80546001600160a01b0319166001600160a01b0392909216919091179055506200094198505050505050505050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6008546001600160a01b03163314620002d75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640162000130565b8082608001516001600160f81b0316836060015102836020015103146200034f5760405162461bcd60e51b815260206004820152602560248201527f4c696e656172447574636841756374696f6e3a20696e636f7272656374207265604482015264736572766560d81b606482015260840162000130565b60008260a0015160028111156200037657634e487b7160e01b600052602160045260246000fd5b1415620003d25760405162461bcd60e51b8152602060048201526024808201527f4c696e656172447574636841756374696f6e3a20756e737065636966696564206044820152631d5b9a5d60e21b606482015260840162000130565b60008260400151116200043b5760405162461bcd60e51b815260206004820152602a60248201527f4c696e656172447574636841756374696f6e3a207a65726f206465637265617360448201526919481a5b9d195c9d985b60b21b606482015260840162000130565b815160099081556020830151600a556040830151600b556060830151600c556080830151600d80547fff00000000000000000000000000000000000000000000000000000000000000166001600160f81b03909216918217815560a0850151859392909190600160f81b836002811115620004c657634e487b7160e01b600052602160045260246000fd5b021790555050505050565b828054620004df90620008ee565b90600052602060002090601f0160209004810192826200050357600085556200054e565b82601f106200051e57805160ff19168380011785556200054e565b828001600101855582156200054e579182015b828111156200054e57825182559160200191906001019062000531565b506200055c9291506200056e565b5090565b610b6a806200518483390190565b5b808211156200055c57600081556001016200056f565b600082601f83011262000596578081fd5b81516020620005af620005a983620008a3565b62000870565b80838252828201915082860187848660051b8901011115620005cf578586fd5b855b85811015620006045781516001600160a01b0381168114620005f1578788fd5b84529284019290840190600101620005d1565b5090979650505050505050565b600082601f83011262000622578081fd5b8151602062000635620005a983620008a3565b80838252828201915082860187848660051b890101111562000655578586fd5b855b85811015620006045781518452928401929084019060010162000657565b600082601f83011262000686578081fd5b81516001600160401b03811115620006a257620006a26200092b565b6020620006b8601f8301601f1916820162000870565b8281528582848701011115620006cc578384fd5b835b83811015620006eb578581018301518282018401528201620006ce565b83811115620006fc57848385840101525b5095945050505050565b6000806000806000806000806000806101408b8d03121562000726578586fd5b8a516001600160401b03808211156200073d578788fd5b6200074b8e838f0162000585565b9b5060208d015191508082111562000761578788fd5b6200076f8e838f0162000611565b9a5060408d015191508082111562000785578788fd5b620007938e838f0162000675565b995060608d0151915080821115620007a9578788fd5b50620007b88d828e0162000675565b97505060808b0151955060a08b0151945060c08b0151935060e08b015192506101008b015191506101208b015190509295989b9194979a5092959850565b604080825283519082018190526000906020906060840190828701845b828110156200083a5781516001600160a01b03168452928401929084019060010162000813565b50505083810382850152845180825285830191830190845b81811015620006045783518352928401929184019160010162000852565b604051601f8201601f191681016001600160401b03811182821017156200089b576200089b6200092b565b604052919050565b60006001600160401b03821115620008bf57620008bf6200092b565b5060051b60200190565b60008219821115620008e957634e487b7160e01b81526011600452602481fd5b500190565b600181811c908216806200090357607f821691505b602082108114156200092557634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b6080516147e1620009a3600039600081816112580152818161130f015281816113800152818161141701528181611c4e01528181611c8301528181611ccc01528181611d04015281816130000152818161302a015261372501526147e16000f3fe60806040526004361061043b5760003560e01c8063788183dd11610234578063bcf161a21161012e578063d7224ba0116100b6578063e985e9c51161007a578063e985e9c514610c20578063ea4194dc14610c69578063efd0cbf914610c89578063f2fde38b14610c9c578063f4aa1b6714610cbc57600080fd5b8063d7224ba014610b9e578063d73b2a6c14610bb4578063d921eb7814610bca578063e0c5b0ed14610be0578063e214696314610c0057600080fd5b8063c85b380d116100fd578063c85b380d14610b11578063c878813414610b31578063c87b56dd14610b47578063cc04947314610b67578063d57e4eae14610b7c57600080fd5b8063bcf161a214610aa4578063bcf754bf14610ab9578063c0c3714914610adb578063c0fa501114610af157600080fd5b806395d89b41116101bc578063b27a87b011610180578063b27a87b014610a28578063b413e61a14610a3b578063b882bacb14610a5c578063b88d4fde14610a6f578063baffa90314610a8f57600080fd5b806395d89b411461099e578063a22cb465146109b3578063a9501b73146109d3578063ab55abf5146109f3578063b1b54e9a14610a1357600080fd5b806385cb593b1161020357806385cb593b1461091a5780638da5cb5b1461093a5780638e9e4e78146109585780638f3756c21461096b5780639097548d1461097e57600080fd5b8063788183dd146108815780637bd07f8b146108a1578063808d5259146108ef578063846b41931461090557600080fd5b80632f745c591161034557806355f804b3116102cd5780636ac5db19116102915780636ac5db191461080b57806370a0823114610821578063715018a614610841578063722e141d1461085657806375dadb321461086c57600080fd5b806355f804b314610780578063571d34af146107a0578063590e1ae3146107b6578063631bbbba146107cb5780636352211e146107eb57600080fd5b806342842e0e1161031457806342842e0e146107025780634f297ccc146107225780634f6ccce71461073857806351b7511514610758578063557007011461076b57600080fd5b80632f745c591461068d57806334d79fff146106ad57806339a2e659146106cd57806339ae8c8f146106ed57600080fd5b80630e56a3c3116103c85780631fe9eabc116103975780631fe9eabc146105f857806320def2a41461061857806323aa0f9b1461063857806323b872dd1461064d578063279a669e1461066d57600080fd5b80630e56a3c31461058157806318160ddd146105ae57806319165587146105c35780631a11e20d146105e357600080fd5b8063057494a11161040f578063057494a1146104d157806306fdde03146104f1578063081812fc14610513578063095ea7b31461054b5780630a23b7251461056b57600080fd5b8062ab1fa31461044057806301ffc9a714610462578063022a11b414610497578063035fd8c2146104bb575b600080fd5b34801561044c57600080fd5b5061046061045b366004614162565b610cdd565b005b34801561046e57600080fd5b5061048261047d36600461405d565b610d15565b60405190151581526020015b60405180910390f35b3480156104a357600080fd5b506104ad601f5481565b60405190815260200161048e565b3480156104c757600080fd5b506104ad60245481565b3480156104dd57600080fd5b506104606104ec366004613f15565b610d82565b3480156104fd57600080fd5b50610506610dca565b60405161048e9190614327565b34801561051f57600080fd5b5061053361052e366004614162565b610e5c565b6040516001600160a01b03909116815260200161048e565b34801561055757600080fd5b50610460610566366004613e82565b610ee7565b34801561057757600080fd5b506104ad60195481565b34801561058d57600080fd5b50610596610fff565b6040516001600160401b03909116815260200161048e565b3480156105ba57600080fd5b506000546104ad565b3480156105cf57600080fd5b506104606105de366004613d51565b611033565b3480156105ef57600080fd5b50610596611095565b34801561060457600080fd5b50610460610613366004614162565b6110cf565b34801561062457600080fd5b50610460610633366004614162565b6110fe565b34801561064457600080fd5b506104ad61112d565b34801561065957600080fd5b50610460610668366004613da5565b6111ba565b34801561067957600080fd5b50610460610688366004613ead565b6111c5565b34801561069957600080fd5b506104ad6106a8366004613e82565b61146a565b3480156106b957600080fd5b506104606106c8366004614095565b6115d7565b3480156106d957600080fd5b506104606106e8366004614162565b611618565b3480156106f957600080fd5b506104ad611647565b34801561070e57600080fd5b5061046061071d366004613da5565b6116a8565b34801561072e57600080fd5b506104ad601a5481565b34801561074457600080fd5b506104ad610753366004614162565b6116c3565b610460610766366004613fbc565b611725565b34801561077757600080fd5b506104ad6118f5565b34801561078c57600080fd5b5061046061079b366004614095565b611975565b3480156107ac57600080fd5b506104ad60165481565b3480156107c257600080fd5b506104606119b2565b3480156107d757600080fd5b506104606107e636600461417a565b611bed565b3480156107f757600080fd5b50610533610806366004614162565b611d40565b34801561081757600080fd5b506104ad60185481565b34801561082d57600080fd5b506104ad61083c366004613d51565b611d52565b34801561084d57600080fd5b50610460611de3565b34801561086257600080fd5b506104ad60155481565b34801561087857600080fd5b50610506611e19565b34801561088d57600080fd5b5061046061089c366004614162565b611ea7565b3480156108ad57600080fd5b50600954600a54600b54600c54600d546108dd94939291906001600160f81b03811690600160f81b900460ff1686565b60405161048e9695949392919061455a565b3480156108fb57600080fd5b506104ad601e5481565b34801561091157600080fd5b506104ad611ed6565b34801561092657600080fd5b50610460610935366004614095565b611f84565b34801561094657600080fd5b506008546001600160a01b0316610533565b610460610966366004613f2f565b611fc1565b610460610979366004614009565b612197565b34801561098a57600080fd5b506104ad610999366004614162565b612287565b3480156109aa57600080fd5b506105066122eb565b3480156109bf57600080fd5b506104606109ce366004613e4e565b6122fa565b3480156109df57600080fd5b506104606109ee366004613f15565b6123bf565b3480156109ff57600080fd5b50610460610a0e366004613f15565b612407565b348015610a1f57600080fd5b5061059661244f565b610460610a36366004613fbc565b612482565b348015610a4757600080fd5b50601c5461048290600160a81b900460ff1681565b610460610a6a366004614162565b612542565b348015610a7b57600080fd5b50610460610a8a366004613de5565b612601565b348015610a9b57600080fd5b50610596612634565b348015610ab057600080fd5b5061050661266e565b348015610ac557600080fd5b50336000908152601460205260409020546104ad565b348015610ae757600080fd5b506104ad60255481565b348015610afd57600080fd5b50610460610b0c366004613f15565b61267b565b348015610b1d57600080fd5b50610460610b2c3660046140da565b6126c3565b348015610b3d57600080fd5b506104ad601b5481565b348015610b5357600080fd5b50610506610b62366004614162565b6128c7565b348015610b7357600080fd5b506105066128fb565b348015610b8857600080fd5b50336000908152601360205260409020546104ad565b348015610baa57600080fd5b506104ad60075481565b348015610bc057600080fd5b506104ad60175481565b348015610bd657600080fd5b506104ad601d5481565b348015610bec57600080fd5b50610460610bfb366004614162565b612908565b348015610c0c57600080fd5b50610460610c1b366004614162565b612937565b348015610c2c57600080fd5b50610482610c3b366004613d6d565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b348015610c7557600080fd5b50610460610c84366004614095565b612966565b610460610c97366004614162565b6129a3565b348015610ca857600080fd5b50610460610cb7366004613d51565b612a83565b348015610cc857600080fd5b50601c5461048290600160a01b900460ff1681565b6008546001600160a01b03163314610d105760405162461bcd60e51b8152600401610d0790614400565b60405180910390fd5b601b55565b60006001600160e01b031982166380ac58cd60e01b1480610d4657506001600160e01b03198216635b5e139f60e01b145b80610d6157506001600160e01b0319821663780e9d6360e01b145b80610d7c57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6008546001600160a01b03163314610dac5760405162461bcd60e51b8152600401610d0790614400565b601c8054911515600160a01b0260ff60a01b19909216919091179055565b606060018054610dd9906146d4565b80601f0160208091040260200160405190810160405280929190818152602001828054610e05906146d4565b8015610e525780601f10610e2757610100808354040283529160200191610e52565b820191906000526020600020905b815481529060010190602001808311610e3557829003601f168201915b5050505050905090565b6000610e69826000541190565b610ecb5760405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201526c3c34b9ba32b73a103a37b5b2b760991b6064820152608401610d07565b506000908152600560205260409020546001600160a01b031690565b6000610ef282611d40565b9050806001600160a01b0316836001600160a01b03161415610f615760405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201526132b960f11b6064820152608401610d07565b336001600160a01b0382161480610f7d5750610f7d8133610c3b565b610fef5760405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c000000000000006064820152608401610d07565b610ffa838383612b1b565b505050565b6008546000906001600160a01b0316331461102c5760405162461bcd60e51b8152600401610d0790614400565b5061038490565b601c54604051631916558760e01b81526001600160a01b03838116600483015290911690631916558790602401600060405180830381600087803b15801561107a57600080fd5b505af115801561108e573d6000803e3d6000fd5b5050505050565b6008546000906001600160a01b031633146110c25760405162461bcd60e51b8152600401610d0790614400565b506706f05b59d3b2000090565b6008546001600160a01b031633146110f95760405162461bcd60e51b8152600401610d0790614400565b601855565b6008546001600160a01b031633146111285760405162461bcd60e51b8152600401610d0790614400565b602455565b601c54600090600160b81b900460ff1680156111735750601e54336000908152602360205260409020546111619190614633565b33600090815260226020526040902054115b156111b457601e54336000908152602360205260409020546111959190614633565b336000908152602260205260409020546111af919061467a565b905090565b50600090565b610ffa838383612b77565b6008546001600160a01b031633146111ef5760405162461bcd60e51b8152600401610d0790614400565b8260005b818110156114625760175484848381811061121e57634e487b7160e01b600052603260045260246000fd5b9050602002013561122e60005490565b6112389190614607565b11156112565760405162461bcd60e51b8152600401610d07906144bf565b7f000000000000000000000000000000000000000000000000000000000000000084848381811061129757634e487b7160e01b600052603260045260246000fd5b90506020020135101561130d576113088686838181106112c757634e487b7160e01b600052603260045260246000fd5b90506020020160208101906112dc9190613d51565b8585848181106112fc57634e487b7160e01b600052603260045260246000fd5b90506020020135612ef9565b611450565b7f000000000000000000000000000000000000000000000000000000000000000084848381811061134e57634e487b7160e01b600052603260045260246000fd5b9050602002013561135f919061472a565b1561137c5760405162461bcd60e51b8152600401610d0790614363565b60007f00000000000000000000000000000000000000000000000000000000000000008585848181106113bf57634e487b7160e01b600052603260045260246000fd5b905060200201356113d0919061461f565b905060005b8181101561144d5761143b88888381811061140057634e487b7160e01b600052603260045260246000fd5b90506020020160208101906114159190613d51565b7f0000000000000000000000000000000000000000000000000000000000000000612ef9565b806114458161470f565b9150506113d5565b50505b8061145a8161470f565b9150506111f3565b505050505050565b600061147583611d52565b82106114ce5760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e604482015261647360f01b6064820152608401610d07565b600080549080805b83811015611577576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b0316918301919091521561152857805192505b876001600160a01b0316836001600160a01b03161415611564578684141561155657509350610d7c92505050565b836115608161470f565b9450505b508061156f8161470f565b9150506114d6565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201526d0deeedccae440c4f240d2dcc8caf60931b6064820152608401610d07565b6008546001600160a01b031633146116015760405162461bcd60e51b8152600401610d0790614400565b8051611614906012906020840190613bc0565b5050565b6008546001600160a01b031633146116425760405162461bcd60e51b8152600401610d0790614400565b601655565b601c54600090600160a01b900460ff166116985760405162461bcd60e51b81526020600482015260126024820152711c99599d5b99081b9bdd08185b1b1bddd95960721b6044820152606401610d07565b601e54601f546111af9190614633565b610ffa83838360405180602001604052806000815250612601565b6000805482106117215760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f756044820152626e647360e81b6064820152608401610d07565b5090565b61172f8383612f13565b61174b5760405162461bcd60e51b8152600401610d07906144e2565b826117e06010805461175c906146d4565b80601f0160208091040260200160405190810160405280929190818152602001828054611788906146d4565b80156117d55780601f106117aa576101008083540402835291602001916117d5565b820191906000526020600020905b8154815290600101906020018083116117b857829003601f168201915b505050505033612f4b565b146117fd5760405162461bcd60e51b8152600401610d07906143b0565b6015543360009081526013602052604090205461181b908390614607565b11156118395760405162461bcd60e51b8152600401610d0790614488565b3481601b546118489190614633565b146118655760405162461bcd60e51b8152600401610d079061433a565b3360009081526013602052604081208054839290611884908490614607565b909155505033600090815260236020526040812080548392906118a8908490614607565b9250508190555080601f60008282546118c19190614607565b909155505033600090815260226020526040812080543492906118e5908490614607565b90915550610ffa90503382612ef9565b601c54600090600160a81b900460ff16801561193a5750601e54336000908152601460205260409020546119299190614633565b336000908152602080526040902054115b156111b457601e543360009081526014602052604090205461195c9190614633565b3360009081526020805260409020546111af919061467a565b6008546001600160a01b0316331461199f5760405162461bcd60e51b8152600401610d0790614400565b8051611614906011906020840190613bc0565b6002600e5414156119d55760405162461bcd60e51b8152600401610d0790614523565b6002600e55601c54600160a01b900460ff161515600114611a2d5760405162461bcd60e51b81526020600482015260126024820152711c99599d5b99081b9bdd08185b1b1bddd95960721b6044820152606401610d07565b600080611a386118f5565b90508015611a7157336000908152602080805260408083208390556014909152902054601f549192508291611a6d919061467a565b601f555b611a79611ed6565b90508015611ace57611a8b8183614607565b3360009081526021602090815260408083208390556023825280832054601390925290912054919350611abd9161467a565b601f54611aca919061467a565b601f555b611ad661112d565b90508015611b1857611ae88183614607565b3360009081526022602090815260408083208390556023909152902054601f54919350611b149161467a565b601f555b81611b525760405162461bcd60e51b815260206004820152600a6024820152696e6f20726566756e647360b01b6044820152606401610d07565b604051600090339084908381818185875af1925050503d8060008114611b94576040519150601f19603f3d011682016040523d82523d6000602084013e611b99565b606091505b5090915050600181151514611be35760405162461bcd60e51b815260206004820152601060248201526f19985a5b1959081d1bc81c99599d5b9960821b6044820152606401610d07565b50506001600e5550565b6008546001600160a01b03163314611c175760405162461bcd60e51b8152600401610d0790614400565b60175482611c2460005490565b611c2e9190614607565b1115611c4c5760405162461bcd60e51b8152600401610d07906144bf565b7f0000000000000000000000000000000000000000000000000000000000000000821015611c7e576116148183612ef9565b611ca87f00000000000000000000000000000000000000000000000000000000000000008361472a565b15611cc55760405162461bcd60e51b8152600401610d0790614363565b6000611cf17f00000000000000000000000000000000000000000000000000000000000000008461461f565b905060005b81811015611d3a57611d28837f0000000000000000000000000000000000000000000000000000000000000000612ef9565b80611d328161470f565b915050611cf6565b50505050565b6000611d4b82612f7e565b5192915050565b60006001600160a01b038216611dbe5760405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b6064820152608401610d07565b506001600160a01b03166000908152600460205260409020546001600160801b031690565b6008546001600160a01b03163314611e0d5760405162461bcd60e51b8152600401610d0790614400565b611e176000613127565b565b600f8054611e26906146d4565b80601f0160208091040260200160405190810160405280929190818152602001828054611e52906146d4565b8015611e9f5780601f10611e7457610100808354040283529160200191611e9f565b820191906000526020600020905b815481529060010190602001808311611e8257829003601f168201915b505050505081565b6008546001600160a01b03163314611ed15760405162461bcd60e51b8152600401610d0790614400565b601e55565b601c54600090600160b01b900460ff168015611f325750601e5433600090815260236020908152604080832054601390925290912054611f16919061467a565b611f209190614633565b33600090815260216020526040902054115b156111b457601e5433600090815260236020908152604080832054601390925290912054611f60919061467a565b611f6a9190614633565b336000908152602160205260409020546111af919061467a565b6008546001600160a01b03163314611fae5760405162461bcd60e51b8152600401610d0790614400565b805161161490600f906020840190613bc0565b6120018686868080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612f1392505050565b61201d5760405162461bcd60e51b8152600401610d07906144e2565b856120b46010805461202e906146d4565b80601f016020809104026020016040519081016040528092919081815260200182805461205a906146d4565b80156120a75780601f1061207c576101008083540402835291602001916120a7565b820191906000526020600020905b81548152906001019060200180831161208a57829003601f168201915b5050505050338585613179565b146120f15760405162461bcd60e51b815260206004820152600d60248201526c2430b9b41034b73b30b634b21760991b6044820152606401610d07565b33600090815260136020526040902054829061210e908590614607565b111561212c5760405162461bcd60e51b8152600401610d0790614488565b6015543360009081526013602052604090205461214a908590614607565b11156121685760405162461bcd60e51b8152600401610d0790614488565b3360009081526013602052604081208054859290612187908490614607565b90915550611462905081846131b3565b6121a18484612f13565b6121bd5760405162461bcd60e51b8152600401610d07906144e2565b604080513360601b6001600160601b0319166020808301919091526034820185905260548083018590528351808403909101815260749092019092528051910120841461221c5760405162461bcd60e51b8152600401610d07906143b0565b6015543360009081526013602052604090205461223a908390614607565b11156122585760405162461bcd60e51b8152600401610d0790614488565b3360009081526013602052604081208054839290612277908490614607565b90915550611d3a905082826131b3565b600c54600b546009805460009391926122c1916122a4904261467a565b6122ae919061461f565b60048401546001600160f81b0316613326565b6122cb9190614633565b81600101546122da919061467a565b6122e49084614633565b9392505050565b606060028054610dd9906146d4565b6001600160a01b0382163314156123535760405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c65720000000000006044820152606401610d07565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6008546001600160a01b031633146123e95760405162461bcd60e51b8152600401610d0790614400565b601c8054911515600160a81b0260ff60a81b19909216919091179055565b6008546001600160a01b031633146124315760405162461bcd60e51b8152600401610d0790614400565b601c8054911515600160b01b0260ff60b01b19909216919091179055565b6008546000906001600160a01b0316331461247c5760405162461bcd60e51b8152600401610d0790614400565b50600990565b61248c8383612f13565b6124a85760405162461bcd60e51b8152600401610d07906144e2565b826124b9600f805461175c906146d4565b146124d65760405162461bcd60e51b8152600401610d07906143b0565b601554336000908152601360205260409020546124f4908390614607565b11156125125760405162461bcd60e51b8152600401610d0790614488565b3360009081526013602052604081208054839290612531908490614607565b90915550610ffa905081600061333c565b6008546001600160a01b0316331461256c5760405162461bcd60e51b8152600401610d0790614400565b601c546040516000916001600160a01b03169083908381818185875af1925050503d80600081146125b9576040519150601f19603f3d011682016040523d82523d6000602084013e6125be565b606091505b50509050806116145760405162461bcd60e51b815260206004820152600f60248201526e1d1c985b9cd9995c8819985a5b1959608a1b6044820152606401610d07565b61260c848484612b77565b61261884848484613445565b611d3a5760405162461bcd60e51b8152600401610d0790614435565b6008546000906001600160a01b031633146126615760405162461bcd60e51b8152600401610d0790614400565b50674563918244f4000090565b60108054611e26906146d4565b6008546001600160a01b031633146126a55760405162461bcd60e51b8152600401610d0790614400565b601c8054911515600160b81b0260ff60b81b19909216919091179055565b6008546001600160a01b031633146126ed5760405162461bcd60e51b8152600401610d0790614400565b8082608001516001600160f81b0316836060015102836020015103146127635760405162461bcd60e51b815260206004820152602560248201527f4c696e656172447574636841756374696f6e3a20696e636f7272656374207265604482015264736572766560d81b6064820152608401610d07565b60008260a00151600281111561278957634e487b7160e01b600052602160045260246000fd5b14156127e35760405162461bcd60e51b8152602060048201526024808201527f4c696e656172447574636841756374696f6e3a20756e737065636966696564206044820152631d5b9a5d60e21b6064820152608401610d07565b600082604001511161284a5760405162461bcd60e51b815260206004820152602a60248201527f4c696e656172447574636841756374696f6e3a207a65726f206465637265617360448201526919481a5b9d195c9d985b60b21b6064820152608401610d07565b815160099081556020830151600a556040830151600b556060830151600c556080830151600d80546001600160f81b0319166001600160f81b03909216918217815560a0850151859392909190600160f81b8360028111156128bc57634e487b7160e01b600052602160045260246000fd5b021790555050505050565b606060116128d48361354f565b6040516020016128e5929190614257565b6040516020818303038152906040529050919050565b60128054611e26906146d4565b6008546001600160a01b031633146129325760405162461bcd60e51b8152600401610d0790614400565b600955565b6008546001600160a01b031633146129615760405162461bcd60e51b8152600401610d0790614400565b601555565b6008546001600160a01b031633146129905760405162461bcd60e51b8152600401610d0790614400565b8051611614906010906020840190613bc0565b6016543360009081526013602090815260408083205460149092529091205483916129cd91614607565b6129d79190614607565b11156129f55760405162461bcd60e51b8152600401610d0790614488565b8060256000828254612a079190614607565b90915550506024546025541115612a505760405162461bcd60e51b815260206004820152600d60248201526c195e18d9595908185b5bdd5b9d609a1b6044820152606401610d07565b3360009081526014602052604081208054839290612a6f908490614607565b90915550612a80905081600161333c565b50565b6008546001600160a01b03163314612aad5760405162461bcd60e51b8152600401610d0790614400565b6001600160a01b038116612b125760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610d07565b612a8081613127565b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000612b8282612f7e565b80519091506000906001600160a01b0316336001600160a01b03161480612bb9575033612bae84610e5c565b6001600160a01b0316145b80612bcb57508151612bcb9033610c3b565b905080612c355760405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610d07565b846001600160a01b031682600001516001600160a01b031614612ca95760405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f72726563746044820152651037bbb732b960d11b6064820152608401610d07565b6001600160a01b038416612d0d5760405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608401610d07565b612d1d6000848460000151612b1b565b6001600160a01b0385166000908152600460205260408120805460019290612d4f9084906001600160801b0316614652565b82546101009290920a6001600160801b038181021990931691831602179091556001600160a01b03861660009081526004602052604081208054600194509092612d9b918591166145dc565b82546001600160801b039182166101009390930a9283029190920219909116179055506040805180820182526001600160a01b0380871682526001600160401b03428116602080850191825260008981526003909152948520935184549151909216600160a01b026001600160e01b03199091169190921617179055612e22846001614607565b6000818152600360205260409020549091506001600160a01b0316612eb357612e4c816000541190565b15612eb35760408051808201825284516001600160a01b0390811682526020808701516001600160401b039081168285019081526000878152600390935294909120925183549451909116600160a01b026001600160e01b03199094169116179190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611462565b611614828260405180602001604052806000815250613668565b6000612f276008546001600160a01b031690565b6001600160a01b0316612f3a8484613942565b6001600160a01b0316149392505050565b60008282604051602001612f609291906141e6565b60405160208183030381529060405280519060200120905092915050565b6040805180820190915260008082526020820152612f9d826000541190565b612ffc5760405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e657869736044820152693a32b73a103a37b5b2b760b11b6064820152608401610d07565b60007f0000000000000000000000000000000000000000000000000000000000000000831061305d5761304f7f00000000000000000000000000000000000000000000000000000000000000008461467a565b61305a906001614607565b90505b825b8181106130c6576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b031691830191909152156130b357949350505050565b50806130be816146bd565b91505061305f565b5060405162461bcd60e51b815260206004820152602f60248201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560448201526e1037bbb732b91037b3103a37b5b2b760891b6064820152608401610d07565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000848484846040516020016131929493929190614218565b6040516020818303038152906040528051906020012090505b949350505050565b6002600e5414156131d65760405162461bcd60e51b8152600401610d0790614523565b6002600e55601854816131e860005490565b6131f29190614607565b11156132105760405162461bcd60e51b8152600401610d07906144bf565b600061321c8284614633565b90503481111561323e5760405162461bcd60e51b8152600401610d079061433a565b6132483383612ef9565b81601f600082825461325a9190614607565b9091555050336000908152602160205260408120805483929061327e908490614607565b909155505034811015611be3576000335b9050600061329d833461467a565b9050600080836001600160a01b03168360405160006040518083038185875af1925050503d80600081146132ed576040519150601f19603f3d011682016040523d82523d6000602084013e6132f2565b606091505b50915091508181906133175760405162461bcd60e51b8152600401610d079190614327565b505050505050506001600e5550565b600081831061333557816122e4565b5090919050565b6002600e54141561335f5760405162461bcd60e51b8152600401610d0790614523565b6002600e556018548261337160005490565b61337b9190614607565b11156133995760405162461bcd60e51b8152600401610d07906144bf565b60006133a483612287565b9050348111156133c65760405162461bcd60e51b8152600401610d079061433a565b6133d03384612ef9565b82601f60008282546133e29190614607565b90915550508115613416573360009081526020805260408120805483929061340b908490614607565b909155506134359050565b336000908152602160205260408120805483929061327e908490614607565b80341115611be35760003361328f565b60006001600160a01b0384163b1561354757604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906134899033908990889088906004016142f4565b602060405180830381600087803b1580156134a357600080fd5b505af19250505080156134d3575060408051601f3d908101601f191682019092526134d091810190614079565b60015b61352d573d808015613501576040519150601f19603f3d011682016040523d82523d6000602084013e613506565b606091505b5080516135255760405162461bcd60e51b8152600401610d0790614435565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506131ab565b5060016131ab565b6060816135735750506040805180820190915260018152600360fc1b602082015290565b8160005b811561359d57806135878161470f565b91506135969050600a8361461f565b9150613577565b6000816001600160401b038111156135c557634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156135ef576020820181803683370190505b5090505b84156131ab5761360460018361467a565b9150613611600a8661472a565b61361c906030614607565b60f81b81838151811061363f57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350613661600a8661461f565b94506135f3565b6000546001600160a01b0384166136cb5760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610d07565b6136d6816000541190565b156137235760405162461bcd60e51b815260206004820152601d60248201527f455243373231413a20746f6b656e20616c7265616479206d696e7465640000006044820152606401610d07565b7f000000000000000000000000000000000000000000000000000000000000000083111561379e5760405162461bcd60e51b815260206004820152602260248201527f455243373231413a207175616e7469747920746f206d696e7420746f6f2068696044820152610ced60f31b6064820152608401610d07565b6001600160a01b0384166000908152600460209081526040918290208251808401845290546001600160801b038082168352600160801b90910416918101919091528151808301909252805190919081906137fa9087906145dc565b6001600160801b0316815260200185836020015161381891906145dc565b6001600160801b039081169091526001600160a01b0380881660008181526004602090815260408083208751978301518716600160801b029790961696909617909455845180860186529182526001600160401b034281168386019081528883526003909552948120915182549451909516600160a01b026001600160e01b031990941694909216939093179190911790915582905b858110156139375760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46138fb6000888488613445565b6139175760405162461bcd60e51b8152600401610d0790614435565b816139218161470f565b925050808061392f9061470f565b9150506138ae565b506000819055611462565b60006122e48383600081516041141561397d5760208201516040830151606084015160001a613973868285856139ed565b9350505050610d7c565b8151604014156139a5576020820151604083015161399c858383613b96565b92505050610d7c565b60405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610d07565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0821115613a6a5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610d07565b8360ff16601b1480613a7f57508360ff16601c145b613ad65760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610d07565b6040805160008082526020820180845288905260ff871692820192909252606081018590526080810184905260019060a0016020604051602081039080840390855afa158015613b2a573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116613b8d5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610d07565b95945050505050565b60006001600160ff1b03821660ff83901c601b01613bb6868287856139ed565b9695505050505050565b828054613bcc906146d4565b90600052602060002090601f016020900481019282613bee5760008555613c34565b82601f10613c0757805160ff1916838001178555613c34565b82800160010185558215613c34579182015b82811115613c34578251825591602001919060010190613c19565b506117219291505b808211156117215760008155600101613c3c565b60006001600160401b0380841115613c6a57613c6a61476a565b604051601f8501601f19908116603f01168101908282118183101715613c9257613c9261476a565b81604052809350858152868686011115613cab57600080fd5b858560208301376000602087830101525050509392505050565b60008083601f840112613cd6578182fd5b5081356001600160401b03811115613cec578182fd5b6020830191508360208260051b8501011115613d0757600080fd5b9250929050565b80358015158114613d1e57600080fd5b919050565b600082601f830112613d33578081fd5b6122e483833560208501613c50565b803560038110613d1e57600080fd5b600060208284031215613d62578081fd5b81356122e481614780565b60008060408385031215613d7f578081fd5b8235613d8a81614780565b91506020830135613d9a81614780565b809150509250929050565b600080600060608486031215613db9578081fd5b8335613dc481614780565b92506020840135613dd481614780565b929592945050506040919091013590565b60008060008060808587031215613dfa578081fd5b8435613e0581614780565b93506020850135613e1581614780565b92506040850135915060608501356001600160401b03811115613e36578182fd5b613e4287828801613d23565b91505092959194509250565b60008060408385031215613e60578182fd5b8235613e6b81614780565b9150613e7960208401613d0e565b90509250929050565b60008060408385031215613e94578182fd5b8235613e9f81614780565b946020939093013593505050565b60008060008060408587031215613ec2578182fd5b84356001600160401b0380821115613ed8578384fd5b613ee488838901613cc5565b90965094506020870135915080821115613efc578384fd5b50613f0987828801613cc5565b95989497509550505050565b600060208284031215613f26578081fd5b6122e482613d0e565b60008060008060008060a08789031215613f47578384fd5b8635955060208701356001600160401b0380821115613f64578586fd5b818901915089601f830112613f77578586fd5b813581811115613f85578687fd5b8a6020828501011115613f96578687fd5b979a60209290920199509697604081013597506060810135965060800135945092505050565b600080600060608486031215613fd0578081fd5b8335925060208401356001600160401b03811115613fec578182fd5b613ff886828701613d23565b925050604084013590509250925092565b6000806000806080858703121561401e578182fd5b8435935060208501356001600160401b0381111561403a578283fd5b61404687828801613d23565b949794965050505060408301359260600135919050565b60006020828403121561406e578081fd5b81356122e481614795565b60006020828403121561408a578081fd5b81516122e481614795565b6000602082840312156140a6578081fd5b81356001600160401b038111156140bb578182fd5b8201601f810184136140cb578182fd5b6131ab84823560208401613c50565b60008082840360e08112156140ed578283fd5b60c08112156140fa578283fd5b506141036145b4565b8335815260208085013590820152604080850135908201526060808501359082015260808401356001600160f81b038116811461413e578384fd5b608082015261414f60a08501613d42565b60a08201529460c0939093013593505050565b600060208284031215614173578081fd5b5035919050565b6000806040838503121561418c578182fd5b823591506020830135613d9a81614780565b600081518084526141b6816020860160208601614691565b601f01601f19169290920160200192915050565b600081516141dc818560208601614691565b9290920192915050565b600083516141f8818460208801614691565b60609390931b6001600160601b0319169190920190815260140192915050565b6000855161422a818460208a01614691565b60609590951b6001600160601b031916919094019081526014810192909252603482015260540192915050565b600080845482600182811c91508083168061427357607f831692505b602080841082141561429357634e487b7160e01b87526022600452602487fd5b8180156142a757600181146142b8576142e4565b60ff198616895284890196506142e4565b60008b815260209020885b868110156142dc5781548b8201529085019083016142c3565b505084890196505b505050505050613b8d81856141ca565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613bb69083018461419e565b6020815260006122e4602083018461419e565b6020808252600f908201526e24b73b30b634b21030b6b7bab73a1760891b604082015260600190565b6020808252602d908201527f43616e206f6e6c79206d696e742061206d756c7469706c65206f66207468652060408201526c36b0bc2130ba31b429b4bd329760991b606082015260800190565b60208082526030908201527f5468652061646472657373206861736820646f6573206e6f74206d617463682060408201526f3a34329039b4b3b732b2103430b9b41760811b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526033908201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260408201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b606082015260800190565b6020808252601a908201527f596f752063616e6e6f74206d696e742074686973206d616e792e000000000000604082015260600190565b60208082526009908201526829b7b6321037baba1760b91b604082015260600190565b60208082526021908201527f5468697320686173682773207369676e617475726520697320696e76616c69646040820152601760f91b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b8681526020810186905260408101859052606081018490526001600160f81b038316608082015260c08101600383106145a357634e487b7160e01b600052602160045260246000fd5b8260a0830152979650505050505050565b60405160c081016001600160401b03811182821017156145d6576145d661476a565b60405290565b60006001600160801b038083168185168083038211156145fe576145fe61473e565b01949350505050565b6000821982111561461a5761461a61473e565b500190565b60008261462e5761462e614754565b500490565b600081600019048311821515161561464d5761464d61473e565b500290565b60006001600160801b03838116908316818110156146725761467261473e565b039392505050565b60008282101561468c5761468c61473e565b500390565b60005b838110156146ac578181015183820152602001614694565b83811115611d3a5750506000910152565b6000816146cc576146cc61473e565b506000190190565b600181811c908216806146e857607f821691505b6020821081141561470957634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156147235761472361473e565b5060010190565b60008261473957614739614754565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114612a8057600080fd5b6001600160e01b031981168114612a8057600080fdfea26469706673582212207148fb7a5932210db6bb8a91161c22f50124f3b901d26009f3e9b81ca8f09d7964736f6c63430008040033608060405260405162000b6a38038062000b6a8339810160408190526200002691620003db565b8051825114620000985760405162461bcd60e51b815260206004820152603260248201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726044820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b60648201526084015b60405180910390fd5b6000825111620000eb5760405162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f2070617965657300000000000060448201526064016200008f565b60005b82518110156200016f576200015a8382815181106200011d57634e487b7160e01b600052603260045260246000fd5b60200260200101518383815181106200014657634e487b7160e01b600052603260045260246000fd5b60200260200101516200017860201b60201c565b8062000166816200052c565b915050620000ee565b50505062000576565b6001600160a01b038216620001e55760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b60648201526084016200008f565b60008111620002375760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a2073686172657320617265203000000060448201526064016200008f565b6001600160a01b03821660009081526002602052604090205415620002b35760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b60648201526084016200008f565b60048054600181019091557f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0180546001600160a01b0319166001600160a01b0384169081179091556000908152600260205260408120829055546200031b90829062000511565b600055604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b600082601f83011262000375578081fd5b815160206200038e6200038883620004eb565b620004b8565b80838252828201915082860187848660051b8901011115620003ae578586fd5b855b85811015620003ce57815184529284019290840190600101620003b0565b5090979650505050505050565b60008060408385031215620003ee578182fd5b82516001600160401b038082111562000405578384fd5b818501915085601f83011262000419578384fd5b815160206200042c6200038883620004eb565b8083825282820191508286018a848660051b89010111156200044c578889fd5b8896505b84871015620004855780516001600160a01b03811681146200047057898afd5b83526001969096019591830191830162000450565b50918801519196509093505050808211156200049f578283fd5b50620004ae8582860162000364565b9150509250929050565b604051601f8201601f191681016001600160401b0381118282101715620004e357620004e362000560565b604052919050565b60006001600160401b0382111562000507576200050762000560565b5060051b60200190565b600082198211156200052757620005276200054a565b500190565b60006000198214156200054357620005436200054a565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6105e480620005866000396000f3fe6080604052600436106100595760003560e01c806319165587146100a75780633a98ef39146100c95780638b83209b146100ed5780639852595c14610125578063ce7c2ac21461015b578063e33b7de31461019157600080fd5b366100a2577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b3480156100b357600080fd5b506100c76100c23660046104d7565b6101a6565b005b3480156100d557600080fd5b506000545b6040519081526020015b60405180910390f35b3480156100f957600080fd5b5061010d6101083660046104fa565b61037b565b6040516001600160a01b0390911681526020016100e4565b34801561013157600080fd5b506100da6101403660046104d7565b6001600160a01b031660009081526003602052604090205490565b34801561016757600080fd5b506100da6101763660046104d7565b6001600160a01b031660009081526002602052604090205490565b34801561019d57600080fd5b506001546100da565b6001600160a01b03811660009081526002602052604090205461021f5760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201526573686172657360d01b60648201526084015b60405180910390fd5b60006001544761022f9190610512565b6001600160a01b03831660009081526003602090815260408083205483546002909352908320549394509192610265908561054a565b61026f919061052a565b6102799190610569565b9050806102dc5760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201526a191d59481c185e5b595b9d60aa1b6064820152608401610216565b6001600160a01b038316600090815260036020526040902054610300908290610512565b6001600160a01b038416600090815260036020526040902055600154610327908290610512565b60015561033483826103b9565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b60006004828154811061039e57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031692915050565b804710156104095760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610216565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610456576040519150601f19603f3d011682016040523d82523d6000602084013e61045b565b606091505b50509050806104d25760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610216565b505050565b6000602082840312156104e8578081fd5b81356104f381610596565b9392505050565b60006020828403121561050b578081fd5b5035919050565b6000821982111561052557610525610580565b500190565b60008261054557634e487b7160e01b81526012600452602481fd5b500490565b600081600019048311821515161561056457610564610580565b500290565b60008282101561057b5761057b610580565b500390565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b03811681146105ab57600080fd5b5056fea2646970667358221220c96491603802a35d8468b85d1304c5db15afa93e123878731b5049f1e77eb80d64736f6c634300080400330000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000002200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005c300000000000000000000000000000000000000000000000000000000000000190000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000004802385b07e4301db3d5854819ff85c4d4fc47fc00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000002157696e646368696d65202d205365637265742047617264656e20426f757175657400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000957494e444348494d450000000000000000000000000000000000000000000000
Deployed Bytecode
0x60806040526004361061043b5760003560e01c8063788183dd11610234578063bcf161a21161012e578063d7224ba0116100b6578063e985e9c51161007a578063e985e9c514610c20578063ea4194dc14610c69578063efd0cbf914610c89578063f2fde38b14610c9c578063f4aa1b6714610cbc57600080fd5b8063d7224ba014610b9e578063d73b2a6c14610bb4578063d921eb7814610bca578063e0c5b0ed14610be0578063e214696314610c0057600080fd5b8063c85b380d116100fd578063c85b380d14610b11578063c878813414610b31578063c87b56dd14610b47578063cc04947314610b67578063d57e4eae14610b7c57600080fd5b8063bcf161a214610aa4578063bcf754bf14610ab9578063c0c3714914610adb578063c0fa501114610af157600080fd5b806395d89b41116101bc578063b27a87b011610180578063b27a87b014610a28578063b413e61a14610a3b578063b882bacb14610a5c578063b88d4fde14610a6f578063baffa90314610a8f57600080fd5b806395d89b411461099e578063a22cb465146109b3578063a9501b73146109d3578063ab55abf5146109f3578063b1b54e9a14610a1357600080fd5b806385cb593b1161020357806385cb593b1461091a5780638da5cb5b1461093a5780638e9e4e78146109585780638f3756c21461096b5780639097548d1461097e57600080fd5b8063788183dd146108815780637bd07f8b146108a1578063808d5259146108ef578063846b41931461090557600080fd5b80632f745c591161034557806355f804b3116102cd5780636ac5db19116102915780636ac5db191461080b57806370a0823114610821578063715018a614610841578063722e141d1461085657806375dadb321461086c57600080fd5b806355f804b314610780578063571d34af146107a0578063590e1ae3146107b6578063631bbbba146107cb5780636352211e146107eb57600080fd5b806342842e0e1161031457806342842e0e146107025780634f297ccc146107225780634f6ccce71461073857806351b7511514610758578063557007011461076b57600080fd5b80632f745c591461068d57806334d79fff146106ad57806339a2e659146106cd57806339ae8c8f146106ed57600080fd5b80630e56a3c3116103c85780631fe9eabc116103975780631fe9eabc146105f857806320def2a41461061857806323aa0f9b1461063857806323b872dd1461064d578063279a669e1461066d57600080fd5b80630e56a3c31461058157806318160ddd146105ae57806319165587146105c35780631a11e20d146105e357600080fd5b8063057494a11161040f578063057494a1146104d157806306fdde03146104f1578063081812fc14610513578063095ea7b31461054b5780630a23b7251461056b57600080fd5b8062ab1fa31461044057806301ffc9a714610462578063022a11b414610497578063035fd8c2146104bb575b600080fd5b34801561044c57600080fd5b5061046061045b366004614162565b610cdd565b005b34801561046e57600080fd5b5061048261047d36600461405d565b610d15565b60405190151581526020015b60405180910390f35b3480156104a357600080fd5b506104ad601f5481565b60405190815260200161048e565b3480156104c757600080fd5b506104ad60245481565b3480156104dd57600080fd5b506104606104ec366004613f15565b610d82565b3480156104fd57600080fd5b50610506610dca565b60405161048e9190614327565b34801561051f57600080fd5b5061053361052e366004614162565b610e5c565b6040516001600160a01b03909116815260200161048e565b34801561055757600080fd5b50610460610566366004613e82565b610ee7565b34801561057757600080fd5b506104ad60195481565b34801561058d57600080fd5b50610596610fff565b6040516001600160401b03909116815260200161048e565b3480156105ba57600080fd5b506000546104ad565b3480156105cf57600080fd5b506104606105de366004613d51565b611033565b3480156105ef57600080fd5b50610596611095565b34801561060457600080fd5b50610460610613366004614162565b6110cf565b34801561062457600080fd5b50610460610633366004614162565b6110fe565b34801561064457600080fd5b506104ad61112d565b34801561065957600080fd5b50610460610668366004613da5565b6111ba565b34801561067957600080fd5b50610460610688366004613ead565b6111c5565b34801561069957600080fd5b506104ad6106a8366004613e82565b61146a565b3480156106b957600080fd5b506104606106c8366004614095565b6115d7565b3480156106d957600080fd5b506104606106e8366004614162565b611618565b3480156106f957600080fd5b506104ad611647565b34801561070e57600080fd5b5061046061071d366004613da5565b6116a8565b34801561072e57600080fd5b506104ad601a5481565b34801561074457600080fd5b506104ad610753366004614162565b6116c3565b610460610766366004613fbc565b611725565b34801561077757600080fd5b506104ad6118f5565b34801561078c57600080fd5b5061046061079b366004614095565b611975565b3480156107ac57600080fd5b506104ad60165481565b3480156107c257600080fd5b506104606119b2565b3480156107d757600080fd5b506104606107e636600461417a565b611bed565b3480156107f757600080fd5b50610533610806366004614162565b611d40565b34801561081757600080fd5b506104ad60185481565b34801561082d57600080fd5b506104ad61083c366004613d51565b611d52565b34801561084d57600080fd5b50610460611de3565b34801561086257600080fd5b506104ad60155481565b34801561087857600080fd5b50610506611e19565b34801561088d57600080fd5b5061046061089c366004614162565b611ea7565b3480156108ad57600080fd5b50600954600a54600b54600c54600d546108dd94939291906001600160f81b03811690600160f81b900460ff1686565b60405161048e9695949392919061455a565b3480156108fb57600080fd5b506104ad601e5481565b34801561091157600080fd5b506104ad611ed6565b34801561092657600080fd5b50610460610935366004614095565b611f84565b34801561094657600080fd5b506008546001600160a01b0316610533565b610460610966366004613f2f565b611fc1565b610460610979366004614009565b612197565b34801561098a57600080fd5b506104ad610999366004614162565b612287565b3480156109aa57600080fd5b506105066122eb565b3480156109bf57600080fd5b506104606109ce366004613e4e565b6122fa565b3480156109df57600080fd5b506104606109ee366004613f15565b6123bf565b3480156109ff57600080fd5b50610460610a0e366004613f15565b612407565b348015610a1f57600080fd5b5061059661244f565b610460610a36366004613fbc565b612482565b348015610a4757600080fd5b50601c5461048290600160a81b900460ff1681565b610460610a6a366004614162565b612542565b348015610a7b57600080fd5b50610460610a8a366004613de5565b612601565b348015610a9b57600080fd5b50610596612634565b348015610ab057600080fd5b5061050661266e565b348015610ac557600080fd5b50336000908152601460205260409020546104ad565b348015610ae757600080fd5b506104ad60255481565b348015610afd57600080fd5b50610460610b0c366004613f15565b61267b565b348015610b1d57600080fd5b50610460610b2c3660046140da565b6126c3565b348015610b3d57600080fd5b506104ad601b5481565b348015610b5357600080fd5b50610506610b62366004614162565b6128c7565b348015610b7357600080fd5b506105066128fb565b348015610b8857600080fd5b50336000908152601360205260409020546104ad565b348015610baa57600080fd5b506104ad60075481565b348015610bc057600080fd5b506104ad60175481565b348015610bd657600080fd5b506104ad601d5481565b348015610bec57600080fd5b50610460610bfb366004614162565b612908565b348015610c0c57600080fd5b50610460610c1b366004614162565b612937565b348015610c2c57600080fd5b50610482610c3b366004613d6d565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b348015610c7557600080fd5b50610460610c84366004614095565b612966565b610460610c97366004614162565b6129a3565b348015610ca857600080fd5b50610460610cb7366004613d51565b612a83565b348015610cc857600080fd5b50601c5461048290600160a01b900460ff1681565b6008546001600160a01b03163314610d105760405162461bcd60e51b8152600401610d0790614400565b60405180910390fd5b601b55565b60006001600160e01b031982166380ac58cd60e01b1480610d4657506001600160e01b03198216635b5e139f60e01b145b80610d6157506001600160e01b0319821663780e9d6360e01b145b80610d7c57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6008546001600160a01b03163314610dac5760405162461bcd60e51b8152600401610d0790614400565b601c8054911515600160a01b0260ff60a01b19909216919091179055565b606060018054610dd9906146d4565b80601f0160208091040260200160405190810160405280929190818152602001828054610e05906146d4565b8015610e525780601f10610e2757610100808354040283529160200191610e52565b820191906000526020600020905b815481529060010190602001808311610e3557829003601f168201915b5050505050905090565b6000610e69826000541190565b610ecb5760405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201526c3c34b9ba32b73a103a37b5b2b760991b6064820152608401610d07565b506000908152600560205260409020546001600160a01b031690565b6000610ef282611d40565b9050806001600160a01b0316836001600160a01b03161415610f615760405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201526132b960f11b6064820152608401610d07565b336001600160a01b0382161480610f7d5750610f7d8133610c3b565b610fef5760405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c000000000000006064820152608401610d07565b610ffa838383612b1b565b505050565b6008546000906001600160a01b0316331461102c5760405162461bcd60e51b8152600401610d0790614400565b5061038490565b601c54604051631916558760e01b81526001600160a01b03838116600483015290911690631916558790602401600060405180830381600087803b15801561107a57600080fd5b505af115801561108e573d6000803e3d6000fd5b5050505050565b6008546000906001600160a01b031633146110c25760405162461bcd60e51b8152600401610d0790614400565b506706f05b59d3b2000090565b6008546001600160a01b031633146110f95760405162461bcd60e51b8152600401610d0790614400565b601855565b6008546001600160a01b031633146111285760405162461bcd60e51b8152600401610d0790614400565b602455565b601c54600090600160b81b900460ff1680156111735750601e54336000908152602360205260409020546111619190614633565b33600090815260226020526040902054115b156111b457601e54336000908152602360205260409020546111959190614633565b336000908152602260205260409020546111af919061467a565b905090565b50600090565b610ffa838383612b77565b6008546001600160a01b031633146111ef5760405162461bcd60e51b8152600401610d0790614400565b8260005b818110156114625760175484848381811061121e57634e487b7160e01b600052603260045260246000fd5b9050602002013561122e60005490565b6112389190614607565b11156112565760405162461bcd60e51b8152600401610d07906144bf565b7f000000000000000000000000000000000000000000000000000000000000001484848381811061129757634e487b7160e01b600052603260045260246000fd5b90506020020135101561130d576113088686838181106112c757634e487b7160e01b600052603260045260246000fd5b90506020020160208101906112dc9190613d51565b8585848181106112fc57634e487b7160e01b600052603260045260246000fd5b90506020020135612ef9565b611450565b7f000000000000000000000000000000000000000000000000000000000000001484848381811061134e57634e487b7160e01b600052603260045260246000fd5b9050602002013561135f919061472a565b1561137c5760405162461bcd60e51b8152600401610d0790614363565b60007f00000000000000000000000000000000000000000000000000000000000000148585848181106113bf57634e487b7160e01b600052603260045260246000fd5b905060200201356113d0919061461f565b905060005b8181101561144d5761143b88888381811061140057634e487b7160e01b600052603260045260246000fd5b90506020020160208101906114159190613d51565b7f0000000000000000000000000000000000000000000000000000000000000014612ef9565b806114458161470f565b9150506113d5565b50505b8061145a8161470f565b9150506111f3565b505050505050565b600061147583611d52565b82106114ce5760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e604482015261647360f01b6064820152608401610d07565b600080549080805b83811015611577576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b0316918301919091521561152857805192505b876001600160a01b0316836001600160a01b03161415611564578684141561155657509350610d7c92505050565b836115608161470f565b9450505b508061156f8161470f565b9150506114d6565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201526d0deeedccae440c4f240d2dcc8caf60931b6064820152608401610d07565b6008546001600160a01b031633146116015760405162461bcd60e51b8152600401610d0790614400565b8051611614906012906020840190613bc0565b5050565b6008546001600160a01b031633146116425760405162461bcd60e51b8152600401610d0790614400565b601655565b601c54600090600160a01b900460ff166116985760405162461bcd60e51b81526020600482015260126024820152711c99599d5b99081b9bdd08185b1b1bddd95960721b6044820152606401610d07565b601e54601f546111af9190614633565b610ffa83838360405180602001604052806000815250612601565b6000805482106117215760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f756044820152626e647360e81b6064820152608401610d07565b5090565b61172f8383612f13565b61174b5760405162461bcd60e51b8152600401610d07906144e2565b826117e06010805461175c906146d4565b80601f0160208091040260200160405190810160405280929190818152602001828054611788906146d4565b80156117d55780601f106117aa576101008083540402835291602001916117d5565b820191906000526020600020905b8154815290600101906020018083116117b857829003601f168201915b505050505033612f4b565b146117fd5760405162461bcd60e51b8152600401610d07906143b0565b6015543360009081526013602052604090205461181b908390614607565b11156118395760405162461bcd60e51b8152600401610d0790614488565b3481601b546118489190614633565b146118655760405162461bcd60e51b8152600401610d079061433a565b3360009081526013602052604081208054839290611884908490614607565b909155505033600090815260236020526040812080548392906118a8908490614607565b9250508190555080601f60008282546118c19190614607565b909155505033600090815260226020526040812080543492906118e5908490614607565b90915550610ffa90503382612ef9565b601c54600090600160a81b900460ff16801561193a5750601e54336000908152601460205260409020546119299190614633565b336000908152602080526040902054115b156111b457601e543360009081526014602052604090205461195c9190614633565b3360009081526020805260409020546111af919061467a565b6008546001600160a01b0316331461199f5760405162461bcd60e51b8152600401610d0790614400565b8051611614906011906020840190613bc0565b6002600e5414156119d55760405162461bcd60e51b8152600401610d0790614523565b6002600e55601c54600160a01b900460ff161515600114611a2d5760405162461bcd60e51b81526020600482015260126024820152711c99599d5b99081b9bdd08185b1b1bddd95960721b6044820152606401610d07565b600080611a386118f5565b90508015611a7157336000908152602080805260408083208390556014909152902054601f549192508291611a6d919061467a565b601f555b611a79611ed6565b90508015611ace57611a8b8183614607565b3360009081526021602090815260408083208390556023825280832054601390925290912054919350611abd9161467a565b601f54611aca919061467a565b601f555b611ad661112d565b90508015611b1857611ae88183614607565b3360009081526022602090815260408083208390556023909152902054601f54919350611b149161467a565b601f555b81611b525760405162461bcd60e51b815260206004820152600a6024820152696e6f20726566756e647360b01b6044820152606401610d07565b604051600090339084908381818185875af1925050503d8060008114611b94576040519150601f19603f3d011682016040523d82523d6000602084013e611b99565b606091505b5090915050600181151514611be35760405162461bcd60e51b815260206004820152601060248201526f19985a5b1959081d1bc81c99599d5b9960821b6044820152606401610d07565b50506001600e5550565b6008546001600160a01b03163314611c175760405162461bcd60e51b8152600401610d0790614400565b60175482611c2460005490565b611c2e9190614607565b1115611c4c5760405162461bcd60e51b8152600401610d07906144bf565b7f0000000000000000000000000000000000000000000000000000000000000014821015611c7e576116148183612ef9565b611ca87f00000000000000000000000000000000000000000000000000000000000000148361472a565b15611cc55760405162461bcd60e51b8152600401610d0790614363565b6000611cf17f00000000000000000000000000000000000000000000000000000000000000148461461f565b905060005b81811015611d3a57611d28837f0000000000000000000000000000000000000000000000000000000000000014612ef9565b80611d328161470f565b915050611cf6565b50505050565b6000611d4b82612f7e565b5192915050565b60006001600160a01b038216611dbe5760405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b6064820152608401610d07565b506001600160a01b03166000908152600460205260409020546001600160801b031690565b6008546001600160a01b03163314611e0d5760405162461bcd60e51b8152600401610d0790614400565b611e176000613127565b565b600f8054611e26906146d4565b80601f0160208091040260200160405190810160405280929190818152602001828054611e52906146d4565b8015611e9f5780601f10611e7457610100808354040283529160200191611e9f565b820191906000526020600020905b815481529060010190602001808311611e8257829003601f168201915b505050505081565b6008546001600160a01b03163314611ed15760405162461bcd60e51b8152600401610d0790614400565b601e55565b601c54600090600160b01b900460ff168015611f325750601e5433600090815260236020908152604080832054601390925290912054611f16919061467a565b611f209190614633565b33600090815260216020526040902054115b156111b457601e5433600090815260236020908152604080832054601390925290912054611f60919061467a565b611f6a9190614633565b336000908152602160205260409020546111af919061467a565b6008546001600160a01b03163314611fae5760405162461bcd60e51b8152600401610d0790614400565b805161161490600f906020840190613bc0565b6120018686868080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612f1392505050565b61201d5760405162461bcd60e51b8152600401610d07906144e2565b856120b46010805461202e906146d4565b80601f016020809104026020016040519081016040528092919081815260200182805461205a906146d4565b80156120a75780601f1061207c576101008083540402835291602001916120a7565b820191906000526020600020905b81548152906001019060200180831161208a57829003601f168201915b5050505050338585613179565b146120f15760405162461bcd60e51b815260206004820152600d60248201526c2430b9b41034b73b30b634b21760991b6044820152606401610d07565b33600090815260136020526040902054829061210e908590614607565b111561212c5760405162461bcd60e51b8152600401610d0790614488565b6015543360009081526013602052604090205461214a908590614607565b11156121685760405162461bcd60e51b8152600401610d0790614488565b3360009081526013602052604081208054859290612187908490614607565b90915550611462905081846131b3565b6121a18484612f13565b6121bd5760405162461bcd60e51b8152600401610d07906144e2565b604080513360601b6001600160601b0319166020808301919091526034820185905260548083018590528351808403909101815260749092019092528051910120841461221c5760405162461bcd60e51b8152600401610d07906143b0565b6015543360009081526013602052604090205461223a908390614607565b11156122585760405162461bcd60e51b8152600401610d0790614488565b3360009081526013602052604081208054839290612277908490614607565b90915550611d3a905082826131b3565b600c54600b546009805460009391926122c1916122a4904261467a565b6122ae919061461f565b60048401546001600160f81b0316613326565b6122cb9190614633565b81600101546122da919061467a565b6122e49084614633565b9392505050565b606060028054610dd9906146d4565b6001600160a01b0382163314156123535760405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c65720000000000006044820152606401610d07565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6008546001600160a01b031633146123e95760405162461bcd60e51b8152600401610d0790614400565b601c8054911515600160a81b0260ff60a81b19909216919091179055565b6008546001600160a01b031633146124315760405162461bcd60e51b8152600401610d0790614400565b601c8054911515600160b01b0260ff60b01b19909216919091179055565b6008546000906001600160a01b0316331461247c5760405162461bcd60e51b8152600401610d0790614400565b50600990565b61248c8383612f13565b6124a85760405162461bcd60e51b8152600401610d07906144e2565b826124b9600f805461175c906146d4565b146124d65760405162461bcd60e51b8152600401610d07906143b0565b601554336000908152601360205260409020546124f4908390614607565b11156125125760405162461bcd60e51b8152600401610d0790614488565b3360009081526013602052604081208054839290612531908490614607565b90915550610ffa905081600061333c565b6008546001600160a01b0316331461256c5760405162461bcd60e51b8152600401610d0790614400565b601c546040516000916001600160a01b03169083908381818185875af1925050503d80600081146125b9576040519150601f19603f3d011682016040523d82523d6000602084013e6125be565b606091505b50509050806116145760405162461bcd60e51b815260206004820152600f60248201526e1d1c985b9cd9995c8819985a5b1959608a1b6044820152606401610d07565b61260c848484612b77565b61261884848484613445565b611d3a5760405162461bcd60e51b8152600401610d0790614435565b6008546000906001600160a01b031633146126615760405162461bcd60e51b8152600401610d0790614400565b50674563918244f4000090565b60108054611e26906146d4565b6008546001600160a01b031633146126a55760405162461bcd60e51b8152600401610d0790614400565b601c8054911515600160b81b0260ff60b81b19909216919091179055565b6008546001600160a01b031633146126ed5760405162461bcd60e51b8152600401610d0790614400565b8082608001516001600160f81b0316836060015102836020015103146127635760405162461bcd60e51b815260206004820152602560248201527f4c696e656172447574636841756374696f6e3a20696e636f7272656374207265604482015264736572766560d81b6064820152608401610d07565b60008260a00151600281111561278957634e487b7160e01b600052602160045260246000fd5b14156127e35760405162461bcd60e51b8152602060048201526024808201527f4c696e656172447574636841756374696f6e3a20756e737065636966696564206044820152631d5b9a5d60e21b6064820152608401610d07565b600082604001511161284a5760405162461bcd60e51b815260206004820152602a60248201527f4c696e656172447574636841756374696f6e3a207a65726f206465637265617360448201526919481a5b9d195c9d985b60b21b6064820152608401610d07565b815160099081556020830151600a556040830151600b556060830151600c556080830151600d80546001600160f81b0319166001600160f81b03909216918217815560a0850151859392909190600160f81b8360028111156128bc57634e487b7160e01b600052602160045260246000fd5b021790555050505050565b606060116128d48361354f565b6040516020016128e5929190614257565b6040516020818303038152906040529050919050565b60128054611e26906146d4565b6008546001600160a01b031633146129325760405162461bcd60e51b8152600401610d0790614400565b600955565b6008546001600160a01b031633146129615760405162461bcd60e51b8152600401610d0790614400565b601555565b6008546001600160a01b031633146129905760405162461bcd60e51b8152600401610d0790614400565b8051611614906010906020840190613bc0565b6016543360009081526013602090815260408083205460149092529091205483916129cd91614607565b6129d79190614607565b11156129f55760405162461bcd60e51b8152600401610d0790614488565b8060256000828254612a079190614607565b90915550506024546025541115612a505760405162461bcd60e51b815260206004820152600d60248201526c195e18d9595908185b5bdd5b9d609a1b6044820152606401610d07565b3360009081526014602052604081208054839290612a6f908490614607565b90915550612a80905081600161333c565b50565b6008546001600160a01b03163314612aad5760405162461bcd60e51b8152600401610d0790614400565b6001600160a01b038116612b125760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610d07565b612a8081613127565b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000612b8282612f7e565b80519091506000906001600160a01b0316336001600160a01b03161480612bb9575033612bae84610e5c565b6001600160a01b0316145b80612bcb57508151612bcb9033610c3b565b905080612c355760405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610d07565b846001600160a01b031682600001516001600160a01b031614612ca95760405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f72726563746044820152651037bbb732b960d11b6064820152608401610d07565b6001600160a01b038416612d0d5760405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608401610d07565b612d1d6000848460000151612b1b565b6001600160a01b0385166000908152600460205260408120805460019290612d4f9084906001600160801b0316614652565b82546101009290920a6001600160801b038181021990931691831602179091556001600160a01b03861660009081526004602052604081208054600194509092612d9b918591166145dc565b82546001600160801b039182166101009390930a9283029190920219909116179055506040805180820182526001600160a01b0380871682526001600160401b03428116602080850191825260008981526003909152948520935184549151909216600160a01b026001600160e01b03199091169190921617179055612e22846001614607565b6000818152600360205260409020549091506001600160a01b0316612eb357612e4c816000541190565b15612eb35760408051808201825284516001600160a01b0390811682526020808701516001600160401b039081168285019081526000878152600390935294909120925183549451909116600160a01b026001600160e01b03199094169116179190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611462565b611614828260405180602001604052806000815250613668565b6000612f276008546001600160a01b031690565b6001600160a01b0316612f3a8484613942565b6001600160a01b0316149392505050565b60008282604051602001612f609291906141e6565b60405160208183030381529060405280519060200120905092915050565b6040805180820190915260008082526020820152612f9d826000541190565b612ffc5760405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e657869736044820152693a32b73a103a37b5b2b760b11b6064820152608401610d07565b60007f0000000000000000000000000000000000000000000000000000000000000014831061305d5761304f7f00000000000000000000000000000000000000000000000000000000000000148461467a565b61305a906001614607565b90505b825b8181106130c6576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b031691830191909152156130b357949350505050565b50806130be816146bd565b91505061305f565b5060405162461bcd60e51b815260206004820152602f60248201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560448201526e1037bbb732b91037b3103a37b5b2b760891b6064820152608401610d07565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000848484846040516020016131929493929190614218565b6040516020818303038152906040528051906020012090505b949350505050565b6002600e5414156131d65760405162461bcd60e51b8152600401610d0790614523565b6002600e55601854816131e860005490565b6131f29190614607565b11156132105760405162461bcd60e51b8152600401610d07906144bf565b600061321c8284614633565b90503481111561323e5760405162461bcd60e51b8152600401610d079061433a565b6132483383612ef9565b81601f600082825461325a9190614607565b9091555050336000908152602160205260408120805483929061327e908490614607565b909155505034811015611be3576000335b9050600061329d833461467a565b9050600080836001600160a01b03168360405160006040518083038185875af1925050503d80600081146132ed576040519150601f19603f3d011682016040523d82523d6000602084013e6132f2565b606091505b50915091508181906133175760405162461bcd60e51b8152600401610d079190614327565b505050505050506001600e5550565b600081831061333557816122e4565b5090919050565b6002600e54141561335f5760405162461bcd60e51b8152600401610d0790614523565b6002600e556018548261337160005490565b61337b9190614607565b11156133995760405162461bcd60e51b8152600401610d07906144bf565b60006133a483612287565b9050348111156133c65760405162461bcd60e51b8152600401610d079061433a565b6133d03384612ef9565b82601f60008282546133e29190614607565b90915550508115613416573360009081526020805260408120805483929061340b908490614607565b909155506134359050565b336000908152602160205260408120805483929061327e908490614607565b80341115611be35760003361328f565b60006001600160a01b0384163b1561354757604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906134899033908990889088906004016142f4565b602060405180830381600087803b1580156134a357600080fd5b505af19250505080156134d3575060408051601f3d908101601f191682019092526134d091810190614079565b60015b61352d573d808015613501576040519150601f19603f3d011682016040523d82523d6000602084013e613506565b606091505b5080516135255760405162461bcd60e51b8152600401610d0790614435565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506131ab565b5060016131ab565b6060816135735750506040805180820190915260018152600360fc1b602082015290565b8160005b811561359d57806135878161470f565b91506135969050600a8361461f565b9150613577565b6000816001600160401b038111156135c557634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156135ef576020820181803683370190505b5090505b84156131ab5761360460018361467a565b9150613611600a8661472a565b61361c906030614607565b60f81b81838151811061363f57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350613661600a8661461f565b94506135f3565b6000546001600160a01b0384166136cb5760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610d07565b6136d6816000541190565b156137235760405162461bcd60e51b815260206004820152601d60248201527f455243373231413a20746f6b656e20616c7265616479206d696e7465640000006044820152606401610d07565b7f000000000000000000000000000000000000000000000000000000000000001483111561379e5760405162461bcd60e51b815260206004820152602260248201527f455243373231413a207175616e7469747920746f206d696e7420746f6f2068696044820152610ced60f31b6064820152608401610d07565b6001600160a01b0384166000908152600460209081526040918290208251808401845290546001600160801b038082168352600160801b90910416918101919091528151808301909252805190919081906137fa9087906145dc565b6001600160801b0316815260200185836020015161381891906145dc565b6001600160801b039081169091526001600160a01b0380881660008181526004602090815260408083208751978301518716600160801b029790961696909617909455845180860186529182526001600160401b034281168386019081528883526003909552948120915182549451909516600160a01b026001600160e01b031990941694909216939093179190911790915582905b858110156139375760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46138fb6000888488613445565b6139175760405162461bcd60e51b8152600401610d0790614435565b816139218161470f565b925050808061392f9061470f565b9150506138ae565b506000819055611462565b60006122e48383600081516041141561397d5760208201516040830151606084015160001a613973868285856139ed565b9350505050610d7c565b8151604014156139a5576020820151604083015161399c858383613b96565b92505050610d7c565b60405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610d07565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0821115613a6a5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610d07565b8360ff16601b1480613a7f57508360ff16601c145b613ad65760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610d07565b6040805160008082526020820180845288905260ff871692820192909252606081018590526080810184905260019060a0016020604051602081039080840390855afa158015613b2a573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116613b8d5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610d07565b95945050505050565b60006001600160ff1b03821660ff83901c601b01613bb6868287856139ed565b9695505050505050565b828054613bcc906146d4565b90600052602060002090601f016020900481019282613bee5760008555613c34565b82601f10613c0757805160ff1916838001178555613c34565b82800160010185558215613c34579182015b82811115613c34578251825591602001919060010190613c19565b506117219291505b808211156117215760008155600101613c3c565b60006001600160401b0380841115613c6a57613c6a61476a565b604051601f8501601f19908116603f01168101908282118183101715613c9257613c9261476a565b81604052809350858152868686011115613cab57600080fd5b858560208301376000602087830101525050509392505050565b60008083601f840112613cd6578182fd5b5081356001600160401b03811115613cec578182fd5b6020830191508360208260051b8501011115613d0757600080fd5b9250929050565b80358015158114613d1e57600080fd5b919050565b600082601f830112613d33578081fd5b6122e483833560208501613c50565b803560038110613d1e57600080fd5b600060208284031215613d62578081fd5b81356122e481614780565b60008060408385031215613d7f578081fd5b8235613d8a81614780565b91506020830135613d9a81614780565b809150509250929050565b600080600060608486031215613db9578081fd5b8335613dc481614780565b92506020840135613dd481614780565b929592945050506040919091013590565b60008060008060808587031215613dfa578081fd5b8435613e0581614780565b93506020850135613e1581614780565b92506040850135915060608501356001600160401b03811115613e36578182fd5b613e4287828801613d23565b91505092959194509250565b60008060408385031215613e60578182fd5b8235613e6b81614780565b9150613e7960208401613d0e565b90509250929050565b60008060408385031215613e94578182fd5b8235613e9f81614780565b946020939093013593505050565b60008060008060408587031215613ec2578182fd5b84356001600160401b0380821115613ed8578384fd5b613ee488838901613cc5565b90965094506020870135915080821115613efc578384fd5b50613f0987828801613cc5565b95989497509550505050565b600060208284031215613f26578081fd5b6122e482613d0e565b60008060008060008060a08789031215613f47578384fd5b8635955060208701356001600160401b0380821115613f64578586fd5b818901915089601f830112613f77578586fd5b813581811115613f85578687fd5b8a6020828501011115613f96578687fd5b979a60209290920199509697604081013597506060810135965060800135945092505050565b600080600060608486031215613fd0578081fd5b8335925060208401356001600160401b03811115613fec578182fd5b613ff886828701613d23565b925050604084013590509250925092565b6000806000806080858703121561401e578182fd5b8435935060208501356001600160401b0381111561403a578283fd5b61404687828801613d23565b949794965050505060408301359260600135919050565b60006020828403121561406e578081fd5b81356122e481614795565b60006020828403121561408a578081fd5b81516122e481614795565b6000602082840312156140a6578081fd5b81356001600160401b038111156140bb578182fd5b8201601f810184136140cb578182fd5b6131ab84823560208401613c50565b60008082840360e08112156140ed578283fd5b60c08112156140fa578283fd5b506141036145b4565b8335815260208085013590820152604080850135908201526060808501359082015260808401356001600160f81b038116811461413e578384fd5b608082015261414f60a08501613d42565b60a08201529460c0939093013593505050565b600060208284031215614173578081fd5b5035919050565b6000806040838503121561418c578182fd5b823591506020830135613d9a81614780565b600081518084526141b6816020860160208601614691565b601f01601f19169290920160200192915050565b600081516141dc818560208601614691565b9290920192915050565b600083516141f8818460208801614691565b60609390931b6001600160601b0319169190920190815260140192915050565b6000855161422a818460208a01614691565b60609590951b6001600160601b031916919094019081526014810192909252603482015260540192915050565b600080845482600182811c91508083168061427357607f831692505b602080841082141561429357634e487b7160e01b87526022600452602487fd5b8180156142a757600181146142b8576142e4565b60ff198616895284890196506142e4565b60008b815260209020885b868110156142dc5781548b8201529085019083016142c3565b505084890196505b505050505050613b8d81856141ca565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613bb69083018461419e565b6020815260006122e4602083018461419e565b6020808252600f908201526e24b73b30b634b21030b6b7bab73a1760891b604082015260600190565b6020808252602d908201527f43616e206f6e6c79206d696e742061206d756c7469706c65206f66207468652060408201526c36b0bc2130ba31b429b4bd329760991b606082015260800190565b60208082526030908201527f5468652061646472657373206861736820646f6573206e6f74206d617463682060408201526f3a34329039b4b3b732b2103430b9b41760811b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526033908201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260408201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b606082015260800190565b6020808252601a908201527f596f752063616e6e6f74206d696e742074686973206d616e792e000000000000604082015260600190565b60208082526009908201526829b7b6321037baba1760b91b604082015260600190565b60208082526021908201527f5468697320686173682773207369676e617475726520697320696e76616c69646040820152601760f91b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b8681526020810186905260408101859052606081018490526001600160f81b038316608082015260c08101600383106145a357634e487b7160e01b600052602160045260246000fd5b8260a0830152979650505050505050565b60405160c081016001600160401b03811182821017156145d6576145d661476a565b60405290565b60006001600160801b038083168185168083038211156145fe576145fe61473e565b01949350505050565b6000821982111561461a5761461a61473e565b500190565b60008261462e5761462e614754565b500490565b600081600019048311821515161561464d5761464d61473e565b500290565b60006001600160801b03838116908316818110156146725761467261473e565b039392505050565b60008282101561468c5761468c61473e565b500390565b60005b838110156146ac578181015183820152602001614694565b83811115611d3a5750506000910152565b6000816146cc576146cc61473e565b506000190190565b600181811c908216806146e857607f821691505b6020821081141561470957634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156147235761472361473e565b5060010190565b60008261473957614739614754565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114612a8057600080fd5b6001600160e01b031981168114612a8057600080fdfea26469706673582212207148fb7a5932210db6bb8a91161c22f50124f3b901d26009f3e9b81ca8f09d7964736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000002200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005c300000000000000000000000000000000000000000000000000000000000000190000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000004802385b07e4301db3d5854819ff85c4d4fc47fc00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000002157696e646368696d65202d205365637265742047617264656e20426f757175657400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000957494e444348494d450000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : payees (address[]): 0x4802385b07e4301DB3d5854819ff85c4d4fC47fC
Arg [1] : shares (uint256[]): 100
Arg [2] : name (string): Windchime - Secret Garden Bouquet
Arg [3] : symbol (string): WINDCHIME
Arg [4] : _whitelistMaxMint (uint256): 0
Arg [5] : _publicListMaxMint (uint256): 0
Arg [6] : _nonReservedMax (uint256): 1475
Arg [7] : _reservedMax (uint256): 25
Arg [8] : _discountedPrice (uint256): 0
Arg [9] : _publicTotalMaxMint (uint256): 0
-----Encoded View---------------
19 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [2] : 00000000000000000000000000000000000000000000000000000000000001c0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000220
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [6] : 00000000000000000000000000000000000000000000000000000000000005c3
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000019
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [11] : 0000000000000000000000004802385b07e4301db3d5854819ff85c4d4fc47fc
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000064
Arg [14] : 0000000000000000000000000000000000000000000000000000000000000021
Arg [15] : 57696e646368696d65202d205365637265742047617264656e20426f75717565
Arg [16] : 7400000000000000000000000000000000000000000000000000000000000000
Arg [17] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [18] : 57494e444348494d450000000000000000000000000000000000000000000000
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.