Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
500 MIAMI NIGHTS
Holders
339
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 MIAMI NIGHTSLoading...
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 = "Sunday Journal Base Verification:"; string public prefixDiscounted = "Sunday Journal Discounted Verification:"; string private baseTokenURI = ''; 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, 5) 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 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 _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 mintReserved(uint256 quantity) external onlyOwner { require( totalSupply() + quantity <= reservedMax, "Sold out." ); if (quantity < maxBatchSize) { _safeMint(msg.sender, 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(msg.sender, 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":[],"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":"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"}],"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"}],"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":"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
6000808055600755610100604052602160a081815290620055af60c03980516200003291600f91602090910190620004ac565b50604051806060016040528060278152602001620055886027913980516200006391601091602090910190620004ac565b506040805160208101918290526000908190526200008491601191620004ac565b503480156200009257600080fd5b50604051620055d0380380620055d0833981016040819052620000b591620006e1565b6040805160c08101825260008152674563918244f400006020820152610384918101919091526706f05b59d3b2000060608201526009608082015260a08101600290526706f05b59d3b200008989600562000114565b60405180910390fd5b825162000129906001906020860190620004ac565b5081516200013f906002906020850190620004ac565b50608052506200015190503362000204565b6200015d828262000256565b50506001600e556014869055601585905560168390556200017f8385620008a4565b60175560006018819055601955601a82905560238190556040518a908a90620001a8906200053b565b620001b5929190620007d1565b604051809103906000f080158015620001d2573d6000803e3d6000fd5b50601b80546001600160a01b0319166001600160a01b0392909216919091179055506200091c98505050505050505050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6008546001600160a01b03163314620002b25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016200010b565b8082608001516001600160f81b0316836060015102836020015103146200032a5760405162461bcd60e51b815260206004820152602560248201527f4c696e656172447574636841756374696f6e3a20696e636f7272656374207265604482015264736572766560d81b60648201526084016200010b565b60008260a0015160028111156200035157634e487b7160e01b600052602160045260246000fd5b1415620003ad5760405162461bcd60e51b8152602060048201526024808201527f4c696e656172447574636841756374696f6e3a20756e737065636966696564206044820152631d5b9a5d60e21b60648201526084016200010b565b6000826040015111620004165760405162461bcd60e51b815260206004820152602a60248201527f4c696e656172447574636841756374696f6e3a207a65726f206465637265617360448201526919481a5b9d195c9d985b60b21b60648201526084016200010b565b815160099081556020830151600a556040830151600b556060830151600c556080830151600d80547fff00000000000000000000000000000000000000000000000000000000000000166001600160f81b03909216918217815560a0850151859392909190600160f81b836002811115620004a157634e487b7160e01b600052602160045260246000fd5b021790555050505050565b828054620004ba90620008c9565b90600052602060002090601f016020900481019282620004de576000855562000529565b82601f10620004f957805160ff191683800117855562000529565b8280016001018555821562000529579182015b82811115620005295782518255916020019190600101906200050c565b506200053792915062000549565b5090565b610b6a8062004a1e83390190565b5b808211156200053757600081556001016200054a565b600082601f83011262000571578081fd5b815160206200058a62000584836200087e565b6200084b565b80838252828201915082860187848660051b8901011115620005aa578586fd5b855b85811015620005df5781516001600160a01b0381168114620005cc578788fd5b84529284019290840190600101620005ac565b5090979650505050505050565b600082601f830112620005fd578081fd5b815160206200061062000584836200087e565b80838252828201915082860187848660051b890101111562000630578586fd5b855b85811015620005df5781518452928401929084019060010162000632565b600082601f83011262000661578081fd5b81516001600160401b038111156200067d576200067d62000906565b602062000693601f8301601f191682016200084b565b8281528582848701011115620006a7578384fd5b835b83811015620006c6578581018301518282018401528201620006a9565b83811115620006d757848385840101525b5095945050505050565b6000806000806000806000806000806101408b8d03121562000701578586fd5b8a516001600160401b038082111562000718578788fd5b620007268e838f0162000560565b9b5060208d01519150808211156200073c578788fd5b6200074a8e838f01620005ec565b9a5060408d015191508082111562000760578788fd5b6200076e8e838f0162000650565b995060608d015191508082111562000784578788fd5b50620007938d828e0162000650565b97505060808b0151955060a08b0151945060c08b0151935060e08b015192506101008b015191506101208b015190509295989b9194979a5092959850565b604080825283519082018190526000906020906060840190828701845b82811015620008155781516001600160a01b031684529284019290840190600101620007ee565b50505083810382850152845180825285830191830190845b81811015620005df578351835292840192918401916001016200082d565b604051601f8201601f191681016001600160401b038111828210171562000876576200087662000906565b604052919050565b60006001600160401b038211156200089a576200089a62000906565b5060051b60200190565b60008219821115620008c457634e487b7160e01b81526011600452602481fd5b500190565b600181811c90821680620008de57607f821691505b602082108114156200090057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b6080516140bc6200096260003960008181611cc701528181611cff01528181611d8e01528181611dc601528181612af601528181612b2001526131f001526140bc6000f3fe60806040526004361061040f5760003560e01c80637bd07f8b1161021e578063bcf161a211610123578063d73b2a6c116100ab578063e985e9c51161007a578063e985e9c514610b8c578063ea4194dc14610bd5578063efd0cbf914610bf5578063f2fde38b14610c08578063f4aa1b6714610c2857600080fd5b8063d73b2a6c14610b20578063d921eb7814610b36578063e0c5b0ed14610b4c578063e214696314610b6c57600080fd5b8063c85b380d116100f2578063c85b380d14610a92578063c878813414610ab2578063c87b56dd14610ac8578063d57e4eae14610ae8578063d7224ba014610b0a57600080fd5b8063bcf161a214610a25578063bcf754bf14610a3a578063c0c3714914610a5c578063c0fa501114610a7257600080fd5b8063a22cb465116101a6578063b27a87b011610175578063b27a87b0146109a9578063b413e61a146109bc578063b882bacb146109dd578063b88d4fde146109f0578063baffa90314610a1057600080fd5b8063a22cb46514610934578063a9501b7314610954578063ab55abf514610974578063b1b54e9a1461099457600080fd5b80638da5cb5b116101ed5780638da5cb5b146108ae5780638f3756c2146108cc5780639097548d146108df57806395d89b41146108ff5780639a5d140b1461091457600080fd5b80637bd07f8b14610815578063808d525914610863578063846b41931461087957806385cb593b1461088e57600080fd5b80632f745c5911610324578063571d34af116102ac57806370a082311161027b57806370a0823114610795578063715018a6146107b5578063722e141d146107ca57806375dadb32146107e0578063788183dd146107f557600080fd5b8063571d34af14610734578063590e1ae31461074a5780636352211e1461075f5780636ac5db191461077f57600080fd5b80634f297ccc116102f35780634f297ccc146106b65780634f6ccce7146106cc57806351b75115146106ec57806355700701146106ff57806355f804b31461071457600080fd5b80632f745c591461064157806339a2e6591461066157806339ae8c8f1461068157806342842e0e1461069657600080fd5b80630a23b725116103a75780631a11e20d116103765780631a11e20d146105b75780631fe9eabc146105cc57806320def2a4146105ec57806323aa0f9b1461060c57806323b872dd1461062157600080fd5b80630a23b7251461053f5780630e56a3c31461055557806318160ddd14610582578063191655871461059757600080fd5b8063057494a1116103e3578063057494a1146104a557806306fdde03146104c5578063081812fc146104e7578063095ea7b31461051f57600080fd5b8062ab1fa31461041457806301ffc9a714610436578063022a11b41461046b578063035fd8c21461048f575b600080fd5b34801561042057600080fd5b5061043461042f366004613ae8565b610c49565b005b34801561044257600080fd5b506104566104513660046139e3565b610c81565b60405190151581526020015b60405180910390f35b34801561047757600080fd5b50610481601e5481565b604051908152602001610462565b34801561049b57600080fd5b5061048160235481565b3480156104b157600080fd5b506104346104c0366004613928565b610cee565b3480156104d157600080fd5b506104da610d36565b6040516104629190613c4f565b3480156104f357600080fd5b50610507610502366004613ae8565b610dc8565b6040516001600160a01b039091168152602001610462565b34801561052b57600080fd5b5061043461053a3660046138fd565b610e53565b34801561054b57600080fd5b5061048160185481565b34801561056157600080fd5b5061056a610f6b565b6040516001600160401b039091168152602001610462565b34801561058e57600080fd5b50600054610481565b3480156105a357600080fd5b506104346105b23660046137cc565b610f9f565b3480156105c357600080fd5b5061056a611001565b3480156105d857600080fd5b506104346105e7366004613ae8565b61103b565b3480156105f857600080fd5b50610434610607366004613ae8565b61106a565b34801561061857600080fd5b50610481611099565b34801561062d57600080fd5b5061043461063c366004613820565b611126565b34801561064d57600080fd5b5061048161065c3660046138fd565b611131565b34801561066d57600080fd5b5061043461067c366004613ae8565b61129e565b34801561068d57600080fd5b506104816112cd565b3480156106a257600080fd5b506104346106b1366004613820565b61132e565b3480156106c257600080fd5b5061048160195481565b3480156106d857600080fd5b506104816106e7366004613ae8565b611349565b6104346106fa366004613942565b6113ab565b34801561070b57600080fd5b5061048161157b565b34801561072057600080fd5b5061043461072f366004613a1b565b6115fd565b34801561074057600080fd5b5061048160155481565b34801561075657600080fd5b5061043461163e565b34801561076b57600080fd5b5061050761077a366004613ae8565b611879565b34801561078b57600080fd5b5061048160175481565b3480156107a157600080fd5b506104816107b03660046137cc565b61188b565b3480156107c157600080fd5b5061043461191c565b3480156107d657600080fd5b5061048160145481565b3480156107ec57600080fd5b506104da611952565b34801561080157600080fd5b50610434610810366004613ae8565b6119e0565b34801561082157600080fd5b50600954600a54600b54600c54600d5461085194939291906001600160f81b03811690600160f81b900460ff1686565b60405161046296959493929190613e35565b34801561086f57600080fd5b50610481601d5481565b34801561088557600080fd5b50610481611a0f565b34801561089a57600080fd5b506104346108a9366004613a1b565b611abb565b3480156108ba57600080fd5b506008546001600160a01b0316610507565b6104346108da36600461398f565b611af8565b3480156108eb57600080fd5b506104816108fa366004613ae8565b611bf3565b34801561090b57600080fd5b506104da611c57565b34801561092057600080fd5b5061043461092f366004613ae8565b611c66565b34801561094057600080fd5b5061043461094f3660046138c9565b611dfc565b34801561096057600080fd5b5061043461096f366004613928565b611ec1565b34801561098057600080fd5b5061043461098f366004613928565b611f09565b3480156109a057600080fd5b5061056a611f51565b6104346109b7366004613942565b611f84565b3480156109c857600080fd5b50601b5461045690600160a81b900460ff1681565b6104346109eb366004613ae8565b612044565b3480156109fc57600080fd5b50610434610a0b366004613860565b612103565b348015610a1c57600080fd5b5061056a612136565b348015610a3157600080fd5b506104da612170565b348015610a4657600080fd5b5033600090815260136020526040902054610481565b348015610a6857600080fd5b5061048160245481565b348015610a7e57600080fd5b50610434610a8d366004613928565b61217d565b348015610a9e57600080fd5b50610434610aad366004613a60565b6121c5565b348015610abe57600080fd5b50610481601a5481565b348015610ad457600080fd5b506104da610ae3366004613ae8565b6123c9565b348015610af457600080fd5b5033600090815260126020526040902054610481565b348015610b1657600080fd5b5061048160075481565b348015610b2c57600080fd5b5061048160165481565b348015610b4257600080fd5b50610481601c5481565b348015610b5857600080fd5b50610434610b67366004613ae8565b6123fd565b348015610b7857600080fd5b50610434610b87366004613ae8565b61242c565b348015610b9857600080fd5b50610456610ba73660046137e8565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b348015610be157600080fd5b50610434610bf0366004613a1b565b61245b565b610434610c03366004613ae8565b612498565b348015610c1457600080fd5b50610434610c233660046137cc565b612575565b348015610c3457600080fd5b50601b5461045690600160a01b900460ff1681565b6008546001600160a01b03163314610c7c5760405162461bcd60e51b8152600401610c7390613cdb565b60405180910390fd5b601a55565b60006001600160e01b031982166380ac58cd60e01b1480610cb257506001600160e01b03198216635b5e139f60e01b145b80610ccd57506001600160e01b0319821663780e9d6360e01b145b80610ce857506301ffc9a760e01b6001600160e01b03198316145b92915050565b6008546001600160a01b03163314610d185760405162461bcd60e51b8152600401610c7390613cdb565b601b8054911515600160a01b0260ff60a01b19909216919091179055565b606060018054610d4590613faf565b80601f0160208091040260200160405190810160405280929190818152602001828054610d7190613faf565b8015610dbe5780601f10610d9357610100808354040283529160200191610dbe565b820191906000526020600020905b815481529060010190602001808311610da157829003601f168201915b5050505050905090565b6000610dd5826000541190565b610e375760405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201526c3c34b9ba32b73a103a37b5b2b760991b6064820152608401610c73565b506000908152600560205260409020546001600160a01b031690565b6000610e5e82611879565b9050806001600160a01b0316836001600160a01b03161415610ecd5760405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201526132b960f11b6064820152608401610c73565b336001600160a01b0382161480610ee95750610ee98133610ba7565b610f5b5760405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c000000000000006064820152608401610c73565b610f6683838361260d565b505050565b6008546000906001600160a01b03163314610f985760405162461bcd60e51b8152600401610c7390613cdb565b5061038490565b601b54604051631916558760e01b81526001600160a01b03838116600483015290911690631916558790602401600060405180830381600087803b158015610fe657600080fd5b505af1158015610ffa573d6000803e3d6000fd5b5050505050565b6008546000906001600160a01b0316331461102e5760405162461bcd60e51b8152600401610c7390613cdb565b506706f05b59d3b2000090565b6008546001600160a01b031633146110655760405162461bcd60e51b8152600401610c7390613cdb565b601755565b6008546001600160a01b031633146110945760405162461bcd60e51b8152600401610c7390613cdb565b602355565b601b54600090600160b81b900460ff1680156110df5750601d54336000908152602260205260409020546110cd9190613f0e565b33600090815260216020526040902054115b1561112057601d54336000908152602260205260409020546111019190613f0e565b3360009081526021602052604090205461111b9190613f55565b905090565b50600090565b610f66838383612669565b600061113c8361188b565b82106111955760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e604482015261647360f01b6064820152608401610c73565b600080549080805b8381101561123e576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b031691830191909152156111ef57805192505b876001600160a01b0316836001600160a01b0316141561122b578684141561121d57509350610ce892505050565b8361122781613fea565b9450505b508061123681613fea565b91505061119d565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201526d0deeedccae440c4f240d2dcc8caf60931b6064820152608401610c73565b6008546001600160a01b031633146112c85760405162461bcd60e51b8152600401610c7390613cdb565b601555565b601b54600090600160a01b900460ff1661131e5760405162461bcd60e51b81526020600482015260126024820152711c99599d5b99081b9bdd08185b1b1bddd95960721b6044820152606401610c73565b601d54601e5461111b9190613f0e565b610f6683838360405180602001604052806000815250612103565b6000805482106113a75760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f756044820152626e647360e81b6064820152608401610c73565b5090565b6113b583836129ef565b6113d15760405162461bcd60e51b8152600401610c7390613dbd565b82611466601080546113e290613faf565b80601f016020809104026020016040519081016040528092919081815260200182805461140e90613faf565b801561145b5780601f106114305761010080835404028352916020019161145b565b820191906000526020600020905b81548152906001019060200180831161143e57829003601f168201915b505050505033612a27565b146114835760405162461bcd60e51b8152600401610c7390613c8b565b601454336000908152601260205260409020546114a1908390613ee2565b11156114bf5760405162461bcd60e51b8152600401610c7390613d63565b3481601a546114ce9190613f0e565b146114eb5760405162461bcd60e51b8152600401610c7390613c62565b336000908152601260205260408120805483929061150a908490613ee2565b9091555050336000908152602260205260408120805483929061152e908490613ee2565b9250508190555080601e60008282546115479190613ee2565b9091555050336000908152602160205260408120805434929061156b908490613ee2565b90915550610f6690503382612a5a565b601b54600090600160a81b900460ff1680156115c15750601d54336000908152601360205260409020546115af9190613f0e565b336000908152601f6020526040902054115b1561112057601d54336000908152601360205260409020546115e39190613f0e565b336000908152601f602052604090205461111b9190613f55565b6008546001600160a01b031633146116275760405162461bcd60e51b8152600401610c7390613cdb565b805161163a906011906020840190613684565b5050565b6002600e5414156116615760405162461bcd60e51b8152600401610c7390613dfe565b6002600e55601b54600160a01b900460ff1615156001146116b95760405162461bcd60e51b81526020600482015260126024820152711c99599d5b99081b9bdd08185b1b1bddd95960721b6044820152606401610c73565b6000806116c461157b565b905080156116ff57336000908152601f602090815260408083208390556013909152902054601e5491925082916116fb9190613f55565b601e555b611707611a0f565b9050801561175a576117198183613ee2565b33600090815260208080526040808320839055602282528083205460129092529091205491935061174991613f55565b601e546117569190613f55565b601e555b611762611099565b905080156117a4576117748183613ee2565b3360009081526021602090815260408083208390556022909152902054601e549193506117a091613f55565b601e555b816117de5760405162461bcd60e51b815260206004820152600a6024820152696e6f20726566756e647360b01b6044820152606401610c73565b604051600090339084908381818185875af1925050503d8060008114611820576040519150601f19603f3d011682016040523d82523d6000602084013e611825565b606091505b509091505060018115151461186f5760405162461bcd60e51b815260206004820152601060248201526f19985a5b1959081d1bc81c99599d5b9960821b6044820152606401610c73565b50506001600e5550565b600061188482612a74565b5192915050565b60006001600160a01b0382166118f75760405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b6064820152608401610c73565b506001600160a01b03166000908152600460205260409020546001600160801b031690565b6008546001600160a01b031633146119465760405162461bcd60e51b8152600401610c7390613cdb565b6119506000612c1d565b565b600f805461195f90613faf565b80601f016020809104026020016040519081016040528092919081815260200182805461198b90613faf565b80156119d85780601f106119ad576101008083540402835291602001916119d8565b820191906000526020600020905b8154815290600101906020018083116119bb57829003601f168201915b505050505081565b6008546001600160a01b03163314611a0a5760405162461bcd60e51b8152600401610c7390613cdb565b601d55565b601b54600090600160b01b900460ff168015611a6a5750601d5433600090815260226020908152604080832054601290925290912054611a4f9190613f55565b611a599190613f0e565b336000908152602080526040902054115b1561112057601d5433600090815260226020908152604080832054601290925290912054611a989190613f55565b611aa29190613f0e565b33600090815260208052604090205461111b9190613f55565b6008546001600160a01b03163314611ae55760405162461bcd60e51b8152600401610c7390613cdb565b805161163a90600f906020840190613684565b611b0284846129ef565b611b1e5760405162461bcd60e51b8152600401610c7390613dbd565b604080513360601b6bffffffffffffffffffffffff191660208083019190915260348201859052605480830185905283518084039091018152607490920190925280519101208414611b825760405162461bcd60e51b8152600401610c7390613c8b565b60145433600090815260126020526040902054611ba0908390613ee2565b1115611bbe5760405162461bcd60e51b8152600401610c7390613d63565b3360009081526012602052604081208054839290611bdd908490613ee2565b90915550611bed90508282612c6f565b50505050565b600c54600b54600980546000939192611c2d91611c109042613f55565b611c1a9190613efa565b60048401546001600160f81b0316612de1565b611c379190613f0e565b8160010154611c469190613f55565b611c509084613f0e565b9392505050565b606060028054610d4590613faf565b6008546001600160a01b03163314611c905760405162461bcd60e51b8152600401610c7390613cdb565b60165481611c9d60005490565b611ca79190613ee2565b1115611cc55760405162461bcd60e51b8152600401610c7390613d9a565b7f0000000000000000000000000000000000000000000000000000000000000000811015611cfa57611cf73382612a5a565b50565b611d247f000000000000000000000000000000000000000000000000000000000000000082614005565b15611d875760405162461bcd60e51b815260206004820152602d60248201527f43616e206f6e6c79206d696e742061206d756c7469706c65206f66207468652060448201526c36b0bc2130ba31b429b4bd329760991b6064820152608401610c73565b6000611db37f000000000000000000000000000000000000000000000000000000000000000083613efa565b905060005b81811015610f6657611dea337f0000000000000000000000000000000000000000000000000000000000000000612a5a565b80611df481613fea565b915050611db8565b6001600160a01b038216331415611e555760405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c65720000000000006044820152606401610c73565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6008546001600160a01b03163314611eeb5760405162461bcd60e51b8152600401610c7390613cdb565b601b8054911515600160a81b0260ff60a81b19909216919091179055565b6008546001600160a01b03163314611f335760405162461bcd60e51b8152600401610c7390613cdb565b601b8054911515600160b01b0260ff60b01b19909216919091179055565b6008546000906001600160a01b03163314611f7e5760405162461bcd60e51b8152600401610c7390613cdb565b50600990565b611f8e83836129ef565b611faa5760405162461bcd60e51b8152600401610c7390613dbd565b82611fbb600f80546113e290613faf565b14611fd85760405162461bcd60e51b8152600401610c7390613c8b565b60145433600090815260126020526040902054611ff6908390613ee2565b11156120145760405162461bcd60e51b8152600401610c7390613d63565b3360009081526012602052604081208054839290612033908490613ee2565b90915550610f669050816000612df7565b6008546001600160a01b0316331461206e5760405162461bcd60e51b8152600401610c7390613cdb565b601b546040516000916001600160a01b03169083908381818185875af1925050503d80600081146120bb576040519150601f19603f3d011682016040523d82523d6000602084013e6120c0565b606091505b505090508061163a5760405162461bcd60e51b815260206004820152600f60248201526e1d1c985b9cd9995c8819985a5b1959608a1b6044820152606401610c73565b61210e848484612669565b61211a84848484612f00565b611bed5760405162461bcd60e51b8152600401610c7390613d10565b6008546000906001600160a01b031633146121635760405162461bcd60e51b8152600401610c7390613cdb565b50674563918244f4000090565b6010805461195f90613faf565b6008546001600160a01b031633146121a75760405162461bcd60e51b8152600401610c7390613cdb565b601b8054911515600160b81b0260ff60b81b19909216919091179055565b6008546001600160a01b031633146121ef5760405162461bcd60e51b8152600401610c7390613cdb565b8082608001516001600160f81b0316836060015102836020015103146122655760405162461bcd60e51b815260206004820152602560248201527f4c696e656172447574636841756374696f6e3a20696e636f7272656374207265604482015264736572766560d81b6064820152608401610c73565b60008260a00151600281111561228b57634e487b7160e01b600052602160045260246000fd5b14156122e55760405162461bcd60e51b8152602060048201526024808201527f4c696e656172447574636841756374696f6e3a20756e737065636966696564206044820152631d5b9a5d60e21b6064820152608401610c73565b600082604001511161234c5760405162461bcd60e51b815260206004820152602a60248201527f4c696e656172447574636841756374696f6e3a207a65726f206465637265617360448201526919481a5b9d195c9d985b60b21b6064820152608401610c73565b815160099081556020830151600a556040830151600b556060830151600c556080830151600d80546001600160f81b0319166001600160f81b03909216918217815560a0850151859392909190600160f81b8360028111156123be57634e487b7160e01b600052602160045260246000fd5b021790555050505050565b606060116123d68361300e565b6040516020016123e7929190613b7f565b6040516020818303038152906040529050919050565b6008546001600160a01b031633146124275760405162461bcd60e51b8152600401610c7390613cdb565b600955565b6008546001600160a01b031633146124565760405162461bcd60e51b8152600401610c7390613cdb565b601455565b6008546001600160a01b031633146124855760405162461bcd60e51b8152600401610c7390613cdb565b805161163a906010906020840190613684565b6015543360009081526012602090815260408083205460139092529091205483916124c291613ee2565b6124cc9190613ee2565b11156124ea5760405162461bcd60e51b8152600401610c7390613d63565b80602460008282546124fc9190613ee2565b909155505060235460245411156125455760405162461bcd60e51b815260206004820152600d60248201526c195e18d9595908185b5bdd5b9d609a1b6044820152606401610c73565b3360009081526013602052604081208054839290612564908490613ee2565b90915550611cf79050816001612df7565b6008546001600160a01b0316331461259f5760405162461bcd60e51b8152600401610c7390613cdb565b6001600160a01b0381166126045760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c73565b611cf781612c1d565b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061267482612a74565b80519091506000906001600160a01b0316336001600160a01b031614806126ab5750336126a084610dc8565b6001600160a01b0316145b806126bd575081516126bd9033610ba7565b9050806127275760405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610c73565b846001600160a01b031682600001516001600160a01b03161461279b5760405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f72726563746044820152651037bbb732b960d11b6064820152608401610c73565b6001600160a01b0384166127ff5760405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608401610c73565b61280f600084846000015161260d565b6001600160a01b03851660009081526004602052604081208054600192906128419084906001600160801b0316613f2d565b82546101009290920a6001600160801b038181021990931691831602179091556001600160a01b0386166000908152600460205260408120805460019450909261288d91859116613eb7565b82546001600160801b039182166101009390930a9283029190920219909116179055506040805180820182526001600160a01b0380871682526001600160401b03428116602080850191825260008981526003909152948520935184549151909216600160a01b026001600160e01b03199091169190921617179055612914846001613ee2565b6000818152600360205260409020549091506001600160a01b03166129a55761293e816000541190565b156129a55760408051808201825284516001600160a01b0390811682526020808701516001600160401b039081168285019081526000878152600390935294909120925183549451909116600160a01b026001600160e01b03199094169116179190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b6000612a036008546001600160a01b031690565b6001600160a01b0316612a168484613127565b6001600160a01b0316149392505050565b60008282604051602001612a3c929190613b48565b60405160208183030381529060405280519060200120905092915050565b61163a828260405180602001604052806000815250613133565b6040805180820190915260008082526020820152612a93826000541190565b612af25760405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e657869736044820152693a32b73a103a37b5b2b760b11b6064820152608401610c73565b60007f00000000000000000000000000000000000000000000000000000000000000008310612b5357612b457f000000000000000000000000000000000000000000000000000000000000000084613f55565b612b50906001613ee2565b90505b825b818110612bbc576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b03169183019190915215612ba957949350505050565b5080612bb481613f98565b915050612b55565b5060405162461bcd60e51b815260206004820152602f60248201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560448201526e1037bbb732b91037b3103a37b5b2b760891b6064820152608401610c73565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6002600e541415612c925760405162461bcd60e51b8152600401610c7390613dfe565b6002600e5560175481612ca460005490565b612cae9190613ee2565b1115612ccc5760405162461bcd60e51b8152600401610c7390613d9a565b6000612cd88284613f0e565b905034811115612cfa5760405162461bcd60e51b8152600401610c7390613c62565b612d043383612a5a565b81601e6000828254612d169190613ee2565b909155505033600090815260208052604081208054839290612d39908490613ee2565b90915550503481101561186f576000335b90506000612d588334613f55565b9050600080836001600160a01b03168360405160006040518083038185875af1925050503d8060008114612da8576040519150601f19603f3d011682016040523d82523d6000602084013e612dad565b606091505b5091509150818190612dd25760405162461bcd60e51b8152600401610c739190613c4f565b505050505050506001600e5550565b6000818310612df05781611c50565b5090919050565b6002600e541415612e1a5760405162461bcd60e51b8152600401610c7390613dfe565b6002600e5560175482612e2c60005490565b612e369190613ee2565b1115612e545760405162461bcd60e51b8152600401610c7390613d9a565b6000612e5f83611bf3565b905034811115612e815760405162461bcd60e51b8152600401610c7390613c62565b612e8b3384612a5a565b82601e6000828254612e9d9190613ee2565b90915550508115612ed257336000908152601f602052604081208054839290612ec7908490613ee2565b90915550612ef09050565b33600090815260208052604081208054839290612d39908490613ee2565b8034111561186f57600033612d4a565b60006001600160a01b0384163b1561300257604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612f44903390899088908890600401613c1c565b602060405180830381600087803b158015612f5e57600080fd5b505af1925050508015612f8e575060408051601f3d908101601f19168201909252612f8b918101906139ff565b60015b612fe8573d808015612fbc576040519150601f19603f3d011682016040523d82523d6000602084013e612fc1565b606091505b508051612fe05760405162461bcd60e51b8152600401610c7390613d10565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050613006565b5060015b949350505050565b6060816130325750506040805180820190915260018152600360fc1b602082015290565b8160005b811561305c578061304681613fea565b91506130559050600a83613efa565b9150613036565b6000816001600160401b0381111561308457634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156130ae576020820181803683370190505b5090505b8415613006576130c3600183613f55565b91506130d0600a86614005565b6130db906030613ee2565b60f81b8183815181106130fe57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350613120600a86613efa565b94506130b2565b6000611c50838361340d565b6000546001600160a01b0384166131965760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610c73565b6131a1816000541190565b156131ee5760405162461bcd60e51b815260206004820152601d60248201527f455243373231413a20746f6b656e20616c7265616479206d696e7465640000006044820152606401610c73565b7f00000000000000000000000000000000000000000000000000000000000000008311156132695760405162461bcd60e51b815260206004820152602260248201527f455243373231413a207175616e7469747920746f206d696e7420746f6f2068696044820152610ced60f31b6064820152608401610c73565b6001600160a01b0384166000908152600460209081526040918290208251808401845290546001600160801b038082168352600160801b90910416918101919091528151808301909252805190919081906132c5908790613eb7565b6001600160801b031681526020018583602001516132e39190613eb7565b6001600160801b039081169091526001600160a01b0380881660008181526004602090815260408083208751978301518716600160801b029790961696909617909455845180860186529182526001600160401b034281168386019081528883526003909552948120915182549451909516600160a01b026001600160e01b031990941694909216939093179190911790915582905b858110156134025760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46133c66000888488612f00565b6133e25760405162461bcd60e51b8152600401610c7390613d10565b816133ec81613fea565b92505080806133fa90613fea565b915050613379565b5060008190556129e7565b60008151604114156134415760208201516040830151606084015160001a613437868285856134b1565b9350505050610ce8565b815160401415613469576020820151604083015161346085838361365a565b92505050610ce8565b60405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610c73565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a082111561352e5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610c73565b8360ff16601b148061354357508360ff16601c145b61359a5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610c73565b6040805160008082526020820180845288905260ff871692820192909252606081018590526080810184905260019060a0016020604051602081039080840390855afa1580156135ee573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166136515760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610c73565b95945050505050565b60006001600160ff1b03821660ff83901c601b0161367a868287856134b1565b9695505050505050565b82805461369090613faf565b90600052602060002090601f0160209004810192826136b257600085556136f8565b82601f106136cb57805160ff19168380011785556136f8565b828001600101855582156136f8579182015b828111156136f85782518255916020019190600101906136dd565b506113a79291505b808211156113a75760008155600101613700565b60006001600160401b038084111561372e5761372e614045565b604051601f8501601f19908116603f0116810190828211818310171561375657613756614045565b8160405280935085815286868601111561376f57600080fd5b858560208301376000602087830101525050509392505050565b8035801515811461379957600080fd5b919050565b600082601f8301126137ae578081fd5b611c5083833560208501613714565b80356003811061379957600080fd5b6000602082840312156137dd578081fd5b8135611c508161405b565b600080604083850312156137fa578081fd5b82356138058161405b565b915060208301356138158161405b565b809150509250929050565b600080600060608486031215613834578081fd5b833561383f8161405b565b9250602084013561384f8161405b565b929592945050506040919091013590565b60008060008060808587031215613875578081fd5b84356138808161405b565b935060208501356138908161405b565b92506040850135915060608501356001600160401b038111156138b1578182fd5b6138bd8782880161379e565b91505092959194509250565b600080604083850312156138db578182fd5b82356138e68161405b565b91506138f460208401613789565b90509250929050565b6000806040838503121561390f578182fd5b823561391a8161405b565b946020939093013593505050565b600060208284031215613939578081fd5b611c5082613789565b600080600060608486031215613956578283fd5b8335925060208401356001600160401b03811115613972578283fd5b61397e8682870161379e565b925050604084013590509250925092565b600080600080608085870312156139a4578182fd5b8435935060208501356001600160401b038111156139c0578283fd5b6139cc8782880161379e565b949794965050505060408301359260600135919050565b6000602082840312156139f4578081fd5b8135611c5081614070565b600060208284031215613a10578081fd5b8151611c5081614070565b600060208284031215613a2c578081fd5b81356001600160401b03811115613a41578182fd5b8201601f81018413613a51578182fd5b61300684823560208401613714565b60008082840360e0811215613a73578283fd5b60c0811215613a80578283fd5b50613a89613e8f565b8335815260208085013590820152604080850135908201526060808501359082015260808401356001600160f81b0381168114613ac4578384fd5b6080820152613ad560a085016137bd565b60a08201529460c0939093013593505050565b600060208284031215613af9578081fd5b5035919050565b60008151808452613b18816020860160208601613f6c565b601f01601f19169290920160200192915050565b60008151613b3e818560208601613f6c565b9290920192915050565b60008351613b5a818460208801613f6c565b60609390931b6bffffffffffffffffffffffff19169190920190815260140192915050565b600080845482600182811c915080831680613b9b57607f831692505b6020808410821415613bbb57634e487b7160e01b87526022600452602487fd5b818015613bcf5760018114613be057613c0c565b60ff19861689528489019650613c0c565b60008b815260209020885b86811015613c045781548b820152908501908301613beb565b505084890196505b5050505050506136518185613b2c565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061367a90830184613b00565b602081526000611c506020830184613b00565b6020808252600f908201526e24b73b30b634b21030b6b7bab73a1760891b604082015260600190565b60208082526030908201527f5468652061646472657373206861736820646f6573206e6f74206d617463682060408201526f3a34329039b4b3b732b2103430b9b41760811b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526033908201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260408201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b606082015260800190565b6020808252601a908201527f596f752063616e6e6f74206d696e742074686973206d616e792e000000000000604082015260600190565b60208082526009908201526829b7b6321037baba1760b91b604082015260600190565b60208082526021908201527f5468697320686173682773207369676e617475726520697320696e76616c69646040820152601760f91b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b8681526020810186905260408101859052606081018490526001600160f81b038316608082015260c0810160038310613e7e57634e487b7160e01b600052602160045260246000fd5b8260a0830152979650505050505050565b60405160c081016001600160401b0381118282101715613eb157613eb1614045565b60405290565b60006001600160801b03808316818516808303821115613ed957613ed9614019565b01949350505050565b60008219821115613ef557613ef5614019565b500190565b600082613f0957613f0961402f565b500490565b6000816000190483118215151615613f2857613f28614019565b500290565b60006001600160801b0383811690831681811015613f4d57613f4d614019565b039392505050565b600082821015613f6757613f67614019565b500390565b60005b83811015613f87578181015183820152602001613f6f565b83811115611bed5750506000910152565b600081613fa757613fa7614019565b506000190190565b600181811c90821680613fc357607f821691505b60208210811415613fe457634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415613ffe57613ffe614019565b5060010190565b6000826140145761401461402f565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114611cf757600080fd5b6001600160e01b031981168114611cf757600080fdfea26469706673582212202ee158d54a46acbbc76e696a8d34ca1f3385220e0a782ea0a67089b44ec1defd64736f6c63430008040033608060405260405162000b6a38038062000b6a8339810160408190526200002691620003db565b8051825114620000985760405162461bcd60e51b815260206004820152603260248201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726044820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b60648201526084015b60405180910390fd5b6000825111620000eb5760405162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f2070617965657300000000000060448201526064016200008f565b60005b82518110156200016f576200015a8382815181106200011d57634e487b7160e01b600052603260045260246000fd5b60200260200101518383815181106200014657634e487b7160e01b600052603260045260246000fd5b60200260200101516200017860201b60201c565b8062000166816200052c565b915050620000ee565b50505062000576565b6001600160a01b038216620001e55760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b60648201526084016200008f565b60008111620002375760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a2073686172657320617265203000000060448201526064016200008f565b6001600160a01b03821660009081526002602052604090205415620002b35760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b60648201526084016200008f565b60048054600181019091557f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0180546001600160a01b0319166001600160a01b0384169081179091556000908152600260205260408120829055546200031b90829062000511565b600055604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b600082601f83011262000375578081fd5b815160206200038e6200038883620004eb565b620004b8565b80838252828201915082860187848660051b8901011115620003ae578586fd5b855b85811015620003ce57815184529284019290840190600101620003b0565b5090979650505050505050565b60008060408385031215620003ee578182fd5b82516001600160401b038082111562000405578384fd5b818501915085601f83011262000419578384fd5b815160206200042c6200038883620004eb565b8083825282820191508286018a848660051b89010111156200044c578889fd5b8896505b84871015620004855780516001600160a01b03811681146200047057898afd5b83526001969096019591830191830162000450565b50918801519196509093505050808211156200049f578283fd5b50620004ae8582860162000364565b9150509250929050565b604051601f8201601f191681016001600160401b0381118282101715620004e357620004e362000560565b604052919050565b60006001600160401b0382111562000507576200050762000560565b5060051b60200190565b600082198211156200052757620005276200054a565b500190565b60006000198214156200054357620005436200054a565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6105e480620005866000396000f3fe6080604052600436106100595760003560e01c806319165587146100a75780633a98ef39146100c95780638b83209b146100ed5780639852595c14610125578063ce7c2ac21461015b578063e33b7de31461019157600080fd5b366100a2577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b3480156100b357600080fd5b506100c76100c23660046104d7565b6101a6565b005b3480156100d557600080fd5b506000545b6040519081526020015b60405180910390f35b3480156100f957600080fd5b5061010d6101083660046104fa565b61037b565b6040516001600160a01b0390911681526020016100e4565b34801561013157600080fd5b506100da6101403660046104d7565b6001600160a01b031660009081526003602052604090205490565b34801561016757600080fd5b506100da6101763660046104d7565b6001600160a01b031660009081526002602052604090205490565b34801561019d57600080fd5b506001546100da565b6001600160a01b03811660009081526002602052604090205461021f5760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201526573686172657360d01b60648201526084015b60405180910390fd5b60006001544761022f9190610512565b6001600160a01b03831660009081526003602090815260408083205483546002909352908320549394509192610265908561054a565b61026f919061052a565b6102799190610569565b9050806102dc5760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201526a191d59481c185e5b595b9d60aa1b6064820152608401610216565b6001600160a01b038316600090815260036020526040902054610300908290610512565b6001600160a01b038416600090815260036020526040902055600154610327908290610512565b60015561033483826103b9565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b60006004828154811061039e57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031692915050565b804710156104095760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610216565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610456576040519150601f19603f3d011682016040523d82523d6000602084013e61045b565b606091505b50509050806104d25760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610216565b505050565b6000602082840312156104e8578081fd5b81356104f381610596565b9392505050565b60006020828403121561050b578081fd5b5035919050565b6000821982111561052557610525610580565b500190565b60008261054557634e487b7160e01b81526012600452602481fd5b500490565b600081600019048311821515161561056457610564610580565b500290565b60008282101561057b5761057b610580565b500390565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b03811681146105ab57600080fd5b5056fea2646970667358221220c96491603802a35d8468b85d1304c5db15afa93e123878731b5049f1e77eb80d64736f6c6343000804003353756e646179204a6f75726e616c20446973636f756e74656420566572696669636174696f6e3a53756e646179204a6f75726e616c204261736520566572696669636174696f6e3a000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000028000000000000000000000000000000000000000000000000000000000000002e00000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000eb000000000000000000000000000000000000000000000000000000000000000f00000000000000000000000000000000000000000000000000b1a2bc2ec50000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000004802385b07e4301db3d5854819ff85c4d4fc47fc00000000000000000000000021cd311f20e831c03f2e26829507c6634420228f000000000000000000000000df22324de0dff7b9c085828e259e821696a46381000000000000000000000000bd16b906bed613cfb1cb9d72a65e7c717e75df390000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000014d0000000000000000000000000000000000000000000000000000000000000085000000000000000000000000000000000000000000000000000000000000010b000000000000000000000000000000000000000000000000000000000000010b00000000000000000000000000000000000000000000000000000000000000244d69616d69204e6967687473202d205365637265742047617264656e20426f757175657400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c4d49414d49204e49474854530000000000000000000000000000000000000000
Deployed Bytecode
0x60806040526004361061040f5760003560e01c80637bd07f8b1161021e578063bcf161a211610123578063d73b2a6c116100ab578063e985e9c51161007a578063e985e9c514610b8c578063ea4194dc14610bd5578063efd0cbf914610bf5578063f2fde38b14610c08578063f4aa1b6714610c2857600080fd5b8063d73b2a6c14610b20578063d921eb7814610b36578063e0c5b0ed14610b4c578063e214696314610b6c57600080fd5b8063c85b380d116100f2578063c85b380d14610a92578063c878813414610ab2578063c87b56dd14610ac8578063d57e4eae14610ae8578063d7224ba014610b0a57600080fd5b8063bcf161a214610a25578063bcf754bf14610a3a578063c0c3714914610a5c578063c0fa501114610a7257600080fd5b8063a22cb465116101a6578063b27a87b011610175578063b27a87b0146109a9578063b413e61a146109bc578063b882bacb146109dd578063b88d4fde146109f0578063baffa90314610a1057600080fd5b8063a22cb46514610934578063a9501b7314610954578063ab55abf514610974578063b1b54e9a1461099457600080fd5b80638da5cb5b116101ed5780638da5cb5b146108ae5780638f3756c2146108cc5780639097548d146108df57806395d89b41146108ff5780639a5d140b1461091457600080fd5b80637bd07f8b14610815578063808d525914610863578063846b41931461087957806385cb593b1461088e57600080fd5b80632f745c5911610324578063571d34af116102ac57806370a082311161027b57806370a0823114610795578063715018a6146107b5578063722e141d146107ca57806375dadb32146107e0578063788183dd146107f557600080fd5b8063571d34af14610734578063590e1ae31461074a5780636352211e1461075f5780636ac5db191461077f57600080fd5b80634f297ccc116102f35780634f297ccc146106b65780634f6ccce7146106cc57806351b75115146106ec57806355700701146106ff57806355f804b31461071457600080fd5b80632f745c591461064157806339a2e6591461066157806339ae8c8f1461068157806342842e0e1461069657600080fd5b80630a23b725116103a75780631a11e20d116103765780631a11e20d146105b75780631fe9eabc146105cc57806320def2a4146105ec57806323aa0f9b1461060c57806323b872dd1461062157600080fd5b80630a23b7251461053f5780630e56a3c31461055557806318160ddd14610582578063191655871461059757600080fd5b8063057494a1116103e3578063057494a1146104a557806306fdde03146104c5578063081812fc146104e7578063095ea7b31461051f57600080fd5b8062ab1fa31461041457806301ffc9a714610436578063022a11b41461046b578063035fd8c21461048f575b600080fd5b34801561042057600080fd5b5061043461042f366004613ae8565b610c49565b005b34801561044257600080fd5b506104566104513660046139e3565b610c81565b60405190151581526020015b60405180910390f35b34801561047757600080fd5b50610481601e5481565b604051908152602001610462565b34801561049b57600080fd5b5061048160235481565b3480156104b157600080fd5b506104346104c0366004613928565b610cee565b3480156104d157600080fd5b506104da610d36565b6040516104629190613c4f565b3480156104f357600080fd5b50610507610502366004613ae8565b610dc8565b6040516001600160a01b039091168152602001610462565b34801561052b57600080fd5b5061043461053a3660046138fd565b610e53565b34801561054b57600080fd5b5061048160185481565b34801561056157600080fd5b5061056a610f6b565b6040516001600160401b039091168152602001610462565b34801561058e57600080fd5b50600054610481565b3480156105a357600080fd5b506104346105b23660046137cc565b610f9f565b3480156105c357600080fd5b5061056a611001565b3480156105d857600080fd5b506104346105e7366004613ae8565b61103b565b3480156105f857600080fd5b50610434610607366004613ae8565b61106a565b34801561061857600080fd5b50610481611099565b34801561062d57600080fd5b5061043461063c366004613820565b611126565b34801561064d57600080fd5b5061048161065c3660046138fd565b611131565b34801561066d57600080fd5b5061043461067c366004613ae8565b61129e565b34801561068d57600080fd5b506104816112cd565b3480156106a257600080fd5b506104346106b1366004613820565b61132e565b3480156106c257600080fd5b5061048160195481565b3480156106d857600080fd5b506104816106e7366004613ae8565b611349565b6104346106fa366004613942565b6113ab565b34801561070b57600080fd5b5061048161157b565b34801561072057600080fd5b5061043461072f366004613a1b565b6115fd565b34801561074057600080fd5b5061048160155481565b34801561075657600080fd5b5061043461163e565b34801561076b57600080fd5b5061050761077a366004613ae8565b611879565b34801561078b57600080fd5b5061048160175481565b3480156107a157600080fd5b506104816107b03660046137cc565b61188b565b3480156107c157600080fd5b5061043461191c565b3480156107d657600080fd5b5061048160145481565b3480156107ec57600080fd5b506104da611952565b34801561080157600080fd5b50610434610810366004613ae8565b6119e0565b34801561082157600080fd5b50600954600a54600b54600c54600d5461085194939291906001600160f81b03811690600160f81b900460ff1686565b60405161046296959493929190613e35565b34801561086f57600080fd5b50610481601d5481565b34801561088557600080fd5b50610481611a0f565b34801561089a57600080fd5b506104346108a9366004613a1b565b611abb565b3480156108ba57600080fd5b506008546001600160a01b0316610507565b6104346108da36600461398f565b611af8565b3480156108eb57600080fd5b506104816108fa366004613ae8565b611bf3565b34801561090b57600080fd5b506104da611c57565b34801561092057600080fd5b5061043461092f366004613ae8565b611c66565b34801561094057600080fd5b5061043461094f3660046138c9565b611dfc565b34801561096057600080fd5b5061043461096f366004613928565b611ec1565b34801561098057600080fd5b5061043461098f366004613928565b611f09565b3480156109a057600080fd5b5061056a611f51565b6104346109b7366004613942565b611f84565b3480156109c857600080fd5b50601b5461045690600160a81b900460ff1681565b6104346109eb366004613ae8565b612044565b3480156109fc57600080fd5b50610434610a0b366004613860565b612103565b348015610a1c57600080fd5b5061056a612136565b348015610a3157600080fd5b506104da612170565b348015610a4657600080fd5b5033600090815260136020526040902054610481565b348015610a6857600080fd5b5061048160245481565b348015610a7e57600080fd5b50610434610a8d366004613928565b61217d565b348015610a9e57600080fd5b50610434610aad366004613a60565b6121c5565b348015610abe57600080fd5b50610481601a5481565b348015610ad457600080fd5b506104da610ae3366004613ae8565b6123c9565b348015610af457600080fd5b5033600090815260126020526040902054610481565b348015610b1657600080fd5b5061048160075481565b348015610b2c57600080fd5b5061048160165481565b348015610b4257600080fd5b50610481601c5481565b348015610b5857600080fd5b50610434610b67366004613ae8565b6123fd565b348015610b7857600080fd5b50610434610b87366004613ae8565b61242c565b348015610b9857600080fd5b50610456610ba73660046137e8565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b348015610be157600080fd5b50610434610bf0366004613a1b565b61245b565b610434610c03366004613ae8565b612498565b348015610c1457600080fd5b50610434610c233660046137cc565b612575565b348015610c3457600080fd5b50601b5461045690600160a01b900460ff1681565b6008546001600160a01b03163314610c7c5760405162461bcd60e51b8152600401610c7390613cdb565b60405180910390fd5b601a55565b60006001600160e01b031982166380ac58cd60e01b1480610cb257506001600160e01b03198216635b5e139f60e01b145b80610ccd57506001600160e01b0319821663780e9d6360e01b145b80610ce857506301ffc9a760e01b6001600160e01b03198316145b92915050565b6008546001600160a01b03163314610d185760405162461bcd60e51b8152600401610c7390613cdb565b601b8054911515600160a01b0260ff60a01b19909216919091179055565b606060018054610d4590613faf565b80601f0160208091040260200160405190810160405280929190818152602001828054610d7190613faf565b8015610dbe5780601f10610d9357610100808354040283529160200191610dbe565b820191906000526020600020905b815481529060010190602001808311610da157829003601f168201915b5050505050905090565b6000610dd5826000541190565b610e375760405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201526c3c34b9ba32b73a103a37b5b2b760991b6064820152608401610c73565b506000908152600560205260409020546001600160a01b031690565b6000610e5e82611879565b9050806001600160a01b0316836001600160a01b03161415610ecd5760405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201526132b960f11b6064820152608401610c73565b336001600160a01b0382161480610ee95750610ee98133610ba7565b610f5b5760405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c000000000000006064820152608401610c73565b610f6683838361260d565b505050565b6008546000906001600160a01b03163314610f985760405162461bcd60e51b8152600401610c7390613cdb565b5061038490565b601b54604051631916558760e01b81526001600160a01b03838116600483015290911690631916558790602401600060405180830381600087803b158015610fe657600080fd5b505af1158015610ffa573d6000803e3d6000fd5b5050505050565b6008546000906001600160a01b0316331461102e5760405162461bcd60e51b8152600401610c7390613cdb565b506706f05b59d3b2000090565b6008546001600160a01b031633146110655760405162461bcd60e51b8152600401610c7390613cdb565b601755565b6008546001600160a01b031633146110945760405162461bcd60e51b8152600401610c7390613cdb565b602355565b601b54600090600160b81b900460ff1680156110df5750601d54336000908152602260205260409020546110cd9190613f0e565b33600090815260216020526040902054115b1561112057601d54336000908152602260205260409020546111019190613f0e565b3360009081526021602052604090205461111b9190613f55565b905090565b50600090565b610f66838383612669565b600061113c8361188b565b82106111955760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e604482015261647360f01b6064820152608401610c73565b600080549080805b8381101561123e576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b031691830191909152156111ef57805192505b876001600160a01b0316836001600160a01b0316141561122b578684141561121d57509350610ce892505050565b8361122781613fea565b9450505b508061123681613fea565b91505061119d565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201526d0deeedccae440c4f240d2dcc8caf60931b6064820152608401610c73565b6008546001600160a01b031633146112c85760405162461bcd60e51b8152600401610c7390613cdb565b601555565b601b54600090600160a01b900460ff1661131e5760405162461bcd60e51b81526020600482015260126024820152711c99599d5b99081b9bdd08185b1b1bddd95960721b6044820152606401610c73565b601d54601e5461111b9190613f0e565b610f6683838360405180602001604052806000815250612103565b6000805482106113a75760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f756044820152626e647360e81b6064820152608401610c73565b5090565b6113b583836129ef565b6113d15760405162461bcd60e51b8152600401610c7390613dbd565b82611466601080546113e290613faf565b80601f016020809104026020016040519081016040528092919081815260200182805461140e90613faf565b801561145b5780601f106114305761010080835404028352916020019161145b565b820191906000526020600020905b81548152906001019060200180831161143e57829003601f168201915b505050505033612a27565b146114835760405162461bcd60e51b8152600401610c7390613c8b565b601454336000908152601260205260409020546114a1908390613ee2565b11156114bf5760405162461bcd60e51b8152600401610c7390613d63565b3481601a546114ce9190613f0e565b146114eb5760405162461bcd60e51b8152600401610c7390613c62565b336000908152601260205260408120805483929061150a908490613ee2565b9091555050336000908152602260205260408120805483929061152e908490613ee2565b9250508190555080601e60008282546115479190613ee2565b9091555050336000908152602160205260408120805434929061156b908490613ee2565b90915550610f6690503382612a5a565b601b54600090600160a81b900460ff1680156115c15750601d54336000908152601360205260409020546115af9190613f0e565b336000908152601f6020526040902054115b1561112057601d54336000908152601360205260409020546115e39190613f0e565b336000908152601f602052604090205461111b9190613f55565b6008546001600160a01b031633146116275760405162461bcd60e51b8152600401610c7390613cdb565b805161163a906011906020840190613684565b5050565b6002600e5414156116615760405162461bcd60e51b8152600401610c7390613dfe565b6002600e55601b54600160a01b900460ff1615156001146116b95760405162461bcd60e51b81526020600482015260126024820152711c99599d5b99081b9bdd08185b1b1bddd95960721b6044820152606401610c73565b6000806116c461157b565b905080156116ff57336000908152601f602090815260408083208390556013909152902054601e5491925082916116fb9190613f55565b601e555b611707611a0f565b9050801561175a576117198183613ee2565b33600090815260208080526040808320839055602282528083205460129092529091205491935061174991613f55565b601e546117569190613f55565b601e555b611762611099565b905080156117a4576117748183613ee2565b3360009081526021602090815260408083208390556022909152902054601e549193506117a091613f55565b601e555b816117de5760405162461bcd60e51b815260206004820152600a6024820152696e6f20726566756e647360b01b6044820152606401610c73565b604051600090339084908381818185875af1925050503d8060008114611820576040519150601f19603f3d011682016040523d82523d6000602084013e611825565b606091505b509091505060018115151461186f5760405162461bcd60e51b815260206004820152601060248201526f19985a5b1959081d1bc81c99599d5b9960821b6044820152606401610c73565b50506001600e5550565b600061188482612a74565b5192915050565b60006001600160a01b0382166118f75760405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b6064820152608401610c73565b506001600160a01b03166000908152600460205260409020546001600160801b031690565b6008546001600160a01b031633146119465760405162461bcd60e51b8152600401610c7390613cdb565b6119506000612c1d565b565b600f805461195f90613faf565b80601f016020809104026020016040519081016040528092919081815260200182805461198b90613faf565b80156119d85780601f106119ad576101008083540402835291602001916119d8565b820191906000526020600020905b8154815290600101906020018083116119bb57829003601f168201915b505050505081565b6008546001600160a01b03163314611a0a5760405162461bcd60e51b8152600401610c7390613cdb565b601d55565b601b54600090600160b01b900460ff168015611a6a5750601d5433600090815260226020908152604080832054601290925290912054611a4f9190613f55565b611a599190613f0e565b336000908152602080526040902054115b1561112057601d5433600090815260226020908152604080832054601290925290912054611a989190613f55565b611aa29190613f0e565b33600090815260208052604090205461111b9190613f55565b6008546001600160a01b03163314611ae55760405162461bcd60e51b8152600401610c7390613cdb565b805161163a90600f906020840190613684565b611b0284846129ef565b611b1e5760405162461bcd60e51b8152600401610c7390613dbd565b604080513360601b6bffffffffffffffffffffffff191660208083019190915260348201859052605480830185905283518084039091018152607490920190925280519101208414611b825760405162461bcd60e51b8152600401610c7390613c8b565b60145433600090815260126020526040902054611ba0908390613ee2565b1115611bbe5760405162461bcd60e51b8152600401610c7390613d63565b3360009081526012602052604081208054839290611bdd908490613ee2565b90915550611bed90508282612c6f565b50505050565b600c54600b54600980546000939192611c2d91611c109042613f55565b611c1a9190613efa565b60048401546001600160f81b0316612de1565b611c379190613f0e565b8160010154611c469190613f55565b611c509084613f0e565b9392505050565b606060028054610d4590613faf565b6008546001600160a01b03163314611c905760405162461bcd60e51b8152600401610c7390613cdb565b60165481611c9d60005490565b611ca79190613ee2565b1115611cc55760405162461bcd60e51b8152600401610c7390613d9a565b7f0000000000000000000000000000000000000000000000000000000000000005811015611cfa57611cf73382612a5a565b50565b611d247f000000000000000000000000000000000000000000000000000000000000000582614005565b15611d875760405162461bcd60e51b815260206004820152602d60248201527f43616e206f6e6c79206d696e742061206d756c7469706c65206f66207468652060448201526c36b0bc2130ba31b429b4bd329760991b6064820152608401610c73565b6000611db37f000000000000000000000000000000000000000000000000000000000000000583613efa565b905060005b81811015610f6657611dea337f0000000000000000000000000000000000000000000000000000000000000005612a5a565b80611df481613fea565b915050611db8565b6001600160a01b038216331415611e555760405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c65720000000000006044820152606401610c73565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6008546001600160a01b03163314611eeb5760405162461bcd60e51b8152600401610c7390613cdb565b601b8054911515600160a81b0260ff60a81b19909216919091179055565b6008546001600160a01b03163314611f335760405162461bcd60e51b8152600401610c7390613cdb565b601b8054911515600160b01b0260ff60b01b19909216919091179055565b6008546000906001600160a01b03163314611f7e5760405162461bcd60e51b8152600401610c7390613cdb565b50600990565b611f8e83836129ef565b611faa5760405162461bcd60e51b8152600401610c7390613dbd565b82611fbb600f80546113e290613faf565b14611fd85760405162461bcd60e51b8152600401610c7390613c8b565b60145433600090815260126020526040902054611ff6908390613ee2565b11156120145760405162461bcd60e51b8152600401610c7390613d63565b3360009081526012602052604081208054839290612033908490613ee2565b90915550610f669050816000612df7565b6008546001600160a01b0316331461206e5760405162461bcd60e51b8152600401610c7390613cdb565b601b546040516000916001600160a01b03169083908381818185875af1925050503d80600081146120bb576040519150601f19603f3d011682016040523d82523d6000602084013e6120c0565b606091505b505090508061163a5760405162461bcd60e51b815260206004820152600f60248201526e1d1c985b9cd9995c8819985a5b1959608a1b6044820152606401610c73565b61210e848484612669565b61211a84848484612f00565b611bed5760405162461bcd60e51b8152600401610c7390613d10565b6008546000906001600160a01b031633146121635760405162461bcd60e51b8152600401610c7390613cdb565b50674563918244f4000090565b6010805461195f90613faf565b6008546001600160a01b031633146121a75760405162461bcd60e51b8152600401610c7390613cdb565b601b8054911515600160b81b0260ff60b81b19909216919091179055565b6008546001600160a01b031633146121ef5760405162461bcd60e51b8152600401610c7390613cdb565b8082608001516001600160f81b0316836060015102836020015103146122655760405162461bcd60e51b815260206004820152602560248201527f4c696e656172447574636841756374696f6e3a20696e636f7272656374207265604482015264736572766560d81b6064820152608401610c73565b60008260a00151600281111561228b57634e487b7160e01b600052602160045260246000fd5b14156122e55760405162461bcd60e51b8152602060048201526024808201527f4c696e656172447574636841756374696f6e3a20756e737065636966696564206044820152631d5b9a5d60e21b6064820152608401610c73565b600082604001511161234c5760405162461bcd60e51b815260206004820152602a60248201527f4c696e656172447574636841756374696f6e3a207a65726f206465637265617360448201526919481a5b9d195c9d985b60b21b6064820152608401610c73565b815160099081556020830151600a556040830151600b556060830151600c556080830151600d80546001600160f81b0319166001600160f81b03909216918217815560a0850151859392909190600160f81b8360028111156123be57634e487b7160e01b600052602160045260246000fd5b021790555050505050565b606060116123d68361300e565b6040516020016123e7929190613b7f565b6040516020818303038152906040529050919050565b6008546001600160a01b031633146124275760405162461bcd60e51b8152600401610c7390613cdb565b600955565b6008546001600160a01b031633146124565760405162461bcd60e51b8152600401610c7390613cdb565b601455565b6008546001600160a01b031633146124855760405162461bcd60e51b8152600401610c7390613cdb565b805161163a906010906020840190613684565b6015543360009081526012602090815260408083205460139092529091205483916124c291613ee2565b6124cc9190613ee2565b11156124ea5760405162461bcd60e51b8152600401610c7390613d63565b80602460008282546124fc9190613ee2565b909155505060235460245411156125455760405162461bcd60e51b815260206004820152600d60248201526c195e18d9595908185b5bdd5b9d609a1b6044820152606401610c73565b3360009081526013602052604081208054839290612564908490613ee2565b90915550611cf79050816001612df7565b6008546001600160a01b0316331461259f5760405162461bcd60e51b8152600401610c7390613cdb565b6001600160a01b0381166126045760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c73565b611cf781612c1d565b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061267482612a74565b80519091506000906001600160a01b0316336001600160a01b031614806126ab5750336126a084610dc8565b6001600160a01b0316145b806126bd575081516126bd9033610ba7565b9050806127275760405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610c73565b846001600160a01b031682600001516001600160a01b03161461279b5760405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f72726563746044820152651037bbb732b960d11b6064820152608401610c73565b6001600160a01b0384166127ff5760405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608401610c73565b61280f600084846000015161260d565b6001600160a01b03851660009081526004602052604081208054600192906128419084906001600160801b0316613f2d565b82546101009290920a6001600160801b038181021990931691831602179091556001600160a01b0386166000908152600460205260408120805460019450909261288d91859116613eb7565b82546001600160801b039182166101009390930a9283029190920219909116179055506040805180820182526001600160a01b0380871682526001600160401b03428116602080850191825260008981526003909152948520935184549151909216600160a01b026001600160e01b03199091169190921617179055612914846001613ee2565b6000818152600360205260409020549091506001600160a01b03166129a55761293e816000541190565b156129a55760408051808201825284516001600160a01b0390811682526020808701516001600160401b039081168285019081526000878152600390935294909120925183549451909116600160a01b026001600160e01b03199094169116179190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b6000612a036008546001600160a01b031690565b6001600160a01b0316612a168484613127565b6001600160a01b0316149392505050565b60008282604051602001612a3c929190613b48565b60405160208183030381529060405280519060200120905092915050565b61163a828260405180602001604052806000815250613133565b6040805180820190915260008082526020820152612a93826000541190565b612af25760405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e657869736044820152693a32b73a103a37b5b2b760b11b6064820152608401610c73565b60007f00000000000000000000000000000000000000000000000000000000000000058310612b5357612b457f000000000000000000000000000000000000000000000000000000000000000584613f55565b612b50906001613ee2565b90505b825b818110612bbc576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b03169183019190915215612ba957949350505050565b5080612bb481613f98565b915050612b55565b5060405162461bcd60e51b815260206004820152602f60248201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560448201526e1037bbb732b91037b3103a37b5b2b760891b6064820152608401610c73565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6002600e541415612c925760405162461bcd60e51b8152600401610c7390613dfe565b6002600e5560175481612ca460005490565b612cae9190613ee2565b1115612ccc5760405162461bcd60e51b8152600401610c7390613d9a565b6000612cd88284613f0e565b905034811115612cfa5760405162461bcd60e51b8152600401610c7390613c62565b612d043383612a5a565b81601e6000828254612d169190613ee2565b909155505033600090815260208052604081208054839290612d39908490613ee2565b90915550503481101561186f576000335b90506000612d588334613f55565b9050600080836001600160a01b03168360405160006040518083038185875af1925050503d8060008114612da8576040519150601f19603f3d011682016040523d82523d6000602084013e612dad565b606091505b5091509150818190612dd25760405162461bcd60e51b8152600401610c739190613c4f565b505050505050506001600e5550565b6000818310612df05781611c50565b5090919050565b6002600e541415612e1a5760405162461bcd60e51b8152600401610c7390613dfe565b6002600e5560175482612e2c60005490565b612e369190613ee2565b1115612e545760405162461bcd60e51b8152600401610c7390613d9a565b6000612e5f83611bf3565b905034811115612e815760405162461bcd60e51b8152600401610c7390613c62565b612e8b3384612a5a565b82601e6000828254612e9d9190613ee2565b90915550508115612ed257336000908152601f602052604081208054839290612ec7908490613ee2565b90915550612ef09050565b33600090815260208052604081208054839290612d39908490613ee2565b8034111561186f57600033612d4a565b60006001600160a01b0384163b1561300257604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612f44903390899088908890600401613c1c565b602060405180830381600087803b158015612f5e57600080fd5b505af1925050508015612f8e575060408051601f3d908101601f19168201909252612f8b918101906139ff565b60015b612fe8573d808015612fbc576040519150601f19603f3d011682016040523d82523d6000602084013e612fc1565b606091505b508051612fe05760405162461bcd60e51b8152600401610c7390613d10565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050613006565b5060015b949350505050565b6060816130325750506040805180820190915260018152600360fc1b602082015290565b8160005b811561305c578061304681613fea565b91506130559050600a83613efa565b9150613036565b6000816001600160401b0381111561308457634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156130ae576020820181803683370190505b5090505b8415613006576130c3600183613f55565b91506130d0600a86614005565b6130db906030613ee2565b60f81b8183815181106130fe57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350613120600a86613efa565b94506130b2565b6000611c50838361340d565b6000546001600160a01b0384166131965760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610c73565b6131a1816000541190565b156131ee5760405162461bcd60e51b815260206004820152601d60248201527f455243373231413a20746f6b656e20616c7265616479206d696e7465640000006044820152606401610c73565b7f00000000000000000000000000000000000000000000000000000000000000058311156132695760405162461bcd60e51b815260206004820152602260248201527f455243373231413a207175616e7469747920746f206d696e7420746f6f2068696044820152610ced60f31b6064820152608401610c73565b6001600160a01b0384166000908152600460209081526040918290208251808401845290546001600160801b038082168352600160801b90910416918101919091528151808301909252805190919081906132c5908790613eb7565b6001600160801b031681526020018583602001516132e39190613eb7565b6001600160801b039081169091526001600160a01b0380881660008181526004602090815260408083208751978301518716600160801b029790961696909617909455845180860186529182526001600160401b034281168386019081528883526003909552948120915182549451909516600160a01b026001600160e01b031990941694909216939093179190911790915582905b858110156134025760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46133c66000888488612f00565b6133e25760405162461bcd60e51b8152600401610c7390613d10565b816133ec81613fea565b92505080806133fa90613fea565b915050613379565b5060008190556129e7565b60008151604114156134415760208201516040830151606084015160001a613437868285856134b1565b9350505050610ce8565b815160401415613469576020820151604083015161346085838361365a565b92505050610ce8565b60405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610c73565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a082111561352e5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610c73565b8360ff16601b148061354357508360ff16601c145b61359a5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610c73565b6040805160008082526020820180845288905260ff871692820192909252606081018590526080810184905260019060a0016020604051602081039080840390855afa1580156135ee573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166136515760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610c73565b95945050505050565b60006001600160ff1b03821660ff83901c601b0161367a868287856134b1565b9695505050505050565b82805461369090613faf565b90600052602060002090601f0160209004810192826136b257600085556136f8565b82601f106136cb57805160ff19168380011785556136f8565b828001600101855582156136f8579182015b828111156136f85782518255916020019190600101906136dd565b506113a79291505b808211156113a75760008155600101613700565b60006001600160401b038084111561372e5761372e614045565b604051601f8501601f19908116603f0116810190828211818310171561375657613756614045565b8160405280935085815286868601111561376f57600080fd5b858560208301376000602087830101525050509392505050565b8035801515811461379957600080fd5b919050565b600082601f8301126137ae578081fd5b611c5083833560208501613714565b80356003811061379957600080fd5b6000602082840312156137dd578081fd5b8135611c508161405b565b600080604083850312156137fa578081fd5b82356138058161405b565b915060208301356138158161405b565b809150509250929050565b600080600060608486031215613834578081fd5b833561383f8161405b565b9250602084013561384f8161405b565b929592945050506040919091013590565b60008060008060808587031215613875578081fd5b84356138808161405b565b935060208501356138908161405b565b92506040850135915060608501356001600160401b038111156138b1578182fd5b6138bd8782880161379e565b91505092959194509250565b600080604083850312156138db578182fd5b82356138e68161405b565b91506138f460208401613789565b90509250929050565b6000806040838503121561390f578182fd5b823561391a8161405b565b946020939093013593505050565b600060208284031215613939578081fd5b611c5082613789565b600080600060608486031215613956578283fd5b8335925060208401356001600160401b03811115613972578283fd5b61397e8682870161379e565b925050604084013590509250925092565b600080600080608085870312156139a4578182fd5b8435935060208501356001600160401b038111156139c0578283fd5b6139cc8782880161379e565b949794965050505060408301359260600135919050565b6000602082840312156139f4578081fd5b8135611c5081614070565b600060208284031215613a10578081fd5b8151611c5081614070565b600060208284031215613a2c578081fd5b81356001600160401b03811115613a41578182fd5b8201601f81018413613a51578182fd5b61300684823560208401613714565b60008082840360e0811215613a73578283fd5b60c0811215613a80578283fd5b50613a89613e8f565b8335815260208085013590820152604080850135908201526060808501359082015260808401356001600160f81b0381168114613ac4578384fd5b6080820152613ad560a085016137bd565b60a08201529460c0939093013593505050565b600060208284031215613af9578081fd5b5035919050565b60008151808452613b18816020860160208601613f6c565b601f01601f19169290920160200192915050565b60008151613b3e818560208601613f6c565b9290920192915050565b60008351613b5a818460208801613f6c565b60609390931b6bffffffffffffffffffffffff19169190920190815260140192915050565b600080845482600182811c915080831680613b9b57607f831692505b6020808410821415613bbb57634e487b7160e01b87526022600452602487fd5b818015613bcf5760018114613be057613c0c565b60ff19861689528489019650613c0c565b60008b815260209020885b86811015613c045781548b820152908501908301613beb565b505084890196505b5050505050506136518185613b2c565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061367a90830184613b00565b602081526000611c506020830184613b00565b6020808252600f908201526e24b73b30b634b21030b6b7bab73a1760891b604082015260600190565b60208082526030908201527f5468652061646472657373206861736820646f6573206e6f74206d617463682060408201526f3a34329039b4b3b732b2103430b9b41760811b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526033908201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260408201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b606082015260800190565b6020808252601a908201527f596f752063616e6e6f74206d696e742074686973206d616e792e000000000000604082015260600190565b60208082526009908201526829b7b6321037baba1760b91b604082015260600190565b60208082526021908201527f5468697320686173682773207369676e617475726520697320696e76616c69646040820152601760f91b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b8681526020810186905260408101859052606081018490526001600160f81b038316608082015260c0810160038310613e7e57634e487b7160e01b600052602160045260246000fd5b8260a0830152979650505050505050565b60405160c081016001600160401b0381118282101715613eb157613eb1614045565b60405290565b60006001600160801b03808316818516808303821115613ed957613ed9614019565b01949350505050565b60008219821115613ef557613ef5614019565b500190565b600082613f0957613f0961402f565b500490565b6000816000190483118215151615613f2857613f28614019565b500290565b60006001600160801b0383811690831681811015613f4d57613f4d614019565b039392505050565b600082821015613f6757613f67614019565b500390565b60005b83811015613f87578181015183820152602001613f6f565b83811115611bed5750506000910152565b600081613fa757613fa7614019565b506000190190565b600181811c90821680613fc357607f821691505b60208210811415613fe457634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415613ffe57613ffe614019565b5060010190565b6000826140145761401461402f565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114611cf757600080fd5b6001600160e01b031981168114611cf757600080fdfea26469706673582212202ee158d54a46acbbc76e696a8d34ca1f3385220e0a782ea0a67089b44ec1defd64736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000028000000000000000000000000000000000000000000000000000000000000002e00000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000eb000000000000000000000000000000000000000000000000000000000000000f00000000000000000000000000000000000000000000000000b1a2bc2ec50000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000004802385b07e4301db3d5854819ff85c4d4fc47fc00000000000000000000000021cd311f20e831c03f2e26829507c6634420228f000000000000000000000000df22324de0dff7b9c085828e259e821696a46381000000000000000000000000bd16b906bed613cfb1cb9d72a65e7c717e75df390000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000014d0000000000000000000000000000000000000000000000000000000000000085000000000000000000000000000000000000000000000000000000000000010b000000000000000000000000000000000000000000000000000000000000010b00000000000000000000000000000000000000000000000000000000000000244d69616d69204e6967687473202d205365637265742047617264656e20426f757175657400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c4d49414d49204e49474854530000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : payees (address[]): 0x4802385b07e4301DB3d5854819ff85c4d4fC47fC,0x21Cd311F20E831c03F2E26829507c6634420228f,0xDF22324De0DfF7b9C085828E259e821696A46381,0xbd16b906Bed613cFb1cB9D72a65e7C717e75df39
Arg [1] : shares (uint256[]): 333,133,267,267
Arg [2] : name (string): Miami Nights - Secret Garden Bouquet
Arg [3] : symbol (string): MIAMI NIGHTS
Arg [4] : _whitelistMaxMint (uint256): 2
Arg [5] : _publicListMaxMint (uint256): 0
Arg [6] : _nonReservedMax (uint256): 235
Arg [7] : _reservedMax (uint256): 15
Arg [8] : _discountedPrice (uint256): 50000000000000000
Arg [9] : _publicTotalMaxMint (uint256): 0
-----Encoded View---------------
25 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [1] : 00000000000000000000000000000000000000000000000000000000000001e0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000280
Arg [3] : 00000000000000000000000000000000000000000000000000000000000002e0
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [6] : 00000000000000000000000000000000000000000000000000000000000000eb
Arg [7] : 000000000000000000000000000000000000000000000000000000000000000f
Arg [8] : 00000000000000000000000000000000000000000000000000b1a2bc2ec50000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [11] : 0000000000000000000000004802385b07e4301db3d5854819ff85c4d4fc47fc
Arg [12] : 00000000000000000000000021cd311f20e831c03f2e26829507c6634420228f
Arg [13] : 000000000000000000000000df22324de0dff7b9c085828e259e821696a46381
Arg [14] : 000000000000000000000000bd16b906bed613cfb1cb9d72a65e7c717e75df39
Arg [15] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [16] : 000000000000000000000000000000000000000000000000000000000000014d
Arg [17] : 0000000000000000000000000000000000000000000000000000000000000085
Arg [18] : 000000000000000000000000000000000000000000000000000000000000010b
Arg [19] : 000000000000000000000000000000000000000000000000000000000000010b
Arg [20] : 0000000000000000000000000000000000000000000000000000000000000024
Arg [21] : 4d69616d69204e6967687473202d205365637265742047617264656e20426f75
Arg [22] : 7175657400000000000000000000000000000000000000000000000000000000
Arg [23] : 000000000000000000000000000000000000000000000000000000000000000c
Arg [24] : 4d49414d49204e49474854530000000000000000000000000000000000000000
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.