ERC-721
Overview
Max Total Supply
1,234 SGSK
Holders
853
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 SGSKLoading...
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, 20) LinearDutchAuction( LinearDutchAuction.DutchAuctionConfig({ startPoint: 0, // disabled at deployment startPrice: startPrice, unit: AuctionIntervalUnit.Time, decreaseInterval: decreaseInterval, // 15 minutes decreaseSize: decreaseSize, numDecreases: numDecreases }), .5 ether ) { whitelistMaxMint = _whitelistMaxMint; publicListMaxMint = _publicListMaxMint; reservedMax = _reservedMax; max = _nonReservedMax + reservedMax; nonReservedMinted = 0; reservedMinted = 0; discountedPrice = _discountedPrice; publicTotalMaxMint = _publicTotalMaxMint; _splitter = new PaymentSplitter(payees, shares); } function release(address payable account) external { _splitter.release(account); } function _hash(string memory _prefix, address _address) internal pure returns (bytes32) { return keccak256(abi.encodePacked(_prefix, _address)); } function _whitelistHash(address _address, uint256 _price, uint256 _quantity) internal pure returns (bytes32) { return keccak256(abi.encodePacked(_address, _price, _quantity)); } function _verify(bytes32 hash, bytes memory signature) internal view returns (bool) { return (_recover(hash, signature) == owner()); } function _recover(bytes32 hash, bytes memory signature) internal pure returns (address) { return hash.recover(signature); } function setPrefix(string memory _prefix) public onlyOwner { prefix = _prefix; } function 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 _hashMintWhitelistAmount(string memory _prefix, address _address, uint256 amount) internal view returns (bytes32) { return keccak256(abi.encodePacked(_prefix, _address, amount)); } function mintWhitelistAmount(bytes32 hash, bytes calldata signature, uint256 numberOfTokens, uint256 customLimit) external payable { require(_verify(hash, signature), "This hash's signature is invalid."); require(_hashMintWhitelistAmount(prefixDiscounted, msg.sender, customLimit) == hash, "Hash invalid."); require(_whitelistClaimed[msg.sender] + numberOfTokens <= customLimit, 'You cannot mint this many.'); require(_whitelistClaimed[msg.sender] + numberOfTokens <= whitelistMaxMint, 'You cannot mint this many.'); _whitelistClaimed[msg.sender] += numberOfTokens; _mintWhitelistPrice(discountedPrice, numberOfTokens); } function _nonReservedMintHelper(uint256 numberOfTokens, bool isPublic) internal nonReentrant { require(totalSupply() + numberOfTokens <= max, "Sold out."); uint256 price = cost(numberOfTokens); require(price <= msg.value, "Invalid amount."); _safeMint(msg.sender, numberOfTokens); totalMintsForRefund += numberOfTokens; if (isPublic) { publicPurchasePrices[msg.sender] += price; } else { whitelistPurchasePrices[msg.sender] += price; } if (msg.value > price) { address payable reimburse = payable(_msgSender()); uint256 refundAmount = msg.value - price; // Using Address.sendValue() here would mask the revertMsg upon // reentrancy, but we want to expose it to allow for more precise // testing. This otherwise uses the exact same pattern as // Address.sendValue(). (bool success, bytes memory returnData) = reimburse.call{ value: refundAmount }(""); // Although `returnData` will have a spurious prefix, all we really // care about is that it contains the ReentrancyGuard reversion // message so we can check in the tests. require(success, string(returnData)); } } function splitPayments(uint256 _amount) public payable onlyOwner { (bool success, ) = payable(_splitter).call{value: _amount}( "" ); require(success, "transfer failed"); } function airdropMint(address[] calldata recipients, uint256[] calldata amounts) external onlyOwner { uint256 len = recipients.length; for(uint256 i = 0; i < len; i ++) { require( totalSupply() + amounts[i] <= reservedMax, "Sold out." ); if (amounts[i] < maxBatchSize) { _safeMint(recipients[i], amounts[i]); } else { require( amounts[i] % maxBatchSize == 0, "Can only mint a multiple of the maxBatchSize." ); uint256 numChunks = amounts[i] / maxBatchSize; for (uint256 i = 0; i < numChunks; i++) { _safeMint(recipients[i], maxBatchSize); } } } } function mintReserved(uint256 quantity, address recipient) external onlyOwner { require( totalSupply() + quantity <= reservedMax, "Sold out." ); if (quantity < maxBatchSize) { _safeMint(recipient, quantity); } else { require( quantity % maxBatchSize == 0, "Can only mint a multiple of the maxBatchSize." ); uint256 numChunks = quantity / maxBatchSize; for (uint256 i = 0; i < numChunks; i++) { _safeMint(recipient, maxBatchSize); } } } function mintWhitelistDiscounted(bytes32 hash, bytes memory signature, uint256 numberOfTokens) external payable { require(_verify(hash, signature), "This hash's signature is invalid."); require(_hash(prefixDiscounted, msg.sender) == hash, "The address hash does not match the signed hash."); require(_whitelistClaimed[msg.sender] + numberOfTokens <= whitelistMaxMint, 'You cannot mint this many.'); require(discountedPrice * numberOfTokens == msg.value, "Invalid amount."); _whitelistClaimed[msg.sender] += numberOfTokens; _discountClaimed[msg.sender] += numberOfTokens; totalMintsForRefund += numberOfTokens; discountedPurchasePrices[msg.sender] += msg.value; _safeMint(msg.sender, numberOfTokens); } function setBaseURI(string memory baseTokenURI_) external onlyOwner { baseTokenURI = baseTokenURI_; } function tokenURI(uint256 tokenId) public view override returns (string memory) { return string(abi.encodePacked(baseTokenURI, tokenId.toString())); } function setRefundPrice(uint256 _price) external onlyOwner { refundPrice = _price; } function setAllowPublicRefunds(bool _allow) external onlyOwner { allowPublicRefunds = _allow; } function setAllowWhitelistRefunds(bool _allow) external onlyOwner { allowWhitelistRefunds = _allow; } function setAllowDiscountRefunds(bool _allow) external onlyOwner { allowDiscountRefunds = _allow; } function allowRefund(bool _allow) external onlyOwner { isAllowedRefund = _allow; } function getRefundTotal() external view returns(uint256) { require(isAllowedRefund, "refund not allowed"); return totalMintsForRefund * refundPrice; } function getPublicRefundAmount() public view returns(uint256) { if (allowPublicRefunds && (publicPurchasePrices[msg.sender] > _publicListClaimed[msg.sender] * refundPrice)) { return publicPurchasePrices[msg.sender] - _publicListClaimed[msg.sender] * refundPrice; } return 0; } function getWhitelistRefundAmount() public view returns(uint256) { if (allowWhitelistRefunds && (whitelistPurchasePrices[msg.sender] > (_whitelistClaimed[msg.sender] - _discountClaimed[msg.sender]) * refundPrice)) { return whitelistPurchasePrices[msg.sender] - (_whitelistClaimed[msg.sender] - _discountClaimed[msg.sender]) * refundPrice; } return 0; } function getDiscountRefundAmount() public view returns(uint256) { if (allowDiscountRefunds && (discountedPurchasePrices[msg.sender] > _discountClaimed[msg.sender] * refundPrice)) { return discountedPurchasePrices[msg.sender] - _discountClaimed[msg.sender] * refundPrice; } return 0; } function refund() external nonReentrant { require(isAllowedRefund == true, "refund not allowed"); uint256 amount; uint256 refundAmount = getPublicRefundAmount(); if (refundAmount != 0) { amount = refundAmount; publicPurchasePrices[msg.sender] = 0; totalMintsForRefund = totalMintsForRefund - _publicListClaimed[msg.sender]; } refundAmount = getWhitelistRefundAmount(); if (refundAmount != 0) { amount += refundAmount; whitelistPurchasePrices[msg.sender] = 0; totalMintsForRefund = totalMintsForRefund - (_whitelistClaimed[msg.sender] - _discountClaimed[msg.sender]); } refundAmount = getDiscountRefundAmount(); if (refundAmount != 0) { amount += refundAmount; discountedPurchasePrices[msg.sender] = 0; totalMintsForRefund = totalMintsForRefund - _discountClaimed[msg.sender]; } require(amount != 0, "no refunds"); (bool success, ) = payable(msg.sender).call{value: amount}(""); require(success == true, "failed to refund"); } function getStartPrice() external view onlyOwner returns(uint64) { return startPrice; } function getDecreaseInterval() external view onlyOwner returns(uint64) { return decreaseInterval; } function getNumDescreases() external view onlyOwner returns(uint64) { return numDecreases; } function getDecreaseSize() external view onlyOwner returns(uint64) { return decreaseSize; } function getPublicMinted() external view returns(uint256) { return _publicListClaimed[msg.sender]; } function getWhitelistMinted() external view returns(uint256) { return _whitelistClaimed[msg.sender]; } function setPublicTotalMaxMint(uint256 _amount) external onlyOwner { publicTotalMaxMint = _amount; } function setDiscountedPrice(uint256 _discountedPrice) external onlyOwner { discountedPrice = _discountedPrice; } }
// SPDX-License-Identifier: MIT // Creator: Chiru Labs pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..). * * Does not support burning tokens to address(0). */ contract ERC721A is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable { using Address for address; using Strings for uint256; struct TokenOwnership { address addr; uint64 startTimestamp; } struct AddressData { uint128 balance; uint128 numberMinted; } uint256 private currentIndex = 0; uint256 internal immutable maxBatchSize; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See ownershipOf implementation for details. mapping(uint256 => TokenOwnership) private _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev * `maxBatchSize` refers to how much a minter can mint at a time. */ constructor( string memory name_, string memory symbol_, uint256 maxBatchSize_ ) { require(maxBatchSize_ > 0, "ERC721A: max batch size must be nonzero"); _name = name_; _symbol = symbol_; maxBatchSize = maxBatchSize_; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view override returns (uint256) { return currentIndex; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view override returns (uint256) { require(index < totalSupply(), "ERC721A: global index out of bounds"); return index; } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. * This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first. * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) { require(index < balanceOf(owner), "ERC721A: owner index out of bounds"); uint256 numMintedSoFar = totalSupply(); uint256 tokenIdsIdx = 0; address currOwnershipAddr = address(0); for (uint256 i = 0; i < numMintedSoFar; i++) { TokenOwnership memory ownership = _ownerships[i]; if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { if (tokenIdsIdx == index) { return i; } tokenIdsIdx++; } } revert("ERC721A: unable to get token of owner by index"); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { require(owner != address(0), "ERC721A: balance query for the zero address"); return uint256(_addressData[owner].balance); } function _numberMinted(address owner) internal view returns (uint256) { require(owner != address(0), "ERC721A: number minted query for the zero address"); return uint256(_addressData[owner].numberMinted); } function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { require(_exists(tokenId), "ERC721A: owner query for nonexistent token"); uint256 lowestTokenToCheck; if (tokenId >= maxBatchSize) { lowestTokenToCheck = tokenId - maxBatchSize + 1; } for (uint256 curr = tokenId; curr >= lowestTokenToCheck; curr--) { TokenOwnership memory ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } revert("ERC721A: unable to determine the owner of token"); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return ownershipOf(tokenId).addr; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721A.ownerOf(tokenId); require(to != owner, "ERC721A: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721A: approve caller is not owner nor approved for all" ); _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { require(_exists(tokenId), "ERC721A: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public override { require(operator != _msgSender(), "ERC721A: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public override { _transfer(from, to, tokenId); require( _checkOnERC721Received(from, to, tokenId, _data), "ERC721A: transfer to non ERC721Receiver implementer" ); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return tokenId < currentIndex; } function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ""); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` cannot be larger than the max batch size. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { uint256 startTokenId = currentIndex; require(to != address(0), "ERC721A: mint to the zero address"); // We know if the first token in the batch doesn't exist, the other ones don't as well, because of serial ordering. require(!_exists(startTokenId), "ERC721A: token already minted"); require(quantity <= maxBatchSize, "ERC721A: quantity to mint too high"); _beforeTokenTransfers(address(0), to, startTokenId, quantity); AddressData memory addressData = _addressData[to]; _addressData[to] = AddressData( addressData.balance + uint128(quantity), addressData.numberMinted + uint128(quantity) ); _ownerships[startTokenId] = TokenOwnership(to, uint64(block.timestamp)); uint256 updatedIndex = startTokenId; for (uint256 i = 0; i < quantity; i++) { emit Transfer(address(0), to, updatedIndex); require( _checkOnERC721Received(address(0), to, updatedIndex, _data), "ERC721A: transfer to non ERC721Receiver implementer" ); updatedIndex++; } currentIndex = updatedIndex; _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) private { TokenOwnership memory prevOwnership = ownershipOf(tokenId); bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr || getApproved(tokenId) == _msgSender() || isApprovedForAll(prevOwnership.addr, _msgSender())); require(isApprovedOrOwner, "ERC721A: transfer caller is not owner nor approved"); require(prevOwnership.addr == from, "ERC721A: transfer from incorrect owner"); require(to != address(0), "ERC721A: transfer to the zero address"); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); _addressData[from].balance -= 1; _addressData[to].balance += 1; _ownerships[tokenId] = TokenOwnership(to, uint64(block.timestamp)); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; if (_ownerships[nextTokenId].addr == address(0)) { if (_exists(nextTokenId)) { _ownerships[nextTokenId] = TokenOwnership(prevOwnership.addr, prevOwnership.startTimestamp); } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } uint256 public nextOwnerToExplicitlySet = 0; /** * @dev Explicitly set `owners` to eliminate loops in future calls of ownerOf(). */ function _setOwnersExplicit(uint256 quantity) internal { uint256 oldNextOwnerToSet = nextOwnerToExplicitlySet; require(quantity > 0, "quantity must be nonzero"); uint256 endIndex = oldNextOwnerToSet + quantity - 1; if (endIndex > currentIndex - 1) { endIndex = currentIndex - 1; } // We know if the last one in the group exists, all in the group exist, due to serial ordering. require(_exists(endIndex), "not enough minted yet for this cleanup"); for (uint256 i = oldNextOwnerToSet; i <= endIndex; i++) { if (_ownerships[i].addr == address(0)) { TokenOwnership memory ownership = ownershipOf(i); _ownerships[i] = TokenOwnership(ownership.addr, ownership.startTimestamp); } } nextOwnerToExplicitlySet = endIndex + 1; } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721A: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
// SPDX-License-Identifier: MIT // Copyright (c) 2021 the ethier authors (github.com/divergencetech/ethier) pragma solidity >=0.8.0 <0.9.0; import "@openzeppelin/contracts/utils/math/Math.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; /// @notice A Seller with a linearly decreasing price. abstract contract LinearDutchAuction is Ownable { /** @param unit The unit of "time" used for decreasing prices, block number or timestamp. NOTE: See the comment on AuctionIntervalUnit re use of Time as a unit. @param startPoint The block or timestamp at which the auction opens. A value of zero disables the auction. See setAuctionStartPoint(). @param startPrice The price at `startPoint`. @param decreaseInterval The number of units to wait before decreasing the price. MUST be non-zero. @param decreaseSize The amount by which price decreases after every `decreaseInterval`. @param numDecreases The maximum number of price decreases before remaining constant. The reserve price is therefore implicit and equal to startPrice-numDecrease*decreaseSize. */ struct DutchAuctionConfig { uint256 startPoint; uint256 startPrice; uint256 decreaseInterval; uint256 decreaseSize; // From https://docs.soliditylang.org/en/v0.8.10/types.html#enums "Enums // cannot have more than 256 members"; presumably they take 8 bits, so // use some of the numDecreases space instead. uint248 numDecreases; AuctionIntervalUnit unit; } /** @notice The unit of "time" along which the cost decreases. @dev If no value is provided then the zero UNSPECIFIED will trigger an error. NOTE: The Block unit is more reliable as it has an explicit progression (simply incrementing). Miners are allowed to have a time drift into the future although which predisposes to unexpected behaviour by which "future" costs are encountered. See the ConsenSys 15-second rule: https://consensys.net/blog/developers/solidity-best-practices-for-smart-contract-security/ */ enum AuctionIntervalUnit { UNSPECIFIED, Block, Time } /// @param expectedReserve See setAuctionConfig(). constructor( DutchAuctionConfig memory config, uint256 expectedReserve ) { setAuctionConfig(config, expectedReserve); } /// @notice Configuration of price changes. DutchAuctionConfig public dutchAuctionConfig; /** @notice Sets the auction config. @param expectedReserve A safety check that the reserve, as calculated from the config, is as expected. */ function setAuctionConfig( DutchAuctionConfig memory config, uint256 expectedReserve ) public onlyOwner { // Underflow might occur is size/num decreases is too large. unchecked { require( config.startPrice - config.decreaseSize * config.numDecreases == expectedReserve, "LinearDutchAuction: incorrect reserve" ); } require( config.unit != AuctionIntervalUnit.UNSPECIFIED, "LinearDutchAuction: unspecified unit" ); require( config.decreaseInterval > 0, "LinearDutchAuction: zero decrease interval" ); dutchAuctionConfig = config; } /** @notice Sets the config startPoint. A startPoint of zero disables the auction. @dev The auction can be toggle on and off with this function, without the cost of having to update the entire config. */ function setAuctionStartPoint(uint256 startPoint) public onlyOwner { dutchAuctionConfig.startPoint = startPoint; } /// @notice Dutch-auction logic cost function. function cost(uint256 n) public view returns (uint256) { DutchAuctionConfig storage cfg = dutchAuctionConfig; return n * (cfg.startPrice - Math.min((block.timestamp - cfg.startPoint) / cfg.decreaseInterval, cfg.numDecreases) * cfg.decreaseSize); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return recover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return recover(hash, r, vs); } else { revert("ECDSA: invalid signature length"); } } /** * @dev Overload of {ECDSA-recover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { bytes32 s; uint8 v; assembly { s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) v := add(shr(255, vs), 27) } return recover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (281): 0 < s < secp256k1n ÷ 2 + 1, and for v in (282): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. require( uint256(s) <= 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0, "ECDSA: invalid signature 's' value" ); require(v == 27 || v == 28, "ECDSA: invalid signature 'v' value"); // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); require(signer != address(0), "ECDSA: invalid signature"); return signer; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Address.sol"; import "../utils/Context.sol"; import "../utils/math/SafeMath.sol"; /** * @title PaymentSplitter * @dev This contract allows to split Ether payments among a group of accounts. The sender does not need to be aware * that the Ether will be split in this way, since it is handled transparently by the contract. * * The split can be in equal parts or in any other arbitrary proportion. The way this is specified is by assigning each * account to a number of shares. Of all the Ether that this contract receives, each account will then be able to claim * an amount proportional to the percentage of total shares they were assigned. * * `PaymentSplitter` follows a _pull payment_ model. This means that payments are not automatically forwarded to the * accounts but kept in this contract, and the actual transfer is triggered as a separate step by calling the {release} * function. */ contract PaymentSplitter is Context { event PayeeAdded(address account, uint256 shares); event PaymentReleased(address to, uint256 amount); event PaymentReceived(address from, uint256 amount); uint256 private _totalShares; uint256 private _totalReleased; mapping(address => uint256) private _shares; mapping(address => uint256) private _released; address[] private _payees; /** * @dev Creates an instance of `PaymentSplitter` where each account in `payees` is assigned the number of shares at * the matching position in the `shares` array. * * All addresses in `payees` must be non-zero. Both arrays must have the same non-zero length, and there must be no * duplicates in `payees`. */ constructor(address[] memory payees, uint256[] memory shares_) payable { require(payees.length == shares_.length, "PaymentSplitter: payees and shares length mismatch"); require(payees.length > 0, "PaymentSplitter: no payees"); for (uint256 i = 0; i < payees.length; i++) { _addPayee(payees[i], shares_[i]); } } /** * @dev The Ether received will be logged with {PaymentReceived} events. Note that these events are not fully * reliable: it's possible for a contract to receive Ether without triggering this function. This only affects the * reliability of the events, and not the actual splitting of Ether. * * To learn more about this see the Solidity documentation for * https://solidity.readthedocs.io/en/latest/contracts.html#fallback-function[fallback * functions]. */ receive() external payable virtual { emit PaymentReceived(_msgSender(), msg.value); } /** * @dev Getter for the total shares held by payees. */ function totalShares() public view returns (uint256) { return _totalShares; } /** * @dev Getter for the total amount of Ether already released. */ function totalReleased() public view returns (uint256) { return _totalReleased; } /** * @dev Getter for the amount of shares held by an account. */ function shares(address account) public view returns (uint256) { return _shares[account]; } /** * @dev Getter for the amount of Ether already released to a payee. */ function released(address account) public view returns (uint256) { return _released[account]; } /** * @dev Getter for the address of the payee number `index`. */ function payee(uint256 index) public view returns (address) { return _payees[index]; } /** * @dev Triggers a transfer to `account` of the amount of Ether they are owed, according to their percentage of the * total shares and their previous withdrawals. */ function release(address payable account) public virtual { require(_shares[account] > 0, "PaymentSplitter: account has no shares"); uint256 totalReceived = address(this).balance + _totalReleased; uint256 payment = (totalReceived * _shares[account]) / _totalShares - _released[account]; require(payment != 0, "PaymentSplitter: account is not due payment"); _released[account] = _released[account] + payment; _totalReleased = _totalReleased + payment; Address.sendValue(account, payment); emit PaymentReleased(account, payment); } /** * @dev Add a new payee to the contract. * @param account The address of the payee to add. * @param shares_ The number of shares owned by the payee. */ function _addPayee(address account, uint256 shares_) private { require(account != address(0), "PaymentSplitter: account is the zero address"); require(shares_ > 0, "PaymentSplitter: shares are 0"); require(_shares[account] == 0, "PaymentSplitter: account already has shares"); _payees.push(account); _shares[account] = shares_; _totalShares = _totalShares + shares_; emit PayeeAdded(account, shares_); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT pragma solidity >= 0.4.22 <0.9.0; library console { address constant CONSOLE_ADDRESS = address(0x000000000000000000636F6e736F6c652e6c6f67); function _sendLogPayload(bytes memory payload) private view { uint256 payloadLength = payload.length; address consoleAddress = CONSOLE_ADDRESS; assembly { let payloadStart := add(payload, 32) let r := staticcall(gas(), consoleAddress, payloadStart, payloadLength, 0, 0) } } function log() internal view { _sendLogPayload(abi.encodeWithSignature("log()")); } function logInt(int p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(int)", p0)); } function logUint(uint p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint)", p0)); } function logString(string memory p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(string)", p0)); } function logBool(bool p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool)", p0)); } function logAddress(address p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(address)", p0)); } function logBytes(bytes memory p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes)", p0)); } function logBytes1(bytes1 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes1)", p0)); } function logBytes2(bytes2 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes2)", p0)); } function logBytes3(bytes3 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes3)", p0)); } function logBytes4(bytes4 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes4)", p0)); } function logBytes5(bytes5 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes5)", p0)); } function logBytes6(bytes6 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes6)", p0)); } function logBytes7(bytes7 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes7)", p0)); } function logBytes8(bytes8 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes8)", p0)); } function logBytes9(bytes9 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes9)", p0)); } function logBytes10(bytes10 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes10)", p0)); } function logBytes11(bytes11 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes11)", p0)); } function logBytes12(bytes12 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes12)", p0)); } function logBytes13(bytes13 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes13)", p0)); } function logBytes14(bytes14 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes14)", p0)); } function logBytes15(bytes15 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes15)", p0)); } function logBytes16(bytes16 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes16)", p0)); } function logBytes17(bytes17 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes17)", p0)); } function logBytes18(bytes18 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes18)", p0)); } function logBytes19(bytes19 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes19)", p0)); } function logBytes20(bytes20 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes20)", p0)); } function logBytes21(bytes21 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes21)", p0)); } function logBytes22(bytes22 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes22)", p0)); } function logBytes23(bytes23 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes23)", p0)); } function logBytes24(bytes24 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes24)", p0)); } function logBytes25(bytes25 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes25)", p0)); } function logBytes26(bytes26 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes26)", p0)); } function logBytes27(bytes27 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes27)", p0)); } function logBytes28(bytes28 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes28)", p0)); } function logBytes29(bytes29 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes29)", p0)); } function logBytes30(bytes30 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes30)", p0)); } function logBytes31(bytes31 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes31)", p0)); } function logBytes32(bytes32 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes32)", p0)); } function log(uint p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint)", p0)); } function log(string memory p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(string)", p0)); } function log(bool p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool)", p0)); } function log(address p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(address)", p0)); } function log(uint p0, uint p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint)", p0, p1)); } function log(uint p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string)", p0, p1)); } function log(uint p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool)", p0, p1)); } function log(uint p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address)", p0, p1)); } function log(string memory p0, uint p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint)", p0, p1)); } function log(string memory p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string)", p0, p1)); } function log(string memory p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool)", p0, p1)); } function log(string memory p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address)", p0, p1)); } function log(bool p0, uint p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint)", p0, p1)); } function log(bool p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string)", p0, p1)); } function log(bool p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool)", p0, p1)); } function log(bool p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address)", p0, p1)); } function log(address p0, uint p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint)", p0, p1)); } function log(address p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string)", p0, p1)); } function log(address p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool)", p0, p1)); } function log(address p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address)", p0, p1)); } function log(uint p0, uint p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint)", p0, p1, p2)); } function log(uint p0, uint p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string)", p0, p1, p2)); } function log(uint p0, uint p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool)", p0, p1, p2)); } function log(uint p0, uint p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address)", p0, p1, p2)); } function log(uint p0, string memory p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint)", p0, p1, p2)); } function log(uint p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string)", p0, p1, p2)); } function log(uint p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool)", p0, p1, p2)); } function log(uint p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address)", p0, p1, p2)); } function log(uint p0, bool p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint)", p0, p1, p2)); } function log(uint p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string)", p0, p1, p2)); } function log(uint p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool)", p0, p1, p2)); } function log(uint p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address)", p0, p1, p2)); } function log(uint p0, address p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint)", p0, p1, p2)); } function log(uint p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string)", p0, p1, p2)); } function log(uint p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool)", p0, p1, p2)); } function log(uint p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address)", p0, p1, p2)); } function log(string memory p0, uint p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint)", p0, p1, p2)); } function log(string memory p0, uint p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string)", p0, p1, p2)); } function log(string memory p0, uint p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool)", p0, p1, p2)); } function log(string memory p0, uint p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address)", p0, p1, p2)); } function log(string memory p0, string memory p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint)", p0, p1, p2)); } function log(string memory p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string)", p0, p1, p2)); } function log(string memory p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool)", p0, p1, p2)); } function log(string memory p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address)", p0, p1, p2)); } function log(string memory p0, bool p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint)", p0, p1, p2)); } function log(string memory p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string)", p0, p1, p2)); } function log(string memory p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool)", p0, p1, p2)); } function log(string memory p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address)", p0, p1, p2)); } function log(string memory p0, address p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint)", p0, p1, p2)); } function log(string memory p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string)", p0, p1, p2)); } function log(string memory p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool)", p0, p1, p2)); } function log(string memory p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address)", p0, p1, p2)); } function log(bool p0, uint p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint)", p0, p1, p2)); } function log(bool p0, uint p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string)", p0, p1, p2)); } function log(bool p0, uint p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool)", p0, p1, p2)); } function log(bool p0, uint p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address)", p0, p1, p2)); } function log(bool p0, string memory p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint)", p0, p1, p2)); } function log(bool p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string)", p0, p1, p2)); } function log(bool p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool)", p0, p1, p2)); } function log(bool p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address)", p0, p1, p2)); } function log(bool p0, bool p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint)", p0, p1, p2)); } function log(bool p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string)", p0, p1, p2)); } function log(bool p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool)", p0, p1, p2)); } function log(bool p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address)", p0, p1, p2)); } function log(bool p0, address p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint)", p0, p1, p2)); } function log(bool p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string)", p0, p1, p2)); } function log(bool p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool)", p0, p1, p2)); } function log(bool p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address)", p0, p1, p2)); } function log(address p0, uint p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint)", p0, p1, p2)); } function log(address p0, uint p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string)", p0, p1, p2)); } function log(address p0, uint p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool)", p0, p1, p2)); } function log(address p0, uint p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address)", p0, p1, p2)); } function log(address p0, string memory p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint)", p0, p1, p2)); } function log(address p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string)", p0, p1, p2)); } function log(address p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool)", p0, p1, p2)); } function log(address p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address)", p0, p1, p2)); } function log(address p0, bool p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint)", p0, p1, p2)); } function log(address p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string)", p0, p1, p2)); } function log(address p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool)", p0, p1, p2)); } function log(address p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address)", p0, p1, p2)); } function log(address p0, address p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint)", p0, p1, p2)); } function log(address p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string)", p0, p1, p2)); } function log(address p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool)", p0, p1, p2)); } function log(address p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address)", p0, p1, p2)); } function log(uint p0, uint p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,uint)", p0, p1, p2, p3)); } function log(uint p0, uint p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,string)", p0, p1, p2, p3)); } function log(uint p0, uint p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,bool)", p0, p1, p2, p3)); } function log(uint p0, uint p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,address)", p0, p1, p2, p3)); } function log(uint p0, uint p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,uint)", p0, p1, p2, p3)); } function log(uint p0, uint p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,string)", p0, p1, p2, p3)); } function log(uint p0, uint p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,bool)", p0, p1, p2, p3)); } function log(uint p0, uint p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,address)", p0, p1, p2, p3)); } function log(uint p0, uint p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,uint)", p0, p1, p2, p3)); } function log(uint p0, uint p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,string)", p0, p1, p2, p3)); } function log(uint p0, uint p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,bool)", p0, p1, p2, p3)); } function log(uint p0, uint p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,address)", p0, p1, p2, p3)); } function log(uint p0, uint p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,uint)", p0, p1, p2, p3)); } function log(uint p0, uint p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,string)", p0, p1, p2, p3)); } function log(uint p0, uint p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,bool)", p0, p1, p2, p3)); } function log(uint p0, uint p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,address)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,uint)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,string)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,bool)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,address)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string,uint)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string,string)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string,bool)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string,address)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,uint)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,string)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,bool)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,address)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address,uint)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address,string)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address,bool)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address,address)", p0, p1, p2, p3)); } function log(uint p0, bool p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,uint)", p0, p1, p2, p3)); } function log(uint p0, bool p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,string)", p0, p1, p2, p3)); } function log(uint p0, bool p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,bool)", p0, p1, p2, p3)); } function log(uint p0, bool p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,address)", p0, p1, p2, p3)); } function log(uint p0, bool p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,uint)", p0, p1, p2, p3)); } function log(uint p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,string)", p0, p1, p2, p3)); } function log(uint p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,bool)", p0, p1, p2, p3)); } function log(uint p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,address)", p0, p1, p2, p3)); } function log(uint p0, bool p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,uint)", p0, p1, p2, p3)); } function log(uint p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,string)", p0, p1, p2, p3)); } function log(uint p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,bool)", p0, p1, p2, p3)); } function log(uint p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,address)", p0, p1, p2, p3)); } function log(uint p0, bool p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,uint)", p0, p1, p2, p3)); } function log(uint p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,string)", p0, p1, p2, p3)); } function log(uint p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,bool)", p0, p1, p2, p3)); } function log(uint p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,address)", p0, p1, p2, p3)); } function log(uint p0, address p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,uint)", p0, p1, p2, p3)); } function log(uint p0, address p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,string)", p0, p1, p2, p3)); } function log(uint p0, address p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,bool)", p0, p1, p2, p3)); } function log(uint p0, address p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,address)", p0, p1, p2, p3)); } function log(uint p0, address p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string,uint)", p0, p1, p2, p3)); } function log(uint p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string,string)", p0, p1, p2, p3)); } function log(uint p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string,bool)", p0, p1, p2, p3)); } function log(uint p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string,address)", p0, p1, p2, p3)); } function log(uint p0, address p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,uint)", p0, p1, p2, p3)); } function log(uint p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,string)", p0, p1, p2, p3)); } function log(uint p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,bool)", p0, p1, p2, p3)); } function log(uint p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,address)", p0, p1, p2, p3)); } function log(uint p0, address p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address,uint)", p0, p1, p2, p3)); } function log(uint p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address,string)", p0, p1, p2, p3)); } function log(uint p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address,bool)", p0, p1, p2, p3)); } function log(uint p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address,address)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,uint)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,string)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,address)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string,uint)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string,string)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string,address)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,uint)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address,uint)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address,string)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint,uint)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,uint)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,uint)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,uint)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,uint)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,uint)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,uint)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,uint)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint,uint)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,uint)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,uint)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,uint)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,address)", p0, p1, p2, p3)); } function log(bool p0, uint p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,uint)", p0, p1, p2, p3)); } function log(bool p0, uint p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,string)", p0, p1, p2, p3)); } function log(bool p0, uint p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,bool)", p0, p1, p2, p3)); } function log(bool p0, uint p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,address)", p0, p1, p2, p3)); } function log(bool p0, uint p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,uint)", p0, p1, p2, p3)); } function log(bool p0, uint p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,string)", p0, p1, p2, p3)); } function log(bool p0, uint p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,bool)", p0, p1, p2, p3)); } function log(bool p0, uint p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,address)", p0, p1, p2, p3)); } function log(bool p0, uint p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,uint)", p0, p1, p2, p3)); } function log(bool p0, uint p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,string)", p0, p1, p2, p3)); } function log(bool p0, uint p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, uint p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,address)", p0, p1, p2, p3)); } function log(bool p0, uint p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,uint)", p0, p1, p2, p3)); } function log(bool p0, uint p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,string)", p0, p1, p2, p3)); } function log(bool p0, uint p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,bool)", p0, p1, p2, p3)); } function log(bool p0, uint p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,uint)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,uint)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,uint)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,uint)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,uint)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,uint)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,uint)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,uint)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,uint)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,uint)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,uint)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,uint)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,address)", p0, p1, p2, p3)); } function log(address p0, uint p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,uint)", p0, p1, p2, p3)); } function log(address p0, uint p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,string)", p0, p1, p2, p3)); } function log(address p0, uint p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,bool)", p0, p1, p2, p3)); } function log(address p0, uint p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,address)", p0, p1, p2, p3)); } function log(address p0, uint p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string,uint)", p0, p1, p2, p3)); } function log(address p0, uint p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string,string)", p0, p1, p2, p3)); } function log(address p0, uint p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string,bool)", p0, p1, p2, p3)); } function log(address p0, uint p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string,address)", p0, p1, p2, p3)); } function log(address p0, uint p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,uint)", p0, p1, p2, p3)); } function log(address p0, uint p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,string)", p0, p1, p2, p3)); } function log(address p0, uint p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,bool)", p0, p1, p2, p3)); } function log(address p0, uint p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,address)", p0, p1, p2, p3)); } function log(address p0, uint p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address,uint)", p0, p1, p2, p3)); } function log(address p0, uint p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address,string)", p0, p1, p2, p3)); } function log(address p0, uint p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address,bool)", p0, p1, p2, p3)); } function log(address p0, uint p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint,uint)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,uint)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,uint)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,uint)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,uint)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,uint)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,uint)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,uint)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,address)", p0, p1, p2, p3)); } function log(address p0, address p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint,uint)", p0, p1, p2, p3)); } function log(address p0, address p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint,string)", p0, p1, p2, p3)); } function log(address p0, address p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint,address)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,uint)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,string)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,address)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,uint)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,string)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,address)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,uint)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,string)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,address)", p0, p1, p2, p3)); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) private pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a >= b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow, so we distribute. return (a / 2) + (b / 2) + (((a % 2) + (b % 2)) / 2); } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a / b + (a % b == 0 ? 0 : 1); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address[]","name":"payees","type":"address[]"},{"internalType":"uint256[]","name":"shares","type":"uint256[]"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint256","name":"_whitelistMaxMint","type":"uint256"},{"internalType":"uint256","name":"_publicListMaxMint","type":"uint256"},{"internalType":"uint256","name":"_nonReservedMax","type":"uint256"},{"internalType":"uint256","name":"_reservedMax","type":"uint256"},{"internalType":"uint256","name":"_discountedPrice","type":"uint256"},{"internalType":"uint256","name":"_publicTotalMaxMint","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address[]","name":"recipients","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"airdropMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"allowPublicRefunds","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_allow","type":"bool"}],"name":"allowRefund","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"n","type":"uint256"}],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"discountedPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dutchAuctionConfig","outputs":[{"internalType":"uint256","name":"startPoint","type":"uint256"},{"internalType":"uint256","name":"startPrice","type":"uint256"},{"internalType":"uint256","name":"decreaseInterval","type":"uint256"},{"internalType":"uint256","name":"decreaseSize","type":"uint256"},{"internalType":"uint248","name":"numDecreases","type":"uint248"},{"internalType":"enum LinearDutchAuction.AuctionIntervalUnit","name":"unit","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDecreaseInterval","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDecreaseSize","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDiscountRefundAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getNumDescreases","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPublicMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPublicRefundAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRefundTotal","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getStartPrice","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getWhitelistMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getWhitelistRefundAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isAllowedRefund","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isRefund","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"max","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mintPublic","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"name":"mintReserved","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"hash","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mintWhitelist","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"hash","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"uint256","name":"numberOfTokens","type":"uint256"},{"internalType":"uint256","name":"customLimit","type":"uint256"}],"name":"mintWhitelistAmount","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
6000808055600755610100604052602160a08181529062005c4460c03980516200003291600f91602090910190620004ac565b5060405180606001604052806027815260200162005c1d6027913980516200006391601091602090910190620004ac565b506040805160208101918290526000908190526200008491601191620004ac565b503480156200009257600080fd5b5060405162005c6538038062005c65833981016040819052620000b591620006e1565b6040805160c08101825260008152674563918244f400006020820152610384918101919091526706f05b59d3b2000060608201526009608082015260a08101600290526706f05b59d3b200008989601462000114565b60405180910390fd5b825162000129906001906020860190620004ac565b5081516200013f906002906020850190620004ac565b50608052506200015190503362000204565b6200015d828262000256565b50506001600e556014869055601585905560168390556200017f8385620008a4565b60175560006018819055601955601a82905560238190556040518a908a90620001a8906200053b565b620001b5929190620007d1565b604051809103906000f080158015620001d2573d6000803e3d6000fd5b50601b80546001600160a01b0319166001600160a01b0392909216919091179055506200091c98505050505050505050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6008546001600160a01b03163314620002b25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016200010b565b8082608001516001600160f81b0316836060015102836020015103146200032a5760405162461bcd60e51b815260206004820152602560248201527f4c696e656172447574636841756374696f6e3a20696e636f7272656374207265604482015264736572766560d81b60648201526084016200010b565b60008260a0015160028111156200035157634e487b7160e01b600052602160045260246000fd5b1415620003ad5760405162461bcd60e51b8152602060048201526024808201527f4c696e656172447574636841756374696f6e3a20756e737065636966696564206044820152631d5b9a5d60e21b60648201526084016200010b565b6000826040015111620004165760405162461bcd60e51b815260206004820152602a60248201527f4c696e656172447574636841756374696f6e3a207a65726f206465637265617360448201526919481a5b9d195c9d985b60b21b60648201526084016200010b565b815160099081556020830151600a556040830151600b556060830151600c556080830151600d80547fff00000000000000000000000000000000000000000000000000000000000000166001600160f81b03909216918217815560a0850151859392909190600160f81b836002811115620004a157634e487b7160e01b600052602160045260246000fd5b021790555050505050565b828054620004ba90620008c9565b90600052602060002090601f016020900481019282620004de576000855562000529565b82601f10620004f957805160ff191683800117855562000529565b8280016001018555821562000529579182015b82811115620005295782518255916020019190600101906200050c565b506200053792915062000549565b5090565b610b6a80620050b383390190565b5b808211156200053757600081556001016200054a565b600082601f83011262000571578081fd5b815160206200058a62000584836200087e565b6200084b565b80838252828201915082860187848660051b8901011115620005aa578586fd5b855b85811015620005df5781516001600160a01b0381168114620005cc578788fd5b84529284019290840190600101620005ac565b5090979650505050505050565b600082601f830112620005fd578081fd5b815160206200061062000584836200087e565b80838252828201915082860187848660051b890101111562000630578586fd5b855b85811015620005df5781518452928401929084019060010162000632565b600082601f83011262000661578081fd5b81516001600160401b038111156200067d576200067d62000906565b602062000693601f8301601f191682016200084b565b8281528582848701011115620006a7578384fd5b835b83811015620006c6578581018301518282018401528201620006a9565b83811115620006d757848385840101525b5095945050505050565b6000806000806000806000806000806101408b8d03121562000701578586fd5b8a516001600160401b038082111562000718578788fd5b620007268e838f0162000560565b9b5060208d01519150808211156200073c578788fd5b6200074a8e838f01620005ec565b9a5060408d015191508082111562000760578788fd5b6200076e8e838f0162000650565b995060608d015191508082111562000784578788fd5b50620007938d828e0162000650565b97505060808b0151955060a08b0151945060c08b0151935060e08b015192506101008b015191506101208b015190509295989b9194979a5092959850565b604080825283519082018190526000906020906060840190828701845b82811015620008155781516001600160a01b031684529284019290840190600101620007ee565b50505083810382850152845180825285830191830190845b81811015620005df578351835292840192918401916001016200082d565b604051601f8201601f191681016001600160401b038111828210171562000876576200087662000906565b604052919050565b60006001600160401b038211156200089a576200089a62000906565b5060051b60200190565b60008219821115620008c457634e487b7160e01b81526011600452602481fd5b500190565b600181811c90821680620008de57607f821691505b602082108114156200090057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b6080516147356200097e6000396000818161120d015281816112c401528181611335015281816113cc01528181611bc801528181611bfd01528181611c4601528181611c7e01528181612f3601528181612f60015261368601526147356000f3fe6080604052600436106104255760003560e01c8063788183dd11610229578063baffa9031161012e578063d7224ba0116100b6578063e985e9c51161007a578063e985e9c514610bd5578063ea4194dc14610c1e578063efd0cbf914610c3e578063f2fde38b14610c51578063f4aa1b6714610c7157600080fd5b8063d7224ba014610b53578063d73b2a6c14610b69578063d921eb7814610b7f578063e0c5b0ed14610b95578063e214696314610bb557600080fd5b8063c0fa5011116100fd578063c0fa501114610abb578063c85b380d14610adb578063c878813414610afb578063c87b56dd14610b11578063d57e4eae14610b3157600080fd5b8063baffa90314610a59578063bcf161a214610a6e578063bcf754bf14610a83578063c0c3714914610aa557600080fd5b8063a22cb465116101b1578063b27a87b011610180578063b27a87b0146109df578063b413e61a146109f2578063b882bacb14610a13578063b88d4fde14610a26578063b966217f14610a4657600080fd5b8063a22cb4651461096a578063a9501b731461098a578063ab55abf5146109aa578063b1b54e9a146109ca57600080fd5b806385cb593b116101f857806385cb593b146108e45780638da5cb5b146109045780638f3756c2146109225780639097548d1461093557806395d89b411461095557600080fd5b8063788183dd1461084b5780637bd07f8b1461086b578063808d5259146108b9578063846b4193146108cf57600080fd5b80632f745c591161032f578063571d34af116102b75780636ac5db19116102865780636ac5db19146107d557806370a08231146107eb578063715018a61461080b578063722e141d1461082057806375dadb321461083657600080fd5b8063571d34af1461076a578063590e1ae314610780578063631bbbba146107955780636352211e146107b557600080fd5b80634f297ccc116102fe5780634f297ccc146106ec5780634f6ccce71461070257806351b7511514610722578063557007011461073557806355f804b31461074a57600080fd5b80632f745c591461067757806339a2e6591461069757806339ae8c8f146106b757806342842e0e146106cc57600080fd5b80630e56a3c3116103b25780631fe9eabc116103815780631fe9eabc146105e257806320def2a41461060257806323aa0f9b1461062257806323b872dd14610637578063279a669e1461065757600080fd5b80630e56a3c31461056b57806318160ddd1461059857806319165587146105ad5780631a11e20d146105cd57600080fd5b8063057494a1116103f9578063057494a1146104bb57806306fdde03146104db578063081812fc146104fd578063095ea7b3146105355780630a23b7251461055557600080fd5b8062ab1fa31461042a57806301ffc9a71461044c578063022a11b414610481578063035fd8c2146104a5575b600080fd5b34801561043657600080fd5b5061044a6104453660046140bb565b610c92565b005b34801561045857600080fd5b5061046c610467366004613fb6565b610cca565b60405190151581526020015b60405180910390f35b34801561048d57600080fd5b50610497601e5481565b604051908152602001610478565b3480156104b157600080fd5b5061049760235481565b3480156104c757600080fd5b5061044a6104d6366004613e76565b610d37565b3480156104e757600080fd5b506104f0610d7f565b604051610478919061427b565b34801561050957600080fd5b5061051d6105183660046140bb565b610e11565b6040516001600160a01b039091168152602001610478565b34801561054157600080fd5b5061044a610550366004613de3565b610e9c565b34801561056157600080fd5b5061049760185481565b34801561057757600080fd5b50610580610fb4565b6040516001600160401b039091168152602001610478565b3480156105a457600080fd5b50600054610497565b3480156105b957600080fd5b5061044a6105c8366004613cb2565b610fe8565b3480156105d957600080fd5b5061058061104a565b3480156105ee57600080fd5b5061044a6105fd3660046140bb565b611084565b34801561060e57600080fd5b5061044a61061d3660046140bb565b6110b3565b34801561062e57600080fd5b506104976110e2565b34801561064357600080fd5b5061044a610652366004613d06565b61116f565b34801561066357600080fd5b5061044a610672366004613e0e565b61117a565b34801561068357600080fd5b50610497610692366004613de3565b61141f565b3480156106a357600080fd5b5061044a6106b23660046140bb565b61158c565b3480156106c357600080fd5b506104976115bb565b3480156106d857600080fd5b5061044a6106e7366004613d06565b61161c565b3480156106f857600080fd5b5061049760195481565b34801561070e57600080fd5b5061049761071d3660046140bb565b611637565b61044a610730366004613f15565b611699565b34801561074157600080fd5b50610497611869565b34801561075657600080fd5b5061044a610765366004613fee565b6118eb565b34801561077657600080fd5b5061049760155481565b34801561078c57600080fd5b5061044a61192c565b3480156107a157600080fd5b5061044a6107b03660046140d3565b611b67565b3480156107c157600080fd5b5061051d6107d03660046140bb565b611cba565b3480156107e157600080fd5b5061049760175481565b3480156107f757600080fd5b50610497610806366004613cb2565b611ccc565b34801561081757600080fd5b5061044a611d5d565b34801561082c57600080fd5b5061049760145481565b34801561084257600080fd5b506104f0611d93565b34801561085757600080fd5b5061044a6108663660046140bb565b611e21565b34801561087757600080fd5b50600954600a54600b54600c54600d546108a794939291906001600160f81b03811690600160f81b900460ff1686565b604051610478969594939291906144ae565b3480156108c557600080fd5b50610497601d5481565b3480156108db57600080fd5b50610497611e50565b3480156108f057600080fd5b5061044a6108ff366004613fee565b611efc565b34801561091057600080fd5b506008546001600160a01b031661051d565b61044a610930366004613f62565b611f39565b34801561094157600080fd5b506104976109503660046140bb565b611ff3565b34801561096157600080fd5b506104f0612057565b34801561097657600080fd5b5061044a610985366004613daf565b612066565b34801561099657600080fd5b5061044a6109a5366004613e76565b61212b565b3480156109b657600080fd5b5061044a6109c5366004613e76565b612173565b3480156109d657600080fd5b506105806121bb565b61044a6109ed366004613f15565b6121ee565b3480156109fe57600080fd5b50601b5461046c90600160a81b900460ff1681565b61044a610a213660046140bb565b6122ae565b348015610a3257600080fd5b5061044a610a41366004613d46565b61236d565b61044a610a54366004613e90565b6123a0565b348015610a6557600080fd5b50610580612577565b348015610a7a57600080fd5b506104f06125b1565b348015610a8f57600080fd5b5033600090815260136020526040902054610497565b348015610ab157600080fd5b5061049760245481565b348015610ac757600080fd5b5061044a610ad6366004613e76565b6125be565b348015610ae757600080fd5b5061044a610af6366004614033565b612606565b348015610b0757600080fd5b50610497601a5481565b348015610b1d57600080fd5b506104f0610b2c3660046140bb565b61280a565b348015610b3d57600080fd5b5033600090815260126020526040902054610497565b348015610b5f57600080fd5b5061049760075481565b348015610b7557600080fd5b5061049760165481565b348015610b8b57600080fd5b50610497601c5481565b348015610ba157600080fd5b5061044a610bb03660046140bb565b61283e565b348015610bc157600080fd5b5061044a610bd03660046140bb565b61286d565b348015610be157600080fd5b5061046c610bf0366004613cce565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b348015610c2a57600080fd5b5061044a610c39366004613fee565b61289c565b61044a610c4c3660046140bb565b6128d9565b348015610c5d57600080fd5b5061044a610c6c366004613cb2565b6129b9565b348015610c7d57600080fd5b50601b5461046c90600160a01b900460ff1681565b6008546001600160a01b03163314610cc55760405162461bcd60e51b8152600401610cbc90614354565b60405180910390fd5b601a55565b60006001600160e01b031982166380ac58cd60e01b1480610cfb57506001600160e01b03198216635b5e139f60e01b145b80610d1657506001600160e01b0319821663780e9d6360e01b145b80610d3157506301ffc9a760e01b6001600160e01b03198316145b92915050565b6008546001600160a01b03163314610d615760405162461bcd60e51b8152600401610cbc90614354565b601b8054911515600160a01b0260ff60a01b19909216919091179055565b606060018054610d8e90614628565b80601f0160208091040260200160405190810160405280929190818152602001828054610dba90614628565b8015610e075780601f10610ddc57610100808354040283529160200191610e07565b820191906000526020600020905b815481529060010190602001808311610dea57829003601f168201915b5050505050905090565b6000610e1e826000541190565b610e805760405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201526c3c34b9ba32b73a103a37b5b2b760991b6064820152608401610cbc565b506000908152600560205260409020546001600160a01b031690565b6000610ea782611cba565b9050806001600160a01b0316836001600160a01b03161415610f165760405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201526132b960f11b6064820152608401610cbc565b336001600160a01b0382161480610f325750610f328133610bf0565b610fa45760405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c000000000000006064820152608401610cbc565b610faf838383612a51565b505050565b6008546000906001600160a01b03163314610fe15760405162461bcd60e51b8152600401610cbc90614354565b5061038490565b601b54604051631916558760e01b81526001600160a01b03838116600483015290911690631916558790602401600060405180830381600087803b15801561102f57600080fd5b505af1158015611043573d6000803e3d6000fd5b5050505050565b6008546000906001600160a01b031633146110775760405162461bcd60e51b8152600401610cbc90614354565b506706f05b59d3b2000090565b6008546001600160a01b031633146110ae5760405162461bcd60e51b8152600401610cbc90614354565b601755565b6008546001600160a01b031633146110dd5760405162461bcd60e51b8152600401610cbc90614354565b602355565b601b54600090600160b81b900460ff1680156111285750601d54336000908152602260205260409020546111169190614587565b33600090815260216020526040902054115b1561116957601d543360009081526022602052604090205461114a9190614587565b3360009081526021602052604090205461116491906145ce565b905090565b50600090565b610faf838383612aad565b6008546001600160a01b031633146111a45760405162461bcd60e51b8152600401610cbc90614354565b8260005b81811015611417576016548484838181106111d357634e487b7160e01b600052603260045260246000fd5b905060200201356111e360005490565b6111ed919061455b565b111561120b5760405162461bcd60e51b8152600401610cbc90614413565b7f000000000000000000000000000000000000000000000000000000000000000084848381811061124c57634e487b7160e01b600052603260045260246000fd5b9050602002013510156112c2576112bd86868381811061127c57634e487b7160e01b600052603260045260246000fd5b90506020020160208101906112919190613cb2565b8585848181106112b157634e487b7160e01b600052603260045260246000fd5b90506020020135612e2f565b611405565b7f000000000000000000000000000000000000000000000000000000000000000084848381811061130357634e487b7160e01b600052603260045260246000fd5b90506020020135611314919061467e565b156113315760405162461bcd60e51b8152600401610cbc906142b7565b60007f000000000000000000000000000000000000000000000000000000000000000085858481811061137457634e487b7160e01b600052603260045260246000fd5b905060200201356113859190614573565b905060005b81811015611402576113f08888838181106113b557634e487b7160e01b600052603260045260246000fd5b90506020020160208101906113ca9190613cb2565b7f0000000000000000000000000000000000000000000000000000000000000000612e2f565b806113fa81614663565b91505061138a565b50505b8061140f81614663565b9150506111a8565b505050505050565b600061142a83611ccc565b82106114835760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e604482015261647360f01b6064820152608401610cbc565b600080549080805b8381101561152c576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b031691830191909152156114dd57805192505b876001600160a01b0316836001600160a01b03161415611519578684141561150b57509350610d3192505050565b8361151581614663565b9450505b508061152481614663565b91505061148b565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201526d0deeedccae440c4f240d2dcc8caf60931b6064820152608401610cbc565b6008546001600160a01b031633146115b65760405162461bcd60e51b8152600401610cbc90614354565b601555565b601b54600090600160a01b900460ff1661160c5760405162461bcd60e51b81526020600482015260126024820152711c99599d5b99081b9bdd08185b1b1bddd95960721b6044820152606401610cbc565b601d54601e546111649190614587565b610faf8383836040518060200160405280600081525061236d565b6000805482106116955760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f756044820152626e647360e81b6064820152608401610cbc565b5090565b6116a38383612e49565b6116bf5760405162461bcd60e51b8152600401610cbc90614436565b82611754601080546116d090614628565b80601f01602080910402602001604051908101604052809291908181526020018280546116fc90614628565b80156117495780601f1061171e57610100808354040283529160200191611749565b820191906000526020600020905b81548152906001019060200180831161172c57829003601f168201915b505050505033612e81565b146117715760405162461bcd60e51b8152600401610cbc90614304565b6014543360009081526012602052604090205461178f90839061455b565b11156117ad5760405162461bcd60e51b8152600401610cbc906143dc565b3481601a546117bc9190614587565b146117d95760405162461bcd60e51b8152600401610cbc9061428e565b33600090815260126020526040812080548392906117f890849061455b565b9091555050336000908152602260205260408120805483929061181c90849061455b565b9250508190555080601e6000828254611835919061455b565b9091555050336000908152602160205260408120805434929061185990849061455b565b90915550610faf90503382612e2f565b601b54600090600160a81b900460ff1680156118af5750601d543360009081526013602052604090205461189d9190614587565b336000908152601f6020526040902054115b1561116957601d54336000908152601360205260409020546118d19190614587565b336000908152601f602052604090205461116491906145ce565b6008546001600160a01b031633146119155760405162461bcd60e51b8152600401610cbc90614354565b8051611928906011906020840190613b21565b5050565b6002600e54141561194f5760405162461bcd60e51b8152600401610cbc90614477565b6002600e55601b54600160a01b900460ff1615156001146119a75760405162461bcd60e51b81526020600482015260126024820152711c99599d5b99081b9bdd08185b1b1bddd95960721b6044820152606401610cbc565b6000806119b2611869565b905080156119ed57336000908152601f602090815260408083208390556013909152902054601e5491925082916119e991906145ce565b601e555b6119f5611e50565b90508015611a4857611a07818361455b565b336000908152602080805260408083208390556022825280832054601290925290912054919350611a37916145ce565b601e54611a4491906145ce565b601e555b611a506110e2565b90508015611a9257611a62818361455b565b3360009081526021602090815260408083208390556022909152902054601e54919350611a8e916145ce565b601e555b81611acc5760405162461bcd60e51b815260206004820152600a6024820152696e6f20726566756e647360b01b6044820152606401610cbc565b604051600090339084908381818185875af1925050503d8060008114611b0e576040519150601f19603f3d011682016040523d82523d6000602084013e611b13565b606091505b5090915050600181151514611b5d5760405162461bcd60e51b815260206004820152601060248201526f19985a5b1959081d1bc81c99599d5b9960821b6044820152606401610cbc565b50506001600e5550565b6008546001600160a01b03163314611b915760405162461bcd60e51b8152600401610cbc90614354565b60165482611b9e60005490565b611ba8919061455b565b1115611bc65760405162461bcd60e51b8152600401610cbc90614413565b7f0000000000000000000000000000000000000000000000000000000000000000821015611bf8576119288183612e2f565b611c227f00000000000000000000000000000000000000000000000000000000000000008361467e565b15611c3f5760405162461bcd60e51b8152600401610cbc906142b7565b6000611c6b7f000000000000000000000000000000000000000000000000000000000000000084614573565b905060005b81811015611cb457611ca2837f0000000000000000000000000000000000000000000000000000000000000000612e2f565b80611cac81614663565b915050611c70565b50505050565b6000611cc582612eb4565b5192915050565b60006001600160a01b038216611d385760405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b6064820152608401610cbc565b506001600160a01b03166000908152600460205260409020546001600160801b031690565b6008546001600160a01b03163314611d875760405162461bcd60e51b8152600401610cbc90614354565b611d91600061305d565b565b600f8054611da090614628565b80601f0160208091040260200160405190810160405280929190818152602001828054611dcc90614628565b8015611e195780601f10611dee57610100808354040283529160200191611e19565b820191906000526020600020905b815481529060010190602001808311611dfc57829003601f168201915b505050505081565b6008546001600160a01b03163314611e4b5760405162461bcd60e51b8152600401610cbc90614354565b601d55565b601b54600090600160b01b900460ff168015611eab5750601d5433600090815260226020908152604080832054601290925290912054611e9091906145ce565b611e9a9190614587565b336000908152602080526040902054115b1561116957601d5433600090815260226020908152604080832054601290925290912054611ed991906145ce565b611ee39190614587565b33600090815260208052604090205461116491906145ce565b6008546001600160a01b03163314611f265760405162461bcd60e51b8152600401610cbc90614354565b805161192890600f906020840190613b21565b611f438484612e49565b611f5f5760405162461bcd60e51b8152600401610cbc90614436565b83611f6b3384846130af565b14611f885760405162461bcd60e51b8152600401610cbc90614304565b60145433600090815260126020526040902054611fa690839061455b565b1115611fc45760405162461bcd60e51b8152600401610cbc906143dc565b3360009081526012602052604081208054839290611fe390849061455b565b90915550611cb4905082826130fa565b600c54600b5460098054600093919261202d9161201090426145ce565b61201a9190614573565b60048401546001600160f81b031661326c565b6120379190614587565b816001015461204691906145ce565b6120509084614587565b9392505050565b606060028054610d8e90614628565b6001600160a01b0382163314156120bf5760405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c65720000000000006044820152606401610cbc565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6008546001600160a01b031633146121555760405162461bcd60e51b8152600401610cbc90614354565b601b8054911515600160a81b0260ff60a81b19909216919091179055565b6008546001600160a01b0316331461219d5760405162461bcd60e51b8152600401610cbc90614354565b601b8054911515600160b01b0260ff60b01b19909216919091179055565b6008546000906001600160a01b031633146121e85760405162461bcd60e51b8152600401610cbc90614354565b50600990565b6121f88383612e49565b6122145760405162461bcd60e51b8152600401610cbc90614436565b82612225600f80546116d090614628565b146122425760405162461bcd60e51b8152600401610cbc90614304565b6014543360009081526012602052604090205461226090839061455b565b111561227e5760405162461bcd60e51b8152600401610cbc906143dc565b336000908152601260205260408120805483929061229d90849061455b565b90915550610faf9050816000613282565b6008546001600160a01b031633146122d85760405162461bcd60e51b8152600401610cbc90614354565b601b546040516000916001600160a01b03169083908381818185875af1925050503d8060008114612325576040519150601f19603f3d011682016040523d82523d6000602084013e61232a565b606091505b50509050806119285760405162461bcd60e51b815260206004820152600f60248201526e1d1c985b9cd9995c8819985a5b1959608a1b6044820152606401610cbc565b612378848484612aad565b6123848484848461338b565b611cb45760405162461bcd60e51b8152600401610cbc90614389565b6123e08585858080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612e4992505050565b6123fc5760405162461bcd60e51b8152600401610cbc90614436565b846124926010805461240d90614628565b80601f016020809104026020016040519081016040528092919081815260200182805461243990614628565b80156124865780601f1061245b57610100808354040283529160200191612486565b820191906000526020600020905b81548152906001019060200180831161246957829003601f168201915b50505050503384613499565b146124cf5760405162461bcd60e51b815260206004820152600d60248201526c2430b9b41034b73b30b634b21760991b6044820152606401610cbc565b3360009081526012602052604090205481906124ec90849061455b565b111561250a5760405162461bcd60e51b8152600401610cbc906143dc565b6014543360009081526012602052604090205461252890849061455b565b11156125465760405162461bcd60e51b8152600401610cbc906143dc565b336000908152601260205260408120805484929061256590849061455b565b9091555050601a5461104390836130fa565b6008546000906001600160a01b031633146125a45760405162461bcd60e51b8152600401610cbc90614354565b50674563918244f4000090565b60108054611da090614628565b6008546001600160a01b031633146125e85760405162461bcd60e51b8152600401610cbc90614354565b601b8054911515600160b81b0260ff60b81b19909216919091179055565b6008546001600160a01b031633146126305760405162461bcd60e51b8152600401610cbc90614354565b8082608001516001600160f81b0316836060015102836020015103146126a65760405162461bcd60e51b815260206004820152602560248201527f4c696e656172447574636841756374696f6e3a20696e636f7272656374207265604482015264736572766560d81b6064820152608401610cbc565b60008260a0015160028111156126cc57634e487b7160e01b600052602160045260246000fd5b14156127265760405162461bcd60e51b8152602060048201526024808201527f4c696e656172447574636841756374696f6e3a20756e737065636966696564206044820152631d5b9a5d60e21b6064820152608401610cbc565b600082604001511161278d5760405162461bcd60e51b815260206004820152602a60248201527f4c696e656172447574636841756374696f6e3a207a65726f206465637265617360448201526919481a5b9d195c9d985b60b21b6064820152608401610cbc565b815160099081556020830151600a556040830151600b556060830151600c556080830151600d80546001600160f81b0319166001600160f81b03909216918217815560a0850151859392909190600160f81b8360028111156127ff57634e487b7160e01b600052602160045260246000fd5b021790555050505050565b60606011612817836134b0565b6040516020016128289291906141ab565b6040516020818303038152906040529050919050565b6008546001600160a01b031633146128685760405162461bcd60e51b8152600401610cbc90614354565b600955565b6008546001600160a01b031633146128975760405162461bcd60e51b8152600401610cbc90614354565b601455565b6008546001600160a01b031633146128c65760405162461bcd60e51b8152600401610cbc90614354565b8051611928906010906020840190613b21565b6015543360009081526012602090815260408083205460139092529091205483916129039161455b565b61290d919061455b565b111561292b5760405162461bcd60e51b8152600401610cbc906143dc565b806024600082825461293d919061455b565b909155505060235460245411156129865760405162461bcd60e51b815260206004820152600d60248201526c195e18d9595908185b5bdd5b9d609a1b6044820152606401610cbc565b33600090815260136020526040812080548392906129a590849061455b565b909155506129b69050816001613282565b50565b6008546001600160a01b031633146129e35760405162461bcd60e51b8152600401610cbc90614354565b6001600160a01b038116612a485760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610cbc565b6129b68161305d565b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000612ab882612eb4565b80519091506000906001600160a01b0316336001600160a01b03161480612aef575033612ae484610e11565b6001600160a01b0316145b80612b0157508151612b019033610bf0565b905080612b6b5760405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610cbc565b846001600160a01b031682600001516001600160a01b031614612bdf5760405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f72726563746044820152651037bbb732b960d11b6064820152608401610cbc565b6001600160a01b038416612c435760405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608401610cbc565b612c536000848460000151612a51565b6001600160a01b0385166000908152600460205260408120805460019290612c859084906001600160801b03166145a6565b82546101009290920a6001600160801b038181021990931691831602179091556001600160a01b03861660009081526004602052604081208054600194509092612cd191859116614530565b82546001600160801b039182166101009390930a9283029190920219909116179055506040805180820182526001600160a01b0380871682526001600160401b03428116602080850191825260008981526003909152948520935184549151909216600160a01b026001600160e01b03199091169190921617179055612d5884600161455b565b6000818152600360205260409020549091506001600160a01b0316612de957612d82816000541190565b15612de95760408051808201825284516001600160a01b0390811682526020808701516001600160401b039081168285019081526000878152600390935294909120925183549451909116600160a01b026001600160e01b03199094169116179190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611417565b6119288282604051806020016040528060008152506135c9565b6000612e5d6008546001600160a01b031690565b6001600160a01b0316612e7084846138a3565b6001600160a01b0316149392505050565b60008282604051602001612e9692919061413f565b60405160208183030381529060405280519060200120905092915050565b6040805180820190915260008082526020820152612ed3826000541190565b612f325760405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e657869736044820152693a32b73a103a37b5b2b760b11b6064820152608401610cbc565b60007f00000000000000000000000000000000000000000000000000000000000000008310612f9357612f857f0000000000000000000000000000000000000000000000000000000000000000846145ce565b612f9090600161455b565b90505b825b818110612ffc576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b03169183019190915215612fe957949350505050565b5080612ff481614611565b915050612f95565b5060405162461bcd60e51b815260206004820152602f60248201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560448201526e1037bbb732b91037b3103a37b5b2b760891b6064820152608401610cbc565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6040516001600160601b0319606085901b16602082015260348101839052605481018290526000906074015b6040516020818303038152906040528051906020012090509392505050565b6002600e54141561311d5760405162461bcd60e51b8152600401610cbc90614477565b6002600e556017548161312f60005490565b613139919061455b565b11156131575760405162461bcd60e51b8152600401610cbc90614413565b60006131638284614587565b9050348111156131855760405162461bcd60e51b8152600401610cbc9061428e565b61318f3383612e2f565b81601e60008282546131a1919061455b565b9091555050336000908152602080526040812080548392906131c490849061455b565b909155505034811015611b5d576000335b905060006131e383346145ce565b9050600080836001600160a01b03168360405160006040518083038185875af1925050503d8060008114613233576040519150601f19603f3d011682016040523d82523d6000602084013e613238565b606091505b509150915081819061325d5760405162461bcd60e51b8152600401610cbc919061427b565b505050505050506001600e5550565b600081831061327b5781612050565b5090919050565b6002600e5414156132a55760405162461bcd60e51b8152600401610cbc90614477565b6002600e55601754826132b760005490565b6132c1919061455b565b11156132df5760405162461bcd60e51b8152600401610cbc90614413565b60006132ea83611ff3565b90503481111561330c5760405162461bcd60e51b8152600401610cbc9061428e565b6133163384612e2f565b82601e6000828254613328919061455b565b9091555050811561335d57336000908152601f60205260408120805483929061335290849061455b565b9091555061337b9050565b336000908152602080526040812080548392906131c490849061455b565b80341115611b5d576000336131d5565b60006001600160a01b0384163b1561348d57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906133cf903390899088908890600401614248565b602060405180830381600087803b1580156133e957600080fd5b505af1925050508015613419575060408051601f3d908101601f1916820190925261341691810190613fd2565b60015b613473573d808015613447576040519150601f19603f3d011682016040523d82523d6000602084013e61344c565b606091505b50805161346b5760405162461bcd60e51b8152600401610cbc90614389565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050613491565b5060015b949350505050565b60008383836040516020016130db93929190614171565b6060816134d45750506040805180820190915260018152600360fc1b602082015290565b8160005b81156134fe57806134e881614663565b91506134f79050600a83614573565b91506134d8565b6000816001600160401b0381111561352657634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613550576020820181803683370190505b5090505b8415613491576135656001836145ce565b9150613572600a8661467e565b61357d90603061455b565b60f81b8183815181106135a057634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506135c2600a86614573565b9450613554565b6000546001600160a01b03841661362c5760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610cbc565b613637816000541190565b156136845760405162461bcd60e51b815260206004820152601d60248201527f455243373231413a20746f6b656e20616c7265616479206d696e7465640000006044820152606401610cbc565b7f00000000000000000000000000000000000000000000000000000000000000008311156136ff5760405162461bcd60e51b815260206004820152602260248201527f455243373231413a207175616e7469747920746f206d696e7420746f6f2068696044820152610ced60f31b6064820152608401610cbc565b6001600160a01b0384166000908152600460209081526040918290208251808401845290546001600160801b038082168352600160801b909104169181019190915281518083019092528051909190819061375b908790614530565b6001600160801b031681526020018583602001516137799190614530565b6001600160801b039081169091526001600160a01b0380881660008181526004602090815260408083208751978301518716600160801b029790961696909617909455845180860186529182526001600160401b034281168386019081528883526003909552948120915182549451909516600160a01b026001600160e01b031990941694909216939093179190911790915582905b858110156138985760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a461385c600088848861338b565b6138785760405162461bcd60e51b8152600401610cbc90614389565b8161388281614663565b925050808061389090614663565b91505061380f565b506000819055611417565b6000612050838360008151604114156138de5760208201516040830151606084015160001a6138d48682858561394e565b9350505050610d31565b81516040141561390657602082015160408301516138fd858383613af7565b92505050610d31565b60405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610cbc565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08211156139cb5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610cbc565b8360ff16601b14806139e057508360ff16601c145b613a375760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610cbc565b6040805160008082526020820180845288905260ff871692820192909252606081018590526080810184905260019060a0016020604051602081039080840390855afa158015613a8b573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116613aee5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610cbc565b95945050505050565b60006001600160ff1b03821660ff83901c601b01613b178682878561394e565b9695505050505050565b828054613b2d90614628565b90600052602060002090601f016020900481019282613b4f5760008555613b95565b82601f10613b6857805160ff1916838001178555613b95565b82800160010185558215613b95579182015b82811115613b95578251825591602001919060010190613b7a565b506116959291505b808211156116955760008155600101613b9d565b60006001600160401b0380841115613bcb57613bcb6146be565b604051601f8501601f19908116603f01168101908282118183101715613bf357613bf36146be565b81604052809350858152868686011115613c0c57600080fd5b858560208301376000602087830101525050509392505050565b60008083601f840112613c37578182fd5b5081356001600160401b03811115613c4d578182fd5b6020830191508360208260051b8501011115613c6857600080fd5b9250929050565b80358015158114613c7f57600080fd5b919050565b600082601f830112613c94578081fd5b61205083833560208501613bb1565b803560038110613c7f57600080fd5b600060208284031215613cc3578081fd5b8135612050816146d4565b60008060408385031215613ce0578081fd5b8235613ceb816146d4565b91506020830135613cfb816146d4565b809150509250929050565b600080600060608486031215613d1a578081fd5b8335613d25816146d4565b92506020840135613d35816146d4565b929592945050506040919091013590565b60008060008060808587031215613d5b578081fd5b8435613d66816146d4565b93506020850135613d76816146d4565b92506040850135915060608501356001600160401b03811115613d97578182fd5b613da387828801613c84565b91505092959194509250565b60008060408385031215613dc1578182fd5b8235613dcc816146d4565b9150613dda60208401613c6f565b90509250929050565b60008060408385031215613df5578182fd5b8235613e00816146d4565b946020939093013593505050565b60008060008060408587031215613e23578182fd5b84356001600160401b0380821115613e39578384fd5b613e4588838901613c26565b90965094506020870135915080821115613e5d578384fd5b50613e6a87828801613c26565b95989497509550505050565b600060208284031215613e87578081fd5b61205082613c6f565b600080600080600060808688031215613ea7578283fd5b8535945060208601356001600160401b0380821115613ec4578485fd5b818801915088601f830112613ed7578485fd5b813581811115613ee5578586fd5b896020828501011115613ef6578586fd5b9699602092909201985095966040810135965060600135945092505050565b600080600060608486031215613f29578081fd5b8335925060208401356001600160401b03811115613f45578182fd5b613f5186828701613c84565b925050604084013590509250925092565b60008060008060808587031215613f77578182fd5b8435935060208501356001600160401b03811115613f93578283fd5b613f9f87828801613c84565b949794965050505060408301359260600135919050565b600060208284031215613fc7578081fd5b8135612050816146e9565b600060208284031215613fe3578081fd5b8151612050816146e9565b600060208284031215613fff578081fd5b81356001600160401b03811115614014578182fd5b8201601f81018413614024578182fd5b61349184823560208401613bb1565b60008082840360e0811215614046578283fd5b60c0811215614053578283fd5b5061405c614508565b8335815260208085013590820152604080850135908201526060808501359082015260808401356001600160f81b0381168114614097578384fd5b60808201526140a860a08501613ca3565b60a08201529460c0939093013593505050565b6000602082840312156140cc578081fd5b5035919050565b600080604083850312156140e5578182fd5b823591506020830135613cfb816146d4565b6000815180845261410f8160208601602086016145e5565b601f01601f19169290920160200192915050565b600081516141358185602086016145e5565b9290920192915050565b600083516141518184602088016145e5565b60609390931b6001600160601b0319169190920190815260140192915050565b600084516141838184602089016145e5565b60609490941b6001600160601b03191691909301908152601481019190915260340192915050565b600080845482600182811c9150808316806141c757607f831692505b60208084108214156141e757634e487b7160e01b87526022600452602487fd5b8180156141fb576001811461420c57614238565b60ff19861689528489019650614238565b60008b815260209020885b868110156142305781548b820152908501908301614217565b505084890196505b505050505050613aee8185614123565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613b17908301846140f7565b60208152600061205060208301846140f7565b6020808252600f908201526e24b73b30b634b21030b6b7bab73a1760891b604082015260600190565b6020808252602d908201527f43616e206f6e6c79206d696e742061206d756c7469706c65206f66207468652060408201526c36b0bc2130ba31b429b4bd329760991b606082015260800190565b60208082526030908201527f5468652061646472657373206861736820646f6573206e6f74206d617463682060408201526f3a34329039b4b3b732b2103430b9b41760811b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526033908201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260408201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b606082015260800190565b6020808252601a908201527f596f752063616e6e6f74206d696e742074686973206d616e792e000000000000604082015260600190565b60208082526009908201526829b7b6321037baba1760b91b604082015260600190565b60208082526021908201527f5468697320686173682773207369676e617475726520697320696e76616c69646040820152601760f91b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b8681526020810186905260408101859052606081018490526001600160f81b038316608082015260c08101600383106144f757634e487b7160e01b600052602160045260246000fd5b8260a0830152979650505050505050565b60405160c081016001600160401b038111828210171561452a5761452a6146be565b60405290565b60006001600160801b0380831681851680830382111561455257614552614692565b01949350505050565b6000821982111561456e5761456e614692565b500190565b600082614582576145826146a8565b500490565b60008160001904831182151516156145a1576145a1614692565b500290565b60006001600160801b03838116908316818110156145c6576145c6614692565b039392505050565b6000828210156145e0576145e0614692565b500390565b60005b838110156146005781810151838201526020016145e8565b83811115611cb45750506000910152565b60008161462057614620614692565b506000190190565b600181811c9082168061463c57607f821691505b6020821081141561465d57634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561467757614677614692565b5060010190565b60008261468d5761468d6146a8565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146129b657600080fd5b6001600160e01b0319811681146129b657600080fdfea264697066735822122086cb706c8b538d7644db3d443c5bc39febdadb83f9f0f189b5a283e98fddb9f564736f6c63430008040033608060405260405162000b6a38038062000b6a8339810160408190526200002691620003db565b8051825114620000985760405162461bcd60e51b815260206004820152603260248201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726044820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b60648201526084015b60405180910390fd5b6000825111620000eb5760405162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f2070617965657300000000000060448201526064016200008f565b60005b82518110156200016f576200015a8382815181106200011d57634e487b7160e01b600052603260045260246000fd5b60200260200101518383815181106200014657634e487b7160e01b600052603260045260246000fd5b60200260200101516200017860201b60201c565b8062000166816200052c565b915050620000ee565b50505062000576565b6001600160a01b038216620001e55760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b60648201526084016200008f565b60008111620002375760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a2073686172657320617265203000000060448201526064016200008f565b6001600160a01b03821660009081526002602052604090205415620002b35760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b60648201526084016200008f565b60048054600181019091557f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0180546001600160a01b0319166001600160a01b0384169081179091556000908152600260205260408120829055546200031b90829062000511565b600055604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b600082601f83011262000375578081fd5b815160206200038e6200038883620004eb565b620004b8565b80838252828201915082860187848660051b8901011115620003ae578586fd5b855b85811015620003ce57815184529284019290840190600101620003b0565b5090979650505050505050565b60008060408385031215620003ee578182fd5b82516001600160401b038082111562000405578384fd5b818501915085601f83011262000419578384fd5b815160206200042c6200038883620004eb565b8083825282820191508286018a848660051b89010111156200044c578889fd5b8896505b84871015620004855780516001600160a01b03811681146200047057898afd5b83526001969096019591830191830162000450565b50918801519196509093505050808211156200049f578283fd5b50620004ae8582860162000364565b9150509250929050565b604051601f8201601f191681016001600160401b0381118282101715620004e357620004e362000560565b604052919050565b60006001600160401b0382111562000507576200050762000560565b5060051b60200190565b600082198211156200052757620005276200054a565b500190565b60006000198214156200054357620005436200054a565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6105e480620005866000396000f3fe6080604052600436106100595760003560e01c806319165587146100a75780633a98ef39146100c95780638b83209b146100ed5780639852595c14610125578063ce7c2ac21461015b578063e33b7de31461019157600080fd5b366100a2577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b3480156100b357600080fd5b506100c76100c23660046104d7565b6101a6565b005b3480156100d557600080fd5b506000545b6040519081526020015b60405180910390f35b3480156100f957600080fd5b5061010d6101083660046104fa565b61037b565b6040516001600160a01b0390911681526020016100e4565b34801561013157600080fd5b506100da6101403660046104d7565b6001600160a01b031660009081526003602052604090205490565b34801561016757600080fd5b506100da6101763660046104d7565b6001600160a01b031660009081526002602052604090205490565b34801561019d57600080fd5b506001546100da565b6001600160a01b03811660009081526002602052604090205461021f5760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201526573686172657360d01b60648201526084015b60405180910390fd5b60006001544761022f9190610512565b6001600160a01b03831660009081526003602090815260408083205483546002909352908320549394509192610265908561054a565b61026f919061052a565b6102799190610569565b9050806102dc5760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201526a191d59481c185e5b595b9d60aa1b6064820152608401610216565b6001600160a01b038316600090815260036020526040902054610300908290610512565b6001600160a01b038416600090815260036020526040902055600154610327908290610512565b60015561033483826103b9565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b60006004828154811061039e57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031692915050565b804710156104095760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610216565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610456576040519150601f19603f3d011682016040523d82523d6000602084013e61045b565b606091505b50509050806104d25760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610216565b505050565b6000602082840312156104e8578081fd5b81356104f381610596565b9392505050565b60006020828403121561050b578081fd5b5035919050565b6000821982111561052557610525610580565b500190565b60008261054557634e487b7160e01b81526012600452602481fd5b500490565b600081600019048311821515161561056457610564610580565b500290565b60008282101561057b5761057b610580565b500390565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b03811681146105ab57600080fd5b5056fea2646970667358221220c96491603802a35d8468b85d1304c5db15afa93e123878731b5049f1e77eb80d64736f6c6343000804003353756e646179204a6f75726e616c20446973636f756e74656420566572696669636174696f6e3a53756e646179204a6f75726e616c204261736520566572696669636174696f6e3a0000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004d2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000542c918e38bfa75f1148a08d0cf27ce67a860dcb00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000001a5365637265742047617264656e202d20536563726574204b657900000000000000000000000000000000000000000000000000000000000000000000000000045347534b00000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106104255760003560e01c8063788183dd11610229578063baffa9031161012e578063d7224ba0116100b6578063e985e9c51161007a578063e985e9c514610bd5578063ea4194dc14610c1e578063efd0cbf914610c3e578063f2fde38b14610c51578063f4aa1b6714610c7157600080fd5b8063d7224ba014610b53578063d73b2a6c14610b69578063d921eb7814610b7f578063e0c5b0ed14610b95578063e214696314610bb557600080fd5b8063c0fa5011116100fd578063c0fa501114610abb578063c85b380d14610adb578063c878813414610afb578063c87b56dd14610b11578063d57e4eae14610b3157600080fd5b8063baffa90314610a59578063bcf161a214610a6e578063bcf754bf14610a83578063c0c3714914610aa557600080fd5b8063a22cb465116101b1578063b27a87b011610180578063b27a87b0146109df578063b413e61a146109f2578063b882bacb14610a13578063b88d4fde14610a26578063b966217f14610a4657600080fd5b8063a22cb4651461096a578063a9501b731461098a578063ab55abf5146109aa578063b1b54e9a146109ca57600080fd5b806385cb593b116101f857806385cb593b146108e45780638da5cb5b146109045780638f3756c2146109225780639097548d1461093557806395d89b411461095557600080fd5b8063788183dd1461084b5780637bd07f8b1461086b578063808d5259146108b9578063846b4193146108cf57600080fd5b80632f745c591161032f578063571d34af116102b75780636ac5db19116102865780636ac5db19146107d557806370a08231146107eb578063715018a61461080b578063722e141d1461082057806375dadb321461083657600080fd5b8063571d34af1461076a578063590e1ae314610780578063631bbbba146107955780636352211e146107b557600080fd5b80634f297ccc116102fe5780634f297ccc146106ec5780634f6ccce71461070257806351b7511514610722578063557007011461073557806355f804b31461074a57600080fd5b80632f745c591461067757806339a2e6591461069757806339ae8c8f146106b757806342842e0e146106cc57600080fd5b80630e56a3c3116103b25780631fe9eabc116103815780631fe9eabc146105e257806320def2a41461060257806323aa0f9b1461062257806323b872dd14610637578063279a669e1461065757600080fd5b80630e56a3c31461056b57806318160ddd1461059857806319165587146105ad5780631a11e20d146105cd57600080fd5b8063057494a1116103f9578063057494a1146104bb57806306fdde03146104db578063081812fc146104fd578063095ea7b3146105355780630a23b7251461055557600080fd5b8062ab1fa31461042a57806301ffc9a71461044c578063022a11b414610481578063035fd8c2146104a5575b600080fd5b34801561043657600080fd5b5061044a6104453660046140bb565b610c92565b005b34801561045857600080fd5b5061046c610467366004613fb6565b610cca565b60405190151581526020015b60405180910390f35b34801561048d57600080fd5b50610497601e5481565b604051908152602001610478565b3480156104b157600080fd5b5061049760235481565b3480156104c757600080fd5b5061044a6104d6366004613e76565b610d37565b3480156104e757600080fd5b506104f0610d7f565b604051610478919061427b565b34801561050957600080fd5b5061051d6105183660046140bb565b610e11565b6040516001600160a01b039091168152602001610478565b34801561054157600080fd5b5061044a610550366004613de3565b610e9c565b34801561056157600080fd5b5061049760185481565b34801561057757600080fd5b50610580610fb4565b6040516001600160401b039091168152602001610478565b3480156105a457600080fd5b50600054610497565b3480156105b957600080fd5b5061044a6105c8366004613cb2565b610fe8565b3480156105d957600080fd5b5061058061104a565b3480156105ee57600080fd5b5061044a6105fd3660046140bb565b611084565b34801561060e57600080fd5b5061044a61061d3660046140bb565b6110b3565b34801561062e57600080fd5b506104976110e2565b34801561064357600080fd5b5061044a610652366004613d06565b61116f565b34801561066357600080fd5b5061044a610672366004613e0e565b61117a565b34801561068357600080fd5b50610497610692366004613de3565b61141f565b3480156106a357600080fd5b5061044a6106b23660046140bb565b61158c565b3480156106c357600080fd5b506104976115bb565b3480156106d857600080fd5b5061044a6106e7366004613d06565b61161c565b3480156106f857600080fd5b5061049760195481565b34801561070e57600080fd5b5061049761071d3660046140bb565b611637565b61044a610730366004613f15565b611699565b34801561074157600080fd5b50610497611869565b34801561075657600080fd5b5061044a610765366004613fee565b6118eb565b34801561077657600080fd5b5061049760155481565b34801561078c57600080fd5b5061044a61192c565b3480156107a157600080fd5b5061044a6107b03660046140d3565b611b67565b3480156107c157600080fd5b5061051d6107d03660046140bb565b611cba565b3480156107e157600080fd5b5061049760175481565b3480156107f757600080fd5b50610497610806366004613cb2565b611ccc565b34801561081757600080fd5b5061044a611d5d565b34801561082c57600080fd5b5061049760145481565b34801561084257600080fd5b506104f0611d93565b34801561085757600080fd5b5061044a6108663660046140bb565b611e21565b34801561087757600080fd5b50600954600a54600b54600c54600d546108a794939291906001600160f81b03811690600160f81b900460ff1686565b604051610478969594939291906144ae565b3480156108c557600080fd5b50610497601d5481565b3480156108db57600080fd5b50610497611e50565b3480156108f057600080fd5b5061044a6108ff366004613fee565b611efc565b34801561091057600080fd5b506008546001600160a01b031661051d565b61044a610930366004613f62565b611f39565b34801561094157600080fd5b506104976109503660046140bb565b611ff3565b34801561096157600080fd5b506104f0612057565b34801561097657600080fd5b5061044a610985366004613daf565b612066565b34801561099657600080fd5b5061044a6109a5366004613e76565b61212b565b3480156109b657600080fd5b5061044a6109c5366004613e76565b612173565b3480156109d657600080fd5b506105806121bb565b61044a6109ed366004613f15565b6121ee565b3480156109fe57600080fd5b50601b5461046c90600160a81b900460ff1681565b61044a610a213660046140bb565b6122ae565b348015610a3257600080fd5b5061044a610a41366004613d46565b61236d565b61044a610a54366004613e90565b6123a0565b348015610a6557600080fd5b50610580612577565b348015610a7a57600080fd5b506104f06125b1565b348015610a8f57600080fd5b5033600090815260136020526040902054610497565b348015610ab157600080fd5b5061049760245481565b348015610ac757600080fd5b5061044a610ad6366004613e76565b6125be565b348015610ae757600080fd5b5061044a610af6366004614033565b612606565b348015610b0757600080fd5b50610497601a5481565b348015610b1d57600080fd5b506104f0610b2c3660046140bb565b61280a565b348015610b3d57600080fd5b5033600090815260126020526040902054610497565b348015610b5f57600080fd5b5061049760075481565b348015610b7557600080fd5b5061049760165481565b348015610b8b57600080fd5b50610497601c5481565b348015610ba157600080fd5b5061044a610bb03660046140bb565b61283e565b348015610bc157600080fd5b5061044a610bd03660046140bb565b61286d565b348015610be157600080fd5b5061046c610bf0366004613cce565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b348015610c2a57600080fd5b5061044a610c39366004613fee565b61289c565b61044a610c4c3660046140bb565b6128d9565b348015610c5d57600080fd5b5061044a610c6c366004613cb2565b6129b9565b348015610c7d57600080fd5b50601b5461046c90600160a01b900460ff1681565b6008546001600160a01b03163314610cc55760405162461bcd60e51b8152600401610cbc90614354565b60405180910390fd5b601a55565b60006001600160e01b031982166380ac58cd60e01b1480610cfb57506001600160e01b03198216635b5e139f60e01b145b80610d1657506001600160e01b0319821663780e9d6360e01b145b80610d3157506301ffc9a760e01b6001600160e01b03198316145b92915050565b6008546001600160a01b03163314610d615760405162461bcd60e51b8152600401610cbc90614354565b601b8054911515600160a01b0260ff60a01b19909216919091179055565b606060018054610d8e90614628565b80601f0160208091040260200160405190810160405280929190818152602001828054610dba90614628565b8015610e075780601f10610ddc57610100808354040283529160200191610e07565b820191906000526020600020905b815481529060010190602001808311610dea57829003601f168201915b5050505050905090565b6000610e1e826000541190565b610e805760405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201526c3c34b9ba32b73a103a37b5b2b760991b6064820152608401610cbc565b506000908152600560205260409020546001600160a01b031690565b6000610ea782611cba565b9050806001600160a01b0316836001600160a01b03161415610f165760405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201526132b960f11b6064820152608401610cbc565b336001600160a01b0382161480610f325750610f328133610bf0565b610fa45760405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c000000000000006064820152608401610cbc565b610faf838383612a51565b505050565b6008546000906001600160a01b03163314610fe15760405162461bcd60e51b8152600401610cbc90614354565b5061038490565b601b54604051631916558760e01b81526001600160a01b03838116600483015290911690631916558790602401600060405180830381600087803b15801561102f57600080fd5b505af1158015611043573d6000803e3d6000fd5b5050505050565b6008546000906001600160a01b031633146110775760405162461bcd60e51b8152600401610cbc90614354565b506706f05b59d3b2000090565b6008546001600160a01b031633146110ae5760405162461bcd60e51b8152600401610cbc90614354565b601755565b6008546001600160a01b031633146110dd5760405162461bcd60e51b8152600401610cbc90614354565b602355565b601b54600090600160b81b900460ff1680156111285750601d54336000908152602260205260409020546111169190614587565b33600090815260216020526040902054115b1561116957601d543360009081526022602052604090205461114a9190614587565b3360009081526021602052604090205461116491906145ce565b905090565b50600090565b610faf838383612aad565b6008546001600160a01b031633146111a45760405162461bcd60e51b8152600401610cbc90614354565b8260005b81811015611417576016548484838181106111d357634e487b7160e01b600052603260045260246000fd5b905060200201356111e360005490565b6111ed919061455b565b111561120b5760405162461bcd60e51b8152600401610cbc90614413565b7f000000000000000000000000000000000000000000000000000000000000001484848381811061124c57634e487b7160e01b600052603260045260246000fd5b9050602002013510156112c2576112bd86868381811061127c57634e487b7160e01b600052603260045260246000fd5b90506020020160208101906112919190613cb2565b8585848181106112b157634e487b7160e01b600052603260045260246000fd5b90506020020135612e2f565b611405565b7f000000000000000000000000000000000000000000000000000000000000001484848381811061130357634e487b7160e01b600052603260045260246000fd5b90506020020135611314919061467e565b156113315760405162461bcd60e51b8152600401610cbc906142b7565b60007f000000000000000000000000000000000000000000000000000000000000001485858481811061137457634e487b7160e01b600052603260045260246000fd5b905060200201356113859190614573565b905060005b81811015611402576113f08888838181106113b557634e487b7160e01b600052603260045260246000fd5b90506020020160208101906113ca9190613cb2565b7f0000000000000000000000000000000000000000000000000000000000000014612e2f565b806113fa81614663565b91505061138a565b50505b8061140f81614663565b9150506111a8565b505050505050565b600061142a83611ccc565b82106114835760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e604482015261647360f01b6064820152608401610cbc565b600080549080805b8381101561152c576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b031691830191909152156114dd57805192505b876001600160a01b0316836001600160a01b03161415611519578684141561150b57509350610d3192505050565b8361151581614663565b9450505b508061152481614663565b91505061148b565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201526d0deeedccae440c4f240d2dcc8caf60931b6064820152608401610cbc565b6008546001600160a01b031633146115b65760405162461bcd60e51b8152600401610cbc90614354565b601555565b601b54600090600160a01b900460ff1661160c5760405162461bcd60e51b81526020600482015260126024820152711c99599d5b99081b9bdd08185b1b1bddd95960721b6044820152606401610cbc565b601d54601e546111649190614587565b610faf8383836040518060200160405280600081525061236d565b6000805482106116955760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f756044820152626e647360e81b6064820152608401610cbc565b5090565b6116a38383612e49565b6116bf5760405162461bcd60e51b8152600401610cbc90614436565b82611754601080546116d090614628565b80601f01602080910402602001604051908101604052809291908181526020018280546116fc90614628565b80156117495780601f1061171e57610100808354040283529160200191611749565b820191906000526020600020905b81548152906001019060200180831161172c57829003601f168201915b505050505033612e81565b146117715760405162461bcd60e51b8152600401610cbc90614304565b6014543360009081526012602052604090205461178f90839061455b565b11156117ad5760405162461bcd60e51b8152600401610cbc906143dc565b3481601a546117bc9190614587565b146117d95760405162461bcd60e51b8152600401610cbc9061428e565b33600090815260126020526040812080548392906117f890849061455b565b9091555050336000908152602260205260408120805483929061181c90849061455b565b9250508190555080601e6000828254611835919061455b565b9091555050336000908152602160205260408120805434929061185990849061455b565b90915550610faf90503382612e2f565b601b54600090600160a81b900460ff1680156118af5750601d543360009081526013602052604090205461189d9190614587565b336000908152601f6020526040902054115b1561116957601d54336000908152601360205260409020546118d19190614587565b336000908152601f602052604090205461116491906145ce565b6008546001600160a01b031633146119155760405162461bcd60e51b8152600401610cbc90614354565b8051611928906011906020840190613b21565b5050565b6002600e54141561194f5760405162461bcd60e51b8152600401610cbc90614477565b6002600e55601b54600160a01b900460ff1615156001146119a75760405162461bcd60e51b81526020600482015260126024820152711c99599d5b99081b9bdd08185b1b1bddd95960721b6044820152606401610cbc565b6000806119b2611869565b905080156119ed57336000908152601f602090815260408083208390556013909152902054601e5491925082916119e991906145ce565b601e555b6119f5611e50565b90508015611a4857611a07818361455b565b336000908152602080805260408083208390556022825280832054601290925290912054919350611a37916145ce565b601e54611a4491906145ce565b601e555b611a506110e2565b90508015611a9257611a62818361455b565b3360009081526021602090815260408083208390556022909152902054601e54919350611a8e916145ce565b601e555b81611acc5760405162461bcd60e51b815260206004820152600a6024820152696e6f20726566756e647360b01b6044820152606401610cbc565b604051600090339084908381818185875af1925050503d8060008114611b0e576040519150601f19603f3d011682016040523d82523d6000602084013e611b13565b606091505b5090915050600181151514611b5d5760405162461bcd60e51b815260206004820152601060248201526f19985a5b1959081d1bc81c99599d5b9960821b6044820152606401610cbc565b50506001600e5550565b6008546001600160a01b03163314611b915760405162461bcd60e51b8152600401610cbc90614354565b60165482611b9e60005490565b611ba8919061455b565b1115611bc65760405162461bcd60e51b8152600401610cbc90614413565b7f0000000000000000000000000000000000000000000000000000000000000014821015611bf8576119288183612e2f565b611c227f00000000000000000000000000000000000000000000000000000000000000148361467e565b15611c3f5760405162461bcd60e51b8152600401610cbc906142b7565b6000611c6b7f000000000000000000000000000000000000000000000000000000000000001484614573565b905060005b81811015611cb457611ca2837f0000000000000000000000000000000000000000000000000000000000000014612e2f565b80611cac81614663565b915050611c70565b50505050565b6000611cc582612eb4565b5192915050565b60006001600160a01b038216611d385760405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b6064820152608401610cbc565b506001600160a01b03166000908152600460205260409020546001600160801b031690565b6008546001600160a01b03163314611d875760405162461bcd60e51b8152600401610cbc90614354565b611d91600061305d565b565b600f8054611da090614628565b80601f0160208091040260200160405190810160405280929190818152602001828054611dcc90614628565b8015611e195780601f10611dee57610100808354040283529160200191611e19565b820191906000526020600020905b815481529060010190602001808311611dfc57829003601f168201915b505050505081565b6008546001600160a01b03163314611e4b5760405162461bcd60e51b8152600401610cbc90614354565b601d55565b601b54600090600160b01b900460ff168015611eab5750601d5433600090815260226020908152604080832054601290925290912054611e9091906145ce565b611e9a9190614587565b336000908152602080526040902054115b1561116957601d5433600090815260226020908152604080832054601290925290912054611ed991906145ce565b611ee39190614587565b33600090815260208052604090205461116491906145ce565b6008546001600160a01b03163314611f265760405162461bcd60e51b8152600401610cbc90614354565b805161192890600f906020840190613b21565b611f438484612e49565b611f5f5760405162461bcd60e51b8152600401610cbc90614436565b83611f6b3384846130af565b14611f885760405162461bcd60e51b8152600401610cbc90614304565b60145433600090815260126020526040902054611fa690839061455b565b1115611fc45760405162461bcd60e51b8152600401610cbc906143dc565b3360009081526012602052604081208054839290611fe390849061455b565b90915550611cb4905082826130fa565b600c54600b5460098054600093919261202d9161201090426145ce565b61201a9190614573565b60048401546001600160f81b031661326c565b6120379190614587565b816001015461204691906145ce565b6120509084614587565b9392505050565b606060028054610d8e90614628565b6001600160a01b0382163314156120bf5760405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c65720000000000006044820152606401610cbc565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6008546001600160a01b031633146121555760405162461bcd60e51b8152600401610cbc90614354565b601b8054911515600160a81b0260ff60a81b19909216919091179055565b6008546001600160a01b0316331461219d5760405162461bcd60e51b8152600401610cbc90614354565b601b8054911515600160b01b0260ff60b01b19909216919091179055565b6008546000906001600160a01b031633146121e85760405162461bcd60e51b8152600401610cbc90614354565b50600990565b6121f88383612e49565b6122145760405162461bcd60e51b8152600401610cbc90614436565b82612225600f80546116d090614628565b146122425760405162461bcd60e51b8152600401610cbc90614304565b6014543360009081526012602052604090205461226090839061455b565b111561227e5760405162461bcd60e51b8152600401610cbc906143dc565b336000908152601260205260408120805483929061229d90849061455b565b90915550610faf9050816000613282565b6008546001600160a01b031633146122d85760405162461bcd60e51b8152600401610cbc90614354565b601b546040516000916001600160a01b03169083908381818185875af1925050503d8060008114612325576040519150601f19603f3d011682016040523d82523d6000602084013e61232a565b606091505b50509050806119285760405162461bcd60e51b815260206004820152600f60248201526e1d1c985b9cd9995c8819985a5b1959608a1b6044820152606401610cbc565b612378848484612aad565b6123848484848461338b565b611cb45760405162461bcd60e51b8152600401610cbc90614389565b6123e08585858080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612e4992505050565b6123fc5760405162461bcd60e51b8152600401610cbc90614436565b846124926010805461240d90614628565b80601f016020809104026020016040519081016040528092919081815260200182805461243990614628565b80156124865780601f1061245b57610100808354040283529160200191612486565b820191906000526020600020905b81548152906001019060200180831161246957829003601f168201915b50505050503384613499565b146124cf5760405162461bcd60e51b815260206004820152600d60248201526c2430b9b41034b73b30b634b21760991b6044820152606401610cbc565b3360009081526012602052604090205481906124ec90849061455b565b111561250a5760405162461bcd60e51b8152600401610cbc906143dc565b6014543360009081526012602052604090205461252890849061455b565b11156125465760405162461bcd60e51b8152600401610cbc906143dc565b336000908152601260205260408120805484929061256590849061455b565b9091555050601a5461104390836130fa565b6008546000906001600160a01b031633146125a45760405162461bcd60e51b8152600401610cbc90614354565b50674563918244f4000090565b60108054611da090614628565b6008546001600160a01b031633146125e85760405162461bcd60e51b8152600401610cbc90614354565b601b8054911515600160b81b0260ff60b81b19909216919091179055565b6008546001600160a01b031633146126305760405162461bcd60e51b8152600401610cbc90614354565b8082608001516001600160f81b0316836060015102836020015103146126a65760405162461bcd60e51b815260206004820152602560248201527f4c696e656172447574636841756374696f6e3a20696e636f7272656374207265604482015264736572766560d81b6064820152608401610cbc565b60008260a0015160028111156126cc57634e487b7160e01b600052602160045260246000fd5b14156127265760405162461bcd60e51b8152602060048201526024808201527f4c696e656172447574636841756374696f6e3a20756e737065636966696564206044820152631d5b9a5d60e21b6064820152608401610cbc565b600082604001511161278d5760405162461bcd60e51b815260206004820152602a60248201527f4c696e656172447574636841756374696f6e3a207a65726f206465637265617360448201526919481a5b9d195c9d985b60b21b6064820152608401610cbc565b815160099081556020830151600a556040830151600b556060830151600c556080830151600d80546001600160f81b0319166001600160f81b03909216918217815560a0850151859392909190600160f81b8360028111156127ff57634e487b7160e01b600052602160045260246000fd5b021790555050505050565b60606011612817836134b0565b6040516020016128289291906141ab565b6040516020818303038152906040529050919050565b6008546001600160a01b031633146128685760405162461bcd60e51b8152600401610cbc90614354565b600955565b6008546001600160a01b031633146128975760405162461bcd60e51b8152600401610cbc90614354565b601455565b6008546001600160a01b031633146128c65760405162461bcd60e51b8152600401610cbc90614354565b8051611928906010906020840190613b21565b6015543360009081526012602090815260408083205460139092529091205483916129039161455b565b61290d919061455b565b111561292b5760405162461bcd60e51b8152600401610cbc906143dc565b806024600082825461293d919061455b565b909155505060235460245411156129865760405162461bcd60e51b815260206004820152600d60248201526c195e18d9595908185b5bdd5b9d609a1b6044820152606401610cbc565b33600090815260136020526040812080548392906129a590849061455b565b909155506129b69050816001613282565b50565b6008546001600160a01b031633146129e35760405162461bcd60e51b8152600401610cbc90614354565b6001600160a01b038116612a485760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610cbc565b6129b68161305d565b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000612ab882612eb4565b80519091506000906001600160a01b0316336001600160a01b03161480612aef575033612ae484610e11565b6001600160a01b0316145b80612b0157508151612b019033610bf0565b905080612b6b5760405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610cbc565b846001600160a01b031682600001516001600160a01b031614612bdf5760405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f72726563746044820152651037bbb732b960d11b6064820152608401610cbc565b6001600160a01b038416612c435760405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608401610cbc565b612c536000848460000151612a51565b6001600160a01b0385166000908152600460205260408120805460019290612c859084906001600160801b03166145a6565b82546101009290920a6001600160801b038181021990931691831602179091556001600160a01b03861660009081526004602052604081208054600194509092612cd191859116614530565b82546001600160801b039182166101009390930a9283029190920219909116179055506040805180820182526001600160a01b0380871682526001600160401b03428116602080850191825260008981526003909152948520935184549151909216600160a01b026001600160e01b03199091169190921617179055612d5884600161455b565b6000818152600360205260409020549091506001600160a01b0316612de957612d82816000541190565b15612de95760408051808201825284516001600160a01b0390811682526020808701516001600160401b039081168285019081526000878152600390935294909120925183549451909116600160a01b026001600160e01b03199094169116179190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611417565b6119288282604051806020016040528060008152506135c9565b6000612e5d6008546001600160a01b031690565b6001600160a01b0316612e7084846138a3565b6001600160a01b0316149392505050565b60008282604051602001612e9692919061413f565b60405160208183030381529060405280519060200120905092915050565b6040805180820190915260008082526020820152612ed3826000541190565b612f325760405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e657869736044820152693a32b73a103a37b5b2b760b11b6064820152608401610cbc565b60007f00000000000000000000000000000000000000000000000000000000000000148310612f9357612f857f0000000000000000000000000000000000000000000000000000000000000014846145ce565b612f9090600161455b565b90505b825b818110612ffc576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b03169183019190915215612fe957949350505050565b5080612ff481614611565b915050612f95565b5060405162461bcd60e51b815260206004820152602f60248201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560448201526e1037bbb732b91037b3103a37b5b2b760891b6064820152608401610cbc565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6040516001600160601b0319606085901b16602082015260348101839052605481018290526000906074015b6040516020818303038152906040528051906020012090509392505050565b6002600e54141561311d5760405162461bcd60e51b8152600401610cbc90614477565b6002600e556017548161312f60005490565b613139919061455b565b11156131575760405162461bcd60e51b8152600401610cbc90614413565b60006131638284614587565b9050348111156131855760405162461bcd60e51b8152600401610cbc9061428e565b61318f3383612e2f565b81601e60008282546131a1919061455b565b9091555050336000908152602080526040812080548392906131c490849061455b565b909155505034811015611b5d576000335b905060006131e383346145ce565b9050600080836001600160a01b03168360405160006040518083038185875af1925050503d8060008114613233576040519150601f19603f3d011682016040523d82523d6000602084013e613238565b606091505b509150915081819061325d5760405162461bcd60e51b8152600401610cbc919061427b565b505050505050506001600e5550565b600081831061327b5781612050565b5090919050565b6002600e5414156132a55760405162461bcd60e51b8152600401610cbc90614477565b6002600e55601754826132b760005490565b6132c1919061455b565b11156132df5760405162461bcd60e51b8152600401610cbc90614413565b60006132ea83611ff3565b90503481111561330c5760405162461bcd60e51b8152600401610cbc9061428e565b6133163384612e2f565b82601e6000828254613328919061455b565b9091555050811561335d57336000908152601f60205260408120805483929061335290849061455b565b9091555061337b9050565b336000908152602080526040812080548392906131c490849061455b565b80341115611b5d576000336131d5565b60006001600160a01b0384163b1561348d57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906133cf903390899088908890600401614248565b602060405180830381600087803b1580156133e957600080fd5b505af1925050508015613419575060408051601f3d908101601f1916820190925261341691810190613fd2565b60015b613473573d808015613447576040519150601f19603f3d011682016040523d82523d6000602084013e61344c565b606091505b50805161346b5760405162461bcd60e51b8152600401610cbc90614389565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050613491565b5060015b949350505050565b60008383836040516020016130db93929190614171565b6060816134d45750506040805180820190915260018152600360fc1b602082015290565b8160005b81156134fe57806134e881614663565b91506134f79050600a83614573565b91506134d8565b6000816001600160401b0381111561352657634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613550576020820181803683370190505b5090505b8415613491576135656001836145ce565b9150613572600a8661467e565b61357d90603061455b565b60f81b8183815181106135a057634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506135c2600a86614573565b9450613554565b6000546001600160a01b03841661362c5760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610cbc565b613637816000541190565b156136845760405162461bcd60e51b815260206004820152601d60248201527f455243373231413a20746f6b656e20616c7265616479206d696e7465640000006044820152606401610cbc565b7f00000000000000000000000000000000000000000000000000000000000000148311156136ff5760405162461bcd60e51b815260206004820152602260248201527f455243373231413a207175616e7469747920746f206d696e7420746f6f2068696044820152610ced60f31b6064820152608401610cbc565b6001600160a01b0384166000908152600460209081526040918290208251808401845290546001600160801b038082168352600160801b909104169181019190915281518083019092528051909190819061375b908790614530565b6001600160801b031681526020018583602001516137799190614530565b6001600160801b039081169091526001600160a01b0380881660008181526004602090815260408083208751978301518716600160801b029790961696909617909455845180860186529182526001600160401b034281168386019081528883526003909552948120915182549451909516600160a01b026001600160e01b031990941694909216939093179190911790915582905b858110156138985760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a461385c600088848861338b565b6138785760405162461bcd60e51b8152600401610cbc90614389565b8161388281614663565b925050808061389090614663565b91505061380f565b506000819055611417565b6000612050838360008151604114156138de5760208201516040830151606084015160001a6138d48682858561394e565b9350505050610d31565b81516040141561390657602082015160408301516138fd858383613af7565b92505050610d31565b60405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610cbc565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08211156139cb5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610cbc565b8360ff16601b14806139e057508360ff16601c145b613a375760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610cbc565b6040805160008082526020820180845288905260ff871692820192909252606081018590526080810184905260019060a0016020604051602081039080840390855afa158015613a8b573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116613aee5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610cbc565b95945050505050565b60006001600160ff1b03821660ff83901c601b01613b178682878561394e565b9695505050505050565b828054613b2d90614628565b90600052602060002090601f016020900481019282613b4f5760008555613b95565b82601f10613b6857805160ff1916838001178555613b95565b82800160010185558215613b95579182015b82811115613b95578251825591602001919060010190613b7a565b506116959291505b808211156116955760008155600101613b9d565b60006001600160401b0380841115613bcb57613bcb6146be565b604051601f8501601f19908116603f01168101908282118183101715613bf357613bf36146be565b81604052809350858152868686011115613c0c57600080fd5b858560208301376000602087830101525050509392505050565b60008083601f840112613c37578182fd5b5081356001600160401b03811115613c4d578182fd5b6020830191508360208260051b8501011115613c6857600080fd5b9250929050565b80358015158114613c7f57600080fd5b919050565b600082601f830112613c94578081fd5b61205083833560208501613bb1565b803560038110613c7f57600080fd5b600060208284031215613cc3578081fd5b8135612050816146d4565b60008060408385031215613ce0578081fd5b8235613ceb816146d4565b91506020830135613cfb816146d4565b809150509250929050565b600080600060608486031215613d1a578081fd5b8335613d25816146d4565b92506020840135613d35816146d4565b929592945050506040919091013590565b60008060008060808587031215613d5b578081fd5b8435613d66816146d4565b93506020850135613d76816146d4565b92506040850135915060608501356001600160401b03811115613d97578182fd5b613da387828801613c84565b91505092959194509250565b60008060408385031215613dc1578182fd5b8235613dcc816146d4565b9150613dda60208401613c6f565b90509250929050565b60008060408385031215613df5578182fd5b8235613e00816146d4565b946020939093013593505050565b60008060008060408587031215613e23578182fd5b84356001600160401b0380821115613e39578384fd5b613e4588838901613c26565b90965094506020870135915080821115613e5d578384fd5b50613e6a87828801613c26565b95989497509550505050565b600060208284031215613e87578081fd5b61205082613c6f565b600080600080600060808688031215613ea7578283fd5b8535945060208601356001600160401b0380821115613ec4578485fd5b818801915088601f830112613ed7578485fd5b813581811115613ee5578586fd5b896020828501011115613ef6578586fd5b9699602092909201985095966040810135965060600135945092505050565b600080600060608486031215613f29578081fd5b8335925060208401356001600160401b03811115613f45578182fd5b613f5186828701613c84565b925050604084013590509250925092565b60008060008060808587031215613f77578182fd5b8435935060208501356001600160401b03811115613f93578283fd5b613f9f87828801613c84565b949794965050505060408301359260600135919050565b600060208284031215613fc7578081fd5b8135612050816146e9565b600060208284031215613fe3578081fd5b8151612050816146e9565b600060208284031215613fff578081fd5b81356001600160401b03811115614014578182fd5b8201601f81018413614024578182fd5b61349184823560208401613bb1565b60008082840360e0811215614046578283fd5b60c0811215614053578283fd5b5061405c614508565b8335815260208085013590820152604080850135908201526060808501359082015260808401356001600160f81b0381168114614097578384fd5b60808201526140a860a08501613ca3565b60a08201529460c0939093013593505050565b6000602082840312156140cc578081fd5b5035919050565b600080604083850312156140e5578182fd5b823591506020830135613cfb816146d4565b6000815180845261410f8160208601602086016145e5565b601f01601f19169290920160200192915050565b600081516141358185602086016145e5565b9290920192915050565b600083516141518184602088016145e5565b60609390931b6001600160601b0319169190920190815260140192915050565b600084516141838184602089016145e5565b60609490941b6001600160601b03191691909301908152601481019190915260340192915050565b600080845482600182811c9150808316806141c757607f831692505b60208084108214156141e757634e487b7160e01b87526022600452602487fd5b8180156141fb576001811461420c57614238565b60ff19861689528489019650614238565b60008b815260209020885b868110156142305781548b820152908501908301614217565b505084890196505b505050505050613aee8185614123565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613b17908301846140f7565b60208152600061205060208301846140f7565b6020808252600f908201526e24b73b30b634b21030b6b7bab73a1760891b604082015260600190565b6020808252602d908201527f43616e206f6e6c79206d696e742061206d756c7469706c65206f66207468652060408201526c36b0bc2130ba31b429b4bd329760991b606082015260800190565b60208082526030908201527f5468652061646472657373206861736820646f6573206e6f74206d617463682060408201526f3a34329039b4b3b732b2103430b9b41760811b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526033908201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260408201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b606082015260800190565b6020808252601a908201527f596f752063616e6e6f74206d696e742074686973206d616e792e000000000000604082015260600190565b60208082526009908201526829b7b6321037baba1760b91b604082015260600190565b60208082526021908201527f5468697320686173682773207369676e617475726520697320696e76616c69646040820152601760f91b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b8681526020810186905260408101859052606081018490526001600160f81b038316608082015260c08101600383106144f757634e487b7160e01b600052602160045260246000fd5b8260a0830152979650505050505050565b60405160c081016001600160401b038111828210171561452a5761452a6146be565b60405290565b60006001600160801b0380831681851680830382111561455257614552614692565b01949350505050565b6000821982111561456e5761456e614692565b500190565b600082614582576145826146a8565b500490565b60008160001904831182151516156145a1576145a1614692565b500290565b60006001600160801b03838116908316818110156145c6576145c6614692565b039392505050565b6000828210156145e0576145e0614692565b500390565b60005b838110156146005781810151838201526020016145e8565b83811115611cb45750506000910152565b60008161462057614620614692565b506000190190565b600181811c9082168061463c57607f821691505b6020821081141561465d57634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561467757614677614692565b5060010190565b60008261468d5761468d6146a8565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146129b657600080fd5b6001600160e01b0319811681146129b657600080fdfea264697066735822122086cb706c8b538d7644db3d443c5bc39febdadb83f9f0f189b5a283e98fddb9f564736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004d2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000542c918e38bfa75f1148a08d0cf27ce67a860dcb00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000001a5365637265742047617264656e202d20536563726574204b657900000000000000000000000000000000000000000000000000000000000000000000000000045347534b00000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : payees (address[]): 0x542C918E38bfA75F1148a08D0CF27ce67A860dCB
Arg [1] : shares (uint256[]): 100
Arg [2] : name (string): Secret Garden - Secret Key
Arg [3] : symbol (string): SGSK
Arg [4] : _whitelistMaxMint (uint256): 0
Arg [5] : _publicListMaxMint (uint256): 0
Arg [6] : _nonReservedMax (uint256): 0
Arg [7] : _reservedMax (uint256): 1234
Arg [8] : _discountedPrice (uint256): 0
Arg [9] : _publicTotalMaxMint (uint256): 0
-----Encoded View---------------
18 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [2] : 00000000000000000000000000000000000000000000000000000000000001c0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000200
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [7] : 00000000000000000000000000000000000000000000000000000000000004d2
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [11] : 000000000000000000000000542c918e38bfa75f1148a08d0cf27ce67a860dcb
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000064
Arg [14] : 000000000000000000000000000000000000000000000000000000000000001a
Arg [15] : 5365637265742047617264656e202d20536563726574204b6579000000000000
Arg [16] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [17] : 5347534b00000000000000000000000000000000000000000000000000000000
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.